diff --git a/CGMES_2.4.13_18DEC2013/ACDCConverter.cpp b/CGMES_2.4.13_18DEC2013/ACDCConverter.cpp deleted file mode 100644 index b598db65a..000000000 --- a/CGMES_2.4.13_18DEC2013/ACDCConverter.cpp +++ /dev/null @@ -1,337 +0,0 @@ -#include -#include "ConductingEquipment.hpp" -#include "ACDCConverter.hpp" - -#include "ActivePower.hpp" -#include "ReactivePower.hpp" -#include "ActivePower.hpp" -#include "Voltage.hpp" -#include "ApparentPower.hpp" -#include "ActivePower.hpp" -#include "Voltage.hpp" -#include "Voltage.hpp" -#include "Voltage.hpp" -#include "Integer.hpp" -#include "Voltage.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "Voltage.hpp" -#include "ACDCConverterDCTerminal.hpp" -#include "Terminal.hpp" -#include "CurrentFlow.hpp" -#include "ActivePower.hpp" -#include "Voltage.hpp" -#include "Voltage.hpp" - -using namespace CIMPP; - -ACDCConverter::ACDCConverter(): PccTerminal(nullptr) {}; - -ACDCConverter::~ACDCConverter() {}; - - - - - - - - - - - - - - - - -bool assign_ACDCConverter_DCTerminals(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ACDCConverter* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->DCTerminals.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_Terminal_ConverterDCSides(BaseClass*, BaseClass*); -bool assign_ACDCConverter_PccTerminal(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ACDCConverter* element = dynamic_cast(BaseClass_ptr1)) { - element->PccTerminal = dynamic_cast(BaseClass_ptr2); - if(element->PccTerminal != nullptr) - return assign_Terminal_ConverterDCSides(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - - - - -bool assign_ACDCConverter_p(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ACDCConverter* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->p; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ACDCConverter_q(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ACDCConverter* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->q; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ACDCConverter_targetPpcc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ACDCConverter* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->targetPpcc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ACDCConverter_targetUdc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ACDCConverter* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->targetUdc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ACDCConverter_baseS(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ACDCConverter* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->baseS; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ACDCConverter_idleLoss(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ACDCConverter* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->idleLoss; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ACDCConverter_maxUdc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ACDCConverter* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->maxUdc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ACDCConverter_minUdc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ACDCConverter* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->minUdc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ACDCConverter_nomUdc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ACDCConverter* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->nomUdc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ACDCConverter_numberOfValves(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ACDCConverter* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->numberOfValves; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ACDCConverter_ratedUdc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ACDCConverter* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ratedUdc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ACDCConverter_resistiveLoss(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ACDCConverter* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->resistiveLoss; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ACDCConverter_switchingLoss(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ACDCConverter* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->switchingLoss; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ACDCConverter_valveU0(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ACDCConverter* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->valveU0; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - - -bool assign_ACDCConverter_idc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ACDCConverter* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->idc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ACDCConverter_poleLossP(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ACDCConverter* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->poleLossP; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ACDCConverter_uc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ACDCConverter* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->uc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ACDCConverter_udc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ACDCConverter* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->udc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ACDCConverter_factory() { - return new ACDCConverter; - } -} - -void ACDCConverter::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ACDCConverter"), &ACDCConverter_factory)); -} - -void ACDCConverter::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ACDCConverter.p"), &assign_ACDCConverter_p)); - assign_map.insert(std::make_pair(std::string("cim:ACDCConverter.q"), &assign_ACDCConverter_q)); - assign_map.insert(std::make_pair(std::string("cim:ACDCConverter.targetPpcc"), &assign_ACDCConverter_targetPpcc)); - assign_map.insert(std::make_pair(std::string("cim:ACDCConverter.targetUdc"), &assign_ACDCConverter_targetUdc)); - assign_map.insert(std::make_pair(std::string("cim:ACDCConverter.baseS"), &assign_ACDCConverter_baseS)); - assign_map.insert(std::make_pair(std::string("cim:ACDCConverter.idleLoss"), &assign_ACDCConverter_idleLoss)); - assign_map.insert(std::make_pair(std::string("cim:ACDCConverter.maxUdc"), &assign_ACDCConverter_maxUdc)); - assign_map.insert(std::make_pair(std::string("cim:ACDCConverter.minUdc"), &assign_ACDCConverter_minUdc)); - assign_map.insert(std::make_pair(std::string("cim:ACDCConverter.nomUdc"), &assign_ACDCConverter_nomUdc)); - assign_map.insert(std::make_pair(std::string("cim:ACDCConverter.numberOfValves"), &assign_ACDCConverter_numberOfValves)); - assign_map.insert(std::make_pair(std::string("cim:ACDCConverter.ratedUdc"), &assign_ACDCConverter_ratedUdc)); - assign_map.insert(std::make_pair(std::string("cim:ACDCConverter.resistiveLoss"), &assign_ACDCConverter_resistiveLoss)); - assign_map.insert(std::make_pair(std::string("cim:ACDCConverter.switchingLoss"), &assign_ACDCConverter_switchingLoss)); - assign_map.insert(std::make_pair(std::string("cim:ACDCConverter.valveU0"), &assign_ACDCConverter_valveU0)); - assign_map.insert(std::make_pair(std::string("cim:ACDCConverter.idc"), &assign_ACDCConverter_idc)); - assign_map.insert(std::make_pair(std::string("cim:ACDCConverter.poleLossP"), &assign_ACDCConverter_poleLossP)); - assign_map.insert(std::make_pair(std::string("cim:ACDCConverter.uc"), &assign_ACDCConverter_uc)); - assign_map.insert(std::make_pair(std::string("cim:ACDCConverter.udc"), &assign_ACDCConverter_udc)); -} - -void ACDCConverter::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ACDCConverter.DCTerminals"), &assign_ACDCConverter_DCTerminals)); - assign_map.insert(std::make_pair(std::string("cim:ACDCConverter.PccTerminal"), &assign_ACDCConverter_PccTerminal)); - } - -const char ACDCConverter::debugName[] = "ACDCConverter"; -const char* ACDCConverter::debugString() -{ - return ACDCConverter::debugName; -} - -const BaseClassDefiner ACDCConverter::declare() -{ - return BaseClassDefiner(ACDCConverter::addConstructToMap, ACDCConverter::addPrimitiveAssignFnsToMap, ACDCConverter::addClassAssignFnsToMap, ACDCConverter::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ACDCConverter.hpp b/CGMES_2.4.13_18DEC2013/ACDCConverter.hpp deleted file mode 100644 index 18ef62541..000000000 --- a/CGMES_2.4.13_18DEC2013/ACDCConverter.hpp +++ /dev/null @@ -1,68 +0,0 @@ -#ifndef ACDCConverter_H -#define ACDCConverter_H - -#include "ConductingEquipment.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "ActivePower.hpp" -#include "ReactivePower.hpp" -#include "Voltage.hpp" -#include "ApparentPower.hpp" -#include "Integer.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "CurrentFlow.hpp" - -namespace CIMPP { - - -class ACDCConverterDCTerminal; -class Terminal; - /* - A unit with valves for three phases, together with unit control equipment, essential protective and switching devices, DC storage capacitors, phase reactors and auxiliaries, if any, used for conversion. - */ - class ACDCConverter: public ConductingEquipment - { - - public: - CIMPP::ActivePower p; /* Active power at the point of common coupling. Load sign convention is used, i.e. positive sign means flow out from a node. Starting value for a steady state solution in the case a simplified power flow model is used. Default: nullptr */ - CIMPP::ReactivePower q; /* Reactive power at the point of common coupling. Load sign convention is used, i.e. positive sign means flow out from a node. Starting value for a steady state solution in the case a simplified power flow model is used. Default: nullptr */ - CIMPP::ActivePower targetPpcc; /* Real power injection target in AC grid, at point of common coupling. Default: nullptr */ - CIMPP::Voltage targetUdc; /* Target value for DC voltage magnitude. Default: nullptr */ - CIMPP::ApparentPower baseS; /* Base apparent power of the converter pole. Default: nullptr */ - CIMPP::ActivePower idleLoss; /* Active power loss in pole at no power transfer. Converter configuration data used in power flow. Default: nullptr */ - CIMPP::Voltage maxUdc; /* The maximum voltage on the DC side at which the converter should operate. Converter configuration data used in power flow. Default: nullptr */ - CIMPP::Voltage minUdc; /* Min allowed converter DC voltage. Converter configuration data used in power flow. Default: nullptr */ - CIMPP::Voltage nomUdc; /* The nominal voltage on the DC side at which the converter is designed to operate. Converter configuration data used in power flow. Default: nullptr */ - CIMPP::Integer numberOfValves; /* Number of valves in the converter. Used in loss calculations. Default: 0 */ - CIMPP::Voltage ratedUdc; /* Rated converter DC voltage, also called UdN. Converter configuration data used in power flow. Default: nullptr */ - CIMPP::Simple_Float resistiveLoss; /* Converter configuration data used in power flow. Refer to poleLossP. Default: nullptr */ - CIMPP::PU switchingLoss; /* Switching losses, relative to the base apparent power `baseS`. Refer to poleLossP. Default: nullptr */ - CIMPP::Voltage valveU0; /* Valve threshold voltage. Forward voltage drop when the valve is conducting. Used in loss calculations, i.e. the switchLoss depend on numberOfValves * valveU0. Default: nullptr */ - std::list DCTerminals; /* Default: 0 */ - CIMPP::Terminal* PccTerminal; /* All converters` DC sides linked to this point of common coupling terminal. Default: 0 */ - CIMPP::CurrentFlow idc; /* Converter DC current, also called Id. Converter state variable, result from power flow. Default: nullptr */ - CIMPP::ActivePower poleLossP; /* The active power loss at a DC Pole = idleLoss + switchingLoss*|Idc| + resitiveLoss*Idc^2 For lossless operation Pdc=Pac For rectifier operation with losses Pdc=Pac-lossP For inverter operation with losses Pdc=Pac+lossP Converter state variable used in power flow. Default: nullptr */ - CIMPP::Voltage uc; /* Converter voltage, the voltage at the AC side of the bridge. Converter state variable, result from power flow. Default: nullptr */ - CIMPP::Voltage udc; /* Converter voltage at the DC side, also called Ud. Converter state variable, result from power flow. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ACDCConverter(); - virtual ~ACDCConverter(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ACDCConverter_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ACDCConverterDCTerminal.cpp b/CGMES_2.4.13_18DEC2013/ACDCConverterDCTerminal.cpp deleted file mode 100644 index 47f114217..000000000 --- a/CGMES_2.4.13_18DEC2013/ACDCConverterDCTerminal.cpp +++ /dev/null @@ -1,69 +0,0 @@ -#include -#include "DCBaseTerminal.hpp" -#include "ACDCConverterDCTerminal.hpp" - -#include "ACDCConverter.hpp" -#include "DCPolarityKind.hpp" - -using namespace CIMPP; - -ACDCConverterDCTerminal::ACDCConverterDCTerminal(): DCConductingEquipment(nullptr) {}; - -ACDCConverterDCTerminal::~ACDCConverterDCTerminal() {}; - - -bool assign_ACDCConverter_DCTerminals(BaseClass*, BaseClass*); -bool assign_ACDCConverterDCTerminal_DCConductingEquipment(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ACDCConverterDCTerminal* element = dynamic_cast(BaseClass_ptr1)) { - element->DCConductingEquipment = dynamic_cast(BaseClass_ptr2); - if(element->DCConductingEquipment != nullptr) - return assign_ACDCConverter_DCTerminals(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - - -bool assign_ACDCConverterDCTerminal_polarity(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ACDCConverterDCTerminal* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->polarity; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ACDCConverterDCTerminal_factory() { - return new ACDCConverterDCTerminal; - } -} - -void ACDCConverterDCTerminal::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ACDCConverterDCTerminal"), &ACDCConverterDCTerminal_factory)); -} - -void ACDCConverterDCTerminal::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ACDCConverterDCTerminal.polarity"), &assign_ACDCConverterDCTerminal_polarity)); -} - -void ACDCConverterDCTerminal::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ACDCConverterDCTerminal.DCConductingEquipment"), &assign_ACDCConverterDCTerminal_DCConductingEquipment)); - } - -const char ACDCConverterDCTerminal::debugName[] = "ACDCConverterDCTerminal"; -const char* ACDCConverterDCTerminal::debugString() -{ - return ACDCConverterDCTerminal::debugName; -} - -const BaseClassDefiner ACDCConverterDCTerminal::declare() -{ - return BaseClassDefiner(ACDCConverterDCTerminal::addConstructToMap, ACDCConverterDCTerminal::addPrimitiveAssignFnsToMap, ACDCConverterDCTerminal::addClassAssignFnsToMap, ACDCConverterDCTerminal::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ACDCConverterDCTerminal.hpp b/CGMES_2.4.13_18DEC2013/ACDCConverterDCTerminal.hpp deleted file mode 100644 index 7a236dd26..000000000 --- a/CGMES_2.4.13_18DEC2013/ACDCConverterDCTerminal.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef ACDCConverterDCTerminal_H -#define ACDCConverterDCTerminal_H - -#include "DCBaseTerminal.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "DCPolarityKind.hpp" - -namespace CIMPP { - - -class ACDCConverter; - /* - - */ - class ACDCConverterDCTerminal: public DCBaseTerminal - { - - public: - CIMPP::ACDCConverter* DCConductingEquipment; /* Default: 0 */ - CIMPP::DCPolarityKind polarity; /* Represents the normal network polarity condition. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ACDCConverterDCTerminal(); - virtual ~ACDCConverterDCTerminal(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ACDCConverterDCTerminal_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ACDCTerminal.cpp b/CGMES_2.4.13_18DEC2013/ACDCTerminal.cpp deleted file mode 100644 index ab87580ce..000000000 --- a/CGMES_2.4.13_18DEC2013/ACDCTerminal.cpp +++ /dev/null @@ -1,110 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "ACDCTerminal.hpp" - -#include "Boolean.hpp" -#include "BusNameMarker.hpp" -#include "Measurement.hpp" -#include "Integer.hpp" -#include "OperationalLimitSet.hpp" - -using namespace CIMPP; - -ACDCTerminal::ACDCTerminal(): BusNameMarker(nullptr) {}; - -ACDCTerminal::~ACDCTerminal() {}; - - - -bool assign_BusNameMarker_Terminal(BaseClass*, BaseClass*); -bool assign_ACDCTerminal_BusNameMarker(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ACDCTerminal* element = dynamic_cast(BaseClass_ptr1)) { - element->BusNameMarker = dynamic_cast(BaseClass_ptr2); - if(element->BusNameMarker != nullptr) - return assign_BusNameMarker_Terminal(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_ACDCTerminal_Measurements(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ACDCTerminal* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->Measurements.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - -bool assign_ACDCTerminal_OperationalLimitSet(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ACDCTerminal* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->OperationalLimitSet.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - -bool assign_ACDCTerminal_connected(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ACDCTerminal* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->connected; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - - -bool assign_ACDCTerminal_sequenceNumber(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ACDCTerminal* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->sequenceNumber; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -namespace CIMPP { - BaseClass* ACDCTerminal_factory() { - return new ACDCTerminal; - } -} - -void ACDCTerminal::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ACDCTerminal"), &ACDCTerminal_factory)); -} - -void ACDCTerminal::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ACDCTerminal.connected"), &assign_ACDCTerminal_connected)); - assign_map.insert(std::make_pair(std::string("cim:ACDCTerminal.sequenceNumber"), &assign_ACDCTerminal_sequenceNumber)); - } - -void ACDCTerminal::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ACDCTerminal.BusNameMarker"), &assign_ACDCTerminal_BusNameMarker)); - assign_map.insert(std::make_pair(std::string("cim:ACDCTerminal.Measurements"), &assign_ACDCTerminal_Measurements)); - assign_map.insert(std::make_pair(std::string("cim:ACDCTerminal.OperationalLimitSet"), &assign_ACDCTerminal_OperationalLimitSet)); -} - -const char ACDCTerminal::debugName[] = "ACDCTerminal"; -const char* ACDCTerminal::debugString() -{ - return ACDCTerminal::debugName; -} - -const BaseClassDefiner ACDCTerminal::declare() -{ - return BaseClassDefiner(ACDCTerminal::addConstructToMap, ACDCTerminal::addPrimitiveAssignFnsToMap, ACDCTerminal::addClassAssignFnsToMap, ACDCTerminal::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ACDCTerminal.hpp b/CGMES_2.4.13_18DEC2013/ACDCTerminal.hpp deleted file mode 100644 index e565d1f4e..000000000 --- a/CGMES_2.4.13_18DEC2013/ACDCTerminal.hpp +++ /dev/null @@ -1,48 +0,0 @@ -#ifndef ACDCTerminal_H -#define ACDCTerminal_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Boolean.hpp" -#include "Integer.hpp" - -namespace CIMPP { - - -class BusNameMarker; -class Measurement; -class OperationalLimitSet; - /* - An electrical connection point (AC or DC) to a piece of conducting equipment. Terminals are connected at physical connection points called connectivity nodes. - */ - class ACDCTerminal: public IdentifiedObject - { - - public: - CIMPP::Boolean connected; /* The connected status is related to a bus-branch model and the topological node to terminal relation. True implies the terminal is connected to the related topological node and false implies it is not. In a bus-branch model, the connected status is used to tell if equipment is disconnected without having to change the connectivity described by the topological node to terminal relation. A valid case is that conducting equipment can be connected in one end and open in the other. In particular for an AC line segment, where the reactive line charging can be significant, this is a relevant case. Default: false */ - CIMPP::BusNameMarker* BusNameMarker; /* The bus name marker used to name the bus (topological node). Default: 0 */ - std::list Measurements; /* Measurements associated with this terminal defining where the measurement is placed in the network topology. It may be used, for instance, to capture the sensor position, such as a voltage transformer (PT) at a busbar or a current transformer (CT) at the bar between a breaker and an isolator. Default: 0 */ - CIMPP::Integer sequenceNumber; /* The orientation of the terminal connections for a multiple terminal conducting equipment. The sequence numbering starts with 1 and additional terminals should follow in increasing order. The first terminal is the `starting point` for a two terminal branch. Default: 0 */ - std::list OperationalLimitSet; /* Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ACDCTerminal(); - virtual ~ACDCTerminal(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ACDCTerminal_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ACLineSegment.cpp b/CGMES_2.4.13_18DEC2013/ACLineSegment.cpp deleted file mode 100644 index 0891e1392..000000000 --- a/CGMES_2.4.13_18DEC2013/ACLineSegment.cpp +++ /dev/null @@ -1,176 +0,0 @@ -#include -#include "Conductor.hpp" -#include "ACLineSegment.hpp" - -#include "Susceptance.hpp" -#include "Susceptance.hpp" -#include "Conductance.hpp" -#include "Conductance.hpp" -#include "Resistance.hpp" -#include "Resistance.hpp" -#include "Temperature.hpp" -#include "Reactance.hpp" -#include "Reactance.hpp" - -using namespace CIMPP; - -ACLineSegment::ACLineSegment() {}; - -ACLineSegment::~ACLineSegment() {}; - - - - - - - - - - - - -bool assign_ACLineSegment_b0ch(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ACLineSegment* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->b0ch; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ACLineSegment_bch(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ACLineSegment* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->bch; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ACLineSegment_g0ch(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ACLineSegment* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->g0ch; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ACLineSegment_gch(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ACLineSegment* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gch; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ACLineSegment_r(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ACLineSegment* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->r; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ACLineSegment_r0(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ACLineSegment* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->r0; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ACLineSegment_shortCircuitEndTemperature(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ACLineSegment* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->shortCircuitEndTemperature; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ACLineSegment_x(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ACLineSegment* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->x; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ACLineSegment_x0(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ACLineSegment* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->x0; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ACLineSegment_factory() { - return new ACLineSegment; - } -} - -void ACLineSegment::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ACLineSegment"), &ACLineSegment_factory)); -} - -void ACLineSegment::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ACLineSegment.b0ch"), &assign_ACLineSegment_b0ch)); - assign_map.insert(std::make_pair(std::string("cim:ACLineSegment.bch"), &assign_ACLineSegment_bch)); - assign_map.insert(std::make_pair(std::string("cim:ACLineSegment.g0ch"), &assign_ACLineSegment_g0ch)); - assign_map.insert(std::make_pair(std::string("cim:ACLineSegment.gch"), &assign_ACLineSegment_gch)); - assign_map.insert(std::make_pair(std::string("cim:ACLineSegment.r"), &assign_ACLineSegment_r)); - assign_map.insert(std::make_pair(std::string("cim:ACLineSegment.r0"), &assign_ACLineSegment_r0)); - assign_map.insert(std::make_pair(std::string("cim:ACLineSegment.shortCircuitEndTemperature"), &assign_ACLineSegment_shortCircuitEndTemperature)); - assign_map.insert(std::make_pair(std::string("cim:ACLineSegment.x"), &assign_ACLineSegment_x)); - assign_map.insert(std::make_pair(std::string("cim:ACLineSegment.x0"), &assign_ACLineSegment_x0)); -} - -void ACLineSegment::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char ACLineSegment::debugName[] = "ACLineSegment"; -const char* ACLineSegment::debugString() -{ - return ACLineSegment::debugName; -} - -const BaseClassDefiner ACLineSegment::declare() -{ - return BaseClassDefiner(ACLineSegment::addConstructToMap, ACLineSegment::addPrimitiveAssignFnsToMap, ACLineSegment::addClassAssignFnsToMap, ACLineSegment::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ACLineSegment.hpp b/CGMES_2.4.13_18DEC2013/ACLineSegment.hpp deleted file mode 100644 index 9a9217228..000000000 --- a/CGMES_2.4.13_18DEC2013/ACLineSegment.hpp +++ /dev/null @@ -1,52 +0,0 @@ -#ifndef ACLineSegment_H -#define ACLineSegment_H - -#include "Conductor.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Susceptance.hpp" -#include "Conductance.hpp" -#include "Resistance.hpp" -#include "Temperature.hpp" -#include "Reactance.hpp" - -namespace CIMPP { - - - /* - A wire or combination of wires, with consistent electrical characteristics, building a single electrical system, used to carry alternating current between points in the power system. For symmetrical, transposed 3ph lines, it is sufficient to use attributes of the line segment, which describe impedances and admittances for the entire length of the segment. Additionally impedances can be computed by using length and associated per length impedances. The BaseVoltage at the two ends of ACLineSegments in a Line shall have the same BaseVoltage.nominalVoltage. However, boundary lines may have slightly different BaseVoltage.nominalVoltages and variation is allowed. Larger voltage difference in general requires use of an equivalent branch. - */ - class ACLineSegment: public Conductor - { - - public: - CIMPP::Susceptance b0ch; /* Zero sequence shunt (charging) susceptance, uniformly distributed, of the entire line section. Default: nullptr */ - CIMPP::Susceptance bch; /* Positive sequence shunt (charging) susceptance, uniformly distributed, of the entire line section. This value represents the full charging over the full length of the line. Default: nullptr */ - CIMPP::Conductance g0ch; /* Zero sequence shunt (charging) conductance, uniformly distributed, of the entire line section. Default: nullptr */ - CIMPP::Conductance gch; /* Positive sequence shunt (charging) conductance, uniformly distributed, of the entire line section. Default: nullptr */ - CIMPP::Resistance r; /* Positive sequence series resistance of the entire line section. Default: nullptr */ - CIMPP::Resistance r0; /* Zero sequence series resistance of the entire line section. Default: nullptr */ - CIMPP::Temperature shortCircuitEndTemperature; /* Maximum permitted temperature at the end of SC for the calculation of minimum short-circuit currents. Used for short circuit data exchange according to IEC 60909 Default: nullptr */ - CIMPP::Reactance x; /* Positive sequence series reactance of the entire line section. Default: nullptr */ - CIMPP::Reactance x0; /* Zero sequence series reactance of the entire line section. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ACLineSegment(); - virtual ~ACLineSegment(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ACLineSegment_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/Accumulator.cpp b/CGMES_2.4.13_18DEC2013/Accumulator.cpp deleted file mode 100644 index 0b9c386bb..000000000 --- a/CGMES_2.4.13_18DEC2013/Accumulator.cpp +++ /dev/null @@ -1,67 +0,0 @@ -#include -#include "Measurement.hpp" -#include "Accumulator.hpp" - -#include "AccumulatorLimitSet.hpp" -#include "AccumulatorValue.hpp" - -using namespace CIMPP; - -Accumulator::Accumulator() {}; - -Accumulator::~Accumulator() {}; - - -bool assign_Accumulator_LimitSets(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(Accumulator* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->LimitSets.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_Accumulator_AccumulatorValues(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(Accumulator* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->AccumulatorValues.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - - - -namespace CIMPP { - BaseClass* Accumulator_factory() { - return new Accumulator; - } -} - -void Accumulator::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:Accumulator"), &Accumulator_factory)); -} - -void Accumulator::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void Accumulator::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:Accumulator.LimitSets"), &assign_Accumulator_LimitSets)); - assign_map.insert(std::make_pair(std::string("cim:Accumulator.AccumulatorValues"), &assign_Accumulator_AccumulatorValues)); -} - -const char Accumulator::debugName[] = "Accumulator"; -const char* Accumulator::debugString() -{ - return Accumulator::debugName; -} - -const BaseClassDefiner Accumulator::declare() -{ - return BaseClassDefiner(Accumulator::addConstructToMap, Accumulator::addPrimitiveAssignFnsToMap, Accumulator::addClassAssignFnsToMap, Accumulator::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/Accumulator.hpp b/CGMES_2.4.13_18DEC2013/Accumulator.hpp deleted file mode 100644 index e1cf32557..000000000 --- a/CGMES_2.4.13_18DEC2013/Accumulator.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef Accumulator_H -#define Accumulator_H - -#include "Measurement.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class AccumulatorLimitSet; -class AccumulatorValue; - /* - Accumulator represents an accumulated (counted) Measurement, e.g. an energy value. - */ - class Accumulator: public Measurement - { - - public: - std::list LimitSets; /* The Measurements using the LimitSet. Default: 0 */ - std::list AccumulatorValues; /* Measurement to which this value is connected. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - Accumulator(); - virtual ~Accumulator(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* Accumulator_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/AccumulatorLimit.cpp b/CGMES_2.4.13_18DEC2013/AccumulatorLimit.cpp deleted file mode 100644 index 679b05eaf..000000000 --- a/CGMES_2.4.13_18DEC2013/AccumulatorLimit.cpp +++ /dev/null @@ -1,69 +0,0 @@ -#include -#include "Limit.hpp" -#include "AccumulatorLimit.hpp" - -#include "Integer.hpp" -#include "AccumulatorLimitSet.hpp" - -using namespace CIMPP; - -AccumulatorLimit::AccumulatorLimit(): LimitSet(nullptr) {}; - -AccumulatorLimit::~AccumulatorLimit() {}; - - - -bool assign_AccumulatorLimitSet_Limits(BaseClass*, BaseClass*); -bool assign_AccumulatorLimit_LimitSet(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(AccumulatorLimit* element = dynamic_cast(BaseClass_ptr1)) { - element->LimitSet = dynamic_cast(BaseClass_ptr2); - if(element->LimitSet != nullptr) - return assign_AccumulatorLimitSet_Limits(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - -bool assign_AccumulatorLimit_value(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(AccumulatorLimit* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -namespace CIMPP { - BaseClass* AccumulatorLimit_factory() { - return new AccumulatorLimit; - } -} - -void AccumulatorLimit::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:AccumulatorLimit"), &AccumulatorLimit_factory)); -} - -void AccumulatorLimit::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:AccumulatorLimit.value"), &assign_AccumulatorLimit_value)); - } - -void AccumulatorLimit::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:AccumulatorLimit.LimitSet"), &assign_AccumulatorLimit_LimitSet)); -} - -const char AccumulatorLimit::debugName[] = "AccumulatorLimit"; -const char* AccumulatorLimit::debugString() -{ - return AccumulatorLimit::debugName; -} - -const BaseClassDefiner AccumulatorLimit::declare() -{ - return BaseClassDefiner(AccumulatorLimit::addConstructToMap, AccumulatorLimit::addPrimitiveAssignFnsToMap, AccumulatorLimit::addClassAssignFnsToMap, AccumulatorLimit::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/AccumulatorLimit.hpp b/CGMES_2.4.13_18DEC2013/AccumulatorLimit.hpp deleted file mode 100644 index 33542e26a..000000000 --- a/CGMES_2.4.13_18DEC2013/AccumulatorLimit.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef AccumulatorLimit_H -#define AccumulatorLimit_H - -#include "Limit.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Integer.hpp" - -namespace CIMPP { - - -class AccumulatorLimitSet; - /* - Limit values for Accumulator measurements. - */ - class AccumulatorLimit: public Limit - { - - public: - CIMPP::Integer value; /* The value to supervise against. The value is positive. Default: 0 */ - CIMPP::AccumulatorLimitSet* LimitSet; /* The limit values used for supervision of Measurements. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - AccumulatorLimit(); - virtual ~AccumulatorLimit(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* AccumulatorLimit_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/AccumulatorLimitSet.cpp b/CGMES_2.4.13_18DEC2013/AccumulatorLimitSet.cpp deleted file mode 100644 index 151eb0d61..000000000 --- a/CGMES_2.4.13_18DEC2013/AccumulatorLimitSet.cpp +++ /dev/null @@ -1,82 +0,0 @@ -#include -#include "LimitSet.hpp" -#include "AccumulatorLimitSet.hpp" - -#include "Accumulator.hpp" -#include "AccumulatorLimit.hpp" -#include "Boolean.hpp" - -using namespace CIMPP; - -AccumulatorLimitSet::AccumulatorLimitSet() {}; - -AccumulatorLimitSet::~AccumulatorLimitSet() {}; - - -bool assign_AccumulatorLimitSet_Measurements(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(AccumulatorLimitSet* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->Measurements.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_AccumulatorLimitSet_Limits(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(AccumulatorLimitSet* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->Limits.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - - - - -bool assign_AccumulatorLimitSet_isPercentageLimits(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(AccumulatorLimitSet* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->isPercentageLimits; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* AccumulatorLimitSet_factory() { - return new AccumulatorLimitSet; - } -} - -void AccumulatorLimitSet::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:AccumulatorLimitSet"), &AccumulatorLimitSet_factory)); -} - -void AccumulatorLimitSet::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:AccumulatorLimitSet.isPercentageLimits"), &assign_AccumulatorLimitSet_isPercentageLimits)); -} - -void AccumulatorLimitSet::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:AccumulatorLimitSet.Measurements"), &assign_AccumulatorLimitSet_Measurements)); - assign_map.insert(std::make_pair(std::string("cim:AccumulatorLimitSet.Limits"), &assign_AccumulatorLimitSet_Limits)); - } - -const char AccumulatorLimitSet::debugName[] = "AccumulatorLimitSet"; -const char* AccumulatorLimitSet::debugString() -{ - return AccumulatorLimitSet::debugName; -} - -const BaseClassDefiner AccumulatorLimitSet::declare() -{ - return BaseClassDefiner(AccumulatorLimitSet::addConstructToMap, AccumulatorLimitSet::addPrimitiveAssignFnsToMap, AccumulatorLimitSet::addClassAssignFnsToMap, AccumulatorLimitSet::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/AccumulatorLimitSet.hpp b/CGMES_2.4.13_18DEC2013/AccumulatorLimitSet.hpp deleted file mode 100644 index 3e7f31953..000000000 --- a/CGMES_2.4.13_18DEC2013/AccumulatorLimitSet.hpp +++ /dev/null @@ -1,44 +0,0 @@ -#ifndef AccumulatorLimitSet_H -#define AccumulatorLimitSet_H - -#include "LimitSet.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Boolean.hpp" - -namespace CIMPP { - - -class Accumulator; -class AccumulatorLimit; - /* - An AccumulatorLimitSet specifies a set of Limits that are associated with an Accumulator measurement. - */ - class AccumulatorLimitSet: public LimitSet - { - - public: - std::list Measurements; /* A measurement may have zero or more limit ranges defined for it. Default: 0 */ - std::list Limits; /* The set of limits. Default: 0 */ - CIMPP::Boolean isPercentageLimits; /* Tells if the limit values are in percentage of normalValue or the specified Unit for Measurements and Controls. Default: false */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - AccumulatorLimitSet(); - virtual ~AccumulatorLimitSet(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* AccumulatorLimitSet_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/AccumulatorReset.cpp b/CGMES_2.4.13_18DEC2013/AccumulatorReset.cpp deleted file mode 100644 index cdfd14736..000000000 --- a/CGMES_2.4.13_18DEC2013/AccumulatorReset.cpp +++ /dev/null @@ -1,54 +0,0 @@ -#include -#include "Control.hpp" -#include "AccumulatorReset.hpp" - -#include "AccumulatorValue.hpp" - -using namespace CIMPP; - -AccumulatorReset::AccumulatorReset(): AccumulatorValue(nullptr) {}; - -AccumulatorReset::~AccumulatorReset() {}; - - -bool assign_AccumulatorValue_AccumulatorReset(BaseClass*, BaseClass*); -bool assign_AccumulatorReset_AccumulatorValue(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(AccumulatorReset* element = dynamic_cast(BaseClass_ptr1)) { - element->AccumulatorValue = dynamic_cast(BaseClass_ptr2); - if(element->AccumulatorValue != nullptr) - return assign_AccumulatorValue_AccumulatorReset(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - -namespace CIMPP { - BaseClass* AccumulatorReset_factory() { - return new AccumulatorReset; - } -} - -void AccumulatorReset::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:AccumulatorReset"), &AccumulatorReset_factory)); -} - -void AccumulatorReset::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void AccumulatorReset::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:AccumulatorReset.AccumulatorValue"), &assign_AccumulatorReset_AccumulatorValue)); -} - -const char AccumulatorReset::debugName[] = "AccumulatorReset"; -const char* AccumulatorReset::debugString() -{ - return AccumulatorReset::debugName; -} - -const BaseClassDefiner AccumulatorReset::declare() -{ - return BaseClassDefiner(AccumulatorReset::addConstructToMap, AccumulatorReset::addPrimitiveAssignFnsToMap, AccumulatorReset::addClassAssignFnsToMap, AccumulatorReset::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/AccumulatorReset.hpp b/CGMES_2.4.13_18DEC2013/AccumulatorReset.hpp deleted file mode 100644 index 176064b6c..000000000 --- a/CGMES_2.4.13_18DEC2013/AccumulatorReset.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef AccumulatorReset_H -#define AccumulatorReset_H - -#include "Control.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class AccumulatorValue; - /* - This command reset the counter value to zero. - */ - class AccumulatorReset: public Control - { - - public: - CIMPP::AccumulatorValue* AccumulatorValue; /* The accumulator value that is reset by the command. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - AccumulatorReset(); - virtual ~AccumulatorReset(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* AccumulatorReset_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/AccumulatorValue.cpp b/CGMES_2.4.13_18DEC2013/AccumulatorValue.cpp deleted file mode 100644 index ccb4f0df1..000000000 --- a/CGMES_2.4.13_18DEC2013/AccumulatorValue.cpp +++ /dev/null @@ -1,81 +0,0 @@ -#include -#include "MeasurementValue.hpp" -#include "AccumulatorValue.hpp" - -#include "Accumulator.hpp" -#include "AccumulatorReset.hpp" -#include "Integer.hpp" - -using namespace CIMPP; - -AccumulatorValue::AccumulatorValue(): Accumulator(nullptr), AccumulatorReset(nullptr) {}; - -AccumulatorValue::~AccumulatorValue() {}; - - -bool assign_Accumulator_AccumulatorValues(BaseClass*, BaseClass*); -bool assign_AccumulatorValue_Accumulator(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(AccumulatorValue* element = dynamic_cast(BaseClass_ptr1)) { - element->Accumulator = dynamic_cast(BaseClass_ptr2); - if(element->Accumulator != nullptr) - return assign_Accumulator_AccumulatorValues(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_AccumulatorValue_AccumulatorReset(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(AccumulatorValue* element = dynamic_cast(BaseClass_ptr1)) { - element->AccumulatorReset = dynamic_cast(BaseClass_ptr2); - if(element->AccumulatorReset != nullptr) - return true; - } - return false; -} - - - - - -bool assign_AccumulatorValue_value(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(AccumulatorValue* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* AccumulatorValue_factory() { - return new AccumulatorValue; - } -} - -void AccumulatorValue::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:AccumulatorValue"), &AccumulatorValue_factory)); -} - -void AccumulatorValue::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:AccumulatorValue.value"), &assign_AccumulatorValue_value)); -} - -void AccumulatorValue::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:AccumulatorValue.Accumulator"), &assign_AccumulatorValue_Accumulator)); - assign_map.insert(std::make_pair(std::string("cim:AccumulatorValue.AccumulatorReset"), &assign_AccumulatorValue_AccumulatorReset)); - } - -const char AccumulatorValue::debugName[] = "AccumulatorValue"; -const char* AccumulatorValue::debugString() -{ - return AccumulatorValue::debugName; -} - -const BaseClassDefiner AccumulatorValue::declare() -{ - return BaseClassDefiner(AccumulatorValue::addConstructToMap, AccumulatorValue::addPrimitiveAssignFnsToMap, AccumulatorValue::addClassAssignFnsToMap, AccumulatorValue::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/AccumulatorValue.hpp b/CGMES_2.4.13_18DEC2013/AccumulatorValue.hpp deleted file mode 100644 index a9b97b547..000000000 --- a/CGMES_2.4.13_18DEC2013/AccumulatorValue.hpp +++ /dev/null @@ -1,44 +0,0 @@ -#ifndef AccumulatorValue_H -#define AccumulatorValue_H - -#include "MeasurementValue.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Integer.hpp" - -namespace CIMPP { - - -class Accumulator; -class AccumulatorReset; - /* - AccumulatorValue represents an accumulated (counted) MeasurementValue. - */ - class AccumulatorValue: public MeasurementValue - { - - public: - CIMPP::Accumulator* Accumulator; /* The values connected to this measurement. Default: 0 */ - CIMPP::AccumulatorReset* AccumulatorReset; /* The command that reset the accumulator value. Default: 0 */ - CIMPP::Integer value; /* The value to supervise. The value is positive. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - AccumulatorValue(); - virtual ~AccumulatorValue(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* AccumulatorValue_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ActivePower.cpp b/CGMES_2.4.13_18DEC2013/ActivePower.cpp deleted file mode 100644 index e422a62cc..000000000 --- a/CGMES_2.4.13_18DEC2013/ActivePower.cpp +++ /dev/null @@ -1,70 +0,0 @@ -#include "ActivePower.hpp" -#include "../src/CIMExceptions.hpp" - -using namespace CIMPP; - -ActivePower::ActivePower() {} - -ActivePower::~ActivePower(){} - -ActivePower::ActivePower(long double value) : value(value), initialized(true) {} - -void ActivePower::addConstructToMap(std::unordered_map& factory_map) {} - -void ActivePower::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) {} - -void ActivePower::addClassAssignFnsToMap(std::unordered_map& assign_map) {} - -const char ActivePower::debugName[] = "ActivePower"; -const char* ActivePower::debugString() { - return ActivePower::debugName; -} - - -const BaseClassDefiner ActivePower::declare() { - return BaseClassDefiner(ActivePower::addConstructToMap, ActivePower::addPrimitiveAssignFnsToMap, ActivePower::addClassAssignFnsToMap, ActivePower::debugName); -} - -namespace CIMPP { - ActivePower& ActivePower::operator=(long double &rop) { - value = rop; - initialized = true; - return *this; - } - - ActivePower& ActivePower::operator-=(const ActivePower& rhs) { - value -= rhs.value; - return *this; - } - - ActivePower& ActivePower::operator*=(const ActivePower& rhs) { - value *= rhs.value; - return *this; - } - - ActivePower& ActivePower::operator/=(const ActivePower& rhs) { - value /= rhs.value; - return *this; - } - - ActivePower& ActivePower::operator+=(const ActivePower& rhs) { - value += rhs.value; - return *this; - } - - ActivePower::operator long double() { - if(!initialized) - { - throw new ReadingUninitializedField(); - } - return value; - } - - std::istream& operator>>(std::istream& lop, ActivePower& rop) { - std::string tmp; - lop >> tmp; - rop.value = stold(tmp); - rop.initialized = true; - return lop; - } -} diff --git a/CGMES_2.4.13_18DEC2013/ActivePower.hpp b/CGMES_2.4.13_18DEC2013/ActivePower.hpp deleted file mode 100644 index 06e848e44..000000000 --- a/CGMES_2.4.13_18DEC2013/ActivePower.hpp +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef ActivePower_H -#define ActivePower_H - -#include -#include - -#include "BaseClass.hpp" - -namespace CIMPP -{ - class ActivePower : public BaseClass - { - - public: - ActivePower(); - virtual ~ActivePower(); - ActivePower(long double value); - static const BaseClassDefiner declare(); - ActivePower& operator=(long double &rop); - ActivePower& operator+=(const ActivePower& rhs); - ActivePower& operator-=(const ActivePower& rhs); - ActivePower& operator*=(const ActivePower& rhs); - ActivePower& operator/=(const ActivePower& rhs); - friend std::istream& operator>>(std::istream& lop, ActivePower& rop); - operator long double(); - - long double value = 0.0; - bool initialized = false; - - static const char debugName[]; - virtual const char* debugString(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - }; -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ActivePowerLimit.cpp b/CGMES_2.4.13_18DEC2013/ActivePowerLimit.cpp deleted file mode 100644 index 6697e04c8..000000000 --- a/CGMES_2.4.13_18DEC2013/ActivePowerLimit.cpp +++ /dev/null @@ -1,56 +0,0 @@ -#include -#include "OperationalLimit.hpp" -#include "ActivePowerLimit.hpp" - -#include "ActivePower.hpp" - -using namespace CIMPP; - -ActivePowerLimit::ActivePowerLimit() {}; - -ActivePowerLimit::~ActivePowerLimit() {}; - - - - -bool assign_ActivePowerLimit_value(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ActivePowerLimit* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ActivePowerLimit_factory() { - return new ActivePowerLimit; - } -} - -void ActivePowerLimit::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ActivePowerLimit"), &ActivePowerLimit_factory)); -} - -void ActivePowerLimit::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ActivePowerLimit.value"), &assign_ActivePowerLimit_value)); -} - -void ActivePowerLimit::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char ActivePowerLimit::debugName[] = "ActivePowerLimit"; -const char* ActivePowerLimit::debugString() -{ - return ActivePowerLimit::debugName; -} - -const BaseClassDefiner ActivePowerLimit::declare() -{ - return BaseClassDefiner(ActivePowerLimit::addConstructToMap, ActivePowerLimit::addPrimitiveAssignFnsToMap, ActivePowerLimit::addClassAssignFnsToMap, ActivePowerLimit::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ActivePowerLimit.hpp b/CGMES_2.4.13_18DEC2013/ActivePowerLimit.hpp deleted file mode 100644 index 5c0a031b9..000000000 --- a/CGMES_2.4.13_18DEC2013/ActivePowerLimit.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef ActivePowerLimit_H -#define ActivePowerLimit_H - -#include "OperationalLimit.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "ActivePower.hpp" - -namespace CIMPP { - - - /* - Limit on active power flow. - */ - class ActivePowerLimit: public OperationalLimit - { - - public: - CIMPP::ActivePower value; /* Value of active power limit. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ActivePowerLimit(); - virtual ~ActivePowerLimit(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ActivePowerLimit_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ActivePowerPerFrequency.cpp b/CGMES_2.4.13_18DEC2013/ActivePowerPerFrequency.cpp deleted file mode 100644 index c9a075670..000000000 --- a/CGMES_2.4.13_18DEC2013/ActivePowerPerFrequency.cpp +++ /dev/null @@ -1,113 +0,0 @@ -#include -#include "BaseClass.hpp" -#include "ActivePowerPerFrequency.hpp" - -#include "UnitMultiplier.hpp" -#include "UnitSymbol.hpp" -#include "UnitMultiplier.hpp" -#include "UnitSymbol.hpp" -#include "Float.hpp" - -using namespace CIMPP; - -ActivePowerPerFrequency::ActivePowerPerFrequency(): value(nullptr) {}; - -ActivePowerPerFrequency::~ActivePowerPerFrequency() {}; - - - - - - -bool assign_ActivePowerPerFrequency_value(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ActivePowerPerFrequency* element = dynamic_cast(BaseClass_ptr1)) { - element->value = dynamic_cast(BaseClass_ptr2); - if(element->value != nullptr) - return true; - } - return false; -} - - -bool assign_ActivePowerPerFrequency_denominatorMultiplier(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ActivePowerPerFrequency* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->denominatorMultiplier; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ActivePowerPerFrequency_denominatorUnit(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ActivePowerPerFrequency* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->denominatorUnit; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ActivePowerPerFrequency_multiplier(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ActivePowerPerFrequency* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->multiplier; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ActivePowerPerFrequency_unit(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ActivePowerPerFrequency* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->unit; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -namespace CIMPP { - BaseClass* ActivePowerPerFrequency_factory() { - return new ActivePowerPerFrequency; - } -} - -void ActivePowerPerFrequency::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ActivePowerPerFrequency"), &ActivePowerPerFrequency_factory)); -} - -void ActivePowerPerFrequency::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ActivePowerPerFrequency.denominatorMultiplier"), &assign_ActivePowerPerFrequency_denominatorMultiplier)); - assign_map.insert(std::make_pair(std::string("cim:ActivePowerPerFrequency.denominatorUnit"), &assign_ActivePowerPerFrequency_denominatorUnit)); - assign_map.insert(std::make_pair(std::string("cim:ActivePowerPerFrequency.multiplier"), &assign_ActivePowerPerFrequency_multiplier)); - assign_map.insert(std::make_pair(std::string("cim:ActivePowerPerFrequency.unit"), &assign_ActivePowerPerFrequency_unit)); - } - -void ActivePowerPerFrequency::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ActivePowerPerFrequency.value"), &assign_ActivePowerPerFrequency_value)); -} - -const char ActivePowerPerFrequency::debugName[] = "ActivePowerPerFrequency"; -const char* ActivePowerPerFrequency::debugString() -{ - return ActivePowerPerFrequency::debugName; -} - -const BaseClassDefiner ActivePowerPerFrequency::declare() -{ - return BaseClassDefiner(ActivePowerPerFrequency::addConstructToMap, ActivePowerPerFrequency::addPrimitiveAssignFnsToMap, ActivePowerPerFrequency::addClassAssignFnsToMap, ActivePowerPerFrequency::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ActivePowerPerFrequency.hpp b/CGMES_2.4.13_18DEC2013/ActivePowerPerFrequency.hpp deleted file mode 100644 index 51127c5dd..000000000 --- a/CGMES_2.4.13_18DEC2013/ActivePowerPerFrequency.hpp +++ /dev/null @@ -1,46 +0,0 @@ -#ifndef ActivePowerPerFrequency_H -#define ActivePowerPerFrequency_H - -#include "BaseClass.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "UnitMultiplier.hpp" -#include "UnitSymbol.hpp" - -namespace CIMPP { - - -class Float; - /* - Active power variation with frequency. - */ - class ActivePowerPerFrequency: public BaseClass - { - - public: - CIMPP::UnitMultiplier denominatorMultiplier; /* Default: 0 */ - CIMPP::UnitSymbol denominatorUnit; /* Default: 0 */ - CIMPP::UnitMultiplier multiplier; /* Default: 0 */ - CIMPP::UnitSymbol unit; /* Default: 0 */ - CIMPP::Float* value; /* Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ActivePowerPerFrequency(); - virtual ~ActivePowerPerFrequency(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ActivePowerPerFrequency_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/Analog.cpp b/CGMES_2.4.13_18DEC2013/Analog.cpp deleted file mode 100644 index a4770d988..000000000 --- a/CGMES_2.4.13_18DEC2013/Analog.cpp +++ /dev/null @@ -1,82 +0,0 @@ -#include -#include "Measurement.hpp" -#include "Analog.hpp" - -#include "Boolean.hpp" -#include "AnalogValue.hpp" -#include "AnalogLimitSet.hpp" - -using namespace CIMPP; - -Analog::Analog() {}; - -Analog::~Analog() {}; - - - -bool assign_Analog_AnalogValues(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(Analog* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->AnalogValues.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_Analog_LimitSets(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(Analog* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->LimitSets.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - -bool assign_Analog_positiveFlowIn(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Analog* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->positiveFlowIn; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - - -namespace CIMPP { - BaseClass* Analog_factory() { - return new Analog; - } -} - -void Analog::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:Analog"), &Analog_factory)); -} - -void Analog::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:Analog.positiveFlowIn"), &assign_Analog_positiveFlowIn)); - } - -void Analog::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:Analog.AnalogValues"), &assign_Analog_AnalogValues)); - assign_map.insert(std::make_pair(std::string("cim:Analog.LimitSets"), &assign_Analog_LimitSets)); -} - -const char Analog::debugName[] = "Analog"; -const char* Analog::debugString() -{ - return Analog::debugName; -} - -const BaseClassDefiner Analog::declare() -{ - return BaseClassDefiner(Analog::addConstructToMap, Analog::addPrimitiveAssignFnsToMap, Analog::addClassAssignFnsToMap, Analog::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/Analog.hpp b/CGMES_2.4.13_18DEC2013/Analog.hpp deleted file mode 100644 index 38bdaa8ab..000000000 --- a/CGMES_2.4.13_18DEC2013/Analog.hpp +++ /dev/null @@ -1,44 +0,0 @@ -#ifndef Analog_H -#define Analog_H - -#include "Measurement.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Boolean.hpp" - -namespace CIMPP { - - -class AnalogValue; -class AnalogLimitSet; - /* - Analog represents an analog Measurement. - */ - class Analog: public Measurement - { - - public: - CIMPP::Boolean positiveFlowIn; /* If true then this measurement is an active power, reactive power or current with the convention that a positive value measured at the Terminal means power is flowing into the related PowerSystemResource. Default: false */ - std::list AnalogValues; /* Measurement to which this value is connected. Default: 0 */ - std::list LimitSets; /* The Measurements using the LimitSet. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - Analog(); - virtual ~Analog(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* Analog_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/AnalogControl.cpp b/CGMES_2.4.13_18DEC2013/AnalogControl.cpp deleted file mode 100644 index c376b103f..000000000 --- a/CGMES_2.4.13_18DEC2013/AnalogControl.cpp +++ /dev/null @@ -1,84 +0,0 @@ -#include -#include "Control.hpp" -#include "AnalogControl.hpp" - -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "AnalogValue.hpp" - -using namespace CIMPP; - -AnalogControl::AnalogControl(): AnalogValue(nullptr) {}; - -AnalogControl::~AnalogControl() {}; - - - - -bool assign_AnalogValue_AnalogControl(BaseClass*, BaseClass*); -bool assign_AnalogControl_AnalogValue(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(AnalogControl* element = dynamic_cast(BaseClass_ptr1)) { - element->AnalogValue = dynamic_cast(BaseClass_ptr2); - if(element->AnalogValue != nullptr) - return assign_AnalogValue_AnalogControl(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - -bool assign_AnalogControl_maxValue(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(AnalogControl* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->maxValue; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_AnalogControl_minValue(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(AnalogControl* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->minValue; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -namespace CIMPP { - BaseClass* AnalogControl_factory() { - return new AnalogControl; - } -} - -void AnalogControl::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:AnalogControl"), &AnalogControl_factory)); -} - -void AnalogControl::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:AnalogControl.maxValue"), &assign_AnalogControl_maxValue)); - assign_map.insert(std::make_pair(std::string("cim:AnalogControl.minValue"), &assign_AnalogControl_minValue)); - } - -void AnalogControl::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:AnalogControl.AnalogValue"), &assign_AnalogControl_AnalogValue)); -} - -const char AnalogControl::debugName[] = "AnalogControl"; -const char* AnalogControl::debugString() -{ - return AnalogControl::debugName; -} - -const BaseClassDefiner AnalogControl::declare() -{ - return BaseClassDefiner(AnalogControl::addConstructToMap, AnalogControl::addPrimitiveAssignFnsToMap, AnalogControl::addClassAssignFnsToMap, AnalogControl::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/AnalogControl.hpp b/CGMES_2.4.13_18DEC2013/AnalogControl.hpp deleted file mode 100644 index 6be2810ab..000000000 --- a/CGMES_2.4.13_18DEC2013/AnalogControl.hpp +++ /dev/null @@ -1,43 +0,0 @@ -#ifndef AnalogControl_H -#define AnalogControl_H - -#include "Control.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Simple_Float.hpp" - -namespace CIMPP { - - -class AnalogValue; - /* - An analog control used for supervisory control. - */ - class AnalogControl: public Control - { - - public: - CIMPP::Simple_Float maxValue; /* Normal value range maximum for any of the Control.value. Used for scaling, e.g. in bar graphs. Default: nullptr */ - CIMPP::Simple_Float minValue; /* Normal value range minimum for any of the Control.value. Used for scaling, e.g. in bar graphs. Default: nullptr */ - CIMPP::AnalogValue* AnalogValue; /* The Control variable associated with the MeasurementValue. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - AnalogControl(); - virtual ~AnalogControl(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* AnalogControl_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/AnalogLimit.cpp b/CGMES_2.4.13_18DEC2013/AnalogLimit.cpp deleted file mode 100644 index c71b50087..000000000 --- a/CGMES_2.4.13_18DEC2013/AnalogLimit.cpp +++ /dev/null @@ -1,69 +0,0 @@ -#include -#include "Limit.hpp" -#include "AnalogLimit.hpp" - -#include "Simple_Float.hpp" -#include "AnalogLimitSet.hpp" - -using namespace CIMPP; - -AnalogLimit::AnalogLimit(): LimitSet(nullptr) {}; - -AnalogLimit::~AnalogLimit() {}; - - - -bool assign_AnalogLimitSet_Limits(BaseClass*, BaseClass*); -bool assign_AnalogLimit_LimitSet(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(AnalogLimit* element = dynamic_cast(BaseClass_ptr1)) { - element->LimitSet = dynamic_cast(BaseClass_ptr2); - if(element->LimitSet != nullptr) - return assign_AnalogLimitSet_Limits(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - -bool assign_AnalogLimit_value(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(AnalogLimit* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -namespace CIMPP { - BaseClass* AnalogLimit_factory() { - return new AnalogLimit; - } -} - -void AnalogLimit::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:AnalogLimit"), &AnalogLimit_factory)); -} - -void AnalogLimit::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:AnalogLimit.value"), &assign_AnalogLimit_value)); - } - -void AnalogLimit::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:AnalogLimit.LimitSet"), &assign_AnalogLimit_LimitSet)); -} - -const char AnalogLimit::debugName[] = "AnalogLimit"; -const char* AnalogLimit::debugString() -{ - return AnalogLimit::debugName; -} - -const BaseClassDefiner AnalogLimit::declare() -{ - return BaseClassDefiner(AnalogLimit::addConstructToMap, AnalogLimit::addPrimitiveAssignFnsToMap, AnalogLimit::addClassAssignFnsToMap, AnalogLimit::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/AnalogLimit.hpp b/CGMES_2.4.13_18DEC2013/AnalogLimit.hpp deleted file mode 100644 index 966da9276..000000000 --- a/CGMES_2.4.13_18DEC2013/AnalogLimit.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef AnalogLimit_H -#define AnalogLimit_H - -#include "Limit.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Simple_Float.hpp" - -namespace CIMPP { - - -class AnalogLimitSet; - /* - Limit values for Analog measurements. - */ - class AnalogLimit: public Limit - { - - public: - CIMPP::Simple_Float value; /* The value to supervise against. Default: nullptr */ - CIMPP::AnalogLimitSet* LimitSet; /* The limit values used for supervision of Measurements. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - AnalogLimit(); - virtual ~AnalogLimit(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* AnalogLimit_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/AnalogLimitSet.cpp b/CGMES_2.4.13_18DEC2013/AnalogLimitSet.cpp deleted file mode 100644 index a4e016f3e..000000000 --- a/CGMES_2.4.13_18DEC2013/AnalogLimitSet.cpp +++ /dev/null @@ -1,82 +0,0 @@ -#include -#include "LimitSet.hpp" -#include "AnalogLimitSet.hpp" - -#include "Analog.hpp" -#include "AnalogLimit.hpp" -#include "Boolean.hpp" - -using namespace CIMPP; - -AnalogLimitSet::AnalogLimitSet() {}; - -AnalogLimitSet::~AnalogLimitSet() {}; - - -bool assign_AnalogLimitSet_Measurements(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(AnalogLimitSet* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->Measurements.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_AnalogLimitSet_Limits(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(AnalogLimitSet* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->Limits.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - - - - -bool assign_AnalogLimitSet_isPercentageLimits(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(AnalogLimitSet* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->isPercentageLimits; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* AnalogLimitSet_factory() { - return new AnalogLimitSet; - } -} - -void AnalogLimitSet::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:AnalogLimitSet"), &AnalogLimitSet_factory)); -} - -void AnalogLimitSet::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:AnalogLimitSet.isPercentageLimits"), &assign_AnalogLimitSet_isPercentageLimits)); -} - -void AnalogLimitSet::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:AnalogLimitSet.Measurements"), &assign_AnalogLimitSet_Measurements)); - assign_map.insert(std::make_pair(std::string("cim:AnalogLimitSet.Limits"), &assign_AnalogLimitSet_Limits)); - } - -const char AnalogLimitSet::debugName[] = "AnalogLimitSet"; -const char* AnalogLimitSet::debugString() -{ - return AnalogLimitSet::debugName; -} - -const BaseClassDefiner AnalogLimitSet::declare() -{ - return BaseClassDefiner(AnalogLimitSet::addConstructToMap, AnalogLimitSet::addPrimitiveAssignFnsToMap, AnalogLimitSet::addClassAssignFnsToMap, AnalogLimitSet::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/AnalogLimitSet.hpp b/CGMES_2.4.13_18DEC2013/AnalogLimitSet.hpp deleted file mode 100644 index a04ae098d..000000000 --- a/CGMES_2.4.13_18DEC2013/AnalogLimitSet.hpp +++ /dev/null @@ -1,44 +0,0 @@ -#ifndef AnalogLimitSet_H -#define AnalogLimitSet_H - -#include "LimitSet.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Boolean.hpp" - -namespace CIMPP { - - -class Analog; -class AnalogLimit; - /* - An AnalogLimitSet specifies a set of Limits that are associated with an Analog measurement. - */ - class AnalogLimitSet: public LimitSet - { - - public: - std::list Measurements; /* A measurement may have zero or more limit ranges defined for it. Default: 0 */ - std::list Limits; /* The set of limits. Default: 0 */ - CIMPP::Boolean isPercentageLimits; /* Tells if the limit values are in percentage of normalValue or the specified Unit for Measurements and Controls. Default: false */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - AnalogLimitSet(); - virtual ~AnalogLimitSet(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* AnalogLimitSet_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/AnalogValue.cpp b/CGMES_2.4.13_18DEC2013/AnalogValue.cpp deleted file mode 100644 index dc9c42dfa..000000000 --- a/CGMES_2.4.13_18DEC2013/AnalogValue.cpp +++ /dev/null @@ -1,81 +0,0 @@ -#include -#include "MeasurementValue.hpp" -#include "AnalogValue.hpp" - -#include "Analog.hpp" -#include "AnalogControl.hpp" -#include "Simple_Float.hpp" - -using namespace CIMPP; - -AnalogValue::AnalogValue(): Analog(nullptr), AnalogControl(nullptr) {}; - -AnalogValue::~AnalogValue() {}; - - -bool assign_Analog_AnalogValues(BaseClass*, BaseClass*); -bool assign_AnalogValue_Analog(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(AnalogValue* element = dynamic_cast(BaseClass_ptr1)) { - element->Analog = dynamic_cast(BaseClass_ptr2); - if(element->Analog != nullptr) - return assign_Analog_AnalogValues(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_AnalogValue_AnalogControl(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(AnalogValue* element = dynamic_cast(BaseClass_ptr1)) { - element->AnalogControl = dynamic_cast(BaseClass_ptr2); - if(element->AnalogControl != nullptr) - return true; - } - return false; -} - - - - - -bool assign_AnalogValue_value(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(AnalogValue* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* AnalogValue_factory() { - return new AnalogValue; - } -} - -void AnalogValue::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:AnalogValue"), &AnalogValue_factory)); -} - -void AnalogValue::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:AnalogValue.value"), &assign_AnalogValue_value)); -} - -void AnalogValue::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:AnalogValue.Analog"), &assign_AnalogValue_Analog)); - assign_map.insert(std::make_pair(std::string("cim:AnalogValue.AnalogControl"), &assign_AnalogValue_AnalogControl)); - } - -const char AnalogValue::debugName[] = "AnalogValue"; -const char* AnalogValue::debugString() -{ - return AnalogValue::debugName; -} - -const BaseClassDefiner AnalogValue::declare() -{ - return BaseClassDefiner(AnalogValue::addConstructToMap, AnalogValue::addPrimitiveAssignFnsToMap, AnalogValue::addClassAssignFnsToMap, AnalogValue::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/AnalogValue.hpp b/CGMES_2.4.13_18DEC2013/AnalogValue.hpp deleted file mode 100644 index 59d5219e9..000000000 --- a/CGMES_2.4.13_18DEC2013/AnalogValue.hpp +++ /dev/null @@ -1,44 +0,0 @@ -#ifndef AnalogValue_H -#define AnalogValue_H - -#include "MeasurementValue.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Simple_Float.hpp" - -namespace CIMPP { - - -class Analog; -class AnalogControl; - /* - AnalogValue represents an analog MeasurementValue. - */ - class AnalogValue: public MeasurementValue - { - - public: - CIMPP::Analog* Analog; /* The values connected to this measurement. Default: 0 */ - CIMPP::AnalogControl* AnalogControl; /* The MeasurementValue that is controlled. Default: 0 */ - CIMPP::Simple_Float value; /* The value to supervise. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - AnalogValue(); - virtual ~AnalogValue(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* AnalogValue_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/AngleDegrees.cpp b/CGMES_2.4.13_18DEC2013/AngleDegrees.cpp deleted file mode 100644 index 6651b2ed8..000000000 --- a/CGMES_2.4.13_18DEC2013/AngleDegrees.cpp +++ /dev/null @@ -1,70 +0,0 @@ -#include "AngleDegrees.hpp" -#include "../src/CIMExceptions.hpp" - -using namespace CIMPP; - -AngleDegrees::AngleDegrees() {} - -AngleDegrees::~AngleDegrees(){} - -AngleDegrees::AngleDegrees(long double value) : value(value), initialized(true) {} - -void AngleDegrees::addConstructToMap(std::unordered_map& factory_map) {} - -void AngleDegrees::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) {} - -void AngleDegrees::addClassAssignFnsToMap(std::unordered_map& assign_map) {} - -const char AngleDegrees::debugName[] = "AngleDegrees"; -const char* AngleDegrees::debugString() { - return AngleDegrees::debugName; -} - - -const BaseClassDefiner AngleDegrees::declare() { - return BaseClassDefiner(AngleDegrees::addConstructToMap, AngleDegrees::addPrimitiveAssignFnsToMap, AngleDegrees::addClassAssignFnsToMap, AngleDegrees::debugName); -} - -namespace CIMPP { - AngleDegrees& AngleDegrees::operator=(long double &rop) { - value = rop; - initialized = true; - return *this; - } - - AngleDegrees& AngleDegrees::operator-=(const AngleDegrees& rhs) { - value -= rhs.value; - return *this; - } - - AngleDegrees& AngleDegrees::operator*=(const AngleDegrees& rhs) { - value *= rhs.value; - return *this; - } - - AngleDegrees& AngleDegrees::operator/=(const AngleDegrees& rhs) { - value /= rhs.value; - return *this; - } - - AngleDegrees& AngleDegrees::operator+=(const AngleDegrees& rhs) { - value += rhs.value; - return *this; - } - - AngleDegrees::operator long double() { - if(!initialized) - { - throw new ReadingUninitializedField(); - } - return value; - } - - std::istream& operator>>(std::istream& lop, AngleDegrees& rop) { - std::string tmp; - lop >> tmp; - rop.value = stold(tmp); - rop.initialized = true; - return lop; - } -} diff --git a/CGMES_2.4.13_18DEC2013/AngleDegrees.hpp b/CGMES_2.4.13_18DEC2013/AngleDegrees.hpp deleted file mode 100644 index c8603c675..000000000 --- a/CGMES_2.4.13_18DEC2013/AngleDegrees.hpp +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef AngleDegrees_H -#define AngleDegrees_H - -#include -#include - -#include "BaseClass.hpp" - -namespace CIMPP -{ - class AngleDegrees : public BaseClass - { - - public: - AngleDegrees(); - virtual ~AngleDegrees(); - AngleDegrees(long double value); - static const BaseClassDefiner declare(); - AngleDegrees& operator=(long double &rop); - AngleDegrees& operator+=(const AngleDegrees& rhs); - AngleDegrees& operator-=(const AngleDegrees& rhs); - AngleDegrees& operator*=(const AngleDegrees& rhs); - AngleDegrees& operator/=(const AngleDegrees& rhs); - friend std::istream& operator>>(std::istream& lop, AngleDegrees& rop); - operator long double(); - - long double value = 0.0; - bool initialized = false; - - static const char debugName[]; - virtual const char* debugString(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - }; -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/AngleRadians.cpp b/CGMES_2.4.13_18DEC2013/AngleRadians.cpp deleted file mode 100644 index 88132505b..000000000 --- a/CGMES_2.4.13_18DEC2013/AngleRadians.cpp +++ /dev/null @@ -1,70 +0,0 @@ -#include "AngleRadians.hpp" -#include "../src/CIMExceptions.hpp" - -using namespace CIMPP; - -AngleRadians::AngleRadians() {} - -AngleRadians::~AngleRadians(){} - -AngleRadians::AngleRadians(long double value) : value(value), initialized(true) {} - -void AngleRadians::addConstructToMap(std::unordered_map& factory_map) {} - -void AngleRadians::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) {} - -void AngleRadians::addClassAssignFnsToMap(std::unordered_map& assign_map) {} - -const char AngleRadians::debugName[] = "AngleRadians"; -const char* AngleRadians::debugString() { - return AngleRadians::debugName; -} - - -const BaseClassDefiner AngleRadians::declare() { - return BaseClassDefiner(AngleRadians::addConstructToMap, AngleRadians::addPrimitiveAssignFnsToMap, AngleRadians::addClassAssignFnsToMap, AngleRadians::debugName); -} - -namespace CIMPP { - AngleRadians& AngleRadians::operator=(long double &rop) { - value = rop; - initialized = true; - return *this; - } - - AngleRadians& AngleRadians::operator-=(const AngleRadians& rhs) { - value -= rhs.value; - return *this; - } - - AngleRadians& AngleRadians::operator*=(const AngleRadians& rhs) { - value *= rhs.value; - return *this; - } - - AngleRadians& AngleRadians::operator/=(const AngleRadians& rhs) { - value /= rhs.value; - return *this; - } - - AngleRadians& AngleRadians::operator+=(const AngleRadians& rhs) { - value += rhs.value; - return *this; - } - - AngleRadians::operator long double() { - if(!initialized) - { - throw new ReadingUninitializedField(); - } - return value; - } - - std::istream& operator>>(std::istream& lop, AngleRadians& rop) { - std::string tmp; - lop >> tmp; - rop.value = stold(tmp); - rop.initialized = true; - return lop; - } -} diff --git a/CGMES_2.4.13_18DEC2013/AngleRadians.hpp b/CGMES_2.4.13_18DEC2013/AngleRadians.hpp deleted file mode 100644 index 99ad6cce1..000000000 --- a/CGMES_2.4.13_18DEC2013/AngleRadians.hpp +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef AngleRadians_H -#define AngleRadians_H - -#include -#include - -#include "BaseClass.hpp" - -namespace CIMPP -{ - class AngleRadians : public BaseClass - { - - public: - AngleRadians(); - virtual ~AngleRadians(); - AngleRadians(long double value); - static const BaseClassDefiner declare(); - AngleRadians& operator=(long double &rop); - AngleRadians& operator+=(const AngleRadians& rhs); - AngleRadians& operator-=(const AngleRadians& rhs); - AngleRadians& operator*=(const AngleRadians& rhs); - AngleRadians& operator/=(const AngleRadians& rhs); - friend std::istream& operator>>(std::istream& lop, AngleRadians& rop); - operator long double(); - - long double value = 0.0; - bool initialized = false; - - static const char debugName[]; - virtual const char* debugString(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - }; -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ApparentPower.cpp b/CGMES_2.4.13_18DEC2013/ApparentPower.cpp deleted file mode 100644 index d62bbb332..000000000 --- a/CGMES_2.4.13_18DEC2013/ApparentPower.cpp +++ /dev/null @@ -1,70 +0,0 @@ -#include "ApparentPower.hpp" -#include "../src/CIMExceptions.hpp" - -using namespace CIMPP; - -ApparentPower::ApparentPower() {} - -ApparentPower::~ApparentPower(){} - -ApparentPower::ApparentPower(long double value) : value(value), initialized(true) {} - -void ApparentPower::addConstructToMap(std::unordered_map& factory_map) {} - -void ApparentPower::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) {} - -void ApparentPower::addClassAssignFnsToMap(std::unordered_map& assign_map) {} - -const char ApparentPower::debugName[] = "ApparentPower"; -const char* ApparentPower::debugString() { - return ApparentPower::debugName; -} - - -const BaseClassDefiner ApparentPower::declare() { - return BaseClassDefiner(ApparentPower::addConstructToMap, ApparentPower::addPrimitiveAssignFnsToMap, ApparentPower::addClassAssignFnsToMap, ApparentPower::debugName); -} - -namespace CIMPP { - ApparentPower& ApparentPower::operator=(long double &rop) { - value = rop; - initialized = true; - return *this; - } - - ApparentPower& ApparentPower::operator-=(const ApparentPower& rhs) { - value -= rhs.value; - return *this; - } - - ApparentPower& ApparentPower::operator*=(const ApparentPower& rhs) { - value *= rhs.value; - return *this; - } - - ApparentPower& ApparentPower::operator/=(const ApparentPower& rhs) { - value /= rhs.value; - return *this; - } - - ApparentPower& ApparentPower::operator+=(const ApparentPower& rhs) { - value += rhs.value; - return *this; - } - - ApparentPower::operator long double() { - if(!initialized) - { - throw new ReadingUninitializedField(); - } - return value; - } - - std::istream& operator>>(std::istream& lop, ApparentPower& rop) { - std::string tmp; - lop >> tmp; - rop.value = stold(tmp); - rop.initialized = true; - return lop; - } -} diff --git a/CGMES_2.4.13_18DEC2013/ApparentPower.hpp b/CGMES_2.4.13_18DEC2013/ApparentPower.hpp deleted file mode 100644 index 0614d5728..000000000 --- a/CGMES_2.4.13_18DEC2013/ApparentPower.hpp +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef ApparentPower_H -#define ApparentPower_H - -#include -#include - -#include "BaseClass.hpp" - -namespace CIMPP -{ - class ApparentPower : public BaseClass - { - - public: - ApparentPower(); - virtual ~ApparentPower(); - ApparentPower(long double value); - static const BaseClassDefiner declare(); - ApparentPower& operator=(long double &rop); - ApparentPower& operator+=(const ApparentPower& rhs); - ApparentPower& operator-=(const ApparentPower& rhs); - ApparentPower& operator*=(const ApparentPower& rhs); - ApparentPower& operator/=(const ApparentPower& rhs); - friend std::istream& operator>>(std::istream& lop, ApparentPower& rop); - operator long double(); - - long double value = 0.0; - bool initialized = false; - - static const char debugName[]; - virtual const char* debugString(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - }; -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ApparentPowerLimit.cpp b/CGMES_2.4.13_18DEC2013/ApparentPowerLimit.cpp deleted file mode 100644 index 8daa9d935..000000000 --- a/CGMES_2.4.13_18DEC2013/ApparentPowerLimit.cpp +++ /dev/null @@ -1,56 +0,0 @@ -#include -#include "OperationalLimit.hpp" -#include "ApparentPowerLimit.hpp" - -#include "ApparentPower.hpp" - -using namespace CIMPP; - -ApparentPowerLimit::ApparentPowerLimit() {}; - -ApparentPowerLimit::~ApparentPowerLimit() {}; - - - - -bool assign_ApparentPowerLimit_value(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ApparentPowerLimit* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ApparentPowerLimit_factory() { - return new ApparentPowerLimit; - } -} - -void ApparentPowerLimit::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ApparentPowerLimit"), &ApparentPowerLimit_factory)); -} - -void ApparentPowerLimit::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ApparentPowerLimit.value"), &assign_ApparentPowerLimit_value)); -} - -void ApparentPowerLimit::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char ApparentPowerLimit::debugName[] = "ApparentPowerLimit"; -const char* ApparentPowerLimit::debugString() -{ - return ApparentPowerLimit::debugName; -} - -const BaseClassDefiner ApparentPowerLimit::declare() -{ - return BaseClassDefiner(ApparentPowerLimit::addConstructToMap, ApparentPowerLimit::addPrimitiveAssignFnsToMap, ApparentPowerLimit::addClassAssignFnsToMap, ApparentPowerLimit::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ApparentPowerLimit.hpp b/CGMES_2.4.13_18DEC2013/ApparentPowerLimit.hpp deleted file mode 100644 index 3af1691f8..000000000 --- a/CGMES_2.4.13_18DEC2013/ApparentPowerLimit.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef ApparentPowerLimit_H -#define ApparentPowerLimit_H - -#include "OperationalLimit.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "ApparentPower.hpp" - -namespace CIMPP { - - - /* - Apparent power limit. - */ - class ApparentPowerLimit: public OperationalLimit - { - - public: - CIMPP::ApparentPower value; /* The apparent power limit. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ApparentPowerLimit(); - virtual ~ApparentPowerLimit(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ApparentPowerLimit_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/Area.cpp b/CGMES_2.4.13_18DEC2013/Area.cpp deleted file mode 100644 index 236e60bec..000000000 --- a/CGMES_2.4.13_18DEC2013/Area.cpp +++ /dev/null @@ -1,70 +0,0 @@ -#include "Area.hpp" -#include "../src/CIMExceptions.hpp" - -using namespace CIMPP; - -Area::Area() {} - -Area::~Area(){} - -Area::Area(long double value) : value(value), initialized(true) {} - -void Area::addConstructToMap(std::unordered_map& factory_map) {} - -void Area::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) {} - -void Area::addClassAssignFnsToMap(std::unordered_map& assign_map) {} - -const char Area::debugName[] = "Area"; -const char* Area::debugString() { - return Area::debugName; -} - - -const BaseClassDefiner Area::declare() { - return BaseClassDefiner(Area::addConstructToMap, Area::addPrimitiveAssignFnsToMap, Area::addClassAssignFnsToMap, Area::debugName); -} - -namespace CIMPP { - Area& Area::operator=(long double &rop) { - value = rop; - initialized = true; - return *this; - } - - Area& Area::operator-=(const Area& rhs) { - value -= rhs.value; - return *this; - } - - Area& Area::operator*=(const Area& rhs) { - value *= rhs.value; - return *this; - } - - Area& Area::operator/=(const Area& rhs) { - value /= rhs.value; - return *this; - } - - Area& Area::operator+=(const Area& rhs) { - value += rhs.value; - return *this; - } - - Area::operator long double() { - if(!initialized) - { - throw new ReadingUninitializedField(); - } - return value; - } - - std::istream& operator>>(std::istream& lop, Area& rop) { - std::string tmp; - lop >> tmp; - rop.value = stold(tmp); - rop.initialized = true; - return lop; - } -} diff --git a/CGMES_2.4.13_18DEC2013/Area.hpp b/CGMES_2.4.13_18DEC2013/Area.hpp deleted file mode 100644 index 6434bed58..000000000 --- a/CGMES_2.4.13_18DEC2013/Area.hpp +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef Area_H -#define Area_H - -#include -#include - -#include "BaseClass.hpp" - -namespace CIMPP -{ - class Area : public BaseClass - { - - public: - Area(); - virtual ~Area(); - Area(long double value); - static const BaseClassDefiner declare(); - Area& operator=(long double &rop); - Area& operator+=(const Area& rhs); - Area& operator-=(const Area& rhs); - Area& operator*=(const Area& rhs); - Area& operator/=(const Area& rhs); - friend std::istream& operator>>(std::istream& lop, Area& rop); - operator long double(); - - long double value = 0.0; - bool initialized = false; - - static const char debugName[]; - virtual const char* debugString(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - }; -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/AsynchronousMachine.cpp b/CGMES_2.4.13_18DEC2013/AsynchronousMachine.cpp deleted file mode 100644 index 0e144cc63..000000000 --- a/CGMES_2.4.13_18DEC2013/AsynchronousMachine.cpp +++ /dev/null @@ -1,200 +0,0 @@ -#include -#include "RotatingMachine.hpp" -#include "AsynchronousMachine.hpp" - -#include "AsynchronousMachineKind.hpp" -#include "Boolean.hpp" -#include "PerCent.hpp" -#include "Simple_Float.hpp" -#include "Frequency.hpp" -#include "RotationSpeed.hpp" -#include "Integer.hpp" -#include "ActivePower.hpp" -#include "Boolean.hpp" -#include "Simple_Float.hpp" -#include "AsynchronousMachineDynamics.hpp" - -using namespace CIMPP; - -AsynchronousMachine::AsynchronousMachine(): nominalSpeed(nullptr), AsynchronousMachineDynamics(nullptr) {}; - -AsynchronousMachine::~AsynchronousMachine() {}; - - - - - - - -bool assign_AsynchronousMachine_nominalSpeed(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(AsynchronousMachine* element = dynamic_cast(BaseClass_ptr1)) { - element->nominalSpeed = dynamic_cast(BaseClass_ptr2); - if(element->nominalSpeed != nullptr) - return true; - } - return false; -} - - - - - -bool assign_AsynchronousMachine_AsynchronousMachineDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(AsynchronousMachine* element = dynamic_cast(BaseClass_ptr1)) { - element->AsynchronousMachineDynamics = dynamic_cast(BaseClass_ptr2); - if(element->AsynchronousMachineDynamics != nullptr) - return true; - } - return false; -} - - -bool assign_AsynchronousMachine_asynchronousMachineType(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(AsynchronousMachine* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->asynchronousMachineType; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_AsynchronousMachine_converterFedDrive(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(AsynchronousMachine* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->converterFedDrive; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_AsynchronousMachine_efficiency(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(AsynchronousMachine* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->efficiency; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_AsynchronousMachine_iaIrRatio(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(AsynchronousMachine* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->iaIrRatio; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_AsynchronousMachine_nominalFrequency(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(AsynchronousMachine* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->nominalFrequency; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -bool assign_AsynchronousMachine_polePairNumber(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(AsynchronousMachine* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->polePairNumber; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_AsynchronousMachine_ratedMechanicalPower(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(AsynchronousMachine* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ratedMechanicalPower; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_AsynchronousMachine_reversible(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(AsynchronousMachine* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->reversible; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_AsynchronousMachine_rxLockedRotorRatio(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(AsynchronousMachine* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->rxLockedRotorRatio; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -namespace CIMPP { - BaseClass* AsynchronousMachine_factory() { - return new AsynchronousMachine; - } -} - -void AsynchronousMachine::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:AsynchronousMachine"), &AsynchronousMachine_factory)); -} - -void AsynchronousMachine::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:AsynchronousMachine.asynchronousMachineType"), &assign_AsynchronousMachine_asynchronousMachineType)); - assign_map.insert(std::make_pair(std::string("cim:AsynchronousMachine.converterFedDrive"), &assign_AsynchronousMachine_converterFedDrive)); - assign_map.insert(std::make_pair(std::string("cim:AsynchronousMachine.efficiency"), &assign_AsynchronousMachine_efficiency)); - assign_map.insert(std::make_pair(std::string("cim:AsynchronousMachine.iaIrRatio"), &assign_AsynchronousMachine_iaIrRatio)); - assign_map.insert(std::make_pair(std::string("cim:AsynchronousMachine.nominalFrequency"), &assign_AsynchronousMachine_nominalFrequency)); - assign_map.insert(std::make_pair(std::string("cim:AsynchronousMachine.polePairNumber"), &assign_AsynchronousMachine_polePairNumber)); - assign_map.insert(std::make_pair(std::string("cim:AsynchronousMachine.ratedMechanicalPower"), &assign_AsynchronousMachine_ratedMechanicalPower)); - assign_map.insert(std::make_pair(std::string("cim:AsynchronousMachine.reversible"), &assign_AsynchronousMachine_reversible)); - assign_map.insert(std::make_pair(std::string("cim:AsynchronousMachine.rxLockedRotorRatio"), &assign_AsynchronousMachine_rxLockedRotorRatio)); - } - -void AsynchronousMachine::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:AsynchronousMachine.nominalSpeed"), &assign_AsynchronousMachine_nominalSpeed)); - assign_map.insert(std::make_pair(std::string("cim:AsynchronousMachine.AsynchronousMachineDynamics"), &assign_AsynchronousMachine_AsynchronousMachineDynamics)); -} - -const char AsynchronousMachine::debugName[] = "AsynchronousMachine"; -const char* AsynchronousMachine::debugString() -{ - return AsynchronousMachine::debugName; -} - -const BaseClassDefiner AsynchronousMachine::declare() -{ - return BaseClassDefiner(AsynchronousMachine::addConstructToMap, AsynchronousMachine::addPrimitiveAssignFnsToMap, AsynchronousMachine::addClassAssignFnsToMap, AsynchronousMachine::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/AsynchronousMachine.hpp b/CGMES_2.4.13_18DEC2013/AsynchronousMachine.hpp deleted file mode 100644 index b8e2e87c1..000000000 --- a/CGMES_2.4.13_18DEC2013/AsynchronousMachine.hpp +++ /dev/null @@ -1,58 +0,0 @@ -#ifndef AsynchronousMachine_H -#define AsynchronousMachine_H - -#include "RotatingMachine.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "AsynchronousMachineKind.hpp" -#include "Boolean.hpp" -#include "PerCent.hpp" -#include "Simple_Float.hpp" -#include "Frequency.hpp" -#include "Integer.hpp" -#include "ActivePower.hpp" - -namespace CIMPP { - - -class RotationSpeed; -class AsynchronousMachineDynamics; - /* - A rotating machine whose shaft rotates asynchronously with the electrical field. Also known as an induction machine with no external connection to the rotor windings, e.g squirrel-cage induction machine. - */ - class AsynchronousMachine: public RotatingMachine - { - - public: - CIMPP::AsynchronousMachineKind asynchronousMachineType; /* Indicates the type of Asynchronous Machine (motor or generator). Default: 0 */ - CIMPP::Boolean converterFedDrive; /* Indicates whether the machine is a converter fed drive. Used for short circuit data exchange according to IEC 60909 Default: false */ - CIMPP::PerCent efficiency; /* Efficiency of the asynchronous machine at nominal operation in percent. Indicator for converter drive motors. Used for short circuit data exchange according to IEC 60909 Default: nullptr */ - CIMPP::Simple_Float iaIrRatio; /* Ratio of locked-rotor current to the rated current of the motor (Ia/Ir). Used for short circuit data exchange according to IEC 60909 Default: nullptr */ - CIMPP::Frequency nominalFrequency; /* Nameplate data indicates if the machine is 50 or 60 Hz. Default: nullptr */ - CIMPP::RotationSpeed* nominalSpeed; /* Nameplate data. Depends on the slip and number of pole pairs. Default: nullptr */ - CIMPP::Integer polePairNumber; /* Number of pole pairs of stator. Used for short circuit data exchange according to IEC 60909 Default: 0 */ - CIMPP::ActivePower ratedMechanicalPower; /* Rated mechanical power (Pr in the IEC 60909-0). Used for short circuit data exchange according to IEC 60909. Default: nullptr */ - CIMPP::Boolean reversible; /* Indicates for converter drive motors if the power can be reversible. Used for short circuit data exchange according to IEC 60909 Default: false */ - CIMPP::Simple_Float rxLockedRotorRatio; /* Locked rotor ratio (R/X). Used for short circuit data exchange according to IEC 60909 Default: nullptr */ - CIMPP::AsynchronousMachineDynamics* AsynchronousMachineDynamics; /* Asynchronous machine dynamics model used to describe dynamic behavior of this asynchronous machine. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - AsynchronousMachine(); - virtual ~AsynchronousMachine(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* AsynchronousMachine_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/AsynchronousMachineDynamics.cpp b/CGMES_2.4.13_18DEC2013/AsynchronousMachineDynamics.cpp deleted file mode 100644 index a059ace41..000000000 --- a/CGMES_2.4.13_18DEC2013/AsynchronousMachineDynamics.cpp +++ /dev/null @@ -1,90 +0,0 @@ -#include -#include "RotatingMachineDynamics.hpp" -#include "AsynchronousMachineDynamics.hpp" - -#include "AsynchronousMachine.hpp" -#include "MechanicalLoadDynamics.hpp" -#include "WindTurbineType1or2Dynamics.hpp" -#include "TurbineGovernorDynamics.hpp" - -using namespace CIMPP; - -AsynchronousMachineDynamics::AsynchronousMachineDynamics(): AsynchronousMachine(nullptr), MechanicalLoadDynamics(nullptr), WindTurbineType1or2Dynamics(nullptr), TurbineGovernorDynamics(nullptr) {}; - -AsynchronousMachineDynamics::~AsynchronousMachineDynamics() {}; - - -bool assign_AsynchronousMachine_AsynchronousMachineDynamics(BaseClass*, BaseClass*); -bool assign_AsynchronousMachineDynamics_AsynchronousMachine(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(AsynchronousMachineDynamics* element = dynamic_cast(BaseClass_ptr1)) { - element->AsynchronousMachine = dynamic_cast(BaseClass_ptr2); - if(element->AsynchronousMachine != nullptr) - return assign_AsynchronousMachine_AsynchronousMachineDynamics(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_AsynchronousMachineDynamics_MechanicalLoadDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(AsynchronousMachineDynamics* element = dynamic_cast(BaseClass_ptr1)) { - element->MechanicalLoadDynamics = dynamic_cast(BaseClass_ptr2); - if(element->MechanicalLoadDynamics != nullptr) - return true; - } - return false; -} - -bool assign_AsynchronousMachineDynamics_WindTurbineType1or2Dynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(AsynchronousMachineDynamics* element = dynamic_cast(BaseClass_ptr1)) { - element->WindTurbineType1or2Dynamics = dynamic_cast(BaseClass_ptr2); - if(element->WindTurbineType1or2Dynamics != nullptr) - return true; - } - return false; -} - -bool assign_AsynchronousMachineDynamics_TurbineGovernorDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(AsynchronousMachineDynamics* element = dynamic_cast(BaseClass_ptr1)) { - element->TurbineGovernorDynamics = dynamic_cast(BaseClass_ptr2); - if(element->TurbineGovernorDynamics != nullptr) - return true; - } - return false; -} - - - - - - -namespace CIMPP { - BaseClass* AsynchronousMachineDynamics_factory() { - return new AsynchronousMachineDynamics; - } -} - -void AsynchronousMachineDynamics::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:AsynchronousMachineDynamics"), &AsynchronousMachineDynamics_factory)); -} - -void AsynchronousMachineDynamics::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void AsynchronousMachineDynamics::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:AsynchronousMachineDynamics.AsynchronousMachine"), &assign_AsynchronousMachineDynamics_AsynchronousMachine)); - assign_map.insert(std::make_pair(std::string("cim:AsynchronousMachineDynamics.MechanicalLoadDynamics"), &assign_AsynchronousMachineDynamics_MechanicalLoadDynamics)); - assign_map.insert(std::make_pair(std::string("cim:AsynchronousMachineDynamics.WindTurbineType1or2Dynamics"), &assign_AsynchronousMachineDynamics_WindTurbineType1or2Dynamics)); - assign_map.insert(std::make_pair(std::string("cim:AsynchronousMachineDynamics.TurbineGovernorDynamics"), &assign_AsynchronousMachineDynamics_TurbineGovernorDynamics)); -} - -const char AsynchronousMachineDynamics::debugName[] = "AsynchronousMachineDynamics"; -const char* AsynchronousMachineDynamics::debugString() -{ - return AsynchronousMachineDynamics::debugName; -} - -const BaseClassDefiner AsynchronousMachineDynamics::declare() -{ - return BaseClassDefiner(AsynchronousMachineDynamics::addConstructToMap, AsynchronousMachineDynamics::addPrimitiveAssignFnsToMap, AsynchronousMachineDynamics::addClassAssignFnsToMap, AsynchronousMachineDynamics::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/AsynchronousMachineDynamics.hpp b/CGMES_2.4.13_18DEC2013/AsynchronousMachineDynamics.hpp deleted file mode 100644 index 8febb5864..000000000 --- a/CGMES_2.4.13_18DEC2013/AsynchronousMachineDynamics.hpp +++ /dev/null @@ -1,46 +0,0 @@ -#ifndef AsynchronousMachineDynamics_H -#define AsynchronousMachineDynamics_H - -#include "RotatingMachineDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class AsynchronousMachine; -class MechanicalLoadDynamics; -class WindTurbineType1or2Dynamics; -class TurbineGovernorDynamics; - /* - Asynchronous machine whose behaviour is described by reference to a standard model expressed in either time constant reactance form or equivalent circuit form - */ - class AsynchronousMachineDynamics: public RotatingMachineDynamics - { - - public: - CIMPP::AsynchronousMachine* AsynchronousMachine; /* Asynchronous machine to which this asynchronous machine dynamics model applies. Default: 0 */ - CIMPP::MechanicalLoadDynamics* MechanicalLoadDynamics; /* Mechanical load model associated with this asynchronous machine model. Default: 0 */ - CIMPP::WindTurbineType1or2Dynamics* WindTurbineType1or2Dynamics; /* Wind generator type 1 or 2 model associated with this asynchronous machine model. Default: 0 */ - CIMPP::TurbineGovernorDynamics* TurbineGovernorDynamics; /* Turbine-governor model associated with this asynchronous machine model. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - AsynchronousMachineDynamics(); - virtual ~AsynchronousMachineDynamics(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* AsynchronousMachineDynamics_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/AsynchronousMachineEquivalentCircuit.cpp b/CGMES_2.4.13_18DEC2013/AsynchronousMachineEquivalentCircuit.cpp deleted file mode 100644 index 30dd6fe46..000000000 --- a/CGMES_2.4.13_18DEC2013/AsynchronousMachineEquivalentCircuit.cpp +++ /dev/null @@ -1,116 +0,0 @@ -#include -#include "AsynchronousMachineDynamics.hpp" -#include "AsynchronousMachineEquivalentCircuit.hpp" - -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -AsynchronousMachineEquivalentCircuit::AsynchronousMachineEquivalentCircuit() {}; - -AsynchronousMachineEquivalentCircuit::~AsynchronousMachineEquivalentCircuit() {}; - - - - - - - - -bool assign_AsynchronousMachineEquivalentCircuit_xm(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(AsynchronousMachineEquivalentCircuit* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->xm; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_AsynchronousMachineEquivalentCircuit_rr1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(AsynchronousMachineEquivalentCircuit* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->rr1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_AsynchronousMachineEquivalentCircuit_xlr1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(AsynchronousMachineEquivalentCircuit* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->xlr1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_AsynchronousMachineEquivalentCircuit_rr2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(AsynchronousMachineEquivalentCircuit* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->rr2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_AsynchronousMachineEquivalentCircuit_xlr2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(AsynchronousMachineEquivalentCircuit* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->xlr2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* AsynchronousMachineEquivalentCircuit_factory() { - return new AsynchronousMachineEquivalentCircuit; - } -} - -void AsynchronousMachineEquivalentCircuit::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:AsynchronousMachineEquivalentCircuit"), &AsynchronousMachineEquivalentCircuit_factory)); -} - -void AsynchronousMachineEquivalentCircuit::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:AsynchronousMachineEquivalentCircuit.xm"), &assign_AsynchronousMachineEquivalentCircuit_xm)); - assign_map.insert(std::make_pair(std::string("cim:AsynchronousMachineEquivalentCircuit.rr1"), &assign_AsynchronousMachineEquivalentCircuit_rr1)); - assign_map.insert(std::make_pair(std::string("cim:AsynchronousMachineEquivalentCircuit.xlr1"), &assign_AsynchronousMachineEquivalentCircuit_xlr1)); - assign_map.insert(std::make_pair(std::string("cim:AsynchronousMachineEquivalentCircuit.rr2"), &assign_AsynchronousMachineEquivalentCircuit_rr2)); - assign_map.insert(std::make_pair(std::string("cim:AsynchronousMachineEquivalentCircuit.xlr2"), &assign_AsynchronousMachineEquivalentCircuit_xlr2)); -} - -void AsynchronousMachineEquivalentCircuit::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char AsynchronousMachineEquivalentCircuit::debugName[] = "AsynchronousMachineEquivalentCircuit"; -const char* AsynchronousMachineEquivalentCircuit::debugString() -{ - return AsynchronousMachineEquivalentCircuit::debugName; -} - -const BaseClassDefiner AsynchronousMachineEquivalentCircuit::declare() -{ - return BaseClassDefiner(AsynchronousMachineEquivalentCircuit::addConstructToMap, AsynchronousMachineEquivalentCircuit::addPrimitiveAssignFnsToMap, AsynchronousMachineEquivalentCircuit::addClassAssignFnsToMap, AsynchronousMachineEquivalentCircuit::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/AsynchronousMachineEquivalentCircuit.hpp b/CGMES_2.4.13_18DEC2013/AsynchronousMachineEquivalentCircuit.hpp deleted file mode 100644 index b35af9d7b..000000000 --- a/CGMES_2.4.13_18DEC2013/AsynchronousMachineEquivalentCircuit.hpp +++ /dev/null @@ -1,44 +0,0 @@ -#ifndef AsynchronousMachineEquivalentCircuit_H -#define AsynchronousMachineEquivalentCircuit_H - -#include "AsynchronousMachineDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" - -namespace CIMPP { - - - /* - The electrical equations of all variations of the asynchronous model are based on the AsynchronousEquivalentCircuit diagram for the direct and quadrature axes, with two equivalent rotor windings in each axis. = + = + * / ( + ) = + * * / ( * + * + * ) = ( + ) / ( * ) = ( * + * + * ) / ( * * (+ ) Same equations using CIM attributes from AsynchronousMachineTimeConstantReactance class on left of = sign and AsynchronousMachineEquivalentCircuit class on right (except as noted): xs = xm + RotatingMachineDynamics.statorLeakageReactance xp = RotatingMachineDynamics.statorLeakageReactance + xm * xlr1 / (xm + xlr1) xpp = RotatingMachineDynamics.statorLeakageReactance + xm * xlr1* xlr2 / (xm * xlr1 + xm * xlr2 + xlr1 * xlr2) tpo = (xm + xlr1) / (2*pi*nominal frequency * rr1) tppo = (xm * xlr1 + xm * xlr2 + xlr1 * xlr2) / (2*pi*nominal frequency * rr2 * (xm + xlr1). - */ - class AsynchronousMachineEquivalentCircuit: public AsynchronousMachineDynamics - { - - public: - CIMPP::PU xm; /* Magnetizing reactance. Default: nullptr */ - CIMPP::PU rr1; /* Damper 1 winding resistance. Default: nullptr */ - CIMPP::PU xlr1; /* Damper 1 winding leakage reactance. Default: nullptr */ - CIMPP::PU rr2; /* Damper 2 winding resistance. Default: nullptr */ - CIMPP::PU xlr2; /* Damper 2 winding leakage reactance. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - AsynchronousMachineEquivalentCircuit(); - virtual ~AsynchronousMachineEquivalentCircuit(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* AsynchronousMachineEquivalentCircuit_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/AsynchronousMachineKind.cpp b/CGMES_2.4.13_18DEC2013/AsynchronousMachineKind.cpp deleted file mode 100644 index 219cfc23e..000000000 --- a/CGMES_2.4.13_18DEC2013/AsynchronousMachineKind.cpp +++ /dev/null @@ -1,37 +0,0 @@ -#include -#include -#include "AsynchronousMachineKind.hpp" - -using namespace CIMPP; - -namespace CIMPP { - std::istream& operator>>(std::istream& lop, CIMPP::AsynchronousMachineKind& rop) - { - std::string EnumSymbol; - lop >> EnumSymbol; - - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "AsynchronousMachineKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "generator") - { - rop = AsynchronousMachineKind::generator; - return lop; - } - if(EnumSymbol == "motor") - { - rop = AsynchronousMachineKind::motor; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; - } -} - diff --git a/CGMES_2.4.13_18DEC2013/AsynchronousMachineKind.hpp b/CGMES_2.4.13_18DEC2013/AsynchronousMachineKind.hpp deleted file mode 100644 index af35aae99..000000000 --- a/CGMES_2.4.13_18DEC2013/AsynchronousMachineKind.hpp +++ /dev/null @@ -1,21 +0,0 @@ -#ifndef AsynchronousMachineKind_H -#define AsynchronousMachineKind_H - -namespace CIMPP { - /* - Kind of Asynchronous Machine. - */ - enum class AsynchronousMachineKind - { - /** - * The Asynchronous Machine is a generator. - */ - generator, - /** - * The Asynchronous Machine is a motor. - */ - motor, - }; - std::istream& operator>>(std::istream& lop, CIMPP::AsynchronousMachineKind& rop); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/AsynchronousMachineTimeConstantReactance.cpp b/CGMES_2.4.13_18DEC2013/AsynchronousMachineTimeConstantReactance.cpp deleted file mode 100644 index f5bfbc5d0..000000000 --- a/CGMES_2.4.13_18DEC2013/AsynchronousMachineTimeConstantReactance.cpp +++ /dev/null @@ -1,116 +0,0 @@ -#include -#include "AsynchronousMachineDynamics.hpp" -#include "AsynchronousMachineTimeConstantReactance.hpp" - -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" - -using namespace CIMPP; - -AsynchronousMachineTimeConstantReactance::AsynchronousMachineTimeConstantReactance() {}; - -AsynchronousMachineTimeConstantReactance::~AsynchronousMachineTimeConstantReactance() {}; - - - - - - - - -bool assign_AsynchronousMachineTimeConstantReactance_xs(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(AsynchronousMachineTimeConstantReactance* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->xs; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_AsynchronousMachineTimeConstantReactance_xp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(AsynchronousMachineTimeConstantReactance* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->xp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_AsynchronousMachineTimeConstantReactance_xpp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(AsynchronousMachineTimeConstantReactance* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->xpp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_AsynchronousMachineTimeConstantReactance_tpo(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(AsynchronousMachineTimeConstantReactance* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tpo; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_AsynchronousMachineTimeConstantReactance_tppo(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(AsynchronousMachineTimeConstantReactance* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tppo; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* AsynchronousMachineTimeConstantReactance_factory() { - return new AsynchronousMachineTimeConstantReactance; - } -} - -void AsynchronousMachineTimeConstantReactance::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:AsynchronousMachineTimeConstantReactance"), &AsynchronousMachineTimeConstantReactance_factory)); -} - -void AsynchronousMachineTimeConstantReactance::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:AsynchronousMachineTimeConstantReactance.xs"), &assign_AsynchronousMachineTimeConstantReactance_xs)); - assign_map.insert(std::make_pair(std::string("cim:AsynchronousMachineTimeConstantReactance.xp"), &assign_AsynchronousMachineTimeConstantReactance_xp)); - assign_map.insert(std::make_pair(std::string("cim:AsynchronousMachineTimeConstantReactance.xpp"), &assign_AsynchronousMachineTimeConstantReactance_xpp)); - assign_map.insert(std::make_pair(std::string("cim:AsynchronousMachineTimeConstantReactance.tpo"), &assign_AsynchronousMachineTimeConstantReactance_tpo)); - assign_map.insert(std::make_pair(std::string("cim:AsynchronousMachineTimeConstantReactance.tppo"), &assign_AsynchronousMachineTimeConstantReactance_tppo)); -} - -void AsynchronousMachineTimeConstantReactance::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char AsynchronousMachineTimeConstantReactance::debugName[] = "AsynchronousMachineTimeConstantReactance"; -const char* AsynchronousMachineTimeConstantReactance::debugString() -{ - return AsynchronousMachineTimeConstantReactance::debugName; -} - -const BaseClassDefiner AsynchronousMachineTimeConstantReactance::declare() -{ - return BaseClassDefiner(AsynchronousMachineTimeConstantReactance::addConstructToMap, AsynchronousMachineTimeConstantReactance::addPrimitiveAssignFnsToMap, AsynchronousMachineTimeConstantReactance::addClassAssignFnsToMap, AsynchronousMachineTimeConstantReactance::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/AsynchronousMachineTimeConstantReactance.hpp b/CGMES_2.4.13_18DEC2013/AsynchronousMachineTimeConstantReactance.hpp deleted file mode 100644 index 4f3e1237c..000000000 --- a/CGMES_2.4.13_18DEC2013/AsynchronousMachineTimeConstantReactance.hpp +++ /dev/null @@ -1,45 +0,0 @@ -#ifndef AsynchronousMachineTimeConstantReactance_H -#define AsynchronousMachineTimeConstantReactance_H - -#include "AsynchronousMachineDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "Seconds.hpp" - -namespace CIMPP { - - - /* - The parameters used for models expressed in time constant reactance form include: - */ - class AsynchronousMachineTimeConstantReactance: public AsynchronousMachineDynamics - { - - public: - CIMPP::PU xs; /* Synchronous reactance (Xs) (>= X`). Typical Value = 1.8. Default: nullptr */ - CIMPP::PU xp; /* Transient reactance (unsaturated) (X`) (>=X``). Typical Value = 0.5. Default: nullptr */ - CIMPP::PU xpp; /* Subtransient reactance (unsaturated) (X``) (> Xl). Typical Value = 0.2. Default: nullptr */ - CIMPP::Seconds tpo; /* Transient rotor time constant (T`o) (> T``o). Typical Value = 5. Default: nullptr */ - CIMPP::Seconds tppo; /* Subtransient rotor time constant (T``o) (> 0). Typical Value = 0.03. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - AsynchronousMachineTimeConstantReactance(); - virtual ~AsynchronousMachineTimeConstantReactance(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* AsynchronousMachineTimeConstantReactance_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/AsynchronousMachineUserDefined.cpp b/CGMES_2.4.13_18DEC2013/AsynchronousMachineUserDefined.cpp deleted file mode 100644 index 6d883be59..000000000 --- a/CGMES_2.4.13_18DEC2013/AsynchronousMachineUserDefined.cpp +++ /dev/null @@ -1,69 +0,0 @@ -#include -#include "AsynchronousMachineDynamics.hpp" -#include "AsynchronousMachineUserDefined.hpp" - -#include "Boolean.hpp" -#include "ProprietaryParameterDynamics.hpp" - -using namespace CIMPP; - -AsynchronousMachineUserDefined::AsynchronousMachineUserDefined() {}; - -AsynchronousMachineUserDefined::~AsynchronousMachineUserDefined() {}; - - - -bool assign_AsynchronousMachineUserDefined_ProprietaryParameterDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(AsynchronousMachineUserDefined* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->ProprietaryParameterDynamics.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - -bool assign_AsynchronousMachineUserDefined_proprietary(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(AsynchronousMachineUserDefined* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->proprietary; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -namespace CIMPP { - BaseClass* AsynchronousMachineUserDefined_factory() { - return new AsynchronousMachineUserDefined; - } -} - -void AsynchronousMachineUserDefined::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:AsynchronousMachineUserDefined"), &AsynchronousMachineUserDefined_factory)); -} - -void AsynchronousMachineUserDefined::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:AsynchronousMachineUserDefined.proprietary"), &assign_AsynchronousMachineUserDefined_proprietary)); - } - -void AsynchronousMachineUserDefined::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:AsynchronousMachineUserDefined.ProprietaryParameterDynamics"), &assign_AsynchronousMachineUserDefined_ProprietaryParameterDynamics)); -} - -const char AsynchronousMachineUserDefined::debugName[] = "AsynchronousMachineUserDefined"; -const char* AsynchronousMachineUserDefined::debugString() -{ - return AsynchronousMachineUserDefined::debugName; -} - -const BaseClassDefiner AsynchronousMachineUserDefined::declare() -{ - return BaseClassDefiner(AsynchronousMachineUserDefined::addConstructToMap, AsynchronousMachineUserDefined::addPrimitiveAssignFnsToMap, AsynchronousMachineUserDefined::addClassAssignFnsToMap, AsynchronousMachineUserDefined::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/AsynchronousMachineUserDefined.hpp b/CGMES_2.4.13_18DEC2013/AsynchronousMachineUserDefined.hpp deleted file mode 100644 index 41cb98f81..000000000 --- a/CGMES_2.4.13_18DEC2013/AsynchronousMachineUserDefined.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef AsynchronousMachineUserDefined_H -#define AsynchronousMachineUserDefined_H - -#include "AsynchronousMachineDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Boolean.hpp" - -namespace CIMPP { - - -class ProprietaryParameterDynamics; - /* - Asynchronous machine whose dynamic behaviour is described by a user-defined model. - */ - class AsynchronousMachineUserDefined: public AsynchronousMachineDynamics - { - - public: - CIMPP::Boolean proprietary; /* Behaviour is based on proprietary model as opposed to detailed model. true = user-defined model is proprietary with behaviour mutually understood by sending and receiving applications and parameters passed as general attributes false = user-defined model is explicitly defined in terms of control blocks and their input and output signals. Default: false */ - std::list ProprietaryParameterDynamics; /* Parameter of this proprietary user-defined model. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - AsynchronousMachineUserDefined(); - virtual ~AsynchronousMachineUserDefined(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* AsynchronousMachineUserDefined_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/BaseClass.cpp b/CGMES_2.4.13_18DEC2013/BaseClass.cpp deleted file mode 100644 index 20dc2088d..000000000 --- a/CGMES_2.4.13_18DEC2013/BaseClass.cpp +++ /dev/null @@ -1,22 +0,0 @@ - -#include "BaseClass.hpp" - -using namespace CIMPP; - -BaseClass::~BaseClass() {} - -void BaseClass::addConstructToMap(std::unordered_map& factory_map) {} - -void BaseClass::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) {} - -void BaseClass::addClassAssignFnsToMap(std::unordered_map& assign_map) {} - -const char BaseClass::debugName[] = "BaseClass"; -const char* BaseClass::debugString() -{ - return BaseClass::debugName; -} - -CIMPP::BaseClassDefiner BaseClass::declare() { - return BaseClassDefiner(BaseClass::addConstructToMap, BaseClass::addPrimitiveAssignFnsToMap, BaseClass::addClassAssignFnsToMap, BaseClass::debugName); -} diff --git a/CGMES_2.4.13_18DEC2013/BaseClass.h b/CGMES_2.4.13_18DEC2013/BaseClass.h deleted file mode 100644 index d1ebb818e..000000000 --- a/CGMES_2.4.13_18DEC2013/BaseClass.h +++ /dev/null @@ -1 +0,0 @@ -#include "BaseClass.hpp" diff --git a/CGMES_2.4.13_18DEC2013/BaseClass.hpp b/CGMES_2.4.13_18DEC2013/BaseClass.hpp deleted file mode 100644 index a7cd61294..000000000 --- a/CGMES_2.4.13_18DEC2013/BaseClass.hpp +++ /dev/null @@ -1,22 +0,0 @@ -#ifndef BASECLASS_HPP -#define BASECLASS_HPP - -#ifndef CGMES_BUILD -#define CGMES_BUILD -#endif - -#include -#include "BaseClassDefiner.hpp" - -class BaseClass { -public: - enum cgmesProfile {EQ = 0, SSH = 1, TP = 2, SV = 3, DY = 4, GL = 5, DI = 6}; - virtual ~BaseClass(); - static CIMPP::BaseClassDefiner declare(); - static void addConstructToMap(std::unordered_map&); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - const static char debugName[]; - virtual const char* debugString(); -}; -#endif // BASECLASS_HPP diff --git a/CGMES_2.4.13_18DEC2013/BaseClassDefiner.cpp b/CGMES_2.4.13_18DEC2013/BaseClassDefiner.cpp deleted file mode 100644 index 95bcb95d6..000000000 --- a/CGMES_2.4.13_18DEC2013/BaseClassDefiner.cpp +++ /dev/null @@ -1,14 +0,0 @@ - -#include "BaseClassDefiner.hpp" - -using namespace CIMPP; - -BaseClassDefiner::BaseClassDefiner(void(*addConstruct)(std::unordered_map&), - void(*addPrimitiveAssignFns)(std::unordered_map&), - void(*addClassAssignFns)(std::unordered_map&), - const char *debugStr) { - addConstructToMap = addConstruct; - addPrimitiveAssignFnsToMap = addPrimitiveAssignFns; - addClassAssignFnsToMap = addClassAssignFns; - debugString = debugStr; -} diff --git a/CGMES_2.4.13_18DEC2013/BaseClassDefiner.hpp b/CGMES_2.4.13_18DEC2013/BaseClassDefiner.hpp deleted file mode 100644 index a87353841..000000000 --- a/CGMES_2.4.13_18DEC2013/BaseClassDefiner.hpp +++ /dev/null @@ -1,24 +0,0 @@ -#ifndef BASECLASSDEFINER_HPP -#define BASECLASSDEFINER_HPP - -#include -#include - -class BaseClass; -typedef bool (*class_assign_function)(BaseClass*, BaseClass*); -typedef bool (*assign_function)(std::stringstream&, BaseClass*); -namespace CIMPP { - - class BaseClassDefiner { - public: - BaseClassDefiner(void(*addConstruct)(std::unordered_map&), - void(*addPrimitiveAssignFns)(std::unordered_map&), - void(*addClassAssignFns)(std::unordered_map&), - const char *debugStr); - void (*addConstructToMap)(std::unordered_map&); - void (*addPrimitiveAssignFnsToMap)(std::unordered_map&); - void (*addClassAssignFnsToMap)(std::unordered_map&); - const char* debugString; - }; -} -#endif // BASECLASSDEFINER diff --git a/CGMES_2.4.13_18DEC2013/BaseVoltage.cpp b/CGMES_2.4.13_18DEC2013/BaseVoltage.cpp deleted file mode 100644 index edc182b45..000000000 --- a/CGMES_2.4.13_18DEC2013/BaseVoltage.cpp +++ /dev/null @@ -1,108 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "BaseVoltage.hpp" - -#include "TopologicalNode.hpp" -#include "Voltage.hpp" -#include "ConductingEquipment.hpp" -#include "VoltageLevel.hpp" -#include "TransformerEnd.hpp" - -using namespace CIMPP; - -BaseVoltage::BaseVoltage() {}; - -BaseVoltage::~BaseVoltage() {}; - - -bool assign_BaseVoltage_TopologicalNode(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(BaseVoltage* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->TopologicalNode.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - -bool assign_BaseVoltage_ConductingEquipment(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(BaseVoltage* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->ConductingEquipment.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_BaseVoltage_VoltageLevel(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(BaseVoltage* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->VoltageLevel.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_BaseVoltage_TransformerEnds(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(BaseVoltage* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->TransformerEnds.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - - -bool assign_BaseVoltage_nominalVoltage(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(BaseVoltage* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->nominalVoltage; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - - - -namespace CIMPP { - BaseClass* BaseVoltage_factory() { - return new BaseVoltage; - } -} - -void BaseVoltage::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:BaseVoltage"), &BaseVoltage_factory)); -} - -void BaseVoltage::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:BaseVoltage.nominalVoltage"), &assign_BaseVoltage_nominalVoltage)); - } - -void BaseVoltage::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:BaseVoltage.TopologicalNode"), &assign_BaseVoltage_TopologicalNode)); - assign_map.insert(std::make_pair(std::string("cim:BaseVoltage.ConductingEquipment"), &assign_BaseVoltage_ConductingEquipment)); - assign_map.insert(std::make_pair(std::string("cim:BaseVoltage.VoltageLevel"), &assign_BaseVoltage_VoltageLevel)); - assign_map.insert(std::make_pair(std::string("cim:BaseVoltage.TransformerEnds"), &assign_BaseVoltage_TransformerEnds)); -} - -const char BaseVoltage::debugName[] = "BaseVoltage"; -const char* BaseVoltage::debugString() -{ - return BaseVoltage::debugName; -} - -const BaseClassDefiner BaseVoltage::declare() -{ - return BaseClassDefiner(BaseVoltage::addConstructToMap, BaseVoltage::addPrimitiveAssignFnsToMap, BaseVoltage::addClassAssignFnsToMap, BaseVoltage::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/BaseVoltage.hpp b/CGMES_2.4.13_18DEC2013/BaseVoltage.hpp deleted file mode 100644 index a0cefdb7c..000000000 --- a/CGMES_2.4.13_18DEC2013/BaseVoltage.hpp +++ /dev/null @@ -1,48 +0,0 @@ -#ifndef BaseVoltage_H -#define BaseVoltage_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Voltage.hpp" - -namespace CIMPP { - - -class TopologicalNode; -class ConductingEquipment; -class VoltageLevel; -class TransformerEnd; - /* - Defines a system base voltage which is referenced. - */ - class BaseVoltage: public IdentifiedObject - { - - public: - std::list TopologicalNode; /* The topological nodes at the base voltage. Default: 0 */ - CIMPP::Voltage nominalVoltage; /* The power system resource`s base voltage. Default: nullptr */ - std::list ConductingEquipment; /* Base voltage of this conducting equipment. Use only when there is no voltage level container used and only one base voltage applies. For example, not used for transformers. Default: 0 */ - std::list VoltageLevel; /* The voltage levels having this base voltage. Default: 0 */ - std::list TransformerEnds; /* Transformer ends at the base voltage. This is essential for PU calculation. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - BaseVoltage(); - virtual ~BaseVoltage(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* BaseVoltage_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/BasicIntervalSchedule.cpp b/CGMES_2.4.13_18DEC2013/BasicIntervalSchedule.cpp deleted file mode 100644 index 8d87cdc00..000000000 --- a/CGMES_2.4.13_18DEC2013/BasicIntervalSchedule.cpp +++ /dev/null @@ -1,83 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "BasicIntervalSchedule.hpp" - -#include "DateTime.hpp" -#include "UnitSymbol.hpp" -#include "UnitSymbol.hpp" - -using namespace CIMPP; - -BasicIntervalSchedule::BasicIntervalSchedule(): startTime(nullptr) {}; - -BasicIntervalSchedule::~BasicIntervalSchedule() {}; - - -bool assign_BasicIntervalSchedule_startTime(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(BasicIntervalSchedule* element = dynamic_cast(BaseClass_ptr1)) { - element->startTime = dynamic_cast(BaseClass_ptr2); - if(element->startTime != nullptr) - return true; - } - return false; -} - - - - - -bool assign_BasicIntervalSchedule_value1Unit(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(BasicIntervalSchedule* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->value1Unit; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_BasicIntervalSchedule_value2Unit(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(BasicIntervalSchedule* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->value2Unit; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* BasicIntervalSchedule_factory() { - return new BasicIntervalSchedule; - } -} - -void BasicIntervalSchedule::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:BasicIntervalSchedule"), &BasicIntervalSchedule_factory)); -} - -void BasicIntervalSchedule::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:BasicIntervalSchedule.value1Unit"), &assign_BasicIntervalSchedule_value1Unit)); - assign_map.insert(std::make_pair(std::string("cim:BasicIntervalSchedule.value2Unit"), &assign_BasicIntervalSchedule_value2Unit)); -} - -void BasicIntervalSchedule::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:BasicIntervalSchedule.startTime"), &assign_BasicIntervalSchedule_startTime)); - } - -const char BasicIntervalSchedule::debugName[] = "BasicIntervalSchedule"; -const char* BasicIntervalSchedule::debugString() -{ - return BasicIntervalSchedule::debugName; -} - -const BaseClassDefiner BasicIntervalSchedule::declare() -{ - return BaseClassDefiner(BasicIntervalSchedule::addConstructToMap, BasicIntervalSchedule::addPrimitiveAssignFnsToMap, BasicIntervalSchedule::addClassAssignFnsToMap, BasicIntervalSchedule::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/BasicIntervalSchedule.hpp b/CGMES_2.4.13_18DEC2013/BasicIntervalSchedule.hpp deleted file mode 100644 index ab0558475..000000000 --- a/CGMES_2.4.13_18DEC2013/BasicIntervalSchedule.hpp +++ /dev/null @@ -1,43 +0,0 @@ -#ifndef BasicIntervalSchedule_H -#define BasicIntervalSchedule_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "UnitSymbol.hpp" - -namespace CIMPP { - - -class DateTime; - /* - Schedule of values at points in time. - */ - class BasicIntervalSchedule: public IdentifiedObject - { - - public: - CIMPP::DateTime* startTime; /* The time for the first time point. Default: '' */ - CIMPP::UnitSymbol value1Unit; /* Value1 units of measure. Default: 0 */ - CIMPP::UnitSymbol value2Unit; /* Value2 units of measure. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - BasicIntervalSchedule(); - virtual ~BasicIntervalSchedule(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* BasicIntervalSchedule_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/Bay.cpp b/CGMES_2.4.13_18DEC2013/Bay.cpp deleted file mode 100644 index 14dddc78f..000000000 --- a/CGMES_2.4.13_18DEC2013/Bay.cpp +++ /dev/null @@ -1,54 +0,0 @@ -#include -#include "EquipmentContainer.hpp" -#include "Bay.hpp" - -#include "VoltageLevel.hpp" - -using namespace CIMPP; - -Bay::Bay(): VoltageLevel(nullptr) {}; - -Bay::~Bay() {}; - - -bool assign_VoltageLevel_Bays(BaseClass*, BaseClass*); -bool assign_Bay_VoltageLevel(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(Bay* element = dynamic_cast(BaseClass_ptr1)) { - element->VoltageLevel = dynamic_cast(BaseClass_ptr2); - if(element->VoltageLevel != nullptr) - return assign_VoltageLevel_Bays(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - -namespace CIMPP { - BaseClass* Bay_factory() { - return new Bay; - } -} - -void Bay::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:Bay"), &Bay_factory)); -} - -void Bay::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void Bay::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:Bay.VoltageLevel"), &assign_Bay_VoltageLevel)); -} - -const char Bay::debugName[] = "Bay"; -const char* Bay::debugString() -{ - return Bay::debugName; -} - -const BaseClassDefiner Bay::declare() -{ - return BaseClassDefiner(Bay::addConstructToMap, Bay::addPrimitiveAssignFnsToMap, Bay::addClassAssignFnsToMap, Bay::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/Bay.hpp b/CGMES_2.4.13_18DEC2013/Bay.hpp deleted file mode 100644 index b3bcfc4fe..000000000 --- a/CGMES_2.4.13_18DEC2013/Bay.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef Bay_H -#define Bay_H - -#include "EquipmentContainer.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class VoltageLevel; - /* - A collection of power system resources (within a given substation) including conducting equipment, protection relays, measurements, and telemetry. A bay typically represents a physical grouping related to modularization of equipment. - */ - class Bay: public EquipmentContainer - { - - public: - CIMPP::VoltageLevel* VoltageLevel; /* The voltage level containing this bay. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - Bay(); - virtual ~Bay(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* Bay_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/Boolean.cpp b/CGMES_2.4.13_18DEC2013/Boolean.cpp deleted file mode 100644 index 35f7fa9a1..000000000 --- a/CGMES_2.4.13_18DEC2013/Boolean.cpp +++ /dev/null @@ -1,80 +0,0 @@ -#include "Boolean.hpp" -#include "CIMExceptions.hpp" - -using namespace CIMPP; - -Boolean::Boolean(){} - -Boolean::~Boolean(){} - -Boolean::Boolean(bool value) - : value(value), initialized(true) {} - -const BaseClassDefiner Boolean::declare() -{ - return BaseClassDefiner(Boolean::addConstructToMap, Boolean::addPrimitiveAssignFnsToMap, Boolean::addClassAssignFnsToMap, Boolean::debugName); -} - -Boolean& Boolean::operator=(bool &rop) -{ - value = rop; - initialized = true; - return *this; -} - -Boolean::operator bool() -{ - if(!initialized) - { - throw new ReadingUninitializedField(); - } - return value; -} - -void Boolean::addConstructToMap(std::unordered_map& factory_map) {} - -void Boolean::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) {} - -void Boolean::addClassAssignFnsToMap(std::unordered_map& assign_map) {} - -const char Boolean::debugName[] = "Boolean"; -const char* Boolean::debugString() -{ - return Boolean::debugName; -} - -namespace CIMPP { - std::istream& operator>>(std::istream& lop, Boolean& rop) - { - std::string tmp; - lop >> tmp; - if(tmp == "true" || tmp == "True" || tmp == "TRUE") - { - rop.value = true; - rop.initialized = true; - return lop; - } - if(tmp == "false" || tmp == "False" || tmp == "FALSE") - { - rop.value = false; - rop.initialized = true; - return lop; - } - else - { - lop.setstate(std::ios::failbit); - return lop; - } - } - - std::ostream& operator<<(std::ostream& os, Boolean& rop) - { - if (rop) { - os << "true"; - } - else { - os << "false"; - } - return os; - } -} diff --git a/CGMES_2.4.13_18DEC2013/Boolean.hpp b/CGMES_2.4.13_18DEC2013/Boolean.hpp deleted file mode 100644 index 34e30d18a..000000000 --- a/CGMES_2.4.13_18DEC2013/Boolean.hpp +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef BOOLEAN_H -#define BOOLEAN_H - -#include -#include -#include - -#include "BaseClass.hpp" - -namespace CIMPP { - /** - * A type with the value space "true" and "false". - */ - class Boolean - { - public: - Boolean(); - virtual ~Boolean(); - static const BaseClassDefiner declare(); - - Boolean(bool value); - Boolean& operator=(bool &rop); - friend std::istream& operator>>(std::istream& lop, Boolean& rop); - friend std::ostream& operator<<(std::ostream& os, Boolean& rop); - operator bool(); - - bool value = false; - bool initialized = false; - - static const char debugName[]; - virtual const char* debugString(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - }; -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/Breaker.cpp b/CGMES_2.4.13_18DEC2013/Breaker.cpp deleted file mode 100644 index d45b7e553..000000000 --- a/CGMES_2.4.13_18DEC2013/Breaker.cpp +++ /dev/null @@ -1,41 +0,0 @@ -#include -#include "ProtectedSwitch.hpp" -#include "Breaker.hpp" - - -using namespace CIMPP; - -Breaker::Breaker() {}; - -Breaker::~Breaker() {}; - - - -namespace CIMPP { - BaseClass* Breaker_factory() { - return new Breaker; - } -} - -void Breaker::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:Breaker"), &Breaker_factory)); -} - -void Breaker::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { -} - -void Breaker::addClassAssignFnsToMap(std::unordered_map& assign_map) { -} - -const char Breaker::debugName[] = "Breaker"; -const char* Breaker::debugString() -{ - return Breaker::debugName; -} - -const BaseClassDefiner Breaker::declare() -{ - return BaseClassDefiner(Breaker::addConstructToMap, Breaker::addPrimitiveAssignFnsToMap, Breaker::addClassAssignFnsToMap, Breaker::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/Breaker.hpp b/CGMES_2.4.13_18DEC2013/Breaker.hpp deleted file mode 100644 index 3f4783b3a..000000000 --- a/CGMES_2.4.13_18DEC2013/Breaker.hpp +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef Breaker_H -#define Breaker_H - -#include "ProtectedSwitch.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - - /* - A mechanical switching device capable of making, carrying, and breaking currents under normal circuit conditions and also making, carrying for a specified time, and breaking currents under specified abnormal circuit conditions e.g. those of short circuit. - */ - class Breaker: public ProtectedSwitch - { - - public: - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - Breaker(); - virtual ~Breaker(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* Breaker_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/BusNameMarker.cpp b/CGMES_2.4.13_18DEC2013/BusNameMarker.cpp deleted file mode 100644 index 2277d6c25..000000000 --- a/CGMES_2.4.13_18DEC2013/BusNameMarker.cpp +++ /dev/null @@ -1,82 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "BusNameMarker.hpp" - -#include "Integer.hpp" -#include "ReportingGroup.hpp" -#include "ACDCTerminal.hpp" - -using namespace CIMPP; - -BusNameMarker::BusNameMarker(): ReportingGroup(nullptr) {}; - -BusNameMarker::~BusNameMarker() {}; - - - -bool assign_ReportingGroup_BusNameMarker(BaseClass*, BaseClass*); -bool assign_BusNameMarker_ReportingGroup(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(BusNameMarker* element = dynamic_cast(BaseClass_ptr1)) { - element->ReportingGroup = dynamic_cast(BaseClass_ptr2); - if(element->ReportingGroup != nullptr) - return assign_ReportingGroup_BusNameMarker(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_BusNameMarker_Terminal(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(BusNameMarker* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->Terminal.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - -bool assign_BusNameMarker_priority(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(BusNameMarker* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->priority; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - - -namespace CIMPP { - BaseClass* BusNameMarker_factory() { - return new BusNameMarker; - } -} - -void BusNameMarker::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:BusNameMarker"), &BusNameMarker_factory)); -} - -void BusNameMarker::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:BusNameMarker.priority"), &assign_BusNameMarker_priority)); - } - -void BusNameMarker::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:BusNameMarker.ReportingGroup"), &assign_BusNameMarker_ReportingGroup)); - assign_map.insert(std::make_pair(std::string("cim:BusNameMarker.Terminal"), &assign_BusNameMarker_Terminal)); -} - -const char BusNameMarker::debugName[] = "BusNameMarker"; -const char* BusNameMarker::debugString() -{ - return BusNameMarker::debugName; -} - -const BaseClassDefiner BusNameMarker::declare() -{ - return BaseClassDefiner(BusNameMarker::addConstructToMap, BusNameMarker::addPrimitiveAssignFnsToMap, BusNameMarker::addClassAssignFnsToMap, BusNameMarker::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/BusNameMarker.hpp b/CGMES_2.4.13_18DEC2013/BusNameMarker.hpp deleted file mode 100644 index 992a10da9..000000000 --- a/CGMES_2.4.13_18DEC2013/BusNameMarker.hpp +++ /dev/null @@ -1,44 +0,0 @@ -#ifndef BusNameMarker_H -#define BusNameMarker_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Integer.hpp" - -namespace CIMPP { - - -class ReportingGroup; -class ACDCTerminal; - /* - Used to apply user standard names to topology buses. Typically used for "bus/branch" case generation. Associated with one or more terminals that are normally connected with the bus name. The associated terminals are normally connected by non-retained switches. For a ring bus station configuration, all busbar terminals in the ring are typically associated. For a breaker and a half scheme, both busbars would normally be associated. For a ring bus, all busbars would normally be associated. For a "straight" busbar configuration, normally only the main terminal at the busbar would be associated. - */ - class BusNameMarker: public IdentifiedObject - { - - public: - CIMPP::Integer priority; /* Priority of bus name marker for use as topology bus name. Use 0 for don t care. Use 1 for highest priority. Use 2 as priority is less than 1 and so on. Default: 0 */ - CIMPP::ReportingGroup* ReportingGroup; /* The bus name markers that belong to this reporting group. Default: 0 */ - std::list Terminal; /* The terminals associated with this bus name marker. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - BusNameMarker(); - virtual ~BusNameMarker(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* BusNameMarker_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/BusbarSection.cpp b/CGMES_2.4.13_18DEC2013/BusbarSection.cpp deleted file mode 100644 index 2b6e7a9a0..000000000 --- a/CGMES_2.4.13_18DEC2013/BusbarSection.cpp +++ /dev/null @@ -1,56 +0,0 @@ -#include -#include "Connector.hpp" -#include "BusbarSection.hpp" - -#include "CurrentFlow.hpp" - -using namespace CIMPP; - -BusbarSection::BusbarSection() {}; - -BusbarSection::~BusbarSection() {}; - - - - -bool assign_BusbarSection_ipMax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(BusbarSection* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ipMax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* BusbarSection_factory() { - return new BusbarSection; - } -} - -void BusbarSection::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:BusbarSection"), &BusbarSection_factory)); -} - -void BusbarSection::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:BusbarSection.ipMax"), &assign_BusbarSection_ipMax)); -} - -void BusbarSection::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char BusbarSection::debugName[] = "BusbarSection"; -const char* BusbarSection::debugString() -{ - return BusbarSection::debugName; -} - -const BaseClassDefiner BusbarSection::declare() -{ - return BaseClassDefiner(BusbarSection::addConstructToMap, BusbarSection::addPrimitiveAssignFnsToMap, BusbarSection::addClassAssignFnsToMap, BusbarSection::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/BusbarSection.hpp b/CGMES_2.4.13_18DEC2013/BusbarSection.hpp deleted file mode 100644 index aa0d1e41f..000000000 --- a/CGMES_2.4.13_18DEC2013/BusbarSection.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef BusbarSection_H -#define BusbarSection_H - -#include "Connector.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "CurrentFlow.hpp" - -namespace CIMPP { - - - /* - A conductor, or group of conductors, with negligible impedance, that serve to connect other conducting equipment within a single substation. Voltage measurements are typically obtained from VoltageTransformers that are connected to busbar sections. A bus bar section may have many physical terminals but for analysis is modelled with exactly one logical terminal. - */ - class BusbarSection: public Connector - { - - public: - CIMPP::CurrentFlow ipMax; /* Maximum allowable peak short-circuit current of busbar (Ipmax in the IEC 60909-0). Mechanical limit of the busbar in the substation itself. Used for short circuit data exchange according to IEC 60909 Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - BusbarSection(); - virtual ~BusbarSection(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* BusbarSection_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/CIMClassList.hpp b/CGMES_2.4.13_18DEC2013/CIMClassList.hpp deleted file mode 100644 index d9f6b92ed..000000000 --- a/CGMES_2.4.13_18DEC2013/CIMClassList.hpp +++ /dev/null @@ -1,439 +0,0 @@ -#ifndef CIMCLASSLIST_H -#define CIMCLASSLIST_H -using namespace CIMPP; -#include -static std::list CIMClassList = { - ACDCConverter::declare(), - ACDCConverterDCTerminal::declare(), - ACDCTerminal::declare(), - ACLineSegment::declare(), - Accumulator::declare(), - AccumulatorLimit::declare(), - AccumulatorLimitSet::declare(), - AccumulatorReset::declare(), - AccumulatorValue::declare(), - ActivePower::declare(), - ActivePowerLimit::declare(), - ActivePowerPerFrequency::declare(), - Analog::declare(), - AnalogControl::declare(), - AnalogLimit::declare(), - AnalogLimitSet::declare(), - AnalogValue::declare(), - AngleDegrees::declare(), - AngleRadians::declare(), - ApparentPower::declare(), - ApparentPowerLimit::declare(), - Area::declare(), - AsynchronousMachine::declare(), - AsynchronousMachineDynamics::declare(), - AsynchronousMachineEquivalentCircuit::declare(), - AsynchronousMachineTimeConstantReactance::declare(), - AsynchronousMachineUserDefined::declare(), - BaseVoltage::declare(), - BasicIntervalSchedule::declare(), - Bay::declare(), - Boolean::declare(), - Breaker::declare(), - BusNameMarker::declare(), - BusbarSection::declare(), - Capacitance::declare(), - CapacitancePerLength::declare(), - Command::declare(), - Conductance::declare(), - ConductingEquipment::declare(), - Conductor::declare(), - ConformLoad::declare(), - ConformLoadGroup::declare(), - ConformLoadSchedule::declare(), - ConnectivityNode::declare(), - ConnectivityNodeContainer::declare(), - Connector::declare(), - Control::declare(), - ControlArea::declare(), - ControlAreaGeneratingUnit::declare(), - CoordinateSystem::declare(), - CsConverter::declare(), - CurrentFlow::declare(), - CurrentLimit::declare(), - Curve::declare(), - CurveData::declare(), - DCBaseTerminal::declare(), - DCBreaker::declare(), - DCBusbar::declare(), - DCChopper::declare(), - DCConductingEquipment::declare(), - DCConverterUnit::declare(), - DCDisconnector::declare(), - DCEquipmentContainer::declare(), - DCGround::declare(), - DCLine::declare(), - DCLineSegment::declare(), - DCNode::declare(), - DCSeriesDevice::declare(), - DCShunt::declare(), - DCSwitch::declare(), - DCTerminal::declare(), - DCTopologicalIsland::declare(), - DCTopologicalNode::declare(), - Date::declare(), - DateTime::declare(), - DayType::declare(), - Decimal::declare(), - Diagram::declare(), - DiagramLayoutVersion::declare(), - DiagramObject::declare(), - DiagramObjectGluePoint::declare(), - DiagramObjectPoint::declare(), - DiagramObjectStyle::declare(), - DiagramStyle::declare(), - DiscExcContIEEEDEC1A::declare(), - DiscExcContIEEEDEC2A::declare(), - DiscExcContIEEEDEC3A::declare(), - Disconnector::declare(), - DiscontinuousExcitationControlDynamics::declare(), - DiscontinuousExcitationControlUserDefined::declare(), - Discrete::declare(), - DiscreteValue::declare(), - DynamicsFunctionBlock::declare(), - DynamicsVersion::declare(), - EarthFaultCompensator::declare(), - EnergyArea::declare(), - EnergyConsumer::declare(), - EnergySchedulingType::declare(), - EnergySource::declare(), - Equipment::declare(), - EquipmentBoundaryVersion::declare(), - EquipmentContainer::declare(), - EquipmentVersion::declare(), - EquivalentBranch::declare(), - EquivalentEquipment::declare(), - EquivalentInjection::declare(), - EquivalentNetwork::declare(), - EquivalentShunt::declare(), - ExcAC1A::declare(), - ExcAC2A::declare(), - ExcAC3A::declare(), - ExcAC4A::declare(), - ExcAC5A::declare(), - ExcAC6A::declare(), - ExcAC8B::declare(), - ExcANS::declare(), - ExcAVR1::declare(), - ExcAVR2::declare(), - ExcAVR3::declare(), - ExcAVR4::declare(), - ExcAVR5::declare(), - ExcAVR7::declare(), - ExcBBC::declare(), - ExcCZ::declare(), - ExcDC1A::declare(), - ExcDC2A::declare(), - ExcDC3A1::declare(), - ExcDC3A::declare(), - ExcELIN1::declare(), - ExcELIN2::declare(), - ExcHU::declare(), - ExcIEEEAC1A::declare(), - ExcIEEEAC2A::declare(), - ExcIEEEAC3A::declare(), - ExcIEEEAC4A::declare(), - ExcIEEEAC5A::declare(), - ExcIEEEAC6A::declare(), - ExcIEEEAC7B::declare(), - ExcIEEEAC8B::declare(), - ExcIEEEDC1A::declare(), - ExcIEEEDC2A::declare(), - ExcIEEEDC3A::declare(), - ExcIEEEDC4B::declare(), - ExcIEEEST1A::declare(), - ExcIEEEST2A::declare(), - ExcIEEEST3A::declare(), - ExcIEEEST4B::declare(), - ExcIEEEST5B::declare(), - ExcIEEEST6B::declare(), - ExcIEEEST7B::declare(), - ExcOEX3T::declare(), - ExcPIC::declare(), - ExcREXS::declare(), - ExcSCRX::declare(), - ExcSEXS::declare(), - ExcSK::declare(), - ExcST1A::declare(), - ExcST2A::declare(), - ExcST3A::declare(), - ExcST4B::declare(), - ExcST6B::declare(), - ExcST7B::declare(), - ExcitationSystemDynamics::declare(), - ExcitationSystemUserDefined::declare(), - ExternalNetworkInjection::declare(), - Float::declare(), - FossilFuel::declare(), - Frequency::declare(), - GenICompensationForGenJ::declare(), - GeneratingUnit::declare(), - GeographicalLocationVersion::declare(), - GeographicalRegion::declare(), - GovCT1::declare(), - GovCT2::declare(), - GovGAST1::declare(), - GovGAST2::declare(), - GovGAST3::declare(), - GovGAST4::declare(), - GovGAST::declare(), - GovGASTWD::declare(), - GovHydro1::declare(), - GovHydro2::declare(), - GovHydro3::declare(), - GovHydro4::declare(), - GovHydroDD::declare(), - GovHydroFrancis::declare(), - GovHydroIEEE0::declare(), - GovHydroIEEE2::declare(), - GovHydroPID2::declare(), - GovHydroPID::declare(), - GovHydroPelton::declare(), - GovHydroR::declare(), - GovHydroWEH::declare(), - GovHydroWPID::declare(), - GovSteam0::declare(), - GovSteam1::declare(), - GovSteam2::declare(), - GovSteamCC::declare(), - GovSteamEU::declare(), - GovSteamFV2::declare(), - GovSteamFV3::declare(), - GovSteamFV4::declare(), - GovSteamIEEE1::declare(), - GovSteamSGO::declare(), - GrossToNetActivePowerCurve::declare(), - Ground::declare(), - GroundDisconnector::declare(), - GroundingImpedance::declare(), - HydroGeneratingUnit::declare(), - HydroPowerPlant::declare(), - HydroPump::declare(), - IdentifiedObject::declare(), - Inductance::declare(), - InductancePerLength::declare(), - Integer::declare(), - Junction::declare(), - Length::declare(), - Limit::declare(), - LimitSet::declare(), - Line::declare(), - LinearShuntCompensator::declare(), - LoadAggregate::declare(), - LoadArea::declare(), - LoadBreakSwitch::declare(), - LoadComposite::declare(), - LoadDynamics::declare(), - LoadGenericNonLinear::declare(), - LoadGroup::declare(), - LoadMotor::declare(), - LoadResponseCharacteristic::declare(), - LoadStatic::declare(), - LoadUserDefined::declare(), - Location::declare(), - Measurement::declare(), - MeasurementValue::declare(), - MeasurementValueQuality::declare(), - MeasurementValueSource::declare(), - MechLoad1::declare(), - MechanicalLoadDynamics::declare(), - MechanicalLoadUserDefined::declare(), - Money::declare(), - MonthDay::declare(), - MutualCoupling::declare(), - NonConformLoad::declare(), - NonConformLoadGroup::declare(), - NonConformLoadSchedule::declare(), - NonlinearShuntCompensator::declare(), - NonlinearShuntCompensatorPoint::declare(), - NuclearGeneratingUnit::declare(), - OperationalLimit::declare(), - OperationalLimitSet::declare(), - OperationalLimitType::declare(), - OverexcLim2::declare(), - OverexcLimIEEE::declare(), - OverexcLimX1::declare(), - OverexcLimX2::declare(), - OverexcitationLimiterDynamics::declare(), - OverexcitationLimiterUserDefined::declare(), - PFVArControllerType1Dynamics::declare(), - PFVArControllerType1UserDefined::declare(), - PFVArControllerType2Dynamics::declare(), - PFVArControllerType2UserDefined::declare(), - PFVArType1IEEEPFController::declare(), - PFVArType1IEEEVArController::declare(), - PFVArType2Common1::declare(), - PFVArType2IEEEPFController::declare(), - PFVArType2IEEEVArController::declare(), - PU::declare(), - PerCent::declare(), - PerLengthDCLineParameter::declare(), - PetersenCoil::declare(), - PhaseTapChanger::declare(), - PhaseTapChangerAsymmetrical::declare(), - PhaseTapChangerLinear::declare(), - PhaseTapChangerNonLinear::declare(), - PhaseTapChangerSymmetrical::declare(), - PhaseTapChangerTable::declare(), - PhaseTapChangerTablePoint::declare(), - PhaseTapChangerTabular::declare(), - PositionPoint::declare(), - PowerSystemResource::declare(), - PowerSystemStabilizerDynamics::declare(), - PowerSystemStabilizerUserDefined::declare(), - PowerTransformer::declare(), - PowerTransformerEnd::declare(), - ProprietaryParameterDynamics::declare(), - ProtectedSwitch::declare(), - Pss1::declare(), - Pss1A::declare(), - Pss2B::declare(), - Pss2ST::declare(), - Pss5::declare(), - PssELIN2::declare(), - PssIEEE1A::declare(), - PssIEEE2B::declare(), - PssIEEE3B::declare(), - PssIEEE4B::declare(), - PssPTIST1::declare(), - PssPTIST3::declare(), - PssSB4::declare(), - PssSH::declare(), - PssSK::declare(), - PssWECC::declare(), - Quality61850::declare(), - RaiseLowerCommand::declare(), - RatioTapChanger::declare(), - RatioTapChangerTable::declare(), - RatioTapChangerTablePoint::declare(), - Reactance::declare(), - ReactiveCapabilityCurve::declare(), - ReactivePower::declare(), - RegularIntervalSchedule::declare(), - RegularTimePoint::declare(), - RegulatingCondEq::declare(), - RegulatingControl::declare(), - RegulationSchedule::declare(), - RemoteInputSignal::declare(), - ReportingGroup::declare(), - Resistance::declare(), - ResistancePerLength::declare(), - RotatingMachine::declare(), - RotatingMachineDynamics::declare(), - RotationSpeed::declare(), - Season::declare(), - SeasonDayTypeSchedule::declare(), - Seconds::declare(), - SeriesCompensator::declare(), - SetPoint::declare(), - ShuntCompensator::declare(), - Simple_Float::declare(), - SolarGeneratingUnit::declare(), - StateVariablesVersion::declare(), - StaticVarCompensator::declare(), - StationSupply::declare(), - SteadyStateHypothesisVersion::declare(), - StringMeasurement::declare(), - StringMeasurementValue::declare(), - SubGeographicalRegion::declare(), - SubLoadArea::declare(), - Substation::declare(), - Susceptance::declare(), - SvInjection::declare(), - SvPowerFlow::declare(), - SvShuntCompensatorSections::declare(), - SvStatus::declare(), - SvTapStep::declare(), - SvVoltage::declare(), - Switch::declare(), - SwitchSchedule::declare(), - SynchronousMachine::declare(), - SynchronousMachineDetailed::declare(), - SynchronousMachineDynamics::declare(), - SynchronousMachineEquivalentCircuit::declare(), - SynchronousMachineSimplified::declare(), - SynchronousMachineTimeConstantReactance::declare(), - SynchronousMachineUserDefined::declare(), - TapChanger::declare(), - TapChangerControl::declare(), - TapChangerTablePoint::declare(), - TapSchedule::declare(), - Temperature::declare(), - Terminal::declare(), - TextDiagramObject::declare(), - ThermalGeneratingUnit::declare(), - TieFlow::declare(), - TopologicalIsland::declare(), - TopologicalNode::declare(), - TopologyBoundaryVersion::declare(), - TopologyVersion::declare(), - TransformerEnd::declare(), - TurbLCFB1::declare(), - TurbineGovernorDynamics::declare(), - TurbineGovernorUserDefined::declare(), - TurbineLoadControllerDynamics::declare(), - TurbineLoadControllerUserDefined::declare(), - UnderexcLim2Simplified::declare(), - UnderexcLimIEEE1::declare(), - UnderexcLimIEEE2::declare(), - UnderexcLimX1::declare(), - UnderexcLimX2::declare(), - UnderexcitationLimiterDynamics::declare(), - UnderexcitationLimiterUserDefined::declare(), - VAdjIEEE::declare(), - VCompIEEEType1::declare(), - VCompIEEEType2::declare(), - ValueAliasSet::declare(), - ValueToAlias::declare(), - VisibilityLayer::declare(), - Voltage::declare(), - VoltageAdjusterDynamics::declare(), - VoltageAdjusterUserDefined::declare(), - VoltageCompensatorDynamics::declare(), - VoltageCompensatorUserDefined::declare(), - VoltageLevel::declare(), - VoltageLimit::declare(), - VoltagePerReactivePower::declare(), - VolumeFlowRate::declare(), - VsCapabilityCurve::declare(), - VsConverter::declare(), - WindAeroConstIEC::declare(), - WindAeroLinearIEC::declare(), - WindContCurrLimIEC::declare(), - WindContPType3IEC::declare(), - WindContPType4aIEC::declare(), - WindContPType4bIEC::declare(), - WindContPitchAngleIEC::declare(), - WindContQIEC::declare(), - WindContRotorRIEC::declare(), - WindDynamicsLookupTable::declare(), - WindGenTurbineType1IEC::declare(), - WindGenTurbineType2IEC::declare(), - WindGenTurbineType3IEC::declare(), - WindGenTurbineType3aIEC::declare(), - WindGenTurbineType3bIEC::declare(), - WindGenType4IEC::declare(), - WindGeneratingUnit::declare(), - WindMechIEC::declare(), - WindPitchContEmulIEC::declare(), - WindPlantDynamics::declare(), - WindPlantFreqPcontrolIEC::declare(), - WindPlantIEC::declare(), - WindPlantReactiveControlIEC::declare(), - WindPlantUserDefined::declare(), - WindProtectionIEC::declare(), - WindTurbineType1or2Dynamics::declare(), - WindTurbineType1or2IEC::declare(), - WindTurbineType3or4Dynamics::declare(), - WindTurbineType3or4IEC::declare(), - WindTurbineType4aIEC::declare(), - WindTurbineType4bIEC::declare(), - WindType1or2UserDefined::declare(), - WindType3or4UserDefined::declare(), - UnknownType::declare() }; -#endif // CIMCLASSLIST_H diff --git a/CGMES_2.4.13_18DEC2013/CIMFactory.cpp b/CGMES_2.4.13_18DEC2013/CIMFactory.cpp deleted file mode 100644 index a2ed2e7c9..000000000 --- a/CGMES_2.4.13_18DEC2013/CIMFactory.cpp +++ /dev/null @@ -1,44 +0,0 @@ -#include "CIMFactory.hpp" -#include "Folders.hpp" -#include "CIMClassList.hpp" -#include -#include - -using namespace CIMPP; - -static std::unordered_map initialize(); -std::unordered_map CIMFactory::factory_map = initialize(); - -BaseClass* CIMFactory::CreateNew(const std::string& name) { - std::unordered_map::iterator it = factory_map.find(name); - if(it != factory_map.end()) { - return (*it->second)(); - } - else { - std::cerr << "!! ** Could not find factory for " << name << " ** !!" << std::endl; - return nullptr; - } -} - -bool CIMFactory::IsCIMClass(const std::string& name) { - std::unordered_map::iterator it = factory_map.find(name); - if(it == factory_map.end()) { - return false; - } - else { - return true; - } -} - -CIMFactory::CIMFactory() {} - -CIMFactory::~CIMFactory() {} - -static std::unordered_map initialize() { - std::unordered_map map; - for (const BaseClassDefiner& CIMClass : CIMClassList) - { - CIMClass.addConstructToMap(map); - } - return map; -} diff --git a/CGMES_2.4.13_18DEC2013/CIMFactory.hpp b/CGMES_2.4.13_18DEC2013/CIMFactory.hpp deleted file mode 100644 index 9e3cbe455..000000000 --- a/CGMES_2.4.13_18DEC2013/CIMFactory.hpp +++ /dev/null @@ -1,22 +0,0 @@ -#ifndef CIMFACTORY_HPP -#define CIMFACTORY_HPP - -#include -#include -#include "BaseClass.hpp" - -namespace CIMPP { - - class CIMFactory - { - public: - CIMFactory(); - virtual ~CIMFactory(); - static BaseClass* CreateNew(const std::string& name); - static bool IsCIMClass(const std::string& name); - - private: - static std::unordered_map factory_map; - }; -} -#endif // CIMFACTORY_HPP diff --git a/CGMES_2.4.13_18DEC2013/Capacitance.cpp b/CGMES_2.4.13_18DEC2013/Capacitance.cpp deleted file mode 100644 index f3f7f180f..000000000 --- a/CGMES_2.4.13_18DEC2013/Capacitance.cpp +++ /dev/null @@ -1,70 +0,0 @@ -#include "Capacitance.hpp" -#include "../src/CIMExceptions.hpp" - -using namespace CIMPP; - -Capacitance::Capacitance() {} - -Capacitance::~Capacitance(){} - -Capacitance::Capacitance(long double value) : value(value), initialized(true) {} - -void Capacitance::addConstructToMap(std::unordered_map& factory_map) {} - -void Capacitance::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) {} - -void Capacitance::addClassAssignFnsToMap(std::unordered_map& assign_map) {} - -const char Capacitance::debugName[] = "Capacitance"; -const char* Capacitance::debugString() { - return Capacitance::debugName; -} - - -const BaseClassDefiner Capacitance::declare() { - return BaseClassDefiner(Capacitance::addConstructToMap, Capacitance::addPrimitiveAssignFnsToMap, Capacitance::addClassAssignFnsToMap, Capacitance::debugName); -} - -namespace CIMPP { - Capacitance& Capacitance::operator=(long double &rop) { - value = rop; - initialized = true; - return *this; - } - - Capacitance& Capacitance::operator-=(const Capacitance& rhs) { - value -= rhs.value; - return *this; - } - - Capacitance& Capacitance::operator*=(const Capacitance& rhs) { - value *= rhs.value; - return *this; - } - - Capacitance& Capacitance::operator/=(const Capacitance& rhs) { - value /= rhs.value; - return *this; - } - - Capacitance& Capacitance::operator+=(const Capacitance& rhs) { - value += rhs.value; - return *this; - } - - Capacitance::operator long double() { - if(!initialized) - { - throw new ReadingUninitializedField(); - } - return value; - } - - std::istream& operator>>(std::istream& lop, Capacitance& rop) { - std::string tmp; - lop >> tmp; - rop.value = stold(tmp); - rop.initialized = true; - return lop; - } -} diff --git a/CGMES_2.4.13_18DEC2013/Capacitance.hpp b/CGMES_2.4.13_18DEC2013/Capacitance.hpp deleted file mode 100644 index 0c3f2a9bd..000000000 --- a/CGMES_2.4.13_18DEC2013/Capacitance.hpp +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef Capacitance_H -#define Capacitance_H - -#include -#include - -#include "BaseClass.hpp" - -namespace CIMPP -{ - class Capacitance : public BaseClass - { - - public: - Capacitance(); - virtual ~Capacitance(); - Capacitance(long double value); - static const BaseClassDefiner declare(); - Capacitance& operator=(long double &rop); - Capacitance& operator+=(const Capacitance& rhs); - Capacitance& operator-=(const Capacitance& rhs); - Capacitance& operator*=(const Capacitance& rhs); - Capacitance& operator/=(const Capacitance& rhs); - friend std::istream& operator>>(std::istream& lop, Capacitance& rop); - operator long double(); - - long double value = 0.0; - bool initialized = false; - - static const char debugName[]; - virtual const char* debugString(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - }; -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/CapacitancePerLength.cpp b/CGMES_2.4.13_18DEC2013/CapacitancePerLength.cpp deleted file mode 100644 index b1456470a..000000000 --- a/CGMES_2.4.13_18DEC2013/CapacitancePerLength.cpp +++ /dev/null @@ -1,113 +0,0 @@ -#include -#include "BaseClass.hpp" -#include "CapacitancePerLength.hpp" - -#include "Float.hpp" -#include "UnitSymbol.hpp" -#include "UnitMultiplier.hpp" -#include "UnitSymbol.hpp" -#include "UnitMultiplier.hpp" - -using namespace CIMPP; - -CapacitancePerLength::CapacitancePerLength(): value(nullptr) {}; - -CapacitancePerLength::~CapacitancePerLength() {}; - - -bool assign_CapacitancePerLength_value(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(CapacitancePerLength* element = dynamic_cast(BaseClass_ptr1)) { - element->value = dynamic_cast(BaseClass_ptr2); - if(element->value != nullptr) - return true; - } - return false; -} - - - - - - - -bool assign_CapacitancePerLength_unit(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(CapacitancePerLength* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->unit; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_CapacitancePerLength_multiplier(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(CapacitancePerLength* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->multiplier; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_CapacitancePerLength_denominatorUnit(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(CapacitancePerLength* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->denominatorUnit; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_CapacitancePerLength_denominatorMultiplier(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(CapacitancePerLength* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->denominatorMultiplier; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* CapacitancePerLength_factory() { - return new CapacitancePerLength; - } -} - -void CapacitancePerLength::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:CapacitancePerLength"), &CapacitancePerLength_factory)); -} - -void CapacitancePerLength::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:CapacitancePerLength.unit"), &assign_CapacitancePerLength_unit)); - assign_map.insert(std::make_pair(std::string("cim:CapacitancePerLength.multiplier"), &assign_CapacitancePerLength_multiplier)); - assign_map.insert(std::make_pair(std::string("cim:CapacitancePerLength.denominatorUnit"), &assign_CapacitancePerLength_denominatorUnit)); - assign_map.insert(std::make_pair(std::string("cim:CapacitancePerLength.denominatorMultiplier"), &assign_CapacitancePerLength_denominatorMultiplier)); -} - -void CapacitancePerLength::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:CapacitancePerLength.value"), &assign_CapacitancePerLength_value)); - } - -const char CapacitancePerLength::debugName[] = "CapacitancePerLength"; -const char* CapacitancePerLength::debugString() -{ - return CapacitancePerLength::debugName; -} - -const BaseClassDefiner CapacitancePerLength::declare() -{ - return BaseClassDefiner(CapacitancePerLength::addConstructToMap, CapacitancePerLength::addPrimitiveAssignFnsToMap, CapacitancePerLength::addClassAssignFnsToMap, CapacitancePerLength::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/CapacitancePerLength.hpp b/CGMES_2.4.13_18DEC2013/CapacitancePerLength.hpp deleted file mode 100644 index efdfe0dbb..000000000 --- a/CGMES_2.4.13_18DEC2013/CapacitancePerLength.hpp +++ /dev/null @@ -1,46 +0,0 @@ -#ifndef CapacitancePerLength_H -#define CapacitancePerLength_H - -#include "BaseClass.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "UnitSymbol.hpp" -#include "UnitMultiplier.hpp" - -namespace CIMPP { - - -class Float; - /* - Capacitance per unit of length. - */ - class CapacitancePerLength: public BaseClass - { - - public: - CIMPP::Float* value; /* Default: nullptr */ - CIMPP::UnitSymbol unit; /* Default: 0 */ - CIMPP::UnitMultiplier multiplier; /* Default: 0 */ - CIMPP::UnitSymbol denominatorUnit; /* Default: 0 */ - CIMPP::UnitMultiplier denominatorMultiplier; /* Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - CapacitancePerLength(); - virtual ~CapacitancePerLength(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* CapacitancePerLength_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/Command.cpp b/CGMES_2.4.13_18DEC2013/Command.cpp deleted file mode 100644 index 15de14f4a..000000000 --- a/CGMES_2.4.13_18DEC2013/Command.cpp +++ /dev/null @@ -1,97 +0,0 @@ -#include -#include "Control.hpp" -#include "Command.hpp" - -#include "Integer.hpp" -#include "Integer.hpp" -#include "DiscreteValue.hpp" -#include "ValueAliasSet.hpp" - -using namespace CIMPP; - -Command::Command(): DiscreteValue(nullptr), ValueAliasSet(nullptr) {}; - -Command::~Command() {}; - - - - -bool assign_DiscreteValue_Command(BaseClass*, BaseClass*); -bool assign_Command_DiscreteValue(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(Command* element = dynamic_cast(BaseClass_ptr1)) { - element->DiscreteValue = dynamic_cast(BaseClass_ptr2); - if(element->DiscreteValue != nullptr) - return assign_DiscreteValue_Command(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_ValueAliasSet_Commands(BaseClass*, BaseClass*); -bool assign_Command_ValueAliasSet(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(Command* element = dynamic_cast(BaseClass_ptr1)) { - element->ValueAliasSet = dynamic_cast(BaseClass_ptr2); - if(element->ValueAliasSet != nullptr) - return assign_ValueAliasSet_Commands(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - -bool assign_Command_normalValue(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Command* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->normalValue; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Command_value(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Command* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - - -namespace CIMPP { - BaseClass* Command_factory() { - return new Command; - } -} - -void Command::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:Command"), &Command_factory)); -} - -void Command::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:Command.normalValue"), &assign_Command_normalValue)); - assign_map.insert(std::make_pair(std::string("cim:Command.value"), &assign_Command_value)); - } - -void Command::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:Command.DiscreteValue"), &assign_Command_DiscreteValue)); - assign_map.insert(std::make_pair(std::string("cim:Command.ValueAliasSet"), &assign_Command_ValueAliasSet)); -} - -const char Command::debugName[] = "Command"; -const char* Command::debugString() -{ - return Command::debugName; -} - -const BaseClassDefiner Command::declare() -{ - return BaseClassDefiner(Command::addConstructToMap, Command::addPrimitiveAssignFnsToMap, Command::addClassAssignFnsToMap, Command::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/Command.hpp b/CGMES_2.4.13_18DEC2013/Command.hpp deleted file mode 100644 index 31d352bee..000000000 --- a/CGMES_2.4.13_18DEC2013/Command.hpp +++ /dev/null @@ -1,45 +0,0 @@ -#ifndef Command_H -#define Command_H - -#include "Control.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Integer.hpp" - -namespace CIMPP { - - -class DiscreteValue; -class ValueAliasSet; - /* - A Command is a discrete control used for supervisory control. - */ - class Command: public Control - { - - public: - CIMPP::Integer normalValue; /* Normal value for Control.value e.g. used for percentage scaling. Default: 0 */ - CIMPP::Integer value; /* The value representing the actuator output. Default: 0 */ - CIMPP::DiscreteValue* DiscreteValue; /* The Control variable associated with the MeasurementValue. Default: 0 */ - CIMPP::ValueAliasSet* ValueAliasSet; /* The ValueAliasSet used for translation of a Control value to a name. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - Command(); - virtual ~Command(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* Command_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/Conductance.cpp b/CGMES_2.4.13_18DEC2013/Conductance.cpp deleted file mode 100644 index c21f4ceed..000000000 --- a/CGMES_2.4.13_18DEC2013/Conductance.cpp +++ /dev/null @@ -1,70 +0,0 @@ -#include "Conductance.hpp" -#include "../src/CIMExceptions.hpp" - -using namespace CIMPP; - -Conductance::Conductance() {} - -Conductance::~Conductance(){} - -Conductance::Conductance(long double value) : value(value), initialized(true) {} - -void Conductance::addConstructToMap(std::unordered_map& factory_map) {} - -void Conductance::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) {} - -void Conductance::addClassAssignFnsToMap(std::unordered_map& assign_map) {} - -const char Conductance::debugName[] = "Conductance"; -const char* Conductance::debugString() { - return Conductance::debugName; -} - - -const BaseClassDefiner Conductance::declare() { - return BaseClassDefiner(Conductance::addConstructToMap, Conductance::addPrimitiveAssignFnsToMap, Conductance::addClassAssignFnsToMap, Conductance::debugName); -} - -namespace CIMPP { - Conductance& Conductance::operator=(long double &rop) { - value = rop; - initialized = true; - return *this; - } - - Conductance& Conductance::operator-=(const Conductance& rhs) { - value -= rhs.value; - return *this; - } - - Conductance& Conductance::operator*=(const Conductance& rhs) { - value *= rhs.value; - return *this; - } - - Conductance& Conductance::operator/=(const Conductance& rhs) { - value /= rhs.value; - return *this; - } - - Conductance& Conductance::operator+=(const Conductance& rhs) { - value += rhs.value; - return *this; - } - - Conductance::operator long double() { - if(!initialized) - { - throw new ReadingUninitializedField(); - } - return value; - } - - std::istream& operator>>(std::istream& lop, Conductance& rop) { - std::string tmp; - lop >> tmp; - rop.value = stold(tmp); - rop.initialized = true; - return lop; - } -} diff --git a/CGMES_2.4.13_18DEC2013/Conductance.hpp b/CGMES_2.4.13_18DEC2013/Conductance.hpp deleted file mode 100644 index 98d5ad4dc..000000000 --- a/CGMES_2.4.13_18DEC2013/Conductance.hpp +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef Conductance_H -#define Conductance_H - -#include -#include - -#include "BaseClass.hpp" - -namespace CIMPP -{ - class Conductance : public BaseClass - { - - public: - Conductance(); - virtual ~Conductance(); - Conductance(long double value); - static const BaseClassDefiner declare(); - Conductance& operator=(long double &rop); - Conductance& operator+=(const Conductance& rhs); - Conductance& operator-=(const Conductance& rhs); - Conductance& operator*=(const Conductance& rhs); - Conductance& operator/=(const Conductance& rhs); - friend std::istream& operator>>(std::istream& lop, Conductance& rop); - operator long double(); - - long double value = 0.0; - bool initialized = false; - - static const char debugName[]; - virtual const char* debugString(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - }; -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ConductingEquipment.cpp b/CGMES_2.4.13_18DEC2013/ConductingEquipment.cpp deleted file mode 100644 index 35c499329..000000000 --- a/CGMES_2.4.13_18DEC2013/ConductingEquipment.cpp +++ /dev/null @@ -1,79 +0,0 @@ -#include -#include "Equipment.hpp" -#include "ConductingEquipment.hpp" - -#include "Terminal.hpp" -#include "BaseVoltage.hpp" -#include "SvStatus.hpp" - -using namespace CIMPP; - -ConductingEquipment::ConductingEquipment(): BaseVoltage(nullptr), SvStatus(nullptr) {}; - -ConductingEquipment::~ConductingEquipment() {}; - - -bool assign_ConductingEquipment_Terminals(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ConductingEquipment* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->Terminals.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_BaseVoltage_ConductingEquipment(BaseClass*, BaseClass*); -bool assign_ConductingEquipment_BaseVoltage(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ConductingEquipment* element = dynamic_cast(BaseClass_ptr1)) { - element->BaseVoltage = dynamic_cast(BaseClass_ptr2); - if(element->BaseVoltage != nullptr) - return assign_BaseVoltage_ConductingEquipment(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_ConductingEquipment_SvStatus(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ConductingEquipment* element = dynamic_cast(BaseClass_ptr1)) { - element->SvStatus = dynamic_cast(BaseClass_ptr2); - if(element->SvStatus != nullptr) - return true; - } - return false; -} - - - - - -namespace CIMPP { - BaseClass* ConductingEquipment_factory() { - return new ConductingEquipment; - } -} - -void ConductingEquipment::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ConductingEquipment"), &ConductingEquipment_factory)); -} - -void ConductingEquipment::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void ConductingEquipment::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ConductingEquipment.Terminals"), &assign_ConductingEquipment_Terminals)); - assign_map.insert(std::make_pair(std::string("cim:ConductingEquipment.BaseVoltage"), &assign_ConductingEquipment_BaseVoltage)); - assign_map.insert(std::make_pair(std::string("cim:ConductingEquipment.SvStatus"), &assign_ConductingEquipment_SvStatus)); -} - -const char ConductingEquipment::debugName[] = "ConductingEquipment"; -const char* ConductingEquipment::debugString() -{ - return ConductingEquipment::debugName; -} - -const BaseClassDefiner ConductingEquipment::declare() -{ - return BaseClassDefiner(ConductingEquipment::addConstructToMap, ConductingEquipment::addPrimitiveAssignFnsToMap, ConductingEquipment::addClassAssignFnsToMap, ConductingEquipment::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ConductingEquipment.hpp b/CGMES_2.4.13_18DEC2013/ConductingEquipment.hpp deleted file mode 100644 index f77611da4..000000000 --- a/CGMES_2.4.13_18DEC2013/ConductingEquipment.hpp +++ /dev/null @@ -1,44 +0,0 @@ -#ifndef ConductingEquipment_H -#define ConductingEquipment_H - -#include "Equipment.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class Terminal; -class BaseVoltage; -class SvStatus; - /* - The parts of the AC power system that are designed to carry current or that are conductively connected through terminals. - */ - class ConductingEquipment: public Equipment - { - - public: - std::list Terminals; /* Conducting equipment have terminals that may be connected to other conducting equipment terminals via connectivity nodes or topological nodes. Default: 0 */ - CIMPP::BaseVoltage* BaseVoltage; /* All conducting equipment with this base voltage. Use only when there is no voltage level container used and only one base voltage applies. For example, not used for transformers. Default: 0 */ - CIMPP::SvStatus* SvStatus; /* The status state variable associated with this conducting equipment. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ConductingEquipment(); - virtual ~ConductingEquipment(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ConductingEquipment_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/Conductor.cpp b/CGMES_2.4.13_18DEC2013/Conductor.cpp deleted file mode 100644 index 1a0d8eaec..000000000 --- a/CGMES_2.4.13_18DEC2013/Conductor.cpp +++ /dev/null @@ -1,56 +0,0 @@ -#include -#include "ConductingEquipment.hpp" -#include "Conductor.hpp" - -#include "Length.hpp" - -using namespace CIMPP; - -Conductor::Conductor() {}; - -Conductor::~Conductor() {}; - - - - -bool assign_Conductor_length(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Conductor* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->length; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* Conductor_factory() { - return new Conductor; - } -} - -void Conductor::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:Conductor"), &Conductor_factory)); -} - -void Conductor::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:Conductor.length"), &assign_Conductor_length)); -} - -void Conductor::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char Conductor::debugName[] = "Conductor"; -const char* Conductor::debugString() -{ - return Conductor::debugName; -} - -const BaseClassDefiner Conductor::declare() -{ - return BaseClassDefiner(Conductor::addConstructToMap, Conductor::addPrimitiveAssignFnsToMap, Conductor::addClassAssignFnsToMap, Conductor::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/Conductor.hpp b/CGMES_2.4.13_18DEC2013/Conductor.hpp deleted file mode 100644 index 12e8cba7c..000000000 --- a/CGMES_2.4.13_18DEC2013/Conductor.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef Conductor_H -#define Conductor_H - -#include "ConductingEquipment.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Length.hpp" - -namespace CIMPP { - - - /* - Combination of conducting material with consistent electrical characteristics, building a single electrical system, used to carry current between points in the power system. - */ - class Conductor: public ConductingEquipment - { - - public: - CIMPP::Length length; /* Segment length for calculating line section capabilities Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - Conductor(); - virtual ~Conductor(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* Conductor_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ConformLoad.cpp b/CGMES_2.4.13_18DEC2013/ConformLoad.cpp deleted file mode 100644 index 5f030ae04..000000000 --- a/CGMES_2.4.13_18DEC2013/ConformLoad.cpp +++ /dev/null @@ -1,54 +0,0 @@ -#include -#include "EnergyConsumer.hpp" -#include "ConformLoad.hpp" - -#include "ConformLoadGroup.hpp" - -using namespace CIMPP; - -ConformLoad::ConformLoad(): LoadGroup(nullptr) {}; - -ConformLoad::~ConformLoad() {}; - - -bool assign_ConformLoadGroup_EnergyConsumers(BaseClass*, BaseClass*); -bool assign_ConformLoad_LoadGroup(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ConformLoad* element = dynamic_cast(BaseClass_ptr1)) { - element->LoadGroup = dynamic_cast(BaseClass_ptr2); - if(element->LoadGroup != nullptr) - return assign_ConformLoadGroup_EnergyConsumers(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - -namespace CIMPP { - BaseClass* ConformLoad_factory() { - return new ConformLoad; - } -} - -void ConformLoad::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ConformLoad"), &ConformLoad_factory)); -} - -void ConformLoad::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void ConformLoad::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ConformLoad.LoadGroup"), &assign_ConformLoad_LoadGroup)); -} - -const char ConformLoad::debugName[] = "ConformLoad"; -const char* ConformLoad::debugString() -{ - return ConformLoad::debugName; -} - -const BaseClassDefiner ConformLoad::declare() -{ - return BaseClassDefiner(ConformLoad::addConstructToMap, ConformLoad::addPrimitiveAssignFnsToMap, ConformLoad::addClassAssignFnsToMap, ConformLoad::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ConformLoad.hpp b/CGMES_2.4.13_18DEC2013/ConformLoad.hpp deleted file mode 100644 index 6c10592b3..000000000 --- a/CGMES_2.4.13_18DEC2013/ConformLoad.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef ConformLoad_H -#define ConformLoad_H - -#include "EnergyConsumer.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class ConformLoadGroup; - /* - ConformLoad represent loads that follow a daily load change pattern where the pattern can be used to scale the load with a system load. - */ - class ConformLoad: public EnergyConsumer - { - - public: - CIMPP::ConformLoadGroup* LoadGroup; /* Group of this ConformLoad. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ConformLoad(); - virtual ~ConformLoad(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ConformLoad_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ConformLoadGroup.cpp b/CGMES_2.4.13_18DEC2013/ConformLoadGroup.cpp deleted file mode 100644 index 58f726f62..000000000 --- a/CGMES_2.4.13_18DEC2013/ConformLoadGroup.cpp +++ /dev/null @@ -1,67 +0,0 @@ -#include -#include "LoadGroup.hpp" -#include "ConformLoadGroup.hpp" - -#include "ConformLoad.hpp" -#include "ConformLoadSchedule.hpp" - -using namespace CIMPP; - -ConformLoadGroup::ConformLoadGroup() {}; - -ConformLoadGroup::~ConformLoadGroup() {}; - - -bool assign_ConformLoadGroup_EnergyConsumers(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ConformLoadGroup* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->EnergyConsumers.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_ConformLoadGroup_ConformLoadSchedules(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ConformLoadGroup* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->ConformLoadSchedules.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - - - -namespace CIMPP { - BaseClass* ConformLoadGroup_factory() { - return new ConformLoadGroup; - } -} - -void ConformLoadGroup::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ConformLoadGroup"), &ConformLoadGroup_factory)); -} - -void ConformLoadGroup::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void ConformLoadGroup::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ConformLoadGroup.EnergyConsumers"), &assign_ConformLoadGroup_EnergyConsumers)); - assign_map.insert(std::make_pair(std::string("cim:ConformLoadGroup.ConformLoadSchedules"), &assign_ConformLoadGroup_ConformLoadSchedules)); -} - -const char ConformLoadGroup::debugName[] = "ConformLoadGroup"; -const char* ConformLoadGroup::debugString() -{ - return ConformLoadGroup::debugName; -} - -const BaseClassDefiner ConformLoadGroup::declare() -{ - return BaseClassDefiner(ConformLoadGroup::addConstructToMap, ConformLoadGroup::addPrimitiveAssignFnsToMap, ConformLoadGroup::addClassAssignFnsToMap, ConformLoadGroup::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ConformLoadGroup.hpp b/CGMES_2.4.13_18DEC2013/ConformLoadGroup.hpp deleted file mode 100644 index 01cc3c0cd..000000000 --- a/CGMES_2.4.13_18DEC2013/ConformLoadGroup.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef ConformLoadGroup_H -#define ConformLoadGroup_H - -#include "LoadGroup.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class ConformLoad; -class ConformLoadSchedule; - /* - A group of loads conforming to an allocation pattern. - */ - class ConformLoadGroup: public LoadGroup - { - - public: - std::list EnergyConsumers; /* Conform loads assigned to this ConformLoadGroup. Default: 0 */ - std::list ConformLoadSchedules; /* The ConformLoadSchedules in the ConformLoadGroup. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ConformLoadGroup(); - virtual ~ConformLoadGroup(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ConformLoadGroup_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ConformLoadSchedule.cpp b/CGMES_2.4.13_18DEC2013/ConformLoadSchedule.cpp deleted file mode 100644 index bcf5a576d..000000000 --- a/CGMES_2.4.13_18DEC2013/ConformLoadSchedule.cpp +++ /dev/null @@ -1,54 +0,0 @@ -#include -#include "SeasonDayTypeSchedule.hpp" -#include "ConformLoadSchedule.hpp" - -#include "ConformLoadGroup.hpp" - -using namespace CIMPP; - -ConformLoadSchedule::ConformLoadSchedule(): ConformLoadGroup(nullptr) {}; - -ConformLoadSchedule::~ConformLoadSchedule() {}; - - -bool assign_ConformLoadGroup_ConformLoadSchedules(BaseClass*, BaseClass*); -bool assign_ConformLoadSchedule_ConformLoadGroup(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ConformLoadSchedule* element = dynamic_cast(BaseClass_ptr1)) { - element->ConformLoadGroup = dynamic_cast(BaseClass_ptr2); - if(element->ConformLoadGroup != nullptr) - return assign_ConformLoadGroup_ConformLoadSchedules(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - -namespace CIMPP { - BaseClass* ConformLoadSchedule_factory() { - return new ConformLoadSchedule; - } -} - -void ConformLoadSchedule::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ConformLoadSchedule"), &ConformLoadSchedule_factory)); -} - -void ConformLoadSchedule::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void ConformLoadSchedule::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ConformLoadSchedule.ConformLoadGroup"), &assign_ConformLoadSchedule_ConformLoadGroup)); -} - -const char ConformLoadSchedule::debugName[] = "ConformLoadSchedule"; -const char* ConformLoadSchedule::debugString() -{ - return ConformLoadSchedule::debugName; -} - -const BaseClassDefiner ConformLoadSchedule::declare() -{ - return BaseClassDefiner(ConformLoadSchedule::addConstructToMap, ConformLoadSchedule::addPrimitiveAssignFnsToMap, ConformLoadSchedule::addClassAssignFnsToMap, ConformLoadSchedule::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ConformLoadSchedule.hpp b/CGMES_2.4.13_18DEC2013/ConformLoadSchedule.hpp deleted file mode 100644 index bfc522ac8..000000000 --- a/CGMES_2.4.13_18DEC2013/ConformLoadSchedule.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef ConformLoadSchedule_H -#define ConformLoadSchedule_H - -#include "SeasonDayTypeSchedule.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class ConformLoadGroup; - /* - A curve of load versus time (X-axis) showing the active power values (Y1-axis) and reactive power (Y2-axis) for each unit of the period covered. This curve represents a typical pattern of load over the time period for a given day type and season. - */ - class ConformLoadSchedule: public SeasonDayTypeSchedule - { - - public: - CIMPP::ConformLoadGroup* ConformLoadGroup; /* The ConformLoadGroup where the ConformLoadSchedule belongs. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ConformLoadSchedule(); - virtual ~ConformLoadSchedule(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ConformLoadSchedule_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ConnectivityNode.cpp b/CGMES_2.4.13_18DEC2013/ConnectivityNode.cpp deleted file mode 100644 index 83ee633b7..000000000 --- a/CGMES_2.4.13_18DEC2013/ConnectivityNode.cpp +++ /dev/null @@ -1,179 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "ConnectivityNode.hpp" - -#include "TopologicalNode.hpp" -#include "Boolean.hpp" -#include "String.hpp" -#include "String.hpp" -#include "String.hpp" -#include "String.hpp" -#include "String.hpp" -#include "String.hpp" -#include "ConnectivityNodeContainer.hpp" -#include "Terminal.hpp" - -using namespace CIMPP; - -ConnectivityNode::ConnectivityNode(): TopologicalNode(nullptr), ConnectivityNodeContainer(nullptr) {}; - -ConnectivityNode::~ConnectivityNode() {}; - - -bool assign_TopologicalNode_ConnectivityNodes(BaseClass*, BaseClass*); -bool assign_ConnectivityNode_TopologicalNode(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ConnectivityNode* element = dynamic_cast(BaseClass_ptr1)) { - element->TopologicalNode = dynamic_cast(BaseClass_ptr2); - if(element->TopologicalNode != nullptr) - return assign_TopologicalNode_ConnectivityNodes(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - - - - - - -bool assign_ConnectivityNodeContainer_ConnectivityNodes(BaseClass*, BaseClass*); -bool assign_ConnectivityNode_ConnectivityNodeContainer(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ConnectivityNode* element = dynamic_cast(BaseClass_ptr1)) { - element->ConnectivityNodeContainer = dynamic_cast(BaseClass_ptr2); - if(element->ConnectivityNodeContainer != nullptr) - return assign_ConnectivityNodeContainer_ConnectivityNodes(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_ConnectivityNode_Terminals(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ConnectivityNode* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->Terminals.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - - -bool assign_ConnectivityNode_boundaryPoint(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ConnectivityNode* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->boundaryPoint; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ConnectivityNode_fromEndIsoCode(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ConnectivityNode* element = dynamic_cast(BaseClass_ptr1)) { - element->fromEndIsoCode = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_ConnectivityNode_fromEndName(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ConnectivityNode* element = dynamic_cast(BaseClass_ptr1)) { - element->fromEndName = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_ConnectivityNode_fromEndNameTso(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ConnectivityNode* element = dynamic_cast(BaseClass_ptr1)) { - element->fromEndNameTso = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_ConnectivityNode_toEndIsoCode(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ConnectivityNode* element = dynamic_cast(BaseClass_ptr1)) { - element->toEndIsoCode = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_ConnectivityNode_toEndName(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ConnectivityNode* element = dynamic_cast(BaseClass_ptr1)) { - element->toEndName = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_ConnectivityNode_toEndNameTso(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ConnectivityNode* element = dynamic_cast(BaseClass_ptr1)) { - element->toEndNameTso = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - - - -namespace CIMPP { - BaseClass* ConnectivityNode_factory() { - return new ConnectivityNode; - } -} - -void ConnectivityNode::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ConnectivityNode"), &ConnectivityNode_factory)); -} - -void ConnectivityNode::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ConnectivityNode.boundaryPoint"), &assign_ConnectivityNode_boundaryPoint)); - assign_map.insert(std::make_pair(std::string("cim:ConnectivityNode.fromEndIsoCode"), &assign_ConnectivityNode_fromEndIsoCode)); - assign_map.insert(std::make_pair(std::string("cim:ConnectivityNode.fromEndName"), &assign_ConnectivityNode_fromEndName)); - assign_map.insert(std::make_pair(std::string("cim:ConnectivityNode.fromEndNameTso"), &assign_ConnectivityNode_fromEndNameTso)); - assign_map.insert(std::make_pair(std::string("cim:ConnectivityNode.toEndIsoCode"), &assign_ConnectivityNode_toEndIsoCode)); - assign_map.insert(std::make_pair(std::string("cim:ConnectivityNode.toEndName"), &assign_ConnectivityNode_toEndName)); - assign_map.insert(std::make_pair(std::string("cim:ConnectivityNode.toEndNameTso"), &assign_ConnectivityNode_toEndNameTso)); - } - -void ConnectivityNode::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ConnectivityNode.TopologicalNode"), &assign_ConnectivityNode_TopologicalNode)); - assign_map.insert(std::make_pair(std::string("cim:ConnectivityNode.ConnectivityNodeContainer"), &assign_ConnectivityNode_ConnectivityNodeContainer)); - assign_map.insert(std::make_pair(std::string("cim:ConnectivityNode.Terminals"), &assign_ConnectivityNode_Terminals)); -} - -const char ConnectivityNode::debugName[] = "ConnectivityNode"; -const char* ConnectivityNode::debugString() -{ - return ConnectivityNode::debugName; -} - -const BaseClassDefiner ConnectivityNode::declare() -{ - return BaseClassDefiner(ConnectivityNode::addConstructToMap, ConnectivityNode::addPrimitiveAssignFnsToMap, ConnectivityNode::addClassAssignFnsToMap, ConnectivityNode::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ConnectivityNode.hpp b/CGMES_2.4.13_18DEC2013/ConnectivityNode.hpp deleted file mode 100644 index 6ba2376d0..000000000 --- a/CGMES_2.4.13_18DEC2013/ConnectivityNode.hpp +++ /dev/null @@ -1,53 +0,0 @@ -#ifndef ConnectivityNode_H -#define ConnectivityNode_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Boolean.hpp" -#include "String.hpp" - -namespace CIMPP { - - -class TopologicalNode; -class ConnectivityNodeContainer; -class Terminal; - /* - Connectivity nodes are points where terminals of AC conducting equipment are connected together with zero impedance. - */ - class ConnectivityNode: public IdentifiedObject - { - - public: - CIMPP::TopologicalNode* TopologicalNode; /* The connectivity nodes combine together to form this topological node. May depend on the current state of switches in the network. Default: 0 */ - CIMPP::Boolean boundaryPoint; /* Identifies if a node is a BoundaryPoint. If boundaryPoint=true the ConnectivityNode or the TopologicalNode represents a BoundaryPoint. Default: false */ - CIMPP::String fromEndIsoCode; /* The attribute is used for an exchange of the ISO code of the region to which the `From` side of the Boundary point belongs to or it is connected to. The ISO code is two characters country code as defined by ISO 3166 (). The length of the string is 2 characters maximum. The attribute is a required for the Boundary Model Authority Set where this attribute is used only for the TopologicalNode in the Boundary Topology profile and ConnectivityNode in the Boundary Equipment profile. Default: '' */ - CIMPP::String fromEndName; /* The attribute is used for an exchange of a human readable name with length of the string 32 characters maximum. The attribute covers two cases: The attribute is required for the Boundary Model Authority Set where it is used only for the TopologicalNode in the Boundary Topology profile and ConnectivityNode in the Boundary Equipment profile. Default: '' */ - CIMPP::String fromEndNameTso; /* The attribute is used for an exchange of the name of the TSO to which the `From` side of the Boundary point belongs to or it is connected to. The length of the string is 32 characters maximum. The attribute is required for the Boundary Model Authority Set where it is used only for the TopologicalNode in the Boundary Topology profile and ConnectivityNode in the Boundary Equipment profile. Default: '' */ - CIMPP::String toEndIsoCode; /* The attribute is used for an exchange of the ISO code of the region to which the `To` side of the Boundary point belongs to or it is connected to. The ISO code is two characters country code as defined by ISO 3166 (). The length of the string is 2 characters maximum. The attribute is a required for the Boundary Model Authority Set where this attribute is used only for the TopologicalNode in the Boundary Topology profile and ConnectivityNode in the Boundary Equipment profile. Default: '' */ - CIMPP::String toEndName; /* The attribute is used for an exchange of a human readable name with length of the string 32 characters maximum. The attribute covers two cases: The attribute is required for the Boundary Model Authority Set where it is used only for the TopologicalNode in the Boundary Topology profile and ConnectivityNode in the Boundary Equipment profile. Default: '' */ - CIMPP::String toEndNameTso; /* The attribute is used for an exchange of the name of the TSO to which the `To` side of the Boundary point belongs to or it is connected to. The length of the string is 32 characters maximum. The attribute is required for the Boundary Model Authority Set where it is used only for the TopologicalNode in the Boundary Topology profile and ConnectivityNode in the Boundary Equipment profile. Default: '' */ - CIMPP::ConnectivityNodeContainer* ConnectivityNodeContainer; /* Container of this connectivity node. Default: 0 */ - std::list Terminals; /* The connectivity node to which this terminal connects with zero impedance. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ConnectivityNode(); - virtual ~ConnectivityNode(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ConnectivityNode_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ConnectivityNodeContainer.cpp b/CGMES_2.4.13_18DEC2013/ConnectivityNodeContainer.cpp deleted file mode 100644 index 671e448b3..000000000 --- a/CGMES_2.4.13_18DEC2013/ConnectivityNodeContainer.cpp +++ /dev/null @@ -1,67 +0,0 @@ -#include -#include "PowerSystemResource.hpp" -#include "ConnectivityNodeContainer.hpp" - -#include "TopologicalNode.hpp" -#include "ConnectivityNode.hpp" - -using namespace CIMPP; - -ConnectivityNodeContainer::ConnectivityNodeContainer() {}; - -ConnectivityNodeContainer::~ConnectivityNodeContainer() {}; - - -bool assign_ConnectivityNodeContainer_TopologicalNode(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ConnectivityNodeContainer* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->TopologicalNode.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_ConnectivityNodeContainer_ConnectivityNodes(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ConnectivityNodeContainer* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->ConnectivityNodes.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - - - -namespace CIMPP { - BaseClass* ConnectivityNodeContainer_factory() { - return new ConnectivityNodeContainer; - } -} - -void ConnectivityNodeContainer::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ConnectivityNodeContainer"), &ConnectivityNodeContainer_factory)); -} - -void ConnectivityNodeContainer::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void ConnectivityNodeContainer::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ConnectivityNodeContainer.TopologicalNode"), &assign_ConnectivityNodeContainer_TopologicalNode)); - assign_map.insert(std::make_pair(std::string("cim:ConnectivityNodeContainer.ConnectivityNodes"), &assign_ConnectivityNodeContainer_ConnectivityNodes)); -} - -const char ConnectivityNodeContainer::debugName[] = "ConnectivityNodeContainer"; -const char* ConnectivityNodeContainer::debugString() -{ - return ConnectivityNodeContainer::debugName; -} - -const BaseClassDefiner ConnectivityNodeContainer::declare() -{ - return BaseClassDefiner(ConnectivityNodeContainer::addConstructToMap, ConnectivityNodeContainer::addPrimitiveAssignFnsToMap, ConnectivityNodeContainer::addClassAssignFnsToMap, ConnectivityNodeContainer::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ConnectivityNodeContainer.hpp b/CGMES_2.4.13_18DEC2013/ConnectivityNodeContainer.hpp deleted file mode 100644 index 76fc64131..000000000 --- a/CGMES_2.4.13_18DEC2013/ConnectivityNodeContainer.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef ConnectivityNodeContainer_H -#define ConnectivityNodeContainer_H - -#include "PowerSystemResource.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class TopologicalNode; -class ConnectivityNode; - /* - A base class for all objects that may contain connectivity nodes or topological nodes. - */ - class ConnectivityNodeContainer: public PowerSystemResource - { - - public: - std::list TopologicalNode; /* The topological nodes which belong to this connectivity node container. Default: 0 */ - std::list ConnectivityNodes; /* Connectivity nodes which belong to this connectivity node container. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ConnectivityNodeContainer(); - virtual ~ConnectivityNodeContainer(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ConnectivityNodeContainer_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/Connector.cpp b/CGMES_2.4.13_18DEC2013/Connector.cpp deleted file mode 100644 index e4754630f..000000000 --- a/CGMES_2.4.13_18DEC2013/Connector.cpp +++ /dev/null @@ -1,41 +0,0 @@ -#include -#include "ConductingEquipment.hpp" -#include "Connector.hpp" - - -using namespace CIMPP; - -Connector::Connector() {}; - -Connector::~Connector() {}; - - - -namespace CIMPP { - BaseClass* Connector_factory() { - return new Connector; - } -} - -void Connector::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:Connector"), &Connector_factory)); -} - -void Connector::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { -} - -void Connector::addClassAssignFnsToMap(std::unordered_map& assign_map) { -} - -const char Connector::debugName[] = "Connector"; -const char* Connector::debugString() -{ - return Connector::debugName; -} - -const BaseClassDefiner Connector::declare() -{ - return BaseClassDefiner(Connector::addConstructToMap, Connector::addPrimitiveAssignFnsToMap, Connector::addClassAssignFnsToMap, Connector::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/Connector.hpp b/CGMES_2.4.13_18DEC2013/Connector.hpp deleted file mode 100644 index 6322a9360..000000000 --- a/CGMES_2.4.13_18DEC2013/Connector.hpp +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef Connector_H -#define Connector_H - -#include "ConductingEquipment.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - - /* - A conductor, or group of conductors, with negligible impedance, that serve to connect other conducting equipment within a single substation and are modelled with a single logical terminal. - */ - class Connector: public ConductingEquipment - { - - public: - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - Connector(); - virtual ~Connector(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* Connector_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/Control.cpp b/CGMES_2.4.13_18DEC2013/Control.cpp deleted file mode 100644 index 75af44fa1..000000000 --- a/CGMES_2.4.13_18DEC2013/Control.cpp +++ /dev/null @@ -1,125 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "Control.hpp" - -#include "String.hpp" -#include "Boolean.hpp" -#include "DateTime.hpp" -#include "UnitMultiplier.hpp" -#include "UnitSymbol.hpp" -#include "PowerSystemResource.hpp" - -using namespace CIMPP; - -Control::Control(): timeStamp(nullptr), PowerSystemResource(nullptr) {}; - -Control::~Control() {}; - - - - -bool assign_Control_timeStamp(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(Control* element = dynamic_cast(BaseClass_ptr1)) { - element->timeStamp = dynamic_cast(BaseClass_ptr2); - if(element->timeStamp != nullptr) - return true; - } - return false; -} - - - -bool assign_PowerSystemResource_Controls(BaseClass*, BaseClass*); -bool assign_Control_PowerSystemResource(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(Control* element = dynamic_cast(BaseClass_ptr1)) { - element->PowerSystemResource = dynamic_cast(BaseClass_ptr2); - if(element->PowerSystemResource != nullptr) - return assign_PowerSystemResource_Controls(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - -bool assign_Control_controlType(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Control* element = dynamic_cast(BaseClass_ptr1)) { - element->controlType = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_Control_operationInProgress(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Control* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->operationInProgress; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -bool assign_Control_unitMultiplier(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Control* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->unitMultiplier; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Control_unitSymbol(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Control* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->unitSymbol; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -namespace CIMPP { - BaseClass* Control_factory() { - return new Control; - } -} - -void Control::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:Control"), &Control_factory)); -} - -void Control::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:Control.controlType"), &assign_Control_controlType)); - assign_map.insert(std::make_pair(std::string("cim:Control.operationInProgress"), &assign_Control_operationInProgress)); - assign_map.insert(std::make_pair(std::string("cim:Control.unitMultiplier"), &assign_Control_unitMultiplier)); - assign_map.insert(std::make_pair(std::string("cim:Control.unitSymbol"), &assign_Control_unitSymbol)); - } - -void Control::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:Control.timeStamp"), &assign_Control_timeStamp)); - assign_map.insert(std::make_pair(std::string("cim:Control.PowerSystemResource"), &assign_Control_PowerSystemResource)); -} - -const char Control::debugName[] = "Control"; -const char* Control::debugString() -{ - return Control::debugName; -} - -const BaseClassDefiner Control::declare() -{ - return BaseClassDefiner(Control::addConstructToMap, Control::addPrimitiveAssignFnsToMap, Control::addClassAssignFnsToMap, Control::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/Control.hpp b/CGMES_2.4.13_18DEC2013/Control.hpp deleted file mode 100644 index 0eda4c1bb..000000000 --- a/CGMES_2.4.13_18DEC2013/Control.hpp +++ /dev/null @@ -1,50 +0,0 @@ -#ifndef Control_H -#define Control_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "String.hpp" -#include "Boolean.hpp" -#include "UnitMultiplier.hpp" -#include "UnitSymbol.hpp" - -namespace CIMPP { - - -class DateTime; -class PowerSystemResource; - /* - Control is used for supervisory/device control. It represents control outputs that are used to change the state in a process, e.g. close or open breaker, a set point value or a raise lower command. - */ - class Control: public IdentifiedObject - { - - public: - CIMPP::String controlType; /* Specifies the type of Control, e.g. BreakerOn/Off, GeneratorVoltageSetPoint, TieLineFlow etc. The ControlType.name shall be unique among all specified types and describe the type. Default: '' */ - CIMPP::Boolean operationInProgress; /* Indicates that a client is currently sending control commands that has not completed. Default: false */ - CIMPP::DateTime* timeStamp; /* The last time a control output was sent. Default: '' */ - CIMPP::UnitMultiplier unitMultiplier; /* The unit multiplier of the controlled quantity. Default: 0 */ - CIMPP::UnitSymbol unitSymbol; /* The unit of measure of the controlled quantity. Default: 0 */ - CIMPP::PowerSystemResource* PowerSystemResource; /* The controller outputs used to actually govern a regulating device, e.g. the magnetization of a synchronous machine or capacitor bank breaker actuator. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - Control(); - virtual ~Control(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* Control_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ControlArea.cpp b/CGMES_2.4.13_18DEC2013/ControlArea.cpp deleted file mode 100644 index ca9961896..000000000 --- a/CGMES_2.4.13_18DEC2013/ControlArea.cpp +++ /dev/null @@ -1,125 +0,0 @@ -#include -#include "PowerSystemResource.hpp" -#include "ControlArea.hpp" - -#include "ActivePower.hpp" -#include "ActivePower.hpp" -#include "EnergyArea.hpp" -#include "ControlAreaTypeKind.hpp" -#include "TieFlow.hpp" -#include "ControlAreaGeneratingUnit.hpp" - -using namespace CIMPP; - -ControlArea::ControlArea(): EnergyArea(nullptr) {}; - -ControlArea::~ControlArea() {}; - - - - -bool assign_EnergyArea_ControlArea(BaseClass*, BaseClass*); -bool assign_ControlArea_EnergyArea(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ControlArea* element = dynamic_cast(BaseClass_ptr1)) { - element->EnergyArea = dynamic_cast(BaseClass_ptr2); - if(element->EnergyArea != nullptr) - return assign_EnergyArea_ControlArea(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - -bool assign_ControlArea_TieFlow(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ControlArea* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->TieFlow.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_ControlArea_ControlAreaGeneratingUnit(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ControlArea* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->ControlAreaGeneratingUnit.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - -bool assign_ControlArea_netInterchange(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ControlArea* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->netInterchange; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ControlArea_pTolerance(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ControlArea* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pTolerance; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -bool assign_ControlArea_type(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ControlArea* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->type; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - - -namespace CIMPP { - BaseClass* ControlArea_factory() { - return new ControlArea; - } -} - -void ControlArea::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ControlArea"), &ControlArea_factory)); -} - -void ControlArea::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ControlArea.netInterchange"), &assign_ControlArea_netInterchange)); - assign_map.insert(std::make_pair(std::string("cim:ControlArea.pTolerance"), &assign_ControlArea_pTolerance)); - assign_map.insert(std::make_pair(std::string("cim:ControlArea.type"), &assign_ControlArea_type)); - } - -void ControlArea::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ControlArea.EnergyArea"), &assign_ControlArea_EnergyArea)); - assign_map.insert(std::make_pair(std::string("cim:ControlArea.TieFlow"), &assign_ControlArea_TieFlow)); - assign_map.insert(std::make_pair(std::string("cim:ControlArea.ControlAreaGeneratingUnit"), &assign_ControlArea_ControlAreaGeneratingUnit)); -} - -const char ControlArea::debugName[] = "ControlArea"; -const char* ControlArea::debugString() -{ - return ControlArea::debugName; -} - -const BaseClassDefiner ControlArea::declare() -{ - return BaseClassDefiner(ControlArea::addConstructToMap, ControlArea::addPrimitiveAssignFnsToMap, ControlArea::addClassAssignFnsToMap, ControlArea::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ControlArea.hpp b/CGMES_2.4.13_18DEC2013/ControlArea.hpp deleted file mode 100644 index 1e1aefbc4..000000000 --- a/CGMES_2.4.13_18DEC2013/ControlArea.hpp +++ /dev/null @@ -1,49 +0,0 @@ -#ifndef ControlArea_H -#define ControlArea_H - -#include "PowerSystemResource.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "ActivePower.hpp" -#include "ControlAreaTypeKind.hpp" - -namespace CIMPP { - - -class EnergyArea; -class TieFlow; -class ControlAreaGeneratingUnit; - /* - A is a grouping of and/or loads and a cutset of tie lines (as ) which may be used for a variety of purposes including automatic generation control, powerflow solution area interchange control specification, and input to load forecasting. Note that any number of overlapping control area specifications can be superimposed on the physical model. - */ - class ControlArea: public PowerSystemResource - { - - public: - CIMPP::ActivePower netInterchange; /* The specified positive net interchange into the control area, i.e. positive sign means flow in to the area. Default: nullptr */ - CIMPP::ActivePower pTolerance; /* Active power net interchange tolerance Default: nullptr */ - CIMPP::EnergyArea* EnergyArea; /* The energy area that is forecast from this control area specification. Default: 0 */ - CIMPP::ControlAreaTypeKind type; /* The type of control area definition used to determine if this is used for automatic generation control, for planning interchange control, or other purposes. Default: 0 */ - std::list TieFlow; /* The tie flows associated with the control area. Default: 0 */ - std::list ControlAreaGeneratingUnit; /* The generating unit specificaitons for the control area. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ControlArea(); - virtual ~ControlArea(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ControlArea_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ControlAreaGeneratingUnit.cpp b/CGMES_2.4.13_18DEC2013/ControlAreaGeneratingUnit.cpp deleted file mode 100644 index a9f06554d..000000000 --- a/CGMES_2.4.13_18DEC2013/ControlAreaGeneratingUnit.cpp +++ /dev/null @@ -1,67 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "ControlAreaGeneratingUnit.hpp" - -#include "GeneratingUnit.hpp" -#include "ControlArea.hpp" - -using namespace CIMPP; - -ControlAreaGeneratingUnit::ControlAreaGeneratingUnit(): GeneratingUnit(nullptr), ControlArea(nullptr) {}; - -ControlAreaGeneratingUnit::~ControlAreaGeneratingUnit() {}; - - -bool assign_GeneratingUnit_ControlAreaGeneratingUnit(BaseClass*, BaseClass*); -bool assign_ControlAreaGeneratingUnit_GeneratingUnit(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ControlAreaGeneratingUnit* element = dynamic_cast(BaseClass_ptr1)) { - element->GeneratingUnit = dynamic_cast(BaseClass_ptr2); - if(element->GeneratingUnit != nullptr) - return assign_GeneratingUnit_ControlAreaGeneratingUnit(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_ControlArea_ControlAreaGeneratingUnit(BaseClass*, BaseClass*); -bool assign_ControlAreaGeneratingUnit_ControlArea(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ControlAreaGeneratingUnit* element = dynamic_cast(BaseClass_ptr1)) { - element->ControlArea = dynamic_cast(BaseClass_ptr2); - if(element->ControlArea != nullptr) - return assign_ControlArea_ControlAreaGeneratingUnit(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - - -namespace CIMPP { - BaseClass* ControlAreaGeneratingUnit_factory() { - return new ControlAreaGeneratingUnit; - } -} - -void ControlAreaGeneratingUnit::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ControlAreaGeneratingUnit"), &ControlAreaGeneratingUnit_factory)); -} - -void ControlAreaGeneratingUnit::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void ControlAreaGeneratingUnit::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ControlAreaGeneratingUnit.GeneratingUnit"), &assign_ControlAreaGeneratingUnit_GeneratingUnit)); - assign_map.insert(std::make_pair(std::string("cim:ControlAreaGeneratingUnit.ControlArea"), &assign_ControlAreaGeneratingUnit_ControlArea)); -} - -const char ControlAreaGeneratingUnit::debugName[] = "ControlAreaGeneratingUnit"; -const char* ControlAreaGeneratingUnit::debugString() -{ - return ControlAreaGeneratingUnit::debugName; -} - -const BaseClassDefiner ControlAreaGeneratingUnit::declare() -{ - return BaseClassDefiner(ControlAreaGeneratingUnit::addConstructToMap, ControlAreaGeneratingUnit::addPrimitiveAssignFnsToMap, ControlAreaGeneratingUnit::addClassAssignFnsToMap, ControlAreaGeneratingUnit::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ControlAreaGeneratingUnit.hpp b/CGMES_2.4.13_18DEC2013/ControlAreaGeneratingUnit.hpp deleted file mode 100644 index 80d838c5f..000000000 --- a/CGMES_2.4.13_18DEC2013/ControlAreaGeneratingUnit.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef ControlAreaGeneratingUnit_H -#define ControlAreaGeneratingUnit_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class GeneratingUnit; -class ControlArea; - /* - A control area generating unit. This class is needed so that alternate control area definitions may include the same generating unit. Note only one instance within a control area should reference a specific generating unit. - */ - class ControlAreaGeneratingUnit: public IdentifiedObject - { - - public: - CIMPP::GeneratingUnit* GeneratingUnit; /* The generating unit specified for this control area. Note that a control area should include a GeneratingUnit only once. Default: 0 */ - CIMPP::ControlArea* ControlArea; /* The parent control area for the generating unit specifications. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ControlAreaGeneratingUnit(); - virtual ~ControlAreaGeneratingUnit(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ControlAreaGeneratingUnit_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ControlAreaTypeKind.cpp b/CGMES_2.4.13_18DEC2013/ControlAreaTypeKind.cpp deleted file mode 100644 index 46a651a3f..000000000 --- a/CGMES_2.4.13_18DEC2013/ControlAreaTypeKind.cpp +++ /dev/null @@ -1,42 +0,0 @@ -#include -#include -#include "ControlAreaTypeKind.hpp" - -using namespace CIMPP; - -namespace CIMPP { - std::istream& operator>>(std::istream& lop, CIMPP::ControlAreaTypeKind& rop) - { - std::string EnumSymbol; - lop >> EnumSymbol; - - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "ControlAreaTypeKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "AGC") - { - rop = ControlAreaTypeKind::AGC; - return lop; - } - if(EnumSymbol == "Forecast") - { - rop = ControlAreaTypeKind::Forecast; - return lop; - } - if(EnumSymbol == "Interchange") - { - rop = ControlAreaTypeKind::Interchange; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; - } -} - diff --git a/CGMES_2.4.13_18DEC2013/ControlAreaTypeKind.hpp b/CGMES_2.4.13_18DEC2013/ControlAreaTypeKind.hpp deleted file mode 100644 index d111ce9ae..000000000 --- a/CGMES_2.4.13_18DEC2013/ControlAreaTypeKind.hpp +++ /dev/null @@ -1,25 +0,0 @@ -#ifndef ControlAreaTypeKind_H -#define ControlAreaTypeKind_H - -namespace CIMPP { - /* - The type of control area. - */ - enum class ControlAreaTypeKind - { - /** - * Used for automatic generation control. - */ - AGC, - /** - * Used for load forecast. - */ - Forecast, - /** - * Used for interchange specification or control. - */ - Interchange, - }; - std::istream& operator>>(std::istream& lop, CIMPP::ControlAreaTypeKind& rop); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/CoordinateSystem.cpp b/CGMES_2.4.13_18DEC2013/CoordinateSystem.cpp deleted file mode 100644 index e37246668..000000000 --- a/CGMES_2.4.13_18DEC2013/CoordinateSystem.cpp +++ /dev/null @@ -1,68 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "CoordinateSystem.hpp" - -#include "String.hpp" -#include "Location.hpp" - -using namespace CIMPP; - -CoordinateSystem::CoordinateSystem() {}; - -CoordinateSystem::~CoordinateSystem() {}; - - - -bool assign_CoordinateSystem_Location(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(CoordinateSystem* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->Location.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - -bool assign_CoordinateSystem_crsUrn(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(CoordinateSystem* element = dynamic_cast(BaseClass_ptr1)) { - element->crsUrn = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - - -namespace CIMPP { - BaseClass* CoordinateSystem_factory() { - return new CoordinateSystem; - } -} - -void CoordinateSystem::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:CoordinateSystem"), &CoordinateSystem_factory)); -} - -void CoordinateSystem::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:CoordinateSystem.crsUrn"), &assign_CoordinateSystem_crsUrn)); - } - -void CoordinateSystem::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:CoordinateSystem.Location"), &assign_CoordinateSystem_Location)); -} - -const char CoordinateSystem::debugName[] = "CoordinateSystem"; -const char* CoordinateSystem::debugString() -{ - return CoordinateSystem::debugName; -} - -const BaseClassDefiner CoordinateSystem::declare() -{ - return BaseClassDefiner(CoordinateSystem::addConstructToMap, CoordinateSystem::addPrimitiveAssignFnsToMap, CoordinateSystem::addClassAssignFnsToMap, CoordinateSystem::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/CoordinateSystem.hpp b/CGMES_2.4.13_18DEC2013/CoordinateSystem.hpp deleted file mode 100644 index 5202e0375..000000000 --- a/CGMES_2.4.13_18DEC2013/CoordinateSystem.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef CoordinateSystem_H -#define CoordinateSystem_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "String.hpp" - -namespace CIMPP { - - -class Location; - /* - Coordinate reference system. - */ - class CoordinateSystem: public IdentifiedObject - { - - public: - CIMPP::String crsUrn; /* A Uniform Resource Name (URN) for the coordinate reference system (crs) used to define `Location.PositionPoints`. An example would be the European Petroleum Survey Group (EPSG) code for a coordinate reference system, defined in URN under the Open Geospatial Consortium (OGC) namespace as: urn:ogc:def:uom:EPSG::XXXX, where XXXX is an EPSG code (a full list of codes can be found at the EPSG Registry web site http://www.epsg-registry.org/). To define the coordinate system as being WGS84 (latitude, longitude) using an EPSG OGC, this attribute would be urn:ogc:def:uom:EPSG::4236. A profile should limit this code to a set of allowed URNs agreed to by all sending and receiving parties. Default: '' */ - std::list Location; /* All locations described with position points in this coordinate system. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - CoordinateSystem(); - virtual ~CoordinateSystem(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* CoordinateSystem_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/CsConverter.cpp b/CGMES_2.4.13_18DEC2013/CsConverter.cpp deleted file mode 100644 index b536e88fe..000000000 --- a/CGMES_2.4.13_18DEC2013/CsConverter.cpp +++ /dev/null @@ -1,251 +0,0 @@ -#include -#include "ACDCConverter.hpp" -#include "CsConverter.hpp" - -#include "CsOperatingModeKind.hpp" -#include "CsPpccControlKind.hpp" -#include "AngleDegrees.hpp" -#include "AngleDegrees.hpp" -#include "CurrentFlow.hpp" -#include "AngleDegrees.hpp" -#include "AngleDegrees.hpp" -#include "CurrentFlow.hpp" -#include "AngleDegrees.hpp" -#include "AngleDegrees.hpp" -#include "CurrentFlow.hpp" -#include "CurrentFlow.hpp" -#include "AngleDegrees.hpp" -#include "AngleDegrees.hpp" - -using namespace CIMPP; - -CsConverter::CsConverter() {}; - -CsConverter::~CsConverter() {}; - - - - - - - - - - - - - - - - - -bool assign_CsConverter_operatingMode(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(CsConverter* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->operatingMode; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_CsConverter_pPccControl(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(CsConverter* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pPccControl; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_CsConverter_targetAlpha(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(CsConverter* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->targetAlpha; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_CsConverter_targetGamma(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(CsConverter* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->targetGamma; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_CsConverter_targetIdc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(CsConverter* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->targetIdc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_CsConverter_maxAlpha(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(CsConverter* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->maxAlpha; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_CsConverter_maxGamma(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(CsConverter* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->maxGamma; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_CsConverter_maxIdc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(CsConverter* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->maxIdc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_CsConverter_minAlpha(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(CsConverter* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->minAlpha; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_CsConverter_minGamma(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(CsConverter* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->minGamma; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_CsConverter_minIdc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(CsConverter* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->minIdc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_CsConverter_ratedIdc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(CsConverter* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ratedIdc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_CsConverter_alpha(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(CsConverter* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->alpha; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_CsConverter_gamma(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(CsConverter* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gamma; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* CsConverter_factory() { - return new CsConverter; - } -} - -void CsConverter::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:CsConverter"), &CsConverter_factory)); -} - -void CsConverter::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:CsConverter.operatingMode"), &assign_CsConverter_operatingMode)); - assign_map.insert(std::make_pair(std::string("cim:CsConverter.pPccControl"), &assign_CsConverter_pPccControl)); - assign_map.insert(std::make_pair(std::string("cim:CsConverter.targetAlpha"), &assign_CsConverter_targetAlpha)); - assign_map.insert(std::make_pair(std::string("cim:CsConverter.targetGamma"), &assign_CsConverter_targetGamma)); - assign_map.insert(std::make_pair(std::string("cim:CsConverter.targetIdc"), &assign_CsConverter_targetIdc)); - assign_map.insert(std::make_pair(std::string("cim:CsConverter.maxAlpha"), &assign_CsConverter_maxAlpha)); - assign_map.insert(std::make_pair(std::string("cim:CsConverter.maxGamma"), &assign_CsConverter_maxGamma)); - assign_map.insert(std::make_pair(std::string("cim:CsConverter.maxIdc"), &assign_CsConverter_maxIdc)); - assign_map.insert(std::make_pair(std::string("cim:CsConverter.minAlpha"), &assign_CsConverter_minAlpha)); - assign_map.insert(std::make_pair(std::string("cim:CsConverter.minGamma"), &assign_CsConverter_minGamma)); - assign_map.insert(std::make_pair(std::string("cim:CsConverter.minIdc"), &assign_CsConverter_minIdc)); - assign_map.insert(std::make_pair(std::string("cim:CsConverter.ratedIdc"), &assign_CsConverter_ratedIdc)); - assign_map.insert(std::make_pair(std::string("cim:CsConverter.alpha"), &assign_CsConverter_alpha)); - assign_map.insert(std::make_pair(std::string("cim:CsConverter.gamma"), &assign_CsConverter_gamma)); -} - -void CsConverter::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char CsConverter::debugName[] = "CsConverter"; -const char* CsConverter::debugString() -{ - return CsConverter::debugName; -} - -const BaseClassDefiner CsConverter::declare() -{ - return BaseClassDefiner(CsConverter::addConstructToMap, CsConverter::addPrimitiveAssignFnsToMap, CsConverter::addClassAssignFnsToMap, CsConverter::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/CsConverter.hpp b/CGMES_2.4.13_18DEC2013/CsConverter.hpp deleted file mode 100644 index 32005ebc3..000000000 --- a/CGMES_2.4.13_18DEC2013/CsConverter.hpp +++ /dev/null @@ -1,56 +0,0 @@ -#ifndef CsConverter_H -#define CsConverter_H - -#include "ACDCConverter.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "CsOperatingModeKind.hpp" -#include "CsPpccControlKind.hpp" -#include "AngleDegrees.hpp" -#include "CurrentFlow.hpp" - -namespace CIMPP { - - - /* - DC side of the current source converter (CSC). - */ - class CsConverter: public ACDCConverter - { - - public: - CIMPP::CsOperatingModeKind operatingMode; /* Indicates whether the DC pole is operating as an inverter or as a rectifier. CSC control variable used in power flow. Default: 0 */ - CIMPP::CsPpccControlKind pPccControl; /* Default: 0 */ - CIMPP::AngleDegrees targetAlpha; /* Target firing angle. CSC control variable used in power flow. Default: nullptr */ - CIMPP::AngleDegrees targetGamma; /* Target extinction angle. CSC control variable used in power flow. Default: nullptr */ - CIMPP::CurrentFlow targetIdc; /* DC current target value. CSC control variable used in power flow. Default: nullptr */ - CIMPP::AngleDegrees maxAlpha; /* Maximum firing angle. CSC configuration data used in power flow. Default: nullptr */ - CIMPP::AngleDegrees maxGamma; /* Maximum extinction angle. CSC configuration data used in power flow. Default: nullptr */ - CIMPP::CurrentFlow maxIdc; /* The maximum direct current (Id) on the DC side at which the converter should operate. Converter configuration data use in power flow. Default: nullptr */ - CIMPP::AngleDegrees minAlpha; /* Minimum firing angle. CSC configuration data used in power flow. Default: nullptr */ - CIMPP::AngleDegrees minGamma; /* Minimum extinction angle. CSC configuration data used in power flow. Default: nullptr */ - CIMPP::CurrentFlow minIdc; /* The minimum direct current (Id) on the DC side at which the converter should operate. CSC configuration data used in power flow. Default: nullptr */ - CIMPP::CurrentFlow ratedIdc; /* Rated converter DC current, also called IdN. Converter configuration data used in power flow. Default: nullptr */ - CIMPP::AngleDegrees alpha; /* Firing angle, typical value between 10 and 18 degrees for a rectifier. CSC state variable, result from power flow. Default: nullptr */ - CIMPP::AngleDegrees gamma; /* Extinction angle. CSC state variable, result from power flow. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - CsConverter(); - virtual ~CsConverter(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* CsConverter_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/CsOperatingModeKind.cpp b/CGMES_2.4.13_18DEC2013/CsOperatingModeKind.cpp deleted file mode 100644 index a5c91bcad..000000000 --- a/CGMES_2.4.13_18DEC2013/CsOperatingModeKind.cpp +++ /dev/null @@ -1,37 +0,0 @@ -#include -#include -#include "CsOperatingModeKind.hpp" - -using namespace CIMPP; - -namespace CIMPP { - std::istream& operator>>(std::istream& lop, CIMPP::CsOperatingModeKind& rop) - { - std::string EnumSymbol; - lop >> EnumSymbol; - - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "CsOperatingModeKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "inverter") - { - rop = CsOperatingModeKind::inverter; - return lop; - } - if(EnumSymbol == "rectifier") - { - rop = CsOperatingModeKind::rectifier; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; - } -} - diff --git a/CGMES_2.4.13_18DEC2013/CsOperatingModeKind.hpp b/CGMES_2.4.13_18DEC2013/CsOperatingModeKind.hpp deleted file mode 100644 index bd6a1f51d..000000000 --- a/CGMES_2.4.13_18DEC2013/CsOperatingModeKind.hpp +++ /dev/null @@ -1,21 +0,0 @@ -#ifndef CsOperatingModeKind_H -#define CsOperatingModeKind_H - -namespace CIMPP { - /* - Operating mode for HVDC line operating as Current Source Converter. - */ - enum class CsOperatingModeKind - { - /** - * Operating as inverter - */ - inverter, - /** - * Operating as rectifier. - */ - rectifier, - }; - std::istream& operator>>(std::istream& lop, CIMPP::CsOperatingModeKind& rop); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/CsPpccControlKind.cpp b/CGMES_2.4.13_18DEC2013/CsPpccControlKind.cpp deleted file mode 100644 index 7dab2997c..000000000 --- a/CGMES_2.4.13_18DEC2013/CsPpccControlKind.cpp +++ /dev/null @@ -1,42 +0,0 @@ -#include -#include -#include "CsPpccControlKind.hpp" - -using namespace CIMPP; - -namespace CIMPP { - std::istream& operator>>(std::istream& lop, CIMPP::CsPpccControlKind& rop) - { - std::string EnumSymbol; - lop >> EnumSymbol; - - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "CsPpccControlKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "activePower") - { - rop = CsPpccControlKind::activePower; - return lop; - } - if(EnumSymbol == "dcVoltage") - { - rop = CsPpccControlKind::dcVoltage; - return lop; - } - if(EnumSymbol == "dcCurrent") - { - rop = CsPpccControlKind::dcCurrent; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; - } -} - diff --git a/CGMES_2.4.13_18DEC2013/CsPpccControlKind.hpp b/CGMES_2.4.13_18DEC2013/CsPpccControlKind.hpp deleted file mode 100644 index 049a5127f..000000000 --- a/CGMES_2.4.13_18DEC2013/CsPpccControlKind.hpp +++ /dev/null @@ -1,25 +0,0 @@ -#ifndef CsPpccControlKind_H -#define CsPpccControlKind_H - -namespace CIMPP { - /* - Active power control modes for HVDC line operating as Current Source Converter. - */ - enum class CsPpccControlKind - { - /** - * Active power control at AC side. - */ - activePower, - /** - * DC voltage control. - */ - dcVoltage, - /** - * DC current control - */ - dcCurrent, - }; - std::istream& operator>>(std::istream& lop, CIMPP::CsPpccControlKind& rop); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/Currency.cpp b/CGMES_2.4.13_18DEC2013/Currency.cpp deleted file mode 100644 index 360e9e694..000000000 --- a/CGMES_2.4.13_18DEC2013/Currency.cpp +++ /dev/null @@ -1,97 +0,0 @@ -#include -#include -#include "Currency.hpp" - -using namespace CIMPP; - -namespace CIMPP { - std::istream& operator>>(std::istream& lop, CIMPP::Currency& rop) - { - std::string EnumSymbol; - lop >> EnumSymbol; - - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "Currency") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "USD") - { - rop = Currency::USD; - return lop; - } - if(EnumSymbol == "EUR") - { - rop = Currency::EUR; - return lop; - } - if(EnumSymbol == "AUD") - { - rop = Currency::AUD; - return lop; - } - if(EnumSymbol == "CAD") - { - rop = Currency::CAD; - return lop; - } - if(EnumSymbol == "CHF") - { - rop = Currency::CHF; - return lop; - } - if(EnumSymbol == "CNY") - { - rop = Currency::CNY; - return lop; - } - if(EnumSymbol == "DKK") - { - rop = Currency::DKK; - return lop; - } - if(EnumSymbol == "GBP") - { - rop = Currency::GBP; - return lop; - } - if(EnumSymbol == "JPY") - { - rop = Currency::JPY; - return lop; - } - if(EnumSymbol == "NOK") - { - rop = Currency::NOK; - return lop; - } - if(EnumSymbol == "RUR") - { - rop = Currency::RUR; - return lop; - } - if(EnumSymbol == "SEK") - { - rop = Currency::SEK; - return lop; - } - if(EnumSymbol == "INR") - { - rop = Currency::INR; - return lop; - } - if(EnumSymbol == "other") - { - rop = Currency::other; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; - } -} - diff --git a/CGMES_2.4.13_18DEC2013/Currency.hpp b/CGMES_2.4.13_18DEC2013/Currency.hpp deleted file mode 100644 index 552514a04..000000000 --- a/CGMES_2.4.13_18DEC2013/Currency.hpp +++ /dev/null @@ -1,69 +0,0 @@ -#ifndef Currency_H -#define Currency_H - -namespace CIMPP { - /* - Monetary currencies. Apologies for this list not being exhaustive. - */ - enum class Currency - { - /** - * US dollar - */ - USD, - /** - * European euro - */ - EUR, - /** - * Australian dollar - */ - AUD, - /** - * Canadian dollar - */ - CAD, - /** - * Swiss francs - */ - CHF, - /** - * Chinese yuan renminbi - */ - CNY, - /** - * Danish crown - */ - DKK, - /** - * British pound - */ - GBP, - /** - * Japanese yen - */ - JPY, - /** - * Norwegian crown - */ - NOK, - /** - * Russian ruble - */ - RUR, - /** - * Swedish crown - */ - SEK, - /** - * India rupees - */ - INR, - /** - * Another type of currency. - */ - other, - }; - std::istream& operator>>(std::istream& lop, CIMPP::Currency& rop); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/CurrentFlow.cpp b/CGMES_2.4.13_18DEC2013/CurrentFlow.cpp deleted file mode 100644 index 9a05de0c9..000000000 --- a/CGMES_2.4.13_18DEC2013/CurrentFlow.cpp +++ /dev/null @@ -1,70 +0,0 @@ -#include "CurrentFlow.hpp" -#include "../src/CIMExceptions.hpp" - -using namespace CIMPP; - -CurrentFlow::CurrentFlow() {} - -CurrentFlow::~CurrentFlow(){} - -CurrentFlow::CurrentFlow(long double value) : value(value), initialized(true) {} - -void CurrentFlow::addConstructToMap(std::unordered_map& factory_map) {} - -void CurrentFlow::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) {} - -void CurrentFlow::addClassAssignFnsToMap(std::unordered_map& assign_map) {} - -const char CurrentFlow::debugName[] = "CurrentFlow"; -const char* CurrentFlow::debugString() { - return CurrentFlow::debugName; -} - - -const BaseClassDefiner CurrentFlow::declare() { - return BaseClassDefiner(CurrentFlow::addConstructToMap, CurrentFlow::addPrimitiveAssignFnsToMap, CurrentFlow::addClassAssignFnsToMap, CurrentFlow::debugName); -} - -namespace CIMPP { - CurrentFlow& CurrentFlow::operator=(long double &rop) { - value = rop; - initialized = true; - return *this; - } - - CurrentFlow& CurrentFlow::operator-=(const CurrentFlow& rhs) { - value -= rhs.value; - return *this; - } - - CurrentFlow& CurrentFlow::operator*=(const CurrentFlow& rhs) { - value *= rhs.value; - return *this; - } - - CurrentFlow& CurrentFlow::operator/=(const CurrentFlow& rhs) { - value /= rhs.value; - return *this; - } - - CurrentFlow& CurrentFlow::operator+=(const CurrentFlow& rhs) { - value += rhs.value; - return *this; - } - - CurrentFlow::operator long double() { - if(!initialized) - { - throw new ReadingUninitializedField(); - } - return value; - } - - std::istream& operator>>(std::istream& lop, CurrentFlow& rop) { - std::string tmp; - lop >> tmp; - rop.value = stold(tmp); - rop.initialized = true; - return lop; - } -} diff --git a/CGMES_2.4.13_18DEC2013/CurrentFlow.hpp b/CGMES_2.4.13_18DEC2013/CurrentFlow.hpp deleted file mode 100644 index 72b277753..000000000 --- a/CGMES_2.4.13_18DEC2013/CurrentFlow.hpp +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef CurrentFlow_H -#define CurrentFlow_H - -#include -#include - -#include "BaseClass.hpp" - -namespace CIMPP -{ - class CurrentFlow : public BaseClass - { - - public: - CurrentFlow(); - virtual ~CurrentFlow(); - CurrentFlow(long double value); - static const BaseClassDefiner declare(); - CurrentFlow& operator=(long double &rop); - CurrentFlow& operator+=(const CurrentFlow& rhs); - CurrentFlow& operator-=(const CurrentFlow& rhs); - CurrentFlow& operator*=(const CurrentFlow& rhs); - CurrentFlow& operator/=(const CurrentFlow& rhs); - friend std::istream& operator>>(std::istream& lop, CurrentFlow& rop); - operator long double(); - - long double value = 0.0; - bool initialized = false; - - static const char debugName[]; - virtual const char* debugString(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - }; -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/CurrentLimit.cpp b/CGMES_2.4.13_18DEC2013/CurrentLimit.cpp deleted file mode 100644 index 684b7a490..000000000 --- a/CGMES_2.4.13_18DEC2013/CurrentLimit.cpp +++ /dev/null @@ -1,56 +0,0 @@ -#include -#include "OperationalLimit.hpp" -#include "CurrentLimit.hpp" - -#include "CurrentFlow.hpp" - -using namespace CIMPP; - -CurrentLimit::CurrentLimit() {}; - -CurrentLimit::~CurrentLimit() {}; - - - - -bool assign_CurrentLimit_value(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(CurrentLimit* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* CurrentLimit_factory() { - return new CurrentLimit; - } -} - -void CurrentLimit::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:CurrentLimit"), &CurrentLimit_factory)); -} - -void CurrentLimit::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:CurrentLimit.value"), &assign_CurrentLimit_value)); -} - -void CurrentLimit::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char CurrentLimit::debugName[] = "CurrentLimit"; -const char* CurrentLimit::debugString() -{ - return CurrentLimit::debugName; -} - -const BaseClassDefiner CurrentLimit::declare() -{ - return BaseClassDefiner(CurrentLimit::addConstructToMap, CurrentLimit::addPrimitiveAssignFnsToMap, CurrentLimit::addClassAssignFnsToMap, CurrentLimit::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/CurrentLimit.hpp b/CGMES_2.4.13_18DEC2013/CurrentLimit.hpp deleted file mode 100644 index a6b1f55e0..000000000 --- a/CGMES_2.4.13_18DEC2013/CurrentLimit.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef CurrentLimit_H -#define CurrentLimit_H - -#include "OperationalLimit.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "CurrentFlow.hpp" - -namespace CIMPP { - - - /* - Operational limit on current. - */ - class CurrentLimit: public OperationalLimit - { - - public: - CIMPP::CurrentFlow value; /* Limit on current flow. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - CurrentLimit(); - virtual ~CurrentLimit(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* CurrentLimit_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/Curve.cpp b/CGMES_2.4.13_18DEC2013/Curve.cpp deleted file mode 100644 index d5f3fdc24..000000000 --- a/CGMES_2.4.13_18DEC2013/Curve.cpp +++ /dev/null @@ -1,114 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "Curve.hpp" - -#include "CurveStyle.hpp" -#include "UnitSymbol.hpp" -#include "UnitSymbol.hpp" -#include "UnitSymbol.hpp" -#include "CurveData.hpp" - -using namespace CIMPP; - -Curve::Curve() {}; - -Curve::~Curve() {}; - - - - - - -bool assign_Curve_CurveDatas(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(Curve* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->CurveDatas.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - -bool assign_Curve_curveStyle(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Curve* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->curveStyle; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Curve_xUnit(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Curve* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->xUnit; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Curve_y1Unit(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Curve* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->y1Unit; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Curve_y2Unit(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Curve* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->y2Unit; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -namespace CIMPP { - BaseClass* Curve_factory() { - return new Curve; - } -} - -void Curve::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:Curve"), &Curve_factory)); -} - -void Curve::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:Curve.curveStyle"), &assign_Curve_curveStyle)); - assign_map.insert(std::make_pair(std::string("cim:Curve.xUnit"), &assign_Curve_xUnit)); - assign_map.insert(std::make_pair(std::string("cim:Curve.y1Unit"), &assign_Curve_y1Unit)); - assign_map.insert(std::make_pair(std::string("cim:Curve.y2Unit"), &assign_Curve_y2Unit)); - } - -void Curve::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:Curve.CurveDatas"), &assign_Curve_CurveDatas)); -} - -const char Curve::debugName[] = "Curve"; -const char* Curve::debugString() -{ - return Curve::debugName; -} - -const BaseClassDefiner Curve::declare() -{ - return BaseClassDefiner(Curve::addConstructToMap, Curve::addPrimitiveAssignFnsToMap, Curve::addClassAssignFnsToMap, Curve::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/Curve.hpp b/CGMES_2.4.13_18DEC2013/Curve.hpp deleted file mode 100644 index b305bb602..000000000 --- a/CGMES_2.4.13_18DEC2013/Curve.hpp +++ /dev/null @@ -1,46 +0,0 @@ -#ifndef Curve_H -#define Curve_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "CurveStyle.hpp" -#include "UnitSymbol.hpp" - -namespace CIMPP { - - -class CurveData; - /* - A multi-purpose curve or functional relationship between an independent variable (X-axis) and dependent (Y-axis) variables. - */ - class Curve: public IdentifiedObject - { - - public: - CIMPP::CurveStyle curveStyle; /* The style or shape of the curve. Default: 0 */ - CIMPP::UnitSymbol xUnit; /* The X-axis units of measure. Default: 0 */ - CIMPP::UnitSymbol y1Unit; /* The Y1-axis units of measure. Default: 0 */ - CIMPP::UnitSymbol y2Unit; /* The Y2-axis units of measure. Default: 0 */ - std::list CurveDatas; /* The curve of this curve data point. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - Curve(); - virtual ~Curve(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* Curve_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/CurveData.cpp b/CGMES_2.4.13_18DEC2013/CurveData.cpp deleted file mode 100644 index 652aafc9a..000000000 --- a/CGMES_2.4.13_18DEC2013/CurveData.cpp +++ /dev/null @@ -1,99 +0,0 @@ -#include -#include "BaseClass.hpp" -#include "CurveData.hpp" - -#include "Curve.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" - -using namespace CIMPP; - -CurveData::CurveData(): Curve(nullptr) {}; - -CurveData::~CurveData() {}; - - -bool assign_Curve_CurveDatas(BaseClass*, BaseClass*); -bool assign_CurveData_Curve(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(CurveData* element = dynamic_cast(BaseClass_ptr1)) { - element->Curve = dynamic_cast(BaseClass_ptr2); - if(element->Curve != nullptr) - return assign_Curve_CurveDatas(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - - - - -bool assign_CurveData_xvalue(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(CurveData* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->xvalue; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_CurveData_y1value(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(CurveData* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->y1value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_CurveData_y2value(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(CurveData* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->y2value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* CurveData_factory() { - return new CurveData; - } -} - -void CurveData::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:CurveData"), &CurveData_factory)); -} - -void CurveData::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:CurveData.xvalue"), &assign_CurveData_xvalue)); - assign_map.insert(std::make_pair(std::string("cim:CurveData.y1value"), &assign_CurveData_y1value)); - assign_map.insert(std::make_pair(std::string("cim:CurveData.y2value"), &assign_CurveData_y2value)); -} - -void CurveData::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:CurveData.Curve"), &assign_CurveData_Curve)); - } - -const char CurveData::debugName[] = "CurveData"; -const char* CurveData::debugString() -{ - return CurveData::debugName; -} - -const BaseClassDefiner CurveData::declare() -{ - return BaseClassDefiner(CurveData::addConstructToMap, CurveData::addPrimitiveAssignFnsToMap, CurveData::addClassAssignFnsToMap, CurveData::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/CurveData.hpp b/CGMES_2.4.13_18DEC2013/CurveData.hpp deleted file mode 100644 index 0a0e0cf75..000000000 --- a/CGMES_2.4.13_18DEC2013/CurveData.hpp +++ /dev/null @@ -1,44 +0,0 @@ -#ifndef CurveData_H -#define CurveData_H - -#include "BaseClass.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Simple_Float.hpp" - -namespace CIMPP { - - -class Curve; - /* - Multi-purpose data points for defining a curve. The use of this generic class is discouraged if a more specific class can be used to specify the x and y axis values along with their specific data types. - */ - class CurveData: public BaseClass - { - - public: - CIMPP::Curve* Curve; /* The point data values that define this curve. Default: 0 */ - CIMPP::Simple_Float xvalue; /* The data value of the X-axis variable, depending on the X-axis units. Default: nullptr */ - CIMPP::Simple_Float y1value; /* The data value of the first Y-axis variable, depending on the Y-axis units. Default: nullptr */ - CIMPP::Simple_Float y2value; /* The data value of the second Y-axis variable (if present), depending on the Y-axis units. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - CurveData(); - virtual ~CurveData(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* CurveData_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/CurveStyle.cpp b/CGMES_2.4.13_18DEC2013/CurveStyle.cpp deleted file mode 100644 index b53fe27a8..000000000 --- a/CGMES_2.4.13_18DEC2013/CurveStyle.cpp +++ /dev/null @@ -1,37 +0,0 @@ -#include -#include -#include "CurveStyle.hpp" - -using namespace CIMPP; - -namespace CIMPP { - std::istream& operator>>(std::istream& lop, CIMPP::CurveStyle& rop) - { - std::string EnumSymbol; - lop >> EnumSymbol; - - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "CurveStyle") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "constantYValue") - { - rop = CurveStyle::constantYValue; - return lop; - } - if(EnumSymbol == "straightLineYValues") - { - rop = CurveStyle::straightLineYValues; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; - } -} - diff --git a/CGMES_2.4.13_18DEC2013/CurveStyle.hpp b/CGMES_2.4.13_18DEC2013/CurveStyle.hpp deleted file mode 100644 index 81789d1d0..000000000 --- a/CGMES_2.4.13_18DEC2013/CurveStyle.hpp +++ /dev/null @@ -1,21 +0,0 @@ -#ifndef CurveStyle_H -#define CurveStyle_H - -namespace CIMPP { - /* - Style or shape of curve. - */ - enum class CurveStyle - { - /** - * The Y-axis values are assumed constant until the next curve point and prior to the first curve point. - */ - constantYValue, - /** - * The Y-axis values are assumed to be a straight line between values. Also known as linear interpolation. - */ - straightLineYValues, - }; - std::istream& operator>>(std::istream& lop, CIMPP::CurveStyle& rop); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/DCBaseTerminal.cpp b/CGMES_2.4.13_18DEC2013/DCBaseTerminal.cpp deleted file mode 100644 index 79211dbcb..000000000 --- a/CGMES_2.4.13_18DEC2013/DCBaseTerminal.cpp +++ /dev/null @@ -1,67 +0,0 @@ -#include -#include "ACDCTerminal.hpp" -#include "DCBaseTerminal.hpp" - -#include "DCTopologicalNode.hpp" -#include "DCNode.hpp" - -using namespace CIMPP; - -DCBaseTerminal::DCBaseTerminal(): DCTopologicalNode(nullptr), DCNode(nullptr) {}; - -DCBaseTerminal::~DCBaseTerminal() {}; - - -bool assign_DCTopologicalNode_DCTerminals(BaseClass*, BaseClass*); -bool assign_DCBaseTerminal_DCTopologicalNode(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(DCBaseTerminal* element = dynamic_cast(BaseClass_ptr1)) { - element->DCTopologicalNode = dynamic_cast(BaseClass_ptr2); - if(element->DCTopologicalNode != nullptr) - return assign_DCTopologicalNode_DCTerminals(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_DCNode_DCTerminals(BaseClass*, BaseClass*); -bool assign_DCBaseTerminal_DCNode(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(DCBaseTerminal* element = dynamic_cast(BaseClass_ptr1)) { - element->DCNode = dynamic_cast(BaseClass_ptr2); - if(element->DCNode != nullptr) - return assign_DCNode_DCTerminals(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - - -namespace CIMPP { - BaseClass* DCBaseTerminal_factory() { - return new DCBaseTerminal; - } -} - -void DCBaseTerminal::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:DCBaseTerminal"), &DCBaseTerminal_factory)); -} - -void DCBaseTerminal::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void DCBaseTerminal::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:DCBaseTerminal.DCTopologicalNode"), &assign_DCBaseTerminal_DCTopologicalNode)); - assign_map.insert(std::make_pair(std::string("cim:DCBaseTerminal.DCNode"), &assign_DCBaseTerminal_DCNode)); -} - -const char DCBaseTerminal::debugName[] = "DCBaseTerminal"; -const char* DCBaseTerminal::debugString() -{ - return DCBaseTerminal::debugName; -} - -const BaseClassDefiner DCBaseTerminal::declare() -{ - return BaseClassDefiner(DCBaseTerminal::addConstructToMap, DCBaseTerminal::addPrimitiveAssignFnsToMap, DCBaseTerminal::addClassAssignFnsToMap, DCBaseTerminal::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/DCBaseTerminal.hpp b/CGMES_2.4.13_18DEC2013/DCBaseTerminal.hpp deleted file mode 100644 index 58a052457..000000000 --- a/CGMES_2.4.13_18DEC2013/DCBaseTerminal.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef DCBaseTerminal_H -#define DCBaseTerminal_H - -#include "ACDCTerminal.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class DCTopologicalNode; -class DCNode; - /* - - */ - class DCBaseTerminal: public ACDCTerminal - { - - public: - CIMPP::DCTopologicalNode* DCTopologicalNode; /* See association end TopologicalNode.Terminal. Default: 0 */ - CIMPP::DCNode* DCNode; /* Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - DCBaseTerminal(); - virtual ~DCBaseTerminal(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* DCBaseTerminal_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/DCBreaker.cpp b/CGMES_2.4.13_18DEC2013/DCBreaker.cpp deleted file mode 100644 index 67c2f58d0..000000000 --- a/CGMES_2.4.13_18DEC2013/DCBreaker.cpp +++ /dev/null @@ -1,41 +0,0 @@ -#include -#include "DCSwitch.hpp" -#include "DCBreaker.hpp" - - -using namespace CIMPP; - -DCBreaker::DCBreaker() {}; - -DCBreaker::~DCBreaker() {}; - - - -namespace CIMPP { - BaseClass* DCBreaker_factory() { - return new DCBreaker; - } -} - -void DCBreaker::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:DCBreaker"), &DCBreaker_factory)); -} - -void DCBreaker::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { -} - -void DCBreaker::addClassAssignFnsToMap(std::unordered_map& assign_map) { -} - -const char DCBreaker::debugName[] = "DCBreaker"; -const char* DCBreaker::debugString() -{ - return DCBreaker::debugName; -} - -const BaseClassDefiner DCBreaker::declare() -{ - return BaseClassDefiner(DCBreaker::addConstructToMap, DCBreaker::addPrimitiveAssignFnsToMap, DCBreaker::addClassAssignFnsToMap, DCBreaker::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/DCBreaker.hpp b/CGMES_2.4.13_18DEC2013/DCBreaker.hpp deleted file mode 100644 index 9881bced3..000000000 --- a/CGMES_2.4.13_18DEC2013/DCBreaker.hpp +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef DCBreaker_H -#define DCBreaker_H - -#include "DCSwitch.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - - /* - A breaker within a DC system. - */ - class DCBreaker: public DCSwitch - { - - public: - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - DCBreaker(); - virtual ~DCBreaker(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* DCBreaker_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/DCBusbar.cpp b/CGMES_2.4.13_18DEC2013/DCBusbar.cpp deleted file mode 100644 index 86b7bec9e..000000000 --- a/CGMES_2.4.13_18DEC2013/DCBusbar.cpp +++ /dev/null @@ -1,41 +0,0 @@ -#include -#include "DCConductingEquipment.hpp" -#include "DCBusbar.hpp" - - -using namespace CIMPP; - -DCBusbar::DCBusbar() {}; - -DCBusbar::~DCBusbar() {}; - - - -namespace CIMPP { - BaseClass* DCBusbar_factory() { - return new DCBusbar; - } -} - -void DCBusbar::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:DCBusbar"), &DCBusbar_factory)); -} - -void DCBusbar::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { -} - -void DCBusbar::addClassAssignFnsToMap(std::unordered_map& assign_map) { -} - -const char DCBusbar::debugName[] = "DCBusbar"; -const char* DCBusbar::debugString() -{ - return DCBusbar::debugName; -} - -const BaseClassDefiner DCBusbar::declare() -{ - return BaseClassDefiner(DCBusbar::addConstructToMap, DCBusbar::addPrimitiveAssignFnsToMap, DCBusbar::addClassAssignFnsToMap, DCBusbar::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/DCBusbar.hpp b/CGMES_2.4.13_18DEC2013/DCBusbar.hpp deleted file mode 100644 index ed35a82ca..000000000 --- a/CGMES_2.4.13_18DEC2013/DCBusbar.hpp +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef DCBusbar_H -#define DCBusbar_H - -#include "DCConductingEquipment.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - - /* - A busbar within a DC system. - */ - class DCBusbar: public DCConductingEquipment - { - - public: - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - DCBusbar(); - virtual ~DCBusbar(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* DCBusbar_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/DCChopper.cpp b/CGMES_2.4.13_18DEC2013/DCChopper.cpp deleted file mode 100644 index 1dd84a7f0..000000000 --- a/CGMES_2.4.13_18DEC2013/DCChopper.cpp +++ /dev/null @@ -1,41 +0,0 @@ -#include -#include "DCConductingEquipment.hpp" -#include "DCChopper.hpp" - - -using namespace CIMPP; - -DCChopper::DCChopper() {}; - -DCChopper::~DCChopper() {}; - - - -namespace CIMPP { - BaseClass* DCChopper_factory() { - return new DCChopper; - } -} - -void DCChopper::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:DCChopper"), &DCChopper_factory)); -} - -void DCChopper::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { -} - -void DCChopper::addClassAssignFnsToMap(std::unordered_map& assign_map) { -} - -const char DCChopper::debugName[] = "DCChopper"; -const char* DCChopper::debugString() -{ - return DCChopper::debugName; -} - -const BaseClassDefiner DCChopper::declare() -{ - return BaseClassDefiner(DCChopper::addConstructToMap, DCChopper::addPrimitiveAssignFnsToMap, DCChopper::addClassAssignFnsToMap, DCChopper::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/DCChopper.hpp b/CGMES_2.4.13_18DEC2013/DCChopper.hpp deleted file mode 100644 index 4d0e8b710..000000000 --- a/CGMES_2.4.13_18DEC2013/DCChopper.hpp +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef DCChopper_H -#define DCChopper_H - -#include "DCConductingEquipment.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - - /* - Low resistance equipment used in the internal DC circuit to balance voltages. It has typically positive and negative pole terminals and a ground. - */ - class DCChopper: public DCConductingEquipment - { - - public: - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - DCChopper(); - virtual ~DCChopper(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* DCChopper_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/DCConductingEquipment.cpp b/CGMES_2.4.13_18DEC2013/DCConductingEquipment.cpp deleted file mode 100644 index 81adcb3a5..000000000 --- a/CGMES_2.4.13_18DEC2013/DCConductingEquipment.cpp +++ /dev/null @@ -1,54 +0,0 @@ -#include -#include "Equipment.hpp" -#include "DCConductingEquipment.hpp" - -#include "DCTerminal.hpp" - -using namespace CIMPP; - -DCConductingEquipment::DCConductingEquipment() {}; - -DCConductingEquipment::~DCConductingEquipment() {}; - - -bool assign_DCConductingEquipment_DCTerminals(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(DCConductingEquipment* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->DCTerminals.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - - -namespace CIMPP { - BaseClass* DCConductingEquipment_factory() { - return new DCConductingEquipment; - } -} - -void DCConductingEquipment::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:DCConductingEquipment"), &DCConductingEquipment_factory)); -} - -void DCConductingEquipment::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void DCConductingEquipment::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:DCConductingEquipment.DCTerminals"), &assign_DCConductingEquipment_DCTerminals)); -} - -const char DCConductingEquipment::debugName[] = "DCConductingEquipment"; -const char* DCConductingEquipment::debugString() -{ - return DCConductingEquipment::debugName; -} - -const BaseClassDefiner DCConductingEquipment::declare() -{ - return BaseClassDefiner(DCConductingEquipment::addConstructToMap, DCConductingEquipment::addPrimitiveAssignFnsToMap, DCConductingEquipment::addClassAssignFnsToMap, DCConductingEquipment::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/DCConductingEquipment.hpp b/CGMES_2.4.13_18DEC2013/DCConductingEquipment.hpp deleted file mode 100644 index 0d7485a42..000000000 --- a/CGMES_2.4.13_18DEC2013/DCConductingEquipment.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef DCConductingEquipment_H -#define DCConductingEquipment_H - -#include "Equipment.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class DCTerminal; - /* - The parts of the DC power system that are designed to carry current or that are conductively connected through DC terminals. - */ - class DCConductingEquipment: public Equipment - { - - public: - std::list DCTerminals; /* Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - DCConductingEquipment(); - virtual ~DCConductingEquipment(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* DCConductingEquipment_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/DCConverterOperatingModeKind.cpp b/CGMES_2.4.13_18DEC2013/DCConverterOperatingModeKind.cpp deleted file mode 100644 index 65190ceed..000000000 --- a/CGMES_2.4.13_18DEC2013/DCConverterOperatingModeKind.cpp +++ /dev/null @@ -1,42 +0,0 @@ -#include -#include -#include "DCConverterOperatingModeKind.hpp" - -using namespace CIMPP; - -namespace CIMPP { - std::istream& operator>>(std::istream& lop, CIMPP::DCConverterOperatingModeKind& rop) - { - std::string EnumSymbol; - lop >> EnumSymbol; - - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "DCConverterOperatingModeKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "bipolar") - { - rop = DCConverterOperatingModeKind::bipolar; - return lop; - } - if(EnumSymbol == "monopolarMetallicReturn") - { - rop = DCConverterOperatingModeKind::monopolarMetallicReturn; - return lop; - } - if(EnumSymbol == "monopolarGroundReturn") - { - rop = DCConverterOperatingModeKind::monopolarGroundReturn; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; - } -} - diff --git a/CGMES_2.4.13_18DEC2013/DCConverterOperatingModeKind.hpp b/CGMES_2.4.13_18DEC2013/DCConverterOperatingModeKind.hpp deleted file mode 100644 index 310b5f1a1..000000000 --- a/CGMES_2.4.13_18DEC2013/DCConverterOperatingModeKind.hpp +++ /dev/null @@ -1,25 +0,0 @@ -#ifndef DCConverterOperatingModeKind_H -#define DCConverterOperatingModeKind_H - -namespace CIMPP { - /* - The operating mode of an HVDC bipole. - */ - enum class DCConverterOperatingModeKind - { - /** - * Bipolar operation. - */ - bipolar, - /** - * Monopolar operation with metallic return - */ - monopolarMetallicReturn, - /** - * Monopolar operation with ground return - */ - monopolarGroundReturn, - }; - std::istream& operator>>(std::istream& lop, CIMPP::DCConverterOperatingModeKind& rop); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/DCConverterUnit.cpp b/CGMES_2.4.13_18DEC2013/DCConverterUnit.cpp deleted file mode 100644 index 96b619c55..000000000 --- a/CGMES_2.4.13_18DEC2013/DCConverterUnit.cpp +++ /dev/null @@ -1,69 +0,0 @@ -#include -#include "DCEquipmentContainer.hpp" -#include "DCConverterUnit.hpp" - -#include "DCConverterOperatingModeKind.hpp" -#include "Substation.hpp" - -using namespace CIMPP; - -DCConverterUnit::DCConverterUnit(): Substation(nullptr) {}; - -DCConverterUnit::~DCConverterUnit() {}; - - - -bool assign_Substation_DCConverterUnit(BaseClass*, BaseClass*); -bool assign_DCConverterUnit_Substation(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(DCConverterUnit* element = dynamic_cast(BaseClass_ptr1)) { - element->Substation = dynamic_cast(BaseClass_ptr2); - if(element->Substation != nullptr) - return assign_Substation_DCConverterUnit(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - -bool assign_DCConverterUnit_operationMode(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DCConverterUnit* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->operationMode; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -namespace CIMPP { - BaseClass* DCConverterUnit_factory() { - return new DCConverterUnit; - } -} - -void DCConverterUnit::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:DCConverterUnit"), &DCConverterUnit_factory)); -} - -void DCConverterUnit::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:DCConverterUnit.operationMode"), &assign_DCConverterUnit_operationMode)); - } - -void DCConverterUnit::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:DCConverterUnit.Substation"), &assign_DCConverterUnit_Substation)); -} - -const char DCConverterUnit::debugName[] = "DCConverterUnit"; -const char* DCConverterUnit::debugString() -{ - return DCConverterUnit::debugName; -} - -const BaseClassDefiner DCConverterUnit::declare() -{ - return BaseClassDefiner(DCConverterUnit::addConstructToMap, DCConverterUnit::addPrimitiveAssignFnsToMap, DCConverterUnit::addClassAssignFnsToMap, DCConverterUnit::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/DCConverterUnit.hpp b/CGMES_2.4.13_18DEC2013/DCConverterUnit.hpp deleted file mode 100644 index 721c00ebf..000000000 --- a/CGMES_2.4.13_18DEC2013/DCConverterUnit.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef DCConverterUnit_H -#define DCConverterUnit_H - -#include "DCEquipmentContainer.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "DCConverterOperatingModeKind.hpp" - -namespace CIMPP { - - -class Substation; - /* - Indivisible operative unit comprising all equipment between the point of common coupling on the AC side and the point of common coupling - DC side, essentially one or more converters, together with one or more converter transformers, converter control equipment, essential protective and switching devices and auxiliaries, if any, used for conversion. - */ - class DCConverterUnit: public DCEquipmentContainer - { - - public: - CIMPP::DCConverterOperatingModeKind operationMode; /* Default: 0 */ - CIMPP::Substation* Substation; /* Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - DCConverterUnit(); - virtual ~DCConverterUnit(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* DCConverterUnit_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/DCDisconnector.cpp b/CGMES_2.4.13_18DEC2013/DCDisconnector.cpp deleted file mode 100644 index 30f8ab4a5..000000000 --- a/CGMES_2.4.13_18DEC2013/DCDisconnector.cpp +++ /dev/null @@ -1,41 +0,0 @@ -#include -#include "DCSwitch.hpp" -#include "DCDisconnector.hpp" - - -using namespace CIMPP; - -DCDisconnector::DCDisconnector() {}; - -DCDisconnector::~DCDisconnector() {}; - - - -namespace CIMPP { - BaseClass* DCDisconnector_factory() { - return new DCDisconnector; - } -} - -void DCDisconnector::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:DCDisconnector"), &DCDisconnector_factory)); -} - -void DCDisconnector::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { -} - -void DCDisconnector::addClassAssignFnsToMap(std::unordered_map& assign_map) { -} - -const char DCDisconnector::debugName[] = "DCDisconnector"; -const char* DCDisconnector::debugString() -{ - return DCDisconnector::debugName; -} - -const BaseClassDefiner DCDisconnector::declare() -{ - return BaseClassDefiner(DCDisconnector::addConstructToMap, DCDisconnector::addPrimitiveAssignFnsToMap, DCDisconnector::addClassAssignFnsToMap, DCDisconnector::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/DCDisconnector.hpp b/CGMES_2.4.13_18DEC2013/DCDisconnector.hpp deleted file mode 100644 index e713ad0b4..000000000 --- a/CGMES_2.4.13_18DEC2013/DCDisconnector.hpp +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef DCDisconnector_H -#define DCDisconnector_H - -#include "DCSwitch.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - - /* - A disconnector within a DC system. - */ - class DCDisconnector: public DCSwitch - { - - public: - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - DCDisconnector(); - virtual ~DCDisconnector(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* DCDisconnector_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/DCEquipmentContainer.cpp b/CGMES_2.4.13_18DEC2013/DCEquipmentContainer.cpp deleted file mode 100644 index 8d447b836..000000000 --- a/CGMES_2.4.13_18DEC2013/DCEquipmentContainer.cpp +++ /dev/null @@ -1,54 +0,0 @@ -#include -#include "EquipmentContainer.hpp" -#include "DCEquipmentContainer.hpp" - -#include "DCTopologicalNode.hpp" - -using namespace CIMPP; - -DCEquipmentContainer::DCEquipmentContainer() {}; - -DCEquipmentContainer::~DCEquipmentContainer() {}; - - -bool assign_DCEquipmentContainer_DCTopologicalNode(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(DCEquipmentContainer* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->DCTopologicalNode.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - - -namespace CIMPP { - BaseClass* DCEquipmentContainer_factory() { - return new DCEquipmentContainer; - } -} - -void DCEquipmentContainer::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:DCEquipmentContainer"), &DCEquipmentContainer_factory)); -} - -void DCEquipmentContainer::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void DCEquipmentContainer::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:DCEquipmentContainer.DCTopologicalNode"), &assign_DCEquipmentContainer_DCTopologicalNode)); -} - -const char DCEquipmentContainer::debugName[] = "DCEquipmentContainer"; -const char* DCEquipmentContainer::debugString() -{ - return DCEquipmentContainer::debugName; -} - -const BaseClassDefiner DCEquipmentContainer::declare() -{ - return BaseClassDefiner(DCEquipmentContainer::addConstructToMap, DCEquipmentContainer::addPrimitiveAssignFnsToMap, DCEquipmentContainer::addClassAssignFnsToMap, DCEquipmentContainer::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/DCEquipmentContainer.hpp b/CGMES_2.4.13_18DEC2013/DCEquipmentContainer.hpp deleted file mode 100644 index 427369597..000000000 --- a/CGMES_2.4.13_18DEC2013/DCEquipmentContainer.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef DCEquipmentContainer_H -#define DCEquipmentContainer_H - -#include "EquipmentContainer.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class DCTopologicalNode; - /* - A modeling construct to provide a root class for containment of DC as well as AC equipment. The class differ from the EquipmentContaner for AC in that it may also contain DCNodes. Hence it can contain both AC and DC equipment. - */ - class DCEquipmentContainer: public EquipmentContainer - { - - public: - std::list DCTopologicalNode; /* Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - DCEquipmentContainer(); - virtual ~DCEquipmentContainer(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* DCEquipmentContainer_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/DCGround.cpp b/CGMES_2.4.13_18DEC2013/DCGround.cpp deleted file mode 100644 index 3931fadc5..000000000 --- a/CGMES_2.4.13_18DEC2013/DCGround.cpp +++ /dev/null @@ -1,41 +0,0 @@ -#include -#include "DCConductingEquipment.hpp" -#include "DCGround.hpp" - - -using namespace CIMPP; - -DCGround::DCGround() {}; - -DCGround::~DCGround() {}; - - - -namespace CIMPP { - BaseClass* DCGround_factory() { - return new DCGround; - } -} - -void DCGround::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:DCGround"), &DCGround_factory)); -} - -void DCGround::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { -} - -void DCGround::addClassAssignFnsToMap(std::unordered_map& assign_map) { -} - -const char DCGround::debugName[] = "DCGround"; -const char* DCGround::debugString() -{ - return DCGround::debugName; -} - -const BaseClassDefiner DCGround::declare() -{ - return BaseClassDefiner(DCGround::addConstructToMap, DCGround::addPrimitiveAssignFnsToMap, DCGround::addClassAssignFnsToMap, DCGround::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/DCGround.hpp b/CGMES_2.4.13_18DEC2013/DCGround.hpp deleted file mode 100644 index 06fc10135..000000000 --- a/CGMES_2.4.13_18DEC2013/DCGround.hpp +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef DCGround_H -#define DCGround_H - -#include "DCConductingEquipment.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - - /* - A ground within a DC system. - */ - class DCGround: public DCConductingEquipment - { - - public: - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - DCGround(); - virtual ~DCGround(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* DCGround_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/DCLine.cpp b/CGMES_2.4.13_18DEC2013/DCLine.cpp deleted file mode 100644 index 42ef2be2c..000000000 --- a/CGMES_2.4.13_18DEC2013/DCLine.cpp +++ /dev/null @@ -1,54 +0,0 @@ -#include -#include "DCEquipmentContainer.hpp" -#include "DCLine.hpp" - -#include "SubGeographicalRegion.hpp" - -using namespace CIMPP; - -DCLine::DCLine(): Region(nullptr) {}; - -DCLine::~DCLine() {}; - - -bool assign_SubGeographicalRegion_DCLines(BaseClass*, BaseClass*); -bool assign_DCLine_Region(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(DCLine* element = dynamic_cast(BaseClass_ptr1)) { - element->Region = dynamic_cast(BaseClass_ptr2); - if(element->Region != nullptr) - return assign_SubGeographicalRegion_DCLines(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - -namespace CIMPP { - BaseClass* DCLine_factory() { - return new DCLine; - } -} - -void DCLine::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:DCLine"), &DCLine_factory)); -} - -void DCLine::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void DCLine::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:DCLine.Region"), &assign_DCLine_Region)); -} - -const char DCLine::debugName[] = "DCLine"; -const char* DCLine::debugString() -{ - return DCLine::debugName; -} - -const BaseClassDefiner DCLine::declare() -{ - return BaseClassDefiner(DCLine::addConstructToMap, DCLine::addPrimitiveAssignFnsToMap, DCLine::addClassAssignFnsToMap, DCLine::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/DCLine.hpp b/CGMES_2.4.13_18DEC2013/DCLine.hpp deleted file mode 100644 index 488ceeab8..000000000 --- a/CGMES_2.4.13_18DEC2013/DCLine.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef DCLine_H -#define DCLine_H - -#include "DCEquipmentContainer.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class SubGeographicalRegion; - /* - Overhead lines and/or cables connecting two or more HVDC substations. - */ - class DCLine: public DCEquipmentContainer - { - - public: - CIMPP::SubGeographicalRegion* Region; /* Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - DCLine(); - virtual ~DCLine(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* DCLine_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/DCLineSegment.cpp b/CGMES_2.4.13_18DEC2013/DCLineSegment.cpp deleted file mode 100644 index 754295ba8..000000000 --- a/CGMES_2.4.13_18DEC2013/DCLineSegment.cpp +++ /dev/null @@ -1,114 +0,0 @@ -#include -#include "DCConductingEquipment.hpp" -#include "DCLineSegment.hpp" - -#include "Capacitance.hpp" -#include "Inductance.hpp" -#include "Resistance.hpp" -#include "Length.hpp" -#include "PerLengthDCLineParameter.hpp" - -using namespace CIMPP; - -DCLineSegment::DCLineSegment(): PerLengthParameter(nullptr) {}; - -DCLineSegment::~DCLineSegment() {}; - - - - - - -bool assign_PerLengthDCLineParameter_DCLineSegments(BaseClass*, BaseClass*); -bool assign_DCLineSegment_PerLengthParameter(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(DCLineSegment* element = dynamic_cast(BaseClass_ptr1)) { - element->PerLengthParameter = dynamic_cast(BaseClass_ptr2); - if(element->PerLengthParameter != nullptr) - return assign_PerLengthDCLineParameter_DCLineSegments(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - -bool assign_DCLineSegment_capacitance(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DCLineSegment* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->capacitance; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_DCLineSegment_inductance(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DCLineSegment* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->inductance; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_DCLineSegment_resistance(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DCLineSegment* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->resistance; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_DCLineSegment_length(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DCLineSegment* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->length; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -namespace CIMPP { - BaseClass* DCLineSegment_factory() { - return new DCLineSegment; - } -} - -void DCLineSegment::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:DCLineSegment"), &DCLineSegment_factory)); -} - -void DCLineSegment::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:DCLineSegment.capacitance"), &assign_DCLineSegment_capacitance)); - assign_map.insert(std::make_pair(std::string("cim:DCLineSegment.inductance"), &assign_DCLineSegment_inductance)); - assign_map.insert(std::make_pair(std::string("cim:DCLineSegment.resistance"), &assign_DCLineSegment_resistance)); - assign_map.insert(std::make_pair(std::string("cim:DCLineSegment.length"), &assign_DCLineSegment_length)); - } - -void DCLineSegment::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:DCLineSegment.PerLengthParameter"), &assign_DCLineSegment_PerLengthParameter)); -} - -const char DCLineSegment::debugName[] = "DCLineSegment"; -const char* DCLineSegment::debugString() -{ - return DCLineSegment::debugName; -} - -const BaseClassDefiner DCLineSegment::declare() -{ - return BaseClassDefiner(DCLineSegment::addConstructToMap, DCLineSegment::addPrimitiveAssignFnsToMap, DCLineSegment::addClassAssignFnsToMap, DCLineSegment::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/DCLineSegment.hpp b/CGMES_2.4.13_18DEC2013/DCLineSegment.hpp deleted file mode 100644 index 84efef3ee..000000000 --- a/CGMES_2.4.13_18DEC2013/DCLineSegment.hpp +++ /dev/null @@ -1,48 +0,0 @@ -#ifndef DCLineSegment_H -#define DCLineSegment_H - -#include "DCConductingEquipment.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Capacitance.hpp" -#include "Inductance.hpp" -#include "Resistance.hpp" -#include "Length.hpp" - -namespace CIMPP { - - -class PerLengthDCLineParameter; - /* - A wire or combination of wires not insulated from one another, with consistent electrical characteristics, used to carry direct current between points in the DC region of the power system. - */ - class DCLineSegment: public DCConductingEquipment - { - - public: - CIMPP::Capacitance capacitance; /* Capacitance of the DC line segment. Significant for cables only. Default: nullptr */ - CIMPP::Inductance inductance; /* Inductance of the DC line segment. Neglectable compared with DCSeriesDevice used for smoothing. Default: nullptr */ - CIMPP::Resistance resistance; /* Resistance of the DC line segment. Default: nullptr */ - CIMPP::Length length; /* Segment length for calculating line section capabilities. Default: nullptr */ - CIMPP::PerLengthDCLineParameter* PerLengthParameter; /* Set of per-length parameters for this line segment. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - DCLineSegment(); - virtual ~DCLineSegment(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* DCLineSegment_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/DCNode.cpp b/CGMES_2.4.13_18DEC2013/DCNode.cpp deleted file mode 100644 index b6df00a73..000000000 --- a/CGMES_2.4.13_18DEC2013/DCNode.cpp +++ /dev/null @@ -1,66 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "DCNode.hpp" - -#include "DCBaseTerminal.hpp" -#include "DCTopologicalNode.hpp" - -using namespace CIMPP; - -DCNode::DCNode(): DCTopologicalNode(nullptr) {}; - -DCNode::~DCNode() {}; - - -bool assign_DCNode_DCTerminals(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(DCNode* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->DCTerminals.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_DCNode_DCTopologicalNode(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(DCNode* element = dynamic_cast(BaseClass_ptr1)) { - element->DCTopologicalNode = dynamic_cast(BaseClass_ptr2); - if(element->DCTopologicalNode != nullptr) - return true; - } - return false; -} - - - - -namespace CIMPP { - BaseClass* DCNode_factory() { - return new DCNode; - } -} - -void DCNode::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:DCNode"), &DCNode_factory)); -} - -void DCNode::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void DCNode::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:DCNode.DCTerminals"), &assign_DCNode_DCTerminals)); - assign_map.insert(std::make_pair(std::string("cim:DCNode.DCTopologicalNode"), &assign_DCNode_DCTopologicalNode)); -} - -const char DCNode::debugName[] = "DCNode"; -const char* DCNode::debugString() -{ - return DCNode::debugName; -} - -const BaseClassDefiner DCNode::declare() -{ - return BaseClassDefiner(DCNode::addConstructToMap, DCNode::addPrimitiveAssignFnsToMap, DCNode::addClassAssignFnsToMap, DCNode::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/DCNode.hpp b/CGMES_2.4.13_18DEC2013/DCNode.hpp deleted file mode 100644 index 526af1093..000000000 --- a/CGMES_2.4.13_18DEC2013/DCNode.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef DCNode_H -#define DCNode_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class DCBaseTerminal; -class DCTopologicalNode; - /* - DC nodes are points where terminals of DC conducting equipment are connected together with zero impedance. - */ - class DCNode: public IdentifiedObject - { - - public: - std::list DCTerminals; /* Default: 0 */ - CIMPP::DCTopologicalNode* DCTopologicalNode; /* See association end TopologicalNode.ConnectivityNodes. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - DCNode(); - virtual ~DCNode(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* DCNode_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/DCPolarityKind.cpp b/CGMES_2.4.13_18DEC2013/DCPolarityKind.cpp deleted file mode 100644 index 774aff923..000000000 --- a/CGMES_2.4.13_18DEC2013/DCPolarityKind.cpp +++ /dev/null @@ -1,42 +0,0 @@ -#include -#include -#include "DCPolarityKind.hpp" - -using namespace CIMPP; - -namespace CIMPP { - std::istream& operator>>(std::istream& lop, CIMPP::DCPolarityKind& rop) - { - std::string EnumSymbol; - lop >> EnumSymbol; - - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "DCPolarityKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "positive") - { - rop = DCPolarityKind::positive; - return lop; - } - if(EnumSymbol == "middle") - { - rop = DCPolarityKind::middle; - return lop; - } - if(EnumSymbol == "negative") - { - rop = DCPolarityKind::negative; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; - } -} - diff --git a/CGMES_2.4.13_18DEC2013/DCPolarityKind.hpp b/CGMES_2.4.13_18DEC2013/DCPolarityKind.hpp deleted file mode 100644 index 1004c1183..000000000 --- a/CGMES_2.4.13_18DEC2013/DCPolarityKind.hpp +++ /dev/null @@ -1,25 +0,0 @@ -#ifndef DCPolarityKind_H -#define DCPolarityKind_H - -namespace CIMPP { - /* - Polarity for DC circuits. - */ - enum class DCPolarityKind - { - /** - * Positive pole. - */ - positive, - /** - * Middle pole, potentially grounded. - */ - middle, - /** - * Negative pole. - */ - negative, - }; - std::istream& operator>>(std::istream& lop, CIMPP::DCPolarityKind& rop); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/DCSeriesDevice.cpp b/CGMES_2.4.13_18DEC2013/DCSeriesDevice.cpp deleted file mode 100644 index 2d2ac6fa7..000000000 --- a/CGMES_2.4.13_18DEC2013/DCSeriesDevice.cpp +++ /dev/null @@ -1,86 +0,0 @@ -#include -#include "DCConductingEquipment.hpp" -#include "DCSeriesDevice.hpp" - -#include "Inductance.hpp" -#include "Resistance.hpp" -#include "Voltage.hpp" - -using namespace CIMPP; - -DCSeriesDevice::DCSeriesDevice() {}; - -DCSeriesDevice::~DCSeriesDevice() {}; - - - - - - -bool assign_DCSeriesDevice_inductance(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DCSeriesDevice* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->inductance; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_DCSeriesDevice_resistance(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DCSeriesDevice* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->resistance; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_DCSeriesDevice_ratedUdc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DCSeriesDevice* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ratedUdc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* DCSeriesDevice_factory() { - return new DCSeriesDevice; - } -} - -void DCSeriesDevice::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:DCSeriesDevice"), &DCSeriesDevice_factory)); -} - -void DCSeriesDevice::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:DCSeriesDevice.inductance"), &assign_DCSeriesDevice_inductance)); - assign_map.insert(std::make_pair(std::string("cim:DCSeriesDevice.resistance"), &assign_DCSeriesDevice_resistance)); - assign_map.insert(std::make_pair(std::string("cim:DCSeriesDevice.ratedUdc"), &assign_DCSeriesDevice_ratedUdc)); -} - -void DCSeriesDevice::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char DCSeriesDevice::debugName[] = "DCSeriesDevice"; -const char* DCSeriesDevice::debugString() -{ - return DCSeriesDevice::debugName; -} - -const BaseClassDefiner DCSeriesDevice::declare() -{ - return BaseClassDefiner(DCSeriesDevice::addConstructToMap, DCSeriesDevice::addPrimitiveAssignFnsToMap, DCSeriesDevice::addClassAssignFnsToMap, DCSeriesDevice::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/DCSeriesDevice.hpp b/CGMES_2.4.13_18DEC2013/DCSeriesDevice.hpp deleted file mode 100644 index ffee38162..000000000 --- a/CGMES_2.4.13_18DEC2013/DCSeriesDevice.hpp +++ /dev/null @@ -1,44 +0,0 @@ -#ifndef DCSeriesDevice_H -#define DCSeriesDevice_H - -#include "DCConductingEquipment.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Inductance.hpp" -#include "Resistance.hpp" -#include "Voltage.hpp" - -namespace CIMPP { - - - /* - A series device within the DC system, typically a reactor used for filtering or smoothing. Needed for transient and short circuit studies. - */ - class DCSeriesDevice: public DCConductingEquipment - { - - public: - CIMPP::Inductance inductance; /* Inductance of the device. Default: nullptr */ - CIMPP::Resistance resistance; /* Resistance of the DC device. Default: nullptr */ - CIMPP::Voltage ratedUdc; /* Rated DC device voltage. Converter configuration data used in power flow. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - DCSeriesDevice(); - virtual ~DCSeriesDevice(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* DCSeriesDevice_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/DCShunt.cpp b/CGMES_2.4.13_18DEC2013/DCShunt.cpp deleted file mode 100644 index 8848b26e6..000000000 --- a/CGMES_2.4.13_18DEC2013/DCShunt.cpp +++ /dev/null @@ -1,86 +0,0 @@ -#include -#include "DCConductingEquipment.hpp" -#include "DCShunt.hpp" - -#include "Capacitance.hpp" -#include "Resistance.hpp" -#include "Voltage.hpp" - -using namespace CIMPP; - -DCShunt::DCShunt() {}; - -DCShunt::~DCShunt() {}; - - - - - - -bool assign_DCShunt_capacitance(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DCShunt* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->capacitance; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_DCShunt_resistance(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DCShunt* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->resistance; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_DCShunt_ratedUdc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DCShunt* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ratedUdc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* DCShunt_factory() { - return new DCShunt; - } -} - -void DCShunt::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:DCShunt"), &DCShunt_factory)); -} - -void DCShunt::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:DCShunt.capacitance"), &assign_DCShunt_capacitance)); - assign_map.insert(std::make_pair(std::string("cim:DCShunt.resistance"), &assign_DCShunt_resistance)); - assign_map.insert(std::make_pair(std::string("cim:DCShunt.ratedUdc"), &assign_DCShunt_ratedUdc)); -} - -void DCShunt::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char DCShunt::debugName[] = "DCShunt"; -const char* DCShunt::debugString() -{ - return DCShunt::debugName; -} - -const BaseClassDefiner DCShunt::declare() -{ - return BaseClassDefiner(DCShunt::addConstructToMap, DCShunt::addPrimitiveAssignFnsToMap, DCShunt::addClassAssignFnsToMap, DCShunt::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/DCShunt.hpp b/CGMES_2.4.13_18DEC2013/DCShunt.hpp deleted file mode 100644 index c59ae93b2..000000000 --- a/CGMES_2.4.13_18DEC2013/DCShunt.hpp +++ /dev/null @@ -1,44 +0,0 @@ -#ifndef DCShunt_H -#define DCShunt_H - -#include "DCConductingEquipment.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Capacitance.hpp" -#include "Resistance.hpp" -#include "Voltage.hpp" - -namespace CIMPP { - - - /* - A shunt device within the DC system, typically used for filtering. Needed for transient and short circuit studies. - */ - class DCShunt: public DCConductingEquipment - { - - public: - CIMPP::Capacitance capacitance; /* Capacitance of the DC shunt. Default: nullptr */ - CIMPP::Resistance resistance; /* Resistance of the DC device. Default: nullptr */ - CIMPP::Voltage ratedUdc; /* Rated DC device voltage. Converter configuration data used in power flow. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - DCShunt(); - virtual ~DCShunt(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* DCShunt_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/DCSwitch.cpp b/CGMES_2.4.13_18DEC2013/DCSwitch.cpp deleted file mode 100644 index 91d94c952..000000000 --- a/CGMES_2.4.13_18DEC2013/DCSwitch.cpp +++ /dev/null @@ -1,41 +0,0 @@ -#include -#include "DCConductingEquipment.hpp" -#include "DCSwitch.hpp" - - -using namespace CIMPP; - -DCSwitch::DCSwitch() {}; - -DCSwitch::~DCSwitch() {}; - - - -namespace CIMPP { - BaseClass* DCSwitch_factory() { - return new DCSwitch; - } -} - -void DCSwitch::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:DCSwitch"), &DCSwitch_factory)); -} - -void DCSwitch::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { -} - -void DCSwitch::addClassAssignFnsToMap(std::unordered_map& assign_map) { -} - -const char DCSwitch::debugName[] = "DCSwitch"; -const char* DCSwitch::debugString() -{ - return DCSwitch::debugName; -} - -const BaseClassDefiner DCSwitch::declare() -{ - return BaseClassDefiner(DCSwitch::addConstructToMap, DCSwitch::addPrimitiveAssignFnsToMap, DCSwitch::addClassAssignFnsToMap, DCSwitch::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/DCSwitch.hpp b/CGMES_2.4.13_18DEC2013/DCSwitch.hpp deleted file mode 100644 index cd3de7e0e..000000000 --- a/CGMES_2.4.13_18DEC2013/DCSwitch.hpp +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef DCSwitch_H -#define DCSwitch_H - -#include "DCConductingEquipment.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - - /* - A switch within the DC system. - */ - class DCSwitch: public DCConductingEquipment - { - - public: - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - DCSwitch(); - virtual ~DCSwitch(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* DCSwitch_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/DCTerminal.cpp b/CGMES_2.4.13_18DEC2013/DCTerminal.cpp deleted file mode 100644 index 4ba96fd9e..000000000 --- a/CGMES_2.4.13_18DEC2013/DCTerminal.cpp +++ /dev/null @@ -1,54 +0,0 @@ -#include -#include "ACDCTerminal.hpp" -#include "DCTerminal.hpp" - -#include "DCConductingEquipment.hpp" - -using namespace CIMPP; - -DCTerminal::DCTerminal(): DCConductingEquipment(nullptr) {}; - -DCTerminal::~DCTerminal() {}; - - -bool assign_DCConductingEquipment_DCTerminals(BaseClass*, BaseClass*); -bool assign_DCTerminal_DCConductingEquipment(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(DCTerminal* element = dynamic_cast(BaseClass_ptr1)) { - element->DCConductingEquipment = dynamic_cast(BaseClass_ptr2); - if(element->DCConductingEquipment != nullptr) - return assign_DCConductingEquipment_DCTerminals(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - -namespace CIMPP { - BaseClass* DCTerminal_factory() { - return new DCTerminal; - } -} - -void DCTerminal::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:DCTerminal"), &DCTerminal_factory)); -} - -void DCTerminal::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void DCTerminal::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:DCTerminal.DCConductingEquipment"), &assign_DCTerminal_DCConductingEquipment)); -} - -const char DCTerminal::debugName[] = "DCTerminal"; -const char* DCTerminal::debugString() -{ - return DCTerminal::debugName; -} - -const BaseClassDefiner DCTerminal::declare() -{ - return BaseClassDefiner(DCTerminal::addConstructToMap, DCTerminal::addPrimitiveAssignFnsToMap, DCTerminal::addClassAssignFnsToMap, DCTerminal::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/DCTerminal.hpp b/CGMES_2.4.13_18DEC2013/DCTerminal.hpp deleted file mode 100644 index 555943162..000000000 --- a/CGMES_2.4.13_18DEC2013/DCTerminal.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef DCTerminal_H -#define DCTerminal_H - -#include "ACDCTerminal.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class DCConductingEquipment; - /* - A DC electrical connection point to a piece of DC conducting equipment. Terminals are connected at physical connection points called DC nodes. - */ - class DCTerminal: public ACDCTerminal - { - - public: - CIMPP::DCConductingEquipment* DCConductingEquipment; /* Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - DCTerminal(); - virtual ~DCTerminal(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* DCTerminal_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/DCTopologicalIsland.cpp b/CGMES_2.4.13_18DEC2013/DCTopologicalIsland.cpp deleted file mode 100644 index 285cbcf1b..000000000 --- a/CGMES_2.4.13_18DEC2013/DCTopologicalIsland.cpp +++ /dev/null @@ -1,54 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "DCTopologicalIsland.hpp" - -#include "DCTopologicalNode.hpp" - -using namespace CIMPP; - -DCTopologicalIsland::DCTopologicalIsland() {}; - -DCTopologicalIsland::~DCTopologicalIsland() {}; - - -bool assign_DCTopologicalIsland_DCTopologicalNodes(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(DCTopologicalIsland* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->DCTopologicalNodes.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - - -namespace CIMPP { - BaseClass* DCTopologicalIsland_factory() { - return new DCTopologicalIsland; - } -} - -void DCTopologicalIsland::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:DCTopologicalIsland"), &DCTopologicalIsland_factory)); -} - -void DCTopologicalIsland::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void DCTopologicalIsland::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:DCTopologicalIsland.DCTopologicalNodes"), &assign_DCTopologicalIsland_DCTopologicalNodes)); -} - -const char DCTopologicalIsland::debugName[] = "DCTopologicalIsland"; -const char* DCTopologicalIsland::debugString() -{ - return DCTopologicalIsland::debugName; -} - -const BaseClassDefiner DCTopologicalIsland::declare() -{ - return BaseClassDefiner(DCTopologicalIsland::addConstructToMap, DCTopologicalIsland::addPrimitiveAssignFnsToMap, DCTopologicalIsland::addClassAssignFnsToMap, DCTopologicalIsland::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/DCTopologicalIsland.hpp b/CGMES_2.4.13_18DEC2013/DCTopologicalIsland.hpp deleted file mode 100644 index aeb6cd1f4..000000000 --- a/CGMES_2.4.13_18DEC2013/DCTopologicalIsland.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef DCTopologicalIsland_H -#define DCTopologicalIsland_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class DCTopologicalNode; - /* - An electrically connected subset of the network. DC topological islands can change as the current network state changes: e.g. due to - disconnect switches or breakers change state in a SCADA/EMS - manual creation, change or deletion of topological nodes in a planning tool. - */ - class DCTopologicalIsland: public IdentifiedObject - { - - public: - std::list DCTopologicalNodes; /* Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - DCTopologicalIsland(); - virtual ~DCTopologicalIsland(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* DCTopologicalIsland_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/DCTopologicalNode.cpp b/CGMES_2.4.13_18DEC2013/DCTopologicalNode.cpp deleted file mode 100644 index ffc01a8c6..000000000 --- a/CGMES_2.4.13_18DEC2013/DCTopologicalNode.cpp +++ /dev/null @@ -1,92 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "DCTopologicalNode.hpp" - -#include "DCBaseTerminal.hpp" -#include "DCEquipmentContainer.hpp" -#include "DCNode.hpp" -#include "DCTopologicalIsland.hpp" - -using namespace CIMPP; - -DCTopologicalNode::DCTopologicalNode(): DCEquipmentContainer(nullptr), DCTopologicalIsland(nullptr) {}; - -DCTopologicalNode::~DCTopologicalNode() {}; - - -bool assign_DCTopologicalNode_DCTerminals(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(DCTopologicalNode* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->DCTerminals.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_DCEquipmentContainer_DCTopologicalNode(BaseClass*, BaseClass*); -bool assign_DCTopologicalNode_DCEquipmentContainer(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(DCTopologicalNode* element = dynamic_cast(BaseClass_ptr1)) { - element->DCEquipmentContainer = dynamic_cast(BaseClass_ptr2); - if(element->DCEquipmentContainer != nullptr) - return assign_DCEquipmentContainer_DCTopologicalNode(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_DCTopologicalNode_DCNodes(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(DCTopologicalNode* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->DCNodes.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_DCTopologicalNode_DCTopologicalIsland(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(DCTopologicalNode* element = dynamic_cast(BaseClass_ptr1)) { - element->DCTopologicalIsland = dynamic_cast(BaseClass_ptr2); - if(element->DCTopologicalIsland != nullptr) - return true; - } - return false; -} - - - - - - -namespace CIMPP { - BaseClass* DCTopologicalNode_factory() { - return new DCTopologicalNode; - } -} - -void DCTopologicalNode::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:DCTopologicalNode"), &DCTopologicalNode_factory)); -} - -void DCTopologicalNode::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void DCTopologicalNode::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:DCTopologicalNode.DCTerminals"), &assign_DCTopologicalNode_DCTerminals)); - assign_map.insert(std::make_pair(std::string("cim:DCTopologicalNode.DCEquipmentContainer"), &assign_DCTopologicalNode_DCEquipmentContainer)); - assign_map.insert(std::make_pair(std::string("cim:DCTopologicalNode.DCNodes"), &assign_DCTopologicalNode_DCNodes)); - assign_map.insert(std::make_pair(std::string("cim:DCTopologicalNode.DCTopologicalIsland"), &assign_DCTopologicalNode_DCTopologicalIsland)); -} - -const char DCTopologicalNode::debugName[] = "DCTopologicalNode"; -const char* DCTopologicalNode::debugString() -{ - return DCTopologicalNode::debugName; -} - -const BaseClassDefiner DCTopologicalNode::declare() -{ - return BaseClassDefiner(DCTopologicalNode::addConstructToMap, DCTopologicalNode::addPrimitiveAssignFnsToMap, DCTopologicalNode::addClassAssignFnsToMap, DCTopologicalNode::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/DCTopologicalNode.hpp b/CGMES_2.4.13_18DEC2013/DCTopologicalNode.hpp deleted file mode 100644 index ac6cf2f1f..000000000 --- a/CGMES_2.4.13_18DEC2013/DCTopologicalNode.hpp +++ /dev/null @@ -1,46 +0,0 @@ -#ifndef DCTopologicalNode_H -#define DCTopologicalNode_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class DCBaseTerminal; -class DCEquipmentContainer; -class DCNode; -class DCTopologicalIsland; - /* - DC bus. - */ - class DCTopologicalNode: public IdentifiedObject - { - - public: - std::list DCTerminals; /* See association end Terminal.TopologicalNode. Default: 0 */ - CIMPP::DCEquipmentContainer* DCEquipmentContainer; /* Default: 0 */ - std::list DCNodes; /* See association end ConnectivityNode.TopologicalNode. Default: 0 */ - CIMPP::DCTopologicalIsland* DCTopologicalIsland; /* Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - DCTopologicalNode(); - virtual ~DCTopologicalNode(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* DCTopologicalNode_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/Date.cpp b/CGMES_2.4.13_18DEC2013/Date.cpp deleted file mode 100644 index 79a800c86..000000000 --- a/CGMES_2.4.13_18DEC2013/Date.cpp +++ /dev/null @@ -1,20 +0,0 @@ - -#include "BaseClass.hpp" -#include "Date.hpp" -#include "String.hpp" - -using namespace CIMPP; - -Date::Date() {} - -Date::Date(String s) -{ - value=s; -} - -Date::~Date() {} - -BaseClass* Date_factory() -{ - return new Date; -} diff --git a/CGMES_2.4.13_18DEC2013/Date.hpp b/CGMES_2.4.13_18DEC2013/Date.hpp deleted file mode 100644 index 6027d6e09..000000000 --- a/CGMES_2.4.13_18DEC2013/Date.hpp +++ /dev/null @@ -1,26 +0,0 @@ -#ifndef Date_H -#define Date_H - -#include "BaseClass.hpp" -#include "String.hpp" - - -/* -Date as "yyyy-mm-dd", which conforms with ISO 8601. UTC time zone is specified as "yyyy-mm-ddZ". A local timezone relative UTC is specified as "yyyy-mm-dd(+/-)hh:mm". -*/ -namespace CIMPP { - - class Date: public BaseClass - { - public: - Date(); - Date(String); - virtual ~Date(); - - private: - String value; - }; - - BaseClass* Date_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/DateTime.cpp b/CGMES_2.4.13_18DEC2013/DateTime.cpp deleted file mode 100644 index 97315713b..000000000 --- a/CGMES_2.4.13_18DEC2013/DateTime.cpp +++ /dev/null @@ -1,41 +0,0 @@ -#include -#include "BaseClass.hpp" -#include "DateTime.hpp" - - -using namespace CIMPP; - -DateTime::DateTime() {}; - -DateTime::~DateTime() {}; - - - -namespace CIMPP { - BaseClass* DateTime_factory() { - return new DateTime; - } -} - -void DateTime::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:DateTime"), &DateTime_factory)); -} - -void DateTime::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { -} - -void DateTime::addClassAssignFnsToMap(std::unordered_map& assign_map) { -} - -const char DateTime::debugName[] = "DateTime"; -const char* DateTime::debugString() -{ - return DateTime::debugName; -} - -const BaseClassDefiner DateTime::declare() -{ - return BaseClassDefiner(DateTime::addConstructToMap, DateTime::addPrimitiveAssignFnsToMap, DateTime::addClassAssignFnsToMap, DateTime::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/DateTime.hpp b/CGMES_2.4.13_18DEC2013/DateTime.hpp deleted file mode 100644 index 43fe97eba..000000000 --- a/CGMES_2.4.13_18DEC2013/DateTime.hpp +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef DateTime_H -#define DateTime_H - -#include "BaseClass.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - - /* - Date and time as "yyyy-mm-ddThh:mm:ss.sss", which conforms with ISO 8601. UTC time zone is specified as "yyyy-mm-ddThh:mm:ss.sssZ". A local timezone relative UTC is specified as "yyyy-mm-ddThh:mm:ss.sss-hh:mm". The second component (shown here as "ss.sss") could have any number of digits in its fractional part to allow any kind of precision beyond seconds. - */ - class DateTime: public BaseClass - { - - public: - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - DateTime(); - virtual ~DateTime(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* DateTime_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/DayType.cpp b/CGMES_2.4.13_18DEC2013/DayType.cpp deleted file mode 100644 index 0f8ebddda..000000000 --- a/CGMES_2.4.13_18DEC2013/DayType.cpp +++ /dev/null @@ -1,54 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "DayType.hpp" - -#include "SeasonDayTypeSchedule.hpp" - -using namespace CIMPP; - -DayType::DayType() {}; - -DayType::~DayType() {}; - - -bool assign_DayType_SeasonDayTypeSchedules(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(DayType* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->SeasonDayTypeSchedules.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - - -namespace CIMPP { - BaseClass* DayType_factory() { - return new DayType; - } -} - -void DayType::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:DayType"), &DayType_factory)); -} - -void DayType::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void DayType::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:DayType.SeasonDayTypeSchedules"), &assign_DayType_SeasonDayTypeSchedules)); -} - -const char DayType::debugName[] = "DayType"; -const char* DayType::debugString() -{ - return DayType::debugName; -} - -const BaseClassDefiner DayType::declare() -{ - return BaseClassDefiner(DayType::addConstructToMap, DayType::addPrimitiveAssignFnsToMap, DayType::addClassAssignFnsToMap, DayType::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/DayType.hpp b/CGMES_2.4.13_18DEC2013/DayType.hpp deleted file mode 100644 index 5242c9393..000000000 --- a/CGMES_2.4.13_18DEC2013/DayType.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef DayType_H -#define DayType_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class SeasonDayTypeSchedule; - /* - Group of similar days. For example it could be used to represent weekdays, weekend, or holidays. - */ - class DayType: public IdentifiedObject - { - - public: - std::list SeasonDayTypeSchedules; /* DayType for the Schedule. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - DayType(); - virtual ~DayType(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* DayType_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/Decimal.cpp b/CGMES_2.4.13_18DEC2013/Decimal.cpp deleted file mode 100644 index 8556ce687..000000000 --- a/CGMES_2.4.13_18DEC2013/Decimal.cpp +++ /dev/null @@ -1,41 +0,0 @@ -#include -#include "BaseClass.hpp" -#include "Decimal.hpp" - - -using namespace CIMPP; - -Decimal::Decimal() {}; - -Decimal::~Decimal() {}; - - - -namespace CIMPP { - BaseClass* Decimal_factory() { - return new Decimal; - } -} - -void Decimal::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:Decimal"), &Decimal_factory)); -} - -void Decimal::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { -} - -void Decimal::addClassAssignFnsToMap(std::unordered_map& assign_map) { -} - -const char Decimal::debugName[] = "Decimal"; -const char* Decimal::debugString() -{ - return Decimal::debugName; -} - -const BaseClassDefiner Decimal::declare() -{ - return BaseClassDefiner(Decimal::addConstructToMap, Decimal::addPrimitiveAssignFnsToMap, Decimal::addClassAssignFnsToMap, Decimal::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/Decimal.hpp b/CGMES_2.4.13_18DEC2013/Decimal.hpp deleted file mode 100644 index 659729ccc..000000000 --- a/CGMES_2.4.13_18DEC2013/Decimal.hpp +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef Decimal_H -#define Decimal_H - -#include "BaseClass.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - - /* - Decimal is the base-10 notational system for representing real numbers. - */ - class Decimal: public BaseClass - { - - public: - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - Decimal(); - virtual ~Decimal(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* Decimal_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/Diagram.cpp b/CGMES_2.4.13_18DEC2013/Diagram.cpp deleted file mode 100644 index 744e0555a..000000000 --- a/CGMES_2.4.13_18DEC2013/Diagram.cpp +++ /dev/null @@ -1,142 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "Diagram.hpp" - -#include "DiagramStyle.hpp" -#include "OrientationKind.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "DiagramObject.hpp" - -using namespace CIMPP; - -Diagram::Diagram(): DiagramStyle(nullptr) {}; - -Diagram::~Diagram() {}; - - -bool assign_DiagramStyle_Diagram(BaseClass*, BaseClass*); -bool assign_Diagram_DiagramStyle(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(Diagram* element = dynamic_cast(BaseClass_ptr1)) { - element->DiagramStyle = dynamic_cast(BaseClass_ptr2); - if(element->DiagramStyle != nullptr) - return assign_DiagramStyle_Diagram(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - - - - -bool assign_Diagram_DiagramElements(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(Diagram* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->DiagramElements.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - - -bool assign_Diagram_orientation(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Diagram* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->orientation; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Diagram_x1InitialView(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Diagram* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->x1InitialView; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Diagram_x2InitialView(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Diagram* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->x2InitialView; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Diagram_y1InitialView(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Diagram* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->y1InitialView; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Diagram_y2InitialView(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Diagram* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->y2InitialView; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -namespace CIMPP { - BaseClass* Diagram_factory() { - return new Diagram; - } -} - -void Diagram::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:Diagram"), &Diagram_factory)); -} - -void Diagram::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:Diagram.orientation"), &assign_Diagram_orientation)); - assign_map.insert(std::make_pair(std::string("cim:Diagram.x1InitialView"), &assign_Diagram_x1InitialView)); - assign_map.insert(std::make_pair(std::string("cim:Diagram.x2InitialView"), &assign_Diagram_x2InitialView)); - assign_map.insert(std::make_pair(std::string("cim:Diagram.y1InitialView"), &assign_Diagram_y1InitialView)); - assign_map.insert(std::make_pair(std::string("cim:Diagram.y2InitialView"), &assign_Diagram_y2InitialView)); - } - -void Diagram::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:Diagram.DiagramStyle"), &assign_Diagram_DiagramStyle)); - assign_map.insert(std::make_pair(std::string("cim:Diagram.DiagramElements"), &assign_Diagram_DiagramElements)); -} - -const char Diagram::debugName[] = "Diagram"; -const char* Diagram::debugString() -{ - return Diagram::debugName; -} - -const BaseClassDefiner Diagram::declare() -{ - return BaseClassDefiner(Diagram::addConstructToMap, Diagram::addPrimitiveAssignFnsToMap, Diagram::addClassAssignFnsToMap, Diagram::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/Diagram.hpp b/CGMES_2.4.13_18DEC2013/Diagram.hpp deleted file mode 100644 index 163978d01..000000000 --- a/CGMES_2.4.13_18DEC2013/Diagram.hpp +++ /dev/null @@ -1,49 +0,0 @@ -#ifndef Diagram_H -#define Diagram_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "OrientationKind.hpp" -#include "Simple_Float.hpp" - -namespace CIMPP { - - -class DiagramStyle; -class DiagramObject; - /* - The diagram being exchanged. The coordinate system is a standard Cartesian coordinate system and the orientation attribute defines the orientation. - */ - class Diagram: public IdentifiedObject - { - - public: - CIMPP::DiagramStyle* DiagramStyle; /* A Diagram may have a DiagramStyle. Default: 0 */ - CIMPP::OrientationKind orientation; /* Coordinate system orientation of the diagram. Default: 0 */ - CIMPP::Simple_Float x1InitialView; /* X coordinate of the first corner of the initial view. Default: nullptr */ - CIMPP::Simple_Float x2InitialView; /* X coordinate of the second corner of the initial view. Default: nullptr */ - CIMPP::Simple_Float y1InitialView; /* Y coordinate of the first corner of the initial view. Default: nullptr */ - CIMPP::Simple_Float y2InitialView; /* Y coordinate of the second corner of the initial view. Default: nullptr */ - std::list DiagramElements; /* A diagram is made up of multiple diagram objects. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - Diagram(); - virtual ~Diagram(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* Diagram_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/DiagramLayoutVersion.cpp b/CGMES_2.4.13_18DEC2013/DiagramLayoutVersion.cpp deleted file mode 100644 index a63a57174..000000000 --- a/CGMES_2.4.13_18DEC2013/DiagramLayoutVersion.cpp +++ /dev/null @@ -1,179 +0,0 @@ -#include -#include "BaseClass.hpp" -#include "DiagramLayoutVersion.hpp" - -#include "String.hpp" -#include "String.hpp" -#include "Date.hpp" -#include "String.hpp" -#include "String.hpp" -#include "String.hpp" -#include "String.hpp" -#include "String.hpp" -#include "String.hpp" -#include "String.hpp" - -using namespace CIMPP; - -DiagramLayoutVersion::DiagramLayoutVersion(): date(nullptr) {}; - -DiagramLayoutVersion::~DiagramLayoutVersion() {}; - - - - -bool assign_DiagramLayoutVersion_date(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(DiagramLayoutVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->date = dynamic_cast(BaseClass_ptr2); - if(element->date != nullptr) - return true; - } - return false; -} - - - - - - - - - -bool assign_DiagramLayoutVersion_baseUML(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DiagramLayoutVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->baseUML = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_DiagramLayoutVersion_baseURI(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DiagramLayoutVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->baseURI = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - - -bool assign_DiagramLayoutVersion_differenceModelURI(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DiagramLayoutVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->differenceModelURI = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_DiagramLayoutVersion_entsoeUML(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DiagramLayoutVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->entsoeUML = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_DiagramLayoutVersion_entsoeURI(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DiagramLayoutVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->entsoeURI = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_DiagramLayoutVersion_modelDescriptionURI(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DiagramLayoutVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->modelDescriptionURI = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_DiagramLayoutVersion_namespaceRDF(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DiagramLayoutVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->namespaceRDF = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_DiagramLayoutVersion_namespaceUML(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DiagramLayoutVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->namespaceUML = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_DiagramLayoutVersion_shortName(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DiagramLayoutVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->shortName = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -namespace CIMPP { - BaseClass* DiagramLayoutVersion_factory() { - return new DiagramLayoutVersion; - } -} - -void DiagramLayoutVersion::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:DiagramLayoutVersion"), &DiagramLayoutVersion_factory)); -} - -void DiagramLayoutVersion::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:DiagramLayoutVersion.baseUML"), &assign_DiagramLayoutVersion_baseUML)); - assign_map.insert(std::make_pair(std::string("cim:DiagramLayoutVersion.baseURI"), &assign_DiagramLayoutVersion_baseURI)); - assign_map.insert(std::make_pair(std::string("cim:DiagramLayoutVersion.differenceModelURI"), &assign_DiagramLayoutVersion_differenceModelURI)); - assign_map.insert(std::make_pair(std::string("cim:DiagramLayoutVersion.entsoeUML"), &assign_DiagramLayoutVersion_entsoeUML)); - assign_map.insert(std::make_pair(std::string("cim:DiagramLayoutVersion.entsoeURI"), &assign_DiagramLayoutVersion_entsoeURI)); - assign_map.insert(std::make_pair(std::string("cim:DiagramLayoutVersion.modelDescriptionURI"), &assign_DiagramLayoutVersion_modelDescriptionURI)); - assign_map.insert(std::make_pair(std::string("cim:DiagramLayoutVersion.namespaceRDF"), &assign_DiagramLayoutVersion_namespaceRDF)); - assign_map.insert(std::make_pair(std::string("cim:DiagramLayoutVersion.namespaceUML"), &assign_DiagramLayoutVersion_namespaceUML)); - assign_map.insert(std::make_pair(std::string("cim:DiagramLayoutVersion.shortName"), &assign_DiagramLayoutVersion_shortName)); -} - -void DiagramLayoutVersion::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:DiagramLayoutVersion.date"), &assign_DiagramLayoutVersion_date)); - } - -const char DiagramLayoutVersion::debugName[] = "DiagramLayoutVersion"; -const char* DiagramLayoutVersion::debugString() -{ - return DiagramLayoutVersion::debugName; -} - -const BaseClassDefiner DiagramLayoutVersion::declare() -{ - return BaseClassDefiner(DiagramLayoutVersion::addConstructToMap, DiagramLayoutVersion::addPrimitiveAssignFnsToMap, DiagramLayoutVersion::addClassAssignFnsToMap, DiagramLayoutVersion::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/DiagramLayoutVersion.hpp b/CGMES_2.4.13_18DEC2013/DiagramLayoutVersion.hpp deleted file mode 100644 index 3c777f1e5..000000000 --- a/CGMES_2.4.13_18DEC2013/DiagramLayoutVersion.hpp +++ /dev/null @@ -1,50 +0,0 @@ -#ifndef DiagramLayoutVersion_H -#define DiagramLayoutVersion_H - -#include "BaseClass.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "String.hpp" - -namespace CIMPP { - - -class Date; - /* - Version details. - */ - class DiagramLayoutVersion: public BaseClass - { - - public: - CIMPP::String baseUML; /* Base UML provided by CIM model manager. Default: '' */ - CIMPP::String baseURI; /* Profile URI used in the Model Exchange header and defined in IEC standards. It uniquely identifies the Profile and its version. It is given for information only and to identify the closest IEC profile to which this CGMES profile is based on. Default: '' */ - CIMPP::Date* date; /* Profile creation date Form is YYYY-MM-DD for example for January 5, 2009 it is 2009-01-05. Default: '' */ - CIMPP::String differenceModelURI; /* Difference model URI defined by IEC 61970-552. Default: '' */ - CIMPP::String entsoeUML; /* UML provided by ENTSO-E. Default: '' */ - CIMPP::String entsoeURI; /* Profile URI defined by ENTSO-E and used in the Model Exchange header. It uniquely identifies the Profile and its version. The last two elements in the URI (http://entsoe.eu/CIM/DiagramLayout/yy/zzz) indicate major and minor versions where: - yy - indicates a major version; - zzz - indicates a minor version. Default: '' */ - CIMPP::String modelDescriptionURI; /* Model Description URI defined by IEC 61970-552. Default: '' */ - CIMPP::String namespaceRDF; /* RDF namespace. Default: '' */ - CIMPP::String namespaceUML; /* CIM UML namespace. Default: '' */ - CIMPP::String shortName; /* The short name of the profile used in profile documentation. Default: '' */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - DiagramLayoutVersion(); - virtual ~DiagramLayoutVersion(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* DiagramLayoutVersion_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/DiagramObject.cpp b/CGMES_2.4.13_18DEC2013/DiagramObject.cpp deleted file mode 100644 index 2757f619d..000000000 --- a/CGMES_2.4.13_18DEC2013/DiagramObject.cpp +++ /dev/null @@ -1,181 +0,0 @@ -#include -#include "BaseClass.hpp" -#include "DiagramObject.hpp" - -#include "Diagram.hpp" -#include "Integer.hpp" -#include "Boolean.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "AngleDegrees.hpp" -#include "IdentifiedObject.hpp" -#include "DiagramObjectPoint.hpp" -#include "VisibilityLayer.hpp" -#include "DiagramObjectStyle.hpp" - -using namespace CIMPP; - -DiagramObject::DiagramObject(): Diagram(nullptr), IdentifiedObject(nullptr), DiagramObjectStyle(nullptr) {}; - -DiagramObject::~DiagramObject() {}; - - -bool assign_Diagram_DiagramElements(BaseClass*, BaseClass*); -bool assign_DiagramObject_Diagram(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(DiagramObject* element = dynamic_cast(BaseClass_ptr1)) { - element->Diagram = dynamic_cast(BaseClass_ptr2); - if(element->Diagram != nullptr) - return assign_Diagram_DiagramElements(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - - - - -bool assign_IdentifiedObject_DiagramObjects(BaseClass*, BaseClass*); -bool assign_DiagramObject_IdentifiedObject(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(DiagramObject* element = dynamic_cast(BaseClass_ptr1)) { - element->IdentifiedObject = dynamic_cast(BaseClass_ptr2); - if(element->IdentifiedObject != nullptr) - return assign_IdentifiedObject_DiagramObjects(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_DiagramObject_DiagramObjectPoints(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(DiagramObject* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->DiagramObjectPoints.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_DiagramObject_VisibilityLayers(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(DiagramObject* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->VisibilityLayers.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_DiagramObjectStyle_StyledObjects(BaseClass*, BaseClass*); -bool assign_DiagramObject_DiagramObjectStyle(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(DiagramObject* element = dynamic_cast(BaseClass_ptr1)) { - element->DiagramObjectStyle = dynamic_cast(BaseClass_ptr2); - if(element->DiagramObjectStyle != nullptr) - return assign_DiagramObjectStyle_StyledObjects(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - -bool assign_DiagramObject_drawingOrder(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DiagramObject* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->drawingOrder; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_DiagramObject_isPolygon(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DiagramObject* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->isPolygon; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_DiagramObject_offsetX(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DiagramObject* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->offsetX; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_DiagramObject_offsetY(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DiagramObject* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->offsetY; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_DiagramObject_rotation(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DiagramObject* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->rotation; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - - - - -namespace CIMPP { - BaseClass* DiagramObject_factory() { - return new DiagramObject; - } -} - -void DiagramObject::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:DiagramObject"), &DiagramObject_factory)); -} - -void DiagramObject::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:DiagramObject.drawingOrder"), &assign_DiagramObject_drawingOrder)); - assign_map.insert(std::make_pair(std::string("cim:DiagramObject.isPolygon"), &assign_DiagramObject_isPolygon)); - assign_map.insert(std::make_pair(std::string("cim:DiagramObject.offsetX"), &assign_DiagramObject_offsetX)); - assign_map.insert(std::make_pair(std::string("cim:DiagramObject.offsetY"), &assign_DiagramObject_offsetY)); - assign_map.insert(std::make_pair(std::string("cim:DiagramObject.rotation"), &assign_DiagramObject_rotation)); - } - -void DiagramObject::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:DiagramObject.Diagram"), &assign_DiagramObject_Diagram)); - assign_map.insert(std::make_pair(std::string("cim:DiagramObject.IdentifiedObject"), &assign_DiagramObject_IdentifiedObject)); - assign_map.insert(std::make_pair(std::string("cim:DiagramObject.DiagramObjectPoints"), &assign_DiagramObject_DiagramObjectPoints)); - assign_map.insert(std::make_pair(std::string("cim:DiagramObject.VisibilityLayers"), &assign_DiagramObject_VisibilityLayers)); - assign_map.insert(std::make_pair(std::string("cim:DiagramObject.DiagramObjectStyle"), &assign_DiagramObject_DiagramObjectStyle)); -} - -const char DiagramObject::debugName[] = "DiagramObject"; -const char* DiagramObject::debugString() -{ - return DiagramObject::debugName; -} - -const BaseClassDefiner DiagramObject::declare() -{ - return BaseClassDefiner(DiagramObject::addConstructToMap, DiagramObject::addPrimitiveAssignFnsToMap, DiagramObject::addClassAssignFnsToMap, DiagramObject::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/DiagramObject.hpp b/CGMES_2.4.13_18DEC2013/DiagramObject.hpp deleted file mode 100644 index 16e7de455..000000000 --- a/CGMES_2.4.13_18DEC2013/DiagramObject.hpp +++ /dev/null @@ -1,57 +0,0 @@ -#ifndef DiagramObject_H -#define DiagramObject_H - -#include "BaseClass.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Integer.hpp" -#include "Boolean.hpp" -#include "Simple_Float.hpp" -#include "AngleDegrees.hpp" - -namespace CIMPP { - - -class Diagram; -class IdentifiedObject; -class DiagramObjectPoint; -class VisibilityLayer; -class DiagramObjectStyle; - /* - An object that defines one or more points in a given space. This object can be associated with anything that specializes IdentifiedObject. For single line diagrams such objects typically include such items as analog values, breakers, disconnectors, power transformers, and transmission lines. - */ - class DiagramObject: public BaseClass - { - - public: - CIMPP::Diagram* Diagram; /* A diagram object is part of a diagram. Default: 0 */ - CIMPP::Integer drawingOrder; /* The drawing order of this element. The higher the number, the later the element is drawn in sequence. This is used to ensure that elements that overlap are rendered in the correct order. Default: 0 */ - CIMPP::Boolean isPolygon; /* Defines whether or not the diagram objects points define the boundaries of a polygon or the routing of a polyline. If this value is true then a receiving application should consider the first and last points to be connected. Default: false */ - CIMPP::Simple_Float offsetX; /* The offset in the X direction. This is used for defining the offset from centre for rendering an icon (the default is that a single point specifies the centre of the icon). The offset is in per-unit with 0 indicating there is no offset from the horizontal centre of the icon. -0.5 indicates it is offset by 50% to the left and 0.5 indicates an offset of 50% to the right. Default: nullptr */ - CIMPP::Simple_Float offsetY; /* The offset in the Y direction. This is used for defining the offset from centre for rendering an icon (the default is that a single point specifies the centre of the icon). The offset is in per-unit with 0 indicating there is no offset from the vertical centre of the icon. The offset direction is dependent on the orientation of the diagram, with -0.5 and 0.5 indicating an offset of +/- 50% on the vertical axis. Default: nullptr */ - CIMPP::AngleDegrees rotation; /* Sets the angle of rotation of the diagram object. Zero degrees is pointing to the top of the diagram. Rotation is clockwise. Default: nullptr */ - CIMPP::IdentifiedObject* IdentifiedObject; /* The diagram objects that are associated with the domain object. Default: 0 */ - std::list DiagramObjectPoints; /* A diagram object can have 0 or more points to reflect its layout position, routing (for polylines) or boundary (for polygons). Default: 0 */ - std::list VisibilityLayers; /* A diagram object can be part of multiple visibility layers. Default: 0 */ - CIMPP::DiagramObjectStyle* DiagramObjectStyle; /* A diagram object has a style associated that provides a reference for the style used in the originating system. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - DiagramObject(); - virtual ~DiagramObject(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* DiagramObject_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/DiagramObjectGluePoint.cpp b/CGMES_2.4.13_18DEC2013/DiagramObjectGluePoint.cpp deleted file mode 100644 index 201d1aee0..000000000 --- a/CGMES_2.4.13_18DEC2013/DiagramObjectGluePoint.cpp +++ /dev/null @@ -1,53 +0,0 @@ -#include -#include "BaseClass.hpp" -#include "DiagramObjectGluePoint.hpp" - -#include "DiagramObjectPoint.hpp" - -using namespace CIMPP; - -DiagramObjectGluePoint::DiagramObjectGluePoint(): DiagramObjectPoints(nullptr) {}; - -DiagramObjectGluePoint::~DiagramObjectGluePoint() {}; - - -bool assign_DiagramObjectGluePoint_DiagramObjectPoints(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(DiagramObjectGluePoint* element = dynamic_cast(BaseClass_ptr1)) { - element->DiagramObjectPoints = dynamic_cast(BaseClass_ptr2); - if(element->DiagramObjectPoints != nullptr) - return true; - } - return false; -} - - - -namespace CIMPP { - BaseClass* DiagramObjectGluePoint_factory() { - return new DiagramObjectGluePoint; - } -} - -void DiagramObjectGluePoint::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:DiagramObjectGluePoint"), &DiagramObjectGluePoint_factory)); -} - -void DiagramObjectGluePoint::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void DiagramObjectGluePoint::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:DiagramObjectGluePoint.DiagramObjectPoints"), &assign_DiagramObjectGluePoint_DiagramObjectPoints)); -} - -const char DiagramObjectGluePoint::debugName[] = "DiagramObjectGluePoint"; -const char* DiagramObjectGluePoint::debugString() -{ - return DiagramObjectGluePoint::debugName; -} - -const BaseClassDefiner DiagramObjectGluePoint::declare() -{ - return BaseClassDefiner(DiagramObjectGluePoint::addConstructToMap, DiagramObjectGluePoint::addPrimitiveAssignFnsToMap, DiagramObjectGluePoint::addClassAssignFnsToMap, DiagramObjectGluePoint::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/DiagramObjectGluePoint.hpp b/CGMES_2.4.13_18DEC2013/DiagramObjectGluePoint.hpp deleted file mode 100644 index d963bdb3c..000000000 --- a/CGMES_2.4.13_18DEC2013/DiagramObjectGluePoint.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef DiagramObjectGluePoint_H -#define DiagramObjectGluePoint_H - -#include "BaseClass.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class DiagramObjectPoint; - /* - This is used for grouping diagram object points from different diagram objects that are considered to be glued together in a diagram even if they are not at the exact same coordinates. - */ - class DiagramObjectGluePoint: public BaseClass - { - - public: - CIMPP::DiagramObjectPoint* DiagramObjectPoints; /* The `glue` point to which this point is associated. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - DiagramObjectGluePoint(); - virtual ~DiagramObjectGluePoint(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* DiagramObjectGluePoint_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/DiagramObjectPoint.cpp b/CGMES_2.4.13_18DEC2013/DiagramObjectPoint.cpp deleted file mode 100644 index 61136318d..000000000 --- a/CGMES_2.4.13_18DEC2013/DiagramObjectPoint.cpp +++ /dev/null @@ -1,127 +0,0 @@ -#include -#include "BaseClass.hpp" -#include "DiagramObjectPoint.hpp" - -#include "DiagramObject.hpp" -#include "DiagramObjectGluePoint.hpp" -#include "Integer.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" - -using namespace CIMPP; - -DiagramObjectPoint::DiagramObjectPoint(): DiagramObject(nullptr), DiagramObjectGluePoint(nullptr) {}; - -DiagramObjectPoint::~DiagramObjectPoint() {}; - - -bool assign_DiagramObject_DiagramObjectPoints(BaseClass*, BaseClass*); -bool assign_DiagramObjectPoint_DiagramObject(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(DiagramObjectPoint* element = dynamic_cast(BaseClass_ptr1)) { - element->DiagramObject = dynamic_cast(BaseClass_ptr2); - if(element->DiagramObject != nullptr) - return assign_DiagramObject_DiagramObjectPoints(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_DiagramObjectGluePoint_DiagramObjectPoints(BaseClass*, BaseClass*); -bool assign_DiagramObjectPoint_DiagramObjectGluePoint(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(DiagramObjectPoint* element = dynamic_cast(BaseClass_ptr1)) { - element->DiagramObjectGluePoint = dynamic_cast(BaseClass_ptr2); - if(element->DiagramObjectGluePoint != nullptr) - return assign_DiagramObjectGluePoint_DiagramObjectPoints(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - - - - - - -bool assign_DiagramObjectPoint_sequenceNumber(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DiagramObjectPoint* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->sequenceNumber; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_DiagramObjectPoint_xPosition(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DiagramObjectPoint* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->xPosition; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_DiagramObjectPoint_yPosition(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DiagramObjectPoint* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->yPosition; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_DiagramObjectPoint_zPosition(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DiagramObjectPoint* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->zPosition; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* DiagramObjectPoint_factory() { - return new DiagramObjectPoint; - } -} - -void DiagramObjectPoint::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:DiagramObjectPoint"), &DiagramObjectPoint_factory)); -} - -void DiagramObjectPoint::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:DiagramObjectPoint.sequenceNumber"), &assign_DiagramObjectPoint_sequenceNumber)); - assign_map.insert(std::make_pair(std::string("cim:DiagramObjectPoint.xPosition"), &assign_DiagramObjectPoint_xPosition)); - assign_map.insert(std::make_pair(std::string("cim:DiagramObjectPoint.yPosition"), &assign_DiagramObjectPoint_yPosition)); - assign_map.insert(std::make_pair(std::string("cim:DiagramObjectPoint.zPosition"), &assign_DiagramObjectPoint_zPosition)); -} - -void DiagramObjectPoint::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:DiagramObjectPoint.DiagramObject"), &assign_DiagramObjectPoint_DiagramObject)); - assign_map.insert(std::make_pair(std::string("cim:DiagramObjectPoint.DiagramObjectGluePoint"), &assign_DiagramObjectPoint_DiagramObjectGluePoint)); - } - -const char DiagramObjectPoint::debugName[] = "DiagramObjectPoint"; -const char* DiagramObjectPoint::debugString() -{ - return DiagramObjectPoint::debugName; -} - -const BaseClassDefiner DiagramObjectPoint::declare() -{ - return BaseClassDefiner(DiagramObjectPoint::addConstructToMap, DiagramObjectPoint::addPrimitiveAssignFnsToMap, DiagramObjectPoint::addClassAssignFnsToMap, DiagramObjectPoint::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/DiagramObjectPoint.hpp b/CGMES_2.4.13_18DEC2013/DiagramObjectPoint.hpp deleted file mode 100644 index 860de0392..000000000 --- a/CGMES_2.4.13_18DEC2013/DiagramObjectPoint.hpp +++ /dev/null @@ -1,48 +0,0 @@ -#ifndef DiagramObjectPoint_H -#define DiagramObjectPoint_H - -#include "BaseClass.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Integer.hpp" -#include "Simple_Float.hpp" - -namespace CIMPP { - - -class DiagramObject; -class DiagramObjectGluePoint; - /* - A point in a given space defined by 3 coordinates and associated to a diagram object. The coordinates may be positive or negative as the origin does not have to be in the corner of a diagram. - */ - class DiagramObjectPoint: public BaseClass - { - - public: - CIMPP::DiagramObject* DiagramObject; /* The diagram object with which the points are associated. Default: 0 */ - CIMPP::DiagramObjectGluePoint* DiagramObjectGluePoint; /* A diagram object glue point is associated with 2 or more object points that are considered to be `glued` together. Default: 0 */ - CIMPP::Integer sequenceNumber; /* The sequence position of the point, used for defining the order of points for diagram objects acting as a polyline or polygon with more than one point. Default: 0 */ - CIMPP::Simple_Float xPosition; /* The X coordinate of this point. Default: nullptr */ - CIMPP::Simple_Float yPosition; /* The Y coordinate of this point. Default: nullptr */ - CIMPP::Simple_Float zPosition; /* The Z coordinate of this point. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - DiagramObjectPoint(); - virtual ~DiagramObjectPoint(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* DiagramObjectPoint_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/DiagramObjectStyle.cpp b/CGMES_2.4.13_18DEC2013/DiagramObjectStyle.cpp deleted file mode 100644 index 2f75f914d..000000000 --- a/CGMES_2.4.13_18DEC2013/DiagramObjectStyle.cpp +++ /dev/null @@ -1,54 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "DiagramObjectStyle.hpp" - -#include "DiagramObject.hpp" - -using namespace CIMPP; - -DiagramObjectStyle::DiagramObjectStyle() {}; - -DiagramObjectStyle::~DiagramObjectStyle() {}; - - -bool assign_DiagramObjectStyle_StyledObjects(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(DiagramObjectStyle* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->StyledObjects.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - - -namespace CIMPP { - BaseClass* DiagramObjectStyle_factory() { - return new DiagramObjectStyle; - } -} - -void DiagramObjectStyle::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:DiagramObjectStyle"), &DiagramObjectStyle_factory)); -} - -void DiagramObjectStyle::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void DiagramObjectStyle::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:DiagramObjectStyle.StyledObjects"), &assign_DiagramObjectStyle_StyledObjects)); -} - -const char DiagramObjectStyle::debugName[] = "DiagramObjectStyle"; -const char* DiagramObjectStyle::debugString() -{ - return DiagramObjectStyle::debugName; -} - -const BaseClassDefiner DiagramObjectStyle::declare() -{ - return BaseClassDefiner(DiagramObjectStyle::addConstructToMap, DiagramObjectStyle::addPrimitiveAssignFnsToMap, DiagramObjectStyle::addClassAssignFnsToMap, DiagramObjectStyle::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/DiagramObjectStyle.hpp b/CGMES_2.4.13_18DEC2013/DiagramObjectStyle.hpp deleted file mode 100644 index a35d2d489..000000000 --- a/CGMES_2.4.13_18DEC2013/DiagramObjectStyle.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef DiagramObjectStyle_H -#define DiagramObjectStyle_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class DiagramObject; - /* - A reference to a style used by the originating system for a diagram object. A diagram object style describes information such as line thickness, shape such as circle or rectangle etc, and color. - */ - class DiagramObjectStyle: public IdentifiedObject - { - - public: - std::list StyledObjects; /* A style can be assigned to multiple diagram objects. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - DiagramObjectStyle(); - virtual ~DiagramObjectStyle(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* DiagramObjectStyle_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/DiagramStyle.cpp b/CGMES_2.4.13_18DEC2013/DiagramStyle.cpp deleted file mode 100644 index 064099e82..000000000 --- a/CGMES_2.4.13_18DEC2013/DiagramStyle.cpp +++ /dev/null @@ -1,54 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "DiagramStyle.hpp" - -#include "Diagram.hpp" - -using namespace CIMPP; - -DiagramStyle::DiagramStyle() {}; - -DiagramStyle::~DiagramStyle() {}; - - -bool assign_DiagramStyle_Diagram(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(DiagramStyle* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->Diagram.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - - -namespace CIMPP { - BaseClass* DiagramStyle_factory() { - return new DiagramStyle; - } -} - -void DiagramStyle::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:DiagramStyle"), &DiagramStyle_factory)); -} - -void DiagramStyle::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void DiagramStyle::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:DiagramStyle.Diagram"), &assign_DiagramStyle_Diagram)); -} - -const char DiagramStyle::debugName[] = "DiagramStyle"; -const char* DiagramStyle::debugString() -{ - return DiagramStyle::debugName; -} - -const BaseClassDefiner DiagramStyle::declare() -{ - return BaseClassDefiner(DiagramStyle::addConstructToMap, DiagramStyle::addPrimitiveAssignFnsToMap, DiagramStyle::addClassAssignFnsToMap, DiagramStyle::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/DiagramStyle.hpp b/CGMES_2.4.13_18DEC2013/DiagramStyle.hpp deleted file mode 100644 index 615d86117..000000000 --- a/CGMES_2.4.13_18DEC2013/DiagramStyle.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef DiagramStyle_H -#define DiagramStyle_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class Diagram; - /* - The diagram style refer to a style used by the originating system for a diagram. A diagram style describes information such as schematic, geographic, bus-branch etc. - */ - class DiagramStyle: public IdentifiedObject - { - - public: - std::list Diagram; /* A DiagramStyle can be used by many Diagrams. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - DiagramStyle(); - virtual ~DiagramStyle(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* DiagramStyle_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/DiscExcContIEEEDEC1A.cpp b/CGMES_2.4.13_18DEC2013/DiscExcContIEEEDEC1A.cpp deleted file mode 100644 index 8886f8f76..000000000 --- a/CGMES_2.4.13_18DEC2013/DiscExcContIEEEDEC1A.cpp +++ /dev/null @@ -1,311 +0,0 @@ -#include -#include "DiscontinuousExcitationControlDynamics.hpp" -#include "DiscExcContIEEEDEC1A.hpp" - -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -DiscExcContIEEEDEC1A::DiscExcContIEEEDEC1A() {}; - -DiscExcContIEEEDEC1A::~DiscExcContIEEEDEC1A() {}; - - - - - - - - - - - - - - - - - - - - - -bool assign_DiscExcContIEEEDEC1A_vtlmt(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DiscExcContIEEEDEC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vtlmt; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_DiscExcContIEEEDEC1A_vomax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DiscExcContIEEEDEC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vomax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_DiscExcContIEEEDEC1A_vomin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DiscExcContIEEEDEC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vomin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_DiscExcContIEEEDEC1A_ketl(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DiscExcContIEEEDEC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ketl; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_DiscExcContIEEEDEC1A_vtc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DiscExcContIEEEDEC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vtc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_DiscExcContIEEEDEC1A_val(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DiscExcContIEEEDEC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->val; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_DiscExcContIEEEDEC1A_esc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DiscExcContIEEEDEC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->esc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_DiscExcContIEEEDEC1A_kan(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DiscExcContIEEEDEC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kan; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_DiscExcContIEEEDEC1A_tan(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DiscExcContIEEEDEC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tan; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_DiscExcContIEEEDEC1A_tw5(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DiscExcContIEEEDEC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tw5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_DiscExcContIEEEDEC1A_vsmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DiscExcContIEEEDEC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vsmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_DiscExcContIEEEDEC1A_vsmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DiscExcContIEEEDEC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vsmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_DiscExcContIEEEDEC1A_td(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DiscExcContIEEEDEC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->td; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_DiscExcContIEEEDEC1A_tl1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DiscExcContIEEEDEC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tl1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_DiscExcContIEEEDEC1A_tl2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DiscExcContIEEEDEC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tl2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_DiscExcContIEEEDEC1A_vtm(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DiscExcContIEEEDEC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vtm; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_DiscExcContIEEEDEC1A_vtn(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DiscExcContIEEEDEC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vtn; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_DiscExcContIEEEDEC1A_vanmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DiscExcContIEEEDEC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vanmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* DiscExcContIEEEDEC1A_factory() { - return new DiscExcContIEEEDEC1A; - } -} - -void DiscExcContIEEEDEC1A::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:DiscExcContIEEEDEC1A"), &DiscExcContIEEEDEC1A_factory)); -} - -void DiscExcContIEEEDEC1A::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:DiscExcContIEEEDEC1A.vtlmt"), &assign_DiscExcContIEEEDEC1A_vtlmt)); - assign_map.insert(std::make_pair(std::string("cim:DiscExcContIEEEDEC1A.vomax"), &assign_DiscExcContIEEEDEC1A_vomax)); - assign_map.insert(std::make_pair(std::string("cim:DiscExcContIEEEDEC1A.vomin"), &assign_DiscExcContIEEEDEC1A_vomin)); - assign_map.insert(std::make_pair(std::string("cim:DiscExcContIEEEDEC1A.ketl"), &assign_DiscExcContIEEEDEC1A_ketl)); - assign_map.insert(std::make_pair(std::string("cim:DiscExcContIEEEDEC1A.vtc"), &assign_DiscExcContIEEEDEC1A_vtc)); - assign_map.insert(std::make_pair(std::string("cim:DiscExcContIEEEDEC1A.val"), &assign_DiscExcContIEEEDEC1A_val)); - assign_map.insert(std::make_pair(std::string("cim:DiscExcContIEEEDEC1A.esc"), &assign_DiscExcContIEEEDEC1A_esc)); - assign_map.insert(std::make_pair(std::string("cim:DiscExcContIEEEDEC1A.kan"), &assign_DiscExcContIEEEDEC1A_kan)); - assign_map.insert(std::make_pair(std::string("cim:DiscExcContIEEEDEC1A.tan"), &assign_DiscExcContIEEEDEC1A_tan)); - assign_map.insert(std::make_pair(std::string("cim:DiscExcContIEEEDEC1A.tw5"), &assign_DiscExcContIEEEDEC1A_tw5)); - assign_map.insert(std::make_pair(std::string("cim:DiscExcContIEEEDEC1A.vsmax"), &assign_DiscExcContIEEEDEC1A_vsmax)); - assign_map.insert(std::make_pair(std::string("cim:DiscExcContIEEEDEC1A.vsmin"), &assign_DiscExcContIEEEDEC1A_vsmin)); - assign_map.insert(std::make_pair(std::string("cim:DiscExcContIEEEDEC1A.td"), &assign_DiscExcContIEEEDEC1A_td)); - assign_map.insert(std::make_pair(std::string("cim:DiscExcContIEEEDEC1A.tl1"), &assign_DiscExcContIEEEDEC1A_tl1)); - assign_map.insert(std::make_pair(std::string("cim:DiscExcContIEEEDEC1A.tl2"), &assign_DiscExcContIEEEDEC1A_tl2)); - assign_map.insert(std::make_pair(std::string("cim:DiscExcContIEEEDEC1A.vtm"), &assign_DiscExcContIEEEDEC1A_vtm)); - assign_map.insert(std::make_pair(std::string("cim:DiscExcContIEEEDEC1A.vtn"), &assign_DiscExcContIEEEDEC1A_vtn)); - assign_map.insert(std::make_pair(std::string("cim:DiscExcContIEEEDEC1A.vanmax"), &assign_DiscExcContIEEEDEC1A_vanmax)); -} - -void DiscExcContIEEEDEC1A::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char DiscExcContIEEEDEC1A::debugName[] = "DiscExcContIEEEDEC1A"; -const char* DiscExcContIEEEDEC1A::debugString() -{ - return DiscExcContIEEEDEC1A::debugName; -} - -const BaseClassDefiner DiscExcContIEEEDEC1A::declare() -{ - return BaseClassDefiner(DiscExcContIEEEDEC1A::addConstructToMap, DiscExcContIEEEDEC1A::addPrimitiveAssignFnsToMap, DiscExcContIEEEDEC1A::addClassAssignFnsToMap, DiscExcContIEEEDEC1A::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/DiscExcContIEEEDEC1A.hpp b/CGMES_2.4.13_18DEC2013/DiscExcContIEEEDEC1A.hpp deleted file mode 100644 index 5eba2d38a..000000000 --- a/CGMES_2.4.13_18DEC2013/DiscExcContIEEEDEC1A.hpp +++ /dev/null @@ -1,58 +0,0 @@ -#ifndef DiscExcContIEEEDEC1A_H -#define DiscExcContIEEEDEC1A_H - -#include "DiscontinuousExcitationControlDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "Seconds.hpp" - -namespace CIMPP { - - - /* - The class represents IEEE Type DEC1A discontinuous excitation control model that boosts generator excitation to a level higher than that demanded by the voltage regulator and stabilizer immediately following a system fault. Reference: IEEE Standard 421.5-2005 Section 12.2. - */ - class DiscExcContIEEEDEC1A: public DiscontinuousExcitationControlDynamics - { - - public: - CIMPP::PU vtlmt; /* Voltage reference (). Typical Value = 1.1. Default: nullptr */ - CIMPP::PU vomax; /* Limiter (). Typical Value = 0.3. Default: nullptr */ - CIMPP::PU vomin; /* Limiter (). Typical Value = 0.1. Default: nullptr */ - CIMPP::PU ketl; /* Terminal voltage limiter gain (). Typical Value = 47. Default: nullptr */ - CIMPP::PU vtc; /* Terminal voltage level reference (). Typical Value = 0.95. Default: nullptr */ - CIMPP::PU val; /* Regulator voltage reference (). Typical Value = 5.5. Default: nullptr */ - CIMPP::PU esc; /* Speed change reference (). Typical Value = 0.0015. Default: nullptr */ - CIMPP::PU kan; /* Discontinuous controller gain (). Typical Value = 400. Default: nullptr */ - CIMPP::Seconds tan; /* Discontinuous controller time constant (). Typical Value = 0.08. Default: nullptr */ - CIMPP::Seconds tw5; /* DEC washout time constant (). Typical Value = 5. Default: nullptr */ - CIMPP::PU vsmax; /* Limiter (). Typical Value = 0.2. Default: nullptr */ - CIMPP::PU vsmin; /* Limiter (). Typical Value = -0.066. Default: nullptr */ - CIMPP::Seconds td; /* Time constant (). Typical Value = 0.03. Default: nullptr */ - CIMPP::Seconds tl1; /* Time constant (). Typical Value = 0.025. Default: nullptr */ - CIMPP::Seconds tl2; /* Time constant (). Typical Value = 1.25. Default: nullptr */ - CIMPP::PU vtm; /* Voltage limits (). Typical Value = 1.13. Default: nullptr */ - CIMPP::PU vtn; /* Voltage limits (). Typical Value = 1.12. Default: nullptr */ - CIMPP::PU vanmax; /* Limiter for Van (). Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - DiscExcContIEEEDEC1A(); - virtual ~DiscExcContIEEEDEC1A(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* DiscExcContIEEEDEC1A_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/DiscExcContIEEEDEC2A.cpp b/CGMES_2.4.13_18DEC2013/DiscExcContIEEEDEC2A.cpp deleted file mode 100644 index 3c1dbf01b..000000000 --- a/CGMES_2.4.13_18DEC2013/DiscExcContIEEEDEC2A.cpp +++ /dev/null @@ -1,116 +0,0 @@ -#include -#include "DiscontinuousExcitationControlDynamics.hpp" -#include "DiscExcContIEEEDEC2A.hpp" - -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -DiscExcContIEEEDEC2A::DiscExcContIEEEDEC2A() {}; - -DiscExcContIEEEDEC2A::~DiscExcContIEEEDEC2A() {}; - - - - - - - - -bool assign_DiscExcContIEEEDEC2A_vk(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DiscExcContIEEEDEC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vk; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_DiscExcContIEEEDEC2A_td1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DiscExcContIEEEDEC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->td1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_DiscExcContIEEEDEC2A_td2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DiscExcContIEEEDEC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->td2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_DiscExcContIEEEDEC2A_vdmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DiscExcContIEEEDEC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vdmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_DiscExcContIEEEDEC2A_vdmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DiscExcContIEEEDEC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vdmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* DiscExcContIEEEDEC2A_factory() { - return new DiscExcContIEEEDEC2A; - } -} - -void DiscExcContIEEEDEC2A::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:DiscExcContIEEEDEC2A"), &DiscExcContIEEEDEC2A_factory)); -} - -void DiscExcContIEEEDEC2A::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:DiscExcContIEEEDEC2A.vk"), &assign_DiscExcContIEEEDEC2A_vk)); - assign_map.insert(std::make_pair(std::string("cim:DiscExcContIEEEDEC2A.td1"), &assign_DiscExcContIEEEDEC2A_td1)); - assign_map.insert(std::make_pair(std::string("cim:DiscExcContIEEEDEC2A.td2"), &assign_DiscExcContIEEEDEC2A_td2)); - assign_map.insert(std::make_pair(std::string("cim:DiscExcContIEEEDEC2A.vdmin"), &assign_DiscExcContIEEEDEC2A_vdmin)); - assign_map.insert(std::make_pair(std::string("cim:DiscExcContIEEEDEC2A.vdmax"), &assign_DiscExcContIEEEDEC2A_vdmax)); -} - -void DiscExcContIEEEDEC2A::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char DiscExcContIEEEDEC2A::debugName[] = "DiscExcContIEEEDEC2A"; -const char* DiscExcContIEEEDEC2A::debugString() -{ - return DiscExcContIEEEDEC2A::debugName; -} - -const BaseClassDefiner DiscExcContIEEEDEC2A::declare() -{ - return BaseClassDefiner(DiscExcContIEEEDEC2A::addConstructToMap, DiscExcContIEEEDEC2A::addPrimitiveAssignFnsToMap, DiscExcContIEEEDEC2A::addClassAssignFnsToMap, DiscExcContIEEEDEC2A::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/DiscExcContIEEEDEC2A.hpp b/CGMES_2.4.13_18DEC2013/DiscExcContIEEEDEC2A.hpp deleted file mode 100644 index 3160b03ac..000000000 --- a/CGMES_2.4.13_18DEC2013/DiscExcContIEEEDEC2A.hpp +++ /dev/null @@ -1,45 +0,0 @@ -#ifndef DiscExcContIEEEDEC2A_H -#define DiscExcContIEEEDEC2A_H - -#include "DiscontinuousExcitationControlDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "Seconds.hpp" - -namespace CIMPP { - - - /* - The class represents IEEE Type DEC2A model for the discontinuous excitation control. This system provides transient excitation boosting via an open-loop control as initiated by a trigger signal generated remotely. Reference: IEEE Standard 421.5-2005 Section 12.3. - */ - class DiscExcContIEEEDEC2A: public DiscontinuousExcitationControlDynamics - { - - public: - CIMPP::PU vk; /* Discontinuous controller input reference (). Default: nullptr */ - CIMPP::Seconds td1; /* Discontinuous controller time constant (). Default: nullptr */ - CIMPP::Seconds td2; /* Discontinuous controller washout time constant (). Default: nullptr */ - CIMPP::PU vdmin; /* Limiter (). Default: nullptr */ - CIMPP::PU vdmax; /* Limiter (). Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - DiscExcContIEEEDEC2A(); - virtual ~DiscExcContIEEEDEC2A(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* DiscExcContIEEEDEC2A_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/DiscExcContIEEEDEC3A.cpp b/CGMES_2.4.13_18DEC2013/DiscExcContIEEEDEC3A.cpp deleted file mode 100644 index 5dd6209ae..000000000 --- a/CGMES_2.4.13_18DEC2013/DiscExcContIEEEDEC3A.cpp +++ /dev/null @@ -1,71 +0,0 @@ -#include -#include "DiscontinuousExcitationControlDynamics.hpp" -#include "DiscExcContIEEEDEC3A.hpp" - -#include "PU.hpp" -#include "Seconds.hpp" - -using namespace CIMPP; - -DiscExcContIEEEDEC3A::DiscExcContIEEEDEC3A() {}; - -DiscExcContIEEEDEC3A::~DiscExcContIEEEDEC3A() {}; - - - - - -bool assign_DiscExcContIEEEDEC3A_vtmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DiscExcContIEEEDEC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vtmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_DiscExcContIEEEDEC3A_tdr(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DiscExcContIEEEDEC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tdr; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* DiscExcContIEEEDEC3A_factory() { - return new DiscExcContIEEEDEC3A; - } -} - -void DiscExcContIEEEDEC3A::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:DiscExcContIEEEDEC3A"), &DiscExcContIEEEDEC3A_factory)); -} - -void DiscExcContIEEEDEC3A::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:DiscExcContIEEEDEC3A.vtmin"), &assign_DiscExcContIEEEDEC3A_vtmin)); - assign_map.insert(std::make_pair(std::string("cim:DiscExcContIEEEDEC3A.tdr"), &assign_DiscExcContIEEEDEC3A_tdr)); -} - -void DiscExcContIEEEDEC3A::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char DiscExcContIEEEDEC3A::debugName[] = "DiscExcContIEEEDEC3A"; -const char* DiscExcContIEEEDEC3A::debugString() -{ - return DiscExcContIEEEDEC3A::debugName; -} - -const BaseClassDefiner DiscExcContIEEEDEC3A::declare() -{ - return BaseClassDefiner(DiscExcContIEEEDEC3A::addConstructToMap, DiscExcContIEEEDEC3A::addPrimitiveAssignFnsToMap, DiscExcContIEEEDEC3A::addClassAssignFnsToMap, DiscExcContIEEEDEC3A::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/DiscExcContIEEEDEC3A.hpp b/CGMES_2.4.13_18DEC2013/DiscExcContIEEEDEC3A.hpp deleted file mode 100644 index a03be5948..000000000 --- a/CGMES_2.4.13_18DEC2013/DiscExcContIEEEDEC3A.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef DiscExcContIEEEDEC3A_H -#define DiscExcContIEEEDEC3A_H - -#include "DiscontinuousExcitationControlDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "Seconds.hpp" - -namespace CIMPP { - - - /* - The class represents IEEE Type DEC3A model. In some systems, the stabilizer output is disconnected from the regulator immediately following a severe fault to prevent the stabilizer from competing with action of voltage regulator during the first swing. Reference: IEEE Standard 421.5-2005 Section 12.4. - */ - class DiscExcContIEEEDEC3A: public DiscontinuousExcitationControlDynamics - { - - public: - CIMPP::PU vtmin; /* Terminal undervoltage comparison level (). Default: nullptr */ - CIMPP::Seconds tdr; /* Reset time delay (). Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - DiscExcContIEEEDEC3A(); - virtual ~DiscExcContIEEEDEC3A(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* DiscExcContIEEEDEC3A_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/Disconnector.cpp b/CGMES_2.4.13_18DEC2013/Disconnector.cpp deleted file mode 100644 index b4478d691..000000000 --- a/CGMES_2.4.13_18DEC2013/Disconnector.cpp +++ /dev/null @@ -1,41 +0,0 @@ -#include -#include "Switch.hpp" -#include "Disconnector.hpp" - - -using namespace CIMPP; - -Disconnector::Disconnector() {}; - -Disconnector::~Disconnector() {}; - - - -namespace CIMPP { - BaseClass* Disconnector_factory() { - return new Disconnector; - } -} - -void Disconnector::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:Disconnector"), &Disconnector_factory)); -} - -void Disconnector::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { -} - -void Disconnector::addClassAssignFnsToMap(std::unordered_map& assign_map) { -} - -const char Disconnector::debugName[] = "Disconnector"; -const char* Disconnector::debugString() -{ - return Disconnector::debugName; -} - -const BaseClassDefiner Disconnector::declare() -{ - return BaseClassDefiner(Disconnector::addConstructToMap, Disconnector::addPrimitiveAssignFnsToMap, Disconnector::addClassAssignFnsToMap, Disconnector::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/Disconnector.hpp b/CGMES_2.4.13_18DEC2013/Disconnector.hpp deleted file mode 100644 index 54570cd9f..000000000 --- a/CGMES_2.4.13_18DEC2013/Disconnector.hpp +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef Disconnector_H -#define Disconnector_H - -#include "Switch.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - - /* - A manually operated or motor operated mechanical switching device used for changing the connections in a circuit, or for isolating a circuit or equipment from a source of power. It is required to open or close circuits when negligible current is broken or made. - */ - class Disconnector: public Switch - { - - public: - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - Disconnector(); - virtual ~Disconnector(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* Disconnector_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/DiscontinuousExcitationControlDynamics.cpp b/CGMES_2.4.13_18DEC2013/DiscontinuousExcitationControlDynamics.cpp deleted file mode 100644 index 297f1c13d..000000000 --- a/CGMES_2.4.13_18DEC2013/DiscontinuousExcitationControlDynamics.cpp +++ /dev/null @@ -1,66 +0,0 @@ -#include -#include "DynamicsFunctionBlock.hpp" -#include "DiscontinuousExcitationControlDynamics.hpp" - -#include "RemoteInputSignal.hpp" -#include "ExcitationSystemDynamics.hpp" - -using namespace CIMPP; - -DiscontinuousExcitationControlDynamics::DiscontinuousExcitationControlDynamics(): RemoteInputSignal(nullptr), ExcitationSystemDynamics(nullptr) {}; - -DiscontinuousExcitationControlDynamics::~DiscontinuousExcitationControlDynamics() {}; - - -bool assign_DiscontinuousExcitationControlDynamics_RemoteInputSignal(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(DiscontinuousExcitationControlDynamics* element = dynamic_cast(BaseClass_ptr1)) { - element->RemoteInputSignal = dynamic_cast(BaseClass_ptr2); - if(element->RemoteInputSignal != nullptr) - return true; - } - return false; -} - -bool assign_ExcitationSystemDynamics_DiscontinuousExcitationControlDynamics(BaseClass*, BaseClass*); -bool assign_DiscontinuousExcitationControlDynamics_ExcitationSystemDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(DiscontinuousExcitationControlDynamics* element = dynamic_cast(BaseClass_ptr1)) { - element->ExcitationSystemDynamics = dynamic_cast(BaseClass_ptr2); - if(element->ExcitationSystemDynamics != nullptr) - return assign_ExcitationSystemDynamics_DiscontinuousExcitationControlDynamics(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - - -namespace CIMPP { - BaseClass* DiscontinuousExcitationControlDynamics_factory() { - return new DiscontinuousExcitationControlDynamics; - } -} - -void DiscontinuousExcitationControlDynamics::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:DiscontinuousExcitationControlDynamics"), &DiscontinuousExcitationControlDynamics_factory)); -} - -void DiscontinuousExcitationControlDynamics::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void DiscontinuousExcitationControlDynamics::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:DiscontinuousExcitationControlDynamics.RemoteInputSignal"), &assign_DiscontinuousExcitationControlDynamics_RemoteInputSignal)); - assign_map.insert(std::make_pair(std::string("cim:DiscontinuousExcitationControlDynamics.ExcitationSystemDynamics"), &assign_DiscontinuousExcitationControlDynamics_ExcitationSystemDynamics)); -} - -const char DiscontinuousExcitationControlDynamics::debugName[] = "DiscontinuousExcitationControlDynamics"; -const char* DiscontinuousExcitationControlDynamics::debugString() -{ - return DiscontinuousExcitationControlDynamics::debugName; -} - -const BaseClassDefiner DiscontinuousExcitationControlDynamics::declare() -{ - return BaseClassDefiner(DiscontinuousExcitationControlDynamics::addConstructToMap, DiscontinuousExcitationControlDynamics::addPrimitiveAssignFnsToMap, DiscontinuousExcitationControlDynamics::addClassAssignFnsToMap, DiscontinuousExcitationControlDynamics::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/DiscontinuousExcitationControlDynamics.hpp b/CGMES_2.4.13_18DEC2013/DiscontinuousExcitationControlDynamics.hpp deleted file mode 100644 index 7bcd52a3b..000000000 --- a/CGMES_2.4.13_18DEC2013/DiscontinuousExcitationControlDynamics.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef DiscontinuousExcitationControlDynamics_H -#define DiscontinuousExcitationControlDynamics_H - -#include "DynamicsFunctionBlock.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class RemoteInputSignal; -class ExcitationSystemDynamics; - /* - Discontinuous excitation control function block whose behaviour is described by reference to a standard model . - */ - class DiscontinuousExcitationControlDynamics: public DynamicsFunctionBlock - { - - public: - CIMPP::RemoteInputSignal* RemoteInputSignal; /* Remote input signal used by this discontinuous excitation control system model. Default: 0 */ - CIMPP::ExcitationSystemDynamics* ExcitationSystemDynamics; /* Excitation system model with which this discontinuous excitation control model is associated. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - DiscontinuousExcitationControlDynamics(); - virtual ~DiscontinuousExcitationControlDynamics(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* DiscontinuousExcitationControlDynamics_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/DiscontinuousExcitationControlUserDefined.cpp b/CGMES_2.4.13_18DEC2013/DiscontinuousExcitationControlUserDefined.cpp deleted file mode 100644 index a2ee92ba8..000000000 --- a/CGMES_2.4.13_18DEC2013/DiscontinuousExcitationControlUserDefined.cpp +++ /dev/null @@ -1,69 +0,0 @@ -#include -#include "DiscontinuousExcitationControlDynamics.hpp" -#include "DiscontinuousExcitationControlUserDefined.hpp" - -#include "Boolean.hpp" -#include "ProprietaryParameterDynamics.hpp" - -using namespace CIMPP; - -DiscontinuousExcitationControlUserDefined::DiscontinuousExcitationControlUserDefined() {}; - -DiscontinuousExcitationControlUserDefined::~DiscontinuousExcitationControlUserDefined() {}; - - - -bool assign_DiscontinuousExcitationControlUserDefined_ProprietaryParameterDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(DiscontinuousExcitationControlUserDefined* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->ProprietaryParameterDynamics.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - -bool assign_DiscontinuousExcitationControlUserDefined_proprietary(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DiscontinuousExcitationControlUserDefined* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->proprietary; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -namespace CIMPP { - BaseClass* DiscontinuousExcitationControlUserDefined_factory() { - return new DiscontinuousExcitationControlUserDefined; - } -} - -void DiscontinuousExcitationControlUserDefined::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:DiscontinuousExcitationControlUserDefined"), &DiscontinuousExcitationControlUserDefined_factory)); -} - -void DiscontinuousExcitationControlUserDefined::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:DiscontinuousExcitationControlUserDefined.proprietary"), &assign_DiscontinuousExcitationControlUserDefined_proprietary)); - } - -void DiscontinuousExcitationControlUserDefined::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:DiscontinuousExcitationControlUserDefined.ProprietaryParameterDynamics"), &assign_DiscontinuousExcitationControlUserDefined_ProprietaryParameterDynamics)); -} - -const char DiscontinuousExcitationControlUserDefined::debugName[] = "DiscontinuousExcitationControlUserDefined"; -const char* DiscontinuousExcitationControlUserDefined::debugString() -{ - return DiscontinuousExcitationControlUserDefined::debugName; -} - -const BaseClassDefiner DiscontinuousExcitationControlUserDefined::declare() -{ - return BaseClassDefiner(DiscontinuousExcitationControlUserDefined::addConstructToMap, DiscontinuousExcitationControlUserDefined::addPrimitiveAssignFnsToMap, DiscontinuousExcitationControlUserDefined::addClassAssignFnsToMap, DiscontinuousExcitationControlUserDefined::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/DiscontinuousExcitationControlUserDefined.hpp b/CGMES_2.4.13_18DEC2013/DiscontinuousExcitationControlUserDefined.hpp deleted file mode 100644 index d4ab36d67..000000000 --- a/CGMES_2.4.13_18DEC2013/DiscontinuousExcitationControlUserDefined.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef DiscontinuousExcitationControlUserDefined_H -#define DiscontinuousExcitationControlUserDefined_H - -#include "DiscontinuousExcitationControlDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Boolean.hpp" - -namespace CIMPP { - - -class ProprietaryParameterDynamics; - /* - Discontinuous excitation control function block whose dynamic behaviour is described by - */ - class DiscontinuousExcitationControlUserDefined: public DiscontinuousExcitationControlDynamics - { - - public: - CIMPP::Boolean proprietary; /* Behaviour is based on proprietary model as opposed to detailed model. true = user-defined model is proprietary with behaviour mutually understood by sending and receiving applications and parameters passed as general attributes false = user-defined model is explicitly defined in terms of control blocks and their input and output signals. Default: false */ - std::list ProprietaryParameterDynamics; /* Parameter of this proprietary user-defined model. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - DiscontinuousExcitationControlUserDefined(); - virtual ~DiscontinuousExcitationControlUserDefined(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* DiscontinuousExcitationControlUserDefined_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/Discrete.cpp b/CGMES_2.4.13_18DEC2013/Discrete.cpp deleted file mode 100644 index 1346f5043..000000000 --- a/CGMES_2.4.13_18DEC2013/Discrete.cpp +++ /dev/null @@ -1,67 +0,0 @@ -#include -#include "Measurement.hpp" -#include "Discrete.hpp" - -#include "DiscreteValue.hpp" -#include "ValueAliasSet.hpp" - -using namespace CIMPP; - -Discrete::Discrete(): ValueAliasSet(nullptr) {}; - -Discrete::~Discrete() {}; - - -bool assign_Discrete_DiscreteValues(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(Discrete* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->DiscreteValues.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_ValueAliasSet_Discretes(BaseClass*, BaseClass*); -bool assign_Discrete_ValueAliasSet(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(Discrete* element = dynamic_cast(BaseClass_ptr1)) { - element->ValueAliasSet = dynamic_cast(BaseClass_ptr2); - if(element->ValueAliasSet != nullptr) - return assign_ValueAliasSet_Discretes(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - - -namespace CIMPP { - BaseClass* Discrete_factory() { - return new Discrete; - } -} - -void Discrete::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:Discrete"), &Discrete_factory)); -} - -void Discrete::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void Discrete::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:Discrete.DiscreteValues"), &assign_Discrete_DiscreteValues)); - assign_map.insert(std::make_pair(std::string("cim:Discrete.ValueAliasSet"), &assign_Discrete_ValueAliasSet)); -} - -const char Discrete::debugName[] = "Discrete"; -const char* Discrete::debugString() -{ - return Discrete::debugName; -} - -const BaseClassDefiner Discrete::declare() -{ - return BaseClassDefiner(Discrete::addConstructToMap, Discrete::addPrimitiveAssignFnsToMap, Discrete::addClassAssignFnsToMap, Discrete::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/Discrete.hpp b/CGMES_2.4.13_18DEC2013/Discrete.hpp deleted file mode 100644 index 68de8657a..000000000 --- a/CGMES_2.4.13_18DEC2013/Discrete.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef Discrete_H -#define Discrete_H - -#include "Measurement.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class DiscreteValue; -class ValueAliasSet; - /* - Discrete represents a discrete Measurement, i.e. a Measurement representing discrete values, e.g. a Breaker position. - */ - class Discrete: public Measurement - { - - public: - std::list DiscreteValues; /* Measurement to which this value is connected. Default: 0 */ - CIMPP::ValueAliasSet* ValueAliasSet; /* The ValueAliasSet used for translation of a MeasurementValue.value to a name. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - Discrete(); - virtual ~Discrete(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* Discrete_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/DiscreteValue.cpp b/CGMES_2.4.13_18DEC2013/DiscreteValue.cpp deleted file mode 100644 index 56227f7be..000000000 --- a/CGMES_2.4.13_18DEC2013/DiscreteValue.cpp +++ /dev/null @@ -1,81 +0,0 @@ -#include -#include "MeasurementValue.hpp" -#include "DiscreteValue.hpp" - -#include "Command.hpp" -#include "Discrete.hpp" -#include "Integer.hpp" - -using namespace CIMPP; - -DiscreteValue::DiscreteValue(): Command(nullptr), Discrete(nullptr) {}; - -DiscreteValue::~DiscreteValue() {}; - - -bool assign_DiscreteValue_Command(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(DiscreteValue* element = dynamic_cast(BaseClass_ptr1)) { - element->Command = dynamic_cast(BaseClass_ptr2); - if(element->Command != nullptr) - return true; - } - return false; -} - -bool assign_Discrete_DiscreteValues(BaseClass*, BaseClass*); -bool assign_DiscreteValue_Discrete(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(DiscreteValue* element = dynamic_cast(BaseClass_ptr1)) { - element->Discrete = dynamic_cast(BaseClass_ptr2); - if(element->Discrete != nullptr) - return assign_Discrete_DiscreteValues(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - - - -bool assign_DiscreteValue_value(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DiscreteValue* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* DiscreteValue_factory() { - return new DiscreteValue; - } -} - -void DiscreteValue::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:DiscreteValue"), &DiscreteValue_factory)); -} - -void DiscreteValue::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:DiscreteValue.value"), &assign_DiscreteValue_value)); -} - -void DiscreteValue::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:DiscreteValue.Command"), &assign_DiscreteValue_Command)); - assign_map.insert(std::make_pair(std::string("cim:DiscreteValue.Discrete"), &assign_DiscreteValue_Discrete)); - } - -const char DiscreteValue::debugName[] = "DiscreteValue"; -const char* DiscreteValue::debugString() -{ - return DiscreteValue::debugName; -} - -const BaseClassDefiner DiscreteValue::declare() -{ - return BaseClassDefiner(DiscreteValue::addConstructToMap, DiscreteValue::addPrimitiveAssignFnsToMap, DiscreteValue::addClassAssignFnsToMap, DiscreteValue::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/DiscreteValue.hpp b/CGMES_2.4.13_18DEC2013/DiscreteValue.hpp deleted file mode 100644 index 1f612822d..000000000 --- a/CGMES_2.4.13_18DEC2013/DiscreteValue.hpp +++ /dev/null @@ -1,44 +0,0 @@ -#ifndef DiscreteValue_H -#define DiscreteValue_H - -#include "MeasurementValue.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Integer.hpp" - -namespace CIMPP { - - -class Command; -class Discrete; - /* - DiscreteValue represents a discrete MeasurementValue. - */ - class DiscreteValue: public MeasurementValue - { - - public: - CIMPP::Command* Command; /* The MeasurementValue that is controlled. Default: 0 */ - CIMPP::Discrete* Discrete; /* The values connected to this measurement. Default: 0 */ - CIMPP::Integer value; /* The value to supervise. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - DiscreteValue(); - virtual ~DiscreteValue(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* DiscreteValue_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/DroopSignalFeedbackKind.cpp b/CGMES_2.4.13_18DEC2013/DroopSignalFeedbackKind.cpp deleted file mode 100644 index 63914b160..000000000 --- a/CGMES_2.4.13_18DEC2013/DroopSignalFeedbackKind.cpp +++ /dev/null @@ -1,47 +0,0 @@ -#include -#include -#include "DroopSignalFeedbackKind.hpp" - -using namespace CIMPP; - -namespace CIMPP { - std::istream& operator>>(std::istream& lop, CIMPP::DroopSignalFeedbackKind& rop) - { - std::string EnumSymbol; - lop >> EnumSymbol; - - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "DroopSignalFeedbackKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "electricalPower") - { - rop = DroopSignalFeedbackKind::electricalPower; - return lop; - } - if(EnumSymbol == "none") - { - rop = DroopSignalFeedbackKind::none; - return lop; - } - if(EnumSymbol == "fuelValveStroke") - { - rop = DroopSignalFeedbackKind::fuelValveStroke; - return lop; - } - if(EnumSymbol == "governorOutput") - { - rop = DroopSignalFeedbackKind::governorOutput; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; - } -} - diff --git a/CGMES_2.4.13_18DEC2013/DroopSignalFeedbackKind.hpp b/CGMES_2.4.13_18DEC2013/DroopSignalFeedbackKind.hpp deleted file mode 100644 index 01984347c..000000000 --- a/CGMES_2.4.13_18DEC2013/DroopSignalFeedbackKind.hpp +++ /dev/null @@ -1,29 +0,0 @@ -#ifndef DroopSignalFeedbackKind_H -#define DroopSignalFeedbackKind_H - -namespace CIMPP { - /* - Governor droop signal feedback source. - */ - enum class DroopSignalFeedbackKind - { - /** - * Electrical power feedback (connection indicated as 1 in the block diagrams of models, e.g. GovCT1, GovCT2). - */ - electricalPower, - /** - * No droop signal feedback, is isochronous governor. - */ - none, - /** - * Fuel valve stroke feedback (true stroke) (connection indicated as 2 in the block diagrams of model, e.g. GovCT1, GovCT2). - */ - fuelValveStroke, - /** - * Governor output feedback (requested stroke) (connection indicated as 3 in the block diagrams of models, e.g. GovCT1, GovCT2). - */ - governorOutput, - }; - std::istream& operator>>(std::istream& lop, CIMPP::DroopSignalFeedbackKind& rop); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/DynamicsFunctionBlock.cpp b/CGMES_2.4.13_18DEC2013/DynamicsFunctionBlock.cpp deleted file mode 100644 index 01d8bdb3c..000000000 --- a/CGMES_2.4.13_18DEC2013/DynamicsFunctionBlock.cpp +++ /dev/null @@ -1,56 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "DynamicsFunctionBlock.hpp" - -#include "Boolean.hpp" - -using namespace CIMPP; - -DynamicsFunctionBlock::DynamicsFunctionBlock() {}; - -DynamicsFunctionBlock::~DynamicsFunctionBlock() {}; - - - - -bool assign_DynamicsFunctionBlock_enabled(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DynamicsFunctionBlock* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->enabled; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* DynamicsFunctionBlock_factory() { - return new DynamicsFunctionBlock; - } -} - -void DynamicsFunctionBlock::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:DynamicsFunctionBlock"), &DynamicsFunctionBlock_factory)); -} - -void DynamicsFunctionBlock::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:DynamicsFunctionBlock.enabled"), &assign_DynamicsFunctionBlock_enabled)); -} - -void DynamicsFunctionBlock::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char DynamicsFunctionBlock::debugName[] = "DynamicsFunctionBlock"; -const char* DynamicsFunctionBlock::debugString() -{ - return DynamicsFunctionBlock::debugName; -} - -const BaseClassDefiner DynamicsFunctionBlock::declare() -{ - return BaseClassDefiner(DynamicsFunctionBlock::addConstructToMap, DynamicsFunctionBlock::addPrimitiveAssignFnsToMap, DynamicsFunctionBlock::addClassAssignFnsToMap, DynamicsFunctionBlock::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/DynamicsFunctionBlock.hpp b/CGMES_2.4.13_18DEC2013/DynamicsFunctionBlock.hpp deleted file mode 100644 index d2be285ab..000000000 --- a/CGMES_2.4.13_18DEC2013/DynamicsFunctionBlock.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef DynamicsFunctionBlock_H -#define DynamicsFunctionBlock_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Boolean.hpp" - -namespace CIMPP { - - - /* - Abstract parent class for all Dynamics function blocks. - */ - class DynamicsFunctionBlock: public IdentifiedObject - { - - public: - CIMPP::Boolean enabled; /* Function block used indicator. true = use of function block is enabled false = use of function block is disabled. Default: false */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - DynamicsFunctionBlock(); - virtual ~DynamicsFunctionBlock(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* DynamicsFunctionBlock_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/DynamicsVersion.cpp b/CGMES_2.4.13_18DEC2013/DynamicsVersion.cpp deleted file mode 100644 index 6cdce7312..000000000 --- a/CGMES_2.4.13_18DEC2013/DynamicsVersion.cpp +++ /dev/null @@ -1,179 +0,0 @@ -#include -#include "BaseClass.hpp" -#include "DynamicsVersion.hpp" - -#include "String.hpp" -#include "String.hpp" -#include "Date.hpp" -#include "String.hpp" -#include "String.hpp" -#include "String.hpp" -#include "String.hpp" -#include "String.hpp" -#include "String.hpp" -#include "String.hpp" - -using namespace CIMPP; - -DynamicsVersion::DynamicsVersion(): date(nullptr) {}; - -DynamicsVersion::~DynamicsVersion() {}; - - - - -bool assign_DynamicsVersion_date(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(DynamicsVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->date = dynamic_cast(BaseClass_ptr2); - if(element->date != nullptr) - return true; - } - return false; -} - - - - - - - - - -bool assign_DynamicsVersion_baseUML(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DynamicsVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->baseUML = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_DynamicsVersion_baseURI(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DynamicsVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->baseURI = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - - -bool assign_DynamicsVersion_differenceModelURI(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DynamicsVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->differenceModelURI = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_DynamicsVersion_entsoeUML(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DynamicsVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->entsoeUML = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_DynamicsVersion_entsoeURI(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DynamicsVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->entsoeURI = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_DynamicsVersion_modelDescriptionURI(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DynamicsVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->modelDescriptionURI = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_DynamicsVersion_namespaceRDF(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DynamicsVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->namespaceRDF = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_DynamicsVersion_namespaceUML(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DynamicsVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->namespaceUML = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_DynamicsVersion_shortName(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(DynamicsVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->shortName = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -namespace CIMPP { - BaseClass* DynamicsVersion_factory() { - return new DynamicsVersion; - } -} - -void DynamicsVersion::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:DynamicsVersion"), &DynamicsVersion_factory)); -} - -void DynamicsVersion::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:DynamicsVersion.baseUML"), &assign_DynamicsVersion_baseUML)); - assign_map.insert(std::make_pair(std::string("cim:DynamicsVersion.baseURI"), &assign_DynamicsVersion_baseURI)); - assign_map.insert(std::make_pair(std::string("cim:DynamicsVersion.differenceModelURI"), &assign_DynamicsVersion_differenceModelURI)); - assign_map.insert(std::make_pair(std::string("cim:DynamicsVersion.entsoeUML"), &assign_DynamicsVersion_entsoeUML)); - assign_map.insert(std::make_pair(std::string("cim:DynamicsVersion.entsoeURI"), &assign_DynamicsVersion_entsoeURI)); - assign_map.insert(std::make_pair(std::string("cim:DynamicsVersion.modelDescriptionURI"), &assign_DynamicsVersion_modelDescriptionURI)); - assign_map.insert(std::make_pair(std::string("cim:DynamicsVersion.namespaceRDF"), &assign_DynamicsVersion_namespaceRDF)); - assign_map.insert(std::make_pair(std::string("cim:DynamicsVersion.namespaceUML"), &assign_DynamicsVersion_namespaceUML)); - assign_map.insert(std::make_pair(std::string("cim:DynamicsVersion.shortName"), &assign_DynamicsVersion_shortName)); -} - -void DynamicsVersion::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:DynamicsVersion.date"), &assign_DynamicsVersion_date)); - } - -const char DynamicsVersion::debugName[] = "DynamicsVersion"; -const char* DynamicsVersion::debugString() -{ - return DynamicsVersion::debugName; -} - -const BaseClassDefiner DynamicsVersion::declare() -{ - return BaseClassDefiner(DynamicsVersion::addConstructToMap, DynamicsVersion::addPrimitiveAssignFnsToMap, DynamicsVersion::addClassAssignFnsToMap, DynamicsVersion::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/DynamicsVersion.hpp b/CGMES_2.4.13_18DEC2013/DynamicsVersion.hpp deleted file mode 100644 index 4894926e0..000000000 --- a/CGMES_2.4.13_18DEC2013/DynamicsVersion.hpp +++ /dev/null @@ -1,50 +0,0 @@ -#ifndef DynamicsVersion_H -#define DynamicsVersion_H - -#include "BaseClass.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "String.hpp" - -namespace CIMPP { - - -class Date; - /* - Version details. - */ - class DynamicsVersion: public BaseClass - { - - public: - CIMPP::String baseUML; /* Base UML provided by CIM model manager. Default: '' */ - CIMPP::String baseURI; /* Profile URI used in the Model Exchange header and defined in IEC standards. It uniquely identifies the Profile and its version. It is given for information only and to identify the closest IEC profile to which this CGMES profile is based on. Default: '' */ - CIMPP::Date* date; /* Profile creation date Form is YYYY-MM-DD for example for January 5, 2009 it is 2009-01-05. Default: '' */ - CIMPP::String differenceModelURI; /* Difference model URI defined by IEC 61970-552. Default: '' */ - CIMPP::String entsoeUML; /* UML provided by ENTSO-E. Default: '' */ - CIMPP::String entsoeURI; /* Profile URI defined by ENTSO-E and used in the Model Exchange header. It uniquely identifies the Profile and its version. The last two elements in the URI (http://entsoe.eu/CIM/Dynamics/yy/zzz) indicate major and minor versions where: - yy - indicates a major version; - zzz - indicates a minor version. Default: '' */ - CIMPP::String modelDescriptionURI; /* Model Description URI defined by IEC 61970-552. Default: '' */ - CIMPP::String namespaceRDF; /* RDF namespace. Default: '' */ - CIMPP::String namespaceUML; /* CIM UML namespace. Default: '' */ - CIMPP::String shortName; /* The short name of the profile used in profile documentation. Default: '' */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - DynamicsVersion(); - virtual ~DynamicsVersion(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* DynamicsVersion_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/EarthFaultCompensator.cpp b/CGMES_2.4.13_18DEC2013/EarthFaultCompensator.cpp deleted file mode 100644 index becdc044c..000000000 --- a/CGMES_2.4.13_18DEC2013/EarthFaultCompensator.cpp +++ /dev/null @@ -1,56 +0,0 @@ -#include -#include "ConductingEquipment.hpp" -#include "EarthFaultCompensator.hpp" - -#include "Resistance.hpp" - -using namespace CIMPP; - -EarthFaultCompensator::EarthFaultCompensator() {}; - -EarthFaultCompensator::~EarthFaultCompensator() {}; - - - - -bool assign_EarthFaultCompensator_r(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EarthFaultCompensator* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->r; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* EarthFaultCompensator_factory() { - return new EarthFaultCompensator; - } -} - -void EarthFaultCompensator::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:EarthFaultCompensator"), &EarthFaultCompensator_factory)); -} - -void EarthFaultCompensator::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:EarthFaultCompensator.r"), &assign_EarthFaultCompensator_r)); -} - -void EarthFaultCompensator::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char EarthFaultCompensator::debugName[] = "EarthFaultCompensator"; -const char* EarthFaultCompensator::debugString() -{ - return EarthFaultCompensator::debugName; -} - -const BaseClassDefiner EarthFaultCompensator::declare() -{ - return BaseClassDefiner(EarthFaultCompensator::addConstructToMap, EarthFaultCompensator::addPrimitiveAssignFnsToMap, EarthFaultCompensator::addClassAssignFnsToMap, EarthFaultCompensator::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/EarthFaultCompensator.hpp b/CGMES_2.4.13_18DEC2013/EarthFaultCompensator.hpp deleted file mode 100644 index 84fa2a201..000000000 --- a/CGMES_2.4.13_18DEC2013/EarthFaultCompensator.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef EarthFaultCompensator_H -#define EarthFaultCompensator_H - -#include "ConductingEquipment.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Resistance.hpp" - -namespace CIMPP { - - - /* - A conducting equipment used to represent a connection to ground which is typically used to compensate earth faults.. An earth fault compensator device modeled with a single terminal implies a second terminal solidly connected to ground. If two terminals are modeled, the ground is not assumed and normal connection rules apply. - */ - class EarthFaultCompensator: public ConductingEquipment - { - - public: - CIMPP::Resistance r; /* Nominal resistance of device. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - EarthFaultCompensator(); - virtual ~EarthFaultCompensator(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* EarthFaultCompensator_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/EnergyArea.cpp b/CGMES_2.4.13_18DEC2013/EnergyArea.cpp deleted file mode 100644 index b9e2eeca6..000000000 --- a/CGMES_2.4.13_18DEC2013/EnergyArea.cpp +++ /dev/null @@ -1,53 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "EnergyArea.hpp" - -#include "ControlArea.hpp" - -using namespace CIMPP; - -EnergyArea::EnergyArea(): ControlArea(nullptr) {}; - -EnergyArea::~EnergyArea() {}; - - -bool assign_EnergyArea_ControlArea(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(EnergyArea* element = dynamic_cast(BaseClass_ptr1)) { - element->ControlArea = dynamic_cast(BaseClass_ptr2); - if(element->ControlArea != nullptr) - return true; - } - return false; -} - - - -namespace CIMPP { - BaseClass* EnergyArea_factory() { - return new EnergyArea; - } -} - -void EnergyArea::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:EnergyArea"), &EnergyArea_factory)); -} - -void EnergyArea::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void EnergyArea::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:EnergyArea.ControlArea"), &assign_EnergyArea_ControlArea)); -} - -const char EnergyArea::debugName[] = "EnergyArea"; -const char* EnergyArea::debugString() -{ - return EnergyArea::debugName; -} - -const BaseClassDefiner EnergyArea::declare() -{ - return BaseClassDefiner(EnergyArea::addConstructToMap, EnergyArea::addPrimitiveAssignFnsToMap, EnergyArea::addClassAssignFnsToMap, EnergyArea::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/EnergyArea.hpp b/CGMES_2.4.13_18DEC2013/EnergyArea.hpp deleted file mode 100644 index e38f73fbc..000000000 --- a/CGMES_2.4.13_18DEC2013/EnergyArea.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef EnergyArea_H -#define EnergyArea_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class ControlArea; - /* - The class describes an area having energy production or consumption. - */ - class EnergyArea: public IdentifiedObject - { - - public: - CIMPP::ControlArea* ControlArea; /* The control area specification that is used for the load forecast. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - EnergyArea(); - virtual ~EnergyArea(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* EnergyArea_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/EnergyConsumer.cpp b/CGMES_2.4.13_18DEC2013/EnergyConsumer.cpp deleted file mode 100644 index 661f4c25b..000000000 --- a/CGMES_2.4.13_18DEC2013/EnergyConsumer.cpp +++ /dev/null @@ -1,157 +0,0 @@ -#include -#include "ConductingEquipment.hpp" -#include "EnergyConsumer.hpp" - -#include "ActivePower.hpp" -#include "ReactivePower.hpp" -#include "ActivePower.hpp" -#include "PerCent.hpp" -#include "ReactivePower.hpp" -#include "PerCent.hpp" -#include "LoadResponseCharacteristic.hpp" -#include "LoadDynamics.hpp" - -using namespace CIMPP; - -EnergyConsumer::EnergyConsumer(): LoadResponse(nullptr), LoadDynamics(nullptr) {}; - -EnergyConsumer::~EnergyConsumer() {}; - - - - - - - - -bool assign_LoadResponseCharacteristic_EnergyConsumer(BaseClass*, BaseClass*); -bool assign_EnergyConsumer_LoadResponse(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(EnergyConsumer* element = dynamic_cast(BaseClass_ptr1)) { - element->LoadResponse = dynamic_cast(BaseClass_ptr2); - if(element->LoadResponse != nullptr) - return assign_LoadResponseCharacteristic_EnergyConsumer(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_LoadDynamics_EnergyConsumer(BaseClass*, BaseClass*); -bool assign_EnergyConsumer_LoadDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(EnergyConsumer* element = dynamic_cast(BaseClass_ptr1)) { - element->LoadDynamics = dynamic_cast(BaseClass_ptr2); - if(element->LoadDynamics != nullptr) - return assign_LoadDynamics_EnergyConsumer(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - -bool assign_EnergyConsumer_p(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EnergyConsumer* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->p; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_EnergyConsumer_q(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EnergyConsumer* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->q; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_EnergyConsumer_pfixed(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EnergyConsumer* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pfixed; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_EnergyConsumer_pfixedPct(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EnergyConsumer* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pfixedPct; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_EnergyConsumer_qfixed(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EnergyConsumer* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->qfixed; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_EnergyConsumer_qfixedPct(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EnergyConsumer* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->qfixedPct; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - - -namespace CIMPP { - BaseClass* EnergyConsumer_factory() { - return new EnergyConsumer; - } -} - -void EnergyConsumer::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:EnergyConsumer"), &EnergyConsumer_factory)); -} - -void EnergyConsumer::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:EnergyConsumer.p"), &assign_EnergyConsumer_p)); - assign_map.insert(std::make_pair(std::string("cim:EnergyConsumer.q"), &assign_EnergyConsumer_q)); - assign_map.insert(std::make_pair(std::string("cim:EnergyConsumer.pfixed"), &assign_EnergyConsumer_pfixed)); - assign_map.insert(std::make_pair(std::string("cim:EnergyConsumer.pfixedPct"), &assign_EnergyConsumer_pfixedPct)); - assign_map.insert(std::make_pair(std::string("cim:EnergyConsumer.qfixed"), &assign_EnergyConsumer_qfixed)); - assign_map.insert(std::make_pair(std::string("cim:EnergyConsumer.qfixedPct"), &assign_EnergyConsumer_qfixedPct)); - } - -void EnergyConsumer::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:EnergyConsumer.LoadResponse"), &assign_EnergyConsumer_LoadResponse)); - assign_map.insert(std::make_pair(std::string("cim:EnergyConsumer.LoadDynamics"), &assign_EnergyConsumer_LoadDynamics)); -} - -const char EnergyConsumer::debugName[] = "EnergyConsumer"; -const char* EnergyConsumer::debugString() -{ - return EnergyConsumer::debugName; -} - -const BaseClassDefiner EnergyConsumer::declare() -{ - return BaseClassDefiner(EnergyConsumer::addConstructToMap, EnergyConsumer::addPrimitiveAssignFnsToMap, EnergyConsumer::addClassAssignFnsToMap, EnergyConsumer::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/EnergyConsumer.hpp b/CGMES_2.4.13_18DEC2013/EnergyConsumer.hpp deleted file mode 100644 index 477d2b8e3..000000000 --- a/CGMES_2.4.13_18DEC2013/EnergyConsumer.hpp +++ /dev/null @@ -1,51 +0,0 @@ -#ifndef EnergyConsumer_H -#define EnergyConsumer_H - -#include "ConductingEquipment.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "ActivePower.hpp" -#include "ReactivePower.hpp" -#include "PerCent.hpp" - -namespace CIMPP { - - -class LoadResponseCharacteristic; -class LoadDynamics; - /* - Generic user of energy - a point of consumption on the power system model. - */ - class EnergyConsumer: public ConductingEquipment - { - - public: - CIMPP::ActivePower p; /* Active power of the load. Load sign convention is used, i.e. positive sign means flow out from a node. For voltage dependent loads the value is at rated voltage. Starting value for a steady state solution. Default: nullptr */ - CIMPP::ReactivePower q; /* Reactive power of the load. Load sign convention is used, i.e. positive sign means flow out from a node. For voltage dependent loads the value is at rated voltage. Starting value for a steady state solution. Default: nullptr */ - CIMPP::ActivePower pfixed; /* Active power of the load that is a fixed quantity. Load sign convention is used, i.e. positive sign means flow out from a node. Default: nullptr */ - CIMPP::PerCent pfixedPct; /* Fixed active power as per cent of load group fixed active power. Load sign convention is used, i.e. positive sign means flow out from a node. Default: nullptr */ - CIMPP::ReactivePower qfixed; /* Reactive power of the load that is a fixed quantity. Load sign convention is used, i.e. positive sign means flow out from a node. Default: nullptr */ - CIMPP::PerCent qfixedPct; /* Fixed reactive power as per cent of load group fixed reactive power. Load sign convention is used, i.e. positive sign means flow out from a node. Default: nullptr */ - CIMPP::LoadResponseCharacteristic* LoadResponse; /* The load response characteristic of this load. If missing, this load is assumed to be constant power. Default: 0 */ - CIMPP::LoadDynamics* LoadDynamics; /* Load dynamics model used to describe dynamic behavior of this energy consumer. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - EnergyConsumer(); - virtual ~EnergyConsumer(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* EnergyConsumer_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/EnergySchedulingType.cpp b/CGMES_2.4.13_18DEC2013/EnergySchedulingType.cpp deleted file mode 100644 index 0e4e4a649..000000000 --- a/CGMES_2.4.13_18DEC2013/EnergySchedulingType.cpp +++ /dev/null @@ -1,54 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "EnergySchedulingType.hpp" - -#include "EnergySource.hpp" - -using namespace CIMPP; - -EnergySchedulingType::EnergySchedulingType() {}; - -EnergySchedulingType::~EnergySchedulingType() {}; - - -bool assign_EnergySchedulingType_EnergySource(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(EnergySchedulingType* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->EnergySource.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - - -namespace CIMPP { - BaseClass* EnergySchedulingType_factory() { - return new EnergySchedulingType; - } -} - -void EnergySchedulingType::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:EnergySchedulingType"), &EnergySchedulingType_factory)); -} - -void EnergySchedulingType::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void EnergySchedulingType::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:EnergySchedulingType.EnergySource"), &assign_EnergySchedulingType_EnergySource)); -} - -const char EnergySchedulingType::debugName[] = "EnergySchedulingType"; -const char* EnergySchedulingType::debugString() -{ - return EnergySchedulingType::debugName; -} - -const BaseClassDefiner EnergySchedulingType::declare() -{ - return BaseClassDefiner(EnergySchedulingType::addConstructToMap, EnergySchedulingType::addPrimitiveAssignFnsToMap, EnergySchedulingType::addClassAssignFnsToMap, EnergySchedulingType::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/EnergySchedulingType.hpp b/CGMES_2.4.13_18DEC2013/EnergySchedulingType.hpp deleted file mode 100644 index 7ce7f9c1b..000000000 --- a/CGMES_2.4.13_18DEC2013/EnergySchedulingType.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef EnergySchedulingType_H -#define EnergySchedulingType_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class EnergySource; - /* - Used to define the type of generation for scheduling purposes. - */ - class EnergySchedulingType: public IdentifiedObject - { - - public: - std::list EnergySource; /* Energy Scheduling Type of an Energy Source Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - EnergySchedulingType(); - virtual ~EnergySchedulingType(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* EnergySchedulingType_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/EnergySource.cpp b/CGMES_2.4.13_18DEC2013/EnergySource.cpp deleted file mode 100644 index da4eb867e..000000000 --- a/CGMES_2.4.13_18DEC2013/EnergySource.cpp +++ /dev/null @@ -1,231 +0,0 @@ -#include -#include "ConductingEquipment.hpp" -#include "EnergySource.hpp" - -#include "ActivePower.hpp" -#include "ReactivePower.hpp" -#include "EnergySchedulingType.hpp" -#include "Voltage.hpp" -#include "Resistance.hpp" -#include "Resistance.hpp" -#include "Resistance.hpp" -#include "AngleRadians.hpp" -#include "Voltage.hpp" -#include "Reactance.hpp" -#include "Reactance.hpp" -#include "Reactance.hpp" -#include "WindTurbineType3or4Dynamics.hpp" - -using namespace CIMPP; - -EnergySource::EnergySource(): EnergySchedulingType(nullptr), WindTurbineType3or4Dynamics(nullptr) {}; - -EnergySource::~EnergySource() {}; - - - - -bool assign_EnergySchedulingType_EnergySource(BaseClass*, BaseClass*); -bool assign_EnergySource_EnergySchedulingType(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(EnergySource* element = dynamic_cast(BaseClass_ptr1)) { - element->EnergySchedulingType = dynamic_cast(BaseClass_ptr2); - if(element->EnergySchedulingType != nullptr) - return assign_EnergySchedulingType_EnergySource(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - - - - - - - - -bool assign_EnergySource_WindTurbineType3or4Dynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(EnergySource* element = dynamic_cast(BaseClass_ptr1)) { - element->WindTurbineType3or4Dynamics = dynamic_cast(BaseClass_ptr2); - if(element->WindTurbineType3or4Dynamics != nullptr) - return true; - } - return false; -} - - -bool assign_EnergySource_activePower(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EnergySource* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->activePower; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_EnergySource_reactivePower(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EnergySource* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->reactivePower; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -bool assign_EnergySource_nominalVoltage(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EnergySource* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->nominalVoltage; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_EnergySource_r(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EnergySource* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->r; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_EnergySource_r0(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EnergySource* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->r0; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_EnergySource_rn(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EnergySource* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->rn; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_EnergySource_voltageAngle(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EnergySource* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->voltageAngle; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_EnergySource_voltageMagnitude(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EnergySource* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->voltageMagnitude; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_EnergySource_x(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EnergySource* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->x; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_EnergySource_x0(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EnergySource* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->x0; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_EnergySource_xn(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EnergySource* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->xn; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -namespace CIMPP { - BaseClass* EnergySource_factory() { - return new EnergySource; - } -} - -void EnergySource::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:EnergySource"), &EnergySource_factory)); -} - -void EnergySource::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:EnergySource.activePower"), &assign_EnergySource_activePower)); - assign_map.insert(std::make_pair(std::string("cim:EnergySource.reactivePower"), &assign_EnergySource_reactivePower)); - assign_map.insert(std::make_pair(std::string("cim:EnergySource.nominalVoltage"), &assign_EnergySource_nominalVoltage)); - assign_map.insert(std::make_pair(std::string("cim:EnergySource.r"), &assign_EnergySource_r)); - assign_map.insert(std::make_pair(std::string("cim:EnergySource.r0"), &assign_EnergySource_r0)); - assign_map.insert(std::make_pair(std::string("cim:EnergySource.rn"), &assign_EnergySource_rn)); - assign_map.insert(std::make_pair(std::string("cim:EnergySource.voltageAngle"), &assign_EnergySource_voltageAngle)); - assign_map.insert(std::make_pair(std::string("cim:EnergySource.voltageMagnitude"), &assign_EnergySource_voltageMagnitude)); - assign_map.insert(std::make_pair(std::string("cim:EnergySource.x"), &assign_EnergySource_x)); - assign_map.insert(std::make_pair(std::string("cim:EnergySource.x0"), &assign_EnergySource_x0)); - assign_map.insert(std::make_pair(std::string("cim:EnergySource.xn"), &assign_EnergySource_xn)); - } - -void EnergySource::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:EnergySource.EnergySchedulingType"), &assign_EnergySource_EnergySchedulingType)); - assign_map.insert(std::make_pair(std::string("cim:EnergySource.WindTurbineType3or4Dynamics"), &assign_EnergySource_WindTurbineType3or4Dynamics)); -} - -const char EnergySource::debugName[] = "EnergySource"; -const char* EnergySource::debugString() -{ - return EnergySource::debugName; -} - -const BaseClassDefiner EnergySource::declare() -{ - return BaseClassDefiner(EnergySource::addConstructToMap, EnergySource::addPrimitiveAssignFnsToMap, EnergySource::addClassAssignFnsToMap, EnergySource::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/EnergySource.hpp b/CGMES_2.4.13_18DEC2013/EnergySource.hpp deleted file mode 100644 index cf6755b26..000000000 --- a/CGMES_2.4.13_18DEC2013/EnergySource.hpp +++ /dev/null @@ -1,59 +0,0 @@ -#ifndef EnergySource_H -#define EnergySource_H - -#include "ConductingEquipment.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "ActivePower.hpp" -#include "ReactivePower.hpp" -#include "Voltage.hpp" -#include "Resistance.hpp" -#include "AngleRadians.hpp" -#include "Reactance.hpp" - -namespace CIMPP { - - -class EnergySchedulingType; -class WindTurbineType3or4Dynamics; - /* - A generic equivalent for an energy supplier on a transmission or distribution voltage level. - */ - class EnergySource: public ConductingEquipment - { - - public: - CIMPP::ActivePower activePower; /* High voltage source active injection. Load sign convention is used, i.e. positive sign means flow out from a node. Starting value for steady state solutions. Default: nullptr */ - CIMPP::ReactivePower reactivePower; /* High voltage source reactive injection. Load sign convention is used, i.e. positive sign means flow out from a node. Starting value for steady state solutions. Default: nullptr */ - CIMPP::EnergySchedulingType* EnergySchedulingType; /* Energy Source of a particular Energy Scheduling Type Default: 0 */ - CIMPP::Voltage nominalVoltage; /* Phase-to-phase nominal voltage. Default: nullptr */ - CIMPP::Resistance r; /* Positive sequence Thevenin resistance. Default: nullptr */ - CIMPP::Resistance r0; /* Zero sequence Thevenin resistance. Default: nullptr */ - CIMPP::Resistance rn; /* Negative sequence Thevenin resistance. Default: nullptr */ - CIMPP::AngleRadians voltageAngle; /* Phase angle of a-phase open circuit. Default: nullptr */ - CIMPP::Voltage voltageMagnitude; /* Phase-to-phase open circuit voltage magnitude. Default: nullptr */ - CIMPP::Reactance x; /* Positive sequence Thevenin reactance. Default: nullptr */ - CIMPP::Reactance x0; /* Zero sequence Thevenin reactance. Default: nullptr */ - CIMPP::Reactance xn; /* Negative sequence Thevenin reactance. Default: nullptr */ - CIMPP::WindTurbineType3or4Dynamics* WindTurbineType3or4Dynamics; /* Wind generator Type 3 or 4 dynamics model associated with this energy source. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - EnergySource(); - virtual ~EnergySource(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* EnergySource_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/Equipment.cpp b/CGMES_2.4.13_18DEC2013/Equipment.cpp deleted file mode 100644 index bb5c62106..000000000 --- a/CGMES_2.4.13_18DEC2013/Equipment.cpp +++ /dev/null @@ -1,82 +0,0 @@ -#include -#include "PowerSystemResource.hpp" -#include "Equipment.hpp" - -#include "Boolean.hpp" -#include "EquipmentContainer.hpp" -#include "OperationalLimitSet.hpp" - -using namespace CIMPP; - -Equipment::Equipment(): EquipmentContainer(nullptr) {}; - -Equipment::~Equipment() {}; - - - -bool assign_EquipmentContainer_Equipments(BaseClass*, BaseClass*); -bool assign_Equipment_EquipmentContainer(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(Equipment* element = dynamic_cast(BaseClass_ptr1)) { - element->EquipmentContainer = dynamic_cast(BaseClass_ptr2); - if(element->EquipmentContainer != nullptr) - return assign_EquipmentContainer_Equipments(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_Equipment_OperationalLimitSet(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(Equipment* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->OperationalLimitSet.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - -bool assign_Equipment_aggregate(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Equipment* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->aggregate; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - - -namespace CIMPP { - BaseClass* Equipment_factory() { - return new Equipment; - } -} - -void Equipment::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:Equipment"), &Equipment_factory)); -} - -void Equipment::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:Equipment.aggregate"), &assign_Equipment_aggregate)); - } - -void Equipment::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:Equipment.EquipmentContainer"), &assign_Equipment_EquipmentContainer)); - assign_map.insert(std::make_pair(std::string("cim:Equipment.OperationalLimitSet"), &assign_Equipment_OperationalLimitSet)); -} - -const char Equipment::debugName[] = "Equipment"; -const char* Equipment::debugString() -{ - return Equipment::debugName; -} - -const BaseClassDefiner Equipment::declare() -{ - return BaseClassDefiner(Equipment::addConstructToMap, Equipment::addPrimitiveAssignFnsToMap, Equipment::addClassAssignFnsToMap, Equipment::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/Equipment.hpp b/CGMES_2.4.13_18DEC2013/Equipment.hpp deleted file mode 100644 index be97d9c9b..000000000 --- a/CGMES_2.4.13_18DEC2013/Equipment.hpp +++ /dev/null @@ -1,44 +0,0 @@ -#ifndef Equipment_H -#define Equipment_H - -#include "PowerSystemResource.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Boolean.hpp" - -namespace CIMPP { - - -class EquipmentContainer; -class OperationalLimitSet; - /* - The parts of a power system that are physical devices, electronic or mechanical. - */ - class Equipment: public PowerSystemResource - { - - public: - CIMPP::Boolean aggregate; /* The single instance of equipment represents multiple pieces of equipment that have been modeled together as an aggregate. Examples would be power transformers or synchronous machines operating in parallel modeled as a single aggregate power transformer or aggregate synchronous machine. This is not to be used to indicate equipment that is part of a group of interdependent equipment produced by a network production program. Default: false */ - CIMPP::EquipmentContainer* EquipmentContainer; /* Container of this equipment. Default: 0 */ - std::list OperationalLimitSet; /* The operational limit sets associated with this equipment. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - Equipment(); - virtual ~Equipment(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* Equipment_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/EquipmentBoundaryVersion.cpp b/CGMES_2.4.13_18DEC2013/EquipmentBoundaryVersion.cpp deleted file mode 100644 index c8d95b34e..000000000 --- a/CGMES_2.4.13_18DEC2013/EquipmentBoundaryVersion.cpp +++ /dev/null @@ -1,193 +0,0 @@ -#include -#include "BaseClass.hpp" -#include "EquipmentBoundaryVersion.hpp" - -#include "String.hpp" -#include "String.hpp" -#include "Date.hpp" -#include "String.hpp" -#include "String.hpp" -#include "String.hpp" -#include "String.hpp" -#include "String.hpp" -#include "String.hpp" -#include "String.hpp" -#include "String.hpp" - -using namespace CIMPP; - -EquipmentBoundaryVersion::EquipmentBoundaryVersion(): date(nullptr) {}; - -EquipmentBoundaryVersion::~EquipmentBoundaryVersion() {}; - - - - -bool assign_EquipmentBoundaryVersion_date(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(EquipmentBoundaryVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->date = dynamic_cast(BaseClass_ptr2); - if(element->date != nullptr) - return true; - } - return false; -} - - - - - - - - - - -bool assign_EquipmentBoundaryVersion_baseUML(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EquipmentBoundaryVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->baseUML = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_EquipmentBoundaryVersion_baseURI(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EquipmentBoundaryVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->baseURI = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - - -bool assign_EquipmentBoundaryVersion_differenceModelURI(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EquipmentBoundaryVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->differenceModelURI = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_EquipmentBoundaryVersion_entsoeUML(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EquipmentBoundaryVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->entsoeUML = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_EquipmentBoundaryVersion_entsoeURIcore(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EquipmentBoundaryVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->entsoeURIcore = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_EquipmentBoundaryVersion_entsoeURIoperation(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EquipmentBoundaryVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->entsoeURIoperation = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_EquipmentBoundaryVersion_modelDescriptionURI(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EquipmentBoundaryVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->modelDescriptionURI = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_EquipmentBoundaryVersion_namespaceRDF(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EquipmentBoundaryVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->namespaceRDF = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_EquipmentBoundaryVersion_namespaceUML(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EquipmentBoundaryVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->namespaceUML = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_EquipmentBoundaryVersion_shortName(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EquipmentBoundaryVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->shortName = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -namespace CIMPP { - BaseClass* EquipmentBoundaryVersion_factory() { - return new EquipmentBoundaryVersion; - } -} - -void EquipmentBoundaryVersion::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:EquipmentBoundaryVersion"), &EquipmentBoundaryVersion_factory)); -} - -void EquipmentBoundaryVersion::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:EquipmentBoundaryVersion.baseUML"), &assign_EquipmentBoundaryVersion_baseUML)); - assign_map.insert(std::make_pair(std::string("cim:EquipmentBoundaryVersion.baseURI"), &assign_EquipmentBoundaryVersion_baseURI)); - assign_map.insert(std::make_pair(std::string("cim:EquipmentBoundaryVersion.differenceModelURI"), &assign_EquipmentBoundaryVersion_differenceModelURI)); - assign_map.insert(std::make_pair(std::string("cim:EquipmentBoundaryVersion.entsoeUML"), &assign_EquipmentBoundaryVersion_entsoeUML)); - assign_map.insert(std::make_pair(std::string("cim:EquipmentBoundaryVersion.entsoeURIcore"), &assign_EquipmentBoundaryVersion_entsoeURIcore)); - assign_map.insert(std::make_pair(std::string("cim:EquipmentBoundaryVersion.entsoeURIoperation"), &assign_EquipmentBoundaryVersion_entsoeURIoperation)); - assign_map.insert(std::make_pair(std::string("cim:EquipmentBoundaryVersion.modelDescriptionURI"), &assign_EquipmentBoundaryVersion_modelDescriptionURI)); - assign_map.insert(std::make_pair(std::string("cim:EquipmentBoundaryVersion.namespaceRDF"), &assign_EquipmentBoundaryVersion_namespaceRDF)); - assign_map.insert(std::make_pair(std::string("cim:EquipmentBoundaryVersion.namespaceUML"), &assign_EquipmentBoundaryVersion_namespaceUML)); - assign_map.insert(std::make_pair(std::string("cim:EquipmentBoundaryVersion.shortName"), &assign_EquipmentBoundaryVersion_shortName)); -} - -void EquipmentBoundaryVersion::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:EquipmentBoundaryVersion.date"), &assign_EquipmentBoundaryVersion_date)); - } - -const char EquipmentBoundaryVersion::debugName[] = "EquipmentBoundaryVersion"; -const char* EquipmentBoundaryVersion::debugString() -{ - return EquipmentBoundaryVersion::debugName; -} - -const BaseClassDefiner EquipmentBoundaryVersion::declare() -{ - return BaseClassDefiner(EquipmentBoundaryVersion::addConstructToMap, EquipmentBoundaryVersion::addPrimitiveAssignFnsToMap, EquipmentBoundaryVersion::addClassAssignFnsToMap, EquipmentBoundaryVersion::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/EquipmentBoundaryVersion.hpp b/CGMES_2.4.13_18DEC2013/EquipmentBoundaryVersion.hpp deleted file mode 100644 index 9fada91bf..000000000 --- a/CGMES_2.4.13_18DEC2013/EquipmentBoundaryVersion.hpp +++ /dev/null @@ -1,51 +0,0 @@ -#ifndef EquipmentBoundaryVersion_H -#define EquipmentBoundaryVersion_H - -#include "BaseClass.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "String.hpp" - -namespace CIMPP { - - -class Date; - /* - Profile version details. - */ - class EquipmentBoundaryVersion: public BaseClass - { - - public: - CIMPP::String baseUML; /* Base UML provided by CIM model manager. Default: '' */ - CIMPP::String baseURI; /* Profile URI used in the Model Exchange header and defined in IEC standards. It uniquely identifies the Profile and its version. It is given for information only and to identify the closest IEC profile to which this CGMES profile is based on. Default: '' */ - CIMPP::Date* date; /* Profile creation date Form is YYYY-MM-DD for example for January 5, 2009 it is 2009-01-05. Default: '' */ - CIMPP::String differenceModelURI; /* Difference model URI defined by IEC 61970-552. Default: '' */ - CIMPP::String entsoeUML; /* UML provided by ENTSO-E. Default: '' */ - CIMPP::String entsoeURIcore; /* Profile URI defined by ENTSO-E and used in the Model Exchange header. It uniquely identifies the Profile and its version. The last two elements in the URI (http://entsoe.eu/CIM/EquipmentBoundary/yy/zzz) indicate major and minor versions where: - yy - indicates a major version; - zzz - indicates a minor version. Default: '' */ - CIMPP::String entsoeURIoperation; /* Profile URI defined by ENTSO-E and used in the Model Exchange header. It uniquely identifies the Profile and its version. The last two elements in the URI (http://entsoe.eu/CIM/EquipmentBoundaryOperation/yy/zzz) indicate major and minor versions where: - yy - indicates a major version; - zzz - indicates a minor version. Default: '' */ - CIMPP::String modelDescriptionURI; /* Model Description URI defined by IEC 61970-552. Default: '' */ - CIMPP::String namespaceRDF; /* RDF namespace. Default: '' */ - CIMPP::String namespaceUML; /* CIM UML namespace. Default: '' */ - CIMPP::String shortName; /* The short name of the profile used in profile documentation. Default: '' */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - EquipmentBoundaryVersion(); - virtual ~EquipmentBoundaryVersion(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* EquipmentBoundaryVersion_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/EquipmentContainer.cpp b/CGMES_2.4.13_18DEC2013/EquipmentContainer.cpp deleted file mode 100644 index 7b60e6a9f..000000000 --- a/CGMES_2.4.13_18DEC2013/EquipmentContainer.cpp +++ /dev/null @@ -1,54 +0,0 @@ -#include -#include "ConnectivityNodeContainer.hpp" -#include "EquipmentContainer.hpp" - -#include "Equipment.hpp" - -using namespace CIMPP; - -EquipmentContainer::EquipmentContainer() {}; - -EquipmentContainer::~EquipmentContainer() {}; - - -bool assign_EquipmentContainer_Equipments(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(EquipmentContainer* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->Equipments.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - - -namespace CIMPP { - BaseClass* EquipmentContainer_factory() { - return new EquipmentContainer; - } -} - -void EquipmentContainer::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:EquipmentContainer"), &EquipmentContainer_factory)); -} - -void EquipmentContainer::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void EquipmentContainer::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:EquipmentContainer.Equipments"), &assign_EquipmentContainer_Equipments)); -} - -const char EquipmentContainer::debugName[] = "EquipmentContainer"; -const char* EquipmentContainer::debugString() -{ - return EquipmentContainer::debugName; -} - -const BaseClassDefiner EquipmentContainer::declare() -{ - return BaseClassDefiner(EquipmentContainer::addConstructToMap, EquipmentContainer::addPrimitiveAssignFnsToMap, EquipmentContainer::addClassAssignFnsToMap, EquipmentContainer::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/EquipmentContainer.hpp b/CGMES_2.4.13_18DEC2013/EquipmentContainer.hpp deleted file mode 100644 index 5407d798f..000000000 --- a/CGMES_2.4.13_18DEC2013/EquipmentContainer.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef EquipmentContainer_H -#define EquipmentContainer_H - -#include "ConnectivityNodeContainer.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class Equipment; - /* - A modeling construct to provide a root class for containing equipment. - */ - class EquipmentContainer: public ConnectivityNodeContainer - { - - public: - std::list Equipments; /* Contained equipment. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - EquipmentContainer(); - virtual ~EquipmentContainer(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* EquipmentContainer_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/EquipmentVersion.cpp b/CGMES_2.4.13_18DEC2013/EquipmentVersion.cpp deleted file mode 100644 index 0c387fc5b..000000000 --- a/CGMES_2.4.13_18DEC2013/EquipmentVersion.cpp +++ /dev/null @@ -1,235 +0,0 @@ -#include -#include "BaseClass.hpp" -#include "EquipmentVersion.hpp" - -#include "String.hpp" -#include "String.hpp" -#include "String.hpp" -#include "String.hpp" -#include "Date.hpp" -#include "String.hpp" -#include "String.hpp" -#include "String.hpp" -#include "String.hpp" -#include "String.hpp" -#include "String.hpp" -#include "String.hpp" -#include "String.hpp" -#include "String.hpp" - -using namespace CIMPP; - -EquipmentVersion::EquipmentVersion(): date(nullptr) {}; - -EquipmentVersion::~EquipmentVersion() {}; - - - - - - -bool assign_EquipmentVersion_date(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(EquipmentVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->date = dynamic_cast(BaseClass_ptr2); - if(element->date != nullptr) - return true; - } - return false; -} - - - - - - - - - - - -bool assign_EquipmentVersion_baseUML(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EquipmentVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->baseUML = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_EquipmentVersion_baseURIcore(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EquipmentVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->baseURIcore = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_EquipmentVersion_baseURIoperation(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EquipmentVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->baseURIoperation = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_EquipmentVersion_baseURIshortCircuit(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EquipmentVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->baseURIshortCircuit = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - - -bool assign_EquipmentVersion_differenceModelURI(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EquipmentVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->differenceModelURI = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_EquipmentVersion_entsoeUML(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EquipmentVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->entsoeUML = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_EquipmentVersion_entsoeURIcore(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EquipmentVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->entsoeURIcore = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_EquipmentVersion_entsoeURIoperation(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EquipmentVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->entsoeURIoperation = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_EquipmentVersion_entsoeURIshortCircuit(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EquipmentVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->entsoeURIshortCircuit = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_EquipmentVersion_modelDescriptionURI(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EquipmentVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->modelDescriptionURI = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_EquipmentVersion_namespaceRDF(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EquipmentVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->namespaceRDF = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_EquipmentVersion_namespaceUML(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EquipmentVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->namespaceUML = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_EquipmentVersion_shortName(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EquipmentVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->shortName = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -namespace CIMPP { - BaseClass* EquipmentVersion_factory() { - return new EquipmentVersion; - } -} - -void EquipmentVersion::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:EquipmentVersion"), &EquipmentVersion_factory)); -} - -void EquipmentVersion::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:EquipmentVersion.baseUML"), &assign_EquipmentVersion_baseUML)); - assign_map.insert(std::make_pair(std::string("cim:EquipmentVersion.baseURIcore"), &assign_EquipmentVersion_baseURIcore)); - assign_map.insert(std::make_pair(std::string("cim:EquipmentVersion.baseURIoperation"), &assign_EquipmentVersion_baseURIoperation)); - assign_map.insert(std::make_pair(std::string("cim:EquipmentVersion.baseURIshortCircuit"), &assign_EquipmentVersion_baseURIshortCircuit)); - assign_map.insert(std::make_pair(std::string("cim:EquipmentVersion.differenceModelURI"), &assign_EquipmentVersion_differenceModelURI)); - assign_map.insert(std::make_pair(std::string("cim:EquipmentVersion.entsoeUML"), &assign_EquipmentVersion_entsoeUML)); - assign_map.insert(std::make_pair(std::string("cim:EquipmentVersion.entsoeURIcore"), &assign_EquipmentVersion_entsoeURIcore)); - assign_map.insert(std::make_pair(std::string("cim:EquipmentVersion.entsoeURIoperation"), &assign_EquipmentVersion_entsoeURIoperation)); - assign_map.insert(std::make_pair(std::string("cim:EquipmentVersion.entsoeURIshortCircuit"), &assign_EquipmentVersion_entsoeURIshortCircuit)); - assign_map.insert(std::make_pair(std::string("cim:EquipmentVersion.modelDescriptionURI"), &assign_EquipmentVersion_modelDescriptionURI)); - assign_map.insert(std::make_pair(std::string("cim:EquipmentVersion.namespaceRDF"), &assign_EquipmentVersion_namespaceRDF)); - assign_map.insert(std::make_pair(std::string("cim:EquipmentVersion.namespaceUML"), &assign_EquipmentVersion_namespaceUML)); - assign_map.insert(std::make_pair(std::string("cim:EquipmentVersion.shortName"), &assign_EquipmentVersion_shortName)); -} - -void EquipmentVersion::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:EquipmentVersion.date"), &assign_EquipmentVersion_date)); - } - -const char EquipmentVersion::debugName[] = "EquipmentVersion"; -const char* EquipmentVersion::debugString() -{ - return EquipmentVersion::debugName; -} - -const BaseClassDefiner EquipmentVersion::declare() -{ - return BaseClassDefiner(EquipmentVersion::addConstructToMap, EquipmentVersion::addPrimitiveAssignFnsToMap, EquipmentVersion::addClassAssignFnsToMap, EquipmentVersion::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/EquipmentVersion.hpp b/CGMES_2.4.13_18DEC2013/EquipmentVersion.hpp deleted file mode 100644 index 16fb8c119..000000000 --- a/CGMES_2.4.13_18DEC2013/EquipmentVersion.hpp +++ /dev/null @@ -1,54 +0,0 @@ -#ifndef EquipmentVersion_H -#define EquipmentVersion_H - -#include "BaseClass.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "String.hpp" - -namespace CIMPP { - - -class Date; - /* - Version details. - */ - class EquipmentVersion: public BaseClass - { - - public: - CIMPP::String baseUML; /* Base UML provided by CIM model manager. Default: '' */ - CIMPP::String baseURIcore; /* Profile URI used in the Model Exchange header and defined in IEC standards. It uniquely identifies the Profile and its version. It is given for information only and to identify the closest IEC profile to which this CGMES profile is based on. Default: '' */ - CIMPP::String baseURIoperation; /* Profile URI used in the Model Exchange header and defined in IEC standards. It uniquely identifies the Profile and its version. It is given for information only and to identify the closest IEC profile to which this CGMES profile is based on. Default: '' */ - CIMPP::String baseURIshortCircuit; /* Profile URI used in the Model Exchange header and defined in IEC standards. It uniquely identifies the Profile and its version. It is given for information only and to identify the closest IEC profile to which this CGMES profile is based on. Default: '' */ - CIMPP::Date* date; /* Profile creation date Form is YYYY-MM-DD for example for January 5, 2009 it is 2009-01-05. Default: '' */ - CIMPP::String differenceModelURI; /* Difference model URI defined by IEC 61970-552. Default: '' */ - CIMPP::String entsoeUML; /* UML provided by ENTSO-E. Default: '' */ - CIMPP::String entsoeURIcore; /* Profile URI defined by ENTSO-E and used in the Model Exchange header. It uniquely identifies the Profile and its version. The last two elements in the URI (http://entsoe.eu/CIM/EquipmentCore/yy/zzz) indicate major and minor versions where: - yy - indicates a major version; - zzz - indicates a minor version. Default: '' */ - CIMPP::String entsoeURIoperation; /* Profile URI defined by ENTSO-E and used in the Model Exchange header. It uniquely identifies the Profile and its version. The last two elements in the URI (http://entsoe.eu/CIM/EquipmentOperation/yy/zzz) indicate major and minor versions where: - yy - indicates a major version; - zzz - indicates a minor version. Default: '' */ - CIMPP::String entsoeURIshortCircuit; /* Profile URI defined by ENTSO-E and used in the Model Exchange header. It uniquely identifies the Profile and its version. The last two elements in the URI (http://entsoe.eu/CIM/EquipmentShortCircuit/yy/zzz) indicate major and minor versions where: - yy - indicates a major version; - zzz - indicates a minor version. Default: '' */ - CIMPP::String modelDescriptionURI; /* Model Description URI defined by IEC 61970-552. Default: '' */ - CIMPP::String namespaceRDF; /* RDF namespace. Default: '' */ - CIMPP::String namespaceUML; /* CIM UML namespace. Default: '' */ - CIMPP::String shortName; /* The short name of the profile used in profile documentation. Default: '' */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - EquipmentVersion(); - virtual ~EquipmentVersion(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* EquipmentVersion_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/EquivalentBranch.cpp b/CGMES_2.4.13_18DEC2013/EquivalentBranch.cpp deleted file mode 100644 index 2c8920f5f..000000000 --- a/CGMES_2.4.13_18DEC2013/EquivalentBranch.cpp +++ /dev/null @@ -1,281 +0,0 @@ -#include -#include "EquivalentEquipment.hpp" -#include "EquivalentBranch.hpp" - -#include "Resistance.hpp" -#include "Resistance.hpp" -#include "Reactance.hpp" -#include "Reactance.hpp" -#include "Resistance.hpp" -#include "Resistance.hpp" -#include "Reactance.hpp" -#include "Reactance.hpp" -#include "Resistance.hpp" -#include "Resistance.hpp" -#include "Reactance.hpp" -#include "Reactance.hpp" -#include "Resistance.hpp" -#include "Resistance.hpp" -#include "Reactance.hpp" -#include "Reactance.hpp" - -using namespace CIMPP; - -EquivalentBranch::EquivalentBranch() {}; - -EquivalentBranch::~EquivalentBranch() {}; - - - - - - - - - - - - - - - - - - - -bool assign_EquivalentBranch_negativeR12(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EquivalentBranch* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->negativeR12; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_EquivalentBranch_negativeR21(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EquivalentBranch* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->negativeR21; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_EquivalentBranch_negativeX12(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EquivalentBranch* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->negativeX12; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_EquivalentBranch_negativeX21(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EquivalentBranch* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->negativeX21; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_EquivalentBranch_positiveR12(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EquivalentBranch* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->positiveR12; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_EquivalentBranch_positiveR21(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EquivalentBranch* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->positiveR21; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_EquivalentBranch_positiveX12(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EquivalentBranch* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->positiveX12; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_EquivalentBranch_positiveX21(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EquivalentBranch* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->positiveX21; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_EquivalentBranch_r(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EquivalentBranch* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->r; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_EquivalentBranch_r21(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EquivalentBranch* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->r21; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_EquivalentBranch_x(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EquivalentBranch* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->x; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_EquivalentBranch_x21(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EquivalentBranch* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->x21; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_EquivalentBranch_zeroR12(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EquivalentBranch* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->zeroR12; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_EquivalentBranch_zeroR21(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EquivalentBranch* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->zeroR21; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_EquivalentBranch_zeroX12(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EquivalentBranch* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->zeroX12; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_EquivalentBranch_zeroX21(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EquivalentBranch* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->zeroX21; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* EquivalentBranch_factory() { - return new EquivalentBranch; - } -} - -void EquivalentBranch::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:EquivalentBranch"), &EquivalentBranch_factory)); -} - -void EquivalentBranch::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:EquivalentBranch.negativeR12"), &assign_EquivalentBranch_negativeR12)); - assign_map.insert(std::make_pair(std::string("cim:EquivalentBranch.negativeR21"), &assign_EquivalentBranch_negativeR21)); - assign_map.insert(std::make_pair(std::string("cim:EquivalentBranch.negativeX12"), &assign_EquivalentBranch_negativeX12)); - assign_map.insert(std::make_pair(std::string("cim:EquivalentBranch.negativeX21"), &assign_EquivalentBranch_negativeX21)); - assign_map.insert(std::make_pair(std::string("cim:EquivalentBranch.positiveR12"), &assign_EquivalentBranch_positiveR12)); - assign_map.insert(std::make_pair(std::string("cim:EquivalentBranch.positiveR21"), &assign_EquivalentBranch_positiveR21)); - assign_map.insert(std::make_pair(std::string("cim:EquivalentBranch.positiveX12"), &assign_EquivalentBranch_positiveX12)); - assign_map.insert(std::make_pair(std::string("cim:EquivalentBranch.positiveX21"), &assign_EquivalentBranch_positiveX21)); - assign_map.insert(std::make_pair(std::string("cim:EquivalentBranch.r"), &assign_EquivalentBranch_r)); - assign_map.insert(std::make_pair(std::string("cim:EquivalentBranch.r21"), &assign_EquivalentBranch_r21)); - assign_map.insert(std::make_pair(std::string("cim:EquivalentBranch.x"), &assign_EquivalentBranch_x)); - assign_map.insert(std::make_pair(std::string("cim:EquivalentBranch.x21"), &assign_EquivalentBranch_x21)); - assign_map.insert(std::make_pair(std::string("cim:EquivalentBranch.zeroR12"), &assign_EquivalentBranch_zeroR12)); - assign_map.insert(std::make_pair(std::string("cim:EquivalentBranch.zeroR21"), &assign_EquivalentBranch_zeroR21)); - assign_map.insert(std::make_pair(std::string("cim:EquivalentBranch.zeroX12"), &assign_EquivalentBranch_zeroX12)); - assign_map.insert(std::make_pair(std::string("cim:EquivalentBranch.zeroX21"), &assign_EquivalentBranch_zeroX21)); -} - -void EquivalentBranch::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char EquivalentBranch::debugName[] = "EquivalentBranch"; -const char* EquivalentBranch::debugString() -{ - return EquivalentBranch::debugName; -} - -const BaseClassDefiner EquivalentBranch::declare() -{ - return BaseClassDefiner(EquivalentBranch::addConstructToMap, EquivalentBranch::addPrimitiveAssignFnsToMap, EquivalentBranch::addClassAssignFnsToMap, EquivalentBranch::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/EquivalentBranch.hpp b/CGMES_2.4.13_18DEC2013/EquivalentBranch.hpp deleted file mode 100644 index bdc6c3e1a..000000000 --- a/CGMES_2.4.13_18DEC2013/EquivalentBranch.hpp +++ /dev/null @@ -1,56 +0,0 @@ -#ifndef EquivalentBranch_H -#define EquivalentBranch_H - -#include "EquivalentEquipment.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Resistance.hpp" -#include "Reactance.hpp" - -namespace CIMPP { - - - /* - The class represents equivalent branches. - */ - class EquivalentBranch: public EquivalentEquipment - { - - public: - CIMPP::Resistance negativeR12; /* Negative sequence series resistance from terminal sequence 1 to terminal sequence 2. Used for short circuit data exchange according to IEC 60909 EquivalentBranch is a result of network reduction prior to the data exchange Default: nullptr */ - CIMPP::Resistance negativeR21; /* Negative sequence series resistance from terminal sequence 2 to terminal sequence 1. Used for short circuit data exchange according to IEC 60909 EquivalentBranch is a result of network reduction prior to the data exchange Default: nullptr */ - CIMPP::Reactance negativeX12; /* Negative sequence series reactance from terminal sequence 1 to terminal sequence 2. Used for short circuit data exchange according to IEC 60909 Usage : EquivalentBranch is a result of network reduction prior to the data exchange Default: nullptr */ - CIMPP::Reactance negativeX21; /* Negative sequence series reactance from terminal sequence 2 to terminal sequence 1. Used for short circuit data exchange according to IEC 60909. Usage: EquivalentBranch is a result of network reduction prior to the data exchange Default: nullptr */ - CIMPP::Resistance positiveR12; /* Positive sequence series resistance from terminal sequence 1 to terminal sequence 2 . Used for short circuit data exchange according to IEC 60909. EquivalentBranch is a result of network reduction prior to the data exchange. Default: nullptr */ - CIMPP::Resistance positiveR21; /* Positive sequence series resistance from terminal sequence 2 to terminal sequence 1. Used for short circuit data exchange according to IEC 60909 EquivalentBranch is a result of network reduction prior to the data exchange Default: nullptr */ - CIMPP::Reactance positiveX12; /* Positive sequence series reactance from terminal sequence 1 to terminal sequence 2. Used for short circuit data exchange according to IEC 60909 Usage : EquivalentBranch is a result of network reduction prior to the data exchange Default: nullptr */ - CIMPP::Reactance positiveX21; /* Positive sequence series reactance from terminal sequence 2 to terminal sequence 1. Used for short circuit data exchange according to IEC 60909 Usage : EquivalentBranch is a result of network reduction prior to the data exchange Default: nullptr */ - CIMPP::Resistance r; /* Positive sequence series resistance of the reduced branch. Default: nullptr */ - CIMPP::Resistance r21; /* Resistance from terminal sequence 2 to terminal sequence 1 .Used for steady state power flow. This attribute is optional and represent unbalanced network such as off-nominal phase shifter. If only EquivalentBranch.r is given, then EquivalentBranch.r21 is assumed equal to EquivalentBranch.r. Usage rule : EquivalentBranch is a result of network reduction prior to the data exchange. Default: nullptr */ - CIMPP::Reactance x; /* Positive sequence series reactance of the reduced branch. Default: nullptr */ - CIMPP::Reactance x21; /* Reactance from terminal sequence 2 to terminal sequence 1 .Used for steady state power flow. This attribute is optional and represent unbalanced network such as off-nominal phase shifter. If only EquivalentBranch.x is given, then EquivalentBranch.x21 is assumed equal to EquivalentBranch.x. Usage rule : EquivalentBranch is a result of network reduction prior to the data exchange. Default: nullptr */ - CIMPP::Resistance zeroR12; /* Zero sequence series resistance from terminal sequence 1 to terminal sequence 2. Used for short circuit data exchange according to IEC 60909 EquivalentBranch is a result of network reduction prior to the data exchange Default: nullptr */ - CIMPP::Resistance zeroR21; /* Zero sequence series resistance from terminal sequence 2 to terminal sequence 1. Used for short circuit data exchange according to IEC 60909 Usage : EquivalentBranch is a result of network reduction prior to the data exchange Default: nullptr */ - CIMPP::Reactance zeroX12; /* Zero sequence series reactance from terminal sequence 1 to terminal sequence 2. Used for short circuit data exchange according to IEC 60909 Usage : EquivalentBranch is a result of network reduction prior to the data exchange Default: nullptr */ - CIMPP::Reactance zeroX21; /* Zero sequence series reactance from terminal sequence 2 to terminal sequence 1. Used for short circuit data exchange according to IEC 60909 Usage : EquivalentBranch is a result of network reduction prior to the data exchange Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - EquivalentBranch(); - virtual ~EquivalentBranch(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* EquivalentBranch_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/EquivalentEquipment.cpp b/CGMES_2.4.13_18DEC2013/EquivalentEquipment.cpp deleted file mode 100644 index bc2c92288..000000000 --- a/CGMES_2.4.13_18DEC2013/EquivalentEquipment.cpp +++ /dev/null @@ -1,54 +0,0 @@ -#include -#include "ConductingEquipment.hpp" -#include "EquivalentEquipment.hpp" - -#include "EquivalentNetwork.hpp" - -using namespace CIMPP; - -EquivalentEquipment::EquivalentEquipment(): EquivalentNetwork(nullptr) {}; - -EquivalentEquipment::~EquivalentEquipment() {}; - - -bool assign_EquivalentNetwork_EquivalentEquipments(BaseClass*, BaseClass*); -bool assign_EquivalentEquipment_EquivalentNetwork(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(EquivalentEquipment* element = dynamic_cast(BaseClass_ptr1)) { - element->EquivalentNetwork = dynamic_cast(BaseClass_ptr2); - if(element->EquivalentNetwork != nullptr) - return assign_EquivalentNetwork_EquivalentEquipments(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - -namespace CIMPP { - BaseClass* EquivalentEquipment_factory() { - return new EquivalentEquipment; - } -} - -void EquivalentEquipment::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:EquivalentEquipment"), &EquivalentEquipment_factory)); -} - -void EquivalentEquipment::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void EquivalentEquipment::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:EquivalentEquipment.EquivalentNetwork"), &assign_EquivalentEquipment_EquivalentNetwork)); -} - -const char EquivalentEquipment::debugName[] = "EquivalentEquipment"; -const char* EquivalentEquipment::debugString() -{ - return EquivalentEquipment::debugName; -} - -const BaseClassDefiner EquivalentEquipment::declare() -{ - return BaseClassDefiner(EquivalentEquipment::addConstructToMap, EquivalentEquipment::addPrimitiveAssignFnsToMap, EquivalentEquipment::addClassAssignFnsToMap, EquivalentEquipment::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/EquivalentEquipment.hpp b/CGMES_2.4.13_18DEC2013/EquivalentEquipment.hpp deleted file mode 100644 index 3fc6d9f94..000000000 --- a/CGMES_2.4.13_18DEC2013/EquivalentEquipment.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef EquivalentEquipment_H -#define EquivalentEquipment_H - -#include "ConductingEquipment.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class EquivalentNetwork; - /* - The class represents equivalent objects that are the result of a network reduction. The class is the base for equivalent objects of different types. - */ - class EquivalentEquipment: public ConductingEquipment - { - - public: - CIMPP::EquivalentNetwork* EquivalentNetwork; /* The associated reduced equivalents. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - EquivalentEquipment(); - virtual ~EquivalentEquipment(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* EquivalentEquipment_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/EquivalentInjection.cpp b/CGMES_2.4.13_18DEC2013/EquivalentInjection.cpp deleted file mode 100644 index d6411ea39..000000000 --- a/CGMES_2.4.13_18DEC2013/EquivalentInjection.cpp +++ /dev/null @@ -1,279 +0,0 @@ -#include -#include "EquivalentEquipment.hpp" -#include "EquivalentInjection.hpp" - -#include "Boolean.hpp" -#include "Voltage.hpp" -#include "ActivePower.hpp" -#include "ReactivePower.hpp" -#include "ReactiveCapabilityCurve.hpp" -#include "ActivePower.hpp" -#include "ReactivePower.hpp" -#include "ActivePower.hpp" -#include "ReactivePower.hpp" -#include "Resistance.hpp" -#include "Resistance.hpp" -#include "Resistance.hpp" -#include "Boolean.hpp" -#include "Reactance.hpp" -#include "Reactance.hpp" -#include "Reactance.hpp" - -using namespace CIMPP; - -EquivalentInjection::EquivalentInjection(): ReactiveCapabilityCurve(nullptr) {}; - -EquivalentInjection::~EquivalentInjection() {}; - - - - - - -bool assign_ReactiveCapabilityCurve_EquivalentInjection(BaseClass*, BaseClass*); -bool assign_EquivalentInjection_ReactiveCapabilityCurve(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(EquivalentInjection* element = dynamic_cast(BaseClass_ptr1)) { - element->ReactiveCapabilityCurve = dynamic_cast(BaseClass_ptr2); - if(element->ReactiveCapabilityCurve != nullptr) - return assign_ReactiveCapabilityCurve_EquivalentInjection(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - - - - - - - - - - - -bool assign_EquivalentInjection_regulationStatus(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EquivalentInjection* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->regulationStatus; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_EquivalentInjection_regulationTarget(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EquivalentInjection* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->regulationTarget; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_EquivalentInjection_p(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EquivalentInjection* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->p; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_EquivalentInjection_q(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EquivalentInjection* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->q; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -bool assign_EquivalentInjection_maxP(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EquivalentInjection* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->maxP; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_EquivalentInjection_maxQ(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EquivalentInjection* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->maxQ; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_EquivalentInjection_minP(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EquivalentInjection* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->minP; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_EquivalentInjection_minQ(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EquivalentInjection* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->minQ; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_EquivalentInjection_r(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EquivalentInjection* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->r; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_EquivalentInjection_r0(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EquivalentInjection* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->r0; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_EquivalentInjection_r2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EquivalentInjection* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->r2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_EquivalentInjection_regulationCapability(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EquivalentInjection* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->regulationCapability; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_EquivalentInjection_x(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EquivalentInjection* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->x; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_EquivalentInjection_x0(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EquivalentInjection* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->x0; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_EquivalentInjection_x2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EquivalentInjection* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->x2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* EquivalentInjection_factory() { - return new EquivalentInjection; - } -} - -void EquivalentInjection::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:EquivalentInjection"), &EquivalentInjection_factory)); -} - -void EquivalentInjection::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:EquivalentInjection.regulationStatus"), &assign_EquivalentInjection_regulationStatus)); - assign_map.insert(std::make_pair(std::string("cim:EquivalentInjection.regulationTarget"), &assign_EquivalentInjection_regulationTarget)); - assign_map.insert(std::make_pair(std::string("cim:EquivalentInjection.p"), &assign_EquivalentInjection_p)); - assign_map.insert(std::make_pair(std::string("cim:EquivalentInjection.q"), &assign_EquivalentInjection_q)); - assign_map.insert(std::make_pair(std::string("cim:EquivalentInjection.maxP"), &assign_EquivalentInjection_maxP)); - assign_map.insert(std::make_pair(std::string("cim:EquivalentInjection.maxQ"), &assign_EquivalentInjection_maxQ)); - assign_map.insert(std::make_pair(std::string("cim:EquivalentInjection.minP"), &assign_EquivalentInjection_minP)); - assign_map.insert(std::make_pair(std::string("cim:EquivalentInjection.minQ"), &assign_EquivalentInjection_minQ)); - assign_map.insert(std::make_pair(std::string("cim:EquivalentInjection.r"), &assign_EquivalentInjection_r)); - assign_map.insert(std::make_pair(std::string("cim:EquivalentInjection.r0"), &assign_EquivalentInjection_r0)); - assign_map.insert(std::make_pair(std::string("cim:EquivalentInjection.r2"), &assign_EquivalentInjection_r2)); - assign_map.insert(std::make_pair(std::string("cim:EquivalentInjection.regulationCapability"), &assign_EquivalentInjection_regulationCapability)); - assign_map.insert(std::make_pair(std::string("cim:EquivalentInjection.x"), &assign_EquivalentInjection_x)); - assign_map.insert(std::make_pair(std::string("cim:EquivalentInjection.x0"), &assign_EquivalentInjection_x0)); - assign_map.insert(std::make_pair(std::string("cim:EquivalentInjection.x2"), &assign_EquivalentInjection_x2)); -} - -void EquivalentInjection::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:EquivalentInjection.ReactiveCapabilityCurve"), &assign_EquivalentInjection_ReactiveCapabilityCurve)); - } - -const char EquivalentInjection::debugName[] = "EquivalentInjection"; -const char* EquivalentInjection::debugString() -{ - return EquivalentInjection::debugName; -} - -const BaseClassDefiner EquivalentInjection::declare() -{ - return BaseClassDefiner(EquivalentInjection::addConstructToMap, EquivalentInjection::addPrimitiveAssignFnsToMap, EquivalentInjection::addClassAssignFnsToMap, EquivalentInjection::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/EquivalentInjection.hpp b/CGMES_2.4.13_18DEC2013/EquivalentInjection.hpp deleted file mode 100644 index ebfc6bd95..000000000 --- a/CGMES_2.4.13_18DEC2013/EquivalentInjection.hpp +++ /dev/null @@ -1,61 +0,0 @@ -#ifndef EquivalentInjection_H -#define EquivalentInjection_H - -#include "EquivalentEquipment.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Boolean.hpp" -#include "Voltage.hpp" -#include "ActivePower.hpp" -#include "ReactivePower.hpp" -#include "Resistance.hpp" -#include "Reactance.hpp" - -namespace CIMPP { - - -class ReactiveCapabilityCurve; - /* - This class represents equivalent injections (generation or load). Voltage regulation is allowed only at the point of connection. - */ - class EquivalentInjection: public EquivalentEquipment - { - - public: - CIMPP::Boolean regulationStatus; /* Specifies the default regulation status of the EquivalentInjection. True is regulating. False is not regulating. Default: false */ - CIMPP::Voltage regulationTarget; /* The target voltage for voltage regulation. Default: nullptr */ - CIMPP::ActivePower p; /* Equivalent active power injection. Load sign convention is used, i.e. positive sign means flow out from a node. Starting value for steady state solutions. Default: nullptr */ - CIMPP::ReactivePower q; /* Equivalent reactive power injection. Load sign convention is used, i.e. positive sign means flow out from a node. Starting value for steady state solutions. Default: nullptr */ - CIMPP::ReactiveCapabilityCurve* ReactiveCapabilityCurve; /* The equivalent injection using this reactive capability curve. Default: 0 */ - CIMPP::ActivePower maxP; /* Maximum active power of the injection. Default: nullptr */ - CIMPP::ReactivePower maxQ; /* Used for modeling of infeed for load flow exchange. Not used for short circuit modeling. If maxQ and minQ are not used ReactiveCapabilityCurve can be used. Default: nullptr */ - CIMPP::ActivePower minP; /* Minimum active power of the injection. Default: nullptr */ - CIMPP::ReactivePower minQ; /* Used for modeling of infeed for load flow exchange. Not used for short circuit modeling. If maxQ and minQ are not used ReactiveCapabilityCurve can be used. Default: nullptr */ - CIMPP::Resistance r; /* Positive sequence resistance. Used to represent Extended-Ward (IEC 60909). Usage : Extended-Ward is a result of network reduction prior to the data exchange. Default: nullptr */ - CIMPP::Resistance r0; /* Zero sequence resistance. Used to represent Extended-Ward (IEC 60909). Usage : Extended-Ward is a result of network reduction prior to the data exchange. Default: nullptr */ - CIMPP::Resistance r2; /* Negative sequence resistance. Used to represent Extended-Ward (IEC 60909). Usage : Extended-Ward is a result of network reduction prior to the data exchange. Default: nullptr */ - CIMPP::Boolean regulationCapability; /* Specifies whether or not the EquivalentInjection has the capability to regulate the local voltage. Default: false */ - CIMPP::Reactance x; /* Positive sequence reactance. Used to represent Extended-Ward (IEC 60909). Usage : Extended-Ward is a result of network reduction prior to the data exchange. Default: nullptr */ - CIMPP::Reactance x0; /* Zero sequence reactance. Used to represent Extended-Ward (IEC 60909). Usage : Extended-Ward is a result of network reduction prior to the data exchange. Default: nullptr */ - CIMPP::Reactance x2; /* Negative sequence reactance. Used to represent Extended-Ward (IEC 60909). Usage : Extended-Ward is a result of network reduction prior to the data exchange. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - EquivalentInjection(); - virtual ~EquivalentInjection(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* EquivalentInjection_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/EquivalentNetwork.cpp b/CGMES_2.4.13_18DEC2013/EquivalentNetwork.cpp deleted file mode 100644 index 46d146976..000000000 --- a/CGMES_2.4.13_18DEC2013/EquivalentNetwork.cpp +++ /dev/null @@ -1,54 +0,0 @@ -#include -#include "ConnectivityNodeContainer.hpp" -#include "EquivalentNetwork.hpp" - -#include "EquivalentEquipment.hpp" - -using namespace CIMPP; - -EquivalentNetwork::EquivalentNetwork() {}; - -EquivalentNetwork::~EquivalentNetwork() {}; - - -bool assign_EquivalentNetwork_EquivalentEquipments(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(EquivalentNetwork* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->EquivalentEquipments.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - - -namespace CIMPP { - BaseClass* EquivalentNetwork_factory() { - return new EquivalentNetwork; - } -} - -void EquivalentNetwork::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:EquivalentNetwork"), &EquivalentNetwork_factory)); -} - -void EquivalentNetwork::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void EquivalentNetwork::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:EquivalentNetwork.EquivalentEquipments"), &assign_EquivalentNetwork_EquivalentEquipments)); -} - -const char EquivalentNetwork::debugName[] = "EquivalentNetwork"; -const char* EquivalentNetwork::debugString() -{ - return EquivalentNetwork::debugName; -} - -const BaseClassDefiner EquivalentNetwork::declare() -{ - return BaseClassDefiner(EquivalentNetwork::addConstructToMap, EquivalentNetwork::addPrimitiveAssignFnsToMap, EquivalentNetwork::addClassAssignFnsToMap, EquivalentNetwork::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/EquivalentNetwork.hpp b/CGMES_2.4.13_18DEC2013/EquivalentNetwork.hpp deleted file mode 100644 index febd34b67..000000000 --- a/CGMES_2.4.13_18DEC2013/EquivalentNetwork.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef EquivalentNetwork_H -#define EquivalentNetwork_H - -#include "ConnectivityNodeContainer.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class EquivalentEquipment; - /* - A class that represents an external meshed network that has been reduced to an electrically equivalent model. The ConnectivityNodes contained in the equivalent are intended to reflect internal nodes of the equivalent. The boundary Connectivity nodes where the equivalent connects outside itself are NOT contained by the equivalent. - */ - class EquivalentNetwork: public ConnectivityNodeContainer - { - - public: - std::list EquivalentEquipments; /* The equivalent where the reduced model belongs. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - EquivalentNetwork(); - virtual ~EquivalentNetwork(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* EquivalentNetwork_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/EquivalentShunt.cpp b/CGMES_2.4.13_18DEC2013/EquivalentShunt.cpp deleted file mode 100644 index 1a652d829..000000000 --- a/CGMES_2.4.13_18DEC2013/EquivalentShunt.cpp +++ /dev/null @@ -1,71 +0,0 @@ -#include -#include "EquivalentEquipment.hpp" -#include "EquivalentShunt.hpp" - -#include "Susceptance.hpp" -#include "Conductance.hpp" - -using namespace CIMPP; - -EquivalentShunt::EquivalentShunt() {}; - -EquivalentShunt::~EquivalentShunt() {}; - - - - - -bool assign_EquivalentShunt_b(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EquivalentShunt* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->b; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_EquivalentShunt_g(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(EquivalentShunt* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->g; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* EquivalentShunt_factory() { - return new EquivalentShunt; - } -} - -void EquivalentShunt::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:EquivalentShunt"), &EquivalentShunt_factory)); -} - -void EquivalentShunt::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:EquivalentShunt.b"), &assign_EquivalentShunt_b)); - assign_map.insert(std::make_pair(std::string("cim:EquivalentShunt.g"), &assign_EquivalentShunt_g)); -} - -void EquivalentShunt::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char EquivalentShunt::debugName[] = "EquivalentShunt"; -const char* EquivalentShunt::debugString() -{ - return EquivalentShunt::debugName; -} - -const BaseClassDefiner EquivalentShunt::declare() -{ - return BaseClassDefiner(EquivalentShunt::addConstructToMap, EquivalentShunt::addPrimitiveAssignFnsToMap, EquivalentShunt::addClassAssignFnsToMap, EquivalentShunt::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/EquivalentShunt.hpp b/CGMES_2.4.13_18DEC2013/EquivalentShunt.hpp deleted file mode 100644 index 80e5b7b6e..000000000 --- a/CGMES_2.4.13_18DEC2013/EquivalentShunt.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef EquivalentShunt_H -#define EquivalentShunt_H - -#include "EquivalentEquipment.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Susceptance.hpp" -#include "Conductance.hpp" - -namespace CIMPP { - - - /* - The class represents equivalent shunts. - */ - class EquivalentShunt: public EquivalentEquipment - { - - public: - CIMPP::Susceptance b; /* Positive sequence shunt susceptance. Default: nullptr */ - CIMPP::Conductance g; /* Positive sequence shunt conductance. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - EquivalentShunt(); - virtual ~EquivalentShunt(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* EquivalentShunt_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ExcAC1A.cpp b/CGMES_2.4.13_18DEC2013/ExcAC1A.cpp deleted file mode 100644 index d518305a3..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcAC1A.cpp +++ /dev/null @@ -1,371 +0,0 @@ -#include -#include "ExcitationSystemDynamics.hpp" -#include "ExcAC1A.hpp" - -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Boolean.hpp" - -using namespace CIMPP; - -ExcAC1A::ExcAC1A() {}; - -ExcAC1A::~ExcAC1A() {}; - - - - - - - - - - - - - - - - - - - - - - - - - -bool assign_ExcAC1A_tb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC1A_tc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC1A_ka(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ka; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC1A_ta(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ta; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC1A_vamax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vamax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC1A_vamin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vamin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC1A_te(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->te; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC1A_kf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC1A_kf1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kf1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC1A_kf2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kf2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC1A_ks(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ks; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC1A_tf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC1A_kc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC1A_kd(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kd; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC1A_ke(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ke; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC1A_ve1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ve1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC1A_seve1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->seve1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC1A_ve2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ve2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC1A_seve2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->seve2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC1A_vrmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC1A_vrmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC1A_hvlvgates(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->hvlvgates; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ExcAC1A_factory() { - return new ExcAC1A; - } -} - -void ExcAC1A::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ExcAC1A"), &ExcAC1A_factory)); -} - -void ExcAC1A::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ExcAC1A.tb"), &assign_ExcAC1A_tb)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC1A.tc"), &assign_ExcAC1A_tc)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC1A.ka"), &assign_ExcAC1A_ka)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC1A.ta"), &assign_ExcAC1A_ta)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC1A.vamax"), &assign_ExcAC1A_vamax)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC1A.vamin"), &assign_ExcAC1A_vamin)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC1A.te"), &assign_ExcAC1A_te)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC1A.kf"), &assign_ExcAC1A_kf)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC1A.kf1"), &assign_ExcAC1A_kf1)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC1A.kf2"), &assign_ExcAC1A_kf2)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC1A.ks"), &assign_ExcAC1A_ks)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC1A.tf"), &assign_ExcAC1A_tf)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC1A.kc"), &assign_ExcAC1A_kc)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC1A.kd"), &assign_ExcAC1A_kd)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC1A.ke"), &assign_ExcAC1A_ke)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC1A.ve1"), &assign_ExcAC1A_ve1)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC1A.seve1"), &assign_ExcAC1A_seve1)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC1A.ve2"), &assign_ExcAC1A_ve2)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC1A.seve2"), &assign_ExcAC1A_seve2)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC1A.vrmax"), &assign_ExcAC1A_vrmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC1A.vrmin"), &assign_ExcAC1A_vrmin)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC1A.hvlvgates"), &assign_ExcAC1A_hvlvgates)); -} - -void ExcAC1A::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char ExcAC1A::debugName[] = "ExcAC1A"; -const char* ExcAC1A::debugString() -{ - return ExcAC1A::debugName; -} - -const BaseClassDefiner ExcAC1A::declare() -{ - return BaseClassDefiner(ExcAC1A::addConstructToMap, ExcAC1A::addPrimitiveAssignFnsToMap, ExcAC1A::addClassAssignFnsToMap, ExcAC1A::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ExcAC1A.hpp b/CGMES_2.4.13_18DEC2013/ExcAC1A.hpp deleted file mode 100644 index 5ca0eb61f..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcAC1A.hpp +++ /dev/null @@ -1,64 +0,0 @@ -#ifndef ExcAC1A_H -#define ExcAC1A_H - -#include "ExcitationSystemDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Seconds.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "Boolean.hpp" - -namespace CIMPP { - - - /* - Modified IEEE AC1A alternator-supplied rectifier excitation system with different rate feedback source. - */ - class ExcAC1A: public ExcitationSystemDynamics - { - - public: - CIMPP::Seconds tb; /* Voltage regulator time constant (Tb). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tc; /* Voltage regulator time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::PU ka; /* Voltage regulator gain (Ka). Typical Value = 400. Default: nullptr */ - CIMPP::Seconds ta; /* Voltage regulator time constant (Ta). Typical Value = 0.02. Default: nullptr */ - CIMPP::PU vamax; /* Maximum voltage regulator output (V). Typical Value = 14.5. Default: nullptr */ - CIMPP::PU vamin; /* Minimum voltage regulator output (V). Typical Value = -14.5. Default: nullptr */ - CIMPP::Seconds te; /* Exciter time constant, integration rate associated with exciter control (Te). Typical Value = 0.8. Default: nullptr */ - CIMPP::PU kf; /* Excitation control system stabilizer gains (Kf). Typical Value = 0.03. Default: nullptr */ - CIMPP::PU kf1; /* Coefficient to allow different usage of the model (Kf1). Typical Value = 0. Default: nullptr */ - CIMPP::PU kf2; /* Coefficient to allow different usage of the model (Kf2). Typical Value = 1. Default: nullptr */ - CIMPP::PU ks; /* Coefficient to allow different usage of the model-speed coefficient (Ks). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tf; /* Excitation control system stabilizer time constant (Tf). Typical Value = 1. Default: nullptr */ - CIMPP::PU kc; /* Rectifier loading factor proportional to commutating reactance (Kc). Typical Value = 0.2. Default: nullptr */ - CIMPP::PU kd; /* Demagnetizing factor, a function of exciter alternator reactances (Kd). Typical Value = 0.38. Default: nullptr */ - CIMPP::PU ke; /* Exciter constant related to self-excited field (Ke). Typical Value = 1. Default: nullptr */ - CIMPP::PU ve1; /* Exciter alternator output voltages back of commutating reactance at which saturation is defined (Ve1). Typical Value = 4.18. Default: nullptr */ - CIMPP::Simple_Float seve1; /* Exciter saturation function value at the corresponding exciter voltage, Ve1, back of commutating reactance (Se[Ve1]). Typical Value = 0.1. Default: nullptr */ - CIMPP::PU ve2; /* Exciter alternator output voltages back of commutating reactance at which saturation is defined (Ve2). Typical Value = 3.14. Default: nullptr */ - CIMPP::Simple_Float seve2; /* Exciter saturation function value at the corresponding exciter voltage, Ve2, back of commutating reactance (Se[Ve2]). Typical Value = 0.03. Default: nullptr */ - CIMPP::PU vrmax; /* Maximum voltage regulator outputs (Vrmax). Typical Value = 6.03. Default: nullptr */ - CIMPP::PU vrmin; /* Minimum voltage regulator outputs (Rrmin). Typical Value = -5.43. Default: nullptr */ - CIMPP::Boolean hvlvgates; /* Indicates if both HV gate and LV gate are active (HVLVgates). true = gates are used false = gates are not used. Typical Value = true. Default: false */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ExcAC1A(); - virtual ~ExcAC1A(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ExcAC1A_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ExcAC2A.cpp b/CGMES_2.4.13_18DEC2013/ExcAC2A.cpp deleted file mode 100644 index daacc9483..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcAC2A.cpp +++ /dev/null @@ -1,461 +0,0 @@ -#include -#include "ExcitationSystemDynamics.hpp" -#include "ExcAC2A.hpp" - -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "Boolean.hpp" -#include "Boolean.hpp" - -using namespace CIMPP; - -ExcAC2A::ExcAC2A() {}; - -ExcAC2A::~ExcAC2A() {}; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -bool assign_ExcAC2A_tb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC2A_tc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC2A_ka(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ka; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC2A_ta(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ta; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC2A_vamax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vamax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC2A_vamin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vamin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC2A_kb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC2A_kb1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kb1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC2A_vrmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC2A_vrmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC2A_te(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->te; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC2A_vfemax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vfemax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC2A_kh(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kh; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC2A_kf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC2A_kl(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kl; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC2A_vlr(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vlr; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC2A_kl1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kl1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC2A_ks(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ks; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC2A_tf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC2A_kc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC2A_kd(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kd; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC2A_ke(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ke; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC2A_ve1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ve1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC2A_seve1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->seve1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC2A_ve2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ve2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC2A_seve2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->seve2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC2A_hvgate(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->hvgate; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC2A_lvgate(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->lvgate; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ExcAC2A_factory() { - return new ExcAC2A; - } -} - -void ExcAC2A::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ExcAC2A"), &ExcAC2A_factory)); -} - -void ExcAC2A::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ExcAC2A.tb"), &assign_ExcAC2A_tb)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC2A.tc"), &assign_ExcAC2A_tc)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC2A.ka"), &assign_ExcAC2A_ka)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC2A.ta"), &assign_ExcAC2A_ta)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC2A.vamax"), &assign_ExcAC2A_vamax)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC2A.vamin"), &assign_ExcAC2A_vamin)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC2A.kb"), &assign_ExcAC2A_kb)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC2A.kb1"), &assign_ExcAC2A_kb1)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC2A.vrmax"), &assign_ExcAC2A_vrmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC2A.vrmin"), &assign_ExcAC2A_vrmin)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC2A.te"), &assign_ExcAC2A_te)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC2A.vfemax"), &assign_ExcAC2A_vfemax)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC2A.kh"), &assign_ExcAC2A_kh)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC2A.kf"), &assign_ExcAC2A_kf)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC2A.kl"), &assign_ExcAC2A_kl)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC2A.vlr"), &assign_ExcAC2A_vlr)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC2A.kl1"), &assign_ExcAC2A_kl1)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC2A.ks"), &assign_ExcAC2A_ks)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC2A.tf"), &assign_ExcAC2A_tf)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC2A.kc"), &assign_ExcAC2A_kc)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC2A.kd"), &assign_ExcAC2A_kd)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC2A.ke"), &assign_ExcAC2A_ke)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC2A.ve1"), &assign_ExcAC2A_ve1)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC2A.seve1"), &assign_ExcAC2A_seve1)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC2A.ve2"), &assign_ExcAC2A_ve2)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC2A.seve2"), &assign_ExcAC2A_seve2)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC2A.hvgate"), &assign_ExcAC2A_hvgate)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC2A.lvgate"), &assign_ExcAC2A_lvgate)); -} - -void ExcAC2A::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char ExcAC2A::debugName[] = "ExcAC2A"; -const char* ExcAC2A::debugString() -{ - return ExcAC2A::debugName; -} - -const BaseClassDefiner ExcAC2A::declare() -{ - return BaseClassDefiner(ExcAC2A::addConstructToMap, ExcAC2A::addPrimitiveAssignFnsToMap, ExcAC2A::addClassAssignFnsToMap, ExcAC2A::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ExcAC2A.hpp b/CGMES_2.4.13_18DEC2013/ExcAC2A.hpp deleted file mode 100644 index 33453b599..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcAC2A.hpp +++ /dev/null @@ -1,70 +0,0 @@ -#ifndef ExcAC2A_H -#define ExcAC2A_H - -#include "ExcitationSystemDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Seconds.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "Boolean.hpp" - -namespace CIMPP { - - - /* - Modified IEEE AC2A alternator-supplied rectifier excitation system with different field current limit. - */ - class ExcAC2A: public ExcitationSystemDynamics - { - - public: - CIMPP::Seconds tb; /* Voltage regulator time constant (Tb). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tc; /* Voltage regulator time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::PU ka; /* Voltage regulator gain (Ka). Typical Value = 400. Default: nullptr */ - CIMPP::Seconds ta; /* Voltage regulator time constant (Ta). Typical Value = 0.02. Default: nullptr */ - CIMPP::PU vamax; /* Maximum voltage regulator output (V). Typical Value = 8. Default: nullptr */ - CIMPP::PU vamin; /* Minimum voltage regulator output (V). Typical Value = -8. Default: nullptr */ - CIMPP::PU kb; /* Second stage regulator gain (Kb) (>0). Exciter field current controller gain. Typical Value = 25. Default: nullptr */ - CIMPP::PU kb1; /* Second stage regulator gain (Kb1). It is exciter field current controller gain used as alternative to Kb to represent a variant of the ExcAC2A model. Typical Value = 25. Default: nullptr */ - CIMPP::PU vrmax; /* Maximum voltage regulator outputs (Vrmax). Typical Value = 105. Default: nullptr */ - CIMPP::PU vrmin; /* Minimum voltage regulator outputs (Vrmin). Typical Value = -95. Default: nullptr */ - CIMPP::Seconds te; /* Exciter time constant, integration rate associated with exciter control (Te). Typical Value = 0.6. Default: nullptr */ - CIMPP::PU vfemax; /* Exciter field current limit reference (Vfemax). Typical Value = 4.4. Default: nullptr */ - CIMPP::PU kh; /* Exciter field current feedback gain (Kh). Typical Value = 1. Default: nullptr */ - CIMPP::PU kf; /* Excitation control system stabilizer gains (Kf). Typical Value = 0.03. Default: nullptr */ - CIMPP::PU kl; /* Exciter field current limiter gain (Kl). Typical Value = 10. Default: nullptr */ - CIMPP::PU vlr; /* Maximum exciter field current (Vlr). Typical Value = 4.4. Default: nullptr */ - CIMPP::PU kl1; /* Coefficient to allow different usage of the model (Kl1). Typical Value = 1. Default: nullptr */ - CIMPP::PU ks; /* Coefficient to allow different usage of the model-speed coefficient (Ks). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tf; /* Excitation control system stabilizer time constant (Tf). Typical Value = 1. Default: nullptr */ - CIMPP::PU kc; /* Rectifier loading factor proportional to commutating reactance (Kc). Typical Value = 0.28. Default: nullptr */ - CIMPP::PU kd; /* Demagnetizing factor, a function of exciter alternator reactances (Kd). Typical Value = 0.35. Default: nullptr */ - CIMPP::PU ke; /* Exciter constant related to self-excited field (Ke). Typical Value = 1. Default: nullptr */ - CIMPP::PU ve1; /* Exciter alternator output voltages back of commutating reactance at which saturation is defined (Ve). Typical Value = 4.4. Default: nullptr */ - CIMPP::Simple_Float seve1; /* Exciter saturation function value at the corresponding exciter voltage, Ve, back of commutating reactance (Se[Ve]). Typical Value = 0.037. Default: nullptr */ - CIMPP::PU ve2; /* Exciter alternator output voltages back of commutating reactance at which saturation is defined (Ve). Typical Value = 3.3. Default: nullptr */ - CIMPP::Simple_Float seve2; /* Exciter saturation function value at the corresponding exciter voltage, Ve, back of commutating reactance (Se[Ve]). Typical Value = 0.012. Default: nullptr */ - CIMPP::Boolean hvgate; /* Indicates if HV gate is active (HVgate). true = gate is used false = gate is not used. Typical Value = true. Default: false */ - CIMPP::Boolean lvgate; /* Indicates if LV gate is active (LVgate). true = gate is used false = gate is not used. Typical Value = true. Default: false */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ExcAC2A(); - virtual ~ExcAC2A(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ExcAC2A_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ExcAC3A.cpp b/CGMES_2.4.13_18DEC2013/ExcAC3A.cpp deleted file mode 100644 index c9b9a205c..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcAC3A.cpp +++ /dev/null @@ -1,431 +0,0 @@ -#include -#include "ExcitationSystemDynamics.hpp" -#include "ExcAC3A.hpp" - -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -ExcAC3A::ExcAC3A() {}; - -ExcAC3A::~ExcAC3A() {}; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -bool assign_ExcAC3A_tb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC3A_tc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC3A_ka(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ka; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC3A_ta(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ta; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC3A_vamax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vamax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC3A_vamin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vamin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC3A_te(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->te; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC3A_vemin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vemin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC3A_kr(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kr; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC3A_kf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC3A_tf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC3A_kn(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kn; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC3A_efdn(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->efdn; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC3A_kc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC3A_kd(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kd; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC3A_ke(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ke; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC3A_klv(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->klv; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC3A_kf1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kf1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC3A_kf2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kf2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC3A_ks(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ks; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC3A_vfemax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vfemax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC3A_ve1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ve1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC3A_seve1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->seve1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC3A_ve2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ve2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC3A_seve2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->seve2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC3A_vlv(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vlv; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ExcAC3A_factory() { - return new ExcAC3A; - } -} - -void ExcAC3A::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ExcAC3A"), &ExcAC3A_factory)); -} - -void ExcAC3A::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ExcAC3A.tb"), &assign_ExcAC3A_tb)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC3A.tc"), &assign_ExcAC3A_tc)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC3A.ka"), &assign_ExcAC3A_ka)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC3A.ta"), &assign_ExcAC3A_ta)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC3A.vamax"), &assign_ExcAC3A_vamax)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC3A.vamin"), &assign_ExcAC3A_vamin)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC3A.te"), &assign_ExcAC3A_te)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC3A.vemin"), &assign_ExcAC3A_vemin)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC3A.kr"), &assign_ExcAC3A_kr)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC3A.kf"), &assign_ExcAC3A_kf)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC3A.tf"), &assign_ExcAC3A_tf)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC3A.kn"), &assign_ExcAC3A_kn)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC3A.efdn"), &assign_ExcAC3A_efdn)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC3A.kc"), &assign_ExcAC3A_kc)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC3A.kd"), &assign_ExcAC3A_kd)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC3A.ke"), &assign_ExcAC3A_ke)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC3A.klv"), &assign_ExcAC3A_klv)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC3A.kf1"), &assign_ExcAC3A_kf1)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC3A.kf2"), &assign_ExcAC3A_kf2)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC3A.ks"), &assign_ExcAC3A_ks)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC3A.vfemax"), &assign_ExcAC3A_vfemax)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC3A.ve1"), &assign_ExcAC3A_ve1)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC3A.seve1"), &assign_ExcAC3A_seve1)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC3A.ve2"), &assign_ExcAC3A_ve2)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC3A.seve2"), &assign_ExcAC3A_seve2)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC3A.vlv"), &assign_ExcAC3A_vlv)); -} - -void ExcAC3A::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char ExcAC3A::debugName[] = "ExcAC3A"; -const char* ExcAC3A::debugString() -{ - return ExcAC3A::debugName; -} - -const BaseClassDefiner ExcAC3A::declare() -{ - return BaseClassDefiner(ExcAC3A::addConstructToMap, ExcAC3A::addPrimitiveAssignFnsToMap, ExcAC3A::addClassAssignFnsToMap, ExcAC3A::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ExcAC3A.hpp b/CGMES_2.4.13_18DEC2013/ExcAC3A.hpp deleted file mode 100644 index 70e872bed..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcAC3A.hpp +++ /dev/null @@ -1,67 +0,0 @@ -#ifndef ExcAC3A_H -#define ExcAC3A_H - -#include "ExcitationSystemDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Seconds.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" - -namespace CIMPP { - - - /* - Modified IEEE AC3A alternator-supplied rectifier excitation system with different field current limit. - */ - class ExcAC3A: public ExcitationSystemDynamics - { - - public: - CIMPP::Seconds tb; /* Voltage regulator time constant (Tb). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tc; /* Voltage regulator time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds ka; /* Voltage regulator gain (Ka). Typical Value = 45.62. Default: nullptr */ - CIMPP::PU ta; /* Voltage regulator time constant (Ta). Typical Value = 0.013. Default: nullptr */ - CIMPP::PU vamax; /* Maximum voltage regulator output (V). Typical Value = 1. Default: nullptr */ - CIMPP::PU vamin; /* Minimum voltage regulator output (V). Typical Value = -0.95. Default: nullptr */ - CIMPP::Seconds te; /* Exciter time constant, integration rate associated with exciter control (Te). Typical Value = 1.17. Default: nullptr */ - CIMPP::PU vemin; /* Minimum exciter voltage output (Vemin). Typical Value = 0.1. Default: nullptr */ - CIMPP::PU kr; /* Constant associated with regulator and alternator field power supply (Kr). Typical Value =3.77. Default: nullptr */ - CIMPP::PU kf; /* Excitation control system stabilizer gains (Kf). Typical Value = 0.143. Default: nullptr */ - CIMPP::Seconds tf; /* Excitation control system stabilizer time constant (Tf). Typical Value = 1. Default: nullptr */ - CIMPP::PU kn; /* Excitation control system stabilizer gain (Kn). Typical Value =0.05. Default: nullptr */ - CIMPP::PU efdn; /* Value of at which feedback gain changes (Efdn). Typical Value = 2.36. Default: nullptr */ - CIMPP::PU kc; /* Rectifier loading factor proportional to commutating reactance (Kc). Typical Value = 0.104. Default: nullptr */ - CIMPP::PU kd; /* Demagnetizing factor, a function of exciter alternator reactances (Kd). Typical Value = 0.499. Default: nullptr */ - CIMPP::PU ke; /* Exciter constant related to self-excited field (Ke). Typical Value = 1. Default: nullptr */ - CIMPP::PU klv; /* Gain used in the minimum field voltage limiter loop (Klv). Typical Value = 0.194. Default: nullptr */ - CIMPP::PU kf1; /* Coefficient to allow different usage of the model (Kf1). Typical Value = 1. Default: nullptr */ - CIMPP::PU kf2; /* Coefficient to allow different usage of the model (Kf2). Typical Value = 0. Default: nullptr */ - CIMPP::PU ks; /* Coefficient to allow different usage of the model-speed coefficient (Ks). Typical Value = 0. Default: nullptr */ - CIMPP::PU vfemax; /* Exciter field current limit reference (Vfemax). Typical Value = 16. Default: nullptr */ - CIMPP::PU ve1; /* Exciter alternator output voltages back of commutating reactance at which saturation is defined (Ve1) equals Vemax (Ve1). Typical Value = 6.24. Default: nullptr */ - CIMPP::Simple_Float seve1; /* Exciter saturation function value at the corresponding exciter voltage, Ve, back of commutating reactance (Se[Ve]). Typical Value = 1.143. Default: nullptr */ - CIMPP::PU ve2; /* Exciter alternator output voltages back of commutating reactance at which saturation is defined (Ve). Typical Value = 4.68. Default: nullptr */ - CIMPP::Simple_Float seve2; /* Exciter saturation function value at the corresponding exciter voltage, Ve, back of commutating reactance (Se[Ve]). Typical Value = 0.1. Default: nullptr */ - CIMPP::PU vlv; /* Field voltage used in the minimum field voltage limiter loop (Vlv). Typical Value = 0.79. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ExcAC3A(); - virtual ~ExcAC3A(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ExcAC3A_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ExcAC4A.cpp b/CGMES_2.4.13_18DEC2013/ExcAC4A.cpp deleted file mode 100644 index cc5f6f7fd..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcAC4A.cpp +++ /dev/null @@ -1,176 +0,0 @@ -#include -#include "ExcitationSystemDynamics.hpp" -#include "ExcAC4A.hpp" - -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -ExcAC4A::ExcAC4A() {}; - -ExcAC4A::~ExcAC4A() {}; - - - - - - - - - - - - -bool assign_ExcAC4A_vimax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC4A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vimax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC4A_vimin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC4A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vimin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC4A_tc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC4A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC4A_tb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC4A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC4A_ka(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC4A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ka; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC4A_ta(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC4A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ta; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC4A_vrmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC4A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC4A_vrmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC4A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC4A_kc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC4A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ExcAC4A_factory() { - return new ExcAC4A; - } -} - -void ExcAC4A::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ExcAC4A"), &ExcAC4A_factory)); -} - -void ExcAC4A::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ExcAC4A.vimax"), &assign_ExcAC4A_vimax)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC4A.vimin"), &assign_ExcAC4A_vimin)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC4A.tc"), &assign_ExcAC4A_tc)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC4A.tb"), &assign_ExcAC4A_tb)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC4A.ka"), &assign_ExcAC4A_ka)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC4A.ta"), &assign_ExcAC4A_ta)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC4A.vrmax"), &assign_ExcAC4A_vrmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC4A.vrmin"), &assign_ExcAC4A_vrmin)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC4A.kc"), &assign_ExcAC4A_kc)); -} - -void ExcAC4A::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char ExcAC4A::debugName[] = "ExcAC4A"; -const char* ExcAC4A::debugString() -{ - return ExcAC4A::debugName; -} - -const BaseClassDefiner ExcAC4A::declare() -{ - return BaseClassDefiner(ExcAC4A::addConstructToMap, ExcAC4A::addPrimitiveAssignFnsToMap, ExcAC4A::addClassAssignFnsToMap, ExcAC4A::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ExcAC4A.hpp b/CGMES_2.4.13_18DEC2013/ExcAC4A.hpp deleted file mode 100644 index b436fb11a..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcAC4A.hpp +++ /dev/null @@ -1,49 +0,0 @@ -#ifndef ExcAC4A_H -#define ExcAC4A_H - -#include "ExcitationSystemDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "Seconds.hpp" - -namespace CIMPP { - - - /* - Modified IEEE AC4A alternator-supplied rectifier excitation system with different minimum controller output. - */ - class ExcAC4A: public ExcitationSystemDynamics - { - - public: - CIMPP::PU vimax; /* Maximum voltage regulator input limit (Vimax). Typical Value = 10. Default: nullptr */ - CIMPP::PU vimin; /* Minimum voltage regulator input limit (Vimin). Typical Value = -10. Default: nullptr */ - CIMPP::Seconds tc; /* Voltage regulator time constant (Tc). Typical Value = 1. Default: nullptr */ - CIMPP::Seconds tb; /* Voltage regulator time constant (Tb). Typical Value = 10. Default: nullptr */ - CIMPP::PU ka; /* Voltage regulator gain (Ka). Typical Value = 200. Default: nullptr */ - CIMPP::Seconds ta; /* Voltage regulator time constant (Ta). Typical Value = 0.015. Default: nullptr */ - CIMPP::PU vrmax; /* Maximum voltage regulator output (Vrmax). Typical Value = 5.64. Default: nullptr */ - CIMPP::PU vrmin; /* Minimum voltage regulator output (Vrmin). Typical Value = -4.53. Default: nullptr */ - CIMPP::PU kc; /* Rectifier loading factor proportional to commutating reactance (Kc). Typical Value = 0. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ExcAC4A(); - virtual ~ExcAC4A(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ExcAC4A_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ExcAC5A.cpp b/CGMES_2.4.13_18DEC2013/ExcAC5A.cpp deleted file mode 100644 index 22eef41fd..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcAC5A.cpp +++ /dev/null @@ -1,311 +0,0 @@ -#include -#include "ExcitationSystemDynamics.hpp" -#include "ExcAC5A.hpp" - -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" - -using namespace CIMPP; - -ExcAC5A::ExcAC5A() {}; - -ExcAC5A::~ExcAC5A() {}; - - - - - - - - - - - - - - - - - - - - - -bool assign_ExcAC5A_ka(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC5A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ka; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC5A_ks(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC5A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ks; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC5A_tb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC5A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC5A_tc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC5A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC5A_ta(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC5A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ta; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC5A_vrmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC5A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC5A_vrmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC5A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC5A_ke(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC5A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ke; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC5A_te(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC5A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->te; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC5A_kf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC5A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC5A_tf1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC5A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tf1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC5A_tf2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC5A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tf2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC5A_tf3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC5A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tf3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC5A_efd1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC5A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->efd1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC5A_seefd1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC5A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->seefd1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC5A_efd2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC5A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->efd2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC5A_seefd2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC5A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->seefd2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC5A_a(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC5A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->a; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ExcAC5A_factory() { - return new ExcAC5A; - } -} - -void ExcAC5A::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ExcAC5A"), &ExcAC5A_factory)); -} - -void ExcAC5A::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ExcAC5A.ka"), &assign_ExcAC5A_ka)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC5A.ks"), &assign_ExcAC5A_ks)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC5A.tb"), &assign_ExcAC5A_tb)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC5A.tc"), &assign_ExcAC5A_tc)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC5A.ta"), &assign_ExcAC5A_ta)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC5A.vrmax"), &assign_ExcAC5A_vrmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC5A.vrmin"), &assign_ExcAC5A_vrmin)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC5A.ke"), &assign_ExcAC5A_ke)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC5A.te"), &assign_ExcAC5A_te)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC5A.kf"), &assign_ExcAC5A_kf)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC5A.tf1"), &assign_ExcAC5A_tf1)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC5A.tf2"), &assign_ExcAC5A_tf2)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC5A.tf3"), &assign_ExcAC5A_tf3)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC5A.efd1"), &assign_ExcAC5A_efd1)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC5A.seefd1"), &assign_ExcAC5A_seefd1)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC5A.efd2"), &assign_ExcAC5A_efd2)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC5A.seefd2"), &assign_ExcAC5A_seefd2)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC5A.a"), &assign_ExcAC5A_a)); -} - -void ExcAC5A::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char ExcAC5A::debugName[] = "ExcAC5A"; -const char* ExcAC5A::debugString() -{ - return ExcAC5A::debugName; -} - -const BaseClassDefiner ExcAC5A::declare() -{ - return BaseClassDefiner(ExcAC5A::addConstructToMap, ExcAC5A::addPrimitiveAssignFnsToMap, ExcAC5A::addClassAssignFnsToMap, ExcAC5A::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ExcAC5A.hpp b/CGMES_2.4.13_18DEC2013/ExcAC5A.hpp deleted file mode 100644 index 621c3067b..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcAC5A.hpp +++ /dev/null @@ -1,59 +0,0 @@ -#ifndef ExcAC5A_H -#define ExcAC5A_H - -#include "ExcitationSystemDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "Seconds.hpp" -#include "Simple_Float.hpp" - -namespace CIMPP { - - - /* - Modified IEEE AC5A alternator-supplied rectifier excitation system with different minimum controller output. - */ - class ExcAC5A: public ExcitationSystemDynamics - { - - public: - CIMPP::PU ka; /* Voltage regulator gain (Ka). Typical Value = 400. Default: nullptr */ - CIMPP::PU ks; /* Coefficient to allow different usage of the model-speed coefficient (Ks). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tb; /* Voltage regulator time constant (Tb). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tc; /* Voltage regulator time constant (Tc). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds ta; /* Voltage regulator time constant (Ta). Typical Value = 0.02. Default: nullptr */ - CIMPP::PU vrmax; /* Maximum voltage regulator output (Vrmax). Typical Value = 7.3. Default: nullptr */ - CIMPP::PU vrmin; /* Minimum voltage regulator output (Vrmin). Typical Value =-7.3. Default: nullptr */ - CIMPP::PU ke; /* Exciter constant related to self-excited field (Ke). Typical Value = 1. Default: nullptr */ - CIMPP::Seconds te; /* Exciter time constant, integration rate associated with exciter control (Te). Typical Value = 0.8. Default: nullptr */ - CIMPP::PU kf; /* Excitation control system stabilizer gains (Kf). Typical Value = 0.03. Default: nullptr */ - CIMPP::Seconds tf1; /* Excitation control system stabilizer time constant (Tf1). Typical Value = 1. Default: nullptr */ - CIMPP::Seconds tf2; /* Excitation control system stabilizer time constant (Tf2). Typical Value = 0.8. Default: nullptr */ - CIMPP::Seconds tf3; /* Excitation control system stabilizer time constant (Tf3). Typical Value = 0. Default: nullptr */ - CIMPP::PU efd1; /* Exciter voltage at which exciter saturation is defined (Efd1). Typical Value = 5.6. Default: nullptr */ - CIMPP::Simple_Float seefd1; /* Exciter saturation function value at the corresponding exciter voltage, Efd1 (S[Efd1]). Typical Value = 0.86. Default: nullptr */ - CIMPP::PU efd2; /* Exciter voltage at which exciter saturation is defined (Efd2). Typical Value = 4.2. Default: nullptr */ - CIMPP::Simple_Float seefd2; /* Exciter saturation function value at the corresponding exciter voltage, Efd2 (S[Efd2]). Typical Value = 0.5. Default: nullptr */ - CIMPP::Simple_Float a; /* Coefficient to allow different usage of the model (a). Typical Value = 1. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ExcAC5A(); - virtual ~ExcAC5A(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ExcAC5A_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ExcAC6A.cpp b/CGMES_2.4.13_18DEC2013/ExcAC6A.cpp deleted file mode 100644 index c8afc58ab..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcAC6A.cpp +++ /dev/null @@ -1,386 +0,0 @@ -#include -#include "ExcitationSystemDynamics.hpp" -#include "ExcAC6A.hpp" - -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" - -using namespace CIMPP; - -ExcAC6A::ExcAC6A() {}; - -ExcAC6A::~ExcAC6A() {}; - - - - - - - - - - - - - - - - - - - - - - - - - - -bool assign_ExcAC6A_ka(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC6A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ka; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC6A_ks(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC6A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ks; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC6A_ta(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC6A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ta; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC6A_tk(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC6A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tk; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC6A_tb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC6A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC6A_tc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC6A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC6A_vamax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC6A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vamax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC6A_vamin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC6A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vamin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC6A_vrmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC6A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC6A_vrmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC6A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC6A_te(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC6A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->te; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC6A_kh(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC6A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kh; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC6A_tj(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC6A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tj; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC6A_th(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC6A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->th; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC6A_vfelim(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC6A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vfelim; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC6A_vhmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC6A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vhmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC6A_kc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC6A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC6A_kd(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC6A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kd; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC6A_ke(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC6A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ke; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC6A_ve1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC6A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ve1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC6A_seve1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC6A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->seve1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC6A_ve2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC6A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ve2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC6A_seve2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC6A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->seve2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ExcAC6A_factory() { - return new ExcAC6A; - } -} - -void ExcAC6A::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ExcAC6A"), &ExcAC6A_factory)); -} - -void ExcAC6A::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ExcAC6A.ka"), &assign_ExcAC6A_ka)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC6A.ks"), &assign_ExcAC6A_ks)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC6A.ta"), &assign_ExcAC6A_ta)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC6A.tk"), &assign_ExcAC6A_tk)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC6A.tb"), &assign_ExcAC6A_tb)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC6A.tc"), &assign_ExcAC6A_tc)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC6A.vamax"), &assign_ExcAC6A_vamax)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC6A.vamin"), &assign_ExcAC6A_vamin)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC6A.vrmax"), &assign_ExcAC6A_vrmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC6A.vrmin"), &assign_ExcAC6A_vrmin)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC6A.te"), &assign_ExcAC6A_te)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC6A.kh"), &assign_ExcAC6A_kh)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC6A.tj"), &assign_ExcAC6A_tj)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC6A.th"), &assign_ExcAC6A_th)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC6A.vfelim"), &assign_ExcAC6A_vfelim)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC6A.vhmax"), &assign_ExcAC6A_vhmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC6A.kc"), &assign_ExcAC6A_kc)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC6A.kd"), &assign_ExcAC6A_kd)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC6A.ke"), &assign_ExcAC6A_ke)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC6A.ve1"), &assign_ExcAC6A_ve1)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC6A.seve1"), &assign_ExcAC6A_seve1)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC6A.ve2"), &assign_ExcAC6A_ve2)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC6A.seve2"), &assign_ExcAC6A_seve2)); -} - -void ExcAC6A::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char ExcAC6A::debugName[] = "ExcAC6A"; -const char* ExcAC6A::debugString() -{ - return ExcAC6A::debugName; -} - -const BaseClassDefiner ExcAC6A::declare() -{ - return BaseClassDefiner(ExcAC6A::addConstructToMap, ExcAC6A::addPrimitiveAssignFnsToMap, ExcAC6A::addClassAssignFnsToMap, ExcAC6A::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ExcAC6A.hpp b/CGMES_2.4.13_18DEC2013/ExcAC6A.hpp deleted file mode 100644 index e2b21d058..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcAC6A.hpp +++ /dev/null @@ -1,64 +0,0 @@ -#ifndef ExcAC6A_H -#define ExcAC6A_H - -#include "ExcitationSystemDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "Seconds.hpp" -#include "Simple_Float.hpp" - -namespace CIMPP { - - - /* - Modified IEEE AC6A alternator-supplied rectifier excitation system with speed input. - */ - class ExcAC6A: public ExcitationSystemDynamics - { - - public: - CIMPP::PU ka; /* Voltage regulator gain (Ka). Typical Value = 536. Default: nullptr */ - CIMPP::PU ks; /* Coefficient to allow different usage of the model-speed coefficient (Ks). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds ta; /* Voltage regulator time constant (Ta). Typical Value = 0.086. Default: nullptr */ - CIMPP::Seconds tk; /* Voltage regulator time constant (Tk). Typical Value = 0.18. Default: nullptr */ - CIMPP::Seconds tb; /* Voltage regulator time constant (Tb). Typical Value = 9. Default: nullptr */ - CIMPP::Seconds tc; /* Voltage regulator time constant (Tc). Typical Value = 3. Default: nullptr */ - CIMPP::PU vamax; /* Maximum voltage regulator output (Vamax). Typical Value = 75. Default: nullptr */ - CIMPP::PU vamin; /* Minimum voltage regulator output (Vamin). Typical Value = -75. Default: nullptr */ - CIMPP::PU vrmax; /* Maximum voltage regulator output (Vrmax). Typical Value = 44. Default: nullptr */ - CIMPP::PU vrmin; /* Minimum voltage regulator output (Vrmin). Typical Value = -36. Default: nullptr */ - CIMPP::Seconds te; /* Exciter time constant, integration rate associated with exciter control (Te). Typical Value = 1. Default: nullptr */ - CIMPP::PU kh; /* Exciter field current limiter gain (Kh). Typical Value = 92. Default: nullptr */ - CIMPP::Seconds tj; /* Exciter field current limiter time constant (Tj). Typical Value = 0.02. Default: nullptr */ - CIMPP::Seconds th; /* Exciter field current limiter time constant (Th). Typical Value = 0.08. Default: nullptr */ - CIMPP::PU vfelim; /* Exciter field current limit reference (Vfelim). Typical Value = 19. Default: nullptr */ - CIMPP::PU vhmax; /* Maximum field current limiter signal reference (Vhmax). Typical Value = 75. Default: nullptr */ - CIMPP::PU kc; /* Rectifier loading factor proportional to commutating reactance (Kc). Typical Value = 0.173. Default: nullptr */ - CIMPP::PU kd; /* Demagnetizing factor, a function of exciter alternator reactances (Kd). Typical Value = 1.91. Default: nullptr */ - CIMPP::PU ke; /* Exciter constant related to self-excited field (Ke). Typical Value = 1.6. Default: nullptr */ - CIMPP::PU ve1; /* Exciter alternator output voltages back of commutating reactance at which saturation is defined (Ve). Typical Value = 7.4. Default: nullptr */ - CIMPP::Simple_Float seve1; /* Exciter saturation function value at the corresponding exciter voltage, Ve1, back of commutating reactance (Se[Ve1]). Typical Value = 0.214. Default: nullptr */ - CIMPP::PU ve2; /* Exciter alternator output voltages back of commutating reactance at which saturation is defined (Ve2). Typical Value = 5.55. Default: nullptr */ - CIMPP::Simple_Float seve2; /* Exciter saturation function value at the corresponding exciter voltage, Ve2, back of commutating reactance (Se[Ve2]). Typical Value = 0.044. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ExcAC6A(); - virtual ~ExcAC6A(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ExcAC6A_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ExcAC8B.cpp b/CGMES_2.4.13_18DEC2013/ExcAC8B.cpp deleted file mode 100644 index e8a341ba7..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcAC8B.cpp +++ /dev/null @@ -1,446 +0,0 @@ -#include -#include "ExcitationSystemDynamics.hpp" -#include "ExcAC8B.hpp" - -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "Boolean.hpp" -#include "Boolean.hpp" -#include "Boolean.hpp" -#include "Boolean.hpp" - -using namespace CIMPP; - -ExcAC8B::ExcAC8B() {}; - -ExcAC8B::~ExcAC8B() {}; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -bool assign_ExcAC8B_kpr(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC8B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kpr; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC8B_kir(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC8B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kir; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC8B_kdr(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC8B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kdr; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC8B_ks(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC8B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ks; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC8B_tdr(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC8B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tdr; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC8B_vrmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC8B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC8B_vrmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC8B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC8B_vimax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC8B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vimax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC8B_vimin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC8B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vimin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC8B_vpidmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC8B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vpidmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC8B_vpidmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC8B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vpidmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC8B_ka(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC8B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ka; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC8B_ta(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC8B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ta; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC8B_te(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC8B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->te; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC8B_vfemax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC8B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vfemax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC8B_vemin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC8B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vemin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC8B_ke(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC8B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ke; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC8B_kc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC8B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC8B_kd(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC8B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kd; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC8B_ve1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC8B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ve1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC8B_seve1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC8B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->seve1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC8B_ve2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC8B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ve2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC8B_seve2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC8B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->seve2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC8B_vtmult(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC8B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vtmult; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC8B_inlim(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC8B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->inlim; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC8B_pidlim(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC8B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pidlim; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAC8B_telim(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAC8B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->telim; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ExcAC8B_factory() { - return new ExcAC8B; - } -} - -void ExcAC8B::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ExcAC8B"), &ExcAC8B_factory)); -} - -void ExcAC8B::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ExcAC8B.kpr"), &assign_ExcAC8B_kpr)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC8B.kir"), &assign_ExcAC8B_kir)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC8B.kdr"), &assign_ExcAC8B_kdr)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC8B.ks"), &assign_ExcAC8B_ks)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC8B.tdr"), &assign_ExcAC8B_tdr)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC8B.vrmax"), &assign_ExcAC8B_vrmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC8B.vrmin"), &assign_ExcAC8B_vrmin)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC8B.vimax"), &assign_ExcAC8B_vimax)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC8B.vimin"), &assign_ExcAC8B_vimin)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC8B.vpidmax"), &assign_ExcAC8B_vpidmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC8B.vpidmin"), &assign_ExcAC8B_vpidmin)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC8B.ka"), &assign_ExcAC8B_ka)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC8B.ta"), &assign_ExcAC8B_ta)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC8B.te"), &assign_ExcAC8B_te)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC8B.vfemax"), &assign_ExcAC8B_vfemax)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC8B.vemin"), &assign_ExcAC8B_vemin)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC8B.ke"), &assign_ExcAC8B_ke)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC8B.kc"), &assign_ExcAC8B_kc)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC8B.kd"), &assign_ExcAC8B_kd)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC8B.ve1"), &assign_ExcAC8B_ve1)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC8B.seve1"), &assign_ExcAC8B_seve1)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC8B.ve2"), &assign_ExcAC8B_ve2)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC8B.seve2"), &assign_ExcAC8B_seve2)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC8B.vtmult"), &assign_ExcAC8B_vtmult)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC8B.inlim"), &assign_ExcAC8B_inlim)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC8B.pidlim"), &assign_ExcAC8B_pidlim)); - assign_map.insert(std::make_pair(std::string("cim:ExcAC8B.telim"), &assign_ExcAC8B_telim)); -} - -void ExcAC8B::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char ExcAC8B::debugName[] = "ExcAC8B"; -const char* ExcAC8B::debugString() -{ - return ExcAC8B::debugName; -} - -const BaseClassDefiner ExcAC8B::declare() -{ - return BaseClassDefiner(ExcAC8B::addConstructToMap, ExcAC8B::addPrimitiveAssignFnsToMap, ExcAC8B::addClassAssignFnsToMap, ExcAC8B::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ExcAC8B.hpp b/CGMES_2.4.13_18DEC2013/ExcAC8B.hpp deleted file mode 100644 index 7b10957da..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcAC8B.hpp +++ /dev/null @@ -1,69 +0,0 @@ -#ifndef ExcAC8B_H -#define ExcAC8B_H - -#include "ExcitationSystemDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "Seconds.hpp" -#include "Simple_Float.hpp" -#include "Boolean.hpp" - -namespace CIMPP { - - - /* - Modified IEEE AC8B alternator-supplied rectifier excitation system with speed input and input limiter. - */ - class ExcAC8B: public ExcitationSystemDynamics - { - - public: - CIMPP::PU kpr; /* Voltage regulator proportional gain (Kpr). Typical Value = 80. Default: nullptr */ - CIMPP::PU kir; /* Voltage regulator integral gain (Kir). Typical Value = 5. Default: nullptr */ - CIMPP::PU kdr; /* Voltage regulator derivative gain (Kdr). Typical Value = 10. Default: nullptr */ - CIMPP::PU ks; /* Coefficient to allow different usage of the model-speed coefficient (Ks). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tdr; /* Lag time constant (Tdr). Typical Value = 0.1. Default: nullptr */ - CIMPP::PU vrmax; /* Input signal maximum (Vimax). Typical Value = 35. Default: nullptr */ - CIMPP::PU vrmin; /* Minimum voltage regulator output (Vrmin). Typical Value = 0. Default: nullptr */ - CIMPP::PU vimax; /* Input signal maximum (Vimax). Typical Value = 35. Default: nullptr */ - CIMPP::PU vimin; /* Input signal minimum (Vimin). Typical Value = -10. Default: nullptr */ - CIMPP::PU vpidmax; /* PID maximum controller output (Vpidmax). Typical Value = 35. Default: nullptr */ - CIMPP::PU vpidmin; /* PID minimum controller output (Vpidmin). Typical Value = -10. Default: nullptr */ - CIMPP::PU ka; /* Voltage regulator gain (Ka). Typical Value = 1. Default: nullptr */ - CIMPP::Seconds ta; /* Voltage regulator time constant (Ta). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds te; /* Exciter time constant, integration rate associated with exciter control (Te). Typical Value = 1.2. Default: nullptr */ - CIMPP::PU vfemax; /* Exciter field current limit reference (Vfemax). Typical Value = 6. Default: nullptr */ - CIMPP::PU vemin; /* Minimum exciter voltage output (Vemin). Typical Value = 0. Default: nullptr */ - CIMPP::PU ke; /* Exciter constant related to self-excited field (Ke). Typical Value = 1. Default: nullptr */ - CIMPP::PU kc; /* Rectifier loading factor proportional to commutating reactance (Kc). Typical Value = 0.55. Default: nullptr */ - CIMPP::PU kd; /* Demagnetizing factor, a function of exciter alternator reactances (Kd). Typical Value = 1.1. Default: nullptr */ - CIMPP::PU ve1; /* Exciter alternator output voltages back of commutating reactance at which saturation is defined (Ve) equals V (Ve1). Typical Value = 6.5. Default: nullptr */ - CIMPP::Simple_Float seve1; /* Exciter saturation function value at the corresponding exciter voltage, Ve, back of commutating reactance (Se[Ve1]). Typical Value = 0.3. Default: nullptr */ - CIMPP::PU ve2; /* Exciter alternator output voltages back of commutating reactance at which saturation is defined (Ve). Typical Value = 9. Default: nullptr */ - CIMPP::Simple_Float seve2; /* Exciter saturation function value at the corresponding exciter voltage, Ve, back of commutating reactance (Se[Ve2]). Typical Value = 3. Default: nullptr */ - CIMPP::Boolean vtmult; /* Multiply by generator`s terminal voltage indicator. true =the limits Vrmax and Vrmin are multiplied by the generator`s terminal voltage to represent a thyristor power stage fed from the generator terminals false = limits are not multiplied by generator`s terminal voltage. Typical Value = false. Default: false */ - CIMPP::Boolean inlim; /* Input limiter indicator. true = input limiter Vimax and Vimin is considered false = input limiter Vimax and Vimin is not considered. Typical Value = true. Default: false */ - CIMPP::Boolean pidlim; /* PID limiter indicator. true = input limiter Vpidmax and Vpidmin is considered false = input limiter Vpidmax and Vpidmin is not considered. Typical Value = true. Default: false */ - CIMPP::Boolean telim; /* Selector for the limiter on the block [1/sTe]. See diagram for meaning of true and false. Typical Value = false. Default: false */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ExcAC8B(); - virtual ~ExcAC8B(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ExcAC8B_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ExcANS.cpp b/CGMES_2.4.13_18DEC2013/ExcANS.cpp deleted file mode 100644 index a3aba3f57..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcANS.cpp +++ /dev/null @@ -1,251 +0,0 @@ -#include -#include "ExcitationSystemDynamics.hpp" -#include "ExcANS.hpp" - -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Integer.hpp" -#include "Integer.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Integer.hpp" -#include "Seconds.hpp" - -using namespace CIMPP; - -ExcANS::ExcANS() {}; - -ExcANS::~ExcANS() {}; - - - - - - - - - - - - - - - - - -bool assign_ExcANS_k3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcANS* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcANS_k2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcANS* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcANS_kce(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcANS* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kce; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcANS_t3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcANS* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcANS_t2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcANS* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcANS_t1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcANS* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcANS_blint(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcANS* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->blint; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcANS_kvfif(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcANS* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kvfif; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcANS_ifmn(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcANS* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ifmn; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcANS_ifmx(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcANS* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ifmx; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcANS_vrmn(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcANS* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmn; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcANS_vrmx(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcANS* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmx; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcANS_krvecc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcANS* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->krvecc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcANS_tb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcANS* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ExcANS_factory() { - return new ExcANS; - } -} - -void ExcANS::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ExcANS"), &ExcANS_factory)); -} - -void ExcANS::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ExcANS.k3"), &assign_ExcANS_k3)); - assign_map.insert(std::make_pair(std::string("cim:ExcANS.k2"), &assign_ExcANS_k2)); - assign_map.insert(std::make_pair(std::string("cim:ExcANS.kce"), &assign_ExcANS_kce)); - assign_map.insert(std::make_pair(std::string("cim:ExcANS.t3"), &assign_ExcANS_t3)); - assign_map.insert(std::make_pair(std::string("cim:ExcANS.t2"), &assign_ExcANS_t2)); - assign_map.insert(std::make_pair(std::string("cim:ExcANS.t1"), &assign_ExcANS_t1)); - assign_map.insert(std::make_pair(std::string("cim:ExcANS.blint"), &assign_ExcANS_blint)); - assign_map.insert(std::make_pair(std::string("cim:ExcANS.kvfif"), &assign_ExcANS_kvfif)); - assign_map.insert(std::make_pair(std::string("cim:ExcANS.ifmn"), &assign_ExcANS_ifmn)); - assign_map.insert(std::make_pair(std::string("cim:ExcANS.ifmx"), &assign_ExcANS_ifmx)); - assign_map.insert(std::make_pair(std::string("cim:ExcANS.vrmn"), &assign_ExcANS_vrmn)); - assign_map.insert(std::make_pair(std::string("cim:ExcANS.vrmx"), &assign_ExcANS_vrmx)); - assign_map.insert(std::make_pair(std::string("cim:ExcANS.krvecc"), &assign_ExcANS_krvecc)); - assign_map.insert(std::make_pair(std::string("cim:ExcANS.tb"), &assign_ExcANS_tb)); -} - -void ExcANS::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char ExcANS::debugName[] = "ExcANS"; -const char* ExcANS::debugString() -{ - return ExcANS::debugName; -} - -const BaseClassDefiner ExcANS::declare() -{ - return BaseClassDefiner(ExcANS::addConstructToMap, ExcANS::addPrimitiveAssignFnsToMap, ExcANS::addClassAssignFnsToMap, ExcANS::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ExcANS.hpp b/CGMES_2.4.13_18DEC2013/ExcANS.hpp deleted file mode 100644 index ebf932391..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcANS.hpp +++ /dev/null @@ -1,56 +0,0 @@ -#ifndef ExcANS_H -#define ExcANS_H - -#include "ExcitationSystemDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Simple_Float.hpp" -#include "Seconds.hpp" -#include "Integer.hpp" -#include "PU.hpp" - -namespace CIMPP { - - - /* - Italian excitation system. It represents static field voltage or excitation current feedback excitation system. - */ - class ExcANS: public ExcitationSystemDynamics - { - - public: - CIMPP::Simple_Float k3; /* AVR gain (K). Typical Value = 1000. Default: nullptr */ - CIMPP::Simple_Float k2; /* Exciter gain (K). Typical Value = 20. Default: nullptr */ - CIMPP::Simple_Float kce; /* Ceiling factor (K). Typical Value = 1. Default: nullptr */ - CIMPP::Seconds t3; /* Time constant (T). Typical Value = 1.6. Default: nullptr */ - CIMPP::Seconds t2; /* Time constant (T). Typical Value = 0.05. Default: nullptr */ - CIMPP::Seconds t1; /* Time constant (T). Typical Value = 20. Default: nullptr */ - CIMPP::Integer blint; /* Governor Control Flag (BLINT). 0 = lead-lag regulator 1 = proportional integral regulator. Typical Value = 0. Default: 0 */ - CIMPP::Integer kvfif; /* Rate feedback signal flag (K). 0 = output voltage of the exciter 1 = exciter field current. Typical Value = 0. Default: 0 */ - CIMPP::PU ifmn; /* Minimum exciter current (I). Typical Value = -5.2. Default: nullptr */ - CIMPP::PU ifmx; /* Maximum exciter current (I). Typical Value = 6.5. Default: nullptr */ - CIMPP::PU vrmn; /* Maximum AVR output (V). Typical Value = -5.2. Default: nullptr */ - CIMPP::PU vrmx; /* Minimum AVR output (V). Typical Value = 6.5. Default: nullptr */ - CIMPP::Integer krvecc; /* Feedback enabling (K). 0 = Open loop control 1 = Closed loop control. Typical Value = 1. Default: 0 */ - CIMPP::Seconds tb; /* Exciter time constant (T). Typical Value = 0.04. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ExcANS(); - virtual ~ExcANS(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ExcANS_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ExcAVR1.cpp b/CGMES_2.4.13_18DEC2013/ExcAVR1.cpp deleted file mode 100644 index 3064751c8..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcAVR1.cpp +++ /dev/null @@ -1,221 +0,0 @@ -#include -#include "ExcitationSystemDynamics.hpp" -#include "ExcAVR1.hpp" - -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Seconds.hpp" - -using namespace CIMPP; - -ExcAVR1::ExcAVR1() {}; - -ExcAVR1::~ExcAVR1() {}; - - - - - - - - - - - - - - - -bool assign_ExcAVR1_ka(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ka; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR1_vrmn(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmn; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR1_vrmx(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmx; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR1_ta(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ta; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR1_tb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR1_te(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->te; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR1_e1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->e1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR1_se1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->se1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR1_e2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->e2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR1_se2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->se2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR1_kf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR1_tf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ExcAVR1_factory() { - return new ExcAVR1; - } -} - -void ExcAVR1::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ExcAVR1"), &ExcAVR1_factory)); -} - -void ExcAVR1::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ExcAVR1.ka"), &assign_ExcAVR1_ka)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR1.vrmn"), &assign_ExcAVR1_vrmn)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR1.vrmx"), &assign_ExcAVR1_vrmx)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR1.ta"), &assign_ExcAVR1_ta)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR1.tb"), &assign_ExcAVR1_tb)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR1.te"), &assign_ExcAVR1_te)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR1.e1"), &assign_ExcAVR1_e1)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR1.se1"), &assign_ExcAVR1_se1)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR1.e2"), &assign_ExcAVR1_e2)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR1.se2"), &assign_ExcAVR1_se2)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR1.kf"), &assign_ExcAVR1_kf)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR1.tf"), &assign_ExcAVR1_tf)); -} - -void ExcAVR1::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char ExcAVR1::debugName[] = "ExcAVR1"; -const char* ExcAVR1::debugString() -{ - return ExcAVR1::debugName; -} - -const BaseClassDefiner ExcAVR1::declare() -{ - return BaseClassDefiner(ExcAVR1::addConstructToMap, ExcAVR1::addPrimitiveAssignFnsToMap, ExcAVR1::addClassAssignFnsToMap, ExcAVR1::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ExcAVR1.hpp b/CGMES_2.4.13_18DEC2013/ExcAVR1.hpp deleted file mode 100644 index 41fed73ef..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcAVR1.hpp +++ /dev/null @@ -1,53 +0,0 @@ -#ifndef ExcAVR1_H -#define ExcAVR1_H - -#include "ExcitationSystemDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "Seconds.hpp" - -namespace CIMPP { - - - /* - Italian excitation system corresponding to IEEE (1968) Type 1 Model. It represents exciter dynamo and electromechanical regulator. - */ - class ExcAVR1: public ExcitationSystemDynamics - { - - public: - CIMPP::Simple_Float ka; /* AVR gain (K). Typical Value = 500. Default: nullptr */ - CIMPP::PU vrmn; /* Maximum AVR output (V). Typical Value = -6. Default: nullptr */ - CIMPP::PU vrmx; /* Minimum AVR output (V). Typical Value = 7. Default: nullptr */ - CIMPP::Seconds ta; /* AVR time constant (T). Typical Value = 0.2. Default: nullptr */ - CIMPP::Seconds tb; /* AVR time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds te; /* Exciter time constant (T). Typical Value = 1. Default: nullptr */ - CIMPP::PU e1; /* Field voltage value 1 (E1). Typical Value = 4.18. Default: nullptr */ - CIMPP::Simple_Float se1; /* Saturation factor at E1 (S(E1)). Typical Value = 0.1. Default: nullptr */ - CIMPP::PU e2; /* Field voltage value 2 (E2). Typical Value = 3.14. Default: nullptr */ - CIMPP::Simple_Float se2; /* Saturation factor at E2 (S(E2)). Typical Value = 0.03. Default: nullptr */ - CIMPP::Simple_Float kf; /* Rate feedback gain (K). Typical Value = 0.02. Default: nullptr */ - CIMPP::Seconds tf; /* Rate feedback time constant (T). Typical Value = 1. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ExcAVR1(); - virtual ~ExcAVR1(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ExcAVR1_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ExcAVR2.cpp b/CGMES_2.4.13_18DEC2013/ExcAVR2.cpp deleted file mode 100644 index f5f25823a..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcAVR2.cpp +++ /dev/null @@ -1,236 +0,0 @@ -#include -#include "ExcitationSystemDynamics.hpp" -#include "ExcAVR2.hpp" - -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" - -using namespace CIMPP; - -ExcAVR2::ExcAVR2() {}; - -ExcAVR2::~ExcAVR2() {}; - - - - - - - - - - - - - - - - -bool assign_ExcAVR2_ka(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ka; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR2_vrmn(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmn; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR2_vrmx(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmx; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR2_ta(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ta; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR2_tb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR2_te(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->te; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR2_e1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->e1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR2_se1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->se1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR2_e2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->e2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR2_se2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->se2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR2_kf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR2_tf1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tf1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR2_tf2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tf2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ExcAVR2_factory() { - return new ExcAVR2; - } -} - -void ExcAVR2::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ExcAVR2"), &ExcAVR2_factory)); -} - -void ExcAVR2::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ExcAVR2.ka"), &assign_ExcAVR2_ka)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR2.vrmn"), &assign_ExcAVR2_vrmn)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR2.vrmx"), &assign_ExcAVR2_vrmx)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR2.ta"), &assign_ExcAVR2_ta)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR2.tb"), &assign_ExcAVR2_tb)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR2.te"), &assign_ExcAVR2_te)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR2.e1"), &assign_ExcAVR2_e1)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR2.se1"), &assign_ExcAVR2_se1)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR2.e2"), &assign_ExcAVR2_e2)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR2.se2"), &assign_ExcAVR2_se2)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR2.kf"), &assign_ExcAVR2_kf)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR2.tf1"), &assign_ExcAVR2_tf1)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR2.tf2"), &assign_ExcAVR2_tf2)); -} - -void ExcAVR2::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char ExcAVR2::debugName[] = "ExcAVR2"; -const char* ExcAVR2::debugString() -{ - return ExcAVR2::debugName; -} - -const BaseClassDefiner ExcAVR2::declare() -{ - return BaseClassDefiner(ExcAVR2::addConstructToMap, ExcAVR2::addPrimitiveAssignFnsToMap, ExcAVR2::addClassAssignFnsToMap, ExcAVR2::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ExcAVR2.hpp b/CGMES_2.4.13_18DEC2013/ExcAVR2.hpp deleted file mode 100644 index cd4668ea7..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcAVR2.hpp +++ /dev/null @@ -1,54 +0,0 @@ -#ifndef ExcAVR2_H -#define ExcAVR2_H - -#include "ExcitationSystemDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "Seconds.hpp" - -namespace CIMPP { - - - /* - Italian excitation system corresponding to IEEE (1968) Type 2 Model. It represents alternator and rotating diodes and electromechanic voltage regulators. - */ - class ExcAVR2: public ExcitationSystemDynamics - { - - public: - CIMPP::Simple_Float ka; /* AVR gain (K). Typical Value = 500. Default: nullptr */ - CIMPP::PU vrmn; /* Maximum AVR output (V). Typical Value = -6. Default: nullptr */ - CIMPP::PU vrmx; /* Minimum AVR output (V). Typical Value = 7. Default: nullptr */ - CIMPP::Seconds ta; /* AVR time constant (T). Typical Value = 0.02. Default: nullptr */ - CIMPP::Seconds tb; /* AVR time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds te; /* Exciter time constant (T). Typical Value = 1. Default: nullptr */ - CIMPP::PU e1; /* Field voltage value 1 (E1). Typical Value = 4.18. Default: nullptr */ - CIMPP::Simple_Float se1; /* Saturation factor at E1 (S(E1)). Typical Value = 0.1. Default: nullptr */ - CIMPP::PU e2; /* Field voltage value 2 (E2). Typical Value = 3.14. Default: nullptr */ - CIMPP::Simple_Float se2; /* Saturation factor at E2 (S(E2)). Typical Value = 0.03. Default: nullptr */ - CIMPP::Simple_Float kf; /* Rate feedback gain (K). Typical Value = 0.02. Default: nullptr */ - CIMPP::Seconds tf1; /* Rate feedback time constant (T). Typical Value = 1. Default: nullptr */ - CIMPP::Seconds tf2; /* Rate feedback time constant (T). Typical Value = 1. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ExcAVR2(); - virtual ~ExcAVR2(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ExcAVR2_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ExcAVR3.cpp b/CGMES_2.4.13_18DEC2013/ExcAVR3.cpp deleted file mode 100644 index c055a262b..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcAVR3.cpp +++ /dev/null @@ -1,221 +0,0 @@ -#include -#include "ExcitationSystemDynamics.hpp" -#include "ExcAVR3.hpp" - -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" - -using namespace CIMPP; - -ExcAVR3::ExcAVR3() {}; - -ExcAVR3::~ExcAVR3() {}; - - - - - - - - - - - - - - - -bool assign_ExcAVR3_ka(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ka; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR3_vrmn(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmn; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR3_vrmx(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmx; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR3_t1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR3_t2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR3_t3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR3_t4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR3_te(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->te; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR3_e1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->e1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR3_se1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->se1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR3_e2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->e2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR3_se2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->se2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ExcAVR3_factory() { - return new ExcAVR3; - } -} - -void ExcAVR3::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ExcAVR3"), &ExcAVR3_factory)); -} - -void ExcAVR3::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ExcAVR3.ka"), &assign_ExcAVR3_ka)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR3.vrmn"), &assign_ExcAVR3_vrmn)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR3.vrmx"), &assign_ExcAVR3_vrmx)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR3.t1"), &assign_ExcAVR3_t1)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR3.t2"), &assign_ExcAVR3_t2)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR3.t3"), &assign_ExcAVR3_t3)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR3.t4"), &assign_ExcAVR3_t4)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR3.te"), &assign_ExcAVR3_te)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR3.e1"), &assign_ExcAVR3_e1)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR3.se1"), &assign_ExcAVR3_se1)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR3.e2"), &assign_ExcAVR3_e2)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR3.se2"), &assign_ExcAVR3_se2)); -} - -void ExcAVR3::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char ExcAVR3::debugName[] = "ExcAVR3"; -const char* ExcAVR3::debugString() -{ - return ExcAVR3::debugName; -} - -const BaseClassDefiner ExcAVR3::declare() -{ - return BaseClassDefiner(ExcAVR3::addConstructToMap, ExcAVR3::addPrimitiveAssignFnsToMap, ExcAVR3::addClassAssignFnsToMap, ExcAVR3::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ExcAVR3.hpp b/CGMES_2.4.13_18DEC2013/ExcAVR3.hpp deleted file mode 100644 index b5f7cf86f..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcAVR3.hpp +++ /dev/null @@ -1,53 +0,0 @@ -#ifndef ExcAVR3_H -#define ExcAVR3_H - -#include "ExcitationSystemDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "Seconds.hpp" - -namespace CIMPP { - - - /* - Italian excitation system. It represents exciter dynamo and electric regulator. - */ - class ExcAVR3: public ExcitationSystemDynamics - { - - public: - CIMPP::Simple_Float ka; /* AVR gain (K). Typical Value = 3000. Default: nullptr */ - CIMPP::PU vrmn; /* Maximum AVR output (V). Typical Value = -7.5. Default: nullptr */ - CIMPP::PU vrmx; /* Minimum AVR output (V). Typical Value = 7.5. Default: nullptr */ - CIMPP::Seconds t1; /* AVR time constant (T). Typical Value = 220. Default: nullptr */ - CIMPP::Seconds t2; /* AVR time constant (T). Typical Value = 1.6. Default: nullptr */ - CIMPP::Seconds t3; /* AVR time constant (T). Typical Value = 0.66. Default: nullptr */ - CIMPP::Seconds t4; /* AVR time constant (T). Typical Value = 0.07. Default: nullptr */ - CIMPP::Seconds te; /* Exciter time constant (T). Typical Value = 1. Default: nullptr */ - CIMPP::PU e1; /* Field voltage value 1 (E1). Typical Value = 4.18. Default: nullptr */ - CIMPP::Simple_Float se1; /* Saturation factor at E1 (S(E1)). Typical Value = 0.1. Default: nullptr */ - CIMPP::PU e2; /* Field voltage value 2 (E2). Typical Value = 3.14. Default: nullptr */ - CIMPP::Simple_Float se2; /* Saturation factor at E2 (S(E2)). Typical Value = 0.03. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ExcAVR3(); - virtual ~ExcAVR3(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ExcAVR3_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ExcAVR4.cpp b/CGMES_2.4.13_18DEC2013/ExcAVR4.cpp deleted file mode 100644 index f68040704..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcAVR4.cpp +++ /dev/null @@ -1,251 +0,0 @@ -#include -#include "ExcitationSystemDynamics.hpp" -#include "ExcAVR4.hpp" - -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Boolean.hpp" - -using namespace CIMPP; - -ExcAVR4::ExcAVR4() {}; - -ExcAVR4::~ExcAVR4() {}; - - - - - - - - - - - - - - - - - -bool assign_ExcAVR4_ka(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ka; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR4_vrmn(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmn; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR4_vrmx(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmx; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR4_t1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR4_t2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR4_t3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR4_t4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR4_ke(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ke; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR4_vfmx(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vfmx; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR4_vfmn(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vfmn; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR4_kif(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kif; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR4_tif(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tif; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR4_t1if(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t1if; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR4_imul(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->imul; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ExcAVR4_factory() { - return new ExcAVR4; - } -} - -void ExcAVR4::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ExcAVR4"), &ExcAVR4_factory)); -} - -void ExcAVR4::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ExcAVR4.ka"), &assign_ExcAVR4_ka)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR4.vrmn"), &assign_ExcAVR4_vrmn)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR4.vrmx"), &assign_ExcAVR4_vrmx)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR4.t1"), &assign_ExcAVR4_t1)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR4.t2"), &assign_ExcAVR4_t2)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR4.t3"), &assign_ExcAVR4_t3)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR4.t4"), &assign_ExcAVR4_t4)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR4.ke"), &assign_ExcAVR4_ke)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR4.vfmx"), &assign_ExcAVR4_vfmx)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR4.vfmn"), &assign_ExcAVR4_vfmn)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR4.kif"), &assign_ExcAVR4_kif)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR4.tif"), &assign_ExcAVR4_tif)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR4.t1if"), &assign_ExcAVR4_t1if)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR4.imul"), &assign_ExcAVR4_imul)); -} - -void ExcAVR4::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char ExcAVR4::debugName[] = "ExcAVR4"; -const char* ExcAVR4::debugString() -{ - return ExcAVR4::debugName; -} - -const BaseClassDefiner ExcAVR4::declare() -{ - return BaseClassDefiner(ExcAVR4::addConstructToMap, ExcAVR4::addPrimitiveAssignFnsToMap, ExcAVR4::addClassAssignFnsToMap, ExcAVR4::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ExcAVR4.hpp b/CGMES_2.4.13_18DEC2013/ExcAVR4.hpp deleted file mode 100644 index ec3bb11da..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcAVR4.hpp +++ /dev/null @@ -1,56 +0,0 @@ -#ifndef ExcAVR4_H -#define ExcAVR4_H - -#include "ExcitationSystemDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Boolean.hpp" - -namespace CIMPP { - - - /* - Italian excitation system. It represents static exciter and electric voltage regulator. - */ - class ExcAVR4: public ExcitationSystemDynamics - { - - public: - CIMPP::Simple_Float ka; /* AVR gain (K). Typical Value = 300. Default: nullptr */ - CIMPP::PU vrmn; /* Maximum AVR output (V). Typical Value = 0. Default: nullptr */ - CIMPP::PU vrmx; /* Minimum AVR output (V). Typical Value = 5. Default: nullptr */ - CIMPP::Seconds t1; /* AVR time constant (T). Typical Value = 4.8. Default: nullptr */ - CIMPP::Seconds t2; /* AVR time constant (T). Typical Value = 1.5. Default: nullptr */ - CIMPP::Seconds t3; /* AVR time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds t4; /* AVR time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::Simple_Float ke; /* Exciter gain (K). Typical Value = 1. Default: nullptr */ - CIMPP::PU vfmx; /* Maximum exciter output (V). Typical Value = 5. Default: nullptr */ - CIMPP::PU vfmn; /* Minimum exciter output (V). Typical Value = 0. Default: nullptr */ - CIMPP::Simple_Float kif; /* Exciter internal reactance (K). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tif; /* Exciter current feedback time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds t1if; /* Exciter current feedback time constant (T). Typical Value = 60. Default: nullptr */ - CIMPP::Boolean imul; /* AVR output voltage dependency selector (Imul). true = selector is connected false = selector is not connected. Typical Value = true. Default: false */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ExcAVR4(); - virtual ~ExcAVR4(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ExcAVR4_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ExcAVR5.cpp b/CGMES_2.4.13_18DEC2013/ExcAVR5.cpp deleted file mode 100644 index 1036f58fa..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcAVR5.cpp +++ /dev/null @@ -1,86 +0,0 @@ -#include -#include "ExcitationSystemDynamics.hpp" -#include "ExcAVR5.hpp" - -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -ExcAVR5::ExcAVR5() {}; - -ExcAVR5::~ExcAVR5() {}; - - - - - - -bool assign_ExcAVR5_ka(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR5* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ka; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR5_ta(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR5* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ta; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR5_rex(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR5* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->rex; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ExcAVR5_factory() { - return new ExcAVR5; - } -} - -void ExcAVR5::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ExcAVR5"), &ExcAVR5_factory)); -} - -void ExcAVR5::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ExcAVR5.ka"), &assign_ExcAVR5_ka)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR5.ta"), &assign_ExcAVR5_ta)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR5.rex"), &assign_ExcAVR5_rex)); -} - -void ExcAVR5::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char ExcAVR5::debugName[] = "ExcAVR5"; -const char* ExcAVR5::debugString() -{ - return ExcAVR5::debugName; -} - -const BaseClassDefiner ExcAVR5::declare() -{ - return BaseClassDefiner(ExcAVR5::addConstructToMap, ExcAVR5::addPrimitiveAssignFnsToMap, ExcAVR5::addClassAssignFnsToMap, ExcAVR5::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ExcAVR5.hpp b/CGMES_2.4.13_18DEC2013/ExcAVR5.hpp deleted file mode 100644 index 26d4e1b1f..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcAVR5.hpp +++ /dev/null @@ -1,43 +0,0 @@ -#ifndef ExcAVR5_H -#define ExcAVR5_H - -#include "ExcitationSystemDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "Seconds.hpp" - -namespace CIMPP { - - - /* - Manual excitation control with field circuit resistance. This model can be used as a very simple representation of manual voltage control. - */ - class ExcAVR5: public ExcitationSystemDynamics - { - - public: - CIMPP::PU ka; /* Gain (Ka). Default: nullptr */ - CIMPP::Seconds ta; /* Time constant (Ta). Default: nullptr */ - CIMPP::PU rex; /* Effective Output Resistance (Rex). Rex represents the effective output resistance seen by the excitation system. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ExcAVR5(); - virtual ~ExcAVR5(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ExcAVR5_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ExcAVR7.cpp b/CGMES_2.4.13_18DEC2013/ExcAVR7.cpp deleted file mode 100644 index 7c6ee5455..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcAVR7.cpp +++ /dev/null @@ -1,356 +0,0 @@ -#include -#include "ExcitationSystemDynamics.hpp" -#include "ExcAVR7.hpp" - -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -ExcAVR7::ExcAVR7() {}; - -ExcAVR7::~ExcAVR7() {}; - - - - - - - - - - - - - - - - - - - - - - - - -bool assign_ExcAVR7_k1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR7* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR7_a1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR7* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->a1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR7_a2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR7* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->a2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR7_t1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR7* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR7_t2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR7* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR7_vmax1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR7* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vmax1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR7_vmin1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR7* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vmin1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR7_k3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR7* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR7_a3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR7* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->a3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR7_a4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR7* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->a4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR7_t3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR7* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR7_t4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR7* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR7_vmax3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR7* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vmax3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR7_vmin3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR7* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vmin3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR7_k5(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR7* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR7_a5(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR7* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->a5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR7_a6(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR7* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->a6; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR7_t5(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR7* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR7_t6(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR7* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t6; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR7_vmax5(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR7* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vmax5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcAVR7_vmin5(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcAVR7* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vmin5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ExcAVR7_factory() { - return new ExcAVR7; - } -} - -void ExcAVR7::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ExcAVR7"), &ExcAVR7_factory)); -} - -void ExcAVR7::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ExcAVR7.k1"), &assign_ExcAVR7_k1)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR7.a1"), &assign_ExcAVR7_a1)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR7.a2"), &assign_ExcAVR7_a2)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR7.t1"), &assign_ExcAVR7_t1)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR7.t2"), &assign_ExcAVR7_t2)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR7.vmax1"), &assign_ExcAVR7_vmax1)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR7.vmin1"), &assign_ExcAVR7_vmin1)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR7.k3"), &assign_ExcAVR7_k3)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR7.a3"), &assign_ExcAVR7_a3)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR7.a4"), &assign_ExcAVR7_a4)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR7.t3"), &assign_ExcAVR7_t3)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR7.t4"), &assign_ExcAVR7_t4)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR7.vmax3"), &assign_ExcAVR7_vmax3)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR7.vmin3"), &assign_ExcAVR7_vmin3)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR7.k5"), &assign_ExcAVR7_k5)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR7.a5"), &assign_ExcAVR7_a5)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR7.a6"), &assign_ExcAVR7_a6)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR7.t5"), &assign_ExcAVR7_t5)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR7.t6"), &assign_ExcAVR7_t6)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR7.vmax5"), &assign_ExcAVR7_vmax5)); - assign_map.insert(std::make_pair(std::string("cim:ExcAVR7.vmin5"), &assign_ExcAVR7_vmin5)); -} - -void ExcAVR7::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char ExcAVR7::debugName[] = "ExcAVR7"; -const char* ExcAVR7::debugString() -{ - return ExcAVR7::debugName; -} - -const BaseClassDefiner ExcAVR7::declare() -{ - return BaseClassDefiner(ExcAVR7::addConstructToMap, ExcAVR7::addPrimitiveAssignFnsToMap, ExcAVR7::addClassAssignFnsToMap, ExcAVR7::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ExcAVR7.hpp b/CGMES_2.4.13_18DEC2013/ExcAVR7.hpp deleted file mode 100644 index 0edf51f18..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcAVR7.hpp +++ /dev/null @@ -1,61 +0,0 @@ -#ifndef ExcAVR7_H -#define ExcAVR7_H - -#include "ExcitationSystemDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "Seconds.hpp" - -namespace CIMPP { - - - /* - IVO excitation system. - */ - class ExcAVR7: public ExcitationSystemDynamics - { - - public: - CIMPP::PU k1; /* Gain (K1). Typical Value = 1. Default: nullptr */ - CIMPP::PU a1; /* Lead coefficient (A1). Typical Value = 0.5. Default: nullptr */ - CIMPP::PU a2; /* Lag coefficient (A2). Typical Value = 0.5. Default: nullptr */ - CIMPP::Seconds t1; /* Lead time constant (T1). Typical Value = 0.05. Default: nullptr */ - CIMPP::Seconds t2; /* Lag time constant (T2). Typical Value = 0.1. Default: nullptr */ - CIMPP::PU vmax1; /* Lead-lag max. limit (Vmax1). Typical Value = 5. Default: nullptr */ - CIMPP::PU vmin1; /* Lead-lag min. limit (Vmin1). Typical Value = -5. Default: nullptr */ - CIMPP::PU k3; /* Gain (K3). Typical Value = 3. Default: nullptr */ - CIMPP::PU a3; /* Lead coefficient (A3). Typical Value = 0.5. Default: nullptr */ - CIMPP::PU a4; /* Lag coefficient (A4). Typical Value = 0.5. Default: nullptr */ - CIMPP::Seconds t3; /* Lead time constant (T3). Typical Value = 0.1. Default: nullptr */ - CIMPP::Seconds t4; /* Lag time constant (T4). Typical Value = 0.1. Default: nullptr */ - CIMPP::PU vmax3; /* Lead-lag max. limit (Vmax3). Typical Value = 5. Default: nullptr */ - CIMPP::PU vmin3; /* Lead-lag min. limit (Vmin3). Typical Value = -5. Default: nullptr */ - CIMPP::PU k5; /* Gain (K5). Typical Value = 1. Default: nullptr */ - CIMPP::PU a5; /* Lead coefficient (A5). Typical Value = 0.5. Default: nullptr */ - CIMPP::PU a6; /* Lag coefficient (A6). Typical Value = 0.5. Default: nullptr */ - CIMPP::Seconds t5; /* Lead time constant (T5). Typical Value = 0.1. Default: nullptr */ - CIMPP::Seconds t6; /* Lag time constant (T6). Typical Value = 0.1. Default: nullptr */ - CIMPP::PU vmax5; /* Lead-lag max. limit (Vmax5). Typical Value = 5. Default: nullptr */ - CIMPP::PU vmin5; /* Lead-lag min. limit (Vmin5). Typical Value = -2. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ExcAVR7(); - virtual ~ExcAVR7(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ExcAVR7_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ExcBBC.cpp b/CGMES_2.4.13_18DEC2013/ExcBBC.cpp deleted file mode 100644 index 8763915c3..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcBBC.cpp +++ /dev/null @@ -1,206 +0,0 @@ -#include -#include "ExcitationSystemDynamics.hpp" -#include "ExcBBC.hpp" - -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Boolean.hpp" - -using namespace CIMPP; - -ExcBBC::ExcBBC() {}; - -ExcBBC::~ExcBBC() {}; - - - - - - - - - - - - - - -bool assign_ExcBBC_t1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcBBC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcBBC_t2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcBBC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcBBC_t3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcBBC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcBBC_t4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcBBC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcBBC_k(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcBBC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcBBC_vrmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcBBC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcBBC_vrmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcBBC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcBBC_efdmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcBBC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->efdmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcBBC_efdmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcBBC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->efdmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcBBC_xe(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcBBC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->xe; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcBBC_switch(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcBBC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->_switch; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ExcBBC_factory() { - return new ExcBBC; - } -} - -void ExcBBC::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ExcBBC"), &ExcBBC_factory)); -} - -void ExcBBC::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ExcBBC.t1"), &assign_ExcBBC_t1)); - assign_map.insert(std::make_pair(std::string("cim:ExcBBC.t2"), &assign_ExcBBC_t2)); - assign_map.insert(std::make_pair(std::string("cim:ExcBBC.t3"), &assign_ExcBBC_t3)); - assign_map.insert(std::make_pair(std::string("cim:ExcBBC.t4"), &assign_ExcBBC_t4)); - assign_map.insert(std::make_pair(std::string("cim:ExcBBC.k"), &assign_ExcBBC_k)); - assign_map.insert(std::make_pair(std::string("cim:ExcBBC.vrmin"), &assign_ExcBBC_vrmin)); - assign_map.insert(std::make_pair(std::string("cim:ExcBBC.vrmax"), &assign_ExcBBC_vrmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcBBC.efdmin"), &assign_ExcBBC_efdmin)); - assign_map.insert(std::make_pair(std::string("cim:ExcBBC.efdmax"), &assign_ExcBBC_efdmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcBBC.xe"), &assign_ExcBBC_xe)); - assign_map.insert(std::make_pair(std::string("cim:ExcBBC.switch"), &assign_ExcBBC_switch)); -} - -void ExcBBC::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char ExcBBC::debugName[] = "ExcBBC"; -const char* ExcBBC::debugString() -{ - return ExcBBC::debugName; -} - -const BaseClassDefiner ExcBBC::declare() -{ - return BaseClassDefiner(ExcBBC::addConstructToMap, ExcBBC::addPrimitiveAssignFnsToMap, ExcBBC::addClassAssignFnsToMap, ExcBBC::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ExcBBC.hpp b/CGMES_2.4.13_18DEC2013/ExcBBC.hpp deleted file mode 100644 index 379cec722..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcBBC.hpp +++ /dev/null @@ -1,52 +0,0 @@ -#ifndef ExcBBC_H -#define ExcBBC_H - -#include "ExcitationSystemDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Seconds.hpp" -#include "PU.hpp" -#include "Boolean.hpp" - -namespace CIMPP { - - - /* - Transformer fed static excitation system (static with ABB regulator). This model represents a static excitation system in which a gated thyristor bridge fed by a transformer at the main generator terminals feeds the main generator directly. - */ - class ExcBBC: public ExcitationSystemDynamics - { - - public: - CIMPP::Seconds t1; /* Controller time constant (T1). Typical Value = 6. Default: nullptr */ - CIMPP::Seconds t2; /* Controller time constant (T2). Typical Value = 1. Default: nullptr */ - CIMPP::Seconds t3; /* Lead/lag time constant (T3). Typical Value = 0.05. Default: nullptr */ - CIMPP::Seconds t4; /* Lead/lag time constant (T4). Typical Value = 0.01. Default: nullptr */ - CIMPP::PU k; /* Steady state gain (K). Typical Value = 300. Default: nullptr */ - CIMPP::PU vrmin; /* Minimum control element output (Vrmin). Typical Value = -5. Default: nullptr */ - CIMPP::PU vrmax; /* Maximum control element output (Vrmax). Typical Value = 5. Default: nullptr */ - CIMPP::PU efdmin; /* Minimum open circuit exciter voltage (Efdmin). Typical Value = -5. Default: nullptr */ - CIMPP::PU efdmax; /* Maximum open circuit exciter voltage (Efdmax). Typical Value = 5. Default: nullptr */ - CIMPP::PU xe; /* Effective excitation transformer reactance (Xe). Typical Value = 0.05. Default: nullptr */ - CIMPP::Boolean _switch; /* Supplementary signal routing selector (switch). true = Vs connected to 3rd summing point false = Vs connected to 1st summing point (see diagram). Typical Value = true. Default: false */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ExcBBC(); - virtual ~ExcBBC(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ExcBBC_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ExcCZ.cpp b/CGMES_2.4.13_18DEC2013/ExcCZ.cpp deleted file mode 100644 index 6bf344d51..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcCZ.cpp +++ /dev/null @@ -1,191 +0,0 @@ -#include -#include "ExcitationSystemDynamics.hpp" -#include "ExcCZ.hpp" - -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -ExcCZ::ExcCZ() {}; - -ExcCZ::~ExcCZ() {}; - - - - - - - - - - - - - -bool assign_ExcCZ_kp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcCZ* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcCZ_tc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcCZ* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcCZ_vrmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcCZ* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcCZ_vrmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcCZ* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcCZ_ka(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcCZ* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ka; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcCZ_ta(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcCZ* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ta; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcCZ_ke(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcCZ* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ke; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcCZ_te(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcCZ* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->te; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcCZ_efdmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcCZ* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->efdmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcCZ_efdmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcCZ* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->efdmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ExcCZ_factory() { - return new ExcCZ; - } -} - -void ExcCZ::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ExcCZ"), &ExcCZ_factory)); -} - -void ExcCZ::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ExcCZ.kp"), &assign_ExcCZ_kp)); - assign_map.insert(std::make_pair(std::string("cim:ExcCZ.tc"), &assign_ExcCZ_tc)); - assign_map.insert(std::make_pair(std::string("cim:ExcCZ.vrmax"), &assign_ExcCZ_vrmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcCZ.vrmin"), &assign_ExcCZ_vrmin)); - assign_map.insert(std::make_pair(std::string("cim:ExcCZ.ka"), &assign_ExcCZ_ka)); - assign_map.insert(std::make_pair(std::string("cim:ExcCZ.ta"), &assign_ExcCZ_ta)); - assign_map.insert(std::make_pair(std::string("cim:ExcCZ.ke"), &assign_ExcCZ_ke)); - assign_map.insert(std::make_pair(std::string("cim:ExcCZ.te"), &assign_ExcCZ_te)); - assign_map.insert(std::make_pair(std::string("cim:ExcCZ.efdmax"), &assign_ExcCZ_efdmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcCZ.efdmin"), &assign_ExcCZ_efdmin)); -} - -void ExcCZ::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char ExcCZ::debugName[] = "ExcCZ"; -const char* ExcCZ::debugString() -{ - return ExcCZ::debugName; -} - -const BaseClassDefiner ExcCZ::declare() -{ - return BaseClassDefiner(ExcCZ::addConstructToMap, ExcCZ::addPrimitiveAssignFnsToMap, ExcCZ::addClassAssignFnsToMap, ExcCZ::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ExcCZ.hpp b/CGMES_2.4.13_18DEC2013/ExcCZ.hpp deleted file mode 100644 index 145ad1bdd..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcCZ.hpp +++ /dev/null @@ -1,50 +0,0 @@ -#ifndef ExcCZ_H -#define ExcCZ_H - -#include "ExcitationSystemDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "Seconds.hpp" - -namespace CIMPP { - - - /* - Czech Proportion/Integral Exciter. - */ - class ExcCZ: public ExcitationSystemDynamics - { - - public: - CIMPP::PU kp; /* Regulator proportional gain (Kp). Default: nullptr */ - CIMPP::Seconds tc; /* Regulator integral time constant (Tc). Default: nullptr */ - CIMPP::PU vrmax; /* Voltage regulator maximum limit (Vrmax). Default: nullptr */ - CIMPP::PU vrmin; /* Voltage regulator minimum limit (Vrmin). Default: nullptr */ - CIMPP::PU ka; /* Regulator gain (Ka). Default: nullptr */ - CIMPP::Seconds ta; /* Regulator time constant (Ta). Default: nullptr */ - CIMPP::PU ke; /* Exciter constant related to self-excited field (Ke). Default: nullptr */ - CIMPP::Seconds te; /* Exciter time constant, integration rate associated with exciter control (Te). Default: nullptr */ - CIMPP::PU efdmax; /* Exciter output maximum limit (Efdmax). Default: nullptr */ - CIMPP::PU efdmin; /* Exciter output minimum limit (Efdmin). Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ExcCZ(); - virtual ~ExcCZ(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ExcCZ_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ExcDC1A.cpp b/CGMES_2.4.13_18DEC2013/ExcDC1A.cpp deleted file mode 100644 index 522a9016d..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcDC1A.cpp +++ /dev/null @@ -1,311 +0,0 @@ -#include -#include "ExcitationSystemDynamics.hpp" -#include "ExcDC1A.hpp" - -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "Boolean.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -ExcDC1A::ExcDC1A() {}; - -ExcDC1A::~ExcDC1A() {}; - - - - - - - - - - - - - - - - - - - - - -bool assign_ExcDC1A_ka(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ka; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcDC1A_ks(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ks; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcDC1A_ta(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ta; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcDC1A_tb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcDC1A_tc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcDC1A_vrmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcDC1A_vrmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcDC1A_ke(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ke; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcDC1A_te(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->te; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcDC1A_kf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcDC1A_tf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcDC1A_efd1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->efd1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcDC1A_seefd1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->seefd1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcDC1A_efd2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->efd2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcDC1A_seefd2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->seefd2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcDC1A_exclim(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->exclim; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcDC1A_efdmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->efdmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcDC1A_edfmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->edfmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ExcDC1A_factory() { - return new ExcDC1A; - } -} - -void ExcDC1A::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ExcDC1A"), &ExcDC1A_factory)); -} - -void ExcDC1A::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ExcDC1A.ka"), &assign_ExcDC1A_ka)); - assign_map.insert(std::make_pair(std::string("cim:ExcDC1A.ks"), &assign_ExcDC1A_ks)); - assign_map.insert(std::make_pair(std::string("cim:ExcDC1A.ta"), &assign_ExcDC1A_ta)); - assign_map.insert(std::make_pair(std::string("cim:ExcDC1A.tb"), &assign_ExcDC1A_tb)); - assign_map.insert(std::make_pair(std::string("cim:ExcDC1A.tc"), &assign_ExcDC1A_tc)); - assign_map.insert(std::make_pair(std::string("cim:ExcDC1A.vrmax"), &assign_ExcDC1A_vrmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcDC1A.vrmin"), &assign_ExcDC1A_vrmin)); - assign_map.insert(std::make_pair(std::string("cim:ExcDC1A.ke"), &assign_ExcDC1A_ke)); - assign_map.insert(std::make_pair(std::string("cim:ExcDC1A.te"), &assign_ExcDC1A_te)); - assign_map.insert(std::make_pair(std::string("cim:ExcDC1A.kf"), &assign_ExcDC1A_kf)); - assign_map.insert(std::make_pair(std::string("cim:ExcDC1A.tf"), &assign_ExcDC1A_tf)); - assign_map.insert(std::make_pair(std::string("cim:ExcDC1A.efd1"), &assign_ExcDC1A_efd1)); - assign_map.insert(std::make_pair(std::string("cim:ExcDC1A.seefd1"), &assign_ExcDC1A_seefd1)); - assign_map.insert(std::make_pair(std::string("cim:ExcDC1A.efd2"), &assign_ExcDC1A_efd2)); - assign_map.insert(std::make_pair(std::string("cim:ExcDC1A.seefd2"), &assign_ExcDC1A_seefd2)); - assign_map.insert(std::make_pair(std::string("cim:ExcDC1A.exclim"), &assign_ExcDC1A_exclim)); - assign_map.insert(std::make_pair(std::string("cim:ExcDC1A.efdmin"), &assign_ExcDC1A_efdmin)); - assign_map.insert(std::make_pair(std::string("cim:ExcDC1A.edfmax"), &assign_ExcDC1A_edfmax)); -} - -void ExcDC1A::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char ExcDC1A::debugName[] = "ExcDC1A"; -const char* ExcDC1A::debugString() -{ - return ExcDC1A::debugName; -} - -const BaseClassDefiner ExcDC1A::declare() -{ - return BaseClassDefiner(ExcDC1A::addConstructToMap, ExcDC1A::addPrimitiveAssignFnsToMap, ExcDC1A::addClassAssignFnsToMap, ExcDC1A::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ExcDC1A.hpp b/CGMES_2.4.13_18DEC2013/ExcDC1A.hpp deleted file mode 100644 index e6e48e170..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcDC1A.hpp +++ /dev/null @@ -1,60 +0,0 @@ -#ifndef ExcDC1A_H -#define ExcDC1A_H - -#include "ExcitationSystemDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "Seconds.hpp" -#include "Simple_Float.hpp" -#include "Boolean.hpp" - -namespace CIMPP { - - - /* - Modified IEEE DC1A direct current commutator exciter with speed input and without underexcitation limiters (UEL) inputs. - */ - class ExcDC1A: public ExcitationSystemDynamics - { - - public: - CIMPP::PU ka; /* Voltage regulator gain (Ka). Typical Value = 46. Default: nullptr */ - CIMPP::PU ks; /* Coefficient to allow different usage of the model-speed coefficient (Ks). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds ta; /* Voltage regulator time constant (Ta). Typical Value = 0.06. Default: nullptr */ - CIMPP::Seconds tb; /* Voltage regulator time constant (Tb). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tc; /* Voltage regulator time constant (Tc). Typical Value = 0. Default: nullptr */ - CIMPP::PU vrmax; /* Maximum voltage regulator output (Vrmax). Typical Value = 1. Default: nullptr */ - CIMPP::PU vrmin; /* Minimum voltage regulator output (Vrmin). Typical Value = -0.9. Default: nullptr */ - CIMPP::PU ke; /* Exciter constant related to self-excited field (Ke). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds te; /* Exciter time constant, integration rate associated with exciter control (Te). Typical Value = 0.46. Default: nullptr */ - CIMPP::PU kf; /* Excitation control system stabilizer gain (Kf). Typical Value = 0.1. Default: nullptr */ - CIMPP::Seconds tf; /* Excitation control system stabilizer time constant (Tf). Typical Value = 1. Default: nullptr */ - CIMPP::PU efd1; /* Exciter voltage at which exciter saturation is defined (Efd1). Typical Value = 3.1. Default: nullptr */ - CIMPP::Simple_Float seefd1; /* Exciter saturation function value at the corresponding exciter voltage, Efd1 (Se[Eefd1]). Typical Value = 0.33. Default: nullptr */ - CIMPP::PU efd2; /* Exciter voltage at which exciter saturation is defined (Efd2). Typical Value = 2.3. Default: nullptr */ - CIMPP::Simple_Float seefd2; /* Exciter saturation function value at the corresponding exciter voltage, Efd1 (Se[Eefd1]). Typical Value = 0.33. Default: nullptr */ - CIMPP::Boolean exclim; /* (exclim). IEEE standard is ambiguous about lower limit on exciter output. true = a lower limit of zero is applied to integrator output false = a lower limit of zero is not applied to integrator output. Typical Value = true. Default: false */ - CIMPP::PU efdmin; /* Minimum voltage exciter output limiter (Efdmin). Typical Value = -99. Default: nullptr */ - CIMPP::PU edfmax; /* Maximum voltage exciter output limiter (Efdmax). Typical Value = 99. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ExcDC1A(); - virtual ~ExcDC1A(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ExcDC1A_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ExcDC2A.cpp b/CGMES_2.4.13_18DEC2013/ExcDC2A.cpp deleted file mode 100644 index 900c9922f..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcDC2A.cpp +++ /dev/null @@ -1,311 +0,0 @@ -#include -#include "ExcitationSystemDynamics.hpp" -#include "ExcDC2A.hpp" - -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "Boolean.hpp" -#include "Boolean.hpp" - -using namespace CIMPP; - -ExcDC2A::ExcDC2A() {}; - -ExcDC2A::~ExcDC2A() {}; - - - - - - - - - - - - - - - - - - - - - -bool assign_ExcDC2A_ka(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ka; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcDC2A_ks(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ks; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcDC2A_ta(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ta; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcDC2A_tb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcDC2A_tc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcDC2A_vrmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcDC2A_vrmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcDC2A_ke(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ke; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcDC2A_te(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->te; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcDC2A_kf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcDC2A_tf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcDC2A_tf1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tf1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcDC2A_efd1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->efd1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcDC2A_seefd1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->seefd1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcDC2A_efd2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->efd2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcDC2A_seefd2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->seefd2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcDC2A_exclim(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->exclim; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcDC2A_vtlim(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vtlim; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ExcDC2A_factory() { - return new ExcDC2A; - } -} - -void ExcDC2A::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ExcDC2A"), &ExcDC2A_factory)); -} - -void ExcDC2A::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ExcDC2A.ka"), &assign_ExcDC2A_ka)); - assign_map.insert(std::make_pair(std::string("cim:ExcDC2A.ks"), &assign_ExcDC2A_ks)); - assign_map.insert(std::make_pair(std::string("cim:ExcDC2A.ta"), &assign_ExcDC2A_ta)); - assign_map.insert(std::make_pair(std::string("cim:ExcDC2A.tb"), &assign_ExcDC2A_tb)); - assign_map.insert(std::make_pair(std::string("cim:ExcDC2A.tc"), &assign_ExcDC2A_tc)); - assign_map.insert(std::make_pair(std::string("cim:ExcDC2A.vrmax"), &assign_ExcDC2A_vrmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcDC2A.vrmin"), &assign_ExcDC2A_vrmin)); - assign_map.insert(std::make_pair(std::string("cim:ExcDC2A.ke"), &assign_ExcDC2A_ke)); - assign_map.insert(std::make_pair(std::string("cim:ExcDC2A.te"), &assign_ExcDC2A_te)); - assign_map.insert(std::make_pair(std::string("cim:ExcDC2A.kf"), &assign_ExcDC2A_kf)); - assign_map.insert(std::make_pair(std::string("cim:ExcDC2A.tf"), &assign_ExcDC2A_tf)); - assign_map.insert(std::make_pair(std::string("cim:ExcDC2A.tf1"), &assign_ExcDC2A_tf1)); - assign_map.insert(std::make_pair(std::string("cim:ExcDC2A.efd1"), &assign_ExcDC2A_efd1)); - assign_map.insert(std::make_pair(std::string("cim:ExcDC2A.seefd1"), &assign_ExcDC2A_seefd1)); - assign_map.insert(std::make_pair(std::string("cim:ExcDC2A.efd2"), &assign_ExcDC2A_efd2)); - assign_map.insert(std::make_pair(std::string("cim:ExcDC2A.seefd2"), &assign_ExcDC2A_seefd2)); - assign_map.insert(std::make_pair(std::string("cim:ExcDC2A.exclim"), &assign_ExcDC2A_exclim)); - assign_map.insert(std::make_pair(std::string("cim:ExcDC2A.vtlim"), &assign_ExcDC2A_vtlim)); -} - -void ExcDC2A::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char ExcDC2A::debugName[] = "ExcDC2A"; -const char* ExcDC2A::debugString() -{ - return ExcDC2A::debugName; -} - -const BaseClassDefiner ExcDC2A::declare() -{ - return BaseClassDefiner(ExcDC2A::addConstructToMap, ExcDC2A::addPrimitiveAssignFnsToMap, ExcDC2A::addClassAssignFnsToMap, ExcDC2A::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ExcDC2A.hpp b/CGMES_2.4.13_18DEC2013/ExcDC2A.hpp deleted file mode 100644 index c9b7870fe..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcDC2A.hpp +++ /dev/null @@ -1,60 +0,0 @@ -#ifndef ExcDC2A_H -#define ExcDC2A_H - -#include "ExcitationSystemDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "Seconds.hpp" -#include "Simple_Float.hpp" -#include "Boolean.hpp" - -namespace CIMPP { - - - /* - Modified IEEE DC2A direct current commutator exciters with speed input, one more leg block in feedback loop and without underexcitation limiters (UEL) inputs. DC type 2 excitation system model with added speed multiplier, added lead-lag, and voltage-dependent limits. - */ - class ExcDC2A: public ExcitationSystemDynamics - { - - public: - CIMPP::PU ka; /* Voltage regulator gain (Ka). Typical Value = 300. Default: nullptr */ - CIMPP::PU ks; /* Coefficient to allow different usage of the model-speed coefficient (Ks). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds ta; /* Voltage regulator time constant (Ta). Typical Value = 0.01. Default: nullptr */ - CIMPP::Seconds tb; /* Voltage regulator time constant (Tb). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tc; /* Voltage regulator time constant (Tc). Typical Value = 0. Default: nullptr */ - CIMPP::PU vrmax; /* Maximum voltage regulator output (Vrmax). Typical Value = 4.95. Default: nullptr */ - CIMPP::PU vrmin; /* Minimum voltage regulator output (Vrmin). Typical Value = -4.9. Default: nullptr */ - CIMPP::PU ke; /* Exciter constant related to self-excited field (Ke). If Ke is entered as zero, the model calculates an effective value of Ke such that the initial condition value of Vr is zero. The zero value of Ke is not changed. If Ke is entered as non-zero, its value is used directly, without change. Typical Value = 1. Default: nullptr */ - CIMPP::Seconds te; /* Exciter time constant, integration rate associated with exciter control (Te). Typical Value = 1.33. Default: nullptr */ - CIMPP::PU kf; /* Excitation control system stabilizer gain (Kf). Typical Value = 0.1. Default: nullptr */ - CIMPP::Seconds tf; /* Excitation control system stabilizer time constant (Tf). Typical Value = 0.675. Default: nullptr */ - CIMPP::Seconds tf1; /* Excitation control system stabilizer time constant (Tf1). Typical Value = 0. Default: nullptr */ - CIMPP::PU efd1; /* Exciter voltage at which exciter saturation is defined (Efd1). Typical Value = 3.05. Default: nullptr */ - CIMPP::Simple_Float seefd1; /* Exciter saturation function value at the corresponding exciter voltage, Efd1 (Se[Eefd1]). Typical Value = 0.279. Default: nullptr */ - CIMPP::PU efd2; /* Exciter voltage at which exciter saturation is defined (Efd2). Typical Value = 2.29. Default: nullptr */ - CIMPP::Simple_Float seefd2; /* Exciter saturation function value at the corresponding exciter voltage, Efd2 (Se[Efd2]). Typical Value = 0.117. Default: nullptr */ - CIMPP::Boolean exclim; /* (exclim). IEEE standard is ambiguous about lower limit on exciter output. true = a lower limit of zero is applied to integrator output false = a lower limit of zero is not applied to integrator output. Typical Value = true. Default: false */ - CIMPP::Boolean vtlim; /* (Vtlim). true = limiter at the block [Ka/(1+sTa)] is dependent on Vt false = limiter at the block is not dependent on Vt. Typical Value = true. Default: false */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ExcDC2A(); - virtual ~ExcDC2A(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ExcDC2A_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ExcDC3A.cpp b/CGMES_2.4.13_18DEC2013/ExcDC3A.cpp deleted file mode 100644 index f70b0dd69..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcDC3A.cpp +++ /dev/null @@ -1,281 +0,0 @@ -#include -#include "ExcitationSystemDynamics.hpp" -#include "ExcDC3A.hpp" - -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "Boolean.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Boolean.hpp" - -using namespace CIMPP; - -ExcDC3A::ExcDC3A() {}; - -ExcDC3A::~ExcDC3A() {}; - - - - - - - - - - - - - - - - - - - -bool assign_ExcDC3A_trh(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->trh; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcDC3A_ks(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ks; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcDC3A_kr(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kr; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcDC3A_kv(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kv; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcDC3A_vrmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcDC3A_vrmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcDC3A_te(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->te; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcDC3A_ke(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ke; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcDC3A_efd1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->efd1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcDC3A_seefd1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->seefd1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcDC3A_efd2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->efd2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcDC3A_seefd2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->seefd2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcDC3A_exclim(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->exclim; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcDC3A_edfmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->edfmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcDC3A_efdmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->efdmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcDC3A_efdlim(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->efdlim; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ExcDC3A_factory() { - return new ExcDC3A; - } -} - -void ExcDC3A::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ExcDC3A"), &ExcDC3A_factory)); -} - -void ExcDC3A::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ExcDC3A.trh"), &assign_ExcDC3A_trh)); - assign_map.insert(std::make_pair(std::string("cim:ExcDC3A.ks"), &assign_ExcDC3A_ks)); - assign_map.insert(std::make_pair(std::string("cim:ExcDC3A.kr"), &assign_ExcDC3A_kr)); - assign_map.insert(std::make_pair(std::string("cim:ExcDC3A.kv"), &assign_ExcDC3A_kv)); - assign_map.insert(std::make_pair(std::string("cim:ExcDC3A.vrmax"), &assign_ExcDC3A_vrmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcDC3A.vrmin"), &assign_ExcDC3A_vrmin)); - assign_map.insert(std::make_pair(std::string("cim:ExcDC3A.te"), &assign_ExcDC3A_te)); - assign_map.insert(std::make_pair(std::string("cim:ExcDC3A.ke"), &assign_ExcDC3A_ke)); - assign_map.insert(std::make_pair(std::string("cim:ExcDC3A.efd1"), &assign_ExcDC3A_efd1)); - assign_map.insert(std::make_pair(std::string("cim:ExcDC3A.seefd1"), &assign_ExcDC3A_seefd1)); - assign_map.insert(std::make_pair(std::string("cim:ExcDC3A.efd2"), &assign_ExcDC3A_efd2)); - assign_map.insert(std::make_pair(std::string("cim:ExcDC3A.seefd2"), &assign_ExcDC3A_seefd2)); - assign_map.insert(std::make_pair(std::string("cim:ExcDC3A.exclim"), &assign_ExcDC3A_exclim)); - assign_map.insert(std::make_pair(std::string("cim:ExcDC3A.edfmax"), &assign_ExcDC3A_edfmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcDC3A.efdmin"), &assign_ExcDC3A_efdmin)); - assign_map.insert(std::make_pair(std::string("cim:ExcDC3A.efdlim"), &assign_ExcDC3A_efdlim)); -} - -void ExcDC3A::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char ExcDC3A::debugName[] = "ExcDC3A"; -const char* ExcDC3A::debugString() -{ - return ExcDC3A::debugName; -} - -const BaseClassDefiner ExcDC3A::declare() -{ - return BaseClassDefiner(ExcDC3A::addConstructToMap, ExcDC3A::addPrimitiveAssignFnsToMap, ExcDC3A::addClassAssignFnsToMap, ExcDC3A::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ExcDC3A.hpp b/CGMES_2.4.13_18DEC2013/ExcDC3A.hpp deleted file mode 100644 index a3aea0247..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcDC3A.hpp +++ /dev/null @@ -1,58 +0,0 @@ -#ifndef ExcDC3A_H -#define ExcDC3A_H - -#include "ExcitationSystemDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Seconds.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "Boolean.hpp" - -namespace CIMPP { - - - /* - This is modified IEEE DC3A direct current commutator exciters with speed input, and death band. DC old type 4. - */ - class ExcDC3A: public ExcitationSystemDynamics - { - - public: - CIMPP::Seconds trh; /* Rheostat travel time (Trh). Typical Value = 20. Default: nullptr */ - CIMPP::PU ks; /* Coefficient to allow different usage of the model-speed coefficient (Ks). Typical Value = 0. Default: nullptr */ - CIMPP::PU kr; /* Death band (Kr). If Kr is not zero, the voltage regulator input changes at a constant rate if Verr > Kr or Verr < -Kr as per the IEEE (1968) Type 4 model. If Kr is zero, the error signal drives the voltage regulator continuously as per the IEEE (1980) DC3 and IEEE (1992, 2005) DC3A models. Typical Value = 0. Default: nullptr */ - CIMPP::PU kv; /* Fast raise/lower contact setting (Kv). Typical Value = 0.05. Default: nullptr */ - CIMPP::PU vrmax; /* Maximum voltage regulator output (Vrmax). Typical Value = 5. Default: nullptr */ - CIMPP::PU vrmin; /* Minimum voltage regulator output (Vrmin). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds te; /* Exciter time constant, integration rate associated with exciter control (Te). Typical Value = 1.83. Default: nullptr */ - CIMPP::PU ke; /* Exciter constant related to self-excited field (Ke). Typical Value = 1. Default: nullptr */ - CIMPP::PU efd1; /* Exciter voltage at which exciter saturation is defined (Efd1). Typical Value = 2.6. Default: nullptr */ - CIMPP::Simple_Float seefd1; /* Exciter saturation function value at the corresponding exciter voltage, Efd1 (Se[Eefd1]). Typical Value = 0.1. Default: nullptr */ - CIMPP::PU efd2; /* Exciter voltage at which exciter saturation is defined (Efd2). Typical Value = 3.45. Default: nullptr */ - CIMPP::Simple_Float seefd2; /* Exciter saturation function value at the corresponding exciter voltage, Efd2 (Se[Efd2]). Typical Value = 0.35. Default: nullptr */ - CIMPP::Boolean exclim; /* (exclim). IEEE standard is ambiguous about lower limit on exciter output. true = a lower limit of zero is applied to integrator output false = a lower limit of zero not applied to integrator output. Typical Value = true. Default: false */ - CIMPP::PU edfmax; /* Maximum voltage exciter output limiter (Efdmax). Typical Value = 99. Default: nullptr */ - CIMPP::PU efdmin; /* Minimum voltage exciter output limiter (Efdmin). Typical Value = -99. Default: nullptr */ - CIMPP::Boolean efdlim; /* (Efdlim). true = exciter output limiter is active false = exciter output limiter not active. Typical Value = true. Default: false */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ExcDC3A(); - virtual ~ExcDC3A(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ExcDC3A_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ExcDC3A1.cpp b/CGMES_2.4.13_18DEC2013/ExcDC3A1.cpp deleted file mode 100644 index dedb8aa31..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcDC3A1.cpp +++ /dev/null @@ -1,251 +0,0 @@ -#include -#include "ExcitationSystemDynamics.hpp" -#include "ExcDC3A1.hpp" - -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Boolean.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Boolean.hpp" - -using namespace CIMPP; - -ExcDC3A1::ExcDC3A1() {}; - -ExcDC3A1::~ExcDC3A1() {}; - - - - - - - - - - - - - - - - - -bool assign_ExcDC3A1_ka(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC3A1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ka; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcDC3A1_ta(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC3A1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ta; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcDC3A1_vrmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC3A1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcDC3A1_vrmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC3A1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcDC3A1_te(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC3A1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->te; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcDC3A1_kf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC3A1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcDC3A1_tf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC3A1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcDC3A1_kp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC3A1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcDC3A1_ki(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC3A1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ki; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcDC3A1_vbmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC3A1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vbmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcDC3A1_exclim(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC3A1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->exclim; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcDC3A1_ke(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC3A1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ke; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcDC3A1_vb1max(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC3A1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vb1max; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcDC3A1_vblim(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcDC3A1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vblim; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ExcDC3A1_factory() { - return new ExcDC3A1; - } -} - -void ExcDC3A1::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ExcDC3A1"), &ExcDC3A1_factory)); -} - -void ExcDC3A1::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ExcDC3A1.ka"), &assign_ExcDC3A1_ka)); - assign_map.insert(std::make_pair(std::string("cim:ExcDC3A1.ta"), &assign_ExcDC3A1_ta)); - assign_map.insert(std::make_pair(std::string("cim:ExcDC3A1.vrmax"), &assign_ExcDC3A1_vrmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcDC3A1.vrmin"), &assign_ExcDC3A1_vrmin)); - assign_map.insert(std::make_pair(std::string("cim:ExcDC3A1.te"), &assign_ExcDC3A1_te)); - assign_map.insert(std::make_pair(std::string("cim:ExcDC3A1.kf"), &assign_ExcDC3A1_kf)); - assign_map.insert(std::make_pair(std::string("cim:ExcDC3A1.tf"), &assign_ExcDC3A1_tf)); - assign_map.insert(std::make_pair(std::string("cim:ExcDC3A1.kp"), &assign_ExcDC3A1_kp)); - assign_map.insert(std::make_pair(std::string("cim:ExcDC3A1.ki"), &assign_ExcDC3A1_ki)); - assign_map.insert(std::make_pair(std::string("cim:ExcDC3A1.vbmax"), &assign_ExcDC3A1_vbmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcDC3A1.exclim"), &assign_ExcDC3A1_exclim)); - assign_map.insert(std::make_pair(std::string("cim:ExcDC3A1.ke"), &assign_ExcDC3A1_ke)); - assign_map.insert(std::make_pair(std::string("cim:ExcDC3A1.vb1max"), &assign_ExcDC3A1_vb1max)); - assign_map.insert(std::make_pair(std::string("cim:ExcDC3A1.vblim"), &assign_ExcDC3A1_vblim)); -} - -void ExcDC3A1::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char ExcDC3A1::debugName[] = "ExcDC3A1"; -const char* ExcDC3A1::debugString() -{ - return ExcDC3A1::debugName; -} - -const BaseClassDefiner ExcDC3A1::declare() -{ - return BaseClassDefiner(ExcDC3A1::addConstructToMap, ExcDC3A1::addPrimitiveAssignFnsToMap, ExcDC3A1::addClassAssignFnsToMap, ExcDC3A1::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ExcDC3A1.hpp b/CGMES_2.4.13_18DEC2013/ExcDC3A1.hpp deleted file mode 100644 index e369d70c1..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcDC3A1.hpp +++ /dev/null @@ -1,55 +0,0 @@ -#ifndef ExcDC3A1_H -#define ExcDC3A1_H - -#include "ExcitationSystemDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "Seconds.hpp" -#include "Boolean.hpp" - -namespace CIMPP { - - - /* - This is modified old IEEE type 3 excitation system. - */ - class ExcDC3A1: public ExcitationSystemDynamics - { - - public: - CIMPP::PU ka; /* Voltage regulator gain (Ka). Typical Value = 300. Default: nullptr */ - CIMPP::Seconds ta; /* Voltage regulator time constant (Ta). Typical Value = 0.01. Default: nullptr */ - CIMPP::PU vrmax; /* Maximum voltage regulator output (Vrmax). Typical Value = 5. Default: nullptr */ - CIMPP::PU vrmin; /* Minimum voltage regulator output (Vrmin). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds te; /* Exciter time constant, integration rate associated with exciter control (Te). Typical Value = 1.83. Default: nullptr */ - CIMPP::PU kf; /* Excitation control system stabilizer gain (Kf). Typical Value = 0.1. Default: nullptr */ - CIMPP::Seconds tf; /* Excitation control system stabilizer time constant (Tf). Typical Value = 0.675. Default: nullptr */ - CIMPP::PU kp; /* Potential circuit gain coefficient (Kp). Typical Value = 4.37. Default: nullptr */ - CIMPP::PU ki; /* Potential circuit gain coefficient (Ki). Typical Value = 4.83. Default: nullptr */ - CIMPP::PU vbmax; /* Available exciter voltage limiter (Vbmax). Typical Value = 11.63. Default: nullptr */ - CIMPP::Boolean exclim; /* (exclim). true = lower limit of zero is applied to integrator output false = lower limit of zero not applied to integrator output. Typical Value = true. Default: false */ - CIMPP::PU ke; /* Exciter constant related to self-excited field (Ke). Typical Value = 1. Default: nullptr */ - CIMPP::PU vb1max; /* Available exciter voltage limiter (Vb1max). Typical Value = 11.63. Default: nullptr */ - CIMPP::Boolean vblim; /* Vb limiter indicator. true = exciter Vbmax limiter is active false = Vb1max is active. Typical Value = true. Default: false */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ExcDC3A1(); - virtual ~ExcDC3A1(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ExcDC3A1_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ExcELIN1.cpp b/CGMES_2.4.13_18DEC2013/ExcELIN1.cpp deleted file mode 100644 index 27c474b7a..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcELIN1.cpp +++ /dev/null @@ -1,266 +0,0 @@ -#include -#include "ExcitationSystemDynamics.hpp" -#include "ExcELIN1.hpp" - -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -ExcELIN1::ExcELIN1() {}; - -ExcELIN1::~ExcELIN1() {}; - - - - - - - - - - - - - - - - - - -bool assign_ExcELIN1_tfi(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcELIN1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tfi; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcELIN1_tnu(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcELIN1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tnu; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcELIN1_vpu(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcELIN1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vpu; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcELIN1_vpi(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcELIN1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vpi; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcELIN1_vpnf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcELIN1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vpnf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcELIN1_dpnf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcELIN1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->dpnf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcELIN1_tsw(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcELIN1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tsw; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcELIN1_efmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcELIN1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->efmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcELIN1_efmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcELIN1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->efmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcELIN1_xe(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcELIN1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->xe; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcELIN1_ks1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcELIN1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ks1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcELIN1_ks2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcELIN1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ks2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcELIN1_ts1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcELIN1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ts1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcELIN1_ts2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcELIN1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ts2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcELIN1_smax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcELIN1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->smax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ExcELIN1_factory() { - return new ExcELIN1; - } -} - -void ExcELIN1::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ExcELIN1"), &ExcELIN1_factory)); -} - -void ExcELIN1::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ExcELIN1.tfi"), &assign_ExcELIN1_tfi)); - assign_map.insert(std::make_pair(std::string("cim:ExcELIN1.tnu"), &assign_ExcELIN1_tnu)); - assign_map.insert(std::make_pair(std::string("cim:ExcELIN1.vpu"), &assign_ExcELIN1_vpu)); - assign_map.insert(std::make_pair(std::string("cim:ExcELIN1.vpi"), &assign_ExcELIN1_vpi)); - assign_map.insert(std::make_pair(std::string("cim:ExcELIN1.vpnf"), &assign_ExcELIN1_vpnf)); - assign_map.insert(std::make_pair(std::string("cim:ExcELIN1.dpnf"), &assign_ExcELIN1_dpnf)); - assign_map.insert(std::make_pair(std::string("cim:ExcELIN1.tsw"), &assign_ExcELIN1_tsw)); - assign_map.insert(std::make_pair(std::string("cim:ExcELIN1.efmin"), &assign_ExcELIN1_efmin)); - assign_map.insert(std::make_pair(std::string("cim:ExcELIN1.efmax"), &assign_ExcELIN1_efmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcELIN1.xe"), &assign_ExcELIN1_xe)); - assign_map.insert(std::make_pair(std::string("cim:ExcELIN1.ks1"), &assign_ExcELIN1_ks1)); - assign_map.insert(std::make_pair(std::string("cim:ExcELIN1.ks2"), &assign_ExcELIN1_ks2)); - assign_map.insert(std::make_pair(std::string("cim:ExcELIN1.ts1"), &assign_ExcELIN1_ts1)); - assign_map.insert(std::make_pair(std::string("cim:ExcELIN1.ts2"), &assign_ExcELIN1_ts2)); - assign_map.insert(std::make_pair(std::string("cim:ExcELIN1.smax"), &assign_ExcELIN1_smax)); -} - -void ExcELIN1::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char ExcELIN1::debugName[] = "ExcELIN1"; -const char* ExcELIN1::debugString() -{ - return ExcELIN1::debugName; -} - -const BaseClassDefiner ExcELIN1::declare() -{ - return BaseClassDefiner(ExcELIN1::addConstructToMap, ExcELIN1::addPrimitiveAssignFnsToMap, ExcELIN1::addClassAssignFnsToMap, ExcELIN1::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ExcELIN1.hpp b/CGMES_2.4.13_18DEC2013/ExcELIN1.hpp deleted file mode 100644 index 71fdfbc8d..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcELIN1.hpp +++ /dev/null @@ -1,55 +0,0 @@ -#ifndef ExcELIN1_H -#define ExcELIN1_H - -#include "ExcitationSystemDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Seconds.hpp" -#include "PU.hpp" - -namespace CIMPP { - - - /* - Static PI transformer fed excitation system: ELIN (VATECH) - simplified model. This model represents an all-static excitation system. A PI voltage controller establishes a desired field current set point for a proportional current controller. The integrator of the PI controller has a follow-up input to match its signal to the present field current. A power system stabilizer with power input is included in the model. - */ - class ExcELIN1: public ExcitationSystemDynamics - { - - public: - CIMPP::Seconds tfi; /* Current transducer time constant (Tfi). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tnu; /* Controller reset time constant (Tnu). Typical Value = 2. Default: nullptr */ - CIMPP::PU vpu; /* Voltage controller proportional gain (Vpu). Typical Value = 34.5. Default: nullptr */ - CIMPP::PU vpi; /* Current controller gain (Vpi). Typical Value = 12.45. Default: nullptr */ - CIMPP::PU vpnf; /* Controller follow up gain (Vpnf). Typical Value = 2. Default: nullptr */ - CIMPP::PU dpnf; /* Controller follow up dead band (Dpnf). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tsw; /* Stabilizer parameters (Tsw). Typical Value = 3. Default: nullptr */ - CIMPP::PU efmin; /* Minimum open circuit excitation voltage (Efmin). Typical Value = -5. Default: nullptr */ - CIMPP::PU efmax; /* Maximum open circuit excitation voltage (Efmax). Typical Value = 5. Default: nullptr */ - CIMPP::PU xe; /* Excitation transformer effective reactance (Xe) (>=0). Xe represents the regulation of the transformer/rectifier unit. Typical Value = 0.06. Default: nullptr */ - CIMPP::PU ks1; /* Stabilizer Gain 1 (Ks1). Typical Value = 0. Default: nullptr */ - CIMPP::PU ks2; /* Stabilizer Gain 2 (Ks2). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds ts1; /* Stabilizer Phase Lag Time Constant (Ts1). Typical Value = 1. Default: nullptr */ - CIMPP::Seconds ts2; /* Stabilizer Filter Time Constant (Ts2). Typical Value = 1. Default: nullptr */ - CIMPP::PU smax; /* Stabilizer Limit Output (smax). Typical Value = 0.1. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ExcELIN1(); - virtual ~ExcELIN1(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ExcELIN1_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ExcELIN2.cpp b/CGMES_2.4.13_18DEC2013/ExcELIN2.cpp deleted file mode 100644 index fe3f20f63..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcELIN2.cpp +++ /dev/null @@ -1,446 +0,0 @@ -#include -#include "ExcitationSystemDynamics.hpp" -#include "ExcELIN2.hpp" - -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -ExcELIN2::ExcELIN2() {}; - -ExcELIN2::~ExcELIN2() {}; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -bool assign_ExcELIN2_k1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcELIN2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcELIN2_k1ec(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcELIN2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k1ec; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcELIN2_kd1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcELIN2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kd1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcELIN2_tb1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcELIN2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tb1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcELIN2_pid1max(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcELIN2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pid1max; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcELIN2_ti1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcELIN2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ti1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcELIN2_iefmax2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcELIN2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->iefmax2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcELIN2_k2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcELIN2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcELIN2_ketb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcELIN2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ketb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcELIN2_upmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcELIN2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->upmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcELIN2_upmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcELIN2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->upmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcELIN2_te(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcELIN2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->te; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcELIN2_xp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcELIN2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->xp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcELIN2_te2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcELIN2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->te2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcELIN2_ke2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcELIN2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ke2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcELIN2_ve1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcELIN2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ve1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcELIN2_seve1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcELIN2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->seve1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcELIN2_ve2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcELIN2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ve2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcELIN2_seve2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcELIN2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->seve2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcELIN2_tr4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcELIN2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tr4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcELIN2_k3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcELIN2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcELIN2_ti3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcELIN2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ti3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcELIN2_k4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcELIN2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcELIN2_ti4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcELIN2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ti4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcELIN2_iefmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcELIN2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->iefmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcELIN2_iefmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcELIN2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->iefmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcELIN2_efdbas(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcELIN2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->efdbas; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ExcELIN2_factory() { - return new ExcELIN2; - } -} - -void ExcELIN2::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ExcELIN2"), &ExcELIN2_factory)); -} - -void ExcELIN2::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ExcELIN2.k1"), &assign_ExcELIN2_k1)); - assign_map.insert(std::make_pair(std::string("cim:ExcELIN2.k1ec"), &assign_ExcELIN2_k1ec)); - assign_map.insert(std::make_pair(std::string("cim:ExcELIN2.kd1"), &assign_ExcELIN2_kd1)); - assign_map.insert(std::make_pair(std::string("cim:ExcELIN2.tb1"), &assign_ExcELIN2_tb1)); - assign_map.insert(std::make_pair(std::string("cim:ExcELIN2.pid1max"), &assign_ExcELIN2_pid1max)); - assign_map.insert(std::make_pair(std::string("cim:ExcELIN2.ti1"), &assign_ExcELIN2_ti1)); - assign_map.insert(std::make_pair(std::string("cim:ExcELIN2.iefmax2"), &assign_ExcELIN2_iefmax2)); - assign_map.insert(std::make_pair(std::string("cim:ExcELIN2.k2"), &assign_ExcELIN2_k2)); - assign_map.insert(std::make_pair(std::string("cim:ExcELIN2.ketb"), &assign_ExcELIN2_ketb)); - assign_map.insert(std::make_pair(std::string("cim:ExcELIN2.upmax"), &assign_ExcELIN2_upmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcELIN2.upmin"), &assign_ExcELIN2_upmin)); - assign_map.insert(std::make_pair(std::string("cim:ExcELIN2.te"), &assign_ExcELIN2_te)); - assign_map.insert(std::make_pair(std::string("cim:ExcELIN2.xp"), &assign_ExcELIN2_xp)); - assign_map.insert(std::make_pair(std::string("cim:ExcELIN2.te2"), &assign_ExcELIN2_te2)); - assign_map.insert(std::make_pair(std::string("cim:ExcELIN2.ke2"), &assign_ExcELIN2_ke2)); - assign_map.insert(std::make_pair(std::string("cim:ExcELIN2.ve1"), &assign_ExcELIN2_ve1)); - assign_map.insert(std::make_pair(std::string("cim:ExcELIN2.seve1"), &assign_ExcELIN2_seve1)); - assign_map.insert(std::make_pair(std::string("cim:ExcELIN2.ve2"), &assign_ExcELIN2_ve2)); - assign_map.insert(std::make_pair(std::string("cim:ExcELIN2.seve2"), &assign_ExcELIN2_seve2)); - assign_map.insert(std::make_pair(std::string("cim:ExcELIN2.tr4"), &assign_ExcELIN2_tr4)); - assign_map.insert(std::make_pair(std::string("cim:ExcELIN2.k3"), &assign_ExcELIN2_k3)); - assign_map.insert(std::make_pair(std::string("cim:ExcELIN2.ti3"), &assign_ExcELIN2_ti3)); - assign_map.insert(std::make_pair(std::string("cim:ExcELIN2.k4"), &assign_ExcELIN2_k4)); - assign_map.insert(std::make_pair(std::string("cim:ExcELIN2.ti4"), &assign_ExcELIN2_ti4)); - assign_map.insert(std::make_pair(std::string("cim:ExcELIN2.iefmax"), &assign_ExcELIN2_iefmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcELIN2.iefmin"), &assign_ExcELIN2_iefmin)); - assign_map.insert(std::make_pair(std::string("cim:ExcELIN2.efdbas"), &assign_ExcELIN2_efdbas)); -} - -void ExcELIN2::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char ExcELIN2::debugName[] = "ExcELIN2"; -const char* ExcELIN2::debugString() -{ - return ExcELIN2::debugName; -} - -const BaseClassDefiner ExcELIN2::declare() -{ - return BaseClassDefiner(ExcELIN2::addConstructToMap, ExcELIN2::addPrimitiveAssignFnsToMap, ExcELIN2::addClassAssignFnsToMap, ExcELIN2::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ExcELIN2.hpp b/CGMES_2.4.13_18DEC2013/ExcELIN2.hpp deleted file mode 100644 index 263089f20..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcELIN2.hpp +++ /dev/null @@ -1,67 +0,0 @@ -#ifndef ExcELIN2_H -#define ExcELIN2_H - -#include "ExcitationSystemDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "Seconds.hpp" - -namespace CIMPP { - - - /* - Detailed Excitation System Model - ELIN (VATECH). This model represents an all-static excitation system. A PI voltage controller establishes a desired field current set point for a proportional current controller. The integrator of the PI controller has a follow-up input to match its signal to the present field current. Power system stabilizer models used in conjunction with this excitation system model: PssELIN2, PssIEEE2B, Pss2B. - */ - class ExcELIN2: public ExcitationSystemDynamics - { - - public: - CIMPP::PU k1; /* Voltage regulator input gain (K1). Typical Value = 0. Default: nullptr */ - CIMPP::PU k1ec; /* Voltage regulator input limit (K1ec). Typical Value = 2. Default: nullptr */ - CIMPP::PU kd1; /* Voltage controller derivative gain (Kd1). Typical Value = 34.5. Default: nullptr */ - CIMPP::Seconds tb1; /* Voltage controller derivative washout time constant (Tb1). Typical Value = 12.45. Default: nullptr */ - CIMPP::PU pid1max; /* Controller follow up gain (PID1max). Typical Value = 2. Default: nullptr */ - CIMPP::PU ti1; /* Controller follow up dead band (Ti1). Typical Value = 0. Default: nullptr */ - CIMPP::PU iefmax2; /* Minimum open circuit excitation voltage (Iefmax2). Typical Value = -5. Default: nullptr */ - CIMPP::PU k2; /* Gain (K2). Typical Value = 5. Default: nullptr */ - CIMPP::PU ketb; /* Gain (Ketb). Typical Value = 0.06. Default: nullptr */ - CIMPP::PU upmax; /* Limiter (Upmax). Typical Value = 3. Default: nullptr */ - CIMPP::PU upmin; /* Limiter (Upmin). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds te; /* Time constant (Te). Typical Value = 0. Default: nullptr */ - CIMPP::PU xp; /* Excitation transformer effective reactance (Xp). Typical Value = 1. Default: nullptr */ - CIMPP::Seconds te2; /* Time Constant (Te2). Typical Value = 1. Default: nullptr */ - CIMPP::PU ke2; /* Gain (Ke2). Typical Value = 0.1. Default: nullptr */ - CIMPP::PU ve1; /* Exciter alternator output voltages back of commutating reactance at which saturation is defined (Ve1). Typical Value = 3. Default: nullptr */ - CIMPP::PU seve1; /* Exciter saturation function value at the corresponding exciter voltage, Ve1, back of commutating reactance (Se[Ve1]). Typical Value = 0. Default: nullptr */ - CIMPP::PU ve2; /* Exciter alternator output voltages back of commutating reactance at which saturation is defined (Ve2). Typical Value = 0. Default: nullptr */ - CIMPP::PU seve2; /* Exciter saturation function value at the corresponding exciter voltage, Ve2, back of commutating reactance (Se[Ve2]). Typical Value = 1. Default: nullptr */ - CIMPP::Seconds tr4; /* Time constant (Tr4). Typical Value = 1. Default: nullptr */ - CIMPP::PU k3; /* Gain (K3). Typical Value = 0.1. Default: nullptr */ - CIMPP::Seconds ti3; /* Time constant (Ti3). Typical Value = 3. Default: nullptr */ - CIMPP::PU k4; /* Gain (K4). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds ti4; /* Time constant (Ti4). Typical Value = 0. Default: nullptr */ - CIMPP::PU iefmax; /* Limiter (Iefmax). Typical Value = 1. Default: nullptr */ - CIMPP::PU iefmin; /* Limiter (Iefmin). Typical Value = 1. Default: nullptr */ - CIMPP::PU efdbas; /* Gain (Efdbas). Typical Value = 0.1. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ExcELIN2(); - virtual ~ExcELIN2(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ExcELIN2_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ExcHU.cpp b/CGMES_2.4.13_18DEC2013/ExcHU.cpp deleted file mode 100644 index c85043c06..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcHU.cpp +++ /dev/null @@ -1,221 +0,0 @@ -#include -#include "ExcitationSystemDynamics.hpp" -#include "ExcHU.hpp" - -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" - -using namespace CIMPP; - -ExcHU::ExcHU() {}; - -ExcHU::~ExcHU() {}; - - - - - - - - - - - - - - - -bool assign_ExcHU_tr(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcHU* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tr; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcHU_te(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcHU* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->te; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcHU_imin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcHU* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->imin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcHU_imax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcHU* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->imax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcHU_ae(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcHU* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ae; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcHU_emin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcHU* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->emin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcHU_emax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcHU* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->emax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcHU_ki(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcHU* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ki; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcHU_ai(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcHU* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ai; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcHU_ti(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcHU* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ti; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcHU_atr(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcHU* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->atr; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcHU_ke(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcHU* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ke; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ExcHU_factory() { - return new ExcHU; - } -} - -void ExcHU::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ExcHU"), &ExcHU_factory)); -} - -void ExcHU::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ExcHU.tr"), &assign_ExcHU_tr)); - assign_map.insert(std::make_pair(std::string("cim:ExcHU.te"), &assign_ExcHU_te)); - assign_map.insert(std::make_pair(std::string("cim:ExcHU.imin"), &assign_ExcHU_imin)); - assign_map.insert(std::make_pair(std::string("cim:ExcHU.imax"), &assign_ExcHU_imax)); - assign_map.insert(std::make_pair(std::string("cim:ExcHU.ae"), &assign_ExcHU_ae)); - assign_map.insert(std::make_pair(std::string("cim:ExcHU.emin"), &assign_ExcHU_emin)); - assign_map.insert(std::make_pair(std::string("cim:ExcHU.emax"), &assign_ExcHU_emax)); - assign_map.insert(std::make_pair(std::string("cim:ExcHU.ki"), &assign_ExcHU_ki)); - assign_map.insert(std::make_pair(std::string("cim:ExcHU.ai"), &assign_ExcHU_ai)); - assign_map.insert(std::make_pair(std::string("cim:ExcHU.ti"), &assign_ExcHU_ti)); - assign_map.insert(std::make_pair(std::string("cim:ExcHU.atr"), &assign_ExcHU_atr)); - assign_map.insert(std::make_pair(std::string("cim:ExcHU.ke"), &assign_ExcHU_ke)); -} - -void ExcHU::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char ExcHU::debugName[] = "ExcHU"; -const char* ExcHU::debugString() -{ - return ExcHU::debugName; -} - -const BaseClassDefiner ExcHU::declare() -{ - return BaseClassDefiner(ExcHU::addConstructToMap, ExcHU::addPrimitiveAssignFnsToMap, ExcHU::addClassAssignFnsToMap, ExcHU::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ExcHU.hpp b/CGMES_2.4.13_18DEC2013/ExcHU.hpp deleted file mode 100644 index 748474e64..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcHU.hpp +++ /dev/null @@ -1,53 +0,0 @@ -#ifndef ExcHU_H -#define ExcHU_H - -#include "ExcitationSystemDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Seconds.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" - -namespace CIMPP { - - - /* - Hungarian Excitation System Model, with built-in voltage transducer. - */ - class ExcHU: public ExcitationSystemDynamics - { - - public: - CIMPP::Seconds tr; /* Filter time constant (Tr). If a voltage compensator is used in conjunction with this excitation system model, Tr should be set to 0. Typical Value = 0.01. Default: nullptr */ - CIMPP::Seconds te; /* Major loop PI tag integration time constant (Te). Typical Value = 0.154. Default: nullptr */ - CIMPP::PU imin; /* Major loop PI tag output signal lower limit (Imin). Typical Value = 0.1. Default: nullptr */ - CIMPP::PU imax; /* Major loop PI tag output signal upper limit (Imax). Typical Value = 2.19. Default: nullptr */ - CIMPP::PU ae; /* Major loop PI tag gain factor (Ae). Typical Value = 3. Default: nullptr */ - CIMPP::PU emin; /* Field voltage control signal lower limit on AVR base (Emin). Typical Value = -0.866. Default: nullptr */ - CIMPP::PU emax; /* Field voltage control signal upper limit on AVR base (Emax). Typical Value = 0.996. Default: nullptr */ - CIMPP::Simple_Float ki; /* Current base conversion constant (Ki). Typical Value = 0.21428. Default: nullptr */ - CIMPP::PU ai; /* Minor loop PI tag gain factor (Ai). Typical Value = 22. Default: nullptr */ - CIMPP::Seconds ti; /* Minor loop PI control tag integration time constant (Ti). Typical Value = 0.01333. Default: nullptr */ - CIMPP::PU atr; /* AVR constant (Atr). Typical Value = 2.19. Default: nullptr */ - CIMPP::Simple_Float ke; /* Voltage base conversion constant (Ke). Typical Value = 4.666. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ExcHU(); - virtual ~ExcHU(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ExcHU_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ExcIEEEAC1A.cpp b/CGMES_2.4.13_18DEC2013/ExcIEEEAC1A.cpp deleted file mode 100644 index f6a581bb0..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcIEEEAC1A.cpp +++ /dev/null @@ -1,311 +0,0 @@ -#include -#include "ExcitationSystemDynamics.hpp" -#include "ExcIEEEAC1A.hpp" - -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -ExcIEEEAC1A::ExcIEEEAC1A() {}; - -ExcIEEEAC1A::~ExcIEEEAC1A() {}; - - - - - - - - - - - - - - - - - - - - - -bool assign_ExcIEEEAC1A_tb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC1A_tc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC1A_ka(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ka; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC1A_ta(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ta; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC1A_vamax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vamax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC1A_vamin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vamin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC1A_te(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->te; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC1A_kf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC1A_tf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC1A_kc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC1A_kd(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kd; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC1A_ke(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ke; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC1A_ve1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ve1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC1A_seve1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->seve1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC1A_ve2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ve2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC1A_seve2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->seve2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC1A_vrmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC1A_vrmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ExcIEEEAC1A_factory() { - return new ExcIEEEAC1A; - } -} - -void ExcIEEEAC1A::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ExcIEEEAC1A"), &ExcIEEEAC1A_factory)); -} - -void ExcIEEEAC1A::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC1A.tb"), &assign_ExcIEEEAC1A_tb)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC1A.tc"), &assign_ExcIEEEAC1A_tc)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC1A.ka"), &assign_ExcIEEEAC1A_ka)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC1A.ta"), &assign_ExcIEEEAC1A_ta)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC1A.vamax"), &assign_ExcIEEEAC1A_vamax)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC1A.vamin"), &assign_ExcIEEEAC1A_vamin)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC1A.te"), &assign_ExcIEEEAC1A_te)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC1A.kf"), &assign_ExcIEEEAC1A_kf)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC1A.tf"), &assign_ExcIEEEAC1A_tf)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC1A.kc"), &assign_ExcIEEEAC1A_kc)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC1A.kd"), &assign_ExcIEEEAC1A_kd)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC1A.ke"), &assign_ExcIEEEAC1A_ke)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC1A.ve1"), &assign_ExcIEEEAC1A_ve1)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC1A.seve1"), &assign_ExcIEEEAC1A_seve1)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC1A.ve2"), &assign_ExcIEEEAC1A_ve2)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC1A.seve2"), &assign_ExcIEEEAC1A_seve2)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC1A.vrmax"), &assign_ExcIEEEAC1A_vrmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC1A.vrmin"), &assign_ExcIEEEAC1A_vrmin)); -} - -void ExcIEEEAC1A::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char ExcIEEEAC1A::debugName[] = "ExcIEEEAC1A"; -const char* ExcIEEEAC1A::debugString() -{ - return ExcIEEEAC1A::debugName; -} - -const BaseClassDefiner ExcIEEEAC1A::declare() -{ - return BaseClassDefiner(ExcIEEEAC1A::addConstructToMap, ExcIEEEAC1A::addPrimitiveAssignFnsToMap, ExcIEEEAC1A::addClassAssignFnsToMap, ExcIEEEAC1A::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ExcIEEEAC1A.hpp b/CGMES_2.4.13_18DEC2013/ExcIEEEAC1A.hpp deleted file mode 100644 index b2f9a991d..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcIEEEAC1A.hpp +++ /dev/null @@ -1,59 +0,0 @@ -#ifndef ExcIEEEAC1A_H -#define ExcIEEEAC1A_H - -#include "ExcitationSystemDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Seconds.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" - -namespace CIMPP { - - - /* - The class represents IEEE Std 421.5-2005 type AC1A model. The model represents the field-controlled alternator-rectifier excitation systems designated Type AC1A. These excitation systems consist of an alternator main exciter with non-controlled rectifiers. Reference: IEEE Standard 421.5-2005 Section 6.1. - */ - class ExcIEEEAC1A: public ExcitationSystemDynamics - { - - public: - CIMPP::Seconds tb; /* Voltage regulator time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tc; /* Voltage regulator time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::PU ka; /* Voltage regulator gain (K). Typical Value = 400. Default: nullptr */ - CIMPP::Seconds ta; /* Voltage regulator time constant (T). Typical Value = 0.02. Default: nullptr */ - CIMPP::PU vamax; /* Maximum voltage regulator output (V). Typical Value = 14.5. Default: nullptr */ - CIMPP::PU vamin; /* Minimum voltage regulator output (V). Typical Value = -14.5. Default: nullptr */ - CIMPP::Seconds te; /* Exciter time constant, integration rate associated with exciter control (T). Typical Value = 0.8. Default: nullptr */ - CIMPP::PU kf; /* Excitation control system stabilizer gains (K). Typical Value = 0.03. Default: nullptr */ - CIMPP::Seconds tf; /* Excitation control system stabilizer time constant (T). Typical Value = 1. Default: nullptr */ - CIMPP::PU kc; /* Rectifier loading factor proportional to commutating reactance (K). Typical Value = 0.2. Default: nullptr */ - CIMPP::PU kd; /* Demagnetizing factor, a function of exciter alternator reactances (K). Typical Value = 0.38. Default: nullptr */ - CIMPP::PU ke; /* Exciter constant related to self-excited field (K). Typical Value = 1. Default: nullptr */ - CIMPP::PU ve1; /* Exciter alternator output voltages back of commutating reactance at which saturation is defined (V). Typical Value = 4.18. Default: nullptr */ - CIMPP::Simple_Float seve1; /* Exciter saturation function value at the corresponding exciter voltage, V, back of commutating reactance (S[V]). Typical Value = 0.1. Default: nullptr */ - CIMPP::PU ve2; /* Exciter alternator output voltages back of commutating reactance at which saturation is defined (V). Typical Value = 3.14. Default: nullptr */ - CIMPP::Simple_Float seve2; /* Exciter saturation function value at the corresponding exciter voltage, V, back of commutating reactance (S[V]). Typical Value = 0.03. Default: nullptr */ - CIMPP::PU vrmax; /* Maximum voltage regulator outputs (V). Typical Value = 6.03. Default: nullptr */ - CIMPP::PU vrmin; /* Minimum voltage regulator outputs (V). Typical Value = -5.43. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ExcIEEEAC1A(); - virtual ~ExcIEEEAC1A(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ExcIEEEAC1A_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ExcIEEEAC2A.cpp b/CGMES_2.4.13_18DEC2013/ExcIEEEAC2A.cpp deleted file mode 100644 index 787826963..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcIEEEAC2A.cpp +++ /dev/null @@ -1,356 +0,0 @@ -#include -#include "ExcitationSystemDynamics.hpp" -#include "ExcIEEEAC2A.hpp" - -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" - -using namespace CIMPP; - -ExcIEEEAC2A::ExcIEEEAC2A() {}; - -ExcIEEEAC2A::~ExcIEEEAC2A() {}; - - - - - - - - - - - - - - - - - - - - - - - - -bool assign_ExcIEEEAC2A_tb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC2A_tc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC2A_ka(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ka; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC2A_ta(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ta; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC2A_vamax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vamax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC2A_vamin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vamin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC2A_kb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC2A_vrmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC2A_vrmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC2A_te(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->te; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC2A_vfemax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vfemax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC2A_kh(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kh; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC2A_kf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC2A_tf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC2A_kc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC2A_kd(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kd; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC2A_ke(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ke; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC2A_ve1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ve1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC2A_seve1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->seve1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC2A_ve2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ve2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC2A_seve2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->seve2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ExcIEEEAC2A_factory() { - return new ExcIEEEAC2A; - } -} - -void ExcIEEEAC2A::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ExcIEEEAC2A"), &ExcIEEEAC2A_factory)); -} - -void ExcIEEEAC2A::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC2A.tb"), &assign_ExcIEEEAC2A_tb)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC2A.tc"), &assign_ExcIEEEAC2A_tc)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC2A.ka"), &assign_ExcIEEEAC2A_ka)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC2A.ta"), &assign_ExcIEEEAC2A_ta)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC2A.vamax"), &assign_ExcIEEEAC2A_vamax)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC2A.vamin"), &assign_ExcIEEEAC2A_vamin)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC2A.kb"), &assign_ExcIEEEAC2A_kb)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC2A.vrmax"), &assign_ExcIEEEAC2A_vrmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC2A.vrmin"), &assign_ExcIEEEAC2A_vrmin)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC2A.te"), &assign_ExcIEEEAC2A_te)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC2A.vfemax"), &assign_ExcIEEEAC2A_vfemax)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC2A.kh"), &assign_ExcIEEEAC2A_kh)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC2A.kf"), &assign_ExcIEEEAC2A_kf)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC2A.tf"), &assign_ExcIEEEAC2A_tf)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC2A.kc"), &assign_ExcIEEEAC2A_kc)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC2A.kd"), &assign_ExcIEEEAC2A_kd)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC2A.ke"), &assign_ExcIEEEAC2A_ke)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC2A.ve1"), &assign_ExcIEEEAC2A_ve1)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC2A.seve1"), &assign_ExcIEEEAC2A_seve1)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC2A.ve2"), &assign_ExcIEEEAC2A_ve2)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC2A.seve2"), &assign_ExcIEEEAC2A_seve2)); -} - -void ExcIEEEAC2A::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char ExcIEEEAC2A::debugName[] = "ExcIEEEAC2A"; -const char* ExcIEEEAC2A::debugString() -{ - return ExcIEEEAC2A::debugName; -} - -const BaseClassDefiner ExcIEEEAC2A::declare() -{ - return BaseClassDefiner(ExcIEEEAC2A::addConstructToMap, ExcIEEEAC2A::addPrimitiveAssignFnsToMap, ExcIEEEAC2A::addClassAssignFnsToMap, ExcIEEEAC2A::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ExcIEEEAC2A.hpp b/CGMES_2.4.13_18DEC2013/ExcIEEEAC2A.hpp deleted file mode 100644 index f6d137939..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcIEEEAC2A.hpp +++ /dev/null @@ -1,62 +0,0 @@ -#ifndef ExcIEEEAC2A_H -#define ExcIEEEAC2A_H - -#include "ExcitationSystemDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Seconds.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" - -namespace CIMPP { - - - /* - The class represents IEEE Std 421.5-2005 type AC2A model. The model represents a high initial response field-controlled alternator-rectifier excitation system. The alternator main exciter is used with non-controlled rectifiers. The Type AC2A model is similar to that of Type AC1A except for the inclusion of exciter time constant compensation and exciter field current limiting elements. Reference: IEEE Standard 421.5-2005 Section 6.2. - */ - class ExcIEEEAC2A: public ExcitationSystemDynamics - { - - public: - CIMPP::Seconds tb; /* Voltage regulator time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tc; /* Voltage regulator time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::PU ka; /* Voltage regulator gain (K). Typical Value = 400. Default: nullptr */ - CIMPP::Seconds ta; /* Voltage regulator time constant (T). Typical Value = 0.02. Default: nullptr */ - CIMPP::PU vamax; /* Maximum voltage regulator output (V). Typical Value = 8. Default: nullptr */ - CIMPP::PU vamin; /* Minimum voltage regulator output (V). Typical Value = -8. Default: nullptr */ - CIMPP::PU kb; /* Second stage regulator gain (K). Typical Value = 25. Default: nullptr */ - CIMPP::PU vrmax; /* Maximum voltage regulator outputs (V). Typical Value = 105. Default: nullptr */ - CIMPP::PU vrmin; /* Minimum voltage regulator outputs (V). Typical Value = -95. Default: nullptr */ - CIMPP::Seconds te; /* Exciter time constant, integration rate associated with exciter control (T). Typical Value = 0.6. Default: nullptr */ - CIMPP::PU vfemax; /* Exciter field current limit reference (V). Typical Value = 4.4. Default: nullptr */ - CIMPP::PU kh; /* Exciter field current feedback gain (K). Typical Value = 1. Default: nullptr */ - CIMPP::PU kf; /* Excitation control system stabilizer gains (K). Typical Value = 0.03. Default: nullptr */ - CIMPP::Seconds tf; /* Excitation control system stabilizer time constant (T). Typical Value = 1. Default: nullptr */ - CIMPP::PU kc; /* Rectifier loading factor proportional to commutating reactance (K). Typical Value = 0.28. Default: nullptr */ - CIMPP::PU kd; /* Demagnetizing factor, a function of exciter alternator reactances (K). Typical Value = 0.35. Default: nullptr */ - CIMPP::PU ke; /* Exciter constant related to self-excited field (K). Typical Value = 1. Default: nullptr */ - CIMPP::PU ve1; /* Exciter alternator output voltages back of commutating reactance at which saturation is defined (V). Typical Value = 4.4. Default: nullptr */ - CIMPP::Simple_Float seve1; /* Exciter saturation function value at the corresponding exciter voltage, V, back of commutating reactance (S[V]). Typical Value = 0.037. Default: nullptr */ - CIMPP::PU ve2; /* Exciter alternator output voltages back of commutating reactance at which saturation is defined (V). Typical Value = 3.3. Default: nullptr */ - CIMPP::Simple_Float seve2; /* Exciter saturation function value at the corresponding exciter voltage, V, back of commutating reactance (S[V]). Typical Value = 0.012. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ExcIEEEAC2A(); - virtual ~ExcIEEEAC2A(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ExcIEEEAC2A_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ExcIEEEAC3A.cpp b/CGMES_2.4.13_18DEC2013/ExcIEEEAC3A.cpp deleted file mode 100644 index 4111b0155..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcIEEEAC3A.cpp +++ /dev/null @@ -1,386 +0,0 @@ -#include -#include "ExcitationSystemDynamics.hpp" -#include "ExcIEEEAC3A.hpp" - -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -ExcIEEEAC3A::ExcIEEEAC3A() {}; - -ExcIEEEAC3A::~ExcIEEEAC3A() {}; - - - - - - - - - - - - - - - - - - - - - - - - - - -bool assign_ExcIEEEAC3A_tb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC3A_tc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC3A_ka(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ka; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC3A_ta(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ta; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC3A_vamax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vamax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC3A_vamin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vamin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC3A_te(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->te; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC3A_vemin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vemin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC3A_kr(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kr; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC3A_kf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC3A_tf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC3A_kn(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kn; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC3A_efdn(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->efdn; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC3A_kc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC3A_kd(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kd; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC3A_ke(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ke; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC3A_vfemax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vfemax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC3A_ve1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ve1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC3A_seve1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->seve1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC3A_ve2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ve2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC3A_seve2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->seve2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC3A_vlv(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vlv; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC3A_klv(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->klv; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ExcIEEEAC3A_factory() { - return new ExcIEEEAC3A; - } -} - -void ExcIEEEAC3A::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ExcIEEEAC3A"), &ExcIEEEAC3A_factory)); -} - -void ExcIEEEAC3A::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC3A.tb"), &assign_ExcIEEEAC3A_tb)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC3A.tc"), &assign_ExcIEEEAC3A_tc)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC3A.ka"), &assign_ExcIEEEAC3A_ka)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC3A.ta"), &assign_ExcIEEEAC3A_ta)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC3A.vamax"), &assign_ExcIEEEAC3A_vamax)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC3A.vamin"), &assign_ExcIEEEAC3A_vamin)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC3A.te"), &assign_ExcIEEEAC3A_te)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC3A.vemin"), &assign_ExcIEEEAC3A_vemin)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC3A.kr"), &assign_ExcIEEEAC3A_kr)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC3A.kf"), &assign_ExcIEEEAC3A_kf)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC3A.tf"), &assign_ExcIEEEAC3A_tf)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC3A.kn"), &assign_ExcIEEEAC3A_kn)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC3A.efdn"), &assign_ExcIEEEAC3A_efdn)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC3A.kc"), &assign_ExcIEEEAC3A_kc)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC3A.kd"), &assign_ExcIEEEAC3A_kd)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC3A.ke"), &assign_ExcIEEEAC3A_ke)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC3A.vfemax"), &assign_ExcIEEEAC3A_vfemax)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC3A.ve1"), &assign_ExcIEEEAC3A_ve1)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC3A.seve1"), &assign_ExcIEEEAC3A_seve1)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC3A.ve2"), &assign_ExcIEEEAC3A_ve2)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC3A.seve2"), &assign_ExcIEEEAC3A_seve2)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC3A.vlv"), &assign_ExcIEEEAC3A_vlv)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC3A.klv"), &assign_ExcIEEEAC3A_klv)); -} - -void ExcIEEEAC3A::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char ExcIEEEAC3A::debugName[] = "ExcIEEEAC3A"; -const char* ExcIEEEAC3A::debugString() -{ - return ExcIEEEAC3A::debugName; -} - -const BaseClassDefiner ExcIEEEAC3A::declare() -{ - return BaseClassDefiner(ExcIEEEAC3A::addConstructToMap, ExcIEEEAC3A::addPrimitiveAssignFnsToMap, ExcIEEEAC3A::addClassAssignFnsToMap, ExcIEEEAC3A::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ExcIEEEAC3A.hpp b/CGMES_2.4.13_18DEC2013/ExcIEEEAC3A.hpp deleted file mode 100644 index c4bbcb00b..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcIEEEAC3A.hpp +++ /dev/null @@ -1,64 +0,0 @@ -#ifndef ExcIEEEAC3A_H -#define ExcIEEEAC3A_H - -#include "ExcitationSystemDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Seconds.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" - -namespace CIMPP { - - - /* - The class represents IEEE Std 421.5-2005 type AC3A model. The model represents the field-controlled alternator-rectifier excitation systems designated Type AC3A. These excitation systems include an alternator main exciter with non-controlled rectifiers. The exciter employs self-excitation, and the voltage regulator power is derived from the exciter output voltage. Therefore, this system has an additional nonlinearity, simulated by the use of a multiplier whose inputs are the voltage regulator command signal, , and the exciter output voltage, , times . This model is applicable to excitation systems employing static voltage regulators. Reference: IEEE Standard 421.5-2005 Section 6.3. - */ - class ExcIEEEAC3A: public ExcitationSystemDynamics - { - - public: - CIMPP::Seconds tb; /* Voltage regulator time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tc; /* Voltage regulator time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::PU ka; /* Voltage regulator gain (K). Typical Value = 45.62. Default: nullptr */ - CIMPP::Seconds ta; /* Voltage regulator time constant (T). Typical Value = 0.013. Default: nullptr */ - CIMPP::PU vamax; /* Maximum voltage regulator output (V). Typical Value = 1. Default: nullptr */ - CIMPP::PU vamin; /* Minimum voltage regulator output (V). Typical Value = -0.95. Default: nullptr */ - CIMPP::Seconds te; /* Exciter time constant, integration rate associated with exciter control (T). Typical Value = 1.17. Default: nullptr */ - CIMPP::PU vemin; /* Minimum exciter voltage output (V). Typical Value = 0.1. Default: nullptr */ - CIMPP::PU kr; /* Constant associated with regulator and alternator field power supply (K). Typical Value = 3.77. Default: nullptr */ - CIMPP::PU kf; /* Excitation control system stabilizer gains (K). Typical Value = 0.143. Default: nullptr */ - CIMPP::Seconds tf; /* Excitation control system stabilizer time constant (T). Typical Value = 1. Default: nullptr */ - CIMPP::PU kn; /* Excitation control system stabilizer gain (K). Typical Value = 0.05. Default: nullptr */ - CIMPP::PU efdn; /* Value of at which feedback gain changes (E). Typical Value = 2.36. Default: nullptr */ - CIMPP::PU kc; /* Rectifier loading factor proportional to commutating reactance (K). Typical Value = 0.104. Default: nullptr */ - CIMPP::PU kd; /* Demagnetizing factor, a function of exciter alternator reactances (K). Typical Value = 0.499. Default: nullptr */ - CIMPP::PU ke; /* Exciter constant related to self-excited field (K). Typical Value = 1. Default: nullptr */ - CIMPP::PU vfemax; /* Exciter field current limit reference (V). Typical Value = 16. Default: nullptr */ - CIMPP::PU ve1; /* Exciter alternator output voltages back of commutating reactance at which saturation is defined (V) equals V(V). Typical Value = 6.24. Default: nullptr */ - CIMPP::Simple_Float seve1; /* Exciter saturation function value at the corresponding exciter voltage, V, back of commutating reactance (S[V]). Typical Value = 1.143. Default: nullptr */ - CIMPP::PU ve2; /* Exciter alternator output voltages back of commutating reactance at which saturation is defined (V). Typical Value = 4.68. Default: nullptr */ - CIMPP::Simple_Float seve2; /* Exciter saturation function value at the corresponding exciter voltage, V, back of commutating reactance (S[V]). Typical Value = 0.1. Default: nullptr */ - CIMPP::PU vlv; /* Field voltage used in the minimum field voltage limiter loop (V). Typical Value = 0.79. Default: nullptr */ - CIMPP::PU klv; /* Gain used in the minimum field voltage limiter loop (K). Typical Value = 0.194. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ExcIEEEAC3A(); - virtual ~ExcIEEEAC3A(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ExcIEEEAC3A_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ExcIEEEAC4A.cpp b/CGMES_2.4.13_18DEC2013/ExcIEEEAC4A.cpp deleted file mode 100644 index 79c73f1f1..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcIEEEAC4A.cpp +++ /dev/null @@ -1,176 +0,0 @@ -#include -#include "ExcitationSystemDynamics.hpp" -#include "ExcIEEEAC4A.hpp" - -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -ExcIEEEAC4A::ExcIEEEAC4A() {}; - -ExcIEEEAC4A::~ExcIEEEAC4A() {}; - - - - - - - - - - - - -bool assign_ExcIEEEAC4A_vimax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC4A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vimax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC4A_vimin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC4A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vimin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC4A_tc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC4A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC4A_tb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC4A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC4A_ka(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC4A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ka; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC4A_ta(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC4A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ta; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC4A_vrmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC4A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC4A_vrmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC4A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC4A_kc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC4A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ExcIEEEAC4A_factory() { - return new ExcIEEEAC4A; - } -} - -void ExcIEEEAC4A::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ExcIEEEAC4A"), &ExcIEEEAC4A_factory)); -} - -void ExcIEEEAC4A::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC4A.vimax"), &assign_ExcIEEEAC4A_vimax)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC4A.vimin"), &assign_ExcIEEEAC4A_vimin)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC4A.tc"), &assign_ExcIEEEAC4A_tc)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC4A.tb"), &assign_ExcIEEEAC4A_tb)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC4A.ka"), &assign_ExcIEEEAC4A_ka)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC4A.ta"), &assign_ExcIEEEAC4A_ta)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC4A.vrmax"), &assign_ExcIEEEAC4A_vrmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC4A.vrmin"), &assign_ExcIEEEAC4A_vrmin)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC4A.kc"), &assign_ExcIEEEAC4A_kc)); -} - -void ExcIEEEAC4A::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char ExcIEEEAC4A::debugName[] = "ExcIEEEAC4A"; -const char* ExcIEEEAC4A::debugString() -{ - return ExcIEEEAC4A::debugName; -} - -const BaseClassDefiner ExcIEEEAC4A::declare() -{ - return BaseClassDefiner(ExcIEEEAC4A::addConstructToMap, ExcIEEEAC4A::addPrimitiveAssignFnsToMap, ExcIEEEAC4A::addClassAssignFnsToMap, ExcIEEEAC4A::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ExcIEEEAC4A.hpp b/CGMES_2.4.13_18DEC2013/ExcIEEEAC4A.hpp deleted file mode 100644 index 9cbfe93b6..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcIEEEAC4A.hpp +++ /dev/null @@ -1,49 +0,0 @@ -#ifndef ExcIEEEAC4A_H -#define ExcIEEEAC4A_H - -#include "ExcitationSystemDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "Seconds.hpp" - -namespace CIMPP { - - - /* - The class represents IEEE Std 421.5-2005 type AC4A model. The model represents type AC4A alternator-supplied controlled-rectifier excitation system which is quite different from the other type ac systems. This high initial response excitation system utilizes a full thyristor bridge in the exciter output circuit. The voltage regulator controls the firing of the thyristor bridges. The exciter alternator uses an independent voltage regulator to control its output voltage to a constant value. These effects are not modeled; however, transient loading effects on the exciter alternator are included. Reference: IEEE Standard 421.5-2005 Section 6.4. - */ - class ExcIEEEAC4A: public ExcitationSystemDynamics - { - - public: - CIMPP::PU vimax; /* Maximum voltage regulator input limit (V). Typical Value = 10. Default: nullptr */ - CIMPP::PU vimin; /* Minimum voltage regulator input limit (V). Typical Value = -10. Default: nullptr */ - CIMPP::Seconds tc; /* Voltage regulator time constant (T). Typical Value = 1. Default: nullptr */ - CIMPP::Seconds tb; /* Voltage regulator time constant (T). Typical Value = 10. Default: nullptr */ - CIMPP::PU ka; /* Voltage regulator gain (K). Typical Value = 200. Default: nullptr */ - CIMPP::Seconds ta; /* Voltage regulator time constant (T). Typical Value = 0.015. Default: nullptr */ - CIMPP::PU vrmax; /* Maximum voltage regulator output (V). Typical Value = 5.64. Default: nullptr */ - CIMPP::PU vrmin; /* Minimum voltage regulator output (V). Typical Value = -4.53. Default: nullptr */ - CIMPP::PU kc; /* Rectifier loading factor proportional to commutating reactance (K). Typical Value = 0. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ExcIEEEAC4A(); - virtual ~ExcIEEEAC4A(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ExcIEEEAC4A_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ExcIEEEAC5A.cpp b/CGMES_2.4.13_18DEC2013/ExcIEEEAC5A.cpp deleted file mode 100644 index 107bf8bf8..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcIEEEAC5A.cpp +++ /dev/null @@ -1,251 +0,0 @@ -#include -#include "ExcitationSystemDynamics.hpp" -#include "ExcIEEEAC5A.hpp" - -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" - -using namespace CIMPP; - -ExcIEEEAC5A::ExcIEEEAC5A() {}; - -ExcIEEEAC5A::~ExcIEEEAC5A() {}; - - - - - - - - - - - - - - - - - -bool assign_ExcIEEEAC5A_ka(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC5A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ka; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC5A_ta(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC5A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ta; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC5A_vrmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC5A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC5A_vrmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC5A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC5A_ke(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC5A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ke; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC5A_te(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC5A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->te; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC5A_kf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC5A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC5A_tf1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC5A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tf1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC5A_tf2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC5A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tf2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC5A_tf3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC5A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tf3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC5A_efd1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC5A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->efd1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC5A_seefd1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC5A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->seefd1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC5A_efd2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC5A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->efd2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC5A_seefd2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC5A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->seefd2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ExcIEEEAC5A_factory() { - return new ExcIEEEAC5A; - } -} - -void ExcIEEEAC5A::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ExcIEEEAC5A"), &ExcIEEEAC5A_factory)); -} - -void ExcIEEEAC5A::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC5A.ka"), &assign_ExcIEEEAC5A_ka)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC5A.ta"), &assign_ExcIEEEAC5A_ta)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC5A.vrmax"), &assign_ExcIEEEAC5A_vrmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC5A.vrmin"), &assign_ExcIEEEAC5A_vrmin)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC5A.ke"), &assign_ExcIEEEAC5A_ke)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC5A.te"), &assign_ExcIEEEAC5A_te)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC5A.kf"), &assign_ExcIEEEAC5A_kf)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC5A.tf1"), &assign_ExcIEEEAC5A_tf1)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC5A.tf2"), &assign_ExcIEEEAC5A_tf2)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC5A.tf3"), &assign_ExcIEEEAC5A_tf3)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC5A.efd1"), &assign_ExcIEEEAC5A_efd1)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC5A.seefd1"), &assign_ExcIEEEAC5A_seefd1)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC5A.efd2"), &assign_ExcIEEEAC5A_efd2)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC5A.seefd2"), &assign_ExcIEEEAC5A_seefd2)); -} - -void ExcIEEEAC5A::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char ExcIEEEAC5A::debugName[] = "ExcIEEEAC5A"; -const char* ExcIEEEAC5A::debugString() -{ - return ExcIEEEAC5A::debugName; -} - -const BaseClassDefiner ExcIEEEAC5A::declare() -{ - return BaseClassDefiner(ExcIEEEAC5A::addConstructToMap, ExcIEEEAC5A::addPrimitiveAssignFnsToMap, ExcIEEEAC5A::addClassAssignFnsToMap, ExcIEEEAC5A::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ExcIEEEAC5A.hpp b/CGMES_2.4.13_18DEC2013/ExcIEEEAC5A.hpp deleted file mode 100644 index c3e1bc531..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcIEEEAC5A.hpp +++ /dev/null @@ -1,55 +0,0 @@ -#ifndef ExcIEEEAC5A_H -#define ExcIEEEAC5A_H - -#include "ExcitationSystemDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "Seconds.hpp" -#include "Simple_Float.hpp" - -namespace CIMPP { - - - /* - The class represents IEEE Std 421.5-2005 type AC5A model. The model represents a simplified model for brushless excitation systems. The regulator is supplied from a source, such as a permanent magnet generator, which is not affected by system disturbances. Unlike other ac models, this model uses loaded rather than open circuit exciter saturation data in the same way as it is used for the dc models. Because the model has been widely implemented by the industry, it is sometimes used to represent other types of systems when either detailed data for them are not available or simplified models are required. Reference: IEEE Standard 421.5-2005 Section 6.5. - */ - class ExcIEEEAC5A: public ExcitationSystemDynamics - { - - public: - CIMPP::PU ka; /* Voltage regulator gain (K). Typical Value = 400. Default: nullptr */ - CIMPP::Seconds ta; /* Voltage regulator time constant (T). Typical Value = 0.02. Default: nullptr */ - CIMPP::PU vrmax; /* Maximum voltage regulator output (V). Typical Value = 7.3. Default: nullptr */ - CIMPP::PU vrmin; /* Minimum voltage regulator output (V). Typical Value = -7.3. Default: nullptr */ - CIMPP::PU ke; /* Exciter constant related to self-excited field (K). Typical Value = 1. Default: nullptr */ - CIMPP::Seconds te; /* Exciter time constant, integration rate associated with exciter control (T). Typical Value = 0.8. Default: nullptr */ - CIMPP::PU kf; /* Excitation control system stabilizer gains (K). Typical Value = 0.03. Default: nullptr */ - CIMPP::Seconds tf1; /* Excitation control system stabilizer time constant (T). Typical Value = 1. Default: nullptr */ - CIMPP::Seconds tf2; /* Excitation control system stabilizer time constant (T). Typical Value = 1. Default: nullptr */ - CIMPP::Seconds tf3; /* Excitation control system stabilizer time constant (T). Typical Value = 1. Default: nullptr */ - CIMPP::PU efd1; /* Exciter voltage at which exciter saturation is defined (E). Typical Value = 5.6. Default: nullptr */ - CIMPP::Simple_Float seefd1; /* Exciter saturation function value at the corresponding exciter voltage, E (S[E]). Typical Value = 0.86. Default: nullptr */ - CIMPP::PU efd2; /* Exciter voltage at which exciter saturation is defined (E). Typical Value = 4.2. Default: nullptr */ - CIMPP::Simple_Float seefd2; /* Exciter saturation function value at the corresponding exciter voltage, E (S[E]). Typical Value = 0.5. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ExcIEEEAC5A(); - virtual ~ExcIEEEAC5A(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ExcIEEEAC5A_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ExcIEEEAC6A.cpp b/CGMES_2.4.13_18DEC2013/ExcIEEEAC6A.cpp deleted file mode 100644 index 59e7e7af0..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcIEEEAC6A.cpp +++ /dev/null @@ -1,371 +0,0 @@ -#include -#include "ExcitationSystemDynamics.hpp" -#include "ExcIEEEAC6A.hpp" - -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" - -using namespace CIMPP; - -ExcIEEEAC6A::ExcIEEEAC6A() {}; - -ExcIEEEAC6A::~ExcIEEEAC6A() {}; - - - - - - - - - - - - - - - - - - - - - - - - - -bool assign_ExcIEEEAC6A_ka(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC6A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ka; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC6A_ta(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC6A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ta; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC6A_tk(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC6A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tk; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC6A_tb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC6A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC6A_tc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC6A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC6A_vamax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC6A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vamax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC6A_vamin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC6A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vamin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC6A_vrmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC6A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC6A_vrmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC6A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC6A_te(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC6A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->te; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC6A_kh(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC6A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kh; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC6A_tj(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC6A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tj; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC6A_th(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC6A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->th; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC6A_vfelim(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC6A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vfelim; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC6A_vhmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC6A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vhmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC6A_kc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC6A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC6A_kd(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC6A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kd; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC6A_ke(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC6A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ke; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC6A_ve1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC6A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ve1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC6A_seve1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC6A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->seve1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC6A_ve2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC6A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ve2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC6A_seve2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC6A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->seve2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ExcIEEEAC6A_factory() { - return new ExcIEEEAC6A; - } -} - -void ExcIEEEAC6A::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ExcIEEEAC6A"), &ExcIEEEAC6A_factory)); -} - -void ExcIEEEAC6A::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC6A.ka"), &assign_ExcIEEEAC6A_ka)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC6A.ta"), &assign_ExcIEEEAC6A_ta)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC6A.tk"), &assign_ExcIEEEAC6A_tk)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC6A.tb"), &assign_ExcIEEEAC6A_tb)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC6A.tc"), &assign_ExcIEEEAC6A_tc)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC6A.vamax"), &assign_ExcIEEEAC6A_vamax)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC6A.vamin"), &assign_ExcIEEEAC6A_vamin)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC6A.vrmax"), &assign_ExcIEEEAC6A_vrmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC6A.vrmin"), &assign_ExcIEEEAC6A_vrmin)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC6A.te"), &assign_ExcIEEEAC6A_te)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC6A.kh"), &assign_ExcIEEEAC6A_kh)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC6A.tj"), &assign_ExcIEEEAC6A_tj)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC6A.th"), &assign_ExcIEEEAC6A_th)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC6A.vfelim"), &assign_ExcIEEEAC6A_vfelim)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC6A.vhmax"), &assign_ExcIEEEAC6A_vhmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC6A.kc"), &assign_ExcIEEEAC6A_kc)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC6A.kd"), &assign_ExcIEEEAC6A_kd)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC6A.ke"), &assign_ExcIEEEAC6A_ke)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC6A.ve1"), &assign_ExcIEEEAC6A_ve1)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC6A.seve1"), &assign_ExcIEEEAC6A_seve1)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC6A.ve2"), &assign_ExcIEEEAC6A_ve2)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC6A.seve2"), &assign_ExcIEEEAC6A_seve2)); -} - -void ExcIEEEAC6A::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char ExcIEEEAC6A::debugName[] = "ExcIEEEAC6A"; -const char* ExcIEEEAC6A::debugString() -{ - return ExcIEEEAC6A::debugName; -} - -const BaseClassDefiner ExcIEEEAC6A::declare() -{ - return BaseClassDefiner(ExcIEEEAC6A::addConstructToMap, ExcIEEEAC6A::addPrimitiveAssignFnsToMap, ExcIEEEAC6A::addClassAssignFnsToMap, ExcIEEEAC6A::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ExcIEEEAC6A.hpp b/CGMES_2.4.13_18DEC2013/ExcIEEEAC6A.hpp deleted file mode 100644 index 8b6c46dcc..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcIEEEAC6A.hpp +++ /dev/null @@ -1,63 +0,0 @@ -#ifndef ExcIEEEAC6A_H -#define ExcIEEEAC6A_H - -#include "ExcitationSystemDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "Seconds.hpp" -#include "Simple_Float.hpp" - -namespace CIMPP { - - - /* - The class represents IEEE Std 421.5-2005 type AC6A model. The model represents field-controlled alternator-rectifier excitation systems with system-supplied electronic voltage regulators. The maximum output of the regulator, , is a function of terminal voltage, . The field current limiter included in the original model AC6A remains in the 2005 update. Reference: IEEE Standard 421.5-2005 Section 6.6. - */ - class ExcIEEEAC6A: public ExcitationSystemDynamics - { - - public: - CIMPP::PU ka; /* Voltage regulator gain (K). Typical Value = 536. Default: nullptr */ - CIMPP::Seconds ta; /* Voltage regulator time constant (T). Typical Value = 0.086. Default: nullptr */ - CIMPP::Seconds tk; /* Voltage regulator time constant (T). Typical Value = 0.18. Default: nullptr */ - CIMPP::Seconds tb; /* Voltage regulator time constant (T). Typical Value = 9. Default: nullptr */ - CIMPP::Seconds tc; /* Voltage regulator time constant (T). Typical Value = 3. Default: nullptr */ - CIMPP::PU vamax; /* Maximum voltage regulator output (V). Typical Value = 75. Default: nullptr */ - CIMPP::PU vamin; /* Minimum voltage regulator output (V). Typical Value = -75. Default: nullptr */ - CIMPP::PU vrmax; /* Maximum voltage regulator output (V). Typical Value = 44. Default: nullptr */ - CIMPP::PU vrmin; /* Minimum voltage regulator output (V). Typical Value = -36. Default: nullptr */ - CIMPP::Seconds te; /* Exciter time constant, integration rate associated with exciter control (T). Typical Value = 1. Default: nullptr */ - CIMPP::PU kh; /* Exciter field current limiter gain (K). Typical Value = 92. Default: nullptr */ - CIMPP::Seconds tj; /* Exciter field current limiter time constant (T). Typical Value = 0.02. Default: nullptr */ - CIMPP::Seconds th; /* Exciter field current limiter time constant (T). Typical Value = 0.08. Default: nullptr */ - CIMPP::PU vfelim; /* Exciter field current limit reference (V). Typical Value = 19. Default: nullptr */ - CIMPP::PU vhmax; /* Maximum field current limiter signal reference (V). Typical Value = 75. Default: nullptr */ - CIMPP::PU kc; /* Rectifier loading factor proportional to commutating reactance (K). Typical Value = 0.173. Default: nullptr */ - CIMPP::PU kd; /* Demagnetizing factor, a function of exciter alternator reactances (K). Typical Value = 1.91. Default: nullptr */ - CIMPP::PU ke; /* Exciter constant related to self-excited field (K). Typical Value = 1.6. Default: nullptr */ - CIMPP::PU ve1; /* Exciter alternator output voltages back of commutating reactance at which saturation is defined (V) equals V(V). Typical Value = 7.4. Default: nullptr */ - CIMPP::Simple_Float seve1; /* Exciter saturation function value at the corresponding exciter voltage, V, back of commutating reactance (S[V]). Typical Value = 0.214. Default: nullptr */ - CIMPP::PU ve2; /* Exciter alternator output voltages back of commutating reactance at which saturation is defined (V). Typical Value = 5.55. Default: nullptr */ - CIMPP::Simple_Float seve2; /* Exciter saturation function value at the corresponding exciter voltage, V, back of commutating reactance (S[V]). Typical Value = 0.044. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ExcIEEEAC6A(); - virtual ~ExcIEEEAC6A(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ExcIEEEAC6A_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ExcIEEEAC7B.cpp b/CGMES_2.4.13_18DEC2013/ExcIEEEAC7B.cpp deleted file mode 100644 index 51bda42ba..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcIEEEAC7B.cpp +++ /dev/null @@ -1,431 +0,0 @@ -#include -#include "ExcitationSystemDynamics.hpp" -#include "ExcIEEEAC7B.hpp" - -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" - -using namespace CIMPP; - -ExcIEEEAC7B::ExcIEEEAC7B() {}; - -ExcIEEEAC7B::~ExcIEEEAC7B() {}; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -bool assign_ExcIEEEAC7B_kpr(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC7B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kpr; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC7B_kir(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC7B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kir; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC7B_kdr(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC7B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kdr; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC7B_tdr(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC7B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tdr; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC7B_vrmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC7B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC7B_vrmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC7B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC7B_kpa(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC7B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kpa; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC7B_kia(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC7B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kia; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC7B_vamax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC7B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vamax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC7B_vamin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC7B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vamin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC7B_kp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC7B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC7B_kl(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC7B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kl; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC7B_te(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC7B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->te; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC7B_vfemax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC7B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vfemax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC7B_vemin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC7B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vemin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC7B_ke(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC7B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ke; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC7B_kc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC7B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC7B_kd(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC7B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kd; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC7B_kf1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC7B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kf1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC7B_kf2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC7B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kf2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC7B_kf3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC7B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kf3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC7B_tf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC7B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC7B_ve1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC7B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ve1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC7B_seve1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC7B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->seve1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC7B_ve2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC7B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ve2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC7B_seve2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC7B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->seve2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ExcIEEEAC7B_factory() { - return new ExcIEEEAC7B; - } -} - -void ExcIEEEAC7B::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ExcIEEEAC7B"), &ExcIEEEAC7B_factory)); -} - -void ExcIEEEAC7B::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC7B.kpr"), &assign_ExcIEEEAC7B_kpr)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC7B.kir"), &assign_ExcIEEEAC7B_kir)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC7B.kdr"), &assign_ExcIEEEAC7B_kdr)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC7B.tdr"), &assign_ExcIEEEAC7B_tdr)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC7B.vrmax"), &assign_ExcIEEEAC7B_vrmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC7B.vrmin"), &assign_ExcIEEEAC7B_vrmin)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC7B.kpa"), &assign_ExcIEEEAC7B_kpa)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC7B.kia"), &assign_ExcIEEEAC7B_kia)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC7B.vamax"), &assign_ExcIEEEAC7B_vamax)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC7B.vamin"), &assign_ExcIEEEAC7B_vamin)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC7B.kp"), &assign_ExcIEEEAC7B_kp)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC7B.kl"), &assign_ExcIEEEAC7B_kl)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC7B.te"), &assign_ExcIEEEAC7B_te)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC7B.vfemax"), &assign_ExcIEEEAC7B_vfemax)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC7B.vemin"), &assign_ExcIEEEAC7B_vemin)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC7B.ke"), &assign_ExcIEEEAC7B_ke)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC7B.kc"), &assign_ExcIEEEAC7B_kc)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC7B.kd"), &assign_ExcIEEEAC7B_kd)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC7B.kf1"), &assign_ExcIEEEAC7B_kf1)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC7B.kf2"), &assign_ExcIEEEAC7B_kf2)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC7B.kf3"), &assign_ExcIEEEAC7B_kf3)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC7B.tf"), &assign_ExcIEEEAC7B_tf)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC7B.ve1"), &assign_ExcIEEEAC7B_ve1)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC7B.seve1"), &assign_ExcIEEEAC7B_seve1)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC7B.ve2"), &assign_ExcIEEEAC7B_ve2)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC7B.seve2"), &assign_ExcIEEEAC7B_seve2)); -} - -void ExcIEEEAC7B::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char ExcIEEEAC7B::debugName[] = "ExcIEEEAC7B"; -const char* ExcIEEEAC7B::debugString() -{ - return ExcIEEEAC7B::debugName; -} - -const BaseClassDefiner ExcIEEEAC7B::declare() -{ - return BaseClassDefiner(ExcIEEEAC7B::addConstructToMap, ExcIEEEAC7B::addPrimitiveAssignFnsToMap, ExcIEEEAC7B::addClassAssignFnsToMap, ExcIEEEAC7B::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ExcIEEEAC7B.hpp b/CGMES_2.4.13_18DEC2013/ExcIEEEAC7B.hpp deleted file mode 100644 index a91fbc510..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcIEEEAC7B.hpp +++ /dev/null @@ -1,67 +0,0 @@ -#ifndef ExcIEEEAC7B_H -#define ExcIEEEAC7B_H - -#include "ExcitationSystemDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "Seconds.hpp" -#include "Simple_Float.hpp" - -namespace CIMPP { - - - /* - The class represents IEEE Std 421.5-2005 type AC7B model. The model represents excitation systems which consist of an ac alternator with either stationary or rotating rectifiers to produce the dc field requirements. It is an upgrade to earlier ac excitation systems, which replace only the controls but retain the ac alternator and diode rectifier bridge. Reference: IEEE Standard 421.5-2005 Section 6.7. In the IEEE Standard 421.5 - 2005, the [1 / sT] block is shown as [1 / (1 + sT)], which is incorrect. - */ - class ExcIEEEAC7B: public ExcitationSystemDynamics - { - - public: - CIMPP::PU kpr; /* Voltage regulator proportional gain (K). Typical Value = 4.24. Default: nullptr */ - CIMPP::PU kir; /* Voltage regulator integral gain (K). Typical Value = 4.24. Default: nullptr */ - CIMPP::PU kdr; /* Voltage regulator derivative gain (K). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tdr; /* Lag time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::PU vrmax; /* Maximum voltage regulator output (V). Typical Value = 5.79. Default: nullptr */ - CIMPP::PU vrmin; /* Minimum voltage regulator output (V). Typical Value = -5.79. Default: nullptr */ - CIMPP::PU kpa; /* Voltage regulator proportional gain (K). Typical Value = 65.36. Default: nullptr */ - CIMPP::PU kia; /* Voltage regulator integral gain (K). Typical Value = 59.69. Default: nullptr */ - CIMPP::PU vamax; /* Maximum voltage regulator output (V). Typical Value = 1. Default: nullptr */ - CIMPP::PU vamin; /* Minimum voltage regulator output (V). Typical Value = -0.95. Default: nullptr */ - CIMPP::PU kp; /* Potential circuit gain coefficient (K). Typical Value = 4.96. Default: nullptr */ - CIMPP::PU kl; /* Exciter field voltage lower limit parameter (K). Typical Value = 10. Default: nullptr */ - CIMPP::Seconds te; /* Exciter time constant, integration rate associated with exciter control (T). Typical Value = 1.1. Default: nullptr */ - CIMPP::PU vfemax; /* Exciter field current limit reference (V). Typical Value = 6.9. Default: nullptr */ - CIMPP::PU vemin; /* Minimum exciter voltage output (V). Typical Value = 0. Default: nullptr */ - CIMPP::PU ke; /* Exciter constant related to self-excited field (K). Typical Value = 1. Default: nullptr */ - CIMPP::PU kc; /* Rectifier loading factor proportional to commutating reactance (K). Typical Value = 0.18. Default: nullptr */ - CIMPP::PU kd; /* Demagnetizing factor, a function of exciter alternator reactances (K). Typical Value = 0.02. Default: nullptr */ - CIMPP::PU kf1; /* Excitation control system stabilizer gain (K). Typical Value = 0.212. Default: nullptr */ - CIMPP::PU kf2; /* Excitation control system stabilizer gain (K). Typical Value = 0. Default: nullptr */ - CIMPP::PU kf3; /* Excitation control system stabilizer gain (K). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tf; /* Excitation control system stabilizer time constant (T). Typical Value = 1. Default: nullptr */ - CIMPP::PU ve1; /* Exciter alternator output voltages back of commutating reactance at which saturation is defined (V) equals V (V). Typical Value = 6.3. Default: nullptr */ - CIMPP::Simple_Float seve1; /* Exciter saturation function value at the corresponding exciter voltage, V, back of commutating reactance (S[V]). Typical Value = 0.44. Default: nullptr */ - CIMPP::PU ve2; /* Exciter alternator output voltages back of commutating reactance at which saturation is defined (V). Typical Value = 3.02. Default: nullptr */ - CIMPP::Simple_Float seve2; /* Exciter saturation function value at the corresponding exciter voltage, V, back of commutating reactance (S[V]). Typical Value = 0.075. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ExcIEEEAC7B(); - virtual ~ExcIEEEAC7B(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ExcIEEEAC7B_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ExcIEEEAC8B.cpp b/CGMES_2.4.13_18DEC2013/ExcIEEEAC8B.cpp deleted file mode 100644 index 46e1f1861..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcIEEEAC8B.cpp +++ /dev/null @@ -1,311 +0,0 @@ -#include -#include "ExcitationSystemDynamics.hpp" -#include "ExcIEEEAC8B.hpp" - -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" - -using namespace CIMPP; - -ExcIEEEAC8B::ExcIEEEAC8B() {}; - -ExcIEEEAC8B::~ExcIEEEAC8B() {}; - - - - - - - - - - - - - - - - - - - - - -bool assign_ExcIEEEAC8B_kpr(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC8B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kpr; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC8B_kir(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC8B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kir; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC8B_kdr(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC8B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kdr; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC8B_tdr(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC8B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tdr; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC8B_vrmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC8B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC8B_vrmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC8B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC8B_ka(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC8B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ka; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC8B_ta(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC8B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ta; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC8B_te(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC8B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->te; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC8B_vfemax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC8B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vfemax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC8B_vemin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC8B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vemin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC8B_ke(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC8B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ke; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC8B_kc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC8B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC8B_kd(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC8B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kd; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC8B_ve1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC8B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ve1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC8B_seve1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC8B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->seve1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC8B_ve2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC8B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ve2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEAC8B_seve2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEAC8B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->seve2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ExcIEEEAC8B_factory() { - return new ExcIEEEAC8B; - } -} - -void ExcIEEEAC8B::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ExcIEEEAC8B"), &ExcIEEEAC8B_factory)); -} - -void ExcIEEEAC8B::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC8B.kpr"), &assign_ExcIEEEAC8B_kpr)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC8B.kir"), &assign_ExcIEEEAC8B_kir)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC8B.kdr"), &assign_ExcIEEEAC8B_kdr)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC8B.tdr"), &assign_ExcIEEEAC8B_tdr)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC8B.vrmax"), &assign_ExcIEEEAC8B_vrmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC8B.vrmin"), &assign_ExcIEEEAC8B_vrmin)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC8B.ka"), &assign_ExcIEEEAC8B_ka)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC8B.ta"), &assign_ExcIEEEAC8B_ta)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC8B.te"), &assign_ExcIEEEAC8B_te)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC8B.vfemax"), &assign_ExcIEEEAC8B_vfemax)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC8B.vemin"), &assign_ExcIEEEAC8B_vemin)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC8B.ke"), &assign_ExcIEEEAC8B_ke)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC8B.kc"), &assign_ExcIEEEAC8B_kc)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC8B.kd"), &assign_ExcIEEEAC8B_kd)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC8B.ve1"), &assign_ExcIEEEAC8B_ve1)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC8B.seve1"), &assign_ExcIEEEAC8B_seve1)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC8B.ve2"), &assign_ExcIEEEAC8B_ve2)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEAC8B.seve2"), &assign_ExcIEEEAC8B_seve2)); -} - -void ExcIEEEAC8B::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char ExcIEEEAC8B::debugName[] = "ExcIEEEAC8B"; -const char* ExcIEEEAC8B::debugString() -{ - return ExcIEEEAC8B::debugName; -} - -const BaseClassDefiner ExcIEEEAC8B::declare() -{ - return BaseClassDefiner(ExcIEEEAC8B::addConstructToMap, ExcIEEEAC8B::addPrimitiveAssignFnsToMap, ExcIEEEAC8B::addClassAssignFnsToMap, ExcIEEEAC8B::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ExcIEEEAC8B.hpp b/CGMES_2.4.13_18DEC2013/ExcIEEEAC8B.hpp deleted file mode 100644 index 52fdd9dda..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcIEEEAC8B.hpp +++ /dev/null @@ -1,59 +0,0 @@ -#ifndef ExcIEEEAC8B_H -#define ExcIEEEAC8B_H - -#include "ExcitationSystemDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "Seconds.hpp" -#include "Simple_Float.hpp" - -namespace CIMPP { - - - /* - The class represents IEEE Std 421.5-2005 type AC8B model. This model represents a PID voltage regulator with either a brushless exciter or dc exciter. The AVR in this model consists of PID control, with separate constants for the proportional (), integral (), and derivative () gains. The representation of the brushless exciter (, , , , ) is similar to the model Type AC2A. The Type AC8B model can be used to represent static voltage regulators applied to brushless excitation systems. Digitally based voltage regulators feeding dc rotating main exciters can be represented with the AC Type AC8B model with the parameters and set to 0. For thyristor power stages fed from the generator terminals, the limits and should be a function of terminal voltage: * and * . Reference: IEEE Standard 421.5-2005 Section 6.8. - */ - class ExcIEEEAC8B: public ExcitationSystemDynamics - { - - public: - CIMPP::PU kpr; /* Voltage regulator proportional gain (K). Typical Value = 80. Default: nullptr */ - CIMPP::PU kir; /* Voltage regulator integral gain (K). Typical Value = 5. Default: nullptr */ - CIMPP::PU kdr; /* Voltage regulator derivative gain (K). Typical Value = 10. Default: nullptr */ - CIMPP::Seconds tdr; /* Lag time constant (T). Typical Value = 0.1. Default: nullptr */ - CIMPP::PU vrmax; /* Maximum voltage regulator output (V). Typical Value = 35. Default: nullptr */ - CIMPP::PU vrmin; /* Minimum voltage regulator output (V). Typical Value = 0. Default: nullptr */ - CIMPP::PU ka; /* Voltage regulator gain (K). Typical Value = 1. Default: nullptr */ - CIMPP::Seconds ta; /* Voltage regulator time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds te; /* Exciter time constant, integration rate associated with exciter control (T). Typical Value = 1.2. Default: nullptr */ - CIMPP::PU vfemax; /* Exciter field current limit reference (V). Typical Value = 6. Default: nullptr */ - CIMPP::PU vemin; /* Minimum exciter voltage output (V). Typical Value = 0. Default: nullptr */ - CIMPP::PU ke; /* Exciter constant related to self-excited field (K). Typical Value = 1. Default: nullptr */ - CIMPP::PU kc; /* Rectifier loading factor proportional to commutating reactance (K). Typical Value = 0.55. Default: nullptr */ - CIMPP::PU kd; /* Demagnetizing factor, a function of exciter alternator reactances (K). Typical Value = 1.1. Default: nullptr */ - CIMPP::PU ve1; /* Exciter alternator output voltages back of commutating reactance at which saturation is defined (V) equals V (V). Typical Value = 6.5. Default: nullptr */ - CIMPP::Simple_Float seve1; /* Exciter saturation function value at the corresponding exciter voltage, V, back of commutating reactance (S[V]). Typical Value = 0.3. Default: nullptr */ - CIMPP::PU ve2; /* Exciter alternator output voltages back of commutating reactance at which saturation is defined (V). Typical Value = 9. Default: nullptr */ - CIMPP::Simple_Float seve2; /* Exciter saturation function value at the corresponding exciter voltage, V, back of commutating reactance (S[V]). Typical Value = 3. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ExcIEEEAC8B(); - virtual ~ExcIEEEAC8B(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ExcIEEEAC8B_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ExcIEEEDC1A.cpp b/CGMES_2.4.13_18DEC2013/ExcIEEEDC1A.cpp deleted file mode 100644 index 1e4c6a4e9..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcIEEEDC1A.cpp +++ /dev/null @@ -1,281 +0,0 @@ -#include -#include "ExcitationSystemDynamics.hpp" -#include "ExcIEEEDC1A.hpp" - -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "Boolean.hpp" -#include "Boolean.hpp" - -using namespace CIMPP; - -ExcIEEEDC1A::ExcIEEEDC1A() {}; - -ExcIEEEDC1A::~ExcIEEEDC1A() {}; - - - - - - - - - - - - - - - - - - - -bool assign_ExcIEEEDC1A_ka(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEDC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ka; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEDC1A_ta(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEDC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ta; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEDC1A_tb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEDC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEDC1A_tc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEDC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEDC1A_vrmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEDC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEDC1A_vrmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEDC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEDC1A_ke(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEDC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ke; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEDC1A_te(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEDC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->te; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEDC1A_kf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEDC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEDC1A_tf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEDC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEDC1A_efd1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEDC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->efd1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEDC1A_seefd1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEDC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->seefd1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEDC1A_efd2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEDC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->efd2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEDC1A_seefd2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEDC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->seefd2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEDC1A_uelin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEDC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->uelin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEDC1A_exclim(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEDC1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->exclim; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ExcIEEEDC1A_factory() { - return new ExcIEEEDC1A; - } -} - -void ExcIEEEDC1A::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ExcIEEEDC1A"), &ExcIEEEDC1A_factory)); -} - -void ExcIEEEDC1A::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEDC1A.ka"), &assign_ExcIEEEDC1A_ka)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEDC1A.ta"), &assign_ExcIEEEDC1A_ta)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEDC1A.tb"), &assign_ExcIEEEDC1A_tb)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEDC1A.tc"), &assign_ExcIEEEDC1A_tc)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEDC1A.vrmax"), &assign_ExcIEEEDC1A_vrmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEDC1A.vrmin"), &assign_ExcIEEEDC1A_vrmin)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEDC1A.ke"), &assign_ExcIEEEDC1A_ke)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEDC1A.te"), &assign_ExcIEEEDC1A_te)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEDC1A.kf"), &assign_ExcIEEEDC1A_kf)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEDC1A.tf"), &assign_ExcIEEEDC1A_tf)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEDC1A.efd1"), &assign_ExcIEEEDC1A_efd1)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEDC1A.seefd1"), &assign_ExcIEEEDC1A_seefd1)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEDC1A.efd2"), &assign_ExcIEEEDC1A_efd2)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEDC1A.seefd2"), &assign_ExcIEEEDC1A_seefd2)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEDC1A.uelin"), &assign_ExcIEEEDC1A_uelin)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEDC1A.exclim"), &assign_ExcIEEEDC1A_exclim)); -} - -void ExcIEEEDC1A::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char ExcIEEEDC1A::debugName[] = "ExcIEEEDC1A"; -const char* ExcIEEEDC1A::debugString() -{ - return ExcIEEEDC1A::debugName; -} - -const BaseClassDefiner ExcIEEEDC1A::declare() -{ - return BaseClassDefiner(ExcIEEEDC1A::addConstructToMap, ExcIEEEDC1A::addPrimitiveAssignFnsToMap, ExcIEEEDC1A::addClassAssignFnsToMap, ExcIEEEDC1A::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ExcIEEEDC1A.hpp b/CGMES_2.4.13_18DEC2013/ExcIEEEDC1A.hpp deleted file mode 100644 index 02b382b84..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcIEEEDC1A.hpp +++ /dev/null @@ -1,58 +0,0 @@ -#ifndef ExcIEEEDC1A_H -#define ExcIEEEDC1A_H - -#include "ExcitationSystemDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "Seconds.hpp" -#include "Simple_Float.hpp" -#include "Boolean.hpp" - -namespace CIMPP { - - - /* - The class represents IEEE Std 421.5-2005 type DC1A model. This model represents field-controlled dc commutator exciters with continuously acting voltage regulators (especially the direct-acting rheostatic, rotating amplifier, and magnetic amplifier types). Because this model has been widely implemented by the industry, it is sometimes used to represent other types of systems when detailed data for them are not available or when a simplified model is required. Reference: IEEE Standard 421.5-2005 Section 5.1. - */ - class ExcIEEEDC1A: public ExcitationSystemDynamics - { - - public: - CIMPP::PU ka; /* Voltage regulator gain (K). Typical Value = 46. Default: nullptr */ - CIMPP::Seconds ta; /* Voltage regulator time constant (T). Typical Value = 0.06. Default: nullptr */ - CIMPP::Seconds tb; /* Voltage regulator time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tc; /* Voltage regulator time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::PU vrmax; /* Maximum voltage regulator output (V). Typical Value = 1. Default: nullptr */ - CIMPP::PU vrmin; /* Minimum voltage regulator output (V). Typical Value = -0.9. Default: nullptr */ - CIMPP::PU ke; /* Exciter constant related to self-excited field (K). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds te; /* Exciter time constant, integration rate associated with exciter control (T). Typical Value = 0.46. Default: nullptr */ - CIMPP::PU kf; /* Excitation control system stabilizer gain (K). Typical Value = 0.1. Default: nullptr */ - CIMPP::Seconds tf; /* Excitation control system stabilizer time constant (T). Typical Value = 1. Default: nullptr */ - CIMPP::PU efd1; /* Exciter voltage at which exciter saturation is defined (E). Typical Value = 3.1. Default: nullptr */ - CIMPP::Simple_Float seefd1; /* Exciter saturation function value at the corresponding exciter voltage, E (S[E]). Typical Value = 0.33. Default: nullptr */ - CIMPP::PU efd2; /* Exciter voltage at which exciter saturation is defined (E). Typical Value = 2.3. Default: nullptr */ - CIMPP::Simple_Float seefd2; /* Exciter saturation function value at the corresponding exciter voltage, E (S[E]). Typical Value = 0.1. Default: nullptr */ - CIMPP::Boolean uelin; /* UEL input (uelin). true = input is connected to the HV gate false = input connects to the error signal. Typical Value = true. Default: false */ - CIMPP::Boolean exclim; /* (exclim). IEEE standard is ambiguous about lower limit on exciter output. true = a lower limit of zero is applied to integrator output false = a lower limit of zero is not applied to integrator output. Typical Value = true. Default: false */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ExcIEEEDC1A(); - virtual ~ExcIEEEDC1A(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ExcIEEEDC1A_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ExcIEEEDC2A.cpp b/CGMES_2.4.13_18DEC2013/ExcIEEEDC2A.cpp deleted file mode 100644 index ce1d43e18..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcIEEEDC2A.cpp +++ /dev/null @@ -1,281 +0,0 @@ -#include -#include "ExcitationSystemDynamics.hpp" -#include "ExcIEEEDC2A.hpp" - -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "Boolean.hpp" -#include "Boolean.hpp" - -using namespace CIMPP; - -ExcIEEEDC2A::ExcIEEEDC2A() {}; - -ExcIEEEDC2A::~ExcIEEEDC2A() {}; - - - - - - - - - - - - - - - - - - - -bool assign_ExcIEEEDC2A_ka(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEDC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ka; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEDC2A_ta(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEDC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ta; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEDC2A_tb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEDC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEDC2A_tc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEDC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEDC2A_vrmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEDC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEDC2A_vrmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEDC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEDC2A_ke(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEDC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ke; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEDC2A_te(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEDC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->te; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEDC2A_kf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEDC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEDC2A_tf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEDC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEDC2A_efd1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEDC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->efd1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEDC2A_seefd1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEDC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->seefd1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEDC2A_efd2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEDC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->efd2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEDC2A_seefd2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEDC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->seefd2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEDC2A_uelin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEDC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->uelin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEDC2A_exclim(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEDC2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->exclim; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ExcIEEEDC2A_factory() { - return new ExcIEEEDC2A; - } -} - -void ExcIEEEDC2A::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ExcIEEEDC2A"), &ExcIEEEDC2A_factory)); -} - -void ExcIEEEDC2A::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEDC2A.ka"), &assign_ExcIEEEDC2A_ka)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEDC2A.ta"), &assign_ExcIEEEDC2A_ta)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEDC2A.tb"), &assign_ExcIEEEDC2A_tb)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEDC2A.tc"), &assign_ExcIEEEDC2A_tc)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEDC2A.vrmax"), &assign_ExcIEEEDC2A_vrmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEDC2A.vrmin"), &assign_ExcIEEEDC2A_vrmin)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEDC2A.ke"), &assign_ExcIEEEDC2A_ke)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEDC2A.te"), &assign_ExcIEEEDC2A_te)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEDC2A.kf"), &assign_ExcIEEEDC2A_kf)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEDC2A.tf"), &assign_ExcIEEEDC2A_tf)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEDC2A.efd1"), &assign_ExcIEEEDC2A_efd1)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEDC2A.seefd1"), &assign_ExcIEEEDC2A_seefd1)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEDC2A.efd2"), &assign_ExcIEEEDC2A_efd2)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEDC2A.seefd2"), &assign_ExcIEEEDC2A_seefd2)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEDC2A.uelin"), &assign_ExcIEEEDC2A_uelin)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEDC2A.exclim"), &assign_ExcIEEEDC2A_exclim)); -} - -void ExcIEEEDC2A::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char ExcIEEEDC2A::debugName[] = "ExcIEEEDC2A"; -const char* ExcIEEEDC2A::debugString() -{ - return ExcIEEEDC2A::debugName; -} - -const BaseClassDefiner ExcIEEEDC2A::declare() -{ - return BaseClassDefiner(ExcIEEEDC2A::addConstructToMap, ExcIEEEDC2A::addPrimitiveAssignFnsToMap, ExcIEEEDC2A::addClassAssignFnsToMap, ExcIEEEDC2A::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ExcIEEEDC2A.hpp b/CGMES_2.4.13_18DEC2013/ExcIEEEDC2A.hpp deleted file mode 100644 index 9ddfa4780..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcIEEEDC2A.hpp +++ /dev/null @@ -1,58 +0,0 @@ -#ifndef ExcIEEEDC2A_H -#define ExcIEEEDC2A_H - -#include "ExcitationSystemDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "Seconds.hpp" -#include "Simple_Float.hpp" -#include "Boolean.hpp" - -namespace CIMPP { - - - /* - The class represents IEEE Std 421.5-2005 type DC2A model. This model represents represent field-controlled dc commutator exciters with continuously acting voltage regulators having supplies obtained from the generator or auxiliary bus. It differs from the Type DC1A model only in the voltage regulator output limits, which are now proportional to terminal voltage . It is representative of solid-state replacements for various forms of older mechanical and rotating amplifier regulating equipment connected to dc commutator exciters. Reference: IEEE Standard 421.5-2005 Section 5.2. - */ - class ExcIEEEDC2A: public ExcitationSystemDynamics - { - - public: - CIMPP::PU ka; /* Voltage regulator gain (K). Typical Value = 300. Default: nullptr */ - CIMPP::Seconds ta; /* Voltage regulator time constant (T). Typical Value = 0.01. Default: nullptr */ - CIMPP::Seconds tb; /* Voltage regulator time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tc; /* Voltage regulator time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::PU vrmax; /* Maximum voltage regulator output (V). Typical Value = 4.95. Default: nullptr */ - CIMPP::PU vrmin; /* Minimum voltage regulator output (V). Typical Value = -4.9. Default: nullptr */ - CIMPP::PU ke; /* Exciter constant related to self-excited field (K). Typical Value = 1. Default: nullptr */ - CIMPP::Seconds te; /* Exciter time constant, integration rate associated with exciter control (T). Typical Value = 1.33. Default: nullptr */ - CIMPP::PU kf; /* Excitation control system stabilizer gain (K). Typical Value = 0.1. Default: nullptr */ - CIMPP::Seconds tf; /* Excitation control system stabilizer time constant (T). Typical Value = 0.675. Default: nullptr */ - CIMPP::PU efd1; /* Exciter voltage at which exciter saturation is defined (E). Typical Value = 3.05. Default: nullptr */ - CIMPP::Simple_Float seefd1; /* Exciter saturation function value at the corresponding exciter voltage, E (S[E]). Typical Value = 0.279. Default: nullptr */ - CIMPP::PU efd2; /* Exciter voltage at which exciter saturation is defined (E). Typical Value = 2.29. Default: nullptr */ - CIMPP::Simple_Float seefd2; /* Exciter saturation function value at the corresponding exciter voltage, E (S[E]). Typical Value = 0.117. Default: nullptr */ - CIMPP::Boolean uelin; /* UEL input (uelin). true = input is connected to the HV gate false = input connects to the error signal. Typical Value = true. Default: false */ - CIMPP::Boolean exclim; /* (exclim). IEEE standard is ambiguous about lower limit on exciter output. true = a lower limit of zero is applied to integrator output false = a lower limit of zero is not applied to integrator output. Typical Value = true. Default: false */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ExcIEEEDC2A(); - virtual ~ExcIEEEDC2A(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ExcIEEEDC2A_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ExcIEEEDC3A.cpp b/CGMES_2.4.13_18DEC2013/ExcIEEEDC3A.cpp deleted file mode 100644 index 3069c7e30..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcIEEEDC3A.cpp +++ /dev/null @@ -1,206 +0,0 @@ -#include -#include "ExcitationSystemDynamics.hpp" -#include "ExcIEEEDC3A.hpp" - -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "Boolean.hpp" - -using namespace CIMPP; - -ExcIEEEDC3A::ExcIEEEDC3A() {}; - -ExcIEEEDC3A::~ExcIEEEDC3A() {}; - - - - - - - - - - - - - - -bool assign_ExcIEEEDC3A_trh(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEDC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->trh; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEDC3A_kv(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEDC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kv; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEDC3A_vrmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEDC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEDC3A_vrmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEDC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEDC3A_te(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEDC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->te; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEDC3A_ke(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEDC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ke; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEDC3A_efd1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEDC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->efd1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEDC3A_seefd1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEDC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->seefd1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEDC3A_efd2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEDC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->efd2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEDC3A_seefd2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEDC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->seefd2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEDC3A_exclim(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEDC3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->exclim; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ExcIEEEDC3A_factory() { - return new ExcIEEEDC3A; - } -} - -void ExcIEEEDC3A::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ExcIEEEDC3A"), &ExcIEEEDC3A_factory)); -} - -void ExcIEEEDC3A::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEDC3A.trh"), &assign_ExcIEEEDC3A_trh)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEDC3A.kv"), &assign_ExcIEEEDC3A_kv)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEDC3A.vrmax"), &assign_ExcIEEEDC3A_vrmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEDC3A.vrmin"), &assign_ExcIEEEDC3A_vrmin)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEDC3A.te"), &assign_ExcIEEEDC3A_te)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEDC3A.ke"), &assign_ExcIEEEDC3A_ke)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEDC3A.efd1"), &assign_ExcIEEEDC3A_efd1)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEDC3A.seefd1"), &assign_ExcIEEEDC3A_seefd1)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEDC3A.efd2"), &assign_ExcIEEEDC3A_efd2)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEDC3A.seefd2"), &assign_ExcIEEEDC3A_seefd2)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEDC3A.exclim"), &assign_ExcIEEEDC3A_exclim)); -} - -void ExcIEEEDC3A::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char ExcIEEEDC3A::debugName[] = "ExcIEEEDC3A"; -const char* ExcIEEEDC3A::debugString() -{ - return ExcIEEEDC3A::debugName; -} - -const BaseClassDefiner ExcIEEEDC3A::declare() -{ - return BaseClassDefiner(ExcIEEEDC3A::addConstructToMap, ExcIEEEDC3A::addPrimitiveAssignFnsToMap, ExcIEEEDC3A::addClassAssignFnsToMap, ExcIEEEDC3A::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ExcIEEEDC3A.hpp b/CGMES_2.4.13_18DEC2013/ExcIEEEDC3A.hpp deleted file mode 100644 index 41575683a..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcIEEEDC3A.hpp +++ /dev/null @@ -1,53 +0,0 @@ -#ifndef ExcIEEEDC3A_H -#define ExcIEEEDC3A_H - -#include "ExcitationSystemDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Seconds.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "Boolean.hpp" - -namespace CIMPP { - - - /* - The class represents IEEE Std 421.5-2005 type DC3A model. This model represents represent older systems, in particular those dc commutator exciters with non-continuously acting regulators that were commonly used before the development of the continuously acting varieties. These systems respond at basically two different rates, depending upon the magnitude of voltage error. For small errors, adjustment is made periodically with a signal to a motor-operated rheostat. Larger errors cause resistors to be quickly shorted or inserted and a strong forcing signal applied to the exciter. Continuous motion of the motor-operated rheostat occurs for these larger error signals, even though it is bypassed by contactor action. Reference: IEEE Standard 421.5-2005 Section 5.3. - */ - class ExcIEEEDC3A: public ExcitationSystemDynamics - { - - public: - CIMPP::Seconds trh; /* Rheostat travel time (T). Typical Value = 20. Default: nullptr */ - CIMPP::PU kv; /* Fast raise/lower contact setting (K). Typical Value = 0.05. Default: nullptr */ - CIMPP::PU vrmax; /* Maximum voltage regulator output (V). Typical Value = 1. Default: nullptr */ - CIMPP::PU vrmin; /* Minimum voltage regulator output (V). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds te; /* Exciter time constant, integration rate associated with exciter control (T). Typical Value = 0.5. Default: nullptr */ - CIMPP::PU ke; /* Exciter constant related to self-excited field (K). Typical Value = 0.05. Default: nullptr */ - CIMPP::PU efd1; /* Exciter voltage at which exciter saturation is defined (E). Typical Value = 3.375. Default: nullptr */ - CIMPP::Simple_Float seefd1; /* Exciter saturation function value at the corresponding exciter voltage, E (S[E]). Typical Value = 0.267. Default: nullptr */ - CIMPP::PU efd2; /* Exciter voltage at which exciter saturation is defined (E). Typical Value = 3.15. Default: nullptr */ - CIMPP::Simple_Float seefd2; /* Exciter saturation function value at the corresponding exciter voltage, E (S[E]). Typical Value = 0.068. Default: nullptr */ - CIMPP::Boolean exclim; /* (exclim). IEEE standard is ambiguous about lower limit on exciter output. true = a lower limit of zero is applied to integrator output false = a lower limit of zero is not applied to integrator output. Typical Value = true. Default: false */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ExcIEEEDC3A(); - virtual ~ExcIEEEDC3A(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ExcIEEEDC3A_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ExcIEEEDC4B.cpp b/CGMES_2.4.13_18DEC2013/ExcIEEEDC4B.cpp deleted file mode 100644 index d9da2e70d..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcIEEEDC4B.cpp +++ /dev/null @@ -1,326 +0,0 @@ -#include -#include "ExcitationSystemDynamics.hpp" -#include "ExcIEEEDC4B.hpp" - -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "Boolean.hpp" -#include "Boolean.hpp" - -using namespace CIMPP; - -ExcIEEEDC4B::ExcIEEEDC4B() {}; - -ExcIEEEDC4B::~ExcIEEEDC4B() {}; - - - - - - - - - - - - - - - - - - - - - - -bool assign_ExcIEEEDC4B_ka(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEDC4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ka; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEDC4B_ta(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEDC4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ta; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEDC4B_kp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEDC4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEDC4B_ki(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEDC4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ki; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEDC4B_kd(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEDC4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kd; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEDC4B_td(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEDC4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->td; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEDC4B_vrmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEDC4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEDC4B_vrmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEDC4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEDC4B_ke(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEDC4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ke; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEDC4B_te(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEDC4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->te; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEDC4B_kf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEDC4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEDC4B_tf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEDC4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEDC4B_efd1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEDC4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->efd1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEDC4B_seefd1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEDC4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->seefd1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEDC4B_efd2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEDC4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->efd2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEDC4B_seefd2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEDC4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->seefd2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEDC4B_vemin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEDC4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vemin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEDC4B_oelin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEDC4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->oelin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEDC4B_uelin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEDC4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->uelin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ExcIEEEDC4B_factory() { - return new ExcIEEEDC4B; - } -} - -void ExcIEEEDC4B::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ExcIEEEDC4B"), &ExcIEEEDC4B_factory)); -} - -void ExcIEEEDC4B::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEDC4B.ka"), &assign_ExcIEEEDC4B_ka)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEDC4B.ta"), &assign_ExcIEEEDC4B_ta)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEDC4B.kp"), &assign_ExcIEEEDC4B_kp)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEDC4B.ki"), &assign_ExcIEEEDC4B_ki)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEDC4B.kd"), &assign_ExcIEEEDC4B_kd)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEDC4B.td"), &assign_ExcIEEEDC4B_td)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEDC4B.vrmax"), &assign_ExcIEEEDC4B_vrmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEDC4B.vrmin"), &assign_ExcIEEEDC4B_vrmin)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEDC4B.ke"), &assign_ExcIEEEDC4B_ke)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEDC4B.te"), &assign_ExcIEEEDC4B_te)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEDC4B.kf"), &assign_ExcIEEEDC4B_kf)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEDC4B.tf"), &assign_ExcIEEEDC4B_tf)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEDC4B.efd1"), &assign_ExcIEEEDC4B_efd1)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEDC4B.seefd1"), &assign_ExcIEEEDC4B_seefd1)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEDC4B.efd2"), &assign_ExcIEEEDC4B_efd2)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEDC4B.seefd2"), &assign_ExcIEEEDC4B_seefd2)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEDC4B.vemin"), &assign_ExcIEEEDC4B_vemin)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEDC4B.oelin"), &assign_ExcIEEEDC4B_oelin)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEDC4B.uelin"), &assign_ExcIEEEDC4B_uelin)); -} - -void ExcIEEEDC4B::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char ExcIEEEDC4B::debugName[] = "ExcIEEEDC4B"; -const char* ExcIEEEDC4B::debugString() -{ - return ExcIEEEDC4B::debugName; -} - -const BaseClassDefiner ExcIEEEDC4B::declare() -{ - return BaseClassDefiner(ExcIEEEDC4B::addConstructToMap, ExcIEEEDC4B::addPrimitiveAssignFnsToMap, ExcIEEEDC4B::addClassAssignFnsToMap, ExcIEEEDC4B::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ExcIEEEDC4B.hpp b/CGMES_2.4.13_18DEC2013/ExcIEEEDC4B.hpp deleted file mode 100644 index cbb1cf6a8..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcIEEEDC4B.hpp +++ /dev/null @@ -1,61 +0,0 @@ -#ifndef ExcIEEEDC4B_H -#define ExcIEEEDC4B_H - -#include "ExcitationSystemDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "Seconds.hpp" -#include "Simple_Float.hpp" -#include "Boolean.hpp" - -namespace CIMPP { - - - /* - The class represents IEEE Std 421.5-2005 type DC4B model. These excitation systems utilize a field-controlled dc commutator exciter with a continuously acting voltage regulator having supplies obtained from the generator or auxiliary bus. Reference: IEEE Standard 421.5-2005 Section 5.4. - */ - class ExcIEEEDC4B: public ExcitationSystemDynamics - { - - public: - CIMPP::PU ka; /* Voltage regulator gain (K). Typical Value = 1. Default: nullptr */ - CIMPP::Seconds ta; /* Voltage regulator time constant (T). Typical Value = 0.2. Default: nullptr */ - CIMPP::PU kp; /* Regulator proportional gain (K). Typical Value = 20. Default: nullptr */ - CIMPP::PU ki; /* Regulator integral gain (K). Typical Value = 20. Default: nullptr */ - CIMPP::PU kd; /* Regulator derivative gain (K). Typical Value = 20. Default: nullptr */ - CIMPP::Seconds td; /* Regulator derivative filter time constant(T). Typical Value = 0.01. Default: nullptr */ - CIMPP::PU vrmax; /* Maximum voltage regulator output (V). Typical Value = 2.7. Default: nullptr */ - CIMPP::PU vrmin; /* Minimum voltage regulator output (V). Typical Value = -0.9. Default: nullptr */ - CIMPP::PU ke; /* Exciter constant related to self-excited field (K). Typical Value = 1. Default: nullptr */ - CIMPP::Seconds te; /* Exciter time constant, integration rate associated with exciter control (T). Typical Value = 0.8. Default: nullptr */ - CIMPP::PU kf; /* Excitation control system stabilizer gain (K). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tf; /* Excitation control system stabilizer time constant (T). Typical Value = 1. Default: nullptr */ - CIMPP::PU efd1; /* Exciter voltage at which exciter saturation is defined (E). Typical Value = 1.75. Default: nullptr */ - CIMPP::Simple_Float seefd1; /* Exciter saturation function value at the corresponding exciter voltage, E (S[E]). Typical Value = 0.08. Default: nullptr */ - CIMPP::PU efd2; /* Exciter voltage at which exciter saturation is defined (E). Typical Value = 2.33. Default: nullptr */ - CIMPP::Simple_Float seefd2; /* Exciter saturation function value at the corresponding exciter voltage, E (S[E]). Typical Value = 0.27. Default: nullptr */ - CIMPP::PU vemin; /* Minimum exciter voltage output(V). Typical Value = 0. Default: nullptr */ - CIMPP::Boolean oelin; /* OEL input (OELin). true = LV gate false = subtract from error signal. Typical Value = true. Default: false */ - CIMPP::Boolean uelin; /* UEL input (UELin). true = HV gate false = add to error signal. Typical Value = true. Default: false */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ExcIEEEDC4B(); - virtual ~ExcIEEEDC4B(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ExcIEEEDC4B_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ExcIEEEST1A.cpp b/CGMES_2.4.13_18DEC2013/ExcIEEEST1A.cpp deleted file mode 100644 index 137e3cc50..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcIEEEST1A.cpp +++ /dev/null @@ -1,326 +0,0 @@ -#include -#include "ExcitationSystemDynamics.hpp" -#include "ExcIEEEST1A.hpp" - -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Boolean.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "ExcIEEEST1AUELselectorKind.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -ExcIEEEST1A::ExcIEEEST1A() {}; - -ExcIEEEST1A::~ExcIEEEST1A() {}; - - - - - - - - - - - - - - - - - - - - - - -bool assign_ExcIEEEST1A_ilr(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ilr; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST1A_ka(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ka; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST1A_kc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST1A_kf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST1A_klr(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->klr; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST1A_pssin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pssin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST1A_ta(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ta; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST1A_tb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST1A_tb1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tb1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST1A_tc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST1A_tc1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tc1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST1A_tf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST1A_uelin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->uelin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST1A_vamax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vamax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST1A_vamin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vamin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST1A_vimax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vimax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST1A_vimin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vimin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST1A_vrmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST1A_vrmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ExcIEEEST1A_factory() { - return new ExcIEEEST1A; - } -} - -void ExcIEEEST1A::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ExcIEEEST1A"), &ExcIEEEST1A_factory)); -} - -void ExcIEEEST1A::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST1A.ilr"), &assign_ExcIEEEST1A_ilr)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST1A.ka"), &assign_ExcIEEEST1A_ka)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST1A.kc"), &assign_ExcIEEEST1A_kc)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST1A.kf"), &assign_ExcIEEEST1A_kf)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST1A.klr"), &assign_ExcIEEEST1A_klr)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST1A.pssin"), &assign_ExcIEEEST1A_pssin)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST1A.ta"), &assign_ExcIEEEST1A_ta)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST1A.tb"), &assign_ExcIEEEST1A_tb)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST1A.tb1"), &assign_ExcIEEEST1A_tb1)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST1A.tc"), &assign_ExcIEEEST1A_tc)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST1A.tc1"), &assign_ExcIEEEST1A_tc1)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST1A.tf"), &assign_ExcIEEEST1A_tf)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST1A.uelin"), &assign_ExcIEEEST1A_uelin)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST1A.vamax"), &assign_ExcIEEEST1A_vamax)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST1A.vamin"), &assign_ExcIEEEST1A_vamin)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST1A.vimax"), &assign_ExcIEEEST1A_vimax)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST1A.vimin"), &assign_ExcIEEEST1A_vimin)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST1A.vrmax"), &assign_ExcIEEEST1A_vrmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST1A.vrmin"), &assign_ExcIEEEST1A_vrmin)); -} - -void ExcIEEEST1A::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char ExcIEEEST1A::debugName[] = "ExcIEEEST1A"; -const char* ExcIEEEST1A::debugString() -{ - return ExcIEEEST1A::debugName; -} - -const BaseClassDefiner ExcIEEEST1A::declare() -{ - return BaseClassDefiner(ExcIEEEST1A::addConstructToMap, ExcIEEEST1A::addPrimitiveAssignFnsToMap, ExcIEEEST1A::addClassAssignFnsToMap, ExcIEEEST1A::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ExcIEEEST1A.hpp b/CGMES_2.4.13_18DEC2013/ExcIEEEST1A.hpp deleted file mode 100644 index c45173769..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcIEEEST1A.hpp +++ /dev/null @@ -1,61 +0,0 @@ -#ifndef ExcIEEEST1A_H -#define ExcIEEEST1A_H - -#include "ExcitationSystemDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "Boolean.hpp" -#include "Seconds.hpp" -#include "ExcIEEEST1AUELselectorKind.hpp" - -namespace CIMPP { - - - /* - The class represents IEEE Std 421.5-2005 type ST1A model. This model represents systems in which excitation power is supplied through a transformer from the generator terminals (or the unit's auxiliary bus) and is regulated by a controlled rectifier. The maximum exciter voltage available from such systems is directly related to the generator terminal voltage. Reference: IEEE Standard 421.5-2005 Section 7.1. - */ - class ExcIEEEST1A: public ExcitationSystemDynamics - { - - public: - CIMPP::PU ilr; /* Exciter output current limit reference (I). Typical Value = 0. Default: nullptr */ - CIMPP::PU ka; /* Voltage regulator gain (K). Typical Value = 190. Default: nullptr */ - CIMPP::PU kc; /* Rectifier loading factor proportional to commutating reactance (K). Typical Value = 0.08. Default: nullptr */ - CIMPP::PU kf; /* Excitation control system stabilizer gains (K). Typical Value = 0. Default: nullptr */ - CIMPP::PU klr; /* Exciter output current limiter gain (K). Typical Value = 0. Default: nullptr */ - CIMPP::Boolean pssin; /* Selector of the Power System Stabilizer (PSS) input (PSSin). true = PSS input (Vs) added to error signal false = PSS input (Vs) added to voltage regulator output. Typical Value = true. Default: false */ - CIMPP::Seconds ta; /* Voltage regulator time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tb; /* Voltage regulator time constant (T). Typical Value = 10. Default: nullptr */ - CIMPP::Seconds tb1; /* Voltage regulator time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tc; /* Voltage regulator time constant (T). Typical Value = 1. Default: nullptr */ - CIMPP::Seconds tc1; /* Voltage regulator time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tf; /* Excitation control system stabilizer time constant (T). Typical Value = 1. Default: nullptr */ - CIMPP::ExcIEEEST1AUELselectorKind uelin; /* Selector of the connection of the UEL input (UELin). Typical Value = ignoreUELsignal. Default: 0 */ - CIMPP::PU vamax; /* Maximum voltage regulator output (V). Typical Value = 14.5. Default: nullptr */ - CIMPP::PU vamin; /* Minimum voltage regulator output (V). Typical Value = -14.5. Default: nullptr */ - CIMPP::PU vimax; /* Maximum voltage regulator input limit (V). Typical Value = 999. Default: nullptr */ - CIMPP::PU vimin; /* Minimum voltage regulator input limit (V). Typical Value = -999. Default: nullptr */ - CIMPP::PU vrmax; /* Maximum voltage regulator outputs (V). Typical Value = 7.8. Default: nullptr */ - CIMPP::PU vrmin; /* Minimum voltage regulator outputs (V). Typical Value = -6.7. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ExcIEEEST1A(); - virtual ~ExcIEEEST1A(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ExcIEEEST1A_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ExcIEEEST1AUELselectorKind.cpp b/CGMES_2.4.13_18DEC2013/ExcIEEEST1AUELselectorKind.cpp deleted file mode 100644 index 6060c0dd5..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcIEEEST1AUELselectorKind.cpp +++ /dev/null @@ -1,47 +0,0 @@ -#include -#include -#include "ExcIEEEST1AUELselectorKind.hpp" - -using namespace CIMPP; - -namespace CIMPP { - std::istream& operator>>(std::istream& lop, CIMPP::ExcIEEEST1AUELselectorKind& rop) - { - std::string EnumSymbol; - lop >> EnumSymbol; - - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "ExcIEEEST1AUELselectorKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "ignoreUELsignal") - { - rop = ExcIEEEST1AUELselectorKind::ignoreUELsignal; - return lop; - } - if(EnumSymbol == "inputHVgateVoltageOutput") - { - rop = ExcIEEEST1AUELselectorKind::inputHVgateVoltageOutput; - return lop; - } - if(EnumSymbol == "inputHVgateErrorSignal") - { - rop = ExcIEEEST1AUELselectorKind::inputHVgateErrorSignal; - return lop; - } - if(EnumSymbol == "inputAddedToErrorSignal") - { - rop = ExcIEEEST1AUELselectorKind::inputAddedToErrorSignal; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; - } -} - diff --git a/CGMES_2.4.13_18DEC2013/ExcIEEEST1AUELselectorKind.hpp b/CGMES_2.4.13_18DEC2013/ExcIEEEST1AUELselectorKind.hpp deleted file mode 100644 index 3f420426b..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcIEEEST1AUELselectorKind.hpp +++ /dev/null @@ -1,29 +0,0 @@ -#ifndef ExcIEEEST1AUELselectorKind_H -#define ExcIEEEST1AUELselectorKind_H - -namespace CIMPP { - /* - Type of connection for the UEL input used in ExcIEEEST1A. - */ - enum class ExcIEEEST1AUELselectorKind - { - /** - * Ignore UEL signal. - */ - ignoreUELsignal, - /** - * UEL input HV gate with voltage regulator output. - */ - inputHVgateVoltageOutput, - /** - * UEL input HV gate with error signal. - */ - inputHVgateErrorSignal, - /** - * UEL input added to error signal. - */ - inputAddedToErrorSignal, - }; - std::istream& operator>>(std::istream& lop, CIMPP::ExcIEEEST1AUELselectorKind& rop); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ExcIEEEST2A.cpp b/CGMES_2.4.13_18DEC2013/ExcIEEEST2A.cpp deleted file mode 100644 index 4ac35b2ef..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcIEEEST2A.cpp +++ /dev/null @@ -1,236 +0,0 @@ -#include -#include "ExcitationSystemDynamics.hpp" -#include "ExcIEEEST2A.hpp" - -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Boolean.hpp" - -using namespace CIMPP; - -ExcIEEEST2A::ExcIEEEST2A() {}; - -ExcIEEEST2A::~ExcIEEEST2A() {}; - - - - - - - - - - - - - - - - -bool assign_ExcIEEEST2A_ka(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ka; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST2A_ta(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ta; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST2A_vrmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST2A_vrmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST2A_ke(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ke; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST2A_te(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->te; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST2A_kf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST2A_tf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST2A_kp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST2A_ki(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ki; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST2A_kc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST2A_efdmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->efdmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST2A_uelin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->uelin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ExcIEEEST2A_factory() { - return new ExcIEEEST2A; - } -} - -void ExcIEEEST2A::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ExcIEEEST2A"), &ExcIEEEST2A_factory)); -} - -void ExcIEEEST2A::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST2A.ka"), &assign_ExcIEEEST2A_ka)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST2A.ta"), &assign_ExcIEEEST2A_ta)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST2A.vrmax"), &assign_ExcIEEEST2A_vrmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST2A.vrmin"), &assign_ExcIEEEST2A_vrmin)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST2A.ke"), &assign_ExcIEEEST2A_ke)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST2A.te"), &assign_ExcIEEEST2A_te)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST2A.kf"), &assign_ExcIEEEST2A_kf)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST2A.tf"), &assign_ExcIEEEST2A_tf)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST2A.kp"), &assign_ExcIEEEST2A_kp)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST2A.ki"), &assign_ExcIEEEST2A_ki)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST2A.kc"), &assign_ExcIEEEST2A_kc)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST2A.efdmax"), &assign_ExcIEEEST2A_efdmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST2A.uelin"), &assign_ExcIEEEST2A_uelin)); -} - -void ExcIEEEST2A::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char ExcIEEEST2A::debugName[] = "ExcIEEEST2A"; -const char* ExcIEEEST2A::debugString() -{ - return ExcIEEEST2A::debugName; -} - -const BaseClassDefiner ExcIEEEST2A::declare() -{ - return BaseClassDefiner(ExcIEEEST2A::addConstructToMap, ExcIEEEST2A::addPrimitiveAssignFnsToMap, ExcIEEEST2A::addClassAssignFnsToMap, ExcIEEEST2A::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ExcIEEEST2A.hpp b/CGMES_2.4.13_18DEC2013/ExcIEEEST2A.hpp deleted file mode 100644 index 912aa6548..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcIEEEST2A.hpp +++ /dev/null @@ -1,54 +0,0 @@ -#ifndef ExcIEEEST2A_H -#define ExcIEEEST2A_H - -#include "ExcitationSystemDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "Seconds.hpp" -#include "Boolean.hpp" - -namespace CIMPP { - - - /* - The class represents IEEE Std 421.5-2005 type ST2A model. Some static systems utilize both current and voltage sources (generator terminal quantities) to comprise the power source. The regulator controls the exciter output through controlled saturation of the power transformer components. These compound-source rectifier excitation systems are designated Type ST2A and are represented by ExcIEEEST2A. Reference: IEEE Standard 421.5-2005 Section 7.2. - */ - class ExcIEEEST2A: public ExcitationSystemDynamics - { - - public: - CIMPP::PU ka; /* Voltage regulator gain (K). Typical Value = 120. Default: nullptr */ - CIMPP::Seconds ta; /* Voltage regulator time constant (T). Typical Value = 0.15. Default: nullptr */ - CIMPP::PU vrmax; /* Maximum voltage regulator outputs (V). Typical Value = 1. Default: nullptr */ - CIMPP::PU vrmin; /* Minimum voltage regulator outputs (V). Typical Value = 0. Default: nullptr */ - CIMPP::PU ke; /* Exciter constant related to self-excited field (K). Typical Value = 1. Default: nullptr */ - CIMPP::Seconds te; /* Exciter time constant, integration rate associated with exciter control (T). Typical Value = 0.5. Default: nullptr */ - CIMPP::PU kf; /* Excitation control system stabilizer gains (K). Typical Value = 0.05. Default: nullptr */ - CIMPP::Seconds tf; /* Excitation control system stabilizer time constant (T). Typical Value = 1. Default: nullptr */ - CIMPP::PU kp; /* Potential circuit gain coefficient (K). Typical Value = 4.88. Default: nullptr */ - CIMPP::PU ki; /* Potential circuit gain coefficient (K). Typical Value = 8. Default: nullptr */ - CIMPP::PU kc; /* Rectifier loading factor proportional to commutating reactance (K). Typical Value = 1.82. Default: nullptr */ - CIMPP::PU efdmax; /* Maximum field voltage (E). Typical Value = 99. Default: nullptr */ - CIMPP::Boolean uelin; /* UEL input (UELin). true = HV gate false = add to error signal. Typical Value = true. Default: false */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ExcIEEEST2A(); - virtual ~ExcIEEEST2A(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ExcIEEEST2A_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ExcIEEEST3A.cpp b/CGMES_2.4.13_18DEC2013/ExcIEEEST3A.cpp deleted file mode 100644 index 4c4f03a47..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcIEEEST3A.cpp +++ /dev/null @@ -1,341 +0,0 @@ -#include -#include "ExcitationSystemDynamics.hpp" -#include "ExcIEEEST3A.hpp" - -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "AngleDegrees.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -ExcIEEEST3A::ExcIEEEST3A() {}; - -ExcIEEEST3A::~ExcIEEEST3A() {}; - - - - - - - - - - - - - - - - - - - - - - - -bool assign_ExcIEEEST3A_vimax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vimax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST3A_vimin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vimin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST3A_ka(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ka; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST3A_ta(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ta; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST3A_tb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST3A_tc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST3A_vrmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST3A_vrmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST3A_km(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->km; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST3A_tm(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tm; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST3A_vmmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vmmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST3A_vmmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vmmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST3A_kg(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kg; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST3A_kp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST3A_thetap(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->thetap; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST3A_ki(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ki; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST3A_kc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST3A_xl(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->xl; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST3A_vbmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vbmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST3A_vgmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vgmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ExcIEEEST3A_factory() { - return new ExcIEEEST3A; - } -} - -void ExcIEEEST3A::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ExcIEEEST3A"), &ExcIEEEST3A_factory)); -} - -void ExcIEEEST3A::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST3A.vimax"), &assign_ExcIEEEST3A_vimax)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST3A.vimin"), &assign_ExcIEEEST3A_vimin)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST3A.ka"), &assign_ExcIEEEST3A_ka)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST3A.ta"), &assign_ExcIEEEST3A_ta)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST3A.tb"), &assign_ExcIEEEST3A_tb)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST3A.tc"), &assign_ExcIEEEST3A_tc)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST3A.vrmax"), &assign_ExcIEEEST3A_vrmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST3A.vrmin"), &assign_ExcIEEEST3A_vrmin)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST3A.km"), &assign_ExcIEEEST3A_km)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST3A.tm"), &assign_ExcIEEEST3A_tm)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST3A.vmmax"), &assign_ExcIEEEST3A_vmmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST3A.vmmin"), &assign_ExcIEEEST3A_vmmin)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST3A.kg"), &assign_ExcIEEEST3A_kg)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST3A.kp"), &assign_ExcIEEEST3A_kp)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST3A.thetap"), &assign_ExcIEEEST3A_thetap)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST3A.ki"), &assign_ExcIEEEST3A_ki)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST3A.kc"), &assign_ExcIEEEST3A_kc)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST3A.xl"), &assign_ExcIEEEST3A_xl)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST3A.vbmax"), &assign_ExcIEEEST3A_vbmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST3A.vgmax"), &assign_ExcIEEEST3A_vgmax)); -} - -void ExcIEEEST3A::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char ExcIEEEST3A::debugName[] = "ExcIEEEST3A"; -const char* ExcIEEEST3A::debugString() -{ - return ExcIEEEST3A::debugName; -} - -const BaseClassDefiner ExcIEEEST3A::declare() -{ - return BaseClassDefiner(ExcIEEEST3A::addConstructToMap, ExcIEEEST3A::addPrimitiveAssignFnsToMap, ExcIEEEST3A::addClassAssignFnsToMap, ExcIEEEST3A::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ExcIEEEST3A.hpp b/CGMES_2.4.13_18DEC2013/ExcIEEEST3A.hpp deleted file mode 100644 index dc1e98f9f..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcIEEEST3A.hpp +++ /dev/null @@ -1,61 +0,0 @@ -#ifndef ExcIEEEST3A_H -#define ExcIEEEST3A_H - -#include "ExcitationSystemDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "Seconds.hpp" -#include "AngleDegrees.hpp" - -namespace CIMPP { - - - /* - The class represents IEEE Std 421.5-2005 type ST3A model. Some static systems utilize a field voltage control loop to linearize the exciter control characteristic. This also makes the output independent of supply source variations until supply limitations are reached. These systems utilize a variety of controlled-rectifier designs: full thyristor complements or hybrid bridges in either series or shunt configurations. The power source may consist of only a potential source, either fed from the machine terminals or from internal windings. Some designs may have compound power sources utilizing both machine potential and current. These power sources are represented as phasor combinations of machine terminal current and voltage and are accommodated by suitable parameters in model Type ST3A which is represented by ExcIEEEST3A. Reference: IEEE Standard 421.5-2005 Section 7.3. - */ - class ExcIEEEST3A: public ExcitationSystemDynamics - { - - public: - CIMPP::PU vimax; /* Maximum voltage regulator input limit (V). Typical Value = 0.2. Default: nullptr */ - CIMPP::PU vimin; /* Minimum voltage regulator input limit (V). Typical Value = -0.2. Default: nullptr */ - CIMPP::PU ka; /* Voltage regulator gain (K). This is parameter K in the IEEE Std. Typical Value = 200. Default: nullptr */ - CIMPP::Seconds ta; /* Voltage regulator time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tb; /* Voltage regulator time constant (T). Typical Value = 10. Default: nullptr */ - CIMPP::Seconds tc; /* Voltage regulator time constant (T). Typical Value = 1. Default: nullptr */ - CIMPP::PU vrmax; /* Maximum voltage regulator output (V). Typical Value = 10. Default: nullptr */ - CIMPP::PU vrmin; /* Minimum voltage regulator output (V). Typical Value = -10. Default: nullptr */ - CIMPP::PU km; /* Forward gain constant of the inner loop field regulator (K). Typical Value = 7.93. Default: nullptr */ - CIMPP::Seconds tm; /* Forward time constant of inner loop field regulator (T). Typical Value = 0.4. Default: nullptr */ - CIMPP::PU vmmax; /* Maximum inner loop output (V). Typical Value = 1. Default: nullptr */ - CIMPP::PU vmmin; /* Minimum inner loop output (V). Typical Value = 0. Default: nullptr */ - CIMPP::PU kg; /* Feedback gain constant of the inner loop field regulator (K). Typical Value = 1. Default: nullptr */ - CIMPP::PU kp; /* Potential circuit gain coefficient (K). Typical Value = 6.15. Default: nullptr */ - CIMPP::AngleDegrees thetap; /* Potential circuit phase angle (thetap). Typical Value = 0. Default: nullptr */ - CIMPP::PU ki; /* Potential circuit gain coefficient (K). Typical Value = 0. Default: nullptr */ - CIMPP::PU kc; /* Rectifier loading factor proportional to commutating reactance (K). Typical Value = 0.2. Default: nullptr */ - CIMPP::PU xl; /* Reactance associated with potential source (X). Typical Value = 0.081. Default: nullptr */ - CIMPP::PU vbmax; /* Maximum excitation voltage (V). Typical Value = 6.9. Default: nullptr */ - CIMPP::PU vgmax; /* Maximum inner loop feedback voltage (V). Typical Value = 5.8. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ExcIEEEST3A(); - virtual ~ExcIEEEST3A(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ExcIEEEST3A_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ExcIEEEST4B.cpp b/CGMES_2.4.13_18DEC2013/ExcIEEEST4B.cpp deleted file mode 100644 index 738423f7b..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcIEEEST4B.cpp +++ /dev/null @@ -1,281 +0,0 @@ -#include -#include "ExcitationSystemDynamics.hpp" -#include "ExcIEEEST4B.hpp" - -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "AngleDegrees.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -ExcIEEEST4B::ExcIEEEST4B() {}; - -ExcIEEEST4B::~ExcIEEEST4B() {}; - - - - - - - - - - - - - - - - - - - -bool assign_ExcIEEEST4B_kpr(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kpr; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST4B_kir(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kir; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST4B_ta(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ta; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST4B_vrmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST4B_vrmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST4B_kpm(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kpm; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST4B_kim(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kim; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST4B_vmmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vmmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST4B_vmmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vmmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST4B_kg(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kg; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST4B_kp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST4B_thetap(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->thetap; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST4B_ki(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ki; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST4B_kc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST4B_xl(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->xl; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST4B_vbmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vbmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ExcIEEEST4B_factory() { - return new ExcIEEEST4B; - } -} - -void ExcIEEEST4B::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ExcIEEEST4B"), &ExcIEEEST4B_factory)); -} - -void ExcIEEEST4B::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST4B.kpr"), &assign_ExcIEEEST4B_kpr)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST4B.kir"), &assign_ExcIEEEST4B_kir)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST4B.ta"), &assign_ExcIEEEST4B_ta)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST4B.vrmax"), &assign_ExcIEEEST4B_vrmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST4B.vrmin"), &assign_ExcIEEEST4B_vrmin)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST4B.kpm"), &assign_ExcIEEEST4B_kpm)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST4B.kim"), &assign_ExcIEEEST4B_kim)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST4B.vmmax"), &assign_ExcIEEEST4B_vmmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST4B.vmmin"), &assign_ExcIEEEST4B_vmmin)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST4B.kg"), &assign_ExcIEEEST4B_kg)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST4B.kp"), &assign_ExcIEEEST4B_kp)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST4B.thetap"), &assign_ExcIEEEST4B_thetap)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST4B.ki"), &assign_ExcIEEEST4B_ki)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST4B.kc"), &assign_ExcIEEEST4B_kc)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST4B.xl"), &assign_ExcIEEEST4B_xl)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST4B.vbmax"), &assign_ExcIEEEST4B_vbmax)); -} - -void ExcIEEEST4B::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char ExcIEEEST4B::debugName[] = "ExcIEEEST4B"; -const char* ExcIEEEST4B::debugString() -{ - return ExcIEEEST4B::debugName; -} - -const BaseClassDefiner ExcIEEEST4B::declare() -{ - return BaseClassDefiner(ExcIEEEST4B::addConstructToMap, ExcIEEEST4B::addPrimitiveAssignFnsToMap, ExcIEEEST4B::addClassAssignFnsToMap, ExcIEEEST4B::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ExcIEEEST4B.hpp b/CGMES_2.4.13_18DEC2013/ExcIEEEST4B.hpp deleted file mode 100644 index 9d4f94400..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcIEEEST4B.hpp +++ /dev/null @@ -1,57 +0,0 @@ -#ifndef ExcIEEEST4B_H -#define ExcIEEEST4B_H - -#include "ExcitationSystemDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "Seconds.hpp" -#include "AngleDegrees.hpp" - -namespace CIMPP { - - - /* - The class represents IEEE Std 421.5-2005 type ST4B model. This model is a variation of the Type ST3A model, with a proportional plus integral (PI) regulator block replacing the lag-lead regulator characteristic that is in the ST3A model. Both potential and compound source rectifier excitation systems are modeled. The PI regulator blocks have non-windup limits that are represented. The voltage regulator of this model is typically implemented digitally. Reference: IEEE Standard 421.5-2005 Section 7.4. - */ - class ExcIEEEST4B: public ExcitationSystemDynamics - { - - public: - CIMPP::PU kpr; /* Voltage regulator proportional gain (K). Typical Value = 10.75. Default: nullptr */ - CIMPP::PU kir; /* Voltage regulator integral gain (K). Typical Value = 10.75. Default: nullptr */ - CIMPP::Seconds ta; /* Voltage regulator time constant (T). Typical Value = 0.02. Default: nullptr */ - CIMPP::PU vrmax; /* Maximum voltage regulator output (V). Typical Value = 1. Default: nullptr */ - CIMPP::PU vrmin; /* Minimum voltage regulator output (V). Typical Value = -0.87. Default: nullptr */ - CIMPP::PU kpm; /* Voltage regulator proportional gain output (K). Typical Value = 1. Default: nullptr */ - CIMPP::PU kim; /* Voltage regulator integral gain output (K). Typical Value = 0. Default: nullptr */ - CIMPP::PU vmmax; /* Maximum inner loop output (V). Typical Value = 99. Default: nullptr */ - CIMPP::PU vmmin; /* Minimum inner loop output (V). Typical Value = -99. Default: nullptr */ - CIMPP::PU kg; /* Feedback gain constant of the inner loop field regulator (K). Typical Value = 0. Default: nullptr */ - CIMPP::PU kp; /* Potential circuit gain coefficient (K). Typical Value = 9.3. Default: nullptr */ - CIMPP::AngleDegrees thetap; /* Potential circuit phase angle (thetap). Typical Value = 0. Default: nullptr */ - CIMPP::PU ki; /* Potential circuit gain coefficient (K). Typical Value = 0. Default: nullptr */ - CIMPP::PU kc; /* Rectifier loading factor proportional to commutating reactance (K). Typical Value = 0.113. Default: nullptr */ - CIMPP::PU xl; /* Reactance associated with potential source (X). Typical Value = 0.124. Default: nullptr */ - CIMPP::PU vbmax; /* Maximum excitation voltage (V). Typical Value = 11.63. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ExcIEEEST4B(); - virtual ~ExcIEEEST4B(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ExcIEEEST4B_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ExcIEEEST5B.cpp b/CGMES_2.4.13_18DEC2013/ExcIEEEST5B.cpp deleted file mode 100644 index fa855da43..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcIEEEST5B.cpp +++ /dev/null @@ -1,296 +0,0 @@ -#include -#include "ExcitationSystemDynamics.hpp" -#include "ExcIEEEST5B.hpp" - -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" - -using namespace CIMPP; - -ExcIEEEST5B::ExcIEEEST5B() {}; - -ExcIEEEST5B::~ExcIEEEST5B() {}; - - - - - - - - - - - - - - - - - - - - -bool assign_ExcIEEEST5B_kr(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST5B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kr; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST5B_t1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST5B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST5B_kc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST5B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST5B_vrmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST5B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST5B_vrmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST5B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST5B_tc1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST5B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tc1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST5B_tb1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST5B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tb1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST5B_tc2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST5B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tc2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST5B_tb2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST5B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tb2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST5B_toc1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST5B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->toc1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST5B_tob1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST5B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tob1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST5B_toc2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST5B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->toc2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST5B_tob2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST5B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tob2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST5B_tuc1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST5B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tuc1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST5B_tub1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST5B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tub1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST5B_tuc2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST5B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tuc2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST5B_tub2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST5B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tub2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ExcIEEEST5B_factory() { - return new ExcIEEEST5B; - } -} - -void ExcIEEEST5B::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ExcIEEEST5B"), &ExcIEEEST5B_factory)); -} - -void ExcIEEEST5B::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST5B.kr"), &assign_ExcIEEEST5B_kr)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST5B.t1"), &assign_ExcIEEEST5B_t1)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST5B.kc"), &assign_ExcIEEEST5B_kc)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST5B.vrmax"), &assign_ExcIEEEST5B_vrmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST5B.vrmin"), &assign_ExcIEEEST5B_vrmin)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST5B.tc1"), &assign_ExcIEEEST5B_tc1)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST5B.tb1"), &assign_ExcIEEEST5B_tb1)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST5B.tc2"), &assign_ExcIEEEST5B_tc2)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST5B.tb2"), &assign_ExcIEEEST5B_tb2)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST5B.toc1"), &assign_ExcIEEEST5B_toc1)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST5B.tob1"), &assign_ExcIEEEST5B_tob1)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST5B.toc2"), &assign_ExcIEEEST5B_toc2)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST5B.tob2"), &assign_ExcIEEEST5B_tob2)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST5B.tuc1"), &assign_ExcIEEEST5B_tuc1)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST5B.tub1"), &assign_ExcIEEEST5B_tub1)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST5B.tuc2"), &assign_ExcIEEEST5B_tuc2)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST5B.tub2"), &assign_ExcIEEEST5B_tub2)); -} - -void ExcIEEEST5B::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char ExcIEEEST5B::debugName[] = "ExcIEEEST5B"; -const char* ExcIEEEST5B::debugString() -{ - return ExcIEEEST5B::debugName; -} - -const BaseClassDefiner ExcIEEEST5B::declare() -{ - return BaseClassDefiner(ExcIEEEST5B::addConstructToMap, ExcIEEEST5B::addPrimitiveAssignFnsToMap, ExcIEEEST5B::addClassAssignFnsToMap, ExcIEEEST5B::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ExcIEEEST5B.hpp b/CGMES_2.4.13_18DEC2013/ExcIEEEST5B.hpp deleted file mode 100644 index 63f7b1215..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcIEEEST5B.hpp +++ /dev/null @@ -1,57 +0,0 @@ -#ifndef ExcIEEEST5B_H -#define ExcIEEEST5B_H - -#include "ExcitationSystemDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "Seconds.hpp" - -namespace CIMPP { - - - /* - The class represents IEEE Std 421.5-2005 type ST5B model. The Type ST5B excitation system is a variation of the Type ST1A model, with alternative overexcitation and underexcitation inputs and additional limits. Reference: IEEE Standard 421.5-2005 Section 7.5. - */ - class ExcIEEEST5B: public ExcitationSystemDynamics - { - - public: - CIMPP::PU kr; /* Regulator gain (K). Typical Value = 200. Default: nullptr */ - CIMPP::Seconds t1; /* Firing circuit time constant (T1). Typical Value = 0.004. Default: nullptr */ - CIMPP::PU kc; /* Rectifier regulation factor (K). Typical Value = 0.004. Default: nullptr */ - CIMPP::PU vrmax; /* Maximum voltage regulator output (V). Typical Value = 5. Default: nullptr */ - CIMPP::PU vrmin; /* Minimum voltage regulator output (V). Typical Value = -4. Default: nullptr */ - CIMPP::Seconds tc1; /* Regulator lead time constant (T). Typical Value = 0.8. Default: nullptr */ - CIMPP::Seconds tb1; /* Regulator lag time constant (T). Typical Value = 6. Default: nullptr */ - CIMPP::Seconds tc2; /* Regulator lead time constant (T). Typical Value = 0.08. Default: nullptr */ - CIMPP::Seconds tb2; /* Regulator lag time constant (T). Typical Value = 0.01. Default: nullptr */ - CIMPP::Seconds toc1; /* OEL lead time constant (T). Typical Value = 0.1. Default: nullptr */ - CIMPP::Seconds tob1; /* OEL lag time constant (T). Typical Value = 2. Default: nullptr */ - CIMPP::Seconds toc2; /* OEL lead time constant (T). Typical Value = 0.08. Default: nullptr */ - CIMPP::Seconds tob2; /* OEL lag time constant (T). Typical Value = 0.08. Default: nullptr */ - CIMPP::Seconds tuc1; /* UEL lead time constant (T). Typical Value = 2. Default: nullptr */ - CIMPP::Seconds tub1; /* UEL lag time constant (T). Typical Value = 10. Default: nullptr */ - CIMPP::Seconds tuc2; /* UEL lead time constant (T). Typical Value = 0.1. Default: nullptr */ - CIMPP::Seconds tub2; /* UEL lag time constant (T). Typical Value = 0.05. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ExcIEEEST5B(); - virtual ~ExcIEEEST5B(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ExcIEEEST5B_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ExcIEEEST6B.cpp b/CGMES_2.4.13_18DEC2013/ExcIEEEST6B.cpp deleted file mode 100644 index 19e9d1502..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcIEEEST6B.cpp +++ /dev/null @@ -1,251 +0,0 @@ -#include -#include "ExcitationSystemDynamics.hpp" -#include "ExcIEEEST6B.hpp" - -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "ExcST6BOELselectorKind.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -ExcIEEEST6B::ExcIEEEST6B() {}; - -ExcIEEEST6B::~ExcIEEEST6B() {}; - - - - - - - - - - - - - - - - - -bool assign_ExcIEEEST6B_ilr(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST6B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ilr; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST6B_kci(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST6B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kci; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST6B_kff(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST6B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kff; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST6B_kg(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST6B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kg; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST6B_kia(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST6B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kia; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST6B_klr(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST6B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->klr; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST6B_km(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST6B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->km; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST6B_kpa(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST6B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kpa; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST6B_oelin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST6B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->oelin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST6B_tg(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST6B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tg; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST6B_vamax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST6B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vamax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST6B_vamin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST6B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vamin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST6B_vrmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST6B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST6B_vrmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST6B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ExcIEEEST6B_factory() { - return new ExcIEEEST6B; - } -} - -void ExcIEEEST6B::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ExcIEEEST6B"), &ExcIEEEST6B_factory)); -} - -void ExcIEEEST6B::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST6B.ilr"), &assign_ExcIEEEST6B_ilr)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST6B.kci"), &assign_ExcIEEEST6B_kci)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST6B.kff"), &assign_ExcIEEEST6B_kff)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST6B.kg"), &assign_ExcIEEEST6B_kg)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST6B.kia"), &assign_ExcIEEEST6B_kia)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST6B.klr"), &assign_ExcIEEEST6B_klr)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST6B.km"), &assign_ExcIEEEST6B_km)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST6B.kpa"), &assign_ExcIEEEST6B_kpa)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST6B.oelin"), &assign_ExcIEEEST6B_oelin)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST6B.tg"), &assign_ExcIEEEST6B_tg)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST6B.vamax"), &assign_ExcIEEEST6B_vamax)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST6B.vamin"), &assign_ExcIEEEST6B_vamin)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST6B.vrmax"), &assign_ExcIEEEST6B_vrmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST6B.vrmin"), &assign_ExcIEEEST6B_vrmin)); -} - -void ExcIEEEST6B::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char ExcIEEEST6B::debugName[] = "ExcIEEEST6B"; -const char* ExcIEEEST6B::debugString() -{ - return ExcIEEEST6B::debugName; -} - -const BaseClassDefiner ExcIEEEST6B::declare() -{ - return BaseClassDefiner(ExcIEEEST6B::addConstructToMap, ExcIEEEST6B::addPrimitiveAssignFnsToMap, ExcIEEEST6B::addClassAssignFnsToMap, ExcIEEEST6B::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ExcIEEEST6B.hpp b/CGMES_2.4.13_18DEC2013/ExcIEEEST6B.hpp deleted file mode 100644 index dcf0633c3..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcIEEEST6B.hpp +++ /dev/null @@ -1,55 +0,0 @@ -#ifndef ExcIEEEST6B_H -#define ExcIEEEST6B_H - -#include "ExcitationSystemDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "ExcST6BOELselectorKind.hpp" -#include "Seconds.hpp" - -namespace CIMPP { - - - /* - The class represents IEEE Std 421.5-2005 type ST6B model. This model consists of a PI voltage regulator with an inner loop field voltage regulator and pre-control. The field voltage regulator implements a proportional control. The pre-control and the delay in the feedback circuit increase the dynamic response. Reference: IEEE Standard 421.5-2005 Section 7.6. - */ - class ExcIEEEST6B: public ExcitationSystemDynamics - { - - public: - CIMPP::PU ilr; /* Exciter output current limit reference (I). Typical Value = 4.164. Default: nullptr */ - CIMPP::PU kci; /* Exciter output current limit adjustment (K). Typical Value = 1.0577. Default: nullptr */ - CIMPP::PU kff; /* Pre-control gain constant of the inner loop field regulator (K). Typical Value = 1. Default: nullptr */ - CIMPP::PU kg; /* Feedback gain constant of the inner loop field regulator (K). Typical Value = 1. Default: nullptr */ - CIMPP::PU kia; /* Voltage regulator integral gain (K). Typical Value = 45.094. Default: nullptr */ - CIMPP::PU klr; /* Exciter output current limiter gain (K). Typical Value = 17.33. Default: nullptr */ - CIMPP::PU km; /* Forward gain constant of the inner loop field regulator (K). Typical Value = 1. Default: nullptr */ - CIMPP::PU kpa; /* Voltage regulator proportional gain (K). Typical Value = 18.038. Default: nullptr */ - CIMPP::ExcST6BOELselectorKind oelin; /* OEL input selector (OELin). Typical Value = noOELinput. Default: 0 */ - CIMPP::Seconds tg; /* Feedback time constant of inner loop field voltage regulator (T). Typical Value = 0.02. Default: nullptr */ - CIMPP::PU vamax; /* Maximum voltage regulator output (V). Typical Value = 4.81. Default: nullptr */ - CIMPP::PU vamin; /* Minimum voltage regulator output (V). Typical Value = -3.85. Default: nullptr */ - CIMPP::PU vrmax; /* Maximum voltage regulator output (V). Typical Value = 4.81. Default: nullptr */ - CIMPP::PU vrmin; /* Minimum voltage regulator output (V). Typical Value = -3.85. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ExcIEEEST6B(); - virtual ~ExcIEEEST6B(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ExcIEEEST6B_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ExcIEEEST7B.cpp b/CGMES_2.4.13_18DEC2013/ExcIEEEST7B.cpp deleted file mode 100644 index aa585bfc8..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcIEEEST7B.cpp +++ /dev/null @@ -1,266 +0,0 @@ -#include -#include "ExcitationSystemDynamics.hpp" -#include "ExcIEEEST7B.hpp" - -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "ExcST7BOELselectorKind.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "ExcST7BUELselectorKind.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -ExcIEEEST7B::ExcIEEEST7B() {}; - -ExcIEEEST7B::~ExcIEEEST7B() {}; - - - - - - - - - - - - - - - - - - -bool assign_ExcIEEEST7B_kh(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST7B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kh; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST7B_kia(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST7B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kia; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST7B_kl(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST7B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kl; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST7B_kpa(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST7B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kpa; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST7B_oelin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST7B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->oelin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST7B_tb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST7B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST7B_tc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST7B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST7B_tf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST7B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST7B_tg(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST7B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tg; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST7B_tia(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST7B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tia; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST7B_uelin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST7B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->uelin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST7B_vmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST7B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST7B_vmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST7B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST7B_vrmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST7B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcIEEEST7B_vrmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcIEEEST7B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ExcIEEEST7B_factory() { - return new ExcIEEEST7B; - } -} - -void ExcIEEEST7B::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ExcIEEEST7B"), &ExcIEEEST7B_factory)); -} - -void ExcIEEEST7B::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST7B.kh"), &assign_ExcIEEEST7B_kh)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST7B.kia"), &assign_ExcIEEEST7B_kia)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST7B.kl"), &assign_ExcIEEEST7B_kl)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST7B.kpa"), &assign_ExcIEEEST7B_kpa)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST7B.oelin"), &assign_ExcIEEEST7B_oelin)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST7B.tb"), &assign_ExcIEEEST7B_tb)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST7B.tc"), &assign_ExcIEEEST7B_tc)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST7B.tf"), &assign_ExcIEEEST7B_tf)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST7B.tg"), &assign_ExcIEEEST7B_tg)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST7B.tia"), &assign_ExcIEEEST7B_tia)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST7B.uelin"), &assign_ExcIEEEST7B_uelin)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST7B.vmax"), &assign_ExcIEEEST7B_vmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST7B.vmin"), &assign_ExcIEEEST7B_vmin)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST7B.vrmax"), &assign_ExcIEEEST7B_vrmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcIEEEST7B.vrmin"), &assign_ExcIEEEST7B_vrmin)); -} - -void ExcIEEEST7B::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char ExcIEEEST7B::debugName[] = "ExcIEEEST7B"; -const char* ExcIEEEST7B::debugString() -{ - return ExcIEEEST7B::debugName; -} - -const BaseClassDefiner ExcIEEEST7B::declare() -{ - return BaseClassDefiner(ExcIEEEST7B::addConstructToMap, ExcIEEEST7B::addPrimitiveAssignFnsToMap, ExcIEEEST7B::addClassAssignFnsToMap, ExcIEEEST7B::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ExcIEEEST7B.hpp b/CGMES_2.4.13_18DEC2013/ExcIEEEST7B.hpp deleted file mode 100644 index b09663574..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcIEEEST7B.hpp +++ /dev/null @@ -1,57 +0,0 @@ -#ifndef ExcIEEEST7B_H -#define ExcIEEEST7B_H - -#include "ExcitationSystemDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "ExcST7BOELselectorKind.hpp" -#include "Seconds.hpp" -#include "ExcST7BUELselectorKind.hpp" - -namespace CIMPP { - - - /* - The class represents IEEE Std 421.5-2005 type ST7B model. This model is representative of static potential-source excitation systems. In this system, the AVR consists of a PI voltage regulator. A phase lead-lag filter in series allows introduction of a derivative function, typically used with brushless excitation systems. In that case, the regulator is of the PID type. In addition, the terminal voltage channel includes a phase lead-lag filter. The AVR includes the appropriate inputs on its reference for overexcitation limiter (OEL1), underexcitation limiter (UEL), stator current limiter (SCL), and current compensator (DROOP). All these limitations, when they work at voltage reference level, keep the PSS (VS signal from Type PSS1A, PSS2A, or PSS2B) in operation. However, the UEL limitation can also be transferred to the high value (HV) gate acting on the output signal. In addition, the output signal passes through a low value (LV) gate for a ceiling overexcitation limiter (OEL2). Reference: IEEE Standard 421.5-2005 Section 7.7. - */ - class ExcIEEEST7B: public ExcitationSystemDynamics - { - - public: - CIMPP::PU kh; /* High-value gate feedback gain (K). Typical Value 1. Default: nullptr */ - CIMPP::PU kia; /* Voltage regulator integral gain (K). Typical Value = 1. Default: nullptr */ - CIMPP::PU kl; /* Low-value gate feedback gain (K). Typical Value 1. Default: nullptr */ - CIMPP::PU kpa; /* Voltage regulator proportional gain (K). Typical Value = 40. Default: nullptr */ - CIMPP::ExcST7BOELselectorKind oelin; /* OEL input selector (OELin). Typical Value = noOELinput. Default: 0 */ - CIMPP::Seconds tb; /* Regulator lag time constant (T). Typical Value 1. Default: nullptr */ - CIMPP::Seconds tc; /* Regulator lead time constant (T). Typical Value 1. Default: nullptr */ - CIMPP::Seconds tf; /* Excitation control system stabilizer time constant (T). Typical Value 1. Default: nullptr */ - CIMPP::Seconds tg; /* Feedback time constant of inner loop field voltage regulator (T). Typical Value 1. Default: nullptr */ - CIMPP::Seconds tia; /* Feedback time constant (T). Typical Value = 3. Default: nullptr */ - CIMPP::ExcST7BUELselectorKind uelin; /* UEL input selector (UELin). Typical Value = noUELinput. Default: 0 */ - CIMPP::PU vmax; /* Maximum voltage reference signal (V). Typical Value = 1.1. Default: nullptr */ - CIMPP::PU vmin; /* Minimum voltage reference signal (V). Typical Value = 0.9. Default: nullptr */ - CIMPP::PU vrmax; /* Maximum voltage regulator output (V). Typical Value = 5. Default: nullptr */ - CIMPP::PU vrmin; /* Minimum voltage regulator output (V). Typical Value = -4.5. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ExcIEEEST7B(); - virtual ~ExcIEEEST7B(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ExcIEEEST7B_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ExcOEX3T.cpp b/CGMES_2.4.13_18DEC2013/ExcOEX3T.cpp deleted file mode 100644 index 79bf9658a..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcOEX3T.cpp +++ /dev/null @@ -1,326 +0,0 @@ -#include -#include "ExcitationSystemDynamics.hpp" -#include "ExcOEX3T.hpp" - -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -ExcOEX3T::ExcOEX3T() {}; - -ExcOEX3T::~ExcOEX3T() {}; - - - - - - - - - - - - - - - - - - - - - - -bool assign_ExcOEX3T_t1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcOEX3T* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcOEX3T_t2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcOEX3T* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcOEX3T_t3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcOEX3T* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcOEX3T_t4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcOEX3T* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcOEX3T_ka(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcOEX3T* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ka; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcOEX3T_t5(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcOEX3T* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcOEX3T_t6(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcOEX3T* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t6; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcOEX3T_vrmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcOEX3T* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcOEX3T_vrmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcOEX3T* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcOEX3T_te(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcOEX3T* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->te; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcOEX3T_kf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcOEX3T* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcOEX3T_tf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcOEX3T* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcOEX3T_kc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcOEX3T* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcOEX3T_kd(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcOEX3T* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kd; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcOEX3T_ke(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcOEX3T* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ke; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcOEX3T_e1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcOEX3T* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->e1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcOEX3T_see1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcOEX3T* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->see1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcOEX3T_e2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcOEX3T* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->e2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcOEX3T_see2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcOEX3T* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->see2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ExcOEX3T_factory() { - return new ExcOEX3T; - } -} - -void ExcOEX3T::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ExcOEX3T"), &ExcOEX3T_factory)); -} - -void ExcOEX3T::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ExcOEX3T.t1"), &assign_ExcOEX3T_t1)); - assign_map.insert(std::make_pair(std::string("cim:ExcOEX3T.t2"), &assign_ExcOEX3T_t2)); - assign_map.insert(std::make_pair(std::string("cim:ExcOEX3T.t3"), &assign_ExcOEX3T_t3)); - assign_map.insert(std::make_pair(std::string("cim:ExcOEX3T.t4"), &assign_ExcOEX3T_t4)); - assign_map.insert(std::make_pair(std::string("cim:ExcOEX3T.ka"), &assign_ExcOEX3T_ka)); - assign_map.insert(std::make_pair(std::string("cim:ExcOEX3T.t5"), &assign_ExcOEX3T_t5)); - assign_map.insert(std::make_pair(std::string("cim:ExcOEX3T.t6"), &assign_ExcOEX3T_t6)); - assign_map.insert(std::make_pair(std::string("cim:ExcOEX3T.vrmax"), &assign_ExcOEX3T_vrmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcOEX3T.vrmin"), &assign_ExcOEX3T_vrmin)); - assign_map.insert(std::make_pair(std::string("cim:ExcOEX3T.te"), &assign_ExcOEX3T_te)); - assign_map.insert(std::make_pair(std::string("cim:ExcOEX3T.kf"), &assign_ExcOEX3T_kf)); - assign_map.insert(std::make_pair(std::string("cim:ExcOEX3T.tf"), &assign_ExcOEX3T_tf)); - assign_map.insert(std::make_pair(std::string("cim:ExcOEX3T.kc"), &assign_ExcOEX3T_kc)); - assign_map.insert(std::make_pair(std::string("cim:ExcOEX3T.kd"), &assign_ExcOEX3T_kd)); - assign_map.insert(std::make_pair(std::string("cim:ExcOEX3T.ke"), &assign_ExcOEX3T_ke)); - assign_map.insert(std::make_pair(std::string("cim:ExcOEX3T.e1"), &assign_ExcOEX3T_e1)); - assign_map.insert(std::make_pair(std::string("cim:ExcOEX3T.see1"), &assign_ExcOEX3T_see1)); - assign_map.insert(std::make_pair(std::string("cim:ExcOEX3T.e2"), &assign_ExcOEX3T_e2)); - assign_map.insert(std::make_pair(std::string("cim:ExcOEX3T.see2"), &assign_ExcOEX3T_see2)); -} - -void ExcOEX3T::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char ExcOEX3T::debugName[] = "ExcOEX3T"; -const char* ExcOEX3T::debugString() -{ - return ExcOEX3T::debugName; -} - -const BaseClassDefiner ExcOEX3T::declare() -{ - return BaseClassDefiner(ExcOEX3T::addConstructToMap, ExcOEX3T::addPrimitiveAssignFnsToMap, ExcOEX3T::addClassAssignFnsToMap, ExcOEX3T::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ExcOEX3T.hpp b/CGMES_2.4.13_18DEC2013/ExcOEX3T.hpp deleted file mode 100644 index d89680ab6..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcOEX3T.hpp +++ /dev/null @@ -1,59 +0,0 @@ -#ifndef ExcOEX3T_H -#define ExcOEX3T_H - -#include "ExcitationSystemDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Seconds.hpp" -#include "PU.hpp" - -namespace CIMPP { - - - /* - Modified IEEE Type ST1 Excitation System with semi-continuous and acting terminal voltage limiter. - */ - class ExcOEX3T: public ExcitationSystemDynamics - { - - public: - CIMPP::Seconds t1; /* Time constant (T). Default: nullptr */ - CIMPP::Seconds t2; /* Time constant (T). Default: nullptr */ - CIMPP::Seconds t3; /* Time constant (T). Default: nullptr */ - CIMPP::Seconds t4; /* Time constant (T). Default: nullptr */ - CIMPP::PU ka; /* Gain (K). Default: nullptr */ - CIMPP::Seconds t5; /* Time constant (T). Default: nullptr */ - CIMPP::Seconds t6; /* Time constant (T). Default: nullptr */ - CIMPP::PU vrmax; /* Limiter (V). Default: nullptr */ - CIMPP::PU vrmin; /* Limiter (V). Default: nullptr */ - CIMPP::Seconds te; /* Time constant (T). Default: nullptr */ - CIMPP::PU kf; /* Gain (K). Default: nullptr */ - CIMPP::Seconds tf; /* Time constant (T). Default: nullptr */ - CIMPP::PU kc; /* Gain (K). Default: nullptr */ - CIMPP::PU kd; /* Gain (K). Default: nullptr */ - CIMPP::PU ke; /* Gain (K). Default: nullptr */ - CIMPP::PU e1; /* Saturation parameter (E). Default: nullptr */ - CIMPP::PU see1; /* Saturation parameter (S(E)). Default: nullptr */ - CIMPP::PU e2; /* Saturation parameter (E). Default: nullptr */ - CIMPP::PU see2; /* Saturation parameter (S(E)). Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ExcOEX3T(); - virtual ~ExcOEX3T(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ExcOEX3T_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ExcPIC.cpp b/CGMES_2.4.13_18DEC2013/ExcPIC.cpp deleted file mode 100644 index b62a9a96b..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcPIC.cpp +++ /dev/null @@ -1,386 +0,0 @@ -#include -#include "ExcitationSystemDynamics.hpp" -#include "ExcPIC.hpp" - -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -ExcPIC::ExcPIC() {}; - -ExcPIC::~ExcPIC() {}; - - - - - - - - - - - - - - - - - - - - - - - - - - -bool assign_ExcPIC_ka(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcPIC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ka; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcPIC_ta1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcPIC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ta1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcPIC_vr1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcPIC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vr1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcPIC_vr2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcPIC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vr2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcPIC_ta2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcPIC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ta2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcPIC_ta3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcPIC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ta3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcPIC_ta4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcPIC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ta4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcPIC_vrmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcPIC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcPIC_vrmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcPIC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcPIC_kf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcPIC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcPIC_tf1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcPIC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tf1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcPIC_tf2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcPIC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tf2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcPIC_efdmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcPIC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->efdmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcPIC_efdmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcPIC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->efdmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcPIC_ke(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcPIC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ke; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcPIC_te(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcPIC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->te; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcPIC_e1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcPIC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->e1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcPIC_se1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcPIC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->se1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcPIC_e2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcPIC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->e2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcPIC_se2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcPIC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->se2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcPIC_kp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcPIC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcPIC_ki(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcPIC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ki; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcPIC_kc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcPIC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ExcPIC_factory() { - return new ExcPIC; - } -} - -void ExcPIC::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ExcPIC"), &ExcPIC_factory)); -} - -void ExcPIC::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ExcPIC.ka"), &assign_ExcPIC_ka)); - assign_map.insert(std::make_pair(std::string("cim:ExcPIC.ta1"), &assign_ExcPIC_ta1)); - assign_map.insert(std::make_pair(std::string("cim:ExcPIC.vr1"), &assign_ExcPIC_vr1)); - assign_map.insert(std::make_pair(std::string("cim:ExcPIC.vr2"), &assign_ExcPIC_vr2)); - assign_map.insert(std::make_pair(std::string("cim:ExcPIC.ta2"), &assign_ExcPIC_ta2)); - assign_map.insert(std::make_pair(std::string("cim:ExcPIC.ta3"), &assign_ExcPIC_ta3)); - assign_map.insert(std::make_pair(std::string("cim:ExcPIC.ta4"), &assign_ExcPIC_ta4)); - assign_map.insert(std::make_pair(std::string("cim:ExcPIC.vrmax"), &assign_ExcPIC_vrmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcPIC.vrmin"), &assign_ExcPIC_vrmin)); - assign_map.insert(std::make_pair(std::string("cim:ExcPIC.kf"), &assign_ExcPIC_kf)); - assign_map.insert(std::make_pair(std::string("cim:ExcPIC.tf1"), &assign_ExcPIC_tf1)); - assign_map.insert(std::make_pair(std::string("cim:ExcPIC.tf2"), &assign_ExcPIC_tf2)); - assign_map.insert(std::make_pair(std::string("cim:ExcPIC.efdmax"), &assign_ExcPIC_efdmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcPIC.efdmin"), &assign_ExcPIC_efdmin)); - assign_map.insert(std::make_pair(std::string("cim:ExcPIC.ke"), &assign_ExcPIC_ke)); - assign_map.insert(std::make_pair(std::string("cim:ExcPIC.te"), &assign_ExcPIC_te)); - assign_map.insert(std::make_pair(std::string("cim:ExcPIC.e1"), &assign_ExcPIC_e1)); - assign_map.insert(std::make_pair(std::string("cim:ExcPIC.se1"), &assign_ExcPIC_se1)); - assign_map.insert(std::make_pair(std::string("cim:ExcPIC.e2"), &assign_ExcPIC_e2)); - assign_map.insert(std::make_pair(std::string("cim:ExcPIC.se2"), &assign_ExcPIC_se2)); - assign_map.insert(std::make_pair(std::string("cim:ExcPIC.kp"), &assign_ExcPIC_kp)); - assign_map.insert(std::make_pair(std::string("cim:ExcPIC.ki"), &assign_ExcPIC_ki)); - assign_map.insert(std::make_pair(std::string("cim:ExcPIC.kc"), &assign_ExcPIC_kc)); -} - -void ExcPIC::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char ExcPIC::debugName[] = "ExcPIC"; -const char* ExcPIC::debugString() -{ - return ExcPIC::debugName; -} - -const BaseClassDefiner ExcPIC::declare() -{ - return BaseClassDefiner(ExcPIC::addConstructToMap, ExcPIC::addPrimitiveAssignFnsToMap, ExcPIC::addClassAssignFnsToMap, ExcPIC::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ExcPIC.hpp b/CGMES_2.4.13_18DEC2013/ExcPIC.hpp deleted file mode 100644 index 411e21612..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcPIC.hpp +++ /dev/null @@ -1,63 +0,0 @@ -#ifndef ExcPIC_H -#define ExcPIC_H - -#include "ExcitationSystemDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "Seconds.hpp" - -namespace CIMPP { - - - /* - Proportional/Integral Regulator Excitation System Model. This model can be used to represent excitation systems with a proportional-integral (PI) voltage regulator controller. - */ - class ExcPIC: public ExcitationSystemDynamics - { - - public: - CIMPP::PU ka; /* PI controller gain (Ka). Typical Value = 3.15. Default: nullptr */ - CIMPP::Seconds ta1; /* PI controller time constant (Ta1). Typical Value = 1. Default: nullptr */ - CIMPP::PU vr1; /* PI maximum limit (Vr1). Typical Value = 1. Default: nullptr */ - CIMPP::PU vr2; /* PI minimum limit (Vr2). Typical Value = -0.87. Default: nullptr */ - CIMPP::Seconds ta2; /* Voltage regulator time constant (Ta2). Typical Value = 0.01. Default: nullptr */ - CIMPP::Seconds ta3; /* Lead time constant (Ta3). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds ta4; /* Lag time constant (Ta4). Typical Value = 0. Default: nullptr */ - CIMPP::PU vrmax; /* Voltage regulator maximum limit (Vrmax). Typical Value = 1. Default: nullptr */ - CIMPP::PU vrmin; /* Voltage regulator minimum limit (Vrmin). Typical Value = -0.87. Default: nullptr */ - CIMPP::PU kf; /* Rate feedback gain (Kf). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tf1; /* Rate feedback time constant (Tf1). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tf2; /* Rate feedback lag time constant (Tf2). Typical Value = 0. Default: nullptr */ - CIMPP::PU efdmax; /* Exciter maximum limit (Efdmax). Typical Value = 8. Default: nullptr */ - CIMPP::PU efdmin; /* Exciter minimum limit (Efdmin). Typical Value = -0.87. Default: nullptr */ - CIMPP::PU ke; /* Exciter constant (Ke). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds te; /* Exciter time constant (Te). Typical Value = 0. Default: nullptr */ - CIMPP::PU e1; /* Field voltage value 1 (E1). Typical Value = 0. Default: nullptr */ - CIMPP::PU se1; /* Saturation factor at E1 (Se1). Typical Value = 0. Default: nullptr */ - CIMPP::PU e2; /* Field voltage value 2 (E2). Typical Value = 0. Default: nullptr */ - CIMPP::PU se2; /* Saturation factor at E2 (Se2). Typical Value = 0. Default: nullptr */ - CIMPP::PU kp; /* Potential source gain (Kp). Typical Value = 6.5. Default: nullptr */ - CIMPP::PU ki; /* Current source gain (Ki). Typical Value = 0. Default: nullptr */ - CIMPP::PU kc; /* Exciter regulation factor (Kc). Typical Value = 0.08. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ExcPIC(); - virtual ~ExcPIC(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ExcPIC_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ExcREXS.cpp b/CGMES_2.4.13_18DEC2013/ExcREXS.cpp deleted file mode 100644 index 0b586cbc4..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcREXS.cpp +++ /dev/null @@ -1,581 +0,0 @@ -#include -#include "ExcitationSystemDynamics.hpp" -#include "ExcREXS.hpp" - -#include "PU.hpp" -#include "PU.hpp" -#include "ExcREXSFeedbackSignalKind.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -ExcREXS::ExcREXS() {}; - -ExcREXS::~ExcREXS() {}; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -bool assign_ExcREXS_e1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcREXS* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->e1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcREXS_e2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcREXS* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->e2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcREXS_fbf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcREXS* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->fbf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcREXS_flimf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcREXS* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->flimf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcREXS_kc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcREXS* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcREXS_kd(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcREXS* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kd; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcREXS_ke(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcREXS* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ke; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcREXS_kefd(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcREXS* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kefd; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcREXS_kf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcREXS* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcREXS_kh(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcREXS* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kh; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcREXS_kii(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcREXS* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kii; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcREXS_kip(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcREXS* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kip; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcREXS_ks(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcREXS* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ks; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcREXS_kvi(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcREXS* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kvi; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcREXS_kvp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcREXS* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kvp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcREXS_kvphz(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcREXS* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kvphz; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcREXS_nvphz(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcREXS* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->nvphz; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcREXS_se1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcREXS* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->se1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcREXS_se2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcREXS* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->se2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcREXS_ta(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcREXS* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ta; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcREXS_tb1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcREXS* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tb1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcREXS_tb2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcREXS* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tb2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcREXS_tc1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcREXS* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tc1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcREXS_tc2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcREXS* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tc2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcREXS_te(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcREXS* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->te; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcREXS_tf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcREXS* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcREXS_tf1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcREXS* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tf1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcREXS_tf2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcREXS* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tf2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcREXS_tp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcREXS* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcREXS_vcmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcREXS* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vcmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcREXS_vfmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcREXS* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vfmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcREXS_vfmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcREXS* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vfmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcREXS_vimax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcREXS* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vimax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcREXS_vrmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcREXS* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcREXS_vrmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcREXS* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcREXS_xc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcREXS* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->xc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ExcREXS_factory() { - return new ExcREXS; - } -} - -void ExcREXS::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ExcREXS"), &ExcREXS_factory)); -} - -void ExcREXS::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ExcREXS.e1"), &assign_ExcREXS_e1)); - assign_map.insert(std::make_pair(std::string("cim:ExcREXS.e2"), &assign_ExcREXS_e2)); - assign_map.insert(std::make_pair(std::string("cim:ExcREXS.fbf"), &assign_ExcREXS_fbf)); - assign_map.insert(std::make_pair(std::string("cim:ExcREXS.flimf"), &assign_ExcREXS_flimf)); - assign_map.insert(std::make_pair(std::string("cim:ExcREXS.kc"), &assign_ExcREXS_kc)); - assign_map.insert(std::make_pair(std::string("cim:ExcREXS.kd"), &assign_ExcREXS_kd)); - assign_map.insert(std::make_pair(std::string("cim:ExcREXS.ke"), &assign_ExcREXS_ke)); - assign_map.insert(std::make_pair(std::string("cim:ExcREXS.kefd"), &assign_ExcREXS_kefd)); - assign_map.insert(std::make_pair(std::string("cim:ExcREXS.kf"), &assign_ExcREXS_kf)); - assign_map.insert(std::make_pair(std::string("cim:ExcREXS.kh"), &assign_ExcREXS_kh)); - assign_map.insert(std::make_pair(std::string("cim:ExcREXS.kii"), &assign_ExcREXS_kii)); - assign_map.insert(std::make_pair(std::string("cim:ExcREXS.kip"), &assign_ExcREXS_kip)); - assign_map.insert(std::make_pair(std::string("cim:ExcREXS.ks"), &assign_ExcREXS_ks)); - assign_map.insert(std::make_pair(std::string("cim:ExcREXS.kvi"), &assign_ExcREXS_kvi)); - assign_map.insert(std::make_pair(std::string("cim:ExcREXS.kvp"), &assign_ExcREXS_kvp)); - assign_map.insert(std::make_pair(std::string("cim:ExcREXS.kvphz"), &assign_ExcREXS_kvphz)); - assign_map.insert(std::make_pair(std::string("cim:ExcREXS.nvphz"), &assign_ExcREXS_nvphz)); - assign_map.insert(std::make_pair(std::string("cim:ExcREXS.se1"), &assign_ExcREXS_se1)); - assign_map.insert(std::make_pair(std::string("cim:ExcREXS.se2"), &assign_ExcREXS_se2)); - assign_map.insert(std::make_pair(std::string("cim:ExcREXS.ta"), &assign_ExcREXS_ta)); - assign_map.insert(std::make_pair(std::string("cim:ExcREXS.tb1"), &assign_ExcREXS_tb1)); - assign_map.insert(std::make_pair(std::string("cim:ExcREXS.tb2"), &assign_ExcREXS_tb2)); - assign_map.insert(std::make_pair(std::string("cim:ExcREXS.tc1"), &assign_ExcREXS_tc1)); - assign_map.insert(std::make_pair(std::string("cim:ExcREXS.tc2"), &assign_ExcREXS_tc2)); - assign_map.insert(std::make_pair(std::string("cim:ExcREXS.te"), &assign_ExcREXS_te)); - assign_map.insert(std::make_pair(std::string("cim:ExcREXS.tf"), &assign_ExcREXS_tf)); - assign_map.insert(std::make_pair(std::string("cim:ExcREXS.tf1"), &assign_ExcREXS_tf1)); - assign_map.insert(std::make_pair(std::string("cim:ExcREXS.tf2"), &assign_ExcREXS_tf2)); - assign_map.insert(std::make_pair(std::string("cim:ExcREXS.tp"), &assign_ExcREXS_tp)); - assign_map.insert(std::make_pair(std::string("cim:ExcREXS.vcmax"), &assign_ExcREXS_vcmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcREXS.vfmax"), &assign_ExcREXS_vfmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcREXS.vfmin"), &assign_ExcREXS_vfmin)); - assign_map.insert(std::make_pair(std::string("cim:ExcREXS.vimax"), &assign_ExcREXS_vimax)); - assign_map.insert(std::make_pair(std::string("cim:ExcREXS.vrmax"), &assign_ExcREXS_vrmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcREXS.vrmin"), &assign_ExcREXS_vrmin)); - assign_map.insert(std::make_pair(std::string("cim:ExcREXS.xc"), &assign_ExcREXS_xc)); -} - -void ExcREXS::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char ExcREXS::debugName[] = "ExcREXS"; -const char* ExcREXS::debugString() -{ - return ExcREXS::debugName; -} - -const BaseClassDefiner ExcREXS::declare() -{ - return BaseClassDefiner(ExcREXS::addConstructToMap, ExcREXS::addPrimitiveAssignFnsToMap, ExcREXS::addClassAssignFnsToMap, ExcREXS::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ExcREXS.hpp b/CGMES_2.4.13_18DEC2013/ExcREXS.hpp deleted file mode 100644 index 067bce3bf..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcREXS.hpp +++ /dev/null @@ -1,77 +0,0 @@ -#ifndef ExcREXS_H -#define ExcREXS_H - -#include "ExcitationSystemDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "ExcREXSFeedbackSignalKind.hpp" -#include "Seconds.hpp" - -namespace CIMPP { - - - /* - General Purpose Rotating Excitation System Model. This model can be used to represent a wide range of excitation systems whose DC power source is an AC or DC generator. It encompasses IEEE type AC1, AC2, DC1, and DC2 excitation system models. - */ - class ExcREXS: public ExcitationSystemDynamics - { - - public: - CIMPP::PU e1; /* Field voltage value 1 (E1). Typical Value = 3. Default: nullptr */ - CIMPP::PU e2; /* Field voltage value 2 (E2). Typical Value = 4. Default: nullptr */ - CIMPP::ExcREXSFeedbackSignalKind fbf; /* Rate feedback signal flag (Fbf). Typical Value = fieldCurrent. Default: 0 */ - CIMPP::PU flimf; /* Limit type flag (Flimf). Typical Value = 0. Default: nullptr */ - CIMPP::PU kc; /* Rectifier regulation factor (Kc). Typical Value = 0.05. Default: nullptr */ - CIMPP::PU kd; /* Exciter regulation factor (Kd). Typical Value = 2. Default: nullptr */ - CIMPP::PU ke; /* Exciter field proportional constant (Ke). Typical Value = 1. Default: nullptr */ - CIMPP::PU kefd; /* Field voltage feedback gain (Kefd). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds kf; /* Rate feedback gain (Kf). Typical Value = 0.05. Default: nullptr */ - CIMPP::PU kh; /* Field voltage controller feedback gain (Kh). Typical Value = 0. Default: nullptr */ - CIMPP::PU kii; /* Field Current Regulator Integral Gain (Kii). Typical Value = 0. Default: nullptr */ - CIMPP::PU kip; /* Field Current Regulator Proportional Gain (Kip). Typical Value = 1. Default: nullptr */ - CIMPP::PU ks; /* Coefficient to allow different usage of the model-speed coefficient (Ks). Typical Value = 0. Default: nullptr */ - CIMPP::PU kvi; /* Voltage Regulator Integral Gain (Kvi). Typical Value = 0. Default: nullptr */ - CIMPP::PU kvp; /* Voltage Regulator Proportional Gain (Kvp). Typical Value = 2800. Default: nullptr */ - CIMPP::PU kvphz; /* V/Hz limiter gain (Kvphz). Typical Value = 0. Default: nullptr */ - CIMPP::PU nvphz; /* Pickup speed of V/Hz limiter (Nvphz). Typical Value = 0. Default: nullptr */ - CIMPP::PU se1; /* Saturation factor at E1 (Se1). Typical Value = 0.0001. Default: nullptr */ - CIMPP::PU se2; /* Saturation factor at E2 (Se2). Typical Value = 0.001. Default: nullptr */ - CIMPP::Seconds ta; /* Voltage Regulator time constant (Ta). Typical Value = 0.01. Default: nullptr */ - CIMPP::Seconds tb1; /* Lag time constant (Tb1). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tb2; /* Lag time constant (Tb2). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tc1; /* Lead time constant (Tc1). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tc2; /* Lead time constant (Tc2). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds te; /* Exciter field time constant (Te). Typical Value = 1.2. Default: nullptr */ - CIMPP::Seconds tf; /* Rate feedback time constant (Tf). Typical Value = 1. Default: nullptr */ - CIMPP::Seconds tf1; /* Feedback lead time constant (Tf1). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tf2; /* Feedback lag time constant (Tf2). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tp; /* Field current Bridge time constant (Tp). Typical Value = 0. Default: nullptr */ - CIMPP::PU vcmax; /* Maximum compounding voltage (Vcmax). Typical Value = 0. Default: nullptr */ - CIMPP::PU vfmax; /* Maximum Exciter Field Current (Vfmax). Typical Value = 47. Default: nullptr */ - CIMPP::PU vfmin; /* Minimum Exciter Field Current (Vfmin). Typical Value = -20. Default: nullptr */ - CIMPP::PU vimax; /* Voltage Regulator Input Limit (Vimax). Typical Value = 0.1. Default: nullptr */ - CIMPP::PU vrmax; /* Maximum controller output (Vrmax). Typical Value = 47. Default: nullptr */ - CIMPP::PU vrmin; /* Minimum controller output (Vrmin). Typical Value = -20. Default: nullptr */ - CIMPP::PU xc; /* Exciter compounding reactance (Xc). Typical Value = 0. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ExcREXS(); - virtual ~ExcREXS(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ExcREXS_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ExcREXSFeedbackSignalKind.cpp b/CGMES_2.4.13_18DEC2013/ExcREXSFeedbackSignalKind.cpp deleted file mode 100644 index 9f24a10b7..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcREXSFeedbackSignalKind.cpp +++ /dev/null @@ -1,42 +0,0 @@ -#include -#include -#include "ExcREXSFeedbackSignalKind.hpp" - -using namespace CIMPP; - -namespace CIMPP { - std::istream& operator>>(std::istream& lop, CIMPP::ExcREXSFeedbackSignalKind& rop) - { - std::string EnumSymbol; - lop >> EnumSymbol; - - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "ExcREXSFeedbackSignalKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "fieldVoltage") - { - rop = ExcREXSFeedbackSignalKind::fieldVoltage; - return lop; - } - if(EnumSymbol == "fieldCurrent") - { - rop = ExcREXSFeedbackSignalKind::fieldCurrent; - return lop; - } - if(EnumSymbol == "outputVoltage") - { - rop = ExcREXSFeedbackSignalKind::outputVoltage; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; - } -} - diff --git a/CGMES_2.4.13_18DEC2013/ExcREXSFeedbackSignalKind.hpp b/CGMES_2.4.13_18DEC2013/ExcREXSFeedbackSignalKind.hpp deleted file mode 100644 index 40c3b7e29..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcREXSFeedbackSignalKind.hpp +++ /dev/null @@ -1,25 +0,0 @@ -#ifndef ExcREXSFeedbackSignalKind_H -#define ExcREXSFeedbackSignalKind_H - -namespace CIMPP { - /* - Type of rate feedback signals. - */ - enum class ExcREXSFeedbackSignalKind - { - /** - * The voltage regulator output voltage is used. It is the same as exciter field voltage. - */ - fieldVoltage, - /** - * The exciter field current is used. - */ - fieldCurrent, - /** - * The output voltage of the exciter is used. - */ - outputVoltage, - }; - std::istream& operator>>(std::istream& lop, CIMPP::ExcREXSFeedbackSignalKind& rop); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ExcSCRX.cpp b/CGMES_2.4.13_18DEC2013/ExcSCRX.cpp deleted file mode 100644 index 705acd366..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcSCRX.cpp +++ /dev/null @@ -1,161 +0,0 @@ -#include -#include "ExcitationSystemDynamics.hpp" -#include "ExcSCRX.hpp" - -#include "Simple_Float.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Boolean.hpp" -#include "Simple_Float.hpp" - -using namespace CIMPP; - -ExcSCRX::ExcSCRX() {}; - -ExcSCRX::~ExcSCRX() {}; - - - - - - - - - - - -bool assign_ExcSCRX_tatb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcSCRX* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tatb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcSCRX_tb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcSCRX* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcSCRX_k(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcSCRX* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcSCRX_te(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcSCRX* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->te; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcSCRX_emin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcSCRX* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->emin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcSCRX_emax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcSCRX* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->emax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcSCRX_cswitch(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcSCRX* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->cswitch; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcSCRX_rcrfd(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcSCRX* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->rcrfd; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ExcSCRX_factory() { - return new ExcSCRX; - } -} - -void ExcSCRX::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ExcSCRX"), &ExcSCRX_factory)); -} - -void ExcSCRX::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ExcSCRX.tatb"), &assign_ExcSCRX_tatb)); - assign_map.insert(std::make_pair(std::string("cim:ExcSCRX.tb"), &assign_ExcSCRX_tb)); - assign_map.insert(std::make_pair(std::string("cim:ExcSCRX.k"), &assign_ExcSCRX_k)); - assign_map.insert(std::make_pair(std::string("cim:ExcSCRX.te"), &assign_ExcSCRX_te)); - assign_map.insert(std::make_pair(std::string("cim:ExcSCRX.emin"), &assign_ExcSCRX_emin)); - assign_map.insert(std::make_pair(std::string("cim:ExcSCRX.emax"), &assign_ExcSCRX_emax)); - assign_map.insert(std::make_pair(std::string("cim:ExcSCRX.cswitch"), &assign_ExcSCRX_cswitch)); - assign_map.insert(std::make_pair(std::string("cim:ExcSCRX.rcrfd"), &assign_ExcSCRX_rcrfd)); -} - -void ExcSCRX::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char ExcSCRX::debugName[] = "ExcSCRX"; -const char* ExcSCRX::debugString() -{ - return ExcSCRX::debugName; -} - -const BaseClassDefiner ExcSCRX::declare() -{ - return BaseClassDefiner(ExcSCRX::addConstructToMap, ExcSCRX::addPrimitiveAssignFnsToMap, ExcSCRX::addClassAssignFnsToMap, ExcSCRX::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ExcSCRX.hpp b/CGMES_2.4.13_18DEC2013/ExcSCRX.hpp deleted file mode 100644 index f3e9799fd..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcSCRX.hpp +++ /dev/null @@ -1,50 +0,0 @@ -#ifndef ExcSCRX_H -#define ExcSCRX_H - -#include "ExcitationSystemDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Simple_Float.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Boolean.hpp" - -namespace CIMPP { - - - /* - Simple excitation system model representing generic characteristics of many excitation systems; intended for use where negative field current may be a problem. - */ - class ExcSCRX: public ExcitationSystemDynamics - { - - public: - CIMPP::Simple_Float tatb; /* Ta/Tb - gain reduction ratio of lag-lead element (TaTb). The parameter Ta is not defined explicitly. Typical Value = 0.1. Default: nullptr */ - CIMPP::Seconds tb; /* Denominator time constant of lag-lead block (Tb). Typical Value = 10. Default: nullptr */ - CIMPP::PU k; /* Gain (K) (>0). Typical Value = 200. Default: nullptr */ - CIMPP::Seconds te; /* Time constant of gain block (Te) (>0). Typical Value = 0.02. Default: nullptr */ - CIMPP::PU emin; /* Minimum field voltage output (Emin). Typical Value = 0. Default: nullptr */ - CIMPP::PU emax; /* Maximum field voltage output (Emax). Typical Value = 5. Default: nullptr */ - CIMPP::Boolean cswitch; /* Power source switch (Cswitch). true = fixed voltage of 1.0 PU false = generator terminal voltage. Default: false */ - CIMPP::Simple_Float rcrfd; /* Rc/Rfd - ratio of field discharge resistance to field winding resistance (RcRfd). Typical Value = 0. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ExcSCRX(); - virtual ~ExcSCRX(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ExcSCRX_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ExcSEXS.cpp b/CGMES_2.4.13_18DEC2013/ExcSEXS.cpp deleted file mode 100644 index 61ad50b9e..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcSEXS.cpp +++ /dev/null @@ -1,191 +0,0 @@ -#include -#include "ExcitationSystemDynamics.hpp" -#include "ExcSEXS.hpp" - -#include "Simple_Float.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -ExcSEXS::ExcSEXS() {}; - -ExcSEXS::~ExcSEXS() {}; - - - - - - - - - - - - - -bool assign_ExcSEXS_tatb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcSEXS* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tatb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcSEXS_tb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcSEXS* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcSEXS_k(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcSEXS* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcSEXS_te(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcSEXS* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->te; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcSEXS_emin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcSEXS* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->emin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcSEXS_emax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcSEXS* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->emax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcSEXS_kc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcSEXS* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcSEXS_tc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcSEXS* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcSEXS_efdmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcSEXS* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->efdmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcSEXS_efdmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcSEXS* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->efdmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ExcSEXS_factory() { - return new ExcSEXS; - } -} - -void ExcSEXS::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ExcSEXS"), &ExcSEXS_factory)); -} - -void ExcSEXS::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ExcSEXS.tatb"), &assign_ExcSEXS_tatb)); - assign_map.insert(std::make_pair(std::string("cim:ExcSEXS.tb"), &assign_ExcSEXS_tb)); - assign_map.insert(std::make_pair(std::string("cim:ExcSEXS.k"), &assign_ExcSEXS_k)); - assign_map.insert(std::make_pair(std::string("cim:ExcSEXS.te"), &assign_ExcSEXS_te)); - assign_map.insert(std::make_pair(std::string("cim:ExcSEXS.emin"), &assign_ExcSEXS_emin)); - assign_map.insert(std::make_pair(std::string("cim:ExcSEXS.emax"), &assign_ExcSEXS_emax)); - assign_map.insert(std::make_pair(std::string("cim:ExcSEXS.kc"), &assign_ExcSEXS_kc)); - assign_map.insert(std::make_pair(std::string("cim:ExcSEXS.tc"), &assign_ExcSEXS_tc)); - assign_map.insert(std::make_pair(std::string("cim:ExcSEXS.efdmin"), &assign_ExcSEXS_efdmin)); - assign_map.insert(std::make_pair(std::string("cim:ExcSEXS.efdmax"), &assign_ExcSEXS_efdmax)); -} - -void ExcSEXS::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char ExcSEXS::debugName[] = "ExcSEXS"; -const char* ExcSEXS::debugString() -{ - return ExcSEXS::debugName; -} - -const BaseClassDefiner ExcSEXS::declare() -{ - return BaseClassDefiner(ExcSEXS::addConstructToMap, ExcSEXS::addPrimitiveAssignFnsToMap, ExcSEXS::addClassAssignFnsToMap, ExcSEXS::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ExcSEXS.hpp b/CGMES_2.4.13_18DEC2013/ExcSEXS.hpp deleted file mode 100644 index 451a2b99a..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcSEXS.hpp +++ /dev/null @@ -1,51 +0,0 @@ -#ifndef ExcSEXS_H -#define ExcSEXS_H - -#include "ExcitationSystemDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Simple_Float.hpp" -#include "Seconds.hpp" -#include "PU.hpp" - -namespace CIMPP { - - - /* - Simplified Excitation System Model. - */ - class ExcSEXS: public ExcitationSystemDynamics - { - - public: - CIMPP::Simple_Float tatb; /* Ta/Tb - gain reduction ratio of lag-lead element (TaTb). Typical Value = 0.1. Default: nullptr */ - CIMPP::Seconds tb; /* Denominator time constant of lag-lead block (Tb). Typical Value = 10. Default: nullptr */ - CIMPP::PU k; /* Gain (K) (>0). Typical Value = 100. Default: nullptr */ - CIMPP::Seconds te; /* Time constant of gain block (Te). Typical Value = 0.05. Default: nullptr */ - CIMPP::PU emin; /* Minimum field voltage output (Emin). Typical Value = -5. Default: nullptr */ - CIMPP::PU emax; /* Maximum field voltage output (Emax). Typical Value = 5. Default: nullptr */ - CIMPP::PU kc; /* PI controller gain (Kc). Typical Value = 0.08. Default: nullptr */ - CIMPP::Seconds tc; /* PI controller phase lead time constant (Tc). Typical Value = 0. Default: nullptr */ - CIMPP::PU efdmin; /* Field voltage clipping minimum limit (Efdmin). Typical Value = -5. Default: nullptr */ - CIMPP::PU efdmax; /* Field voltage clipping maximum limit (Efdmax). Typical Value = 5. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ExcSEXS(); - virtual ~ExcSEXS(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ExcSEXS_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ExcSK.cpp b/CGMES_2.4.13_18DEC2013/ExcSK.cpp deleted file mode 100644 index a3a3b9fd3..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcSK.cpp +++ /dev/null @@ -1,521 +0,0 @@ -#include -#include "ExcitationSystemDynamics.hpp" -#include "ExcSK.hpp" - -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Boolean.hpp" -#include "PU.hpp" -#include "Boolean.hpp" -#include "ApparentPower.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -ExcSK::ExcSK() {}; - -ExcSK::~ExcSK() {}; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -bool assign_ExcSK_efdmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcSK* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->efdmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcSK_efdmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcSK* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->efdmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcSK_emax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcSK* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->emax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcSK_emin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcSK* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->emin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcSK_k(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcSK* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcSK_k1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcSK* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcSK_k2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcSK* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcSK_kc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcSK* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcSK_kce(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcSK* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kce; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcSK_kd(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcSK* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kd; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcSK_kgob(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcSK* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kgob; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcSK_kp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcSK* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcSK_kqi(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcSK* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kqi; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcSK_kqob(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcSK* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kqob; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcSK_kqp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcSK* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kqp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcSK_nq(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcSK* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->nq; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcSK_qconoff(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcSK* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->qconoff; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcSK_qz(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcSK* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->qz; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcSK_remote(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcSK* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->remote; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcSK_sbase(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcSK* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->sbase; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcSK_tc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcSK* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcSK_te(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcSK* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->te; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcSK_ti(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcSK* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ti; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcSK_tp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcSK* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcSK_tr(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcSK* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tr; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcSK_uimax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcSK* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->uimax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcSK_uimin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcSK* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->uimin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcSK_urmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcSK* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->urmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcSK_urmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcSK* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->urmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcSK_vtmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcSK* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vtmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcSK_vtmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcSK* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vtmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcSK_yp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcSK* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->yp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ExcSK_factory() { - return new ExcSK; - } -} - -void ExcSK::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ExcSK"), &ExcSK_factory)); -} - -void ExcSK::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ExcSK.efdmax"), &assign_ExcSK_efdmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcSK.efdmin"), &assign_ExcSK_efdmin)); - assign_map.insert(std::make_pair(std::string("cim:ExcSK.emax"), &assign_ExcSK_emax)); - assign_map.insert(std::make_pair(std::string("cim:ExcSK.emin"), &assign_ExcSK_emin)); - assign_map.insert(std::make_pair(std::string("cim:ExcSK.k"), &assign_ExcSK_k)); - assign_map.insert(std::make_pair(std::string("cim:ExcSK.k1"), &assign_ExcSK_k1)); - assign_map.insert(std::make_pair(std::string("cim:ExcSK.k2"), &assign_ExcSK_k2)); - assign_map.insert(std::make_pair(std::string("cim:ExcSK.kc"), &assign_ExcSK_kc)); - assign_map.insert(std::make_pair(std::string("cim:ExcSK.kce"), &assign_ExcSK_kce)); - assign_map.insert(std::make_pair(std::string("cim:ExcSK.kd"), &assign_ExcSK_kd)); - assign_map.insert(std::make_pair(std::string("cim:ExcSK.kgob"), &assign_ExcSK_kgob)); - assign_map.insert(std::make_pair(std::string("cim:ExcSK.kp"), &assign_ExcSK_kp)); - assign_map.insert(std::make_pair(std::string("cim:ExcSK.kqi"), &assign_ExcSK_kqi)); - assign_map.insert(std::make_pair(std::string("cim:ExcSK.kqob"), &assign_ExcSK_kqob)); - assign_map.insert(std::make_pair(std::string("cim:ExcSK.kqp"), &assign_ExcSK_kqp)); - assign_map.insert(std::make_pair(std::string("cim:ExcSK.nq"), &assign_ExcSK_nq)); - assign_map.insert(std::make_pair(std::string("cim:ExcSK.qconoff"), &assign_ExcSK_qconoff)); - assign_map.insert(std::make_pair(std::string("cim:ExcSK.qz"), &assign_ExcSK_qz)); - assign_map.insert(std::make_pair(std::string("cim:ExcSK.remote"), &assign_ExcSK_remote)); - assign_map.insert(std::make_pair(std::string("cim:ExcSK.sbase"), &assign_ExcSK_sbase)); - assign_map.insert(std::make_pair(std::string("cim:ExcSK.tc"), &assign_ExcSK_tc)); - assign_map.insert(std::make_pair(std::string("cim:ExcSK.te"), &assign_ExcSK_te)); - assign_map.insert(std::make_pair(std::string("cim:ExcSK.ti"), &assign_ExcSK_ti)); - assign_map.insert(std::make_pair(std::string("cim:ExcSK.tp"), &assign_ExcSK_tp)); - assign_map.insert(std::make_pair(std::string("cim:ExcSK.tr"), &assign_ExcSK_tr)); - assign_map.insert(std::make_pair(std::string("cim:ExcSK.uimax"), &assign_ExcSK_uimax)); - assign_map.insert(std::make_pair(std::string("cim:ExcSK.uimin"), &assign_ExcSK_uimin)); - assign_map.insert(std::make_pair(std::string("cim:ExcSK.urmax"), &assign_ExcSK_urmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcSK.urmin"), &assign_ExcSK_urmin)); - assign_map.insert(std::make_pair(std::string("cim:ExcSK.vtmax"), &assign_ExcSK_vtmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcSK.vtmin"), &assign_ExcSK_vtmin)); - assign_map.insert(std::make_pair(std::string("cim:ExcSK.yp"), &assign_ExcSK_yp)); -} - -void ExcSK::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char ExcSK::debugName[] = "ExcSK"; -const char* ExcSK::debugString() -{ - return ExcSK::debugName; -} - -const BaseClassDefiner ExcSK::declare() -{ - return BaseClassDefiner(ExcSK::addConstructToMap, ExcSK::addPrimitiveAssignFnsToMap, ExcSK::addClassAssignFnsToMap, ExcSK::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ExcSK.hpp b/CGMES_2.4.13_18DEC2013/ExcSK.hpp deleted file mode 100644 index 6595ff1c7..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcSK.hpp +++ /dev/null @@ -1,74 +0,0 @@ -#ifndef ExcSK_H -#define ExcSK_H - -#include "ExcitationSystemDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "Boolean.hpp" -#include "ApparentPower.hpp" -#include "Seconds.hpp" - -namespace CIMPP { - - - /* - Slovakian Excitation System Model. UEL and secondary voltage control are included in this model. When this model is used, there cannot be a separate underexcitation limiter or VAr controller model. - */ - class ExcSK: public ExcitationSystemDynamics - { - - public: - CIMPP::PU efdmax; /* Field voltage clipping limit (Efdmax). Default: nullptr */ - CIMPP::PU efdmin; /* Field voltage clipping limit (Efdmin). Default: nullptr */ - CIMPP::PU emax; /* Maximum field voltage output (Emax). Typical Value = 20. Default: nullptr */ - CIMPP::PU emin; /* Minimum field voltage output (Emin). Typical Value = -20. Default: nullptr */ - CIMPP::PU k; /* Gain (K). Typical Value = 1. Default: nullptr */ - CIMPP::PU k1; /* Parameter of underexcitation limit (K1). Typical Value = 0.1364. Default: nullptr */ - CIMPP::PU k2; /* Parameter of underexcitation limit (K2). Typical Value = -0.3861. Default: nullptr */ - CIMPP::PU kc; /* PI controller gain (Kc). Typical Value = 70. Default: nullptr */ - CIMPP::PU kce; /* Rectifier regulation factor (Kce). Typical Value = 0. Default: nullptr */ - CIMPP::PU kd; /* Exciter internal reactance (Kd). Typical Value = 0. Default: nullptr */ - CIMPP::PU kgob; /* P controller gain (Kgob). Typical Value = 10. Default: nullptr */ - CIMPP::PU kp; /* PI controller gain (Kp). Typical Value = 1. Default: nullptr */ - CIMPP::PU kqi; /* PI controller gain of integral component (Kqi). Typical Value = 0. Default: nullptr */ - CIMPP::PU kqob; /* Rate of rise of the reactive power (Kqob). Default: nullptr */ - CIMPP::PU kqp; /* PI controller gain (Kqp). Typical Value = 0. Default: nullptr */ - CIMPP::PU nq; /* Dead band of reactive power (nq). Determines the range of sensitivity. Typical Value = 0.001. Default: nullptr */ - CIMPP::Boolean qconoff; /* Secondary voltage control state (Qc_on_off). true = secondary voltage control is ON false = secondary voltage control is OFF. Typical Value = false. Default: false */ - CIMPP::PU qz; /* Desired value (setpoint) of reactive power, manual setting (Qz). Default: nullptr */ - CIMPP::Boolean remote; /* Selector to apply automatic calculation in secondary controller model. true = automatic calculation is activated false = manual set is active; the use of desired value of reactive power (Qz) is required. Typical Value = true. Default: false */ - CIMPP::ApparentPower sbase; /* Apparent power of the unit (Sbase). Unit = MVA. Typical Value = 259. Default: nullptr */ - CIMPP::Seconds tc; /* PI controller phase lead time constant (Tc). Typical Value = 8. Default: nullptr */ - CIMPP::Seconds te; /* Time constant of gain block (Te). Typical Value = 0.1. Default: nullptr */ - CIMPP::Seconds ti; /* PI controller phase lead time constant (Ti). Typical Value = 2. Default: nullptr */ - CIMPP::Seconds tp; /* Time constant (Tp). Typical Value = 0.1. Default: nullptr */ - CIMPP::Seconds tr; /* Voltage transducer time constant (Tr). Typical Value = 0.01. Default: nullptr */ - CIMPP::PU uimax; /* Maximum error (Uimax). Typical Value = 10. Default: nullptr */ - CIMPP::PU uimin; /* Minimum error (UImin). Typical Value = -10. Default: nullptr */ - CIMPP::PU urmax; /* Maximum controller output (URmax). Typical Value = 10. Default: nullptr */ - CIMPP::PU urmin; /* Minimum controller output (URmin). Typical Value = -10. Default: nullptr */ - CIMPP::PU vtmax; /* Maximum terminal voltage input (Vtmax). Determines the range of voltage dead band. Typical Value = 1.05. Default: nullptr */ - CIMPP::PU vtmin; /* Minimum terminal voltage input (Vtmin). Determines the range of voltage dead band. Typical Value = 0.95. Default: nullptr */ - CIMPP::PU yp; /* Maximum output (Yp). Minimum output = 0. Typical Value = 1. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ExcSK(); - virtual ~ExcSK(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ExcSK_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ExcST1A.cpp b/CGMES_2.4.13_18DEC2013/ExcST1A.cpp deleted file mode 100644 index deae1a179..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcST1A.cpp +++ /dev/null @@ -1,311 +0,0 @@ -#include -#include "ExcitationSystemDynamics.hpp" -#include "ExcST1A.hpp" - -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -ExcST1A::ExcST1A() {}; - -ExcST1A::~ExcST1A() {}; - - - - - - - - - - - - - - - - - - - - - -bool assign_ExcST1A_vimax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vimax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST1A_vimin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vimin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST1A_tc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST1A_tb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST1A_ka(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ka; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST1A_ta(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ta; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST1A_vrmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST1A_vrmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST1A_kc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST1A_kf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST1A_tf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST1A_tc1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tc1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST1A_tb1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tb1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST1A_vamax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vamax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST1A_vamin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vamin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST1A_ilr(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ilr; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST1A_klr(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->klr; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST1A_xe(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->xe; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ExcST1A_factory() { - return new ExcST1A; - } -} - -void ExcST1A::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ExcST1A"), &ExcST1A_factory)); -} - -void ExcST1A::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ExcST1A.vimax"), &assign_ExcST1A_vimax)); - assign_map.insert(std::make_pair(std::string("cim:ExcST1A.vimin"), &assign_ExcST1A_vimin)); - assign_map.insert(std::make_pair(std::string("cim:ExcST1A.tc"), &assign_ExcST1A_tc)); - assign_map.insert(std::make_pair(std::string("cim:ExcST1A.tb"), &assign_ExcST1A_tb)); - assign_map.insert(std::make_pair(std::string("cim:ExcST1A.ka"), &assign_ExcST1A_ka)); - assign_map.insert(std::make_pair(std::string("cim:ExcST1A.ta"), &assign_ExcST1A_ta)); - assign_map.insert(std::make_pair(std::string("cim:ExcST1A.vrmax"), &assign_ExcST1A_vrmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcST1A.vrmin"), &assign_ExcST1A_vrmin)); - assign_map.insert(std::make_pair(std::string("cim:ExcST1A.kc"), &assign_ExcST1A_kc)); - assign_map.insert(std::make_pair(std::string("cim:ExcST1A.kf"), &assign_ExcST1A_kf)); - assign_map.insert(std::make_pair(std::string("cim:ExcST1A.tf"), &assign_ExcST1A_tf)); - assign_map.insert(std::make_pair(std::string("cim:ExcST1A.tc1"), &assign_ExcST1A_tc1)); - assign_map.insert(std::make_pair(std::string("cim:ExcST1A.tb1"), &assign_ExcST1A_tb1)); - assign_map.insert(std::make_pair(std::string("cim:ExcST1A.vamax"), &assign_ExcST1A_vamax)); - assign_map.insert(std::make_pair(std::string("cim:ExcST1A.vamin"), &assign_ExcST1A_vamin)); - assign_map.insert(std::make_pair(std::string("cim:ExcST1A.ilr"), &assign_ExcST1A_ilr)); - assign_map.insert(std::make_pair(std::string("cim:ExcST1A.klr"), &assign_ExcST1A_klr)); - assign_map.insert(std::make_pair(std::string("cim:ExcST1A.xe"), &assign_ExcST1A_xe)); -} - -void ExcST1A::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char ExcST1A::debugName[] = "ExcST1A"; -const char* ExcST1A::debugString() -{ - return ExcST1A::debugName; -} - -const BaseClassDefiner ExcST1A::declare() -{ - return BaseClassDefiner(ExcST1A::addConstructToMap, ExcST1A::addPrimitiveAssignFnsToMap, ExcST1A::addClassAssignFnsToMap, ExcST1A::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ExcST1A.hpp b/CGMES_2.4.13_18DEC2013/ExcST1A.hpp deleted file mode 100644 index af4b3396c..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcST1A.hpp +++ /dev/null @@ -1,58 +0,0 @@ -#ifndef ExcST1A_H -#define ExcST1A_H - -#include "ExcitationSystemDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "Seconds.hpp" - -namespace CIMPP { - - - /* - Modification of an old IEEE ST1A static excitation system without overexcitation limiter (OEL) and underexcitation limiter (UEL). - */ - class ExcST1A: public ExcitationSystemDynamics - { - - public: - CIMPP::PU vimax; /* Maximum voltage regulator input limit (Vimax). Typical Value = 999. Default: nullptr */ - CIMPP::PU vimin; /* Minimum voltage regulator input limit (Vimin). Typical Value = -999. Default: nullptr */ - CIMPP::Seconds tc; /* Voltage regulator time constant (Tc). Typical Value = 1. Default: nullptr */ - CIMPP::Seconds tb; /* Voltage regulator time constant (Tb). Typical Value = 10. Default: nullptr */ - CIMPP::PU ka; /* Voltage regulator gain (Ka). Typical Value = 190. Default: nullptr */ - CIMPP::Seconds ta; /* Voltage regulator time constant (Ta). Typical Value = 0.02. Default: nullptr */ - CIMPP::PU vrmax; /* Maximum voltage regulator outputs (Vrmax). Typical Value = 7.8. Default: nullptr */ - CIMPP::PU vrmin; /* Minimum voltage regulator outputs (Vrmin). Typical Value = -6.7. Default: nullptr */ - CIMPP::PU kc; /* Rectifier loading factor proportional to commutating reactance (Kc). Typical Value = 0.05. Default: nullptr */ - CIMPP::PU kf; /* Excitation control system stabilizer gains (Kf). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tf; /* Excitation control system stabilizer time constant (Tf). Typical Value = 1. Default: nullptr */ - CIMPP::Seconds tc1; /* Voltage regulator time constant (Tc). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tb1; /* Voltage regulator time constant (Tb). Typical Value = 0. Default: nullptr */ - CIMPP::PU vamax; /* Maximum voltage regulator output (Vamax). Typical Value = 999. Default: nullptr */ - CIMPP::PU vamin; /* Minimum voltage regulator output (Vamin). Typical Value = -999. Default: nullptr */ - CIMPP::PU ilr; /* Exciter output current limit reference (Ilr). Typical Value = 0. Default: nullptr */ - CIMPP::PU klr; /* Exciter output current limiter gain (Klr). Typical Value = 0. Default: nullptr */ - CIMPP::PU xe; /* Excitation xfmr effective reactance (Xe). Typical Value = 0.04. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ExcST1A(); - virtual ~ExcST1A(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ExcST1A_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ExcST2A.cpp b/CGMES_2.4.13_18DEC2013/ExcST2A.cpp deleted file mode 100644 index 28477a5d5..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcST2A.cpp +++ /dev/null @@ -1,266 +0,0 @@ -#include -#include "ExcitationSystemDynamics.hpp" -#include "ExcST2A.hpp" - -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Boolean.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" - -using namespace CIMPP; - -ExcST2A::ExcST2A() {}; - -ExcST2A::~ExcST2A() {}; - - - - - - - - - - - - - - - - - - -bool assign_ExcST2A_ka(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ka; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST2A_ta(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ta; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST2A_vrmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST2A_vrmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST2A_ke(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ke; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST2A_te(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->te; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST2A_kf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST2A_tf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST2A_kp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST2A_ki(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ki; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST2A_kc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST2A_efdmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->efdmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST2A_uelin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->uelin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST2A_tb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST2A_tc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST2A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ExcST2A_factory() { - return new ExcST2A; - } -} - -void ExcST2A::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ExcST2A"), &ExcST2A_factory)); -} - -void ExcST2A::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ExcST2A.ka"), &assign_ExcST2A_ka)); - assign_map.insert(std::make_pair(std::string("cim:ExcST2A.ta"), &assign_ExcST2A_ta)); - assign_map.insert(std::make_pair(std::string("cim:ExcST2A.vrmax"), &assign_ExcST2A_vrmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcST2A.vrmin"), &assign_ExcST2A_vrmin)); - assign_map.insert(std::make_pair(std::string("cim:ExcST2A.ke"), &assign_ExcST2A_ke)); - assign_map.insert(std::make_pair(std::string("cim:ExcST2A.te"), &assign_ExcST2A_te)); - assign_map.insert(std::make_pair(std::string("cim:ExcST2A.kf"), &assign_ExcST2A_kf)); - assign_map.insert(std::make_pair(std::string("cim:ExcST2A.tf"), &assign_ExcST2A_tf)); - assign_map.insert(std::make_pair(std::string("cim:ExcST2A.kp"), &assign_ExcST2A_kp)); - assign_map.insert(std::make_pair(std::string("cim:ExcST2A.ki"), &assign_ExcST2A_ki)); - assign_map.insert(std::make_pair(std::string("cim:ExcST2A.kc"), &assign_ExcST2A_kc)); - assign_map.insert(std::make_pair(std::string("cim:ExcST2A.efdmax"), &assign_ExcST2A_efdmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcST2A.uelin"), &assign_ExcST2A_uelin)); - assign_map.insert(std::make_pair(std::string("cim:ExcST2A.tb"), &assign_ExcST2A_tb)); - assign_map.insert(std::make_pair(std::string("cim:ExcST2A.tc"), &assign_ExcST2A_tc)); -} - -void ExcST2A::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char ExcST2A::debugName[] = "ExcST2A"; -const char* ExcST2A::debugString() -{ - return ExcST2A::debugName; -} - -const BaseClassDefiner ExcST2A::declare() -{ - return BaseClassDefiner(ExcST2A::addConstructToMap, ExcST2A::addPrimitiveAssignFnsToMap, ExcST2A::addClassAssignFnsToMap, ExcST2A::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ExcST2A.hpp b/CGMES_2.4.13_18DEC2013/ExcST2A.hpp deleted file mode 100644 index 35be34d96..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcST2A.hpp +++ /dev/null @@ -1,56 +0,0 @@ -#ifndef ExcST2A_H -#define ExcST2A_H - -#include "ExcitationSystemDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "Seconds.hpp" -#include "Boolean.hpp" - -namespace CIMPP { - - - /* - Modified IEEE ST2A static excitation system - another lead-lag block added to match the model defined by WECC. - */ - class ExcST2A: public ExcitationSystemDynamics - { - - public: - CIMPP::PU ka; /* Voltage regulator gain (Ka). Typical Value = 120. Default: nullptr */ - CIMPP::Seconds ta; /* Voltage regulator time constant (Ta). Typical Value = 0.15. Default: nullptr */ - CIMPP::PU vrmax; /* Maximum voltage regulator outputs (Vrmax). Typical Value = 1. Default: nullptr */ - CIMPP::PU vrmin; /* Minimum voltage regulator outputs (Vrmin). Typical Value = -1. Default: nullptr */ - CIMPP::PU ke; /* Exciter constant related to self-excited field (Ke). Typical Value = 1. Default: nullptr */ - CIMPP::Seconds te; /* Exciter time constant, integration rate associated with exciter control (Te). Typical Value = 0.5. Default: nullptr */ - CIMPP::PU kf; /* Excitation control system stabilizer gains (Kf). Typical Value = 0.05. Default: nullptr */ - CIMPP::Seconds tf; /* Excitation control system stabilizer time constant (Tf). Typical Value = 0.7. Default: nullptr */ - CIMPP::PU kp; /* Potential circuit gain coefficient (Kp). Typical Value = 4.88. Default: nullptr */ - CIMPP::PU ki; /* Potential circuit gain coefficient (Ki). Typical Value = 8. Default: nullptr */ - CIMPP::PU kc; /* Rectifier loading factor proportional to commutating reactance (Kc). Typical Value = 1.82. Default: nullptr */ - CIMPP::PU efdmax; /* Maximum field voltage (Efdmax). Typical Value = 99. Default: nullptr */ - CIMPP::Boolean uelin; /* UEL input (UELin). true = HV gate false = add to error signal. Typical Value = false. Default: false */ - CIMPP::Seconds tb; /* Voltage regulator time constant (Tb). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tc; /* Voltage regulator time constant (Tc). Typical Value = 0. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ExcST2A(); - virtual ~ExcST2A(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ExcST2A_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ExcST3A.cpp b/CGMES_2.4.13_18DEC2013/ExcST3A.cpp deleted file mode 100644 index a343ec35e..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcST3A.cpp +++ /dev/null @@ -1,341 +0,0 @@ -#include -#include "ExcitationSystemDynamics.hpp" -#include "ExcST3A.hpp" - -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "AngleDegrees.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -ExcST3A::ExcST3A() {}; - -ExcST3A::~ExcST3A() {}; - - - - - - - - - - - - - - - - - - - - - - - -bool assign_ExcST3A_vimax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vimax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST3A_vimin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vimin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST3A_kj(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kj; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST3A_tb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST3A_tc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST3A_efdmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->efdmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST3A_km(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->km; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST3A_tm(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tm; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST3A_vrmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST3A_vrmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST3A_kg(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kg; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST3A_kp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST3A_thetap(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->thetap; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST3A_ki(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ki; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST3A_kc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST3A_xl(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->xl; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST3A_vbmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vbmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST3A_vgmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vgmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST3A_ks(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ks; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST3A_ks1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST3A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ks1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ExcST3A_factory() { - return new ExcST3A; - } -} - -void ExcST3A::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ExcST3A"), &ExcST3A_factory)); -} - -void ExcST3A::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ExcST3A.vimax"), &assign_ExcST3A_vimax)); - assign_map.insert(std::make_pair(std::string("cim:ExcST3A.vimin"), &assign_ExcST3A_vimin)); - assign_map.insert(std::make_pair(std::string("cim:ExcST3A.kj"), &assign_ExcST3A_kj)); - assign_map.insert(std::make_pair(std::string("cim:ExcST3A.tb"), &assign_ExcST3A_tb)); - assign_map.insert(std::make_pair(std::string("cim:ExcST3A.tc"), &assign_ExcST3A_tc)); - assign_map.insert(std::make_pair(std::string("cim:ExcST3A.efdmax"), &assign_ExcST3A_efdmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcST3A.km"), &assign_ExcST3A_km)); - assign_map.insert(std::make_pair(std::string("cim:ExcST3A.tm"), &assign_ExcST3A_tm)); - assign_map.insert(std::make_pair(std::string("cim:ExcST3A.vrmax"), &assign_ExcST3A_vrmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcST3A.vrmin"), &assign_ExcST3A_vrmin)); - assign_map.insert(std::make_pair(std::string("cim:ExcST3A.kg"), &assign_ExcST3A_kg)); - assign_map.insert(std::make_pair(std::string("cim:ExcST3A.kp"), &assign_ExcST3A_kp)); - assign_map.insert(std::make_pair(std::string("cim:ExcST3A.thetap"), &assign_ExcST3A_thetap)); - assign_map.insert(std::make_pair(std::string("cim:ExcST3A.ki"), &assign_ExcST3A_ki)); - assign_map.insert(std::make_pair(std::string("cim:ExcST3A.kc"), &assign_ExcST3A_kc)); - assign_map.insert(std::make_pair(std::string("cim:ExcST3A.xl"), &assign_ExcST3A_xl)); - assign_map.insert(std::make_pair(std::string("cim:ExcST3A.vbmax"), &assign_ExcST3A_vbmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcST3A.vgmax"), &assign_ExcST3A_vgmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcST3A.ks"), &assign_ExcST3A_ks)); - assign_map.insert(std::make_pair(std::string("cim:ExcST3A.ks1"), &assign_ExcST3A_ks1)); -} - -void ExcST3A::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char ExcST3A::debugName[] = "ExcST3A"; -const char* ExcST3A::debugString() -{ - return ExcST3A::debugName; -} - -const BaseClassDefiner ExcST3A::declare() -{ - return BaseClassDefiner(ExcST3A::addConstructToMap, ExcST3A::addPrimitiveAssignFnsToMap, ExcST3A::addClassAssignFnsToMap, ExcST3A::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ExcST3A.hpp b/CGMES_2.4.13_18DEC2013/ExcST3A.hpp deleted file mode 100644 index e239148d3..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcST3A.hpp +++ /dev/null @@ -1,61 +0,0 @@ -#ifndef ExcST3A_H -#define ExcST3A_H - -#include "ExcitationSystemDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "Seconds.hpp" -#include "AngleDegrees.hpp" - -namespace CIMPP { - - - /* - Modified IEEE ST3A static excitation system with added speed multiplier. - */ - class ExcST3A: public ExcitationSystemDynamics - { - - public: - CIMPP::PU vimax; /* Maximum voltage regulator input limit (Vimax). Typical Value = 0.2. Default: nullptr */ - CIMPP::PU vimin; /* Minimum voltage regulator input limit (Vimin). Typical Value = -0.2. Default: nullptr */ - CIMPP::PU kj; /* AVR gain (Kj). Typical Value = 200. Default: nullptr */ - CIMPP::Seconds tb; /* Voltage regulator time constant (Tb). Typical Value = 6.67. Default: nullptr */ - CIMPP::Seconds tc; /* Voltage regulator time constant (Tc). Typical Value = 1. Default: nullptr */ - CIMPP::PU efdmax; /* Maximum AVR output (Efdmax). Typical Value = 6.9. Default: nullptr */ - CIMPP::PU km; /* Forward gain constant of the inner loop field regulator (Km). Typical Value = 7.04. Default: nullptr */ - CIMPP::Seconds tm; /* Forward time constant of inner loop field regulator (Tm). Typical Value = 1. Default: nullptr */ - CIMPP::PU vrmax; /* Maximum voltage regulator output (Vrmax). Typical Value = 1. Default: nullptr */ - CIMPP::PU vrmin; /* Minimum voltage regulator output (Vrmin). Typical Value = 0. Default: nullptr */ - CIMPP::PU kg; /* Feedback gain constant of the inner loop field regulator (Kg). Typical Value = 1. Default: nullptr */ - CIMPP::PU kp; /* Potential source gain (Kp) (>0). Typical Value = 4.37. Default: nullptr */ - CIMPP::AngleDegrees thetap; /* Potential circuit phase angle (thetap). Typical Value = 20. Default: nullptr */ - CIMPP::PU ki; /* Potential circuit gain coefficient (Ki). Typical Value = 4.83. Default: nullptr */ - CIMPP::PU kc; /* Rectifier loading factor proportional to commutating reactance (Kc). Typical Value = 1.1. Default: nullptr */ - CIMPP::PU xl; /* Reactance associated with potential source (Xl). Typical Value = 0.09. Default: nullptr */ - CIMPP::PU vbmax; /* Maximum excitation voltage (Vbmax). Typical Value = 8.63. Default: nullptr */ - CIMPP::PU vgmax; /* Maximum inner loop feedback voltage (Vgmax). Typical Value = 6.53. Default: nullptr */ - CIMPP::PU ks; /* Coefficient to allow different usage of the model-speed coefficient (Ks). Typical Value = 0. Default: nullptr */ - CIMPP::PU ks1; /* Coefficient to allow different usage of the model-speed coefficient (Ks1). Typical Value = 0. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ExcST3A(); - virtual ~ExcST3A(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ExcST3A_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ExcST4B.cpp b/CGMES_2.4.13_18DEC2013/ExcST4B.cpp deleted file mode 100644 index 4a148e627..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcST4B.cpp +++ /dev/null @@ -1,326 +0,0 @@ -#include -#include "ExcitationSystemDynamics.hpp" -#include "ExcST4B.hpp" - -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "AngleDegrees.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Boolean.hpp" -#include "Boolean.hpp" - -using namespace CIMPP; - -ExcST4B::ExcST4B() {}; - -ExcST4B::~ExcST4B() {}; - - - - - - - - - - - - - - - - - - - - - - -bool assign_ExcST4B_kpr(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kpr; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST4B_kir(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kir; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST4B_ta(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ta; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST4B_vrmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST4B_vrmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST4B_kpm(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kpm; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST4B_kim(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kim; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST4B_vmmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vmmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST4B_vmmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vmmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST4B_kg(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kg; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST4B_kp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST4B_thetap(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->thetap; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST4B_ki(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ki; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST4B_kc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST4B_xl(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->xl; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST4B_vbmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vbmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST4B_vgmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vgmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST4B_uel(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->uel; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST4B_lvgate(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->lvgate; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ExcST4B_factory() { - return new ExcST4B; - } -} - -void ExcST4B::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ExcST4B"), &ExcST4B_factory)); -} - -void ExcST4B::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ExcST4B.kpr"), &assign_ExcST4B_kpr)); - assign_map.insert(std::make_pair(std::string("cim:ExcST4B.kir"), &assign_ExcST4B_kir)); - assign_map.insert(std::make_pair(std::string("cim:ExcST4B.ta"), &assign_ExcST4B_ta)); - assign_map.insert(std::make_pair(std::string("cim:ExcST4B.vrmax"), &assign_ExcST4B_vrmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcST4B.vrmin"), &assign_ExcST4B_vrmin)); - assign_map.insert(std::make_pair(std::string("cim:ExcST4B.kpm"), &assign_ExcST4B_kpm)); - assign_map.insert(std::make_pair(std::string("cim:ExcST4B.kim"), &assign_ExcST4B_kim)); - assign_map.insert(std::make_pair(std::string("cim:ExcST4B.vmmax"), &assign_ExcST4B_vmmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcST4B.vmmin"), &assign_ExcST4B_vmmin)); - assign_map.insert(std::make_pair(std::string("cim:ExcST4B.kg"), &assign_ExcST4B_kg)); - assign_map.insert(std::make_pair(std::string("cim:ExcST4B.kp"), &assign_ExcST4B_kp)); - assign_map.insert(std::make_pair(std::string("cim:ExcST4B.thetap"), &assign_ExcST4B_thetap)); - assign_map.insert(std::make_pair(std::string("cim:ExcST4B.ki"), &assign_ExcST4B_ki)); - assign_map.insert(std::make_pair(std::string("cim:ExcST4B.kc"), &assign_ExcST4B_kc)); - assign_map.insert(std::make_pair(std::string("cim:ExcST4B.xl"), &assign_ExcST4B_xl)); - assign_map.insert(std::make_pair(std::string("cim:ExcST4B.vbmax"), &assign_ExcST4B_vbmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcST4B.vgmax"), &assign_ExcST4B_vgmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcST4B.uel"), &assign_ExcST4B_uel)); - assign_map.insert(std::make_pair(std::string("cim:ExcST4B.lvgate"), &assign_ExcST4B_lvgate)); -} - -void ExcST4B::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char ExcST4B::debugName[] = "ExcST4B"; -const char* ExcST4B::debugString() -{ - return ExcST4B::debugName; -} - -const BaseClassDefiner ExcST4B::declare() -{ - return BaseClassDefiner(ExcST4B::addConstructToMap, ExcST4B::addPrimitiveAssignFnsToMap, ExcST4B::addClassAssignFnsToMap, ExcST4B::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ExcST4B.hpp b/CGMES_2.4.13_18DEC2013/ExcST4B.hpp deleted file mode 100644 index 77de87f47..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcST4B.hpp +++ /dev/null @@ -1,61 +0,0 @@ -#ifndef ExcST4B_H -#define ExcST4B_H - -#include "ExcitationSystemDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "Seconds.hpp" -#include "AngleDegrees.hpp" -#include "Boolean.hpp" - -namespace CIMPP { - - - /* - Modified IEEE ST4B static excitation system with maximum inner loop feedback gain . - */ - class ExcST4B: public ExcitationSystemDynamics - { - - public: - CIMPP::PU kpr; /* Voltage regulator proportional gain (Kpr). Typical Value = 10.75. Default: nullptr */ - CIMPP::PU kir; /* Voltage regulator integral gain (Kir). Typical Value = 10.75. Default: nullptr */ - CIMPP::Seconds ta; /* Voltage regulator time constant (Ta). Typical Value = 0.02. Default: nullptr */ - CIMPP::PU vrmax; /* Maximum voltage regulator output (Vrmax). Typical Value = 1. Default: nullptr */ - CIMPP::PU vrmin; /* Minimum voltage regulator output (Vrmin). Typical Value = -0.87. Default: nullptr */ - CIMPP::PU kpm; /* Voltage regulator proportional gain output (Kpm). Typical Value = 1. Default: nullptr */ - CIMPP::PU kim; /* Voltage regulator integral gain output (Kim). Typical Value = 0. Default: nullptr */ - CIMPP::PU vmmax; /* Maximum inner loop output (Vmmax). Typical Value = 99. Default: nullptr */ - CIMPP::PU vmmin; /* Minimum inner loop output (Vmmin). Typical Value = -99. Default: nullptr */ - CIMPP::PU kg; /* Feedback gain constant of the inner loop field regulator (Kg). Typical Value = 0. Default: nullptr */ - CIMPP::PU kp; /* Potential circuit gain coefficient (Kp). Typical Value = 9.3. Default: nullptr */ - CIMPP::AngleDegrees thetap; /* Potential circuit phase angle (thetap). Typical Value = 0. Default: nullptr */ - CIMPP::PU ki; /* Potential circuit gain coefficient (Ki). Typical Value = 0. Default: nullptr */ - CIMPP::PU kc; /* Rectifier loading factor proportional to commutating reactance (Kc). Typical Value = 0.113. Default: nullptr */ - CIMPP::PU xl; /* Reactance associated with potential source (Xl). Typical Value = 0.124. Default: nullptr */ - CIMPP::PU vbmax; /* Maximum excitation voltage (Vbmax). Typical Value = 11.63. Default: nullptr */ - CIMPP::PU vgmax; /* Maximum inner loop feedback voltage (Vgmax). Typical Value = 5.8. Default: nullptr */ - CIMPP::Boolean uel; /* Selector (Uel). true = UEL is part of block diagram false = UEL is not part of block diagram. Typical Value = false. Default: false */ - CIMPP::Boolean lvgate; /* Selector (LVgate). true = LVgate is part of the block diagram false = LVgate is not part of the block diagram. Typical Value = false. Default: false */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ExcST4B(); - virtual ~ExcST4B(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ExcST4B_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ExcST6B.cpp b/CGMES_2.4.13_18DEC2013/ExcST6B.cpp deleted file mode 100644 index 8cc7852af..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcST6B.cpp +++ /dev/null @@ -1,386 +0,0 @@ -#include -#include "ExcitationSystemDynamics.hpp" -#include "ExcST6B.hpp" - -#include "PU.hpp" -#include "Boolean.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "ExcST6BOELselectorKind.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Boolean.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Boolean.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -ExcST6B::ExcST6B() {}; - -ExcST6B::~ExcST6B() {}; - - - - - - - - - - - - - - - - - - - - - - - - - - -bool assign_ExcST6B_ilr(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST6B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ilr; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST6B_k1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST6B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST6B_kcl(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST6B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kcl; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST6B_kff(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST6B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kff; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST6B_kg(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST6B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kg; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST6B_kia(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST6B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kia; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST6B_klr(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST6B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->klr; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST6B_km(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST6B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->km; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST6B_kpa(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST6B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kpa; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST6B_kvd(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST6B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kvd; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST6B_oelin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST6B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->oelin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST6B_tg(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST6B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tg; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST6B_ts(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST6B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ts; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST6B_tvd(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST6B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tvd; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST6B_vamax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST6B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vamax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST6B_vamin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST6B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vamin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST6B_vilim(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST6B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vilim; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST6B_vimax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST6B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vimax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST6B_vimin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST6B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vimin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST6B_vmult(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST6B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vmult; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST6B_vrmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST6B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST6B_vrmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST6B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST6B_xc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST6B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->xc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ExcST6B_factory() { - return new ExcST6B; - } -} - -void ExcST6B::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ExcST6B"), &ExcST6B_factory)); -} - -void ExcST6B::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ExcST6B.ilr"), &assign_ExcST6B_ilr)); - assign_map.insert(std::make_pair(std::string("cim:ExcST6B.k1"), &assign_ExcST6B_k1)); - assign_map.insert(std::make_pair(std::string("cim:ExcST6B.kcl"), &assign_ExcST6B_kcl)); - assign_map.insert(std::make_pair(std::string("cim:ExcST6B.kff"), &assign_ExcST6B_kff)); - assign_map.insert(std::make_pair(std::string("cim:ExcST6B.kg"), &assign_ExcST6B_kg)); - assign_map.insert(std::make_pair(std::string("cim:ExcST6B.kia"), &assign_ExcST6B_kia)); - assign_map.insert(std::make_pair(std::string("cim:ExcST6B.klr"), &assign_ExcST6B_klr)); - assign_map.insert(std::make_pair(std::string("cim:ExcST6B.km"), &assign_ExcST6B_km)); - assign_map.insert(std::make_pair(std::string("cim:ExcST6B.kpa"), &assign_ExcST6B_kpa)); - assign_map.insert(std::make_pair(std::string("cim:ExcST6B.kvd"), &assign_ExcST6B_kvd)); - assign_map.insert(std::make_pair(std::string("cim:ExcST6B.oelin"), &assign_ExcST6B_oelin)); - assign_map.insert(std::make_pair(std::string("cim:ExcST6B.tg"), &assign_ExcST6B_tg)); - assign_map.insert(std::make_pair(std::string("cim:ExcST6B.ts"), &assign_ExcST6B_ts)); - assign_map.insert(std::make_pair(std::string("cim:ExcST6B.tvd"), &assign_ExcST6B_tvd)); - assign_map.insert(std::make_pair(std::string("cim:ExcST6B.vamax"), &assign_ExcST6B_vamax)); - assign_map.insert(std::make_pair(std::string("cim:ExcST6B.vamin"), &assign_ExcST6B_vamin)); - assign_map.insert(std::make_pair(std::string("cim:ExcST6B.vilim"), &assign_ExcST6B_vilim)); - assign_map.insert(std::make_pair(std::string("cim:ExcST6B.vimax"), &assign_ExcST6B_vimax)); - assign_map.insert(std::make_pair(std::string("cim:ExcST6B.vimin"), &assign_ExcST6B_vimin)); - assign_map.insert(std::make_pair(std::string("cim:ExcST6B.vmult"), &assign_ExcST6B_vmult)); - assign_map.insert(std::make_pair(std::string("cim:ExcST6B.vrmax"), &assign_ExcST6B_vrmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcST6B.vrmin"), &assign_ExcST6B_vrmin)); - assign_map.insert(std::make_pair(std::string("cim:ExcST6B.xc"), &assign_ExcST6B_xc)); -} - -void ExcST6B::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char ExcST6B::debugName[] = "ExcST6B"; -const char* ExcST6B::debugString() -{ - return ExcST6B::debugName; -} - -const BaseClassDefiner ExcST6B::declare() -{ - return BaseClassDefiner(ExcST6B::addConstructToMap, ExcST6B::addPrimitiveAssignFnsToMap, ExcST6B::addClassAssignFnsToMap, ExcST6B::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ExcST6B.hpp b/CGMES_2.4.13_18DEC2013/ExcST6B.hpp deleted file mode 100644 index e7c799981..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcST6B.hpp +++ /dev/null @@ -1,65 +0,0 @@ -#ifndef ExcST6B_H -#define ExcST6B_H - -#include "ExcitationSystemDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "Boolean.hpp" -#include "ExcST6BOELselectorKind.hpp" -#include "Seconds.hpp" - -namespace CIMPP { - - - /* - Modified IEEE ST6B static excitation system with PID controller and optional inner feedbacks loop. - */ - class ExcST6B: public ExcitationSystemDynamics - { - - public: - CIMPP::PU ilr; /* Exciter output current limit reference (Ilr). Typical Value = 4.164. Default: nullptr */ - CIMPP::Boolean k1; /* Selector (K1). true = feedback is from Ifd false = feedback is not from Ifd. Typical Value = true. Default: false */ - CIMPP::PU kcl; /* Exciter output current limit adjustment (Kcl). Typical Value = 1.0577. Default: nullptr */ - CIMPP::PU kff; /* Pre-control gain constant of the inner loop field regulator (Kff). Typical Value = 1. Default: nullptr */ - CIMPP::PU kg; /* Feedback gain constant of the inner loop field regulator (Kg). Typical Value = 1. Default: nullptr */ - CIMPP::PU kia; /* Voltage regulator integral gain (Kia). Typical Value = 45.094. Default: nullptr */ - CIMPP::PU klr; /* Exciter output current limit adjustment (Kcl). Typical Value = 17.33. Default: nullptr */ - CIMPP::PU km; /* Forward gain constant of the inner loop field regulator (Km). Typical Value = 1. Default: nullptr */ - CIMPP::PU kpa; /* Voltage regulator proportional gain (Kpa). Typical Value = 18.038. Default: nullptr */ - CIMPP::PU kvd; /* Voltage regulator derivative gain (Kvd). Typical Value = 0. Default: nullptr */ - CIMPP::ExcST6BOELselectorKind oelin; /* OEL input selector (OELin). Typical Value = noOELinput. Default: 0 */ - CIMPP::Seconds tg; /* Feedback time constant of inner loop field voltage regulator (Tg). Typical Value = 0.02. Default: nullptr */ - CIMPP::Seconds ts; /* Rectifier firing time constant (Ts). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tvd; /* Voltage regulator derivative gain (Tvd). Typical Value = 0. Default: nullptr */ - CIMPP::PU vamax; /* Maximum voltage regulator output (Vamax). Typical Value = 4.81. Default: nullptr */ - CIMPP::PU vamin; /* Minimum voltage regulator output (Vamin). Typical Value = -3.85. Default: nullptr */ - CIMPP::Boolean vilim; /* Selector (Vilim). true = Vimin-Vimax limiter is active false = Vimin-Vimax limiter is not active. Typical Value = true. Default: false */ - CIMPP::PU vimax; /* Maximum voltage regulator input limit (Vimax). Typical Value = 10. Default: nullptr */ - CIMPP::PU vimin; /* Minimum voltage regulator input limit (Vimin). Typical Value = -10. Default: nullptr */ - CIMPP::Boolean vmult; /* Selector (Vmult). true = multiply regulator output by terminal voltage false = do not multiply regulator output by terminal voltage. Typical Value = true. Default: false */ - CIMPP::PU vrmax; /* Maximum voltage regulator output (Vrmax). Typical Value = 4.81. Default: nullptr */ - CIMPP::PU vrmin; /* Minimum voltage regulator output (Vrmin). Typical Value = -3.85. Default: nullptr */ - CIMPP::PU xc; /* Excitation source reactance (Xc). Typical Value = 0.05. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ExcST6B(); - virtual ~ExcST6B(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ExcST6B_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ExcST6BOELselectorKind.cpp b/CGMES_2.4.13_18DEC2013/ExcST6BOELselectorKind.cpp deleted file mode 100644 index ed4095208..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcST6BOELselectorKind.cpp +++ /dev/null @@ -1,42 +0,0 @@ -#include -#include -#include "ExcST6BOELselectorKind.hpp" - -using namespace CIMPP; - -namespace CIMPP { - std::istream& operator>>(std::istream& lop, CIMPP::ExcST6BOELselectorKind& rop) - { - std::string EnumSymbol; - lop >> EnumSymbol; - - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "ExcST6BOELselectorKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "noOELinput") - { - rop = ExcST6BOELselectorKind::noOELinput; - return lop; - } - if(EnumSymbol == "beforeUEL") - { - rop = ExcST6BOELselectorKind::beforeUEL; - return lop; - } - if(EnumSymbol == "afterUEL") - { - rop = ExcST6BOELselectorKind::afterUEL; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; - } -} - diff --git a/CGMES_2.4.13_18DEC2013/ExcST6BOELselectorKind.hpp b/CGMES_2.4.13_18DEC2013/ExcST6BOELselectorKind.hpp deleted file mode 100644 index 0b6f498ff..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcST6BOELselectorKind.hpp +++ /dev/null @@ -1,25 +0,0 @@ -#ifndef ExcST6BOELselectorKind_H -#define ExcST6BOELselectorKind_H - -namespace CIMPP { - /* - Type of connection for the OEL input used for static excitation systems type 6B. - */ - enum class ExcST6BOELselectorKind - { - /** - * No OEL input is used. - */ - noOELinput, - /** - * The connection is before UEL. - */ - beforeUEL, - /** - * The connection is after UEL. - */ - afterUEL, - }; - std::istream& operator>>(std::istream& lop, CIMPP::ExcST6BOELselectorKind& rop); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ExcST7B.cpp b/CGMES_2.4.13_18DEC2013/ExcST7B.cpp deleted file mode 100644 index 81e1a08cf..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcST7B.cpp +++ /dev/null @@ -1,281 +0,0 @@ -#include -#include "ExcitationSystemDynamics.hpp" -#include "ExcST7B.hpp" - -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "ExcST7BOELselectorKind.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "ExcST7BUELselectorKind.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -ExcST7B::ExcST7B() {}; - -ExcST7B::~ExcST7B() {}; - - - - - - - - - - - - - - - - - - - -bool assign_ExcST7B_kh(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST7B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kh; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST7B_kia(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST7B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kia; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST7B_kl(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST7B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kl; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST7B_kpa(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST7B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kpa; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST7B_oelin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST7B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->oelin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST7B_tb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST7B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST7B_tc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST7B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST7B_tf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST7B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST7B_tg(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST7B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tg; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST7B_tia(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST7B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tia; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST7B_ts(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST7B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ts; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST7B_uelin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST7B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->uelin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST7B_vmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST7B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST7B_vmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST7B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST7B_vrmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST7B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExcST7B_vrmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcST7B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ExcST7B_factory() { - return new ExcST7B; - } -} - -void ExcST7B::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ExcST7B"), &ExcST7B_factory)); -} - -void ExcST7B::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ExcST7B.kh"), &assign_ExcST7B_kh)); - assign_map.insert(std::make_pair(std::string("cim:ExcST7B.kia"), &assign_ExcST7B_kia)); - assign_map.insert(std::make_pair(std::string("cim:ExcST7B.kl"), &assign_ExcST7B_kl)); - assign_map.insert(std::make_pair(std::string("cim:ExcST7B.kpa"), &assign_ExcST7B_kpa)); - assign_map.insert(std::make_pair(std::string("cim:ExcST7B.oelin"), &assign_ExcST7B_oelin)); - assign_map.insert(std::make_pair(std::string("cim:ExcST7B.tb"), &assign_ExcST7B_tb)); - assign_map.insert(std::make_pair(std::string("cim:ExcST7B.tc"), &assign_ExcST7B_tc)); - assign_map.insert(std::make_pair(std::string("cim:ExcST7B.tf"), &assign_ExcST7B_tf)); - assign_map.insert(std::make_pair(std::string("cim:ExcST7B.tg"), &assign_ExcST7B_tg)); - assign_map.insert(std::make_pair(std::string("cim:ExcST7B.tia"), &assign_ExcST7B_tia)); - assign_map.insert(std::make_pair(std::string("cim:ExcST7B.ts"), &assign_ExcST7B_ts)); - assign_map.insert(std::make_pair(std::string("cim:ExcST7B.uelin"), &assign_ExcST7B_uelin)); - assign_map.insert(std::make_pair(std::string("cim:ExcST7B.vmax"), &assign_ExcST7B_vmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcST7B.vmin"), &assign_ExcST7B_vmin)); - assign_map.insert(std::make_pair(std::string("cim:ExcST7B.vrmax"), &assign_ExcST7B_vrmax)); - assign_map.insert(std::make_pair(std::string("cim:ExcST7B.vrmin"), &assign_ExcST7B_vrmin)); -} - -void ExcST7B::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char ExcST7B::debugName[] = "ExcST7B"; -const char* ExcST7B::debugString() -{ - return ExcST7B::debugName; -} - -const BaseClassDefiner ExcST7B::declare() -{ - return BaseClassDefiner(ExcST7B::addConstructToMap, ExcST7B::addPrimitiveAssignFnsToMap, ExcST7B::addClassAssignFnsToMap, ExcST7B::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ExcST7B.hpp b/CGMES_2.4.13_18DEC2013/ExcST7B.hpp deleted file mode 100644 index 143a34cc1..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcST7B.hpp +++ /dev/null @@ -1,58 +0,0 @@ -#ifndef ExcST7B_H -#define ExcST7B_H - -#include "ExcitationSystemDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "ExcST7BOELselectorKind.hpp" -#include "Seconds.hpp" -#include "ExcST7BUELselectorKind.hpp" - -namespace CIMPP { - - - /* - Modified IEEE ST7B static excitation system without stator current limiter (SCL) and current compensator (DROOP) inputs. - */ - class ExcST7B: public ExcitationSystemDynamics - { - - public: - CIMPP::PU kh; /* High-value gate feedback gain (Kh). Typical Value = 1. Default: nullptr */ - CIMPP::PU kia; /* Voltage regulator integral gain (Kia). Typical Value = 1. Default: nullptr */ - CIMPP::PU kl; /* Low-value gate feedback gain (Kl). Typical Value = 1. Default: nullptr */ - CIMPP::PU kpa; /* Voltage regulator proportional gain (Kpa). Typical Value = 40. Default: nullptr */ - CIMPP::ExcST7BOELselectorKind oelin; /* OEL input selector (OELin). Typical Value = noOELinput. Default: 0 */ - CIMPP::Seconds tb; /* Regulator lag time constant (Tb). Typical Value = 1. Default: nullptr */ - CIMPP::Seconds tc; /* Regulator lead time constant (Tc). Typical Value = 1. Default: nullptr */ - CIMPP::Seconds tf; /* Excitation control system stabilizer time constant (Tf). Typical Value = 1. Default: nullptr */ - CIMPP::Seconds tg; /* Feedback time constant of inner loop field voltage regulator (Tg). Typical Value = 1. Default: nullptr */ - CIMPP::Seconds tia; /* Feedback time constant (Tia). Typical Value = 3. Default: nullptr */ - CIMPP::Seconds ts; /* Rectifier firing time constant (Ts). Typical Value = 0. Default: nullptr */ - CIMPP::ExcST7BUELselectorKind uelin; /* UEL input selector (UELin). Typical Value = noUELinput. Default: 0 */ - CIMPP::PU vmax; /* Maximum voltage reference signal (Vmax). Typical Value = 1.1. Default: nullptr */ - CIMPP::PU vmin; /* Minimum voltage reference signal (Vmin). Typical Value = 0.9. Default: nullptr */ - CIMPP::PU vrmax; /* Maximum voltage regulator output (Vrmax). Typical Value = 5. Default: nullptr */ - CIMPP::PU vrmin; /* Minimum voltage regulator output (Vrmin). Typical Value = -4.5. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ExcST7B(); - virtual ~ExcST7B(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ExcST7B_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ExcST7BOELselectorKind.cpp b/CGMES_2.4.13_18DEC2013/ExcST7BOELselectorKind.cpp deleted file mode 100644 index c0dac0ada..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcST7BOELselectorKind.cpp +++ /dev/null @@ -1,47 +0,0 @@ -#include -#include -#include "ExcST7BOELselectorKind.hpp" - -using namespace CIMPP; - -namespace CIMPP { - std::istream& operator>>(std::istream& lop, CIMPP::ExcST7BOELselectorKind& rop) - { - std::string EnumSymbol; - lop >> EnumSymbol; - - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "ExcST7BOELselectorKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "noOELinput") - { - rop = ExcST7BOELselectorKind::noOELinput; - return lop; - } - if(EnumSymbol == "addVref") - { - rop = ExcST7BOELselectorKind::addVref; - return lop; - } - if(EnumSymbol == "inputLVgate") - { - rop = ExcST7BOELselectorKind::inputLVgate; - return lop; - } - if(EnumSymbol == "outputLVgate") - { - rop = ExcST7BOELselectorKind::outputLVgate; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; - } -} - diff --git a/CGMES_2.4.13_18DEC2013/ExcST7BOELselectorKind.hpp b/CGMES_2.4.13_18DEC2013/ExcST7BOELselectorKind.hpp deleted file mode 100644 index 24b2f3c6f..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcST7BOELselectorKind.hpp +++ /dev/null @@ -1,29 +0,0 @@ -#ifndef ExcST7BOELselectorKind_H -#define ExcST7BOELselectorKind_H - -namespace CIMPP { - /* - Type of connection for the OEL input used for static excitation systems type 7B. - */ - enum class ExcST7BOELselectorKind - { - /** - * No OEL input is used. - */ - noOELinput, - /** - * The signal is added to Vref. - */ - addVref, - /** - * The signal is connected in the input of the LV gate. - */ - inputLVgate, - /** - * The signal is connected in the output of the LV gate. - */ - outputLVgate, - }; - std::istream& operator>>(std::istream& lop, CIMPP::ExcST7BOELselectorKind& rop); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ExcST7BUELselectorKind.cpp b/CGMES_2.4.13_18DEC2013/ExcST7BUELselectorKind.cpp deleted file mode 100644 index a49cd137b..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcST7BUELselectorKind.cpp +++ /dev/null @@ -1,47 +0,0 @@ -#include -#include -#include "ExcST7BUELselectorKind.hpp" - -using namespace CIMPP; - -namespace CIMPP { - std::istream& operator>>(std::istream& lop, CIMPP::ExcST7BUELselectorKind& rop) - { - std::string EnumSymbol; - lop >> EnumSymbol; - - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "ExcST7BUELselectorKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "noUELinput") - { - rop = ExcST7BUELselectorKind::noUELinput; - return lop; - } - if(EnumSymbol == "addVref") - { - rop = ExcST7BUELselectorKind::addVref; - return lop; - } - if(EnumSymbol == "inputHVgate") - { - rop = ExcST7BUELselectorKind::inputHVgate; - return lop; - } - if(EnumSymbol == "outputHVgate") - { - rop = ExcST7BUELselectorKind::outputHVgate; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; - } -} - diff --git a/CGMES_2.4.13_18DEC2013/ExcST7BUELselectorKind.hpp b/CGMES_2.4.13_18DEC2013/ExcST7BUELselectorKind.hpp deleted file mode 100644 index a00014985..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcST7BUELselectorKind.hpp +++ /dev/null @@ -1,29 +0,0 @@ -#ifndef ExcST7BUELselectorKind_H -#define ExcST7BUELselectorKind_H - -namespace CIMPP { - /* - Type of connection for the UEL input used for static excitation systems type 7B. - */ - enum class ExcST7BUELselectorKind - { - /** - * No UEL input is used. - */ - noUELinput, - /** - * The signal is added to Vref. - */ - addVref, - /** - * The signal is connected in the input of the HV gate. - */ - inputHVgate, - /** - * The signal is connected in the output of the HV gate. - */ - outputHVgate, - }; - std::istream& operator>>(std::istream& lop, CIMPP::ExcST7BUELselectorKind& rop); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ExcitationSystemDynamics.cpp b/CGMES_2.4.13_18DEC2013/ExcitationSystemDynamics.cpp deleted file mode 100644 index 9abe66f1b..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcitationSystemDynamics.cpp +++ /dev/null @@ -1,138 +0,0 @@ -#include -#include "DynamicsFunctionBlock.hpp" -#include "ExcitationSystemDynamics.hpp" - -#include "SynchronousMachineDynamics.hpp" -#include "PowerSystemStabilizerDynamics.hpp" -#include "PFVArControllerType1Dynamics.hpp" -#include "VoltageCompensatorDynamics.hpp" -#include "DiscontinuousExcitationControlDynamics.hpp" -#include "UnderexcitationLimiterDynamics.hpp" -#include "PFVArControllerType2Dynamics.hpp" -#include "OverexcitationLimiterDynamics.hpp" - -using namespace CIMPP; - -ExcitationSystemDynamics::ExcitationSystemDynamics(): SynchronousMachineDynamics(nullptr), PowerSystemStabilizerDynamics(nullptr), PFVArControllerType1Dynamics(nullptr), VoltageCompensatorDynamics(nullptr), DiscontinuousExcitationControlDynamics(nullptr), UnderexcitationLimiterDynamics(nullptr), PFVArControllerType2Dynamics(nullptr), OverexcitationLimiterDynamics(nullptr) {}; - -ExcitationSystemDynamics::~ExcitationSystemDynamics() {}; - - -bool assign_SynchronousMachineDynamics_ExcitationSystemDynamics(BaseClass*, BaseClass*); -bool assign_ExcitationSystemDynamics_SynchronousMachineDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ExcitationSystemDynamics* element = dynamic_cast(BaseClass_ptr1)) { - element->SynchronousMachineDynamics = dynamic_cast(BaseClass_ptr2); - if(element->SynchronousMachineDynamics != nullptr) - return assign_SynchronousMachineDynamics_ExcitationSystemDynamics(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_ExcitationSystemDynamics_PowerSystemStabilizerDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ExcitationSystemDynamics* element = dynamic_cast(BaseClass_ptr1)) { - element->PowerSystemStabilizerDynamics = dynamic_cast(BaseClass_ptr2); - if(element->PowerSystemStabilizerDynamics != nullptr) - return true; - } - return false; -} - -bool assign_ExcitationSystemDynamics_PFVArControllerType1Dynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ExcitationSystemDynamics* element = dynamic_cast(BaseClass_ptr1)) { - element->PFVArControllerType1Dynamics = dynamic_cast(BaseClass_ptr2); - if(element->PFVArControllerType1Dynamics != nullptr) - return true; - } - return false; -} - -bool assign_ExcitationSystemDynamics_VoltageCompensatorDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ExcitationSystemDynamics* element = dynamic_cast(BaseClass_ptr1)) { - element->VoltageCompensatorDynamics = dynamic_cast(BaseClass_ptr2); - if(element->VoltageCompensatorDynamics != nullptr) - return true; - } - return false; -} - -bool assign_ExcitationSystemDynamics_DiscontinuousExcitationControlDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ExcitationSystemDynamics* element = dynamic_cast(BaseClass_ptr1)) { - element->DiscontinuousExcitationControlDynamics = dynamic_cast(BaseClass_ptr2); - if(element->DiscontinuousExcitationControlDynamics != nullptr) - return true; - } - return false; -} - -bool assign_ExcitationSystemDynamics_UnderexcitationLimiterDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ExcitationSystemDynamics* element = dynamic_cast(BaseClass_ptr1)) { - element->UnderexcitationLimiterDynamics = dynamic_cast(BaseClass_ptr2); - if(element->UnderexcitationLimiterDynamics != nullptr) - return true; - } - return false; -} - -bool assign_ExcitationSystemDynamics_PFVArControllerType2Dynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ExcitationSystemDynamics* element = dynamic_cast(BaseClass_ptr1)) { - element->PFVArControllerType2Dynamics = dynamic_cast(BaseClass_ptr2); - if(element->PFVArControllerType2Dynamics != nullptr) - return true; - } - return false; -} - -bool assign_ExcitationSystemDynamics_OverexcitationLimiterDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ExcitationSystemDynamics* element = dynamic_cast(BaseClass_ptr1)) { - element->OverexcitationLimiterDynamics = dynamic_cast(BaseClass_ptr2); - if(element->OverexcitationLimiterDynamics != nullptr) - return true; - } - return false; -} - - - - - - - - - - -namespace CIMPP { - BaseClass* ExcitationSystemDynamics_factory() { - return new ExcitationSystemDynamics; - } -} - -void ExcitationSystemDynamics::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ExcitationSystemDynamics"), &ExcitationSystemDynamics_factory)); -} - -void ExcitationSystemDynamics::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void ExcitationSystemDynamics::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ExcitationSystemDynamics.SynchronousMachineDynamics"), &assign_ExcitationSystemDynamics_SynchronousMachineDynamics)); - assign_map.insert(std::make_pair(std::string("cim:ExcitationSystemDynamics.PowerSystemStabilizerDynamics"), &assign_ExcitationSystemDynamics_PowerSystemStabilizerDynamics)); - assign_map.insert(std::make_pair(std::string("cim:ExcitationSystemDynamics.PFVArControllerType1Dynamics"), &assign_ExcitationSystemDynamics_PFVArControllerType1Dynamics)); - assign_map.insert(std::make_pair(std::string("cim:ExcitationSystemDynamics.VoltageCompensatorDynamics"), &assign_ExcitationSystemDynamics_VoltageCompensatorDynamics)); - assign_map.insert(std::make_pair(std::string("cim:ExcitationSystemDynamics.DiscontinuousExcitationControlDynamics"), &assign_ExcitationSystemDynamics_DiscontinuousExcitationControlDynamics)); - assign_map.insert(std::make_pair(std::string("cim:ExcitationSystemDynamics.UnderexcitationLimiterDynamics"), &assign_ExcitationSystemDynamics_UnderexcitationLimiterDynamics)); - assign_map.insert(std::make_pair(std::string("cim:ExcitationSystemDynamics.PFVArControllerType2Dynamics"), &assign_ExcitationSystemDynamics_PFVArControllerType2Dynamics)); - assign_map.insert(std::make_pair(std::string("cim:ExcitationSystemDynamics.OverexcitationLimiterDynamics"), &assign_ExcitationSystemDynamics_OverexcitationLimiterDynamics)); -} - -const char ExcitationSystemDynamics::debugName[] = "ExcitationSystemDynamics"; -const char* ExcitationSystemDynamics::debugString() -{ - return ExcitationSystemDynamics::debugName; -} - -const BaseClassDefiner ExcitationSystemDynamics::declare() -{ - return BaseClassDefiner(ExcitationSystemDynamics::addConstructToMap, ExcitationSystemDynamics::addPrimitiveAssignFnsToMap, ExcitationSystemDynamics::addClassAssignFnsToMap, ExcitationSystemDynamics::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ExcitationSystemDynamics.hpp b/CGMES_2.4.13_18DEC2013/ExcitationSystemDynamics.hpp deleted file mode 100644 index 2a08820cf..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcitationSystemDynamics.hpp +++ /dev/null @@ -1,54 +0,0 @@ -#ifndef ExcitationSystemDynamics_H -#define ExcitationSystemDynamics_H - -#include "DynamicsFunctionBlock.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class SynchronousMachineDynamics; -class PowerSystemStabilizerDynamics; -class PFVArControllerType1Dynamics; -class VoltageCompensatorDynamics; -class DiscontinuousExcitationControlDynamics; -class UnderexcitationLimiterDynamics; -class PFVArControllerType2Dynamics; -class OverexcitationLimiterDynamics; - /* - Excitation system function block whose behavior is described by reference to a standard model - */ - class ExcitationSystemDynamics: public DynamicsFunctionBlock - { - - public: - CIMPP::SynchronousMachineDynamics* SynchronousMachineDynamics; /* Synchronous machine model with which this excitation system model is associated. Default: 0 */ - CIMPP::PowerSystemStabilizerDynamics* PowerSystemStabilizerDynamics; /* Power system stabilizer model associated with this excitation system model. Default: 0 */ - CIMPP::PFVArControllerType1Dynamics* PFVArControllerType1Dynamics; /* Power Factor or VAr controller Type I model associated with this excitation system model. Default: 0 */ - CIMPP::VoltageCompensatorDynamics* VoltageCompensatorDynamics; /* Voltage compensator model associated with this excitation system model. Default: 0 */ - CIMPP::DiscontinuousExcitationControlDynamics* DiscontinuousExcitationControlDynamics; /* Discontinuous excitation control model associated with this excitation system model. Default: 0 */ - CIMPP::UnderexcitationLimiterDynamics* UnderexcitationLimiterDynamics; /* Undrexcitation limiter model associated with this excitation system model. Default: 0 */ - CIMPP::PFVArControllerType2Dynamics* PFVArControllerType2Dynamics; /* Power Factor or VAr controller Type II model associated with this excitation system model. Default: 0 */ - CIMPP::OverexcitationLimiterDynamics* OverexcitationLimiterDynamics; /* Overexcitation limiter model associated with this excitation system model. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ExcitationSystemDynamics(); - virtual ~ExcitationSystemDynamics(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ExcitationSystemDynamics_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ExcitationSystemUserDefined.cpp b/CGMES_2.4.13_18DEC2013/ExcitationSystemUserDefined.cpp deleted file mode 100644 index 43d197da0..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcitationSystemUserDefined.cpp +++ /dev/null @@ -1,69 +0,0 @@ -#include -#include "ExcitationSystemDynamics.hpp" -#include "ExcitationSystemUserDefined.hpp" - -#include "Boolean.hpp" -#include "ProprietaryParameterDynamics.hpp" - -using namespace CIMPP; - -ExcitationSystemUserDefined::ExcitationSystemUserDefined() {}; - -ExcitationSystemUserDefined::~ExcitationSystemUserDefined() {}; - - - -bool assign_ExcitationSystemUserDefined_ProprietaryParameterDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ExcitationSystemUserDefined* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->ProprietaryParameterDynamics.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - -bool assign_ExcitationSystemUserDefined_proprietary(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExcitationSystemUserDefined* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->proprietary; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -namespace CIMPP { - BaseClass* ExcitationSystemUserDefined_factory() { - return new ExcitationSystemUserDefined; - } -} - -void ExcitationSystemUserDefined::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ExcitationSystemUserDefined"), &ExcitationSystemUserDefined_factory)); -} - -void ExcitationSystemUserDefined::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ExcitationSystemUserDefined.proprietary"), &assign_ExcitationSystemUserDefined_proprietary)); - } - -void ExcitationSystemUserDefined::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ExcitationSystemUserDefined.ProprietaryParameterDynamics"), &assign_ExcitationSystemUserDefined_ProprietaryParameterDynamics)); -} - -const char ExcitationSystemUserDefined::debugName[] = "ExcitationSystemUserDefined"; -const char* ExcitationSystemUserDefined::debugString() -{ - return ExcitationSystemUserDefined::debugName; -} - -const BaseClassDefiner ExcitationSystemUserDefined::declare() -{ - return BaseClassDefiner(ExcitationSystemUserDefined::addConstructToMap, ExcitationSystemUserDefined::addPrimitiveAssignFnsToMap, ExcitationSystemUserDefined::addClassAssignFnsToMap, ExcitationSystemUserDefined::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ExcitationSystemUserDefined.hpp b/CGMES_2.4.13_18DEC2013/ExcitationSystemUserDefined.hpp deleted file mode 100644 index 9340f681e..000000000 --- a/CGMES_2.4.13_18DEC2013/ExcitationSystemUserDefined.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef ExcitationSystemUserDefined_H -#define ExcitationSystemUserDefined_H - -#include "ExcitationSystemDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Boolean.hpp" - -namespace CIMPP { - - -class ProprietaryParameterDynamics; - /* - Excitation system function block whose dynamic behaviour is described by - */ - class ExcitationSystemUserDefined: public ExcitationSystemDynamics - { - - public: - CIMPP::Boolean proprietary; /* Behaviour is based on proprietary model as opposed to detailed model. true = user-defined model is proprietary with behaviour mutually understood by sending and receiving applications and parameters passed as general attributes false = user-defined model is explicitly defined in terms of control blocks and their input and output signals. Default: false */ - std::list ProprietaryParameterDynamics; /* Parameter of this proprietary user-defined model. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ExcitationSystemUserDefined(); - virtual ~ExcitationSystemUserDefined(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ExcitationSystemUserDefined_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ExternalNetworkInjection.cpp b/CGMES_2.4.13_18DEC2013/ExternalNetworkInjection.cpp deleted file mode 100644 index 0ecb14743..000000000 --- a/CGMES_2.4.13_18DEC2013/ExternalNetworkInjection.cpp +++ /dev/null @@ -1,308 +0,0 @@ -#include -#include "RegulatingCondEq.hpp" -#include "ExternalNetworkInjection.hpp" - -#include "Integer.hpp" -#include "ActivePower.hpp" -#include "ReactivePower.hpp" -#include "ActivePowerPerFrequency.hpp" -#include "Boolean.hpp" -#include "CurrentFlow.hpp" -#include "ActivePower.hpp" -#include "ReactivePower.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "CurrentFlow.hpp" -#include "ActivePower.hpp" -#include "ReactivePower.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -ExternalNetworkInjection::ExternalNetworkInjection(): governorSCD(nullptr) {}; - -ExternalNetworkInjection::~ExternalNetworkInjection() {}; - - - - - -bool assign_ExternalNetworkInjection_governorSCD(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ExternalNetworkInjection* element = dynamic_cast(BaseClass_ptr1)) { - element->governorSCD = dynamic_cast(BaseClass_ptr2); - if(element->governorSCD != nullptr) - return true; - } - return false; -} - - - - - - - - - - - - - - - - -bool assign_ExternalNetworkInjection_referencePriority(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExternalNetworkInjection* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->referencePriority; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExternalNetworkInjection_p(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExternalNetworkInjection* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->p; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExternalNetworkInjection_q(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExternalNetworkInjection* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->q; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -bool assign_ExternalNetworkInjection_ikSecond(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExternalNetworkInjection* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ikSecond; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExternalNetworkInjection_maxInitialSymShCCurrent(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExternalNetworkInjection* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->maxInitialSymShCCurrent; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExternalNetworkInjection_maxP(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExternalNetworkInjection* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->maxP; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExternalNetworkInjection_maxQ(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExternalNetworkInjection* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->maxQ; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExternalNetworkInjection_maxR0ToX0Ratio(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExternalNetworkInjection* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->maxR0ToX0Ratio; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExternalNetworkInjection_maxR1ToX1Ratio(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExternalNetworkInjection* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->maxR1ToX1Ratio; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExternalNetworkInjection_maxZ0ToZ1Ratio(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExternalNetworkInjection* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->maxZ0ToZ1Ratio; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExternalNetworkInjection_minInitialSymShCCurrent(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExternalNetworkInjection* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->minInitialSymShCCurrent; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExternalNetworkInjection_minP(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExternalNetworkInjection* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->minP; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExternalNetworkInjection_minQ(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExternalNetworkInjection* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->minQ; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExternalNetworkInjection_minR0ToX0Ratio(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExternalNetworkInjection* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->minR0ToX0Ratio; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExternalNetworkInjection_minR1ToX1Ratio(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExternalNetworkInjection* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->minR1ToX1Ratio; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExternalNetworkInjection_minZ0ToZ1Ratio(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExternalNetworkInjection* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->minZ0ToZ1Ratio; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ExternalNetworkInjection_voltageFactor(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ExternalNetworkInjection* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->voltageFactor; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ExternalNetworkInjection_factory() { - return new ExternalNetworkInjection; - } -} - -void ExternalNetworkInjection::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ExternalNetworkInjection"), &ExternalNetworkInjection_factory)); -} - -void ExternalNetworkInjection::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ExternalNetworkInjection.referencePriority"), &assign_ExternalNetworkInjection_referencePriority)); - assign_map.insert(std::make_pair(std::string("cim:ExternalNetworkInjection.p"), &assign_ExternalNetworkInjection_p)); - assign_map.insert(std::make_pair(std::string("cim:ExternalNetworkInjection.q"), &assign_ExternalNetworkInjection_q)); - assign_map.insert(std::make_pair(std::string("cim:ExternalNetworkInjection.ikSecond"), &assign_ExternalNetworkInjection_ikSecond)); - assign_map.insert(std::make_pair(std::string("cim:ExternalNetworkInjection.maxInitialSymShCCurrent"), &assign_ExternalNetworkInjection_maxInitialSymShCCurrent)); - assign_map.insert(std::make_pair(std::string("cim:ExternalNetworkInjection.maxP"), &assign_ExternalNetworkInjection_maxP)); - assign_map.insert(std::make_pair(std::string("cim:ExternalNetworkInjection.maxQ"), &assign_ExternalNetworkInjection_maxQ)); - assign_map.insert(std::make_pair(std::string("cim:ExternalNetworkInjection.maxR0ToX0Ratio"), &assign_ExternalNetworkInjection_maxR0ToX0Ratio)); - assign_map.insert(std::make_pair(std::string("cim:ExternalNetworkInjection.maxR1ToX1Ratio"), &assign_ExternalNetworkInjection_maxR1ToX1Ratio)); - assign_map.insert(std::make_pair(std::string("cim:ExternalNetworkInjection.maxZ0ToZ1Ratio"), &assign_ExternalNetworkInjection_maxZ0ToZ1Ratio)); - assign_map.insert(std::make_pair(std::string("cim:ExternalNetworkInjection.minInitialSymShCCurrent"), &assign_ExternalNetworkInjection_minInitialSymShCCurrent)); - assign_map.insert(std::make_pair(std::string("cim:ExternalNetworkInjection.minP"), &assign_ExternalNetworkInjection_minP)); - assign_map.insert(std::make_pair(std::string("cim:ExternalNetworkInjection.minQ"), &assign_ExternalNetworkInjection_minQ)); - assign_map.insert(std::make_pair(std::string("cim:ExternalNetworkInjection.minR0ToX0Ratio"), &assign_ExternalNetworkInjection_minR0ToX0Ratio)); - assign_map.insert(std::make_pair(std::string("cim:ExternalNetworkInjection.minR1ToX1Ratio"), &assign_ExternalNetworkInjection_minR1ToX1Ratio)); - assign_map.insert(std::make_pair(std::string("cim:ExternalNetworkInjection.minZ0ToZ1Ratio"), &assign_ExternalNetworkInjection_minZ0ToZ1Ratio)); - assign_map.insert(std::make_pair(std::string("cim:ExternalNetworkInjection.voltageFactor"), &assign_ExternalNetworkInjection_voltageFactor)); -} - -void ExternalNetworkInjection::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ExternalNetworkInjection.governorSCD"), &assign_ExternalNetworkInjection_governorSCD)); - } - -const char ExternalNetworkInjection::debugName[] = "ExternalNetworkInjection"; -const char* ExternalNetworkInjection::debugString() -{ - return ExternalNetworkInjection::debugName; -} - -const BaseClassDefiner ExternalNetworkInjection::declare() -{ - return BaseClassDefiner(ExternalNetworkInjection::addConstructToMap, ExternalNetworkInjection::addPrimitiveAssignFnsToMap, ExternalNetworkInjection::addClassAssignFnsToMap, ExternalNetworkInjection::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ExternalNetworkInjection.hpp b/CGMES_2.4.13_18DEC2013/ExternalNetworkInjection.hpp deleted file mode 100644 index 764bf7d5c..000000000 --- a/CGMES_2.4.13_18DEC2013/ExternalNetworkInjection.hpp +++ /dev/null @@ -1,64 +0,0 @@ -#ifndef ExternalNetworkInjection_H -#define ExternalNetworkInjection_H - -#include "RegulatingCondEq.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Integer.hpp" -#include "ActivePower.hpp" -#include "ReactivePower.hpp" -#include "Boolean.hpp" -#include "CurrentFlow.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" - -namespace CIMPP { - - -class ActivePowerPerFrequency; - /* - This class represents external network and it is used for IEC 60909 calculations. - */ - class ExternalNetworkInjection: public RegulatingCondEq - { - - public: - CIMPP::Integer referencePriority; /* Priority of unit for use as powerflow voltage phase angle reference bus selection. 0 = don t care (default) 1 = highest priority. 2 is less than 1 and so on. Default: 0 */ - CIMPP::ActivePower p; /* Active power injection. Load sign convention is used, i.e. positive sign means flow out from a node. Starting value for steady state solutions. Default: nullptr */ - CIMPP::ReactivePower q; /* Reactive power injection. Load sign convention is used, i.e. positive sign means flow out from a node. Starting value for steady state solutions. Default: nullptr */ - CIMPP::ActivePowerPerFrequency* governorSCD; /* Power Frequency Bias. This is the change in power injection divided by the change in frequency and negated. A positive value of the power frequency bias provides additional power injection upon a drop in frequency. Default: nullptr */ - CIMPP::Boolean ikSecond; /* Indicates whether initial symmetrical short-circuit current and power have been calculated according to IEC (Ik`). Default: false */ - CIMPP::CurrentFlow maxInitialSymShCCurrent; /* Maximum initial symmetrical short-circuit currents (Ik` max) in A (Ik` = Sk`/(SQRT(3) Un)). Used for short circuit data exchange according to IEC 60909 Default: nullptr */ - CIMPP::ActivePower maxP; /* Maximum active power of the injection. Default: nullptr */ - CIMPP::ReactivePower maxQ; /* Not for short circuit modelling; It is used for modelling of infeed for load flow exchange. If maxQ and minQ are not used ReactiveCapabilityCurve can be used Default: nullptr */ - CIMPP::Simple_Float maxR0ToX0Ratio; /* Maximum ratio of zero sequence resistance of Network Feeder to its zero sequence reactance (R(0)/X(0) max). Used for short circuit data exchange according to IEC 60909 Default: nullptr */ - CIMPP::Simple_Float maxR1ToX1Ratio; /* Maximum ratio of positive sequence resistance of Network Feeder to its positive sequence reactance (R(1)/X(1) max). Used for short circuit data exchange according to IEC 60909 Default: nullptr */ - CIMPP::Simple_Float maxZ0ToZ1Ratio; /* Maximum ratio of zero sequence impedance to its positive sequence impedance (Z(0)/Z(1) max). Used for short circuit data exchange according to IEC 60909 Default: nullptr */ - CIMPP::CurrentFlow minInitialSymShCCurrent; /* Minimum initial symmetrical short-circuit currents (Ik` min) in A (Ik` = Sk`/(SQRT(3) Un)). Used for short circuit data exchange according to IEC 60909 Default: nullptr */ - CIMPP::ActivePower minP; /* Minimum active power of the injection. Default: nullptr */ - CIMPP::ReactivePower minQ; /* Not for short circuit modelling; It is used for modelling of infeed for load flow exchange. If maxQ and minQ are not used ReactiveCapabilityCurve can be used Default: nullptr */ - CIMPP::Simple_Float minR0ToX0Ratio; /* Indicates whether initial symmetrical short-circuit current and power have been calculated according to IEC (Ik`). Used for short circuit data exchange according to IEC 6090 Default: nullptr */ - CIMPP::Simple_Float minR1ToX1Ratio; /* Minimum ratio of positive sequence resistance of Network Feeder to its positive sequence reactance (R(1)/X(1) min). Used for short circuit data exchange according to IEC 60909 Default: nullptr */ - CIMPP::Simple_Float minZ0ToZ1Ratio; /* Minimum ratio of zero sequence impedance to its positive sequence impedance (Z(0)/Z(1) min). Used for short circuit data exchange according to IEC 60909 Default: nullptr */ - CIMPP::PU voltageFactor; /* Voltage factor in pu, which was used to calculate short-circuit current Ik` and power Sk`. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ExternalNetworkInjection(); - virtual ~ExternalNetworkInjection(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ExternalNetworkInjection_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/Float.cpp b/CGMES_2.4.13_18DEC2013/Float.cpp deleted file mode 100644 index 4daa76621..000000000 --- a/CGMES_2.4.13_18DEC2013/Float.cpp +++ /dev/null @@ -1,67 +0,0 @@ -#include "Float.hpp" -#include "CIMExceptions.hpp" - -using namespace CIMPP; - -Float::Float(){} - -Float::~Float(){} - -Float::Float(long double value) : value(value), initialized(true) {} - -void Float::addConstructToMap(std::unordered_map& factory_map) {} - -void Float::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) {} - -void Float::addClassAssignFnsToMap(std::unordered_map& assign_map) {} - -const char Float::debugName[] = "Float"; -const char* Float::debugString() { - return Float::debugName; -} - -const BaseClassDefiner Float::declare() { - return BaseClassDefiner(Float::addConstructToMap, Float::addPrimitiveAssignFnsToMap, Float::addClassAssignFnsToMap, Float::debugName); -} - -Float& Float::operator=(long double &rop) { - value = rop; - initialized = true; - return *this; -} - -Float& Float::operator-=(const Float& rhs) { - value -= rhs.value; - return *this; -} - -Float& Float::operator*=(const Float& rhs) { - value *= rhs.value; - return *this; -} - -Float& Float::operator/=(const Float& rhs) { - value /= rhs.value; - return *this; -} - -Float& Float::operator+=(const Float& rhs) { - value += rhs.value; - return *this; -} - -Float::operator long double() { - if(!initialized) - { - throw new ReadingUninitializedField(); - } - return value; -} - -std::istream& operator>>(std::istream& lop, Float& rop) { - std::string tmp; - lop >> tmp; - rop.value = stold(tmp); - rop.initialized = true; - return lop; -} diff --git a/CGMES_2.4.13_18DEC2013/Float.hpp b/CGMES_2.4.13_18DEC2013/Float.hpp deleted file mode 100644 index ab30f43d6..000000000 --- a/CGMES_2.4.13_18DEC2013/Float.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef FLOAT_H -#define FLOAT_H - -#include -#include -#include - -#include "BaseClass.hpp" - -namespace CIMPP { - - /** - * A floating point number. The range is unspecified and not limited. - */ - class Float : public BaseClass - { - - public: - Float(); - virtual ~Float(); - Float(long double value); - static const BaseClassDefiner declare(); - Float& operator=(long double &rop); - Float& operator+=(const Float& rhs); - Float& operator-=(const Float& rhs); - Float& operator*=(const Float& rhs); - Float& operator/=(const Float& rhs); - friend std::istream& operator>>(std::istream& lop, Float& rop); - operator long double(); - - long double value = 0.0; - bool initialized = false; - - static const char debugName[]; - virtual const char* debugString(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - }; -} -#endif // FLOAT_H diff --git a/CGMES_2.4.13_18DEC2013/Folders.hpp b/CGMES_2.4.13_18DEC2013/Folders.hpp deleted file mode 100644 index 275606db6..000000000 --- a/CGMES_2.4.13_18DEC2013/Folders.hpp +++ /dev/null @@ -1 +0,0 @@ -#include "IEC61970.hpp" diff --git a/CGMES_2.4.13_18DEC2013/FossilFuel.cpp b/CGMES_2.4.13_18DEC2013/FossilFuel.cpp deleted file mode 100644 index de2cd0ae7..000000000 --- a/CGMES_2.4.13_18DEC2013/FossilFuel.cpp +++ /dev/null @@ -1,69 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "FossilFuel.hpp" - -#include "FuelType.hpp" -#include "ThermalGeneratingUnit.hpp" - -using namespace CIMPP; - -FossilFuel::FossilFuel(): ThermalGeneratingUnit(nullptr) {}; - -FossilFuel::~FossilFuel() {}; - - - -bool assign_ThermalGeneratingUnit_FossilFuels(BaseClass*, BaseClass*); -bool assign_FossilFuel_ThermalGeneratingUnit(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(FossilFuel* element = dynamic_cast(BaseClass_ptr1)) { - element->ThermalGeneratingUnit = dynamic_cast(BaseClass_ptr2); - if(element->ThermalGeneratingUnit != nullptr) - return assign_ThermalGeneratingUnit_FossilFuels(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - -bool assign_FossilFuel_fossilFuelType(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(FossilFuel* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->fossilFuelType; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -namespace CIMPP { - BaseClass* FossilFuel_factory() { - return new FossilFuel; - } -} - -void FossilFuel::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:FossilFuel"), &FossilFuel_factory)); -} - -void FossilFuel::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:FossilFuel.fossilFuelType"), &assign_FossilFuel_fossilFuelType)); - } - -void FossilFuel::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:FossilFuel.ThermalGeneratingUnit"), &assign_FossilFuel_ThermalGeneratingUnit)); -} - -const char FossilFuel::debugName[] = "FossilFuel"; -const char* FossilFuel::debugString() -{ - return FossilFuel::debugName; -} - -const BaseClassDefiner FossilFuel::declare() -{ - return BaseClassDefiner(FossilFuel::addConstructToMap, FossilFuel::addPrimitiveAssignFnsToMap, FossilFuel::addClassAssignFnsToMap, FossilFuel::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/FossilFuel.hpp b/CGMES_2.4.13_18DEC2013/FossilFuel.hpp deleted file mode 100644 index b11d3b781..000000000 --- a/CGMES_2.4.13_18DEC2013/FossilFuel.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef FossilFuel_H -#define FossilFuel_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "FuelType.hpp" - -namespace CIMPP { - - -class ThermalGeneratingUnit; - /* - The fossil fuel consumed by the non-nuclear thermal generating unit. For example, coal, oil, gas, etc. This a the specific fuels that the generating unit can consume. - */ - class FossilFuel: public IdentifiedObject - { - - public: - CIMPP::FuelType fossilFuelType; /* The type of fossil fuel, such as coal, oil, or gas. Default: 0 */ - CIMPP::ThermalGeneratingUnit* ThermalGeneratingUnit; /* A thermal generating unit may have one or more fossil fuels. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - FossilFuel(); - virtual ~FossilFuel(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* FossilFuel_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/FrancisGovernorControlKind.cpp b/CGMES_2.4.13_18DEC2013/FrancisGovernorControlKind.cpp deleted file mode 100644 index 4a69509a8..000000000 --- a/CGMES_2.4.13_18DEC2013/FrancisGovernorControlKind.cpp +++ /dev/null @@ -1,42 +0,0 @@ -#include -#include -#include "FrancisGovernorControlKind.hpp" - -using namespace CIMPP; - -namespace CIMPP { - std::istream& operator>>(std::istream& lop, CIMPP::FrancisGovernorControlKind& rop) - { - std::string EnumSymbol; - lop >> EnumSymbol; - - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "FrancisGovernorControlKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "mechanicHydrolicTachoAccelerator") - { - rop = FrancisGovernorControlKind::mechanicHydrolicTachoAccelerator; - return lop; - } - if(EnumSymbol == "mechanicHydraulicTransientFeedback") - { - rop = FrancisGovernorControlKind::mechanicHydraulicTransientFeedback; - return lop; - } - if(EnumSymbol == "electromechanicalElectrohydraulic") - { - rop = FrancisGovernorControlKind::electromechanicalElectrohydraulic; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; - } -} - diff --git a/CGMES_2.4.13_18DEC2013/FrancisGovernorControlKind.hpp b/CGMES_2.4.13_18DEC2013/FrancisGovernorControlKind.hpp deleted file mode 100644 index 64f948396..000000000 --- a/CGMES_2.4.13_18DEC2013/FrancisGovernorControlKind.hpp +++ /dev/null @@ -1,25 +0,0 @@ -#ifndef FrancisGovernorControlKind_H -#define FrancisGovernorControlKind_H - -namespace CIMPP { - /* - Governor control flag for Francis hydro model. - */ - enum class FrancisGovernorControlKind - { - /** - * Mechanic-hydraulic regulator with tacho-accelerometer (Cflag = 1). - */ - mechanicHydrolicTachoAccelerator, - /** - * Mechanic-hydraulic regulator with transient feedback (Cflag=2). - */ - mechanicHydraulicTransientFeedback, - /** - * Electromechanical and electrohydraulic regulator (Cflag=3). - */ - electromechanicalElectrohydraulic, - }; - std::istream& operator>>(std::istream& lop, CIMPP::FrancisGovernorControlKind& rop); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/Frequency.cpp b/CGMES_2.4.13_18DEC2013/Frequency.cpp deleted file mode 100644 index 438b4caff..000000000 --- a/CGMES_2.4.13_18DEC2013/Frequency.cpp +++ /dev/null @@ -1,70 +0,0 @@ -#include "Frequency.hpp" -#include "../src/CIMExceptions.hpp" - -using namespace CIMPP; - -Frequency::Frequency() {} - -Frequency::~Frequency(){} - -Frequency::Frequency(long double value) : value(value), initialized(true) {} - -void Frequency::addConstructToMap(std::unordered_map& factory_map) {} - -void Frequency::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) {} - -void Frequency::addClassAssignFnsToMap(std::unordered_map& assign_map) {} - -const char Frequency::debugName[] = "Frequency"; -const char* Frequency::debugString() { - return Frequency::debugName; -} - - -const BaseClassDefiner Frequency::declare() { - return BaseClassDefiner(Frequency::addConstructToMap, Frequency::addPrimitiveAssignFnsToMap, Frequency::addClassAssignFnsToMap, Frequency::debugName); -} - -namespace CIMPP { - Frequency& Frequency::operator=(long double &rop) { - value = rop; - initialized = true; - return *this; - } - - Frequency& Frequency::operator-=(const Frequency& rhs) { - value -= rhs.value; - return *this; - } - - Frequency& Frequency::operator*=(const Frequency& rhs) { - value *= rhs.value; - return *this; - } - - Frequency& Frequency::operator/=(const Frequency& rhs) { - value /= rhs.value; - return *this; - } - - Frequency& Frequency::operator+=(const Frequency& rhs) { - value += rhs.value; - return *this; - } - - Frequency::operator long double() { - if(!initialized) - { - throw new ReadingUninitializedField(); - } - return value; - } - - std::istream& operator>>(std::istream& lop, Frequency& rop) { - std::string tmp; - lop >> tmp; - rop.value = stold(tmp); - rop.initialized = true; - return lop; - } -} diff --git a/CGMES_2.4.13_18DEC2013/Frequency.hpp b/CGMES_2.4.13_18DEC2013/Frequency.hpp deleted file mode 100644 index 87cdc33c2..000000000 --- a/CGMES_2.4.13_18DEC2013/Frequency.hpp +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef Frequency_H -#define Frequency_H - -#include -#include - -#include "BaseClass.hpp" - -namespace CIMPP -{ - class Frequency : public BaseClass - { - - public: - Frequency(); - virtual ~Frequency(); - Frequency(long double value); - static const BaseClassDefiner declare(); - Frequency& operator=(long double &rop); - Frequency& operator+=(const Frequency& rhs); - Frequency& operator-=(const Frequency& rhs); - Frequency& operator*=(const Frequency& rhs); - Frequency& operator/=(const Frequency& rhs); - friend std::istream& operator>>(std::istream& lop, Frequency& rop); - operator long double(); - - long double value = 0.0; - bool initialized = false; - - static const char debugName[]; - virtual const char* debugString(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - }; -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/FuelType.cpp b/CGMES_2.4.13_18DEC2013/FuelType.cpp deleted file mode 100644 index 88f0d85ff..000000000 --- a/CGMES_2.4.13_18DEC2013/FuelType.cpp +++ /dev/null @@ -1,57 +0,0 @@ -#include -#include -#include "FuelType.hpp" - -using namespace CIMPP; - -namespace CIMPP { - std::istream& operator>>(std::istream& lop, CIMPP::FuelType& rop) - { - std::string EnumSymbol; - lop >> EnumSymbol; - - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "FuelType") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "coal") - { - rop = FuelType::coal; - return lop; - } - if(EnumSymbol == "oil") - { - rop = FuelType::oil; - return lop; - } - if(EnumSymbol == "gas") - { - rop = FuelType::gas; - return lop; - } - if(EnumSymbol == "lignite") - { - rop = FuelType::lignite; - return lop; - } - if(EnumSymbol == "hardCoal") - { - rop = FuelType::hardCoal; - return lop; - } - if(EnumSymbol == "oilShale") - { - rop = FuelType::oilShale; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; - } -} - diff --git a/CGMES_2.4.13_18DEC2013/FuelType.hpp b/CGMES_2.4.13_18DEC2013/FuelType.hpp deleted file mode 100644 index e16c3d7f0..000000000 --- a/CGMES_2.4.13_18DEC2013/FuelType.hpp +++ /dev/null @@ -1,37 +0,0 @@ -#ifndef FuelType_H -#define FuelType_H - -namespace CIMPP { - /* - Type of fuel. - */ - enum class FuelType - { - /** - * Generic coal, not including lignite type. - */ - coal, - /** - * Oil. - */ - oil, - /** - * Natural gas. - */ - gas, - /** - * The fuel is lignite coal. Note that this is a special type of coal, so the other enum of coal is reserved for hard coal types or if the exact type of coal is not known. - */ - lignite, - /** - * Hard coal - */ - hardCoal, - /** - * Oil Shale - */ - oilShale, - }; - std::istream& operator>>(std::istream& lop, CIMPP::FuelType& rop); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/GenICompensationForGenJ.cpp b/CGMES_2.4.13_18DEC2013/GenICompensationForGenJ.cpp deleted file mode 100644 index af0535fe0..000000000 --- a/CGMES_2.4.13_18DEC2013/GenICompensationForGenJ.cpp +++ /dev/null @@ -1,97 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "GenICompensationForGenJ.hpp" - -#include "SynchronousMachineDynamics.hpp" -#include "VCompIEEEType2.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -GenICompensationForGenJ::GenICompensationForGenJ(): SynchronousMachineDynamics(nullptr), VcompIEEEType2(nullptr) {}; - -GenICompensationForGenJ::~GenICompensationForGenJ() {}; - - -bool assign_SynchronousMachineDynamics_GenICompensationForGenJ(BaseClass*, BaseClass*); -bool assign_GenICompensationForGenJ_SynchronousMachineDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(GenICompensationForGenJ* element = dynamic_cast(BaseClass_ptr1)) { - element->SynchronousMachineDynamics = dynamic_cast(BaseClass_ptr2); - if(element->SynchronousMachineDynamics != nullptr) - return assign_SynchronousMachineDynamics_GenICompensationForGenJ(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_VCompIEEEType2_GenICompensationForGenJ(BaseClass*, BaseClass*); -bool assign_GenICompensationForGenJ_VcompIEEEType2(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(GenICompensationForGenJ* element = dynamic_cast(BaseClass_ptr1)) { - element->VcompIEEEType2 = dynamic_cast(BaseClass_ptr2); - if(element->VcompIEEEType2 != nullptr) - return assign_VCompIEEEType2_GenICompensationForGenJ(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - - - - -bool assign_GenICompensationForGenJ_rcij(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GenICompensationForGenJ* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->rcij; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GenICompensationForGenJ_xcij(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GenICompensationForGenJ* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->xcij; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* GenICompensationForGenJ_factory() { - return new GenICompensationForGenJ; - } -} - -void GenICompensationForGenJ::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:GenICompensationForGenJ"), &GenICompensationForGenJ_factory)); -} - -void GenICompensationForGenJ::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:GenICompensationForGenJ.rcij"), &assign_GenICompensationForGenJ_rcij)); - assign_map.insert(std::make_pair(std::string("cim:GenICompensationForGenJ.xcij"), &assign_GenICompensationForGenJ_xcij)); -} - -void GenICompensationForGenJ::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:GenICompensationForGenJ.SynchronousMachineDynamics"), &assign_GenICompensationForGenJ_SynchronousMachineDynamics)); - assign_map.insert(std::make_pair(std::string("cim:GenICompensationForGenJ.VcompIEEEType2"), &assign_GenICompensationForGenJ_VcompIEEEType2)); - } - -const char GenICompensationForGenJ::debugName[] = "GenICompensationForGenJ"; -const char* GenICompensationForGenJ::debugString() -{ - return GenICompensationForGenJ::debugName; -} - -const BaseClassDefiner GenICompensationForGenJ::declare() -{ - return BaseClassDefiner(GenICompensationForGenJ::addConstructToMap, GenICompensationForGenJ::addPrimitiveAssignFnsToMap, GenICompensationForGenJ::addClassAssignFnsToMap, GenICompensationForGenJ::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/GenICompensationForGenJ.hpp b/CGMES_2.4.13_18DEC2013/GenICompensationForGenJ.hpp deleted file mode 100644 index 46d1a5cbf..000000000 --- a/CGMES_2.4.13_18DEC2013/GenICompensationForGenJ.hpp +++ /dev/null @@ -1,45 +0,0 @@ -#ifndef GenICompensationForGenJ_H -#define GenICompensationForGenJ_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" - -namespace CIMPP { - - -class SynchronousMachineDynamics; -class VCompIEEEType2; - /* - This class provides the resistive and reactive components of compensation for the generator associated with the IEEE Type 2 voltage compensator for current flow out of one of the other generators in the interconnection. - */ - class GenICompensationForGenJ: public IdentifiedObject - { - - public: - CIMPP::SynchronousMachineDynamics* SynchronousMachineDynamics; /* Standard synchronous machine out of which current flow is being compensated for. Default: 0 */ - CIMPP::VCompIEEEType2* VcompIEEEType2; /* The standard IEEE Type 2 voltage compensator of this compensation. Default: 0 */ - CIMPP::PU rcij; /* Default: nullptr */ - CIMPP::PU xcij; /* Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - GenICompensationForGenJ(); - virtual ~GenICompensationForGenJ(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* GenICompensationForGenJ_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/GeneratingUnit.cpp b/CGMES_2.4.13_18DEC2013/GeneratingUnit.cpp deleted file mode 100644 index cc2173f37..000000000 --- a/CGMES_2.4.13_18DEC2013/GeneratingUnit.cpp +++ /dev/null @@ -1,320 +0,0 @@ -#include -#include "Equipment.hpp" -#include "GeneratingUnit.hpp" - -#include "Simple_Float.hpp" -#include "GeneratorControlSource.hpp" -#include "PerCent.hpp" -#include "ActivePower.hpp" -#include "Simple_Float.hpp" -#include "ActivePower.hpp" -#include "ActivePower.hpp" -#include "ActivePower.hpp" -#include "ActivePower.hpp" -#include "ActivePower.hpp" -#include "ActivePower.hpp" -#include "ActivePower.hpp" -#include "Simple_Float.hpp" -#include "Money.hpp" -#include "Money.hpp" -#include "PerCent.hpp" -#include "ControlAreaGeneratingUnit.hpp" -#include "RotatingMachine.hpp" -#include "GrossToNetActivePowerCurve.hpp" - -using namespace CIMPP; - -GeneratingUnit::GeneratingUnit() {}; - -GeneratingUnit::~GeneratingUnit() {}; - - - - - - - - - - - - - - - - - - -bool assign_GeneratingUnit_ControlAreaGeneratingUnit(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(GeneratingUnit* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->ControlAreaGeneratingUnit.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_GeneratingUnit_RotatingMachine(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(GeneratingUnit* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->RotatingMachine.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_GeneratingUnit_GrossToNetActivePowerCurves(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(GeneratingUnit* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->GrossToNetActivePowerCurves.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - -bool assign_GeneratingUnit_normalPF(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GeneratingUnit* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->normalPF; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GeneratingUnit_genControlSource(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GeneratingUnit* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->genControlSource; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GeneratingUnit_governorSCD(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GeneratingUnit* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->governorSCD; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GeneratingUnit_initialP(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GeneratingUnit* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->initialP; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GeneratingUnit_longPF(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GeneratingUnit* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->longPF; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GeneratingUnit_maximumAllowableSpinningReserve(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GeneratingUnit* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->maximumAllowableSpinningReserve; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GeneratingUnit_maxOperatingP(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GeneratingUnit* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->maxOperatingP; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GeneratingUnit_minOperatingP(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GeneratingUnit* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->minOperatingP; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GeneratingUnit_nominalP(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GeneratingUnit* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->nominalP; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GeneratingUnit_ratedGrossMaxP(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GeneratingUnit* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ratedGrossMaxP; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GeneratingUnit_ratedGrossMinP(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GeneratingUnit* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ratedGrossMinP; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GeneratingUnit_ratedNetMaxP(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GeneratingUnit* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ratedNetMaxP; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GeneratingUnit_shortPF(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GeneratingUnit* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->shortPF; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GeneratingUnit_startupCost(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GeneratingUnit* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->startupCost; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GeneratingUnit_variableCost(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GeneratingUnit* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->variableCost; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GeneratingUnit_totalEfficiency(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GeneratingUnit* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->totalEfficiency; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - - - -namespace CIMPP { - BaseClass* GeneratingUnit_factory() { - return new GeneratingUnit; - } -} - -void GeneratingUnit::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:GeneratingUnit"), &GeneratingUnit_factory)); -} - -void GeneratingUnit::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:GeneratingUnit.normalPF"), &assign_GeneratingUnit_normalPF)); - assign_map.insert(std::make_pair(std::string("cim:GeneratingUnit.genControlSource"), &assign_GeneratingUnit_genControlSource)); - assign_map.insert(std::make_pair(std::string("cim:GeneratingUnit.governorSCD"), &assign_GeneratingUnit_governorSCD)); - assign_map.insert(std::make_pair(std::string("cim:GeneratingUnit.initialP"), &assign_GeneratingUnit_initialP)); - assign_map.insert(std::make_pair(std::string("cim:GeneratingUnit.longPF"), &assign_GeneratingUnit_longPF)); - assign_map.insert(std::make_pair(std::string("cim:GeneratingUnit.maximumAllowableSpinningReserve"), &assign_GeneratingUnit_maximumAllowableSpinningReserve)); - assign_map.insert(std::make_pair(std::string("cim:GeneratingUnit.maxOperatingP"), &assign_GeneratingUnit_maxOperatingP)); - assign_map.insert(std::make_pair(std::string("cim:GeneratingUnit.minOperatingP"), &assign_GeneratingUnit_minOperatingP)); - assign_map.insert(std::make_pair(std::string("cim:GeneratingUnit.nominalP"), &assign_GeneratingUnit_nominalP)); - assign_map.insert(std::make_pair(std::string("cim:GeneratingUnit.ratedGrossMaxP"), &assign_GeneratingUnit_ratedGrossMaxP)); - assign_map.insert(std::make_pair(std::string("cim:GeneratingUnit.ratedGrossMinP"), &assign_GeneratingUnit_ratedGrossMinP)); - assign_map.insert(std::make_pair(std::string("cim:GeneratingUnit.ratedNetMaxP"), &assign_GeneratingUnit_ratedNetMaxP)); - assign_map.insert(std::make_pair(std::string("cim:GeneratingUnit.shortPF"), &assign_GeneratingUnit_shortPF)); - assign_map.insert(std::make_pair(std::string("cim:GeneratingUnit.startupCost"), &assign_GeneratingUnit_startupCost)); - assign_map.insert(std::make_pair(std::string("cim:GeneratingUnit.variableCost"), &assign_GeneratingUnit_variableCost)); - assign_map.insert(std::make_pair(std::string("cim:GeneratingUnit.totalEfficiency"), &assign_GeneratingUnit_totalEfficiency)); - } - -void GeneratingUnit::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:GeneratingUnit.ControlAreaGeneratingUnit"), &assign_GeneratingUnit_ControlAreaGeneratingUnit)); - assign_map.insert(std::make_pair(std::string("cim:GeneratingUnit.RotatingMachine"), &assign_GeneratingUnit_RotatingMachine)); - assign_map.insert(std::make_pair(std::string("cim:GeneratingUnit.GrossToNetActivePowerCurves"), &assign_GeneratingUnit_GrossToNetActivePowerCurves)); -} - -const char GeneratingUnit::debugName[] = "GeneratingUnit"; -const char* GeneratingUnit::debugString() -{ - return GeneratingUnit::debugName; -} - -const BaseClassDefiner GeneratingUnit::declare() -{ - return BaseClassDefiner(GeneratingUnit::addConstructToMap, GeneratingUnit::addPrimitiveAssignFnsToMap, GeneratingUnit::addClassAssignFnsToMap, GeneratingUnit::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/GeneratingUnit.hpp b/CGMES_2.4.13_18DEC2013/GeneratingUnit.hpp deleted file mode 100644 index c1f45a975..000000000 --- a/CGMES_2.4.13_18DEC2013/GeneratingUnit.hpp +++ /dev/null @@ -1,65 +0,0 @@ -#ifndef GeneratingUnit_H -#define GeneratingUnit_H - -#include "Equipment.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Simple_Float.hpp" -#include "GeneratorControlSource.hpp" -#include "PerCent.hpp" -#include "ActivePower.hpp" -#include "Money.hpp" - -namespace CIMPP { - - -class ControlAreaGeneratingUnit; -class RotatingMachine; -class GrossToNetActivePowerCurve; - /* - A single or set of synchronous machines for converting mechanical power into alternating-current power. For example, individual machines within a set may be defined for scheduling purposes while a single control signal is derived for the set. In this case there would be a GeneratingUnit for each member of the set and an additional GeneratingUnit corresponding to the set. - */ - class GeneratingUnit: public Equipment - { - - public: - CIMPP::Simple_Float normalPF; /* Generating unit economic participation factor. Default: nullptr */ - CIMPP::GeneratorControlSource genControlSource; /* The source of controls for a generating unit. Default: 0 */ - CIMPP::PerCent governorSCD; /* Governor Speed Changer Droop. This is the change in generator power output divided by the change in frequency normalized by the nominal power of the generator and the nominal frequency and expressed in percent and negated. A positive value of speed change droop provides additional generator output upon a drop in frequency. Default: nullptr */ - CIMPP::ActivePower initialP; /* Default initial active power which is used to store a powerflow result for the initial active power for this unit in this network configuration. Default: nullptr */ - CIMPP::Simple_Float longPF; /* Generating unit long term economic participation factor. Default: nullptr */ - CIMPP::ActivePower maximumAllowableSpinningReserve; /* Maximum allowable spinning reserve. Spinning reserve will never be considered greater than this value regardless of the current operating point. Default: nullptr */ - CIMPP::ActivePower maxOperatingP; /* This is the maximum operating active power limit the dispatcher can enter for this unit. Default: nullptr */ - CIMPP::ActivePower minOperatingP; /* This is the minimum operating active power limit the dispatcher can enter for this unit. Default: nullptr */ - CIMPP::ActivePower nominalP; /* The nominal power of the generating unit. Used to give precise meaning to percentage based attributes such as the governor speed change droop (governorSCD attribute). The attribute shall be a positive value equal or less than RotatingMachine.ratedS. Default: nullptr */ - CIMPP::ActivePower ratedGrossMaxP; /* The unit`s gross rated maximum capacity (book value). Default: nullptr */ - CIMPP::ActivePower ratedGrossMinP; /* The gross rated minimum generation level which the unit can safely operate at while delivering power to the transmission grid. Default: nullptr */ - CIMPP::ActivePower ratedNetMaxP; /* The net rated maximum capacity determined by subtracting the auxiliary power used to operate the internal plant machinery from the rated gross maximum capacity. Default: nullptr */ - CIMPP::Simple_Float shortPF; /* Generating unit short term economic participation factor. Default: nullptr */ - CIMPP::Money startupCost; /* The initial startup cost incurred for each start of the GeneratingUnit. Default: nullptr */ - CIMPP::Money variableCost; /* The variable cost component of production per unit of ActivePower. Default: nullptr */ - CIMPP::PerCent totalEfficiency; /* The efficiency of the unit in converting the fuel into electrical energy. Default: nullptr */ - std::list ControlAreaGeneratingUnit; /* ControlArea specifications for this generating unit. Default: 0 */ - std::list RotatingMachine; /* A synchronous machine may operate as a generator and as such becomes a member of a generating unit. Default: 0 */ - std::list GrossToNetActivePowerCurves; /* A generating unit may have a gross active power to net active power curve, describing the losses and auxiliary power requirements of the unit. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - GeneratingUnit(); - virtual ~GeneratingUnit(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* GeneratingUnit_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/GeneratorControlSource.cpp b/CGMES_2.4.13_18DEC2013/GeneratorControlSource.cpp deleted file mode 100644 index 2b7450967..000000000 --- a/CGMES_2.4.13_18DEC2013/GeneratorControlSource.cpp +++ /dev/null @@ -1,47 +0,0 @@ -#include -#include -#include "GeneratorControlSource.hpp" - -using namespace CIMPP; - -namespace CIMPP { - std::istream& operator>>(std::istream& lop, CIMPP::GeneratorControlSource& rop) - { - std::string EnumSymbol; - lop >> EnumSymbol; - - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "GeneratorControlSource") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "unavailable") - { - rop = GeneratorControlSource::unavailable; - return lop; - } - if(EnumSymbol == "offAGC") - { - rop = GeneratorControlSource::offAGC; - return lop; - } - if(EnumSymbol == "onAGC") - { - rop = GeneratorControlSource::onAGC; - return lop; - } - if(EnumSymbol == "plantControl") - { - rop = GeneratorControlSource::plantControl; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; - } -} - diff --git a/CGMES_2.4.13_18DEC2013/GeneratorControlSource.hpp b/CGMES_2.4.13_18DEC2013/GeneratorControlSource.hpp deleted file mode 100644 index 55e1fbf59..000000000 --- a/CGMES_2.4.13_18DEC2013/GeneratorControlSource.hpp +++ /dev/null @@ -1,29 +0,0 @@ -#ifndef GeneratorControlSource_H -#define GeneratorControlSource_H - -namespace CIMPP { - /* - The source of controls for a generating unit. - */ - enum class GeneratorControlSource - { - /** - * Not available. - */ - unavailable, - /** - * Off of automatic generation control (AGC). - */ - offAGC, - /** - * On automatic generation control (AGC). - */ - onAGC, - /** - * Plant is controlling. - */ - plantControl, - }; - std::istream& operator>>(std::istream& lop, CIMPP::GeneratorControlSource& rop); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/GenericNonLinearLoadModelKind.cpp b/CGMES_2.4.13_18DEC2013/GenericNonLinearLoadModelKind.cpp deleted file mode 100644 index e07e1f5f4..000000000 --- a/CGMES_2.4.13_18DEC2013/GenericNonLinearLoadModelKind.cpp +++ /dev/null @@ -1,37 +0,0 @@ -#include -#include -#include "GenericNonLinearLoadModelKind.hpp" - -using namespace CIMPP; - -namespace CIMPP { - std::istream& operator>>(std::istream& lop, CIMPP::GenericNonLinearLoadModelKind& rop) - { - std::string EnumSymbol; - lop >> EnumSymbol; - - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "GenericNonLinearLoadModelKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "exponentialRecovery") - { - rop = GenericNonLinearLoadModelKind::exponentialRecovery; - return lop; - } - if(EnumSymbol == "loadAdaptive") - { - rop = GenericNonLinearLoadModelKind::loadAdaptive; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; - } -} - diff --git a/CGMES_2.4.13_18DEC2013/GenericNonLinearLoadModelKind.hpp b/CGMES_2.4.13_18DEC2013/GenericNonLinearLoadModelKind.hpp deleted file mode 100644 index 2ed30c2dd..000000000 --- a/CGMES_2.4.13_18DEC2013/GenericNonLinearLoadModelKind.hpp +++ /dev/null @@ -1,21 +0,0 @@ -#ifndef GenericNonLinearLoadModelKind_H -#define GenericNonLinearLoadModelKind_H - -namespace CIMPP { - /* - Type of generic non-linear load model. - */ - enum class GenericNonLinearLoadModelKind - { - /** - * Exponential recovery model. - */ - exponentialRecovery, - /** - * Load adaptive model. - */ - loadAdaptive, - }; - std::istream& operator>>(std::istream& lop, CIMPP::GenericNonLinearLoadModelKind& rop); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/GeographicalLocationVersion.cpp b/CGMES_2.4.13_18DEC2013/GeographicalLocationVersion.cpp deleted file mode 100644 index a09c6546f..000000000 --- a/CGMES_2.4.13_18DEC2013/GeographicalLocationVersion.cpp +++ /dev/null @@ -1,179 +0,0 @@ -#include -#include "BaseClass.hpp" -#include "GeographicalLocationVersion.hpp" - -#include "String.hpp" -#include "String.hpp" -#include "Date.hpp" -#include "String.hpp" -#include "String.hpp" -#include "String.hpp" -#include "String.hpp" -#include "String.hpp" -#include "String.hpp" -#include "String.hpp" - -using namespace CIMPP; - -GeographicalLocationVersion::GeographicalLocationVersion(): date(nullptr) {}; - -GeographicalLocationVersion::~GeographicalLocationVersion() {}; - - - - -bool assign_GeographicalLocationVersion_date(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(GeographicalLocationVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->date = dynamic_cast(BaseClass_ptr2); - if(element->date != nullptr) - return true; - } - return false; -} - - - - - - - - - -bool assign_GeographicalLocationVersion_baseUML(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GeographicalLocationVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->baseUML = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_GeographicalLocationVersion_baseURI(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GeographicalLocationVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->baseURI = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - - -bool assign_GeographicalLocationVersion_differenceModelURI(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GeographicalLocationVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->differenceModelURI = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_GeographicalLocationVersion_entsoeUML(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GeographicalLocationVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->entsoeUML = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_GeographicalLocationVersion_entsoeURI(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GeographicalLocationVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->entsoeURI = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_GeographicalLocationVersion_modelDescriptionURI(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GeographicalLocationVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->modelDescriptionURI = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_GeographicalLocationVersion_namespaceRDF(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GeographicalLocationVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->namespaceRDF = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_GeographicalLocationVersion_namespaceUML(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GeographicalLocationVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->namespaceUML = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_GeographicalLocationVersion_shortName(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GeographicalLocationVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->shortName = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -namespace CIMPP { - BaseClass* GeographicalLocationVersion_factory() { - return new GeographicalLocationVersion; - } -} - -void GeographicalLocationVersion::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:GeographicalLocationVersion"), &GeographicalLocationVersion_factory)); -} - -void GeographicalLocationVersion::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:GeographicalLocationVersion.baseUML"), &assign_GeographicalLocationVersion_baseUML)); - assign_map.insert(std::make_pair(std::string("cim:GeographicalLocationVersion.baseURI"), &assign_GeographicalLocationVersion_baseURI)); - assign_map.insert(std::make_pair(std::string("cim:GeographicalLocationVersion.differenceModelURI"), &assign_GeographicalLocationVersion_differenceModelURI)); - assign_map.insert(std::make_pair(std::string("cim:GeographicalLocationVersion.entsoeUML"), &assign_GeographicalLocationVersion_entsoeUML)); - assign_map.insert(std::make_pair(std::string("cim:GeographicalLocationVersion.entsoeURI"), &assign_GeographicalLocationVersion_entsoeURI)); - assign_map.insert(std::make_pair(std::string("cim:GeographicalLocationVersion.modelDescriptionURI"), &assign_GeographicalLocationVersion_modelDescriptionURI)); - assign_map.insert(std::make_pair(std::string("cim:GeographicalLocationVersion.namespaceRDF"), &assign_GeographicalLocationVersion_namespaceRDF)); - assign_map.insert(std::make_pair(std::string("cim:GeographicalLocationVersion.namespaceUML"), &assign_GeographicalLocationVersion_namespaceUML)); - assign_map.insert(std::make_pair(std::string("cim:GeographicalLocationVersion.shortName"), &assign_GeographicalLocationVersion_shortName)); -} - -void GeographicalLocationVersion::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:GeographicalLocationVersion.date"), &assign_GeographicalLocationVersion_date)); - } - -const char GeographicalLocationVersion::debugName[] = "GeographicalLocationVersion"; -const char* GeographicalLocationVersion::debugString() -{ - return GeographicalLocationVersion::debugName; -} - -const BaseClassDefiner GeographicalLocationVersion::declare() -{ - return BaseClassDefiner(GeographicalLocationVersion::addConstructToMap, GeographicalLocationVersion::addPrimitiveAssignFnsToMap, GeographicalLocationVersion::addClassAssignFnsToMap, GeographicalLocationVersion::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/GeographicalLocationVersion.hpp b/CGMES_2.4.13_18DEC2013/GeographicalLocationVersion.hpp deleted file mode 100644 index e3a11025a..000000000 --- a/CGMES_2.4.13_18DEC2013/GeographicalLocationVersion.hpp +++ /dev/null @@ -1,50 +0,0 @@ -#ifndef GeographicalLocationVersion_H -#define GeographicalLocationVersion_H - -#include "BaseClass.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "String.hpp" - -namespace CIMPP { - - -class Date; - /* - Version details. - */ - class GeographicalLocationVersion: public BaseClass - { - - public: - CIMPP::String baseUML; /* Base UML provided by CIM model manager. Default: '' */ - CIMPP::String baseURI; /* Profile URI used in the Model Exchange header and defined in IEC standards. It uniquely identifies the Profile and its version. It is given for information only and to identify the closest IEC profile to which this CGMES profile is based on. Default: '' */ - CIMPP::Date* date; /* Profile creation date Form is YYYY-MM-DD for example for January 5, 2009 it is 2009-01-05. Default: '' */ - CIMPP::String differenceModelURI; /* Difference model URI defined by IEC 61970-552. Default: '' */ - CIMPP::String entsoeUML; /* UML provided by ENTSO-E. Default: '' */ - CIMPP::String entsoeURI; /* Profile URI defined by ENTSO-E and used in the Model Exchange header. It uniquely identifies the Profile and its version. The last two elements in the URI (http://entsoe.eu/CIM/GeographicalLocation/yy/zzz) indicate major and minor versions where: - yy - indicates a major version; - zzz - indicates a minor version. Default: '' */ - CIMPP::String modelDescriptionURI; /* Model Description URI defined by IEC 61970-552. Default: '' */ - CIMPP::String namespaceRDF; /* RDF namespace. Default: '' */ - CIMPP::String namespaceUML; /* CIM UML namespace. Default: '' */ - CIMPP::String shortName; /* The short name of the profile used in profile documentation. Default: '' */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - GeographicalLocationVersion(); - virtual ~GeographicalLocationVersion(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* GeographicalLocationVersion_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/GeographicalRegion.cpp b/CGMES_2.4.13_18DEC2013/GeographicalRegion.cpp deleted file mode 100644 index 56f4ef7db..000000000 --- a/CGMES_2.4.13_18DEC2013/GeographicalRegion.cpp +++ /dev/null @@ -1,54 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "GeographicalRegion.hpp" - -#include "SubGeographicalRegion.hpp" - -using namespace CIMPP; - -GeographicalRegion::GeographicalRegion() {}; - -GeographicalRegion::~GeographicalRegion() {}; - - -bool assign_GeographicalRegion_Regions(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(GeographicalRegion* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->Regions.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - - -namespace CIMPP { - BaseClass* GeographicalRegion_factory() { - return new GeographicalRegion; - } -} - -void GeographicalRegion::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:GeographicalRegion"), &GeographicalRegion_factory)); -} - -void GeographicalRegion::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void GeographicalRegion::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:GeographicalRegion.Regions"), &assign_GeographicalRegion_Regions)); -} - -const char GeographicalRegion::debugName[] = "GeographicalRegion"; -const char* GeographicalRegion::debugString() -{ - return GeographicalRegion::debugName; -} - -const BaseClassDefiner GeographicalRegion::declare() -{ - return BaseClassDefiner(GeographicalRegion::addConstructToMap, GeographicalRegion::addPrimitiveAssignFnsToMap, GeographicalRegion::addClassAssignFnsToMap, GeographicalRegion::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/GeographicalRegion.hpp b/CGMES_2.4.13_18DEC2013/GeographicalRegion.hpp deleted file mode 100644 index d6e1dbe42..000000000 --- a/CGMES_2.4.13_18DEC2013/GeographicalRegion.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef GeographicalRegion_H -#define GeographicalRegion_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class SubGeographicalRegion; - /* - A geographical region of a power system network model. - */ - class GeographicalRegion: public IdentifiedObject - { - - public: - std::list Regions; /* All sub-geograhpical regions within this geographical region. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - GeographicalRegion(); - virtual ~GeographicalRegion(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* GeographicalRegion_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/GovCT1.cpp b/CGMES_2.4.13_18DEC2013/GovCT1.cpp deleted file mode 100644 index 00757332c..000000000 --- a/CGMES_2.4.13_18DEC2013/GovCT1.cpp +++ /dev/null @@ -1,581 +0,0 @@ -#include -#include "TurbineGovernorDynamics.hpp" -#include "GovCT1.hpp" - -#include "ActivePower.hpp" -#include "PU.hpp" -#include "DroopSignalFeedbackKind.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Boolean.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "ActivePower.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -GovCT1::GovCT1() {}; - -GovCT1::~GovCT1() {}; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -bool assign_GovCT1_mwbase(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->mwbase; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT1_r(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->r; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT1_rselect(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->rselect; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT1_tpelec(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tpelec; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT1_maxerr(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->maxerr; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT1_minerr(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->minerr; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT1_kpgov(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kpgov; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT1_kigov(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kigov; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT1_kdgov(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kdgov; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT1_tdgov(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tdgov; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT1_vmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT1_vmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT1_tact(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tact; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT1_kturb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kturb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT1_wfnl(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->wfnl; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT1_tb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT1_tc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT1_wfspd(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->wfspd; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT1_teng(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->teng; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT1_tfload(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tfload; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT1_kpload(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kpload; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT1_kiload(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kiload; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT1_ldref(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ldref; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT1_dm(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->dm; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT1_ropen(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ropen; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT1_rclose(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->rclose; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT1_kimw(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kimw; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT1_pmwset(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pmwset; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT1_aset(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->aset; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT1_ka(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ka; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT1_ta(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ta; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT1_db(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->db; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT1_tsa(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tsa; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT1_tsb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tsb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT1_rup(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->rup; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT1_rdown(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->rdown; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* GovCT1_factory() { - return new GovCT1; - } -} - -void GovCT1::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:GovCT1"), &GovCT1_factory)); -} - -void GovCT1::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:GovCT1.mwbase"), &assign_GovCT1_mwbase)); - assign_map.insert(std::make_pair(std::string("cim:GovCT1.r"), &assign_GovCT1_r)); - assign_map.insert(std::make_pair(std::string("cim:GovCT1.rselect"), &assign_GovCT1_rselect)); - assign_map.insert(std::make_pair(std::string("cim:GovCT1.tpelec"), &assign_GovCT1_tpelec)); - assign_map.insert(std::make_pair(std::string("cim:GovCT1.maxerr"), &assign_GovCT1_maxerr)); - assign_map.insert(std::make_pair(std::string("cim:GovCT1.minerr"), &assign_GovCT1_minerr)); - assign_map.insert(std::make_pair(std::string("cim:GovCT1.kpgov"), &assign_GovCT1_kpgov)); - assign_map.insert(std::make_pair(std::string("cim:GovCT1.kigov"), &assign_GovCT1_kigov)); - assign_map.insert(std::make_pair(std::string("cim:GovCT1.kdgov"), &assign_GovCT1_kdgov)); - assign_map.insert(std::make_pair(std::string("cim:GovCT1.tdgov"), &assign_GovCT1_tdgov)); - assign_map.insert(std::make_pair(std::string("cim:GovCT1.vmax"), &assign_GovCT1_vmax)); - assign_map.insert(std::make_pair(std::string("cim:GovCT1.vmin"), &assign_GovCT1_vmin)); - assign_map.insert(std::make_pair(std::string("cim:GovCT1.tact"), &assign_GovCT1_tact)); - assign_map.insert(std::make_pair(std::string("cim:GovCT1.kturb"), &assign_GovCT1_kturb)); - assign_map.insert(std::make_pair(std::string("cim:GovCT1.wfnl"), &assign_GovCT1_wfnl)); - assign_map.insert(std::make_pair(std::string("cim:GovCT1.tb"), &assign_GovCT1_tb)); - assign_map.insert(std::make_pair(std::string("cim:GovCT1.tc"), &assign_GovCT1_tc)); - assign_map.insert(std::make_pair(std::string("cim:GovCT1.wfspd"), &assign_GovCT1_wfspd)); - assign_map.insert(std::make_pair(std::string("cim:GovCT1.teng"), &assign_GovCT1_teng)); - assign_map.insert(std::make_pair(std::string("cim:GovCT1.tfload"), &assign_GovCT1_tfload)); - assign_map.insert(std::make_pair(std::string("cim:GovCT1.kpload"), &assign_GovCT1_kpload)); - assign_map.insert(std::make_pair(std::string("cim:GovCT1.kiload"), &assign_GovCT1_kiload)); - assign_map.insert(std::make_pair(std::string("cim:GovCT1.ldref"), &assign_GovCT1_ldref)); - assign_map.insert(std::make_pair(std::string("cim:GovCT1.dm"), &assign_GovCT1_dm)); - assign_map.insert(std::make_pair(std::string("cim:GovCT1.ropen"), &assign_GovCT1_ropen)); - assign_map.insert(std::make_pair(std::string("cim:GovCT1.rclose"), &assign_GovCT1_rclose)); - assign_map.insert(std::make_pair(std::string("cim:GovCT1.kimw"), &assign_GovCT1_kimw)); - assign_map.insert(std::make_pair(std::string("cim:GovCT1.pmwset"), &assign_GovCT1_pmwset)); - assign_map.insert(std::make_pair(std::string("cim:GovCT1.aset"), &assign_GovCT1_aset)); - assign_map.insert(std::make_pair(std::string("cim:GovCT1.ka"), &assign_GovCT1_ka)); - assign_map.insert(std::make_pair(std::string("cim:GovCT1.ta"), &assign_GovCT1_ta)); - assign_map.insert(std::make_pair(std::string("cim:GovCT1.db"), &assign_GovCT1_db)); - assign_map.insert(std::make_pair(std::string("cim:GovCT1.tsa"), &assign_GovCT1_tsa)); - assign_map.insert(std::make_pair(std::string("cim:GovCT1.tsb"), &assign_GovCT1_tsb)); - assign_map.insert(std::make_pair(std::string("cim:GovCT1.rup"), &assign_GovCT1_rup)); - assign_map.insert(std::make_pair(std::string("cim:GovCT1.rdown"), &assign_GovCT1_rdown)); -} - -void GovCT1::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char GovCT1::debugName[] = "GovCT1"; -const char* GovCT1::debugString() -{ - return GovCT1::debugName; -} - -const BaseClassDefiner GovCT1::declare() -{ - return BaseClassDefiner(GovCT1::addConstructToMap, GovCT1::addPrimitiveAssignFnsToMap, GovCT1::addClassAssignFnsToMap, GovCT1::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/GovCT1.hpp b/CGMES_2.4.13_18DEC2013/GovCT1.hpp deleted file mode 100644 index 122e63a1a..000000000 --- a/CGMES_2.4.13_18DEC2013/GovCT1.hpp +++ /dev/null @@ -1,80 +0,0 @@ -#ifndef GovCT1_H -#define GovCT1_H - -#include "TurbineGovernorDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "ActivePower.hpp" -#include "PU.hpp" -#include "DroopSignalFeedbackKind.hpp" -#include "Seconds.hpp" -#include "Boolean.hpp" -#include "Simple_Float.hpp" - -namespace CIMPP { - - - /* - General model for any prime mover with a PID governor, used primarily for combustion turbine and combined cycle units. This model can be used to represent a variety of prime movers controlled by PID governors. It is suitable, for example, for representation of Additional information on this model is available in the 2012 IEEE report, , section 3.1.2.3 page 3-4 (GGOV1). - */ - class GovCT1: public TurbineGovernorDynamics - { - - public: - CIMPP::ActivePower mwbase; /* Base for power values (MWbase) (> 0). Unit = MW. Default: nullptr */ - CIMPP::PU r; /* Permanent droop (R). Typical Value = 0.04. Default: nullptr */ - CIMPP::DroopSignalFeedbackKind rselect; /* Feedback signal for droop (Rselect). Typical Value = electricalPower. Default: 0 */ - CIMPP::Seconds tpelec; /* Electrical power transducer time constant (Tpelec) (>0). Typical Value = 1. Default: nullptr */ - CIMPP::PU maxerr; /* Maximum value for speed error signal (maxerr). Typical Value = 0.05. Default: nullptr */ - CIMPP::PU minerr; /* Minimum value for speed error signal (minerr). Typical Value = -0.05. Default: nullptr */ - CIMPP::PU kpgov; /* Governor proportional gain (Kpgov). Typical Value = 10. Default: nullptr */ - CIMPP::PU kigov; /* Governor integral gain (Kigov). Typical Value = 2. Default: nullptr */ - CIMPP::PU kdgov; /* Governor derivative gain (Kdgov). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tdgov; /* Governor derivative controller time constant (Tdgov). Typical Value = 1. Default: nullptr */ - CIMPP::PU vmax; /* Maximum valve position limit (Vmax). Typical Value = 1. Default: nullptr */ - CIMPP::PU vmin; /* Minimum valve position limit (Vmin). Typical Value = 0.15. Default: nullptr */ - CIMPP::Seconds tact; /* Actuator time constant (Tact). Typical Value = 0.5. Default: nullptr */ - CIMPP::PU kturb; /* Turbine gain (Kturb) (>0). Typical Value = 1.5. Default: nullptr */ - CIMPP::PU wfnl; /* No load fuel flow (Wfnl). Typical Value = 0.2. Default: nullptr */ - CIMPP::Seconds tb; /* Turbine lag time constant (Tb) (>0). Typical Value = 0.5. Default: nullptr */ - CIMPP::Seconds tc; /* Turbine lead time constant (Tc). Typical Value = 0. Default: nullptr */ - CIMPP::Boolean wfspd; /* Switch for fuel source characteristic to recognize that fuel flow, for a given fuel valve stroke, can be proportional to engine speed (Wfspd). true = fuel flow proportional to speed (for some gas turbines and diesel engines with positive displacement fuel injectors) false = fuel control system keeps fuel flow independent of engine speed. Typical Value = true. Default: false */ - CIMPP::Seconds teng; /* Transport time delay for diesel engine used in representing diesel engines where there is a small but measurable transport delay between a change in fuel flow setting and the development of torque (Teng). Teng should be zero in all but special cases where this transport delay is of particular concern. Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tfload; /* Load Limiter time constant (Tfload) (>0). Typical Value = 3. Default: nullptr */ - CIMPP::PU kpload; /* Load limiter proportional gain for PI controller (Kpload). Typical Value = 2. Default: nullptr */ - CIMPP::PU kiload; /* Load limiter integral gain for PI controller (Kiload). Typical Value = 0.67. Default: nullptr */ - CIMPP::PU ldref; /* Load limiter reference value (Ldref). Typical Value = 1. Default: nullptr */ - CIMPP::PU dm; /* Speed sensitivity coefficient (Dm). Dm can represent either the variation of the engine power with the shaft speed or the variation of maximum power capability with shaft speed. If it is positive it describes the falling slope of the engine speed verses power characteristic as speed increases. A slightly falling characteristic is typical for reciprocating engines and some aero-derivative turbines. If it is negative the engine power is assumed to be unaffected by the shaft speed, but the maximum permissible fuel flow is taken to fall with falling shaft speed. This is characteristic of single-shaft industrial turbines due to exhaust temperature limits. Typical Value = 0. Default: nullptr */ - CIMPP::Simple_Float ropen; /* Maximum valve opening rate (Ropen). Unit = PU/sec. Typical Value = 0.10. Default: nullptr */ - CIMPP::Simple_Float rclose; /* Minimum valve closing rate (Rclose). Unit = PU/sec. Typical Value = -0.1. Default: nullptr */ - CIMPP::PU kimw; /* Power controller (reset) gain (Kimw). The default value of 0.01 corresponds to a reset time of 100 seconds. A value of 0.001 corresponds to a relatively slow acting load controller. Typical Value = 0.01. Default: nullptr */ - CIMPP::ActivePower pmwset; /* Power controller setpoint (Pmwset). Unit = MW. Typical Value = 80. Default: nullptr */ - CIMPP::Simple_Float aset; /* Acceleration limiter setpoint (Aset). Unit = PU/sec. Typical Value = 0.01. Default: nullptr */ - CIMPP::PU ka; /* Acceleration limiter gain (Ka). Typical Value = 10. Default: nullptr */ - CIMPP::Seconds ta; /* Acceleration limiter time constant (Ta) (>0). Typical Value = 0.1. Default: nullptr */ - CIMPP::PU db; /* Speed governor dead band in per unit speed (db). In the majority of applications, it is recommended that this value be set to zero. Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tsa; /* Temperature detection lead time constant (Tsa). Typical Value = 4. Default: nullptr */ - CIMPP::Seconds tsb; /* Temperature detection lag time constant (Tsb). Typical Value = 5. Default: nullptr */ - CIMPP::PU rup; /* Maximum rate of load limit increase (Rup). Typical Value = 99. Default: nullptr */ - CIMPP::PU rdown; /* Maximum rate of load limit decrease (Rdown). Typical Value = -99. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - GovCT1(); - virtual ~GovCT1(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* GovCT1_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/GovCT2.cpp b/CGMES_2.4.13_18DEC2013/GovCT2.cpp deleted file mode 100644 index 6ee9b39dd..000000000 --- a/CGMES_2.4.13_18DEC2013/GovCT2.cpp +++ /dev/null @@ -1,896 +0,0 @@ -#include -#include "TurbineGovernorDynamics.hpp" -#include "GovCT2.hpp" - -#include "ActivePower.hpp" -#include "PU.hpp" -#include "DroopSignalFeedbackKind.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Boolean.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "ActivePower.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Frequency.hpp" -#include "PU.hpp" -#include "Frequency.hpp" -#include "PU.hpp" -#include "Frequency.hpp" -#include "PU.hpp" -#include "Frequency.hpp" -#include "PU.hpp" -#include "Frequency.hpp" -#include "PU.hpp" -#include "Frequency.hpp" -#include "PU.hpp" -#include "Frequency.hpp" -#include "PU.hpp" -#include "Frequency.hpp" -#include "PU.hpp" -#include "Frequency.hpp" -#include "PU.hpp" -#include "Frequency.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -GovCT2::GovCT2() {}; - -GovCT2::~GovCT2() {}; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -bool assign_GovCT2_mwbase(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->mwbase; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT2_r(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->r; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT2_rselect(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->rselect; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT2_tpelec(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tpelec; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT2_maxerr(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->maxerr; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT2_minerr(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->minerr; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT2_kpgov(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kpgov; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT2_kigov(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kigov; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT2_kdgov(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kdgov; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT2_tdgov(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tdgov; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT2_vmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT2_vmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT2_tact(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tact; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT2_kturb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kturb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT2_wfnl(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->wfnl; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT2_tb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT2_tc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT2_wfspd(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->wfspd; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT2_teng(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->teng; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT2_tfload(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tfload; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT2_kpload(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kpload; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT2_kiload(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kiload; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT2_ldref(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ldref; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT2_dm(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->dm; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT2_ropen(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ropen; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT2_rclose(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->rclose; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT2_kimw(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kimw; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT2_pmwset(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pmwset; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT2_aset(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->aset; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT2_ka(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ka; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT2_ta(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ta; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT2_db(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->db; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT2_tsa(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tsa; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT2_tsb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tsb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT2_rup(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->rup; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT2_rdown(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->rdown; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT2_prate(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->prate; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT2_flim1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->flim1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT2_plim1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->plim1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT2_flim2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->flim2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT2_plim2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->plim2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT2_flim3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->flim3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT2_plim3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->plim3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT2_flim4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->flim4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT2_plim4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->plim4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT2_flim5(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->flim5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT2_plim5(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->plim5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT2_flim6(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->flim6; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT2_plim6(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->plim6; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT2_flim7(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->flim7; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT2_plim7(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->plim7; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT2_flim8(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->flim8; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT2_plim8(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->plim8; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT2_flim9(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->flim9; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT2_plim9(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->plim9; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT2_flim10(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->flim10; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovCT2_plim10(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovCT2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->plim10; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* GovCT2_factory() { - return new GovCT2; - } -} - -void GovCT2::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:GovCT2"), &GovCT2_factory)); -} - -void GovCT2::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:GovCT2.mwbase"), &assign_GovCT2_mwbase)); - assign_map.insert(std::make_pair(std::string("cim:GovCT2.r"), &assign_GovCT2_r)); - assign_map.insert(std::make_pair(std::string("cim:GovCT2.rselect"), &assign_GovCT2_rselect)); - assign_map.insert(std::make_pair(std::string("cim:GovCT2.tpelec"), &assign_GovCT2_tpelec)); - assign_map.insert(std::make_pair(std::string("cim:GovCT2.maxerr"), &assign_GovCT2_maxerr)); - assign_map.insert(std::make_pair(std::string("cim:GovCT2.minerr"), &assign_GovCT2_minerr)); - assign_map.insert(std::make_pair(std::string("cim:GovCT2.kpgov"), &assign_GovCT2_kpgov)); - assign_map.insert(std::make_pair(std::string("cim:GovCT2.kigov"), &assign_GovCT2_kigov)); - assign_map.insert(std::make_pair(std::string("cim:GovCT2.kdgov"), &assign_GovCT2_kdgov)); - assign_map.insert(std::make_pair(std::string("cim:GovCT2.tdgov"), &assign_GovCT2_tdgov)); - assign_map.insert(std::make_pair(std::string("cim:GovCT2.vmax"), &assign_GovCT2_vmax)); - assign_map.insert(std::make_pair(std::string("cim:GovCT2.vmin"), &assign_GovCT2_vmin)); - assign_map.insert(std::make_pair(std::string("cim:GovCT2.tact"), &assign_GovCT2_tact)); - assign_map.insert(std::make_pair(std::string("cim:GovCT2.kturb"), &assign_GovCT2_kturb)); - assign_map.insert(std::make_pair(std::string("cim:GovCT2.wfnl"), &assign_GovCT2_wfnl)); - assign_map.insert(std::make_pair(std::string("cim:GovCT2.tb"), &assign_GovCT2_tb)); - assign_map.insert(std::make_pair(std::string("cim:GovCT2.tc"), &assign_GovCT2_tc)); - assign_map.insert(std::make_pair(std::string("cim:GovCT2.wfspd"), &assign_GovCT2_wfspd)); - assign_map.insert(std::make_pair(std::string("cim:GovCT2.teng"), &assign_GovCT2_teng)); - assign_map.insert(std::make_pair(std::string("cim:GovCT2.tfload"), &assign_GovCT2_tfload)); - assign_map.insert(std::make_pair(std::string("cim:GovCT2.kpload"), &assign_GovCT2_kpload)); - assign_map.insert(std::make_pair(std::string("cim:GovCT2.kiload"), &assign_GovCT2_kiload)); - assign_map.insert(std::make_pair(std::string("cim:GovCT2.ldref"), &assign_GovCT2_ldref)); - assign_map.insert(std::make_pair(std::string("cim:GovCT2.dm"), &assign_GovCT2_dm)); - assign_map.insert(std::make_pair(std::string("cim:GovCT2.ropen"), &assign_GovCT2_ropen)); - assign_map.insert(std::make_pair(std::string("cim:GovCT2.rclose"), &assign_GovCT2_rclose)); - assign_map.insert(std::make_pair(std::string("cim:GovCT2.kimw"), &assign_GovCT2_kimw)); - assign_map.insert(std::make_pair(std::string("cim:GovCT2.pmwset"), &assign_GovCT2_pmwset)); - assign_map.insert(std::make_pair(std::string("cim:GovCT2.aset"), &assign_GovCT2_aset)); - assign_map.insert(std::make_pair(std::string("cim:GovCT2.ka"), &assign_GovCT2_ka)); - assign_map.insert(std::make_pair(std::string("cim:GovCT2.ta"), &assign_GovCT2_ta)); - assign_map.insert(std::make_pair(std::string("cim:GovCT2.db"), &assign_GovCT2_db)); - assign_map.insert(std::make_pair(std::string("cim:GovCT2.tsa"), &assign_GovCT2_tsa)); - assign_map.insert(std::make_pair(std::string("cim:GovCT2.tsb"), &assign_GovCT2_tsb)); - assign_map.insert(std::make_pair(std::string("cim:GovCT2.rup"), &assign_GovCT2_rup)); - assign_map.insert(std::make_pair(std::string("cim:GovCT2.rdown"), &assign_GovCT2_rdown)); - assign_map.insert(std::make_pair(std::string("cim:GovCT2.prate"), &assign_GovCT2_prate)); - assign_map.insert(std::make_pair(std::string("cim:GovCT2.flim1"), &assign_GovCT2_flim1)); - assign_map.insert(std::make_pair(std::string("cim:GovCT2.plim1"), &assign_GovCT2_plim1)); - assign_map.insert(std::make_pair(std::string("cim:GovCT2.flim2"), &assign_GovCT2_flim2)); - assign_map.insert(std::make_pair(std::string("cim:GovCT2.plim2"), &assign_GovCT2_plim2)); - assign_map.insert(std::make_pair(std::string("cim:GovCT2.flim3"), &assign_GovCT2_flim3)); - assign_map.insert(std::make_pair(std::string("cim:GovCT2.plim3"), &assign_GovCT2_plim3)); - assign_map.insert(std::make_pair(std::string("cim:GovCT2.flim4"), &assign_GovCT2_flim4)); - assign_map.insert(std::make_pair(std::string("cim:GovCT2.plim4"), &assign_GovCT2_plim4)); - assign_map.insert(std::make_pair(std::string("cim:GovCT2.flim5"), &assign_GovCT2_flim5)); - assign_map.insert(std::make_pair(std::string("cim:GovCT2.plim5"), &assign_GovCT2_plim5)); - assign_map.insert(std::make_pair(std::string("cim:GovCT2.flim6"), &assign_GovCT2_flim6)); - assign_map.insert(std::make_pair(std::string("cim:GovCT2.plim6"), &assign_GovCT2_plim6)); - assign_map.insert(std::make_pair(std::string("cim:GovCT2.flim7"), &assign_GovCT2_flim7)); - assign_map.insert(std::make_pair(std::string("cim:GovCT2.plim7"), &assign_GovCT2_plim7)); - assign_map.insert(std::make_pair(std::string("cim:GovCT2.flim8"), &assign_GovCT2_flim8)); - assign_map.insert(std::make_pair(std::string("cim:GovCT2.plim8"), &assign_GovCT2_plim8)); - assign_map.insert(std::make_pair(std::string("cim:GovCT2.flim9"), &assign_GovCT2_flim9)); - assign_map.insert(std::make_pair(std::string("cim:GovCT2.plim9"), &assign_GovCT2_plim9)); - assign_map.insert(std::make_pair(std::string("cim:GovCT2.flim10"), &assign_GovCT2_flim10)); - assign_map.insert(std::make_pair(std::string("cim:GovCT2.plim10"), &assign_GovCT2_plim10)); -} - -void GovCT2::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char GovCT2::debugName[] = "GovCT2"; -const char* GovCT2::debugString() -{ - return GovCT2::debugName; -} - -const BaseClassDefiner GovCT2::declare() -{ - return BaseClassDefiner(GovCT2::addConstructToMap, GovCT2::addPrimitiveAssignFnsToMap, GovCT2::addClassAssignFnsToMap, GovCT2::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/GovCT2.hpp b/CGMES_2.4.13_18DEC2013/GovCT2.hpp deleted file mode 100644 index eb583882a..000000000 --- a/CGMES_2.4.13_18DEC2013/GovCT2.hpp +++ /dev/null @@ -1,102 +0,0 @@ -#ifndef GovCT2_H -#define GovCT2_H - -#include "TurbineGovernorDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "ActivePower.hpp" -#include "PU.hpp" -#include "DroopSignalFeedbackKind.hpp" -#include "Seconds.hpp" -#include "Boolean.hpp" -#include "Simple_Float.hpp" -#include "Frequency.hpp" - -namespace CIMPP { - - - /* - General governor model with frequency-dependent fuel flow limit. This model is a modification of the GovCT1model in order to represent the frequency-dependent fuel flow limit of a specific gas turbine manufacturer. - */ - class GovCT2: public TurbineGovernorDynamics - { - - public: - CIMPP::ActivePower mwbase; /* Base for power values (MWbase) (> 0). Unit = MW. Default: nullptr */ - CIMPP::PU r; /* Permanent droop (R). Typical Value = 0.05. Default: nullptr */ - CIMPP::DroopSignalFeedbackKind rselect; /* Feedback signal for droop (Rselect). Typical Value = electricalPower. Default: 0 */ - CIMPP::Seconds tpelec; /* Electrical power transducer time constant (Tpelec). Typical Value = 2.5. Default: nullptr */ - CIMPP::PU maxerr; /* Maximum value for speed error signal (Maxerr). Typical Value = 1. Default: nullptr */ - CIMPP::PU minerr; /* Minimum value for speed error signal (Minerr). Typical Value = -1. Default: nullptr */ - CIMPP::PU kpgov; /* Governor proportional gain (Kpgov). Typical Value = 4. Default: nullptr */ - CIMPP::PU kigov; /* Governor integral gain (Kigov). Typical Value = 0.45. Default: nullptr */ - CIMPP::PU kdgov; /* Governor derivative gain (Kdgov). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tdgov; /* Governor derivative controller time constant (Tdgov). Typical Value = 1. Default: nullptr */ - CIMPP::PU vmax; /* Maximum valve position limit (Vmax). Typical Value = 1. Default: nullptr */ - CIMPP::PU vmin; /* Minimum valve position limit (Vmin). Typical Value = 0.175. Default: nullptr */ - CIMPP::Seconds tact; /* Actuator time constant (Tact). Typical Value = 0.4. Default: nullptr */ - CIMPP::PU kturb; /* Turbine gain (Kturb). Typical Value = 1.9168. Default: nullptr */ - CIMPP::PU wfnl; /* No load fuel flow (Wfnl). Typical Value = 0.187. Default: nullptr */ - CIMPP::Seconds tb; /* Turbine lag time constant (Tb). Typical Value = 0.1. Default: nullptr */ - CIMPP::Seconds tc; /* Turbine lead time constant (Tc). Typical Value = 0. Default: nullptr */ - CIMPP::Boolean wfspd; /* Switch for fuel source characteristic to recognize that fuel flow, for a given fuel valve stroke, can be proportional to engine speed (Wfspd). true = fuel flow proportional to speed (for some gas turbines and diesel engines with positive displacement fuel injectors) false = fuel control system keeps fuel flow independent of engine speed. Typical Value = false. Default: false */ - CIMPP::Seconds teng; /* Transport time delay for diesel engine used in representing diesel engines where there is a small but measurable transport delay between a change in fuel flow setting and the development of torque (Teng). Teng should be zero in all but special cases where this transport delay is of particular concern. Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tfload; /* Load Limiter time constant (Tfload). Typical Value = 3. Default: nullptr */ - CIMPP::PU kpload; /* Load limiter proportional gain for PI controller (Kpload). Typical Value = 1. Default: nullptr */ - CIMPP::PU kiload; /* Load limiter integral gain for PI controller (Kiload). Typical Value = 1. Default: nullptr */ - CIMPP::PU ldref; /* Load limiter reference value (Ldref). Typical Value = 1. Default: nullptr */ - CIMPP::PU dm; /* Speed sensitivity coefficient (Dm). Dm can represent either the variation of the engine power with the shaft speed or the variation of maximum power capability with shaft speed. If it is positive it describes the falling slope of the engine speed verses power characteristic as speed increases. A slightly falling characteristic is typical for reciprocating engines and some aero-derivative turbines. If it is negative the engine power is assumed to be unaffected by the shaft speed, but the maximum permissible fuel flow is taken to fall with falling shaft speed. This is characteristic of single-shaft industrial turbines due to exhaust temperature limits. Typical Value = 0. Default: nullptr */ - CIMPP::Simple_Float ropen; /* Maximum valve opening rate (Ropen). Unit = PU/sec. Typical Value = 99. Default: nullptr */ - CIMPP::Simple_Float rclose; /* Minimum valve closing rate (Rclose). Unit = PU/sec. Typical Value = -99. Default: nullptr */ - CIMPP::PU kimw; /* Power controller (reset) gain (Kimw). The default value of 0.01 corresponds to a reset time of 100 seconds. A value of 0.001 corresponds to a relatively slow acting load controller. Typical Value = 0. Default: nullptr */ - CIMPP::ActivePower pmwset; /* Power controller setpoint (Pmwset). Unit = MW. Typical Value = 0. Default: nullptr */ - CIMPP::Simple_Float aset; /* Acceleration limiter setpoint (Aset). Unit = PU/sec. Typical Value = 10. Default: nullptr */ - CIMPP::PU ka; /* Acceleration limiter Gain (Ka). Typical Value = 10. Default: nullptr */ - CIMPP::Seconds ta; /* Acceleration limiter time constant (Ta). Typical Value = 1. Default: nullptr */ - CIMPP::PU db; /* Speed governor dead band in per unit speed (db). In the majority of applications, it is recommended that this value be set to zero. Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tsa; /* Temperature detection lead time constant (Tsa). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tsb; /* Temperature detection lag time constant (Tsb). Typical Value = 50. Default: nullptr */ - CIMPP::PU rup; /* Maximum rate of load limit increase (Rup). Typical Value = 99. Default: nullptr */ - CIMPP::PU rdown; /* Maximum rate of load limit decrease (Rdown). Typical Value = -99. Default: nullptr */ - CIMPP::PU prate; /* Ramp rate for frequency-dependent power limit (Prate). Typical Value = 0.017. Default: nullptr */ - CIMPP::Frequency flim1; /* Frequency threshold 1 (Flim1). Unit = Hz. Typical Value = 59. Default: nullptr */ - CIMPP::PU plim1; /* Power limit 1 (Plim1). Typical Value = 0.8325. Default: nullptr */ - CIMPP::Frequency flim2; /* Frequency threshold 2 (Flim2). Unit = Hz. Typical Value = 0. Default: nullptr */ - CIMPP::PU plim2; /* Power limit 2 (Plim2). Typical Value = 0. Default: nullptr */ - CIMPP::Frequency flim3; /* Frequency threshold 3 (Flim3). Unit = Hz. Typical Value = 0. Default: nullptr */ - CIMPP::PU plim3; /* Power limit 3 (Plim3). Typical Value = 0. Default: nullptr */ - CIMPP::Frequency flim4; /* Frequency threshold 4 (Flim4). Unit = Hz. Typical Value = 0. Default: nullptr */ - CIMPP::PU plim4; /* Power limit 4 (Plim4). Typical Value = 0. Default: nullptr */ - CIMPP::Frequency flim5; /* Frequency threshold 5 (Flim5). Unit = Hz. Typical Value = 0. Default: nullptr */ - CIMPP::PU plim5; /* Power limit 5 (Plim5). Typical Value = 0. Default: nullptr */ - CIMPP::Frequency flim6; /* Frequency threshold 6 (Flim6). Unit = Hz. Typical Value = 0. Default: nullptr */ - CIMPP::PU plim6; /* Power limit 6 (Plim6). Typical Value = 0. Default: nullptr */ - CIMPP::Frequency flim7; /* Frequency threshold 7 (Flim7). Unit = Hz. Typical Value = 0. Default: nullptr */ - CIMPP::PU plim7; /* Power limit 7 (Plim7). Typical Value = 0. Default: nullptr */ - CIMPP::Frequency flim8; /* Frequency threshold 8 (Flim8). Unit = Hz. Typical Value = 0. Default: nullptr */ - CIMPP::PU plim8; /* Power limit 8 (Plim8). Typical Value = 0. Default: nullptr */ - CIMPP::Frequency flim9; /* Frequency threshold 9 (Flim9). Unit = Hz. Typical Value = 0. Default: nullptr */ - CIMPP::PU plim9; /* Power Limit 9 (Plim9). Typical Value = 0. Default: nullptr */ - CIMPP::Frequency flim10; /* Frequency threshold 10 (Flim10). Unit = Hz. Typical Value = 0. Default: nullptr */ - CIMPP::PU plim10; /* Power limit 10 (Plim10). Typical Value = 0. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - GovCT2(); - virtual ~GovCT2(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* GovCT2_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/GovGAST.cpp b/CGMES_2.4.13_18DEC2013/GovGAST.cpp deleted file mode 100644 index d4e3d20cc..000000000 --- a/CGMES_2.4.13_18DEC2013/GovGAST.cpp +++ /dev/null @@ -1,191 +0,0 @@ -#include -#include "TurbineGovernorDynamics.hpp" -#include "GovGAST.hpp" - -#include "ActivePower.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -GovGAST::GovGAST() {}; - -GovGAST::~GovGAST() {}; - - - - - - - - - - - - - -bool assign_GovGAST_mwbase(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->mwbase; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST_r(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->r; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST_t1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST_t2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST_t3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST_at(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->at; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST_kt(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kt; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST_vmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST_vmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST_dturb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->dturb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* GovGAST_factory() { - return new GovGAST; - } -} - -void GovGAST::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:GovGAST"), &GovGAST_factory)); -} - -void GovGAST::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:GovGAST.mwbase"), &assign_GovGAST_mwbase)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST.r"), &assign_GovGAST_r)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST.t1"), &assign_GovGAST_t1)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST.t2"), &assign_GovGAST_t2)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST.t3"), &assign_GovGAST_t3)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST.at"), &assign_GovGAST_at)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST.kt"), &assign_GovGAST_kt)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST.vmax"), &assign_GovGAST_vmax)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST.vmin"), &assign_GovGAST_vmin)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST.dturb"), &assign_GovGAST_dturb)); -} - -void GovGAST::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char GovGAST::debugName[] = "GovGAST"; -const char* GovGAST::debugString() -{ - return GovGAST::debugName; -} - -const BaseClassDefiner GovGAST::declare() -{ - return BaseClassDefiner(GovGAST::addConstructToMap, GovGAST::addPrimitiveAssignFnsToMap, GovGAST::addClassAssignFnsToMap, GovGAST::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/GovGAST.hpp b/CGMES_2.4.13_18DEC2013/GovGAST.hpp deleted file mode 100644 index 133dca546..000000000 --- a/CGMES_2.4.13_18DEC2013/GovGAST.hpp +++ /dev/null @@ -1,51 +0,0 @@ -#ifndef GovGAST_H -#define GovGAST_H - -#include "TurbineGovernorDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "ActivePower.hpp" -#include "PU.hpp" -#include "Seconds.hpp" - -namespace CIMPP { - - - /* - Single shaft gas turbine. - */ - class GovGAST: public TurbineGovernorDynamics - { - - public: - CIMPP::ActivePower mwbase; /* Base for power values (MWbase) (> 0). Default: nullptr */ - CIMPP::PU r; /* Permanent droop (R). Typical Value = 0.04. Default: nullptr */ - CIMPP::Seconds t1; /* Governor mechanism time constant (T1). T1 represents the natural valve positioning time constant of the governor for small disturbances, as seen when rate limiting is not in effect. Typical Value = 0.5. Default: nullptr */ - CIMPP::Seconds t2; /* Turbine power time constant (T2). T2 represents delay due to internal energy storage of the gas turbine engine. T2 can be used to give a rough approximation to the delay associated with acceleration of the compressor spool of a multi-shaft engine, or with the compressibility of gas in the plenum of a the free power turbine of an aero-derivative unit, for example. Typical Value = 0.5. Default: nullptr */ - CIMPP::Seconds t3; /* Turbine exhaust temperature time constant (T3). Typical Value = 3. Default: nullptr */ - CIMPP::PU at; /* Ambient temperature load limit (Load Limit). Typical Value = 1. Default: nullptr */ - CIMPP::PU kt; /* Temperature limiter gain (Kt). Typical Value = 3. Default: nullptr */ - CIMPP::PU vmax; /* Maximum turbine power, PU of MWbase (Vmax). Typical Value = 1. Default: nullptr */ - CIMPP::PU vmin; /* Minimum turbine power, PU of MWbase (Vmin). Typical Value = 0. Default: nullptr */ - CIMPP::PU dturb; /* Turbine damping factor (Dturb). Typical Value = 0.18. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - GovGAST(); - virtual ~GovGAST(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* GovGAST_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/GovGAST1.cpp b/CGMES_2.4.13_18DEC2013/GovGAST1.cpp deleted file mode 100644 index 9408d556e..000000000 --- a/CGMES_2.4.13_18DEC2013/GovGAST1.cpp +++ /dev/null @@ -1,551 +0,0 @@ -#include -#include "TurbineGovernorDynamics.hpp" -#include "GovGAST1.hpp" - -#include "ActivePower.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Frequency.hpp" -#include "Frequency.hpp" -#include "ActivePower.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" - -using namespace CIMPP; - -GovGAST1::GovGAST1() {}; - -GovGAST1::~GovGAST1() {}; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -bool assign_GovGAST1_mwbase(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->mwbase; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST1_r(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->r; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST1_t1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST1_t2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST1_t3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST1_lmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->lmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST1_kt(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kt; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST1_vmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST1_vmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST1_fidle(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->fidle; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST1_rmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->rmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST1_loadinc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->loadinc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST1_tltr(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tltr; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST1_ltrate(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ltrate; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST1_a(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->a; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST1_b(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->b; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST1_db1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->db1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST1_eps(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->eps; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST1_db2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->db2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST1_gv1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gv1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST1_pgv1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pgv1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST1_gv2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gv2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST1_pgv2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pgv2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST1_gv3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gv3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST1_pgv3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pgv3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST1_gv4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gv4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST1_pgv4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pgv4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST1_gv5(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gv5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST1_pgv5(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pgv5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST1_gv6(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gv6; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST1_pgv6(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pgv6; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST1_ka(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ka; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST1_t4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST1_t5(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* GovGAST1_factory() { - return new GovGAST1; - } -} - -void GovGAST1::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:GovGAST1"), &GovGAST1_factory)); -} - -void GovGAST1::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:GovGAST1.mwbase"), &assign_GovGAST1_mwbase)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST1.r"), &assign_GovGAST1_r)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST1.t1"), &assign_GovGAST1_t1)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST1.t2"), &assign_GovGAST1_t2)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST1.t3"), &assign_GovGAST1_t3)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST1.lmax"), &assign_GovGAST1_lmax)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST1.kt"), &assign_GovGAST1_kt)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST1.vmax"), &assign_GovGAST1_vmax)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST1.vmin"), &assign_GovGAST1_vmin)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST1.fidle"), &assign_GovGAST1_fidle)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST1.rmax"), &assign_GovGAST1_rmax)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST1.loadinc"), &assign_GovGAST1_loadinc)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST1.tltr"), &assign_GovGAST1_tltr)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST1.ltrate"), &assign_GovGAST1_ltrate)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST1.a"), &assign_GovGAST1_a)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST1.b"), &assign_GovGAST1_b)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST1.db1"), &assign_GovGAST1_db1)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST1.eps"), &assign_GovGAST1_eps)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST1.db2"), &assign_GovGAST1_db2)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST1.gv1"), &assign_GovGAST1_gv1)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST1.pgv1"), &assign_GovGAST1_pgv1)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST1.gv2"), &assign_GovGAST1_gv2)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST1.pgv2"), &assign_GovGAST1_pgv2)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST1.gv3"), &assign_GovGAST1_gv3)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST1.pgv3"), &assign_GovGAST1_pgv3)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST1.gv4"), &assign_GovGAST1_gv4)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST1.pgv4"), &assign_GovGAST1_pgv4)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST1.gv5"), &assign_GovGAST1_gv5)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST1.pgv5"), &assign_GovGAST1_pgv5)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST1.gv6"), &assign_GovGAST1_gv6)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST1.pgv6"), &assign_GovGAST1_pgv6)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST1.ka"), &assign_GovGAST1_ka)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST1.t4"), &assign_GovGAST1_t4)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST1.t5"), &assign_GovGAST1_t5)); -} - -void GovGAST1::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char GovGAST1::debugName[] = "GovGAST1"; -const char* GovGAST1::debugString() -{ - return GovGAST1::debugName; -} - -const BaseClassDefiner GovGAST1::declare() -{ - return BaseClassDefiner(GovGAST1::addConstructToMap, GovGAST1::addPrimitiveAssignFnsToMap, GovGAST1::addClassAssignFnsToMap, GovGAST1::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/GovGAST1.hpp b/CGMES_2.4.13_18DEC2013/GovGAST1.hpp deleted file mode 100644 index c5655d7a1..000000000 --- a/CGMES_2.4.13_18DEC2013/GovGAST1.hpp +++ /dev/null @@ -1,77 +0,0 @@ -#ifndef GovGAST1_H -#define GovGAST1_H - -#include "TurbineGovernorDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "ActivePower.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Simple_Float.hpp" -#include "Frequency.hpp" - -namespace CIMPP { - - - /* - Modified single shaft gas turbine. - */ - class GovGAST1: public TurbineGovernorDynamics - { - - public: - CIMPP::ActivePower mwbase; /* Base for power values (MWbase) (> 0). Unit = MW. Default: nullptr */ - CIMPP::PU r; /* Permanent droop (R). Typical Value = 0.04. Default: nullptr */ - CIMPP::Seconds t1; /* Governor mechanism time constant (T1). T1 represents the natural valve positioning time constant of the governor for small disturbances, as seen when rate limiting is not in effect. Typical Value = 0.5. Default: nullptr */ - CIMPP::Seconds t2; /* Turbine power time constant (T2). T2 represents delay due to internal energy storage of the gas turbine engine. T2 can be used to give a rough approximation to the delay associated with acceleration of the compressor spool of a multi-shaft engine, or with the compressibility of gas in the plenum of the free power turbine of an aero-derivative unit, for example. Typical Value = 0.5. Default: nullptr */ - CIMPP::Seconds t3; /* Turbine exhaust temperature time constant (T3). T3 represents delay in the exhaust temperature and load limiting system. Typical Value = 3. Default: nullptr */ - CIMPP::PU lmax; /* Ambient temperature load limit (Lmax). Lmax is the turbine power output corresponding to the limiting exhaust gas temperature. Typical Value = 1. Default: nullptr */ - CIMPP::PU kt; /* Temperature limiter gain (Kt). Typical Value = 3. Default: nullptr */ - CIMPP::PU vmax; /* Maximum turbine power, PU of MWbase (Vmax). Typical Value = 1. Default: nullptr */ - CIMPP::PU vmin; /* Minimum turbine power, PU of MWbase (Vmin). Typical Value = 0. Default: nullptr */ - CIMPP::PU fidle; /* Fuel flow at zero power output (Fidle). Typical Value = 0.18. Default: nullptr */ - CIMPP::Simple_Float rmax; /* Maximum fuel valve opening rate (Rmax). Unit = PU/sec. Typical Value = 1. Default: nullptr */ - CIMPP::PU loadinc; /* Valve position change allowed at fast rate (Loadinc). Typical Value = 0.05. Default: nullptr */ - CIMPP::Seconds tltr; /* Valve position averaging time constant (Tltr). Typical Value = 10. Default: nullptr */ - CIMPP::Simple_Float ltrate; /* Maximum long term fuel valve opening rate (Ltrate). Typical Value = 0.02. Default: nullptr */ - CIMPP::Simple_Float a; /* Turbine power time constant numerator scale factor (a). Typical Value = 0.8. Default: nullptr */ - CIMPP::Simple_Float b; /* Turbine power time constant denominator scale factor (b). Typical Value = 1. Default: nullptr */ - CIMPP::Frequency db1; /* Intentional dead-band width (db1). Unit = Hz. Typical Value = 0. Default: nullptr */ - CIMPP::Frequency eps; /* Intentional db hysteresis (eps). Unit = Hz. Typical Value = 0. Default: nullptr */ - CIMPP::ActivePower db2; /* Unintentional dead-band (db2). Unit = MW. Typical Value = 0. Default: nullptr */ - CIMPP::PU gv1; /* Nonlinear gain point 1, PU gv (Gv1). Typical Value = 0. Default: nullptr */ - CIMPP::PU pgv1; /* Nonlinear gain point 1, PU power (Pgv1). Typical Value = 0. Default: nullptr */ - CIMPP::PU gv2; /* Nonlinear gain point 2,PU gv (Gv2). Typical Value = 0. Default: nullptr */ - CIMPP::PU pgv2; /* Nonlinear gain point 2, PU power (Pgv2). Typical Value = 0. Default: nullptr */ - CIMPP::PU gv3; /* Nonlinear gain point 3, PU gv (Gv3). Typical Value = 0. Default: nullptr */ - CIMPP::PU pgv3; /* Nonlinear gain point 3, PU power (Pgv3). Typical Value = 0. Default: nullptr */ - CIMPP::PU gv4; /* Nonlinear gain point 4, PU gv (Gv4). Typical Value = 0. Default: nullptr */ - CIMPP::PU pgv4; /* Nonlinear gain point 4, PU power (Pgv4). Typical Value = 0. Default: nullptr */ - CIMPP::PU gv5; /* Nonlinear gain point 5, PU gv (Gv5). Typical Value = 0. Default: nullptr */ - CIMPP::PU pgv5; /* Nonlinear gain point 5, PU power (Pgv5). Typical Value = 0. Default: nullptr */ - CIMPP::PU gv6; /* Nonlinear gain point 6, PU gv (Gv6). Typical Value = 0. Default: nullptr */ - CIMPP::PU pgv6; /* Nonlinear gain point 6, PU power (Pgv6). Typical Value = 0. Default: nullptr */ - CIMPP::PU ka; /* Governor gain (Ka). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds t4; /* Governor lead time constant (T4). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds t5; /* Governor lag time constant (T5). Typical Value = 0. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - GovGAST1(); - virtual ~GovGAST1(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* GovGAST1_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/GovGAST2.cpp b/CGMES_2.4.13_18DEC2013/GovGAST2.cpp deleted file mode 100644 index a68ea44b1..000000000 --- a/CGMES_2.4.13_18DEC2013/GovGAST2.cpp +++ /dev/null @@ -1,521 +0,0 @@ -#include -#include "TurbineGovernorDynamics.hpp" -#include "GovGAST2.hpp" - -#include "ActivePower.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Boolean.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "ActivePower.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Temperature.hpp" -#include "PU.hpp" -#include "Temperature.hpp" - -using namespace CIMPP; - -GovGAST2::GovGAST2() {}; - -GovGAST2::~GovGAST2() {}; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -bool assign_GovGAST2_mwbase(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->mwbase; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST2_w(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->w; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST2_x(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->x; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST2_y(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->y; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST2_z(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->z; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST2_etd(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->etd; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST2_tcd(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tcd; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST2_trate(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->trate; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST2_t(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST2_tmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST2_tmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST2_ecr(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ecr; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST2_k3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST2_a(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->a; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST2_b(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->b; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST2_c(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->c; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST2_tf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST2_kf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST2_k5(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST2_k4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST2_t3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST2_t4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST2_tt(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tt; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST2_t5(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST2_af1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->af1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST2_bf1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->bf1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST2_af2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->af2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST2_bf2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->bf2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST2_cf2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->cf2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST2_tr(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tr; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST2_k6(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k6; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST2_tc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* GovGAST2_factory() { - return new GovGAST2; - } -} - -void GovGAST2::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:GovGAST2"), &GovGAST2_factory)); -} - -void GovGAST2::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:GovGAST2.mwbase"), &assign_GovGAST2_mwbase)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST2.w"), &assign_GovGAST2_w)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST2.x"), &assign_GovGAST2_x)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST2.y"), &assign_GovGAST2_y)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST2.z"), &assign_GovGAST2_z)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST2.etd"), &assign_GovGAST2_etd)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST2.tcd"), &assign_GovGAST2_tcd)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST2.trate"), &assign_GovGAST2_trate)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST2.t"), &assign_GovGAST2_t)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST2.tmax"), &assign_GovGAST2_tmax)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST2.tmin"), &assign_GovGAST2_tmin)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST2.ecr"), &assign_GovGAST2_ecr)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST2.k3"), &assign_GovGAST2_k3)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST2.a"), &assign_GovGAST2_a)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST2.b"), &assign_GovGAST2_b)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST2.c"), &assign_GovGAST2_c)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST2.tf"), &assign_GovGAST2_tf)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST2.kf"), &assign_GovGAST2_kf)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST2.k5"), &assign_GovGAST2_k5)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST2.k4"), &assign_GovGAST2_k4)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST2.t3"), &assign_GovGAST2_t3)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST2.t4"), &assign_GovGAST2_t4)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST2.tt"), &assign_GovGAST2_tt)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST2.t5"), &assign_GovGAST2_t5)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST2.af1"), &assign_GovGAST2_af1)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST2.bf1"), &assign_GovGAST2_bf1)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST2.af2"), &assign_GovGAST2_af2)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST2.bf2"), &assign_GovGAST2_bf2)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST2.cf2"), &assign_GovGAST2_cf2)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST2.tr"), &assign_GovGAST2_tr)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST2.k6"), &assign_GovGAST2_k6)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST2.tc"), &assign_GovGAST2_tc)); -} - -void GovGAST2::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char GovGAST2::debugName[] = "GovGAST2"; -const char* GovGAST2::debugString() -{ - return GovGAST2::debugName; -} - -const BaseClassDefiner GovGAST2::declare() -{ - return BaseClassDefiner(GovGAST2::addConstructToMap, GovGAST2::addPrimitiveAssignFnsToMap, GovGAST2::addClassAssignFnsToMap, GovGAST2::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/GovGAST2.hpp b/CGMES_2.4.13_18DEC2013/GovGAST2.hpp deleted file mode 100644 index 514013ea0..000000000 --- a/CGMES_2.4.13_18DEC2013/GovGAST2.hpp +++ /dev/null @@ -1,76 +0,0 @@ -#ifndef GovGAST2_H -#define GovGAST2_H - -#include "TurbineGovernorDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "ActivePower.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Boolean.hpp" -#include "Simple_Float.hpp" -#include "Temperature.hpp" - -namespace CIMPP { - - - /* - Gas turbine model. - */ - class GovGAST2: public TurbineGovernorDynamics - { - - public: - CIMPP::ActivePower mwbase; /* Base for power values (MWbase) (> 0). Unit = MW. Default: nullptr */ - CIMPP::PU w; /* Governor gain (1/droop) on turbine rating (W). Default: nullptr */ - CIMPP::Seconds x; /* Governor lead time constant (X). Default: nullptr */ - CIMPP::Seconds y; /* Governor lag time constant (Y) (>0). Default: nullptr */ - CIMPP::Boolean z; /* Governor mode (Z). true = Droop false = ISO. Default: false */ - CIMPP::Seconds etd; /* Turbine and exhaust delay (Etd). Default: nullptr */ - CIMPP::Seconds tcd; /* Compressor discharge time constant (Tcd). Default: nullptr */ - CIMPP::ActivePower trate; /* Turbine rating (Trate). Unit = MW. Default: nullptr */ - CIMPP::Seconds t; /* Fuel Control Time Constant (T). Default: nullptr */ - CIMPP::PU tmax; /* Maximum Turbine limit (Tmax). Default: nullptr */ - CIMPP::PU tmin; /* Minimum Turbine limit (Tmin). Default: nullptr */ - CIMPP::Seconds ecr; /* Combustion reaction time delay (Ecr). Default: nullptr */ - CIMPP::PU k3; /* Ratio of Fuel Adjustment (K3). Default: nullptr */ - CIMPP::Simple_Float a; /* Valve positioner (A). Default: nullptr */ - CIMPP::Simple_Float b; /* Valve positioner (B). Default: nullptr */ - CIMPP::Simple_Float c; /* Valve positioner (C). Default: nullptr */ - CIMPP::Seconds tf; /* Fuel system time constant (Tf). Default: nullptr */ - CIMPP::PU kf; /* Fuel system feedback (Kf). Default: nullptr */ - CIMPP::PU k5; /* Gain of radiation shield (K5). Default: nullptr */ - CIMPP::PU k4; /* Gain of radiation shield (K4). Default: nullptr */ - CIMPP::Seconds t3; /* Radiation shield time constant (T3). Default: nullptr */ - CIMPP::Seconds t4; /* Thermocouple time constant (T4). Default: nullptr */ - CIMPP::Seconds tt; /* Temperature controller integration rate (Tt). Default: nullptr */ - CIMPP::Seconds t5; /* Temperature control time constant (T5). Default: nullptr */ - CIMPP::PU af1; /* Exhaust temperature Parameter (Af1). Unit = per unit temperature. Based on temperature in degrees C. Default: nullptr */ - CIMPP::PU bf1; /* (Bf1). Bf1 = E(1-w) where E (speed sensitivity coefficient) is 0.55 to 0.65 x Tr. Unit = per unit temperature. Based on temperature in degrees C. Default: nullptr */ - CIMPP::PU af2; /* Coefficient equal to 0.5(1-speed) (Af2). Default: nullptr */ - CIMPP::PU bf2; /* Turbine Torque Coefficient K (depends on heating value of fuel stream in combustion chamber) (Bf2). Default: nullptr */ - CIMPP::PU cf2; /* Coefficient defining fuel flow where power output is 0% (Cf2). Synchronous but no output. Typically 0.23 x K (23% fuel flow). Default: nullptr */ - CIMPP::Temperature tr; /* Rated temperature (Tr). Unit = [SYMBOL REMOVED]C depending on parameters Af1 and Bf1. Default: nullptr */ - CIMPP::PU k6; /* Minimum fuel flow (K6). Default: nullptr */ - CIMPP::Temperature tc; /* Temperature control (Tc). Unit = [SYMBOL REMOVED]F or [SYMBOL REMOVED]C depending on constants Af1 and Bf1. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - GovGAST2(); - virtual ~GovGAST2(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* GovGAST2_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/GovGAST3.cpp b/CGMES_2.4.13_18DEC2013/GovGAST3.cpp deleted file mode 100644 index bbb3afc72..000000000 --- a/CGMES_2.4.13_18DEC2013/GovGAST3.cpp +++ /dev/null @@ -1,356 +0,0 @@ -#include -#include "TurbineGovernorDynamics.hpp" -#include "GovGAST3.hpp" - -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Simple_Float.hpp" -#include "Seconds.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Temperature.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Simple_Float.hpp" -#include "Seconds.hpp" -#include "Temperature.hpp" -#include "Seconds.hpp" -#include "Temperature.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -GovGAST3::GovGAST3() {}; - -GovGAST3::~GovGAST3() {}; - - - - - - - - - - - - - - - - - - - - - - - - -bool assign_GovGAST3_bp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->bp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST3_tg(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tg; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST3_rcmx(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->rcmx; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST3_rcmn(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->rcmn; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST3_ky(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ky; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST3_ty(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ty; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST3_tac(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tac; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST3_kac(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kac; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST3_tc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST3_bca(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->bca; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST3_kca(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kca; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST3_dtc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->dtc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST3_ka(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ka; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST3_tsi(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tsi; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST3_ksi(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ksi; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST3_ttc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ttc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST3_tfen(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tfen; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST3_td(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->td; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST3_tt(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tt; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST3_mxef(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->mxef; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST3_mnef(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->mnef; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* GovGAST3_factory() { - return new GovGAST3; - } -} - -void GovGAST3::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:GovGAST3"), &GovGAST3_factory)); -} - -void GovGAST3::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:GovGAST3.bp"), &assign_GovGAST3_bp)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST3.tg"), &assign_GovGAST3_tg)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST3.rcmx"), &assign_GovGAST3_rcmx)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST3.rcmn"), &assign_GovGAST3_rcmn)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST3.ky"), &assign_GovGAST3_ky)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST3.ty"), &assign_GovGAST3_ty)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST3.tac"), &assign_GovGAST3_tac)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST3.kac"), &assign_GovGAST3_kac)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST3.tc"), &assign_GovGAST3_tc)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST3.bca"), &assign_GovGAST3_bca)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST3.kca"), &assign_GovGAST3_kca)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST3.dtc"), &assign_GovGAST3_dtc)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST3.ka"), &assign_GovGAST3_ka)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST3.tsi"), &assign_GovGAST3_tsi)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST3.ksi"), &assign_GovGAST3_ksi)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST3.ttc"), &assign_GovGAST3_ttc)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST3.tfen"), &assign_GovGAST3_tfen)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST3.td"), &assign_GovGAST3_td)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST3.tt"), &assign_GovGAST3_tt)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST3.mxef"), &assign_GovGAST3_mxef)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST3.mnef"), &assign_GovGAST3_mnef)); -} - -void GovGAST3::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char GovGAST3::debugName[] = "GovGAST3"; -const char* GovGAST3::debugString() -{ - return GovGAST3::debugName; -} - -const BaseClassDefiner GovGAST3::declare() -{ - return BaseClassDefiner(GovGAST3::addConstructToMap, GovGAST3::addPrimitiveAssignFnsToMap, GovGAST3::addClassAssignFnsToMap, GovGAST3::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/GovGAST3.hpp b/CGMES_2.4.13_18DEC2013/GovGAST3.hpp deleted file mode 100644 index d97568171..000000000 --- a/CGMES_2.4.13_18DEC2013/GovGAST3.hpp +++ /dev/null @@ -1,63 +0,0 @@ -#ifndef GovGAST3_H -#define GovGAST3_H - -#include "TurbineGovernorDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "Seconds.hpp" -#include "Simple_Float.hpp" -#include "Temperature.hpp" - -namespace CIMPP { - - - /* - Generic turbogas with acceleration and temperature controller. - */ - class GovGAST3: public TurbineGovernorDynamics - { - - public: - CIMPP::PU bp; /* Droop (bp). Typical Value = 0.05. Default: nullptr */ - CIMPP::Seconds tg; /* Time constant of speed governor (Tg). Typical Value = 0.05. Default: nullptr */ - CIMPP::PU rcmx; /* Maximum fuel flow (RCMX). Typical Value = 1. Default: nullptr */ - CIMPP::PU rcmn; /* Minimum fuel flow (RCMN). Typical Value = -0.1. Default: nullptr */ - CIMPP::Simple_Float ky; /* Coefficient of transfer function of fuel valve positioner (Ky). Typical Value = 1. Default: nullptr */ - CIMPP::Seconds ty; /* Time constant of fuel valve positioner (Ty). Typical Value = 0.2. Default: nullptr */ - CIMPP::Seconds tac; /* Fuel control time constant (Tac). Typical Value = 0.1. Default: nullptr */ - CIMPP::Simple_Float kac; /* Fuel system feedback (K). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tc; /* Compressor discharge volume time constant (Tc). Typical Value = 0.2. Default: nullptr */ - CIMPP::Simple_Float bca; /* Acceleration limit set-point (Bca). Unit = 1/s. Typical Value = 0.01. Default: nullptr */ - CIMPP::Simple_Float kca; /* Acceleration control integral gain (Kca). Unit = 1/s. Typical Value = 100. Default: nullptr */ - CIMPP::Temperature dtc; /* Exhaust temperature variation due to fuel flow increasing from 0 to 1 PU (deltaTc). Typical Value = 390. Default: nullptr */ - CIMPP::PU ka; /* Minimum fuel flow (Ka). Typical Value = 0.23. Default: nullptr */ - CIMPP::Seconds tsi; /* Time constant of radiation shield (Tsi). Typical Value = 15. Default: nullptr */ - CIMPP::Simple_Float ksi; /* Gain of radiation shield (Ksi). Typical Value = 0.8. Default: nullptr */ - CIMPP::Seconds ttc; /* Time constant of thermocouple (Ttc). Typical Value = 2.5. Default: nullptr */ - CIMPP::Temperature tfen; /* Turbine rated exhaust temperature correspondent to Pm=1 PU (Tfen). Typical Value = 540. Default: nullptr */ - CIMPP::Seconds td; /* Temperature controller derivative gain (Td). Typical Value = 3.3. Default: nullptr */ - CIMPP::Temperature tt; /* Temperature controller integration rate (Tt). Typical Value = 250. Default: nullptr */ - CIMPP::PU mxef; /* Fuel flow maximum positive error value (MX). Typical Value = 0.05. Default: nullptr */ - CIMPP::PU mnef; /* Fuel flow maximum negative error value (MN). Typical Value = -0.05. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - GovGAST3(); - virtual ~GovGAST3(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* GovGAST3_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/GovGAST4.cpp b/CGMES_2.4.13_18DEC2013/GovGAST4.cpp deleted file mode 100644 index ba189ce50..000000000 --- a/CGMES_2.4.13_18DEC2013/GovGAST4.cpp +++ /dev/null @@ -1,206 +0,0 @@ -#include -#include "TurbineGovernorDynamics.hpp" -#include "GovGAST4.hpp" - -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -GovGAST4::GovGAST4() {}; - -GovGAST4::~GovGAST4() {}; - - - - - - - - - - - - - - -bool assign_GovGAST4_bp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->bp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST4_tv(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tv; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST4_ta(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ta; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST4_tc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST4_tcm(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tcm; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST4_ktm(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ktm; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST4_tm(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tm; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST4_rymx(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->rymx; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST4_rymn(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->rymn; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST4_mxef(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->mxef; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGAST4_mnef(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGAST4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->mnef; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* GovGAST4_factory() { - return new GovGAST4; - } -} - -void GovGAST4::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:GovGAST4"), &GovGAST4_factory)); -} - -void GovGAST4::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:GovGAST4.bp"), &assign_GovGAST4_bp)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST4.tv"), &assign_GovGAST4_tv)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST4.ta"), &assign_GovGAST4_ta)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST4.tc"), &assign_GovGAST4_tc)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST4.tcm"), &assign_GovGAST4_tcm)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST4.ktm"), &assign_GovGAST4_ktm)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST4.tm"), &assign_GovGAST4_tm)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST4.rymx"), &assign_GovGAST4_rymx)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST4.rymn"), &assign_GovGAST4_rymn)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST4.mxef"), &assign_GovGAST4_mxef)); - assign_map.insert(std::make_pair(std::string("cim:GovGAST4.mnef"), &assign_GovGAST4_mnef)); -} - -void GovGAST4::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char GovGAST4::debugName[] = "GovGAST4"; -const char* GovGAST4::debugString() -{ - return GovGAST4::debugName; -} - -const BaseClassDefiner GovGAST4::declare() -{ - return BaseClassDefiner(GovGAST4::addConstructToMap, GovGAST4::addPrimitiveAssignFnsToMap, GovGAST4::addClassAssignFnsToMap, GovGAST4::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/GovGAST4.hpp b/CGMES_2.4.13_18DEC2013/GovGAST4.hpp deleted file mode 100644 index fdcc4c47f..000000000 --- a/CGMES_2.4.13_18DEC2013/GovGAST4.hpp +++ /dev/null @@ -1,51 +0,0 @@ -#ifndef GovGAST4_H -#define GovGAST4_H - -#include "TurbineGovernorDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "Seconds.hpp" - -namespace CIMPP { - - - /* - Generic turbogas. - */ - class GovGAST4: public TurbineGovernorDynamics - { - - public: - CIMPP::PU bp; /* Droop (bp). Typical Value = 0.05. Default: nullptr */ - CIMPP::Seconds tv; /* Time constant of fuel valve positioner (T). Typical Value = 0.1. Default: nullptr */ - CIMPP::Seconds ta; /* Maximum gate opening velocity (T). Typical Value = 3. Default: nullptr */ - CIMPP::Seconds tc; /* Maximum gate closing velocity (T). Typical Value = 0.5. Default: nullptr */ - CIMPP::Seconds tcm; /* Fuel control time constant (T). Typical Value = 0.1. Default: nullptr */ - CIMPP::PU ktm; /* Compressor gain (K). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tm; /* Compressor discharge volume time constant (T). Typical Value = 0.2. Default: nullptr */ - CIMPP::PU rymx; /* Maximum valve opening (RYMX). Typical Value = 1.1. Default: nullptr */ - CIMPP::PU rymn; /* Minimum valve opening (RYMN). Typical Value = 0. Default: nullptr */ - CIMPP::PU mxef; /* Fuel flow maximum positive error value (MX). Typical Value = 0.05. Default: nullptr */ - CIMPP::PU mnef; /* Fuel flow maximum negative error value (MN). Typical Value = -0.05. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - GovGAST4(); - virtual ~GovGAST4(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* GovGAST4_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/GovGASTWD.cpp b/CGMES_2.4.13_18DEC2013/GovGASTWD.cpp deleted file mode 100644 index 1d48d82fc..000000000 --- a/CGMES_2.4.13_18DEC2013/GovGASTWD.cpp +++ /dev/null @@ -1,536 +0,0 @@ -#include -#include "TurbineGovernorDynamics.hpp" -#include "GovGASTWD.hpp" - -#include "ActivePower.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "ActivePower.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Temperature.hpp" -#include "PU.hpp" -#include "Temperature.hpp" -#include "Seconds.hpp" - -using namespace CIMPP; - -GovGASTWD::GovGASTWD() {}; - -GovGASTWD::~GovGASTWD() {}; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -bool assign_GovGASTWD_mwbase(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGASTWD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->mwbase; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGASTWD_kdroop(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGASTWD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kdroop; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGASTWD_kp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGASTWD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGASTWD_ki(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGASTWD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ki; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGASTWD_kd(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGASTWD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kd; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGASTWD_etd(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGASTWD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->etd; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGASTWD_tcd(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGASTWD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tcd; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGASTWD_trate(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGASTWD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->trate; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGASTWD_t(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGASTWD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGASTWD_tmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGASTWD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGASTWD_tmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGASTWD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGASTWD_ecr(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGASTWD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ecr; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGASTWD_k3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGASTWD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGASTWD_a(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGASTWD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->a; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGASTWD_b(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGASTWD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->b; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGASTWD_c(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGASTWD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->c; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGASTWD_tf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGASTWD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGASTWD_kf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGASTWD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGASTWD_k5(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGASTWD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGASTWD_k4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGASTWD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGASTWD_t3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGASTWD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGASTWD_t4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGASTWD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGASTWD_tt(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGASTWD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tt; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGASTWD_t5(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGASTWD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGASTWD_af1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGASTWD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->af1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGASTWD_bf1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGASTWD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->bf1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGASTWD_af2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGASTWD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->af2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGASTWD_bf2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGASTWD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->bf2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGASTWD_cf2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGASTWD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->cf2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGASTWD_tr(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGASTWD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tr; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGASTWD_k6(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGASTWD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k6; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGASTWD_tc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGASTWD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovGASTWD_td(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovGASTWD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->td; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* GovGASTWD_factory() { - return new GovGASTWD; - } -} - -void GovGASTWD::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:GovGASTWD"), &GovGASTWD_factory)); -} - -void GovGASTWD::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:GovGASTWD.mwbase"), &assign_GovGASTWD_mwbase)); - assign_map.insert(std::make_pair(std::string("cim:GovGASTWD.kdroop"), &assign_GovGASTWD_kdroop)); - assign_map.insert(std::make_pair(std::string("cim:GovGASTWD.kp"), &assign_GovGASTWD_kp)); - assign_map.insert(std::make_pair(std::string("cim:GovGASTWD.ki"), &assign_GovGASTWD_ki)); - assign_map.insert(std::make_pair(std::string("cim:GovGASTWD.kd"), &assign_GovGASTWD_kd)); - assign_map.insert(std::make_pair(std::string("cim:GovGASTWD.etd"), &assign_GovGASTWD_etd)); - assign_map.insert(std::make_pair(std::string("cim:GovGASTWD.tcd"), &assign_GovGASTWD_tcd)); - assign_map.insert(std::make_pair(std::string("cim:GovGASTWD.trate"), &assign_GovGASTWD_trate)); - assign_map.insert(std::make_pair(std::string("cim:GovGASTWD.t"), &assign_GovGASTWD_t)); - assign_map.insert(std::make_pair(std::string("cim:GovGASTWD.tmax"), &assign_GovGASTWD_tmax)); - assign_map.insert(std::make_pair(std::string("cim:GovGASTWD.tmin"), &assign_GovGASTWD_tmin)); - assign_map.insert(std::make_pair(std::string("cim:GovGASTWD.ecr"), &assign_GovGASTWD_ecr)); - assign_map.insert(std::make_pair(std::string("cim:GovGASTWD.k3"), &assign_GovGASTWD_k3)); - assign_map.insert(std::make_pair(std::string("cim:GovGASTWD.a"), &assign_GovGASTWD_a)); - assign_map.insert(std::make_pair(std::string("cim:GovGASTWD.b"), &assign_GovGASTWD_b)); - assign_map.insert(std::make_pair(std::string("cim:GovGASTWD.c"), &assign_GovGASTWD_c)); - assign_map.insert(std::make_pair(std::string("cim:GovGASTWD.tf"), &assign_GovGASTWD_tf)); - assign_map.insert(std::make_pair(std::string("cim:GovGASTWD.kf"), &assign_GovGASTWD_kf)); - assign_map.insert(std::make_pair(std::string("cim:GovGASTWD.k5"), &assign_GovGASTWD_k5)); - assign_map.insert(std::make_pair(std::string("cim:GovGASTWD.k4"), &assign_GovGASTWD_k4)); - assign_map.insert(std::make_pair(std::string("cim:GovGASTWD.t3"), &assign_GovGASTWD_t3)); - assign_map.insert(std::make_pair(std::string("cim:GovGASTWD.t4"), &assign_GovGASTWD_t4)); - assign_map.insert(std::make_pair(std::string("cim:GovGASTWD.tt"), &assign_GovGASTWD_tt)); - assign_map.insert(std::make_pair(std::string("cim:GovGASTWD.t5"), &assign_GovGASTWD_t5)); - assign_map.insert(std::make_pair(std::string("cim:GovGASTWD.af1"), &assign_GovGASTWD_af1)); - assign_map.insert(std::make_pair(std::string("cim:GovGASTWD.bf1"), &assign_GovGASTWD_bf1)); - assign_map.insert(std::make_pair(std::string("cim:GovGASTWD.af2"), &assign_GovGASTWD_af2)); - assign_map.insert(std::make_pair(std::string("cim:GovGASTWD.bf2"), &assign_GovGASTWD_bf2)); - assign_map.insert(std::make_pair(std::string("cim:GovGASTWD.cf2"), &assign_GovGASTWD_cf2)); - assign_map.insert(std::make_pair(std::string("cim:GovGASTWD.tr"), &assign_GovGASTWD_tr)); - assign_map.insert(std::make_pair(std::string("cim:GovGASTWD.k6"), &assign_GovGASTWD_k6)); - assign_map.insert(std::make_pair(std::string("cim:GovGASTWD.tc"), &assign_GovGASTWD_tc)); - assign_map.insert(std::make_pair(std::string("cim:GovGASTWD.td"), &assign_GovGASTWD_td)); -} - -void GovGASTWD::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char GovGASTWD::debugName[] = "GovGASTWD"; -const char* GovGASTWD::debugString() -{ - return GovGASTWD::debugName; -} - -const BaseClassDefiner GovGASTWD::declare() -{ - return BaseClassDefiner(GovGASTWD::addConstructToMap, GovGASTWD::addPrimitiveAssignFnsToMap, GovGASTWD::addClassAssignFnsToMap, GovGASTWD::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/GovGASTWD.hpp b/CGMES_2.4.13_18DEC2013/GovGASTWD.hpp deleted file mode 100644 index d159b76c0..000000000 --- a/CGMES_2.4.13_18DEC2013/GovGASTWD.hpp +++ /dev/null @@ -1,76 +0,0 @@ -#ifndef GovGASTWD_H -#define GovGASTWD_H - -#include "TurbineGovernorDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "ActivePower.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Simple_Float.hpp" -#include "Temperature.hpp" - -namespace CIMPP { - - - /* - Woodward Gas turbine governor model. - */ - class GovGASTWD: public TurbineGovernorDynamics - { - - public: - CIMPP::ActivePower mwbase; /* Base for power values (MWbase) (> 0). Unit = MW. Default: nullptr */ - CIMPP::PU kdroop; /* (Kdroop). Default: nullptr */ - CIMPP::PU kp; /* PID Proportional gain (Kp). Default: nullptr */ - CIMPP::PU ki; /* Isochronous Governor Gain (Ki). Default: nullptr */ - CIMPP::PU kd; /* Drop Governor Gain (Kd). Default: nullptr */ - CIMPP::Seconds etd; /* Turbine and exhaust delay (Etd). Default: nullptr */ - CIMPP::Seconds tcd; /* Compressor discharge time constant (Tcd). Default: nullptr */ - CIMPP::ActivePower trate; /* Turbine rating (Trate). Unit = MW. Default: nullptr */ - CIMPP::Seconds t; /* Fuel Control Time Constant (T). Default: nullptr */ - CIMPP::PU tmax; /* Maximum Turbine limit (Tmax). Default: nullptr */ - CIMPP::PU tmin; /* Minimum Turbine limit (Tmin). Default: nullptr */ - CIMPP::Seconds ecr; /* Combustion reaction time delay (Ecr). Default: nullptr */ - CIMPP::PU k3; /* Ratio of Fuel Adjustment (K3). Default: nullptr */ - CIMPP::Simple_Float a; /* Valve positioner (). Default: nullptr */ - CIMPP::Simple_Float b; /* Valve positioner (). Default: nullptr */ - CIMPP::Simple_Float c; /* Valve positioner (). Default: nullptr */ - CIMPP::Seconds tf; /* Fuel system time constant (Tf). Default: nullptr */ - CIMPP::PU kf; /* Fuel system feedback (Kf). Default: nullptr */ - CIMPP::PU k5; /* Gain of radiation shield (K5). Default: nullptr */ - CIMPP::PU k4; /* Gain of radiation shield (K4). Default: nullptr */ - CIMPP::Seconds t3; /* Radiation shield time constant (T3). Default: nullptr */ - CIMPP::Seconds t4; /* Thermocouple time constant (T4). Default: nullptr */ - CIMPP::Seconds tt; /* Temperature controller integration rate (Tt). Default: nullptr */ - CIMPP::Seconds t5; /* Temperature control time constant (T5). Default: nullptr */ - CIMPP::PU af1; /* Exhaust temperature Parameter (Af1). Default: nullptr */ - CIMPP::PU bf1; /* (Bf1). Bf1 = E(1-w) where E (speed sensitivity coefficient) is 0.55 to 0.65 x Tr. Default: nullptr */ - CIMPP::PU af2; /* Coefficient equal to 0.5(1-speed) (Af2). Default: nullptr */ - CIMPP::PU bf2; /* Turbine Torque Coefficient K (depends on heating value of fuel stream in combustion chamber) (Bf2). Default: nullptr */ - CIMPP::PU cf2; /* Coefficient defining fuel flow where power output is 0% (Cf2). Synchronous but no output. Typically 0.23 x K(23% fuel flow). Default: nullptr */ - CIMPP::Temperature tr; /* Rated temperature (Tr). Default: nullptr */ - CIMPP::PU k6; /* Minimum fuel flow (K6). Default: nullptr */ - CIMPP::Temperature tc; /* Temperature control (Tc). Default: nullptr */ - CIMPP::Seconds td; /* Power transducer time constant (Td). Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - GovGASTWD(); - virtual ~GovGASTWD(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* GovGASTWD_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/GovHydro1.cpp b/CGMES_2.4.13_18DEC2013/GovHydro1.cpp deleted file mode 100644 index 3c59a34c4..000000000 --- a/CGMES_2.4.13_18DEC2013/GovHydro1.cpp +++ /dev/null @@ -1,251 +0,0 @@ -#include -#include "TurbineGovernorDynamics.hpp" -#include "GovHydro1.hpp" - -#include "ActivePower.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -GovHydro1::GovHydro1() {}; - -GovHydro1::~GovHydro1() {}; - - - - - - - - - - - - - - - - - -bool assign_GovHydro1_mwbase(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->mwbase; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro1_rperm(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->rperm; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro1_rtemp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->rtemp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro1_tr(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tr; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro1_tf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro1_tg(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tg; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro1_velm(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->velm; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro1_gmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro1_gmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro1_tw(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tw; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro1_at(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->at; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro1_dturb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->dturb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro1_qnl(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->qnl; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro1_hdam(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->hdam; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* GovHydro1_factory() { - return new GovHydro1; - } -} - -void GovHydro1::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:GovHydro1"), &GovHydro1_factory)); -} - -void GovHydro1::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:GovHydro1.mwbase"), &assign_GovHydro1_mwbase)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro1.rperm"), &assign_GovHydro1_rperm)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro1.rtemp"), &assign_GovHydro1_rtemp)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro1.tr"), &assign_GovHydro1_tr)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro1.tf"), &assign_GovHydro1_tf)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro1.tg"), &assign_GovHydro1_tg)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro1.velm"), &assign_GovHydro1_velm)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro1.gmax"), &assign_GovHydro1_gmax)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro1.gmin"), &assign_GovHydro1_gmin)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro1.tw"), &assign_GovHydro1_tw)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro1.at"), &assign_GovHydro1_at)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro1.dturb"), &assign_GovHydro1_dturb)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro1.qnl"), &assign_GovHydro1_qnl)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro1.hdam"), &assign_GovHydro1_hdam)); -} - -void GovHydro1::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char GovHydro1::debugName[] = "GovHydro1"; -const char* GovHydro1::debugString() -{ - return GovHydro1::debugName; -} - -const BaseClassDefiner GovHydro1::declare() -{ - return BaseClassDefiner(GovHydro1::addConstructToMap, GovHydro1::addPrimitiveAssignFnsToMap, GovHydro1::addClassAssignFnsToMap, GovHydro1::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/GovHydro1.hpp b/CGMES_2.4.13_18DEC2013/GovHydro1.hpp deleted file mode 100644 index f69867144..000000000 --- a/CGMES_2.4.13_18DEC2013/GovHydro1.hpp +++ /dev/null @@ -1,56 +0,0 @@ -#ifndef GovHydro1_H -#define GovHydro1_H - -#include "TurbineGovernorDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "ActivePower.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Simple_Float.hpp" - -namespace CIMPP { - - - /* - Basic Hydro turbine governor model. - */ - class GovHydro1: public TurbineGovernorDynamics - { - - public: - CIMPP::ActivePower mwbase; /* Base for power values (MWbase) (> 0). Unit = MW. Default: nullptr */ - CIMPP::PU rperm; /* Permanent droop (R) (>0). Typical Value = 0.04. Default: nullptr */ - CIMPP::PU rtemp; /* Temporary droop (r) (>R). Typical Value = 0.3. Default: nullptr */ - CIMPP::Seconds tr; /* Washout time constant (Tr) (>0). Typical Value = 5. Default: nullptr */ - CIMPP::Seconds tf; /* Filter time constant () (>0). Typical Value = 0.05. Default: nullptr */ - CIMPP::Seconds tg; /* Gate servo time constant (Tg) (>0). Typical Value = 0.5. Default: nullptr */ - CIMPP::Simple_Float velm; /* Maximum gate velocity (Vlem) (>0). Typical Value = 0.2. Default: nullptr */ - CIMPP::PU gmax; /* Maximum gate opening (Gmax) (>0). Typical Value = 1. Default: nullptr */ - CIMPP::PU gmin; /* Minimum gate opening (Gmin) (>=0). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tw; /* Water inertia time constant (Tw) (>0). Typical Value = 1. Default: nullptr */ - CIMPP::PU at; /* Turbine gain (At) (>0). Typical Value = 1.2. Default: nullptr */ - CIMPP::PU dturb; /* Turbine damping factor (Dturb) (>=0). Typical Value = 0.5. Default: nullptr */ - CIMPP::PU qnl; /* No-load flow at nominal head (qnl) (>=0). Typical Value = 0.08. Default: nullptr */ - CIMPP::PU hdam; /* Turbine nominal head (hdam). Typical Value = 1. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - GovHydro1(); - virtual ~GovHydro1(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* GovHydro1_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/GovHydro2.cpp b/CGMES_2.4.13_18DEC2013/GovHydro2.cpp deleted file mode 100644 index 7bbc244c5..000000000 --- a/CGMES_2.4.13_18DEC2013/GovHydro2.cpp +++ /dev/null @@ -1,476 +0,0 @@ -#include -#include "TurbineGovernorDynamics.hpp" -#include "GovHydro2.hpp" - -#include "ActivePower.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Frequency.hpp" -#include "Frequency.hpp" -#include "ActivePower.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -GovHydro2::GovHydro2() {}; - -GovHydro2::~GovHydro2() {}; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -bool assign_GovHydro2_mwbase(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->mwbase; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro2_tg(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tg; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro2_tp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro2_uo(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->uo; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro2_uc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->uc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro2_pmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro2_pmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro2_rperm(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->rperm; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro2_rtemp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->rtemp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro2_tr(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tr; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro2_tw(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tw; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro2_kturb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kturb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro2_aturb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->aturb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro2_bturb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->bturb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro2_db1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->db1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro2_eps(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->eps; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro2_db2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->db2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro2_gv1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gv1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro2_pgv1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pgv1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro2_gv2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gv2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro2_pgv2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pgv2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro2_gv3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gv3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro2_pgv3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pgv3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro2_gv4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gv4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro2_pgv4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pgv4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro2_gv5(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gv5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro2_pgv5(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pgv5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro2_gv6(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gv6; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro2_pgv6(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pgv6; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* GovHydro2_factory() { - return new GovHydro2; - } -} - -void GovHydro2::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:GovHydro2"), &GovHydro2_factory)); -} - -void GovHydro2::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:GovHydro2.mwbase"), &assign_GovHydro2_mwbase)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro2.tg"), &assign_GovHydro2_tg)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro2.tp"), &assign_GovHydro2_tp)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro2.uo"), &assign_GovHydro2_uo)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro2.uc"), &assign_GovHydro2_uc)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro2.pmax"), &assign_GovHydro2_pmax)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro2.pmin"), &assign_GovHydro2_pmin)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro2.rperm"), &assign_GovHydro2_rperm)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro2.rtemp"), &assign_GovHydro2_rtemp)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro2.tr"), &assign_GovHydro2_tr)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro2.tw"), &assign_GovHydro2_tw)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro2.kturb"), &assign_GovHydro2_kturb)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro2.aturb"), &assign_GovHydro2_aturb)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro2.bturb"), &assign_GovHydro2_bturb)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro2.db1"), &assign_GovHydro2_db1)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro2.eps"), &assign_GovHydro2_eps)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro2.db2"), &assign_GovHydro2_db2)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro2.gv1"), &assign_GovHydro2_gv1)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro2.pgv1"), &assign_GovHydro2_pgv1)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro2.gv2"), &assign_GovHydro2_gv2)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro2.pgv2"), &assign_GovHydro2_pgv2)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro2.gv3"), &assign_GovHydro2_gv3)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro2.pgv3"), &assign_GovHydro2_pgv3)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro2.gv4"), &assign_GovHydro2_gv4)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro2.pgv4"), &assign_GovHydro2_pgv4)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro2.gv5"), &assign_GovHydro2_gv5)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro2.pgv5"), &assign_GovHydro2_pgv5)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro2.gv6"), &assign_GovHydro2_gv6)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro2.pgv6"), &assign_GovHydro2_pgv6)); -} - -void GovHydro2::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char GovHydro2::debugName[] = "GovHydro2"; -const char* GovHydro2::debugString() -{ - return GovHydro2::debugName; -} - -const BaseClassDefiner GovHydro2::declare() -{ - return BaseClassDefiner(GovHydro2::addConstructToMap, GovHydro2::addPrimitiveAssignFnsToMap, GovHydro2::addClassAssignFnsToMap, GovHydro2::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/GovHydro2.hpp b/CGMES_2.4.13_18DEC2013/GovHydro2.hpp deleted file mode 100644 index 0b0ccddef..000000000 --- a/CGMES_2.4.13_18DEC2013/GovHydro2.hpp +++ /dev/null @@ -1,72 +0,0 @@ -#ifndef GovHydro2_H -#define GovHydro2_H - -#include "TurbineGovernorDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "ActivePower.hpp" -#include "Seconds.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "Frequency.hpp" - -namespace CIMPP { - - - /* - IEEE hydro turbine governor model represents plants with straightforward penstock configurations and hydraulic-dashpot governors. - */ - class GovHydro2: public TurbineGovernorDynamics - { - - public: - CIMPP::ActivePower mwbase; /* Base for power values (MWbase) (> 0). Unit = MW. Default: nullptr */ - CIMPP::Seconds tg; /* Gate servo time constant (Tg). Typical Value = 0.5. Default: nullptr */ - CIMPP::Seconds tp; /* Pilot servo valve time constant (Tp). Typical Value = 0.03. Default: nullptr */ - CIMPP::Simple_Float uo; /* Maximum gate opening velocity (Uo). Unit = PU/sec. Typical Value = 0.1. Default: nullptr */ - CIMPP::Simple_Float uc; /* Maximum gate closing velocity (Uc) (<0). Unit = PU/sec. Typical Value = -0.1. Default: nullptr */ - CIMPP::PU pmax; /* Maximum gate opening (Pmax). Typical Value = 1. Default: nullptr */ - CIMPP::PU pmin; /* Minimum gate opening; (). Typical Value = 0. Default: nullptr */ - CIMPP::PU rperm; /* Permanent droop (Rperm). Typical Value = 0.05. Default: nullptr */ - CIMPP::PU rtemp; /* Temporary droop (Rtemp). Typical Value = 0.5. Default: nullptr */ - CIMPP::Seconds tr; /* Dashpot time constant (Tr). Typical Value = 12. Default: nullptr */ - CIMPP::Seconds tw; /* Water inertia time constant (Tw). Typical Value = 2. Default: nullptr */ - CIMPP::PU kturb; /* Turbine gain (Kturb). Typical Value = 1. Default: nullptr */ - CIMPP::PU aturb; /* Turbine numerator multiplier (Aturb). Typical Value = -1. Default: nullptr */ - CIMPP::PU bturb; /* Turbine denominator multiplier (Bturb). Typical Value = 0.5. Default: nullptr */ - CIMPP::Frequency db1; /* Intentional deadband width (db1). Unit = Hz. Typical Value = 0. Default: nullptr */ - CIMPP::Frequency eps; /* Intentional db hysteresis (eps). Unit = Hz. Typical Value = 0. Default: nullptr */ - CIMPP::ActivePower db2; /* Unintentional deadband (db2). Unit = MW. Typical Value = 0. Default: nullptr */ - CIMPP::PU gv1; /* Nonlinear gain point 1, PU gv (Gv1). Typical Value = 0. Default: nullptr */ - CIMPP::PU pgv1; /* Nonlinear gain point 1, PU power (Pgv1). Typical Value = 0. Default: nullptr */ - CIMPP::PU gv2; /* Nonlinear gain point 2, PU gv (Gv2). Typical Value = 0. Default: nullptr */ - CIMPP::PU pgv2; /* Nonlinear gain point 2, PU power (Pgv2). Typical Value = 0. Default: nullptr */ - CIMPP::PU gv3; /* Nonlinear gain point 3, PU gv (Gv3). Typical Value = 0. Default: nullptr */ - CIMPP::PU pgv3; /* Nonlinear gain point 3, PU power (Pgv3). Typical Value = 0. Default: nullptr */ - CIMPP::PU gv4; /* Nonlinear gain point 4, PU gv (Gv4). Typical Value = 0. Default: nullptr */ - CIMPP::PU pgv4; /* Nonlinear gain point 4, PU power (Pgv4). Typical Value = 0. Default: nullptr */ - CIMPP::PU gv5; /* Nonlinear gain point 5, PU gv (Gv5). Typical Value = 0. Default: nullptr */ - CIMPP::PU pgv5; /* Nonlinear gain point 5, PU power (Pgv5). Typical Value = 0. Default: nullptr */ - CIMPP::PU gv6; /* Nonlinear gain point 6, PU gv (Gv6). Typical Value = 0. Default: nullptr */ - CIMPP::PU pgv6; /* Nonlinear gain point 6, PU power (Pgv6). Typical Value = 0. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - GovHydro2(); - virtual ~GovHydro2(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* GovHydro2_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/GovHydro3.cpp b/CGMES_2.4.13_18DEC2013/GovHydro3.cpp deleted file mode 100644 index fa1c1c461..000000000 --- a/CGMES_2.4.13_18DEC2013/GovHydro3.cpp +++ /dev/null @@ -1,581 +0,0 @@ -#include -#include "TurbineGovernorDynamics.hpp" -#include "GovHydro3.hpp" - -#include "ActivePower.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Boolean.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Frequency.hpp" -#include "Frequency.hpp" -#include "ActivePower.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -GovHydro3::GovHydro3() {}; - -GovHydro3::~GovHydro3() {}; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -bool assign_GovHydro3_mwbase(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->mwbase; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro3_pmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro3_pmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro3_governorControl(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->governorControl; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro3_rgate(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->rgate; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro3_relec(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->relec; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro3_td(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->td; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro3_tf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro3_tp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro3_velop(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->velop; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro3_velcl(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->velcl; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro3_k1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro3_k2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro3_ki(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ki; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro3_kg(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kg; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro3_tt(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tt; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro3_db1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->db1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro3_eps(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->eps; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro3_db2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->db2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro3_tw(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tw; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro3_at(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->at; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro3_dturb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->dturb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro3_qnl(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->qnl; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro3_h0(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->h0; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro3_gv1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gv1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro3_pgv1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pgv1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro3_gv2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gv2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro3_pgv2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pgv2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro3_gv3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gv3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro3_pgv3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pgv3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro3_gv4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gv4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro3_pgv4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pgv4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro3_gv5(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gv5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro3_pgv5(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pgv5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro3_gv6(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gv6; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro3_pgv6(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pgv6; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* GovHydro3_factory() { - return new GovHydro3; - } -} - -void GovHydro3::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:GovHydro3"), &GovHydro3_factory)); -} - -void GovHydro3::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:GovHydro3.mwbase"), &assign_GovHydro3_mwbase)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro3.pmax"), &assign_GovHydro3_pmax)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro3.pmin"), &assign_GovHydro3_pmin)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro3.governorControl"), &assign_GovHydro3_governorControl)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro3.rgate"), &assign_GovHydro3_rgate)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro3.relec"), &assign_GovHydro3_relec)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro3.td"), &assign_GovHydro3_td)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro3.tf"), &assign_GovHydro3_tf)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro3.tp"), &assign_GovHydro3_tp)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro3.velop"), &assign_GovHydro3_velop)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro3.velcl"), &assign_GovHydro3_velcl)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro3.k1"), &assign_GovHydro3_k1)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro3.k2"), &assign_GovHydro3_k2)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro3.ki"), &assign_GovHydro3_ki)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro3.kg"), &assign_GovHydro3_kg)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro3.tt"), &assign_GovHydro3_tt)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro3.db1"), &assign_GovHydro3_db1)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro3.eps"), &assign_GovHydro3_eps)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro3.db2"), &assign_GovHydro3_db2)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro3.tw"), &assign_GovHydro3_tw)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro3.at"), &assign_GovHydro3_at)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro3.dturb"), &assign_GovHydro3_dturb)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro3.qnl"), &assign_GovHydro3_qnl)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro3.h0"), &assign_GovHydro3_h0)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro3.gv1"), &assign_GovHydro3_gv1)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro3.pgv1"), &assign_GovHydro3_pgv1)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro3.gv2"), &assign_GovHydro3_gv2)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro3.pgv2"), &assign_GovHydro3_pgv2)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro3.gv3"), &assign_GovHydro3_gv3)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro3.pgv3"), &assign_GovHydro3_pgv3)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro3.gv4"), &assign_GovHydro3_gv4)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro3.pgv4"), &assign_GovHydro3_pgv4)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro3.gv5"), &assign_GovHydro3_gv5)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro3.pgv5"), &assign_GovHydro3_pgv5)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro3.gv6"), &assign_GovHydro3_gv6)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro3.pgv6"), &assign_GovHydro3_pgv6)); -} - -void GovHydro3::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char GovHydro3::debugName[] = "GovHydro3"; -const char* GovHydro3::debugString() -{ - return GovHydro3::debugName; -} - -const BaseClassDefiner GovHydro3::declare() -{ - return BaseClassDefiner(GovHydro3::addConstructToMap, GovHydro3::addPrimitiveAssignFnsToMap, GovHydro3::addClassAssignFnsToMap, GovHydro3::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/GovHydro3.hpp b/CGMES_2.4.13_18DEC2013/GovHydro3.hpp deleted file mode 100644 index 24d55981e..000000000 --- a/CGMES_2.4.13_18DEC2013/GovHydro3.hpp +++ /dev/null @@ -1,80 +0,0 @@ -#ifndef GovHydro3_H -#define GovHydro3_H - -#include "TurbineGovernorDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "ActivePower.hpp" -#include "PU.hpp" -#include "Boolean.hpp" -#include "Seconds.hpp" -#include "Simple_Float.hpp" -#include "Frequency.hpp" - -namespace CIMPP { - - - /* - Modified IEEE Hydro Governor-Turbine Model. This model differs from that defined in the IEEE modeling guideline paper in that the limits on gate position and velocity do not permit "wind up" of the upstream signals. - */ - class GovHydro3: public TurbineGovernorDynamics - { - - public: - CIMPP::ActivePower mwbase; /* Base for power values (MWbase) (> 0). Unit = MW. Default: nullptr */ - CIMPP::PU pmax; /* Maximum gate opening, PU of MWbase (Pmax). Typical Value = 1. Default: nullptr */ - CIMPP::PU pmin; /* Minimum gate opening, PU of MWbase (Pmin). Typical Value = 0. Default: nullptr */ - CIMPP::Boolean governorControl; /* Governor control flag (Cflag). true = PID control is active false = double derivative control is active. Typical Value = true. Default: false */ - CIMPP::PU rgate; /* Steady-state droop, PU, for governor output feedback (Rgate). Typical Value = 0. Default: nullptr */ - CIMPP::PU relec; /* Steady-state droop, PU, for electrical power feedback (Relec). Typical Value = 0.05. Default: nullptr */ - CIMPP::Seconds td; /* Input filter time constant (Td). Typical Value = 0.05. Default: nullptr */ - CIMPP::Seconds tf; /* Washout time constant (Tf). Typical Value = 0.1. Default: nullptr */ - CIMPP::Seconds tp; /* Gate servo time constant (Tp). Typical Value = 0.05. Default: nullptr */ - CIMPP::Simple_Float velop; /* Maximum gate opening velocity (Velop). Unit = PU/sec. Typical Value = 0.2. Default: nullptr */ - CIMPP::Simple_Float velcl; /* Maximum gate closing velocity (Velcl). Unit = PU/sec. Typical Value = -0.2. Default: nullptr */ - CIMPP::PU k1; /* Derivative gain (K1). Typical Value = 0.01. Default: nullptr */ - CIMPP::PU k2; /* Double derivative gain, if Cflag = -1 (K2). Typical Value = 2.5. Default: nullptr */ - CIMPP::PU ki; /* Integral gain (Ki). Typical Value = 0.5. Default: nullptr */ - CIMPP::PU kg; /* Gate servo gain (Kg). Typical Value = 2. Default: nullptr */ - CIMPP::Seconds tt; /* Power feedback time constant (Tt). Typical Value = 0.2. Default: nullptr */ - CIMPP::Frequency db1; /* Intentional dead-band width (db1). Unit = Hz. Typical Value = 0. Default: nullptr */ - CIMPP::Frequency eps; /* Intentional db hysteresis (eps). Unit = Hz. Typical Value = 0. Default: nullptr */ - CIMPP::ActivePower db2; /* Unintentional dead-band (db2). Unit = MW. Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tw; /* Water inertia time constant (Tw). Typical Value = 1. Default: nullptr */ - CIMPP::PU at; /* Turbine gain (At). Typical Value = 1.2. Default: nullptr */ - CIMPP::PU dturb; /* Turbine damping factor (Dturb). Typical Value = 0.2. Default: nullptr */ - CIMPP::PU qnl; /* No-load turbine flow at nominal head (Qnl). Typical Value = 0.08. Default: nullptr */ - CIMPP::PU h0; /* Turbine nominal head (H0). Typical Value = 1. Default: nullptr */ - CIMPP::PU gv1; /* Nonlinear gain point 1, PU gv (Gv1). Typical Value = 0. Default: nullptr */ - CIMPP::PU pgv1; /* Nonlinear gain point 1, PU power (Pgv1). Typical Value = 0. Default: nullptr */ - CIMPP::PU gv2; /* Nonlinear gain point 2, PU gv (Gv2). Typical Value = 0. Default: nullptr */ - CIMPP::PU pgv2; /* Nonlinear gain point 2, PU power (Pgv2). Typical Value = 0. Default: nullptr */ - CIMPP::PU gv3; /* Nonlinear gain point 3, PU gv (Gv3). Typical Value = 0. Default: nullptr */ - CIMPP::PU pgv3; /* Nonlinear gain point 3, PU power (Pgv3). Typical Value = 0. Default: nullptr */ - CIMPP::PU gv4; /* Nonlinear gain point 4, PU gv (Gv4). Typical Value = 0. Default: nullptr */ - CIMPP::PU pgv4; /* Nonlinear gain point 4, PU power (Pgv4). Typical Value = 0. Default: nullptr */ - CIMPP::PU gv5; /* Nonlinear gain point 5, PU gv (Gv5). Typical Value = 0. Default: nullptr */ - CIMPP::PU pgv5; /* Nonlinear gain point 5, PU power (Pgv5). Typical Value = 0. Default: nullptr */ - CIMPP::PU gv6; /* Nonlinear gain point 6, PU gv (Gv6). Typical Value = 0. Default: nullptr */ - CIMPP::PU pgv6; /* Nonlinear gain point 6, PU power (Pgv6). Typical Value = 0. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - GovHydro3(); - virtual ~GovHydro3(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* GovHydro3_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/GovHydro4.cpp b/CGMES_2.4.13_18DEC2013/GovHydro4.cpp deleted file mode 100644 index c53c0b5e1..000000000 --- a/CGMES_2.4.13_18DEC2013/GovHydro4.cpp +++ /dev/null @@ -1,611 +0,0 @@ -#include -#include "TurbineGovernorDynamics.hpp" -#include "GovHydro4.hpp" - -#include "ActivePower.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Frequency.hpp" -#include "Frequency.hpp" -#include "ActivePower.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "Seconds.hpp" - -using namespace CIMPP; - -GovHydro4::GovHydro4() {}; - -GovHydro4::~GovHydro4() {}; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -bool assign_GovHydro4_mwbase(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->mwbase; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro4_tg(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tg; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro4_tp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro4_uo(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->uo; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro4_uc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->uc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro4_gmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro4_gmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro4_rperm(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->rperm; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro4_rtemp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->rtemp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro4_tr(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tr; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro4_tw(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tw; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro4_at(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->at; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro4_dturb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->dturb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro4_hdam(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->hdam; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro4_qn1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->qn1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro4_db1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->db1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro4_eps(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->eps; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro4_db2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->db2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro4_gv0(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gv0; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro4_pgv0(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pgv0; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro4_gv1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gv1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro4_pgv1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pgv1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro4_gv2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gv2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro4_pgv2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pgv2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro4_gv3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gv3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro4_pgv3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pgv3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro4_gv4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gv4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro4_pgv4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pgv4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro4_gv5(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gv5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro4_pgv5(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pgv5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro4_bgv0(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->bgv0; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro4_bgv1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->bgv1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro4_bgv2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->bgv2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro4_bgv3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->bgv3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro4_bgv4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->bgv4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro4_bgv5(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->bgv5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro4_bmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->bmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydro4_tblade(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydro4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tblade; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* GovHydro4_factory() { - return new GovHydro4; - } -} - -void GovHydro4::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:GovHydro4"), &GovHydro4_factory)); -} - -void GovHydro4::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:GovHydro4.mwbase"), &assign_GovHydro4_mwbase)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro4.tg"), &assign_GovHydro4_tg)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro4.tp"), &assign_GovHydro4_tp)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro4.uo"), &assign_GovHydro4_uo)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro4.uc"), &assign_GovHydro4_uc)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro4.gmax"), &assign_GovHydro4_gmax)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro4.gmin"), &assign_GovHydro4_gmin)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro4.rperm"), &assign_GovHydro4_rperm)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro4.rtemp"), &assign_GovHydro4_rtemp)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro4.tr"), &assign_GovHydro4_tr)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro4.tw"), &assign_GovHydro4_tw)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro4.at"), &assign_GovHydro4_at)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro4.dturb"), &assign_GovHydro4_dturb)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro4.hdam"), &assign_GovHydro4_hdam)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro4.qn1"), &assign_GovHydro4_qn1)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro4.db1"), &assign_GovHydro4_db1)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro4.eps"), &assign_GovHydro4_eps)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro4.db2"), &assign_GovHydro4_db2)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro4.gv0"), &assign_GovHydro4_gv0)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro4.pgv0"), &assign_GovHydro4_pgv0)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro4.gv1"), &assign_GovHydro4_gv1)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro4.pgv1"), &assign_GovHydro4_pgv1)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro4.gv2"), &assign_GovHydro4_gv2)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro4.pgv2"), &assign_GovHydro4_pgv2)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro4.gv3"), &assign_GovHydro4_gv3)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro4.pgv3"), &assign_GovHydro4_pgv3)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro4.gv4"), &assign_GovHydro4_gv4)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro4.pgv4"), &assign_GovHydro4_pgv4)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro4.gv5"), &assign_GovHydro4_gv5)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro4.pgv5"), &assign_GovHydro4_pgv5)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro4.bgv0"), &assign_GovHydro4_bgv0)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro4.bgv1"), &assign_GovHydro4_bgv1)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro4.bgv2"), &assign_GovHydro4_bgv2)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro4.bgv3"), &assign_GovHydro4_bgv3)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro4.bgv4"), &assign_GovHydro4_bgv4)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro4.bgv5"), &assign_GovHydro4_bgv5)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro4.bmax"), &assign_GovHydro4_bmax)); - assign_map.insert(std::make_pair(std::string("cim:GovHydro4.tblade"), &assign_GovHydro4_tblade)); -} - -void GovHydro4::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char GovHydro4::debugName[] = "GovHydro4"; -const char* GovHydro4::debugString() -{ - return GovHydro4::debugName; -} - -const BaseClassDefiner GovHydro4::declare() -{ - return BaseClassDefiner(GovHydro4::addConstructToMap, GovHydro4::addPrimitiveAssignFnsToMap, GovHydro4::addClassAssignFnsToMap, GovHydro4::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/GovHydro4.hpp b/CGMES_2.4.13_18DEC2013/GovHydro4.hpp deleted file mode 100644 index 947e2a6fa..000000000 --- a/CGMES_2.4.13_18DEC2013/GovHydro4.hpp +++ /dev/null @@ -1,81 +0,0 @@ -#ifndef GovHydro4_H -#define GovHydro4_H - -#include "TurbineGovernorDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "ActivePower.hpp" -#include "Seconds.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "Frequency.hpp" - -namespace CIMPP { - - - /* - Hydro turbine and governor. Represents plants with straight-forward penstock configurations and hydraulic governors of traditional 'dashpot' type. This model can be used to represent simple, Francis, Pelton or Kaplan turbines. - */ - class GovHydro4: public TurbineGovernorDynamics - { - - public: - CIMPP::ActivePower mwbase; /* Base for power values (MWbase) (>0). Unit = MW. Default: nullptr */ - CIMPP::Seconds tg; /* Gate servo time constant (Tg) (>0). Typical Value = 0.5. Default: nullptr */ - CIMPP::Seconds tp; /* Pilot servo time constant (Tp). Typical Value = 0.1. Default: nullptr */ - CIMPP::Simple_Float uo; /* Max gate opening velocity (Uo). Typical Vlaue = 0.2. Default: nullptr */ - CIMPP::Simple_Float uc; /* Max gate closing velocity (Uc). Typical Value = 0.2. Default: nullptr */ - CIMPP::PU gmax; /* Maximum gate opening, PU of MWbase (Gmax). Typical Value = 1. Default: nullptr */ - CIMPP::PU gmin; /* Minimum gate opening, PU of MWbase (Gmin). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds rperm; /* Permanent droop (Rperm). Typical Value = 0.05. Default: nullptr */ - CIMPP::Seconds rtemp; /* Temporary droop (Rtemp). Typical Value = 0.3. Default: nullptr */ - CIMPP::Seconds tr; /* Dashpot time constant (Tr) (>0). Typical Value = 5. Default: nullptr */ - CIMPP::Seconds tw; /* Water inertia time constant (Tw) (>0). Typical Value = 1. Default: nullptr */ - CIMPP::PU at; /* Turbine gain (At). Typical Value = 1.2. Default: nullptr */ - CIMPP::PU dturb; /* Turbine damping factor (Dturb). Unit = delta P (PU of MWbase) / delta speed (PU). Typical Value = 0.5. Typical Value Francis = 1.1, Kaplan = 1.1. Default: nullptr */ - CIMPP::PU hdam; /* Head available at dam (hdam). Typical Value = 1. Default: nullptr */ - CIMPP::PU qn1; /* No-load flow at nominal head (Qnl). Typical Value = 0.08. Typical Value Francis = 0, Kaplan = 0. Default: nullptr */ - CIMPP::Frequency db1; /* Intentional deadband width (db1). Unit = Hz. Typical Value = 0. Default: nullptr */ - CIMPP::Frequency eps; /* Intentional db hysteresis (eps). Unit = Hz. Typical Value = 0. Default: nullptr */ - CIMPP::ActivePower db2; /* Unintentional dead-band (db2). Unit = MW. Typical Value = 0. Default: nullptr */ - CIMPP::PU gv0; /* Nonlinear gain point 0, PU gv (Gv0). Typical Value = 0. Typical Value Francis = 0.1, Kaplan = 0.1. Default: nullptr */ - CIMPP::PU pgv0; /* Nonlinear gain point 0, PU power (Pgv0). Typical Value = 0. Default: nullptr */ - CIMPP::PU gv1; /* Nonlinear gain point 1, PU gv (Gv1). Typical Value = 0. Typical Value Francis = 0.4, Kaplan = 0.4. Default: nullptr */ - CIMPP::PU pgv1; /* Nonlinear gain point 1, PU power (Pgv1). Typical Value = 0. Typical Value Francis = 0.42, Kaplan = 0.35. Default: nullptr */ - CIMPP::PU gv2; /* Nonlinear gain point 2, PU gv (Gv2). Typical Value = 0. Typical Value Francis = 0.5, Kaplan = 0.5. Default: nullptr */ - CIMPP::PU pgv2; /* Nonlinear gain point 2, PU power (Pgv2). Typical Value = 0. Typical Value Francis = 0.56, Kaplan = 0.468. Default: nullptr */ - CIMPP::PU gv3; /* Nonlinear gain point 3, PU gv (Gv3). Typical Value = 0. Typical Value Francis = 0.7, Kaplan = 0.7. Default: nullptr */ - CIMPP::PU pgv3; /* Nonlinear gain point 3, PU power (Pgv3). Typical Value = 0. Typical Value Francis = 0.8, Kaplan = 0.796. Default: nullptr */ - CIMPP::PU gv4; /* Nonlinear gain point 4, PU gv (Gv4). Typical Value = 0. Typical Value Francis = 0.8, Kaplan = 0.8. Default: nullptr */ - CIMPP::PU pgv4; /* Nonlinear gain point 4, PU power (Pgv4). Typical Value = 0. Typical Value Francis = 0.9, Kaplan = 0.917. Default: nullptr */ - CIMPP::PU gv5; /* Nonlinear gain point 5, PU gv (Gv5). Typical Value = 0. Typical Value Francis = 0.9, Kaplan = 0.9. Default: nullptr */ - CIMPP::PU pgv5; /* Nonlinear gain point 5, PU power (Pgv5). Typical Value = 0. Typical Value Francis = 0.97, Kaplan = 0.99. Default: nullptr */ - CIMPP::PU bgv0; /* Kaplan blade servo point 0 (Bgv0). Typical Value = 0. Default: nullptr */ - CIMPP::PU bgv1; /* Kaplan blade servo point 1 (Bgv1). Typical Value = 0. Default: nullptr */ - CIMPP::PU bgv2; /* Kaplan blade servo point 2 (Bgv2). Typical Value = 0. Typical Value Francis = 0, Kaplan = 0.1. Default: nullptr */ - CIMPP::PU bgv3; /* Kaplan blade servo point 3 (Bgv3). Typical Value = 0. Typical Value Francis = 0, Kaplan = 0.667. Default: nullptr */ - CIMPP::PU bgv4; /* Kaplan blade servo point 4 (Bgv4). Typical Value = 0. Typical Value Francis = 0, Kaplan = 0.9. Default: nullptr */ - CIMPP::PU bgv5; /* Kaplan blade servo point 5 (Bgv5). Typical Value = 0. Typical Value Francis = 0, Kaplan = 1. Default: nullptr */ - CIMPP::Simple_Float bmax; /* Maximum blade adjustment factor (Bmax). Typical Value = 0. Typical Value Francis = 0, Kaplan = 1.1276. Default: nullptr */ - CIMPP::Seconds tblade; /* Blade servo time constant (Tblade). Typical Value = 100. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - GovHydro4(); - virtual ~GovHydro4(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* GovHydro4_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/GovHydroDD.cpp b/CGMES_2.4.13_18DEC2013/GovHydroDD.cpp deleted file mode 100644 index 99cdbbd9b..000000000 --- a/CGMES_2.4.13_18DEC2013/GovHydroDD.cpp +++ /dev/null @@ -1,566 +0,0 @@ -#include -#include "TurbineGovernorDynamics.hpp" -#include "GovHydroDD.hpp" - -#include "ActivePower.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Frequency.hpp" -#include "Frequency.hpp" -#include "ActivePower.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Boolean.hpp" - -using namespace CIMPP; - -GovHydroDD::GovHydroDD() {}; - -GovHydroDD::~GovHydroDD() {}; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -bool assign_GovHydroDD_mwbase(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroDD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->mwbase; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroDD_pmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroDD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroDD_pmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroDD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroDD_r(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroDD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->r; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroDD_td(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroDD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->td; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroDD_tf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroDD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroDD_tp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroDD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroDD_velop(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroDD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->velop; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroDD_velcl(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroDD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->velcl; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroDD_k1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroDD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroDD_k2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroDD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroDD_ki(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroDD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ki; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroDD_kg(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroDD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kg; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroDD_tturb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroDD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tturb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroDD_aturb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroDD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->aturb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroDD_bturb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroDD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->bturb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroDD_tt(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroDD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tt; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroDD_db1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroDD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->db1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroDD_eps(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroDD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->eps; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroDD_db2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroDD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->db2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroDD_gv1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroDD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gv1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroDD_pgv1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroDD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pgv1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroDD_gv2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroDD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gv2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroDD_pgv2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroDD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pgv2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroDD_gv3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroDD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gv3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroDD_pgv3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroDD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pgv3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroDD_gv4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroDD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gv4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroDD_pgv4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroDD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pgv4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroDD_gv5(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroDD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gv5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroDD_pgv5(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroDD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pgv5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroDD_gv6(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroDD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gv6; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroDD_pgv6(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroDD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pgv6; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroDD_gmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroDD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroDD_gmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroDD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroDD_inputSignal(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroDD* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->inputSignal; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* GovHydroDD_factory() { - return new GovHydroDD; - } -} - -void GovHydroDD::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:GovHydroDD"), &GovHydroDD_factory)); -} - -void GovHydroDD::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:GovHydroDD.mwbase"), &assign_GovHydroDD_mwbase)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroDD.pmax"), &assign_GovHydroDD_pmax)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroDD.pmin"), &assign_GovHydroDD_pmin)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroDD.r"), &assign_GovHydroDD_r)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroDD.td"), &assign_GovHydroDD_td)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroDD.tf"), &assign_GovHydroDD_tf)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroDD.tp"), &assign_GovHydroDD_tp)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroDD.velop"), &assign_GovHydroDD_velop)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroDD.velcl"), &assign_GovHydroDD_velcl)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroDD.k1"), &assign_GovHydroDD_k1)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroDD.k2"), &assign_GovHydroDD_k2)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroDD.ki"), &assign_GovHydroDD_ki)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroDD.kg"), &assign_GovHydroDD_kg)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroDD.tturb"), &assign_GovHydroDD_tturb)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroDD.aturb"), &assign_GovHydroDD_aturb)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroDD.bturb"), &assign_GovHydroDD_bturb)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroDD.tt"), &assign_GovHydroDD_tt)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroDD.db1"), &assign_GovHydroDD_db1)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroDD.eps"), &assign_GovHydroDD_eps)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroDD.db2"), &assign_GovHydroDD_db2)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroDD.gv1"), &assign_GovHydroDD_gv1)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroDD.pgv1"), &assign_GovHydroDD_pgv1)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroDD.gv2"), &assign_GovHydroDD_gv2)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroDD.pgv2"), &assign_GovHydroDD_pgv2)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroDD.gv3"), &assign_GovHydroDD_gv3)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroDD.pgv3"), &assign_GovHydroDD_pgv3)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroDD.gv4"), &assign_GovHydroDD_gv4)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroDD.pgv4"), &assign_GovHydroDD_pgv4)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroDD.gv5"), &assign_GovHydroDD_gv5)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroDD.pgv5"), &assign_GovHydroDD_pgv5)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroDD.gv6"), &assign_GovHydroDD_gv6)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroDD.pgv6"), &assign_GovHydroDD_pgv6)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroDD.gmax"), &assign_GovHydroDD_gmax)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroDD.gmin"), &assign_GovHydroDD_gmin)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroDD.inputSignal"), &assign_GovHydroDD_inputSignal)); -} - -void GovHydroDD::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char GovHydroDD::debugName[] = "GovHydroDD"; -const char* GovHydroDD::debugString() -{ - return GovHydroDD::debugName; -} - -const BaseClassDefiner GovHydroDD::declare() -{ - return BaseClassDefiner(GovHydroDD::addConstructToMap, GovHydroDD::addPrimitiveAssignFnsToMap, GovHydroDD::addClassAssignFnsToMap, GovHydroDD::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/GovHydroDD.hpp b/CGMES_2.4.13_18DEC2013/GovHydroDD.hpp deleted file mode 100644 index 5d2377df0..000000000 --- a/CGMES_2.4.13_18DEC2013/GovHydroDD.hpp +++ /dev/null @@ -1,79 +0,0 @@ -#ifndef GovHydroDD_H -#define GovHydroDD_H - -#include "TurbineGovernorDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "ActivePower.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Simple_Float.hpp" -#include "Frequency.hpp" -#include "Boolean.hpp" - -namespace CIMPP { - - - /* - Double derivative hydro governor and turbine. - */ - class GovHydroDD: public TurbineGovernorDynamics - { - - public: - CIMPP::ActivePower mwbase; /* Base for power values (MWbase) (>0). Unit = MW. Default: nullptr */ - CIMPP::PU pmax; /* Maximum gate opening, PU of MWbase (Pmax). Typical Value = 1. Default: nullptr */ - CIMPP::PU pmin; /* Minimum gate opening, PU of MWbase (Pmin). Typical Value = 0. Default: nullptr */ - CIMPP::PU r; /* Steady state droop (R). Typical Value = 0.05. Default: nullptr */ - CIMPP::Seconds td; /* Input filter time constant (Td). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tf; /* Washout time constant (Tf). Typical Value = 0.1. Default: nullptr */ - CIMPP::Seconds tp; /* Gate servo time constant (Tp). Typical Value = 0.35. Default: nullptr */ - CIMPP::Simple_Float velop; /* Maximum gate opening velocity (Velop). Unit = PU/sec. Typical Value = 0.09. Default: nullptr */ - CIMPP::Simple_Float velcl; /* Maximum gate closing velocity (Velcl). Unit = PU/sec. Typical Value = -0.14. Default: nullptr */ - CIMPP::PU k1; /* Single derivative gain (K1). Typical Value = 3.6. Default: nullptr */ - CIMPP::PU k2; /* Double derivative gain (K2). Typical Value = 0.2. Default: nullptr */ - CIMPP::PU ki; /* Integral gain (Ki). Typical Value = 1. Default: nullptr */ - CIMPP::PU kg; /* Gate servo gain (Kg). Typical Value = 3. Default: nullptr */ - CIMPP::Seconds tturb; /* Turbine time constant (Tturb) (note 3). Typical Value = 0.8. Default: nullptr */ - CIMPP::PU aturb; /* Turbine numerator multiplier (Aturb) (note 3). Typical Value = -1. Default: nullptr */ - CIMPP::PU bturb; /* Turbine denominator multiplier (Bturb) (note 3). Typical Value = 0.5. Default: nullptr */ - CIMPP::Seconds tt; /* Power feedback time constant (Tt). Typical Value = 0.02. Default: nullptr */ - CIMPP::Frequency db1; /* Intentional dead-band width (db1). Unit = Hz. Typical Value = 0. Default: nullptr */ - CIMPP::Frequency eps; /* Intentional db hysteresis (eps). Unit = Hz. Typical Value = 0. Default: nullptr */ - CIMPP::ActivePower db2; /* Unintentional dead-band (db2). Unit = MW. Typical Value = 0. Default: nullptr */ - CIMPP::PU gv1; /* Nonlinear gain point 1, PU gv (Gv1). Typical Value = 0. Default: nullptr */ - CIMPP::PU pgv1; /* Nonlinear gain point 1, PU power (Pgv1). Typical Value = 0. Default: nullptr */ - CIMPP::PU gv2; /* Nonlinear gain point 2, PU gv (Gv2). Typical Value = 0. Default: nullptr */ - CIMPP::PU pgv2; /* Nonlinear gain point 2, PU power (Pgv2). Typical Value = 0. Default: nullptr */ - CIMPP::PU gv3; /* Nonlinear gain point 3, PU gv (Gv3). Typical Value = 0. Default: nullptr */ - CIMPP::PU pgv3; /* Nonlinear gain point 3, PU power (Pgv3). Typical Value = 0. Default: nullptr */ - CIMPP::PU gv4; /* Nonlinear gain point 4, PU gv (Gv4). Typical Value = 0. Default: nullptr */ - CIMPP::PU pgv4; /* Nonlinear gain point 4, PU power (Pgv4). Typical Value = 0. Default: nullptr */ - CIMPP::PU gv5; /* Nonlinear gain point 5, PU gv (Gv5). Typical Value = 0. Default: nullptr */ - CIMPP::PU pgv5; /* Nonlinear gain point 5, PU power (Pgv5). Typical Value = 0. Default: nullptr */ - CIMPP::PU gv6; /* Nonlinear gain point 6, PU gv (Gv6). Typical Value = 0. Default: nullptr */ - CIMPP::PU pgv6; /* Nonlinear gain point 6, PU power (Pgv6). Typical Value = 0. Default: nullptr */ - CIMPP::PU gmax; /* Maximum gate opening (Gmax). Typical Value = 0. Default: nullptr */ - CIMPP::PU gmin; /* Minimum gate opening (Gmin). Typical Value = 0. Default: nullptr */ - CIMPP::Boolean inputSignal; /* Input signal switch (Flag). true = Pe input is used false = feedback is received from CV. Flag is normally dependent on Tt. If Tf is zero, Flag is set to false. If Tf is not zero, Flag is set to true. Typical Value = true. Default: false */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - GovHydroDD(); - virtual ~GovHydroDD(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* GovHydroDD_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/GovHydroFrancis.cpp b/CGMES_2.4.13_18DEC2013/GovHydroFrancis.cpp deleted file mode 100644 index 168b227f5..000000000 --- a/CGMES_2.4.13_18DEC2013/GovHydroFrancis.cpp +++ /dev/null @@ -1,443 +0,0 @@ -#include -#include "TurbineGovernorDynamics.hpp" -#include "GovHydroFrancis.hpp" - -#include "PU.hpp" -#include "Area.hpp" -#include "Area.hpp" -#include "PU.hpp" -#include "Frequency.hpp" -#include "PU.hpp" -#include "FrancisGovernorControlKind.hpp" -#include "Length.hpp" -#include "Length.hpp" -#include "Length.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "VolumeFlowRate.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "Boolean.hpp" -#include "Length.hpp" - -using namespace CIMPP; - -GovHydroFrancis::GovHydroFrancis(): qn(nullptr) {}; - -GovHydroFrancis::~GovHydroFrancis() {}; - - - - - - - - - - - - - - - - -bool assign_GovHydroFrancis_qn(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(GovHydroFrancis* element = dynamic_cast(BaseClass_ptr1)) { - element->qn = dynamic_cast(BaseClass_ptr2); - if(element->qn != nullptr) - return true; - } - return false; -} - - - - - - - - - - - - - - -bool assign_GovHydroFrancis_am(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroFrancis* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->am; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroFrancis_av0(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroFrancis* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->av0; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroFrancis_av1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroFrancis* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->av1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroFrancis_bp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroFrancis* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->bp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroFrancis_db1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroFrancis* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->db1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroFrancis_etamax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroFrancis* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->etamax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroFrancis_governorControl(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroFrancis* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->governorControl; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroFrancis_h1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroFrancis* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->h1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroFrancis_h2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroFrancis* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->h2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroFrancis_hn(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroFrancis* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->hn; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroFrancis_kc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroFrancis* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroFrancis_kg(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroFrancis* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kg; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroFrancis_kt(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroFrancis* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kt; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroFrancis_qc0(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroFrancis* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->qc0; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -bool assign_GovHydroFrancis_ta(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroFrancis* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ta; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroFrancis_td(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroFrancis* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->td; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroFrancis_ts(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroFrancis* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ts; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroFrancis_twnc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroFrancis* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->twnc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroFrancis_twng(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroFrancis* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->twng; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroFrancis_tx(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroFrancis* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tx; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroFrancis_va(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroFrancis* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->va; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroFrancis_valvmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroFrancis* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->valvmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroFrancis_valvmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroFrancis* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->valvmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroFrancis_vc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroFrancis* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroFrancis_waterTunnelSurgeChamberSimulation(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroFrancis* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->waterTunnelSurgeChamberSimulation; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroFrancis_zsfc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroFrancis* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->zsfc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* GovHydroFrancis_factory() { - return new GovHydroFrancis; - } -} - -void GovHydroFrancis::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:GovHydroFrancis"), &GovHydroFrancis_factory)); -} - -void GovHydroFrancis::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:GovHydroFrancis.am"), &assign_GovHydroFrancis_am)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroFrancis.av0"), &assign_GovHydroFrancis_av0)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroFrancis.av1"), &assign_GovHydroFrancis_av1)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroFrancis.bp"), &assign_GovHydroFrancis_bp)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroFrancis.db1"), &assign_GovHydroFrancis_db1)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroFrancis.etamax"), &assign_GovHydroFrancis_etamax)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroFrancis.governorControl"), &assign_GovHydroFrancis_governorControl)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroFrancis.h1"), &assign_GovHydroFrancis_h1)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroFrancis.h2"), &assign_GovHydroFrancis_h2)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroFrancis.hn"), &assign_GovHydroFrancis_hn)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroFrancis.kc"), &assign_GovHydroFrancis_kc)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroFrancis.kg"), &assign_GovHydroFrancis_kg)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroFrancis.kt"), &assign_GovHydroFrancis_kt)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroFrancis.qc0"), &assign_GovHydroFrancis_qc0)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroFrancis.ta"), &assign_GovHydroFrancis_ta)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroFrancis.td"), &assign_GovHydroFrancis_td)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroFrancis.ts"), &assign_GovHydroFrancis_ts)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroFrancis.twnc"), &assign_GovHydroFrancis_twnc)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroFrancis.twng"), &assign_GovHydroFrancis_twng)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroFrancis.tx"), &assign_GovHydroFrancis_tx)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroFrancis.va"), &assign_GovHydroFrancis_va)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroFrancis.valvmax"), &assign_GovHydroFrancis_valvmax)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroFrancis.valvmin"), &assign_GovHydroFrancis_valvmin)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroFrancis.vc"), &assign_GovHydroFrancis_vc)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroFrancis.waterTunnelSurgeChamberSimulation"), &assign_GovHydroFrancis_waterTunnelSurgeChamberSimulation)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroFrancis.zsfc"), &assign_GovHydroFrancis_zsfc)); -} - -void GovHydroFrancis::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:GovHydroFrancis.qn"), &assign_GovHydroFrancis_qn)); - } - -const char GovHydroFrancis::debugName[] = "GovHydroFrancis"; -const char* GovHydroFrancis::debugString() -{ - return GovHydroFrancis::debugName; -} - -const BaseClassDefiner GovHydroFrancis::declare() -{ - return BaseClassDefiner(GovHydroFrancis::addConstructToMap, GovHydroFrancis::addPrimitiveAssignFnsToMap, GovHydroFrancis::addClassAssignFnsToMap, GovHydroFrancis::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/GovHydroFrancis.hpp b/CGMES_2.4.13_18DEC2013/GovHydroFrancis.hpp deleted file mode 100644 index 8a5077ada..000000000 --- a/CGMES_2.4.13_18DEC2013/GovHydroFrancis.hpp +++ /dev/null @@ -1,74 +0,0 @@ -#ifndef GovHydroFrancis_H -#define GovHydroFrancis_H - -#include "TurbineGovernorDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "Area.hpp" -#include "Frequency.hpp" -#include "FrancisGovernorControlKind.hpp" -#include "Length.hpp" -#include "Seconds.hpp" -#include "Simple_Float.hpp" -#include "Boolean.hpp" - -namespace CIMPP { - - -class VolumeFlowRate; - /* - Detailed hydro unit - Francis model. This model can be used to represent three types of governors. A schematic of the hydraulic system of detailed hydro unit models, like Francis and Pelton, is provided in the DetailedHydroModelHydraulicSystem diagram. - */ - class GovHydroFrancis: public TurbineGovernorDynamics - { - - public: - CIMPP::PU am; /* Opening section S at the maximum efficiency (Am). Typical Value = 0.7. Default: nullptr */ - CIMPP::Area av0; /* Area of the surge tank (A). Unit = m. Typical Value = 30. Default: nullptr */ - CIMPP::Area av1; /* Area of the compensation tank (A). Unit = m. Typical Value = 700. Default: nullptr */ - CIMPP::PU bp; /* Droop (Bp). Typical Value = 0.05. Default: nullptr */ - CIMPP::Frequency db1; /* Intentional dead-band width (DB1). Unit = Hz. Typical Value = 0. Default: nullptr */ - CIMPP::PU etamax; /* Maximum efficiency (EtaMax). Typical Value = 1.05. Default: nullptr */ - CIMPP::FrancisGovernorControlKind governorControl; /* Governor control flag (Cflag). Typical Value = mechanicHydrolicTachoAccelerator. Default: 0 */ - CIMPP::Length h1; /* Head of compensation chamber water level with respect to the level of penstock (H). Unit = m. Typical Value = 4. Default: nullptr */ - CIMPP::Length h2; /* Head of surge tank water level with respect to the level of penstock (H). Unit = m. Typical Value = 40. Default: nullptr */ - CIMPP::Length hn; /* Rated hydraulic head (H). Unit = m. Typical Value = 250. Default: nullptr */ - CIMPP::PU kc; /* Penstock loss coefficient (due to friction) (Kc). Typical Value = 0.025. Default: nullptr */ - CIMPP::PU kg; /* Water tunnel and surge chamber loss coefficient (due to friction) (Kg). Typical Value = 0.025. Default: nullptr */ - CIMPP::PU kt; /* Washout gain (Kt). Typical Value = 0.25. Default: nullptr */ - CIMPP::PU qc0; /* No-load turbine flow at nominal head (Qc0). Typical Value = 0.21. Default: nullptr */ - CIMPP::VolumeFlowRate* qn; /* Rated flow (Q). Unit = m/s. Typical Value = 40. Default: nullptr */ - CIMPP::Seconds ta; /* Derivative gain (Ta). Typical Value = 3. Default: nullptr */ - CIMPP::Seconds td; /* Washout time constant (Td). Typical Value = 3. Default: nullptr */ - CIMPP::Seconds ts; /* Gate servo time constant (Ts). Typical Value = 0.5. Default: nullptr */ - CIMPP::Seconds twnc; /* Water inertia time constant (Twnc). Typical Value = 1. Default: nullptr */ - CIMPP::Seconds twng; /* Water tunnel and surge chamber inertia time constant (Twng). Typical Value = 3. Default: nullptr */ - CIMPP::Seconds tx; /* Derivative feedback gain (Tx). Typical Value = 1. Default: nullptr */ - CIMPP::Simple_Float va; /* Maximum gate opening velocity (Va). Unit = PU/sec. Typical Value = 0.011. Default: nullptr */ - CIMPP::PU valvmax; /* Maximum gate opening (ValvMax). Typical Value = 1. Default: nullptr */ - CIMPP::PU valvmin; /* Minimum gate opening (ValvMin). Typical Value = 0. Default: nullptr */ - CIMPP::Simple_Float vc; /* Maximum gate closing velocity (Vc). Unit = PU/sec. Typical Value = -0.011. Default: nullptr */ - CIMPP::Boolean waterTunnelSurgeChamberSimulation; /* Water tunnel and surge chamber simulation (Tflag). true = enable of water tunnel and surge chamber simulation false = inhibit of water tunnel and surge chamber simulation. Typical Value = false. Default: false */ - CIMPP::Length zsfc; /* Head of upper water level with respect to the level of penstock (Zsfc). Unit = m. Typical Value = 25. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - GovHydroFrancis(); - virtual ~GovHydroFrancis(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* GovHydroFrancis_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/GovHydroIEEE0.cpp b/CGMES_2.4.13_18DEC2013/GovHydroIEEE0.cpp deleted file mode 100644 index dcb491f86..000000000 --- a/CGMES_2.4.13_18DEC2013/GovHydroIEEE0.cpp +++ /dev/null @@ -1,161 +0,0 @@ -#include -#include "TurbineGovernorDynamics.hpp" -#include "GovHydroIEEE0.hpp" - -#include "ActivePower.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -GovHydroIEEE0::GovHydroIEEE0() {}; - -GovHydroIEEE0::~GovHydroIEEE0() {}; - - - - - - - - - - - -bool assign_GovHydroIEEE0_mwbase(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroIEEE0* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->mwbase; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroIEEE0_k(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroIEEE0* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroIEEE0_t1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroIEEE0* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroIEEE0_t2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroIEEE0* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroIEEE0_t3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroIEEE0* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroIEEE0_t4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroIEEE0* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroIEEE0_pmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroIEEE0* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroIEEE0_pmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroIEEE0* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* GovHydroIEEE0_factory() { - return new GovHydroIEEE0; - } -} - -void GovHydroIEEE0::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:GovHydroIEEE0"), &GovHydroIEEE0_factory)); -} - -void GovHydroIEEE0::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:GovHydroIEEE0.mwbase"), &assign_GovHydroIEEE0_mwbase)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroIEEE0.k"), &assign_GovHydroIEEE0_k)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroIEEE0.t1"), &assign_GovHydroIEEE0_t1)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroIEEE0.t2"), &assign_GovHydroIEEE0_t2)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroIEEE0.t3"), &assign_GovHydroIEEE0_t3)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroIEEE0.t4"), &assign_GovHydroIEEE0_t4)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroIEEE0.pmax"), &assign_GovHydroIEEE0_pmax)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroIEEE0.pmin"), &assign_GovHydroIEEE0_pmin)); -} - -void GovHydroIEEE0::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char GovHydroIEEE0::debugName[] = "GovHydroIEEE0"; -const char* GovHydroIEEE0::debugString() -{ - return GovHydroIEEE0::debugName; -} - -const BaseClassDefiner GovHydroIEEE0::declare() -{ - return BaseClassDefiner(GovHydroIEEE0::addConstructToMap, GovHydroIEEE0::addPrimitiveAssignFnsToMap, GovHydroIEEE0::addClassAssignFnsToMap, GovHydroIEEE0::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/GovHydroIEEE0.hpp b/CGMES_2.4.13_18DEC2013/GovHydroIEEE0.hpp deleted file mode 100644 index 070477617..000000000 --- a/CGMES_2.4.13_18DEC2013/GovHydroIEEE0.hpp +++ /dev/null @@ -1,49 +0,0 @@ -#ifndef GovHydroIEEE0_H -#define GovHydroIEEE0_H - -#include "TurbineGovernorDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "ActivePower.hpp" -#include "PU.hpp" -#include "Seconds.hpp" - -namespace CIMPP { - - - /* - IEEE Simplified Hydro Governor-Turbine Model. Used for Mechanical-Hydraulic and Electro-Hydraulic turbine governors, with our without steam feedback. Typical values given are for Mechanical-Hydraulic. Ref - */ - class GovHydroIEEE0: public TurbineGovernorDynamics - { - - public: - CIMPP::ActivePower mwbase; /* Base for power values (MWbase) (> 0). Unit = MW. Default: nullptr */ - CIMPP::PU k; /* Governor gain (K. Default: nullptr */ - CIMPP::Seconds t1; /* Governor lag time constant (T1). Typical Value = 0.25. Default: nullptr */ - CIMPP::Seconds t2; /* Governor lead time constant (T2. Typical Value = 0. Default: nullptr */ - CIMPP::Seconds t3; /* Gate actuator time constant (T3). Typical Value = 0.1. Default: nullptr */ - CIMPP::Seconds t4; /* Water starting time (T4). Default: nullptr */ - CIMPP::PU pmax; /* Gate maximum (Pmax). Default: nullptr */ - CIMPP::PU pmin; /* Gate minimum (Pmin). Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - GovHydroIEEE0(); - virtual ~GovHydroIEEE0(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* GovHydroIEEE0_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/GovHydroIEEE2.cpp b/CGMES_2.4.13_18DEC2013/GovHydroIEEE2.cpp deleted file mode 100644 index 1cc29756a..000000000 --- a/CGMES_2.4.13_18DEC2013/GovHydroIEEE2.cpp +++ /dev/null @@ -1,431 +0,0 @@ -#include -#include "TurbineGovernorDynamics.hpp" -#include "GovHydroIEEE2.hpp" - -#include "ActivePower.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -GovHydroIEEE2::GovHydroIEEE2() {}; - -GovHydroIEEE2::~GovHydroIEEE2() {}; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -bool assign_GovHydroIEEE2_mwbase(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->mwbase; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroIEEE2_tg(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tg; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroIEEE2_tp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroIEEE2_uo(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->uo; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroIEEE2_uc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->uc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroIEEE2_pmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroIEEE2_pmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroIEEE2_rperm(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->rperm; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroIEEE2_rtemp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->rtemp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroIEEE2_tr(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tr; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroIEEE2_tw(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tw; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroIEEE2_kturb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kturb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroIEEE2_aturb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->aturb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroIEEE2_bturb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->bturb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroIEEE2_gv1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gv1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroIEEE2_pgv1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pgv1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroIEEE2_gv2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gv2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroIEEE2_pgv2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pgv2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroIEEE2_gv3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gv3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroIEEE2_pgv3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pgv3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroIEEE2_gv4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gv4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroIEEE2_pgv4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pgv4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroIEEE2_gv5(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gv5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroIEEE2_pgv5(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pgv5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroIEEE2_gv6(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gv6; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroIEEE2_pgv6(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pgv6; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* GovHydroIEEE2_factory() { - return new GovHydroIEEE2; - } -} - -void GovHydroIEEE2::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:GovHydroIEEE2"), &GovHydroIEEE2_factory)); -} - -void GovHydroIEEE2::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:GovHydroIEEE2.mwbase"), &assign_GovHydroIEEE2_mwbase)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroIEEE2.tg"), &assign_GovHydroIEEE2_tg)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroIEEE2.tp"), &assign_GovHydroIEEE2_tp)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroIEEE2.uo"), &assign_GovHydroIEEE2_uo)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroIEEE2.uc"), &assign_GovHydroIEEE2_uc)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroIEEE2.pmax"), &assign_GovHydroIEEE2_pmax)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroIEEE2.pmin"), &assign_GovHydroIEEE2_pmin)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroIEEE2.rperm"), &assign_GovHydroIEEE2_rperm)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroIEEE2.rtemp"), &assign_GovHydroIEEE2_rtemp)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroIEEE2.tr"), &assign_GovHydroIEEE2_tr)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroIEEE2.tw"), &assign_GovHydroIEEE2_tw)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroIEEE2.kturb"), &assign_GovHydroIEEE2_kturb)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroIEEE2.aturb"), &assign_GovHydroIEEE2_aturb)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroIEEE2.bturb"), &assign_GovHydroIEEE2_bturb)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroIEEE2.gv1"), &assign_GovHydroIEEE2_gv1)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroIEEE2.pgv1"), &assign_GovHydroIEEE2_pgv1)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroIEEE2.gv2"), &assign_GovHydroIEEE2_gv2)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroIEEE2.pgv2"), &assign_GovHydroIEEE2_pgv2)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroIEEE2.gv3"), &assign_GovHydroIEEE2_gv3)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroIEEE2.pgv3"), &assign_GovHydroIEEE2_pgv3)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroIEEE2.gv4"), &assign_GovHydroIEEE2_gv4)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroIEEE2.pgv4"), &assign_GovHydroIEEE2_pgv4)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroIEEE2.gv5"), &assign_GovHydroIEEE2_gv5)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroIEEE2.pgv5"), &assign_GovHydroIEEE2_pgv5)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroIEEE2.gv6"), &assign_GovHydroIEEE2_gv6)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroIEEE2.pgv6"), &assign_GovHydroIEEE2_pgv6)); -} - -void GovHydroIEEE2::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char GovHydroIEEE2::debugName[] = "GovHydroIEEE2"; -const char* GovHydroIEEE2::debugString() -{ - return GovHydroIEEE2::debugName; -} - -const BaseClassDefiner GovHydroIEEE2::declare() -{ - return BaseClassDefiner(GovHydroIEEE2::addConstructToMap, GovHydroIEEE2::addPrimitiveAssignFnsToMap, GovHydroIEEE2::addClassAssignFnsToMap, GovHydroIEEE2::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/GovHydroIEEE2.hpp b/CGMES_2.4.13_18DEC2013/GovHydroIEEE2.hpp deleted file mode 100644 index c26fd2f36..000000000 --- a/CGMES_2.4.13_18DEC2013/GovHydroIEEE2.hpp +++ /dev/null @@ -1,68 +0,0 @@ -#ifndef GovHydroIEEE2_H -#define GovHydroIEEE2_H - -#include "TurbineGovernorDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "ActivePower.hpp" -#include "Seconds.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" - -namespace CIMPP { - - - /* - IEEE hydro turbine governor model represents plants with straightforward penstock configurations and hydraulic-dashpot governors. Ref - */ - class GovHydroIEEE2: public TurbineGovernorDynamics - { - - public: - CIMPP::ActivePower mwbase; /* Base for power values (MWbase) (> 0). Unit = MW. Default: nullptr */ - CIMPP::Seconds tg; /* Gate servo time constant (Tg). Typical Value = 0.5. Default: nullptr */ - CIMPP::Seconds tp; /* Pilot servo valve time constant (Tp). Typical Value = 0.03. Default: nullptr */ - CIMPP::Simple_Float uo; /* Maximum gate opening velocity (Uo). Unit = PU/sec. Typical Value = 0.1. Default: nullptr */ - CIMPP::Simple_Float uc; /* Maximum gate closing velocity (Uc) (<0). Typical Value = -0.1. Default: nullptr */ - CIMPP::PU pmax; /* Maximum gate opening (Pmax). Typical Value = 1. Default: nullptr */ - CIMPP::PU pmin; /* Minimum gate opening (Pmin). Typical Value = 0. Default: nullptr */ - CIMPP::PU rperm; /* Permanent droop (Rperm). Typical Value = 0.05. Default: nullptr */ - CIMPP::PU rtemp; /* Temporary droop (Rtemp). Typical Value = 0.5. Default: nullptr */ - CIMPP::Seconds tr; /* Dashpot time constant (Tr). Typical Value = 12. Default: nullptr */ - CIMPP::Seconds tw; /* Water inertia time constant (Tw). Typical Value = 2. Default: nullptr */ - CIMPP::PU kturb; /* Turbine gain (Kturb). Typical Value = 1. Default: nullptr */ - CIMPP::PU aturb; /* Turbine numerator multiplier (Aturb). Typical Value = -1. Default: nullptr */ - CIMPP::PU bturb; /* Turbine denominator multiplier (Bturb). Typical Value = 0.5. Default: nullptr */ - CIMPP::PU gv1; /* Nonlinear gain point 1, PU gv (Gv1). Typical Value = 0. Default: nullptr */ - CIMPP::PU pgv1; /* Nonlinear gain point 1, PU power (Pgv1). Typical Value = 0. Default: nullptr */ - CIMPP::PU gv2; /* Nonlinear gain point 2, PU gv (Gv2). Typical Value = 0. Default: nullptr */ - CIMPP::PU pgv2; /* Nonlinear gain point 2, PU power (Pgv2). Typical Value = 0. Default: nullptr */ - CIMPP::PU gv3; /* Nonlinear gain point 3, PU gv (Gv3). Typical Value = 0. Default: nullptr */ - CIMPP::PU pgv3; /* Nonlinear gain point 3, PU power (Pgv3). Typical Value = 0. Default: nullptr */ - CIMPP::PU gv4; /* Nonlinear gain point 4, PU gv (Gv4). Typical Value = 0. Default: nullptr */ - CIMPP::PU pgv4; /* Nonlinear gain point 4, PU power (Pgv4). Typical Value = 0. Default: nullptr */ - CIMPP::PU gv5; /* Nonlinear gain point 5, PU gv (Gv5). Typical Value = 0. Default: nullptr */ - CIMPP::PU pgv5; /* Nonlinear gain point 5, PU power (Pgv5). Typical Value = 0. Default: nullptr */ - CIMPP::PU gv6; /* Nonlinear gain point 6, PU gv (Gv6). Typical Value = 0. Default: nullptr */ - CIMPP::PU pgv6; /* Nonlinear gain point 6, PU power (Pgv6). Typical Value = 0. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - GovHydroIEEE2(); - virtual ~GovHydroIEEE2(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* GovHydroIEEE2_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/GovHydroPID.cpp b/CGMES_2.4.13_18DEC2013/GovHydroPID.cpp deleted file mode 100644 index 13df5253d..000000000 --- a/CGMES_2.4.13_18DEC2013/GovHydroPID.cpp +++ /dev/null @@ -1,536 +0,0 @@ -#include -#include "TurbineGovernorDynamics.hpp" -#include "GovHydroPID.hpp" - -#include "ActivePower.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Frequency.hpp" -#include "Boolean.hpp" -#include "Frequency.hpp" -#include "ActivePower.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -GovHydroPID::GovHydroPID() {}; - -GovHydroPID::~GovHydroPID() {}; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -bool assign_GovHydroPID_mwbase(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPID* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->mwbase; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPID_pmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPID* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPID_pmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPID* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPID_r(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPID* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->r; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPID_td(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPID* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->td; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPID_tf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPID* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPID_tp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPID* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPID_velop(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPID* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->velop; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPID_velcl(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPID* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->velcl; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPID_kd(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPID* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kd; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPID_kp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPID* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPID_ki(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPID* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ki; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPID_kg(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPID* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kg; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPID_tturb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPID* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tturb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPID_aturb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPID* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->aturb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPID_bturb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPID* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->bturb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPID_tt(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPID* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tt; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPID_db1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPID* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->db1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPID_inputSignal(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPID* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->inputSignal; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPID_eps(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPID* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->eps; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPID_db2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPID* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->db2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPID_gv1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPID* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gv1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPID_pgv1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPID* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pgv1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPID_gv2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPID* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gv2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPID_pgv2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPID* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pgv2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPID_gv3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPID* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gv3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPID_pgv3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPID* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pgv3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPID_gv4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPID* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gv4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPID_pgv4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPID* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pgv4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPID_gv5(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPID* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gv5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPID_pgv5(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPID* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pgv5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPID_gv6(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPID* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gv6; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPID_pgv6(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPID* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pgv6; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* GovHydroPID_factory() { - return new GovHydroPID; - } -} - -void GovHydroPID::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:GovHydroPID"), &GovHydroPID_factory)); -} - -void GovHydroPID::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:GovHydroPID.mwbase"), &assign_GovHydroPID_mwbase)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPID.pmax"), &assign_GovHydroPID_pmax)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPID.pmin"), &assign_GovHydroPID_pmin)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPID.r"), &assign_GovHydroPID_r)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPID.td"), &assign_GovHydroPID_td)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPID.tf"), &assign_GovHydroPID_tf)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPID.tp"), &assign_GovHydroPID_tp)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPID.velop"), &assign_GovHydroPID_velop)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPID.velcl"), &assign_GovHydroPID_velcl)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPID.kd"), &assign_GovHydroPID_kd)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPID.kp"), &assign_GovHydroPID_kp)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPID.ki"), &assign_GovHydroPID_ki)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPID.kg"), &assign_GovHydroPID_kg)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPID.tturb"), &assign_GovHydroPID_tturb)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPID.aturb"), &assign_GovHydroPID_aturb)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPID.bturb"), &assign_GovHydroPID_bturb)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPID.tt"), &assign_GovHydroPID_tt)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPID.db1"), &assign_GovHydroPID_db1)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPID.inputSignal"), &assign_GovHydroPID_inputSignal)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPID.eps"), &assign_GovHydroPID_eps)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPID.db2"), &assign_GovHydroPID_db2)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPID.gv1"), &assign_GovHydroPID_gv1)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPID.pgv1"), &assign_GovHydroPID_pgv1)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPID.gv2"), &assign_GovHydroPID_gv2)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPID.pgv2"), &assign_GovHydroPID_pgv2)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPID.gv3"), &assign_GovHydroPID_gv3)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPID.pgv3"), &assign_GovHydroPID_pgv3)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPID.gv4"), &assign_GovHydroPID_gv4)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPID.pgv4"), &assign_GovHydroPID_pgv4)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPID.gv5"), &assign_GovHydroPID_gv5)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPID.pgv5"), &assign_GovHydroPID_pgv5)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPID.gv6"), &assign_GovHydroPID_gv6)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPID.pgv6"), &assign_GovHydroPID_pgv6)); -} - -void GovHydroPID::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char GovHydroPID::debugName[] = "GovHydroPID"; -const char* GovHydroPID::debugString() -{ - return GovHydroPID::debugName; -} - -const BaseClassDefiner GovHydroPID::declare() -{ - return BaseClassDefiner(GovHydroPID::addConstructToMap, GovHydroPID::addPrimitiveAssignFnsToMap, GovHydroPID::addClassAssignFnsToMap, GovHydroPID::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/GovHydroPID.hpp b/CGMES_2.4.13_18DEC2013/GovHydroPID.hpp deleted file mode 100644 index b181c9197..000000000 --- a/CGMES_2.4.13_18DEC2013/GovHydroPID.hpp +++ /dev/null @@ -1,77 +0,0 @@ -#ifndef GovHydroPID_H -#define GovHydroPID_H - -#include "TurbineGovernorDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "ActivePower.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Simple_Float.hpp" -#include "Frequency.hpp" -#include "Boolean.hpp" - -namespace CIMPP { - - - /* - PID governor and turbine. - */ - class GovHydroPID: public TurbineGovernorDynamics - { - - public: - CIMPP::ActivePower mwbase; /* Base for power values (MWbase) (>0). Unit = MW. Default: nullptr */ - CIMPP::PU pmax; /* Maximum gate opening, PU of MWbase (Pmax). Typical Value = 1. Default: nullptr */ - CIMPP::PU pmin; /* Minimum gate opening, PU of MWbase (Pmin). Typical Value = 0. Default: nullptr */ - CIMPP::PU r; /* Steady state droop (R). Typical Value = 0.05. Default: nullptr */ - CIMPP::Seconds td; /* Input filter time constant (Td). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tf; /* Washout time constant (Tf). Typical Value = 0.1. Default: nullptr */ - CIMPP::Seconds tp; /* Gate servo time constant (Tp). Typical Value = 0.35. Default: nullptr */ - CIMPP::Simple_Float velop; /* Maximum gate opening velocity (Velop). Unit = PU/sec. Typical Value = 0.09. Default: nullptr */ - CIMPP::Simple_Float velcl; /* Maximum gate closing velocity (Velcl). Unit = PU/sec. Typical Value = -0.14. Default: nullptr */ - CIMPP::PU kd; /* Derivative gain (Kd). Typical Value = 1.11. Default: nullptr */ - CIMPP::PU kp; /* Proportional gain (Kp). Typical Value = 0.1. Default: nullptr */ - CIMPP::PU ki; /* Integral gain (Ki). Typical Value = 0.36. Default: nullptr */ - CIMPP::PU kg; /* Gate servo gain (Kg). Typical Value = 2.5. Default: nullptr */ - CIMPP::Seconds tturb; /* Turbine time constant (Tturb) (note 3). Typical Value = 0.8. Default: nullptr */ - CIMPP::PU aturb; /* Turbine numerator multiplier (Aturb) (note 3). Typical Value -1. Default: nullptr */ - CIMPP::PU bturb; /* Turbine denominator multiplier (Bturb) (note 3). Typical Value = 0.5. Default: nullptr */ - CIMPP::Seconds tt; /* Power feedback time constant (Tt). Typical Value = 0.02. Default: nullptr */ - CIMPP::Frequency db1; /* Intentional dead-band width (db1). Unit = Hz. Typical Value = 0. Default: nullptr */ - CIMPP::Boolean inputSignal; /* Input signal switch (Flag). true = Pe input is used false = feedback is received from CV. Flag is normally dependent on Tt. If Tf is zero, Flag is set to false. If Tf is not zero, Flag is set to true. Typical Value = true. Default: false */ - CIMPP::Frequency eps; /* Intentional db hysteresis (eps). Unit = Hz. Typical Value = 0. Default: nullptr */ - CIMPP::ActivePower db2; /* Unintentional dead-band (db2). Unit = MW. Typical Value = 0. Default: nullptr */ - CIMPP::PU gv1; /* Nonlinear gain point 1, PU gv (Gv1). Typical Value = 0. Default: nullptr */ - CIMPP::PU pgv1; /* Nonlinear gain point 1, PU power (Pgv1). Typical Value = 0. Default: nullptr */ - CIMPP::PU gv2; /* Nonlinear gain point 2, PU gv (Gv2). Typical Value = 0. Default: nullptr */ - CIMPP::PU pgv2; /* Nonlinear gain point 2, PU power (Pgv2). Typical Value = 0. Default: nullptr */ - CIMPP::PU gv3; /* Nonlinear gain point 3, PU gv (Gv3). Typical Value = 0. Default: nullptr */ - CIMPP::PU pgv3; /* Nonlinear gain point 3, PU power (Pgv3). Typical Value = 0. Default: nullptr */ - CIMPP::PU gv4; /* Nonlinear gain point 4, PU gv (Gv4). Typical Value = 0. Default: nullptr */ - CIMPP::PU pgv4; /* Nonlinear gain point 4, PU power (Pgv4). Typical Value = 0. Default: nullptr */ - CIMPP::PU gv5; /* Nonlinear gain point 5, PU gv (Gv5). Typical Value = 0. Default: nullptr */ - CIMPP::PU pgv5; /* Nonlinear gain point 5, PU power (Pgv5). Typical Value = 0. Default: nullptr */ - CIMPP::PU gv6; /* Nonlinear gain point 6, PU gv (Gv6). Typical Value = 0. Default: nullptr */ - CIMPP::PU pgv6; /* Nonlinear gain point 6, PU power (Pgv6). Typical Value = 0. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - GovHydroPID(); - virtual ~GovHydroPID(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* GovHydroPID_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/GovHydroPID2.cpp b/CGMES_2.4.13_18DEC2013/GovHydroPID2.cpp deleted file mode 100644 index a6b5ae218..000000000 --- a/CGMES_2.4.13_18DEC2013/GovHydroPID2.cpp +++ /dev/null @@ -1,371 +0,0 @@ -#include -#include "TurbineGovernorDynamics.hpp" -#include "GovHydroPID2.hpp" - -#include "ActivePower.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Boolean.hpp" - -using namespace CIMPP; - -GovHydroPID2::GovHydroPID2() {}; - -GovHydroPID2::~GovHydroPID2() {}; - - - - - - - - - - - - - - - - - - - - - - - - - -bool assign_GovHydroPID2_mwbase(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPID2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->mwbase; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPID2_treg(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPID2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->treg; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPID2_rperm(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPID2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->rperm; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPID2_kp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPID2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPID2_ki(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPID2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ki; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPID2_kd(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPID2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kd; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPID2_ta(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPID2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ta; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPID2_tb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPID2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPID2_velmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPID2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->velmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPID2_velmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPID2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->velmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPID2_gmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPID2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPID2_gmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPID2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPID2_tw(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPID2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tw; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPID2_d(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPID2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->d; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPID2_g0(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPID2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->g0; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPID2_g1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPID2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->g1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPID2_p1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPID2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->p1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPID2_g2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPID2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->g2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPID2_p2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPID2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->p2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPID2_p3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPID2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->p3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPID2_atw(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPID2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->atw; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPID2_feedbackSignal(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPID2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->feedbackSignal; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* GovHydroPID2_factory() { - return new GovHydroPID2; - } -} - -void GovHydroPID2::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:GovHydroPID2"), &GovHydroPID2_factory)); -} - -void GovHydroPID2::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:GovHydroPID2.mwbase"), &assign_GovHydroPID2_mwbase)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPID2.treg"), &assign_GovHydroPID2_treg)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPID2.rperm"), &assign_GovHydroPID2_rperm)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPID2.kp"), &assign_GovHydroPID2_kp)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPID2.ki"), &assign_GovHydroPID2_ki)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPID2.kd"), &assign_GovHydroPID2_kd)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPID2.ta"), &assign_GovHydroPID2_ta)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPID2.tb"), &assign_GovHydroPID2_tb)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPID2.velmax"), &assign_GovHydroPID2_velmax)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPID2.velmin"), &assign_GovHydroPID2_velmin)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPID2.gmax"), &assign_GovHydroPID2_gmax)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPID2.gmin"), &assign_GovHydroPID2_gmin)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPID2.tw"), &assign_GovHydroPID2_tw)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPID2.d"), &assign_GovHydroPID2_d)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPID2.g0"), &assign_GovHydroPID2_g0)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPID2.g1"), &assign_GovHydroPID2_g1)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPID2.p1"), &assign_GovHydroPID2_p1)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPID2.g2"), &assign_GovHydroPID2_g2)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPID2.p2"), &assign_GovHydroPID2_p2)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPID2.p3"), &assign_GovHydroPID2_p3)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPID2.atw"), &assign_GovHydroPID2_atw)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPID2.feedbackSignal"), &assign_GovHydroPID2_feedbackSignal)); -} - -void GovHydroPID2::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char GovHydroPID2::debugName[] = "GovHydroPID2"; -const char* GovHydroPID2::debugString() -{ - return GovHydroPID2::debugName; -} - -const BaseClassDefiner GovHydroPID2::declare() -{ - return BaseClassDefiner(GovHydroPID2::addConstructToMap, GovHydroPID2::addPrimitiveAssignFnsToMap, GovHydroPID2::addClassAssignFnsToMap, GovHydroPID2::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/GovHydroPID2.hpp b/CGMES_2.4.13_18DEC2013/GovHydroPID2.hpp deleted file mode 100644 index e65ae27f1..000000000 --- a/CGMES_2.4.13_18DEC2013/GovHydroPID2.hpp +++ /dev/null @@ -1,65 +0,0 @@ -#ifndef GovHydroPID2_H -#define GovHydroPID2_H - -#include "TurbineGovernorDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "ActivePower.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "Boolean.hpp" - -namespace CIMPP { - - - /* - Hydro turbine and governor. Represents plants with straight forward penstock configurations and "three term" electro-hydraulic governors (i.e. Woodard electronic). - */ - class GovHydroPID2: public TurbineGovernorDynamics - { - - public: - CIMPP::ActivePower mwbase; /* Base for power values (MWbase) (>0). Unit = MW. Default: nullptr */ - CIMPP::Seconds treg; /* Speed detector time constant (Treg). Typical Value = 0. Default: nullptr */ - CIMPP::PU rperm; /* Permanent drop (Rperm). Typical Value = 0. Default: nullptr */ - CIMPP::PU kp; /* Proportional gain (Kp). Typical Value = 0. Default: nullptr */ - CIMPP::Simple_Float ki; /* Reset gain (Ki). Unit = PU/ sec. Typical Value = 0. Default: nullptr */ - CIMPP::PU kd; /* Derivative gain (Kd). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds ta; /* Controller time constant (Ta) (>0). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tb; /* Gate servo time constant (Tb) (>0). Typical Value = 0. Default: nullptr */ - CIMPP::Simple_Float velmax; /* Maximum gate opening velocity (Velmax). Unit = PU/sec. Typical Value = 0. Default: nullptr */ - CIMPP::Simple_Float velmin; /* Maximum gate closing velocity (Velmin). Unit = PU/sec. Typical Value = 0. Default: nullptr */ - CIMPP::PU gmax; /* Maximum gate opening (Gmax). Typical Value = 0. Default: nullptr */ - CIMPP::PU gmin; /* Minimum gate opening (Gmin). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tw; /* Water inertia time constant (Tw) (>0). Typical Value = 0. Default: nullptr */ - CIMPP::PU d; /* Turbine damping factor (D). Unit = delta P / delta speed. Typical Value = 0. Default: nullptr */ - CIMPP::PU g0; /* Gate opening at speed no load (G0). Typical Value = 0. Default: nullptr */ - CIMPP::PU g1; /* Intermediate gate opening (G1). Typical Value = 0. Default: nullptr */ - CIMPP::PU p1; /* Power at gate opening G1 (P1). Typical Value = 0. Default: nullptr */ - CIMPP::PU g2; /* Intermediate gate opening (G2). Typical Value = 0. Default: nullptr */ - CIMPP::PU p2; /* Power at gate opening G2 (P2). Typical Value = 0. Default: nullptr */ - CIMPP::PU p3; /* Power at full opened gate (P3). Typical Value = 0. Default: nullptr */ - CIMPP::PU atw; /* Factor multiplying Tw (Atw). Typical Value = 0. Default: nullptr */ - CIMPP::Boolean feedbackSignal; /* Feedback signal type flag (Flag). true = use gate position feedback signal false = use Pe. Default: false */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - GovHydroPID2(); - virtual ~GovHydroPID2(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* GovHydroPID2_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/GovHydroPelton.cpp b/CGMES_2.4.13_18DEC2013/GovHydroPelton.cpp deleted file mode 100644 index 707d20f93..000000000 --- a/CGMES_2.4.13_18DEC2013/GovHydroPelton.cpp +++ /dev/null @@ -1,458 +0,0 @@ -#include -#include "TurbineGovernorDynamics.hpp" -#include "GovHydroPelton.hpp" - -#include "Area.hpp" -#include "Area.hpp" -#include "PU.hpp" -#include "Frequency.hpp" -#include "Frequency.hpp" -#include "Length.hpp" -#include "Length.hpp" -#include "Length.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "VolumeFlowRate.hpp" -#include "Boolean.hpp" -#include "Boolean.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "Boolean.hpp" -#include "Length.hpp" - -using namespace CIMPP; - -GovHydroPelton::GovHydroPelton(): qn(nullptr) {}; - -GovHydroPelton::~GovHydroPelton() {}; - - - - - - - - - - - - - -bool assign_GovHydroPelton_qn(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(GovHydroPelton* element = dynamic_cast(BaseClass_ptr1)) { - element->qn = dynamic_cast(BaseClass_ptr2); - if(element->qn != nullptr) - return true; - } - return false; -} - - - - - - - - - - - - - - - - - - -bool assign_GovHydroPelton_av0(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPelton* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->av0; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPelton_av1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPelton* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->av1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPelton_bp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPelton* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->bp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPelton_db1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPelton* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->db1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPelton_db2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPelton* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->db2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPelton_h1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPelton* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->h1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPelton_h2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPelton* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->h2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPelton_hn(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPelton* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->hn; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPelton_kc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPelton* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPelton_kg(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPelton* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kg; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPelton_qc0(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPelton* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->qc0; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -bool assign_GovHydroPelton_simplifiedPelton(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPelton* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->simplifiedPelton; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPelton_staticCompensating(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPelton* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->staticCompensating; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPelton_ta(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPelton* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ta; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPelton_ts(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPelton* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ts; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPelton_tv(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPelton* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tv; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPelton_twnc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPelton* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->twnc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPelton_twng(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPelton* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->twng; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPelton_tx(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPelton* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tx; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPelton_va(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPelton* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->va; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPelton_valvmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPelton* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->valvmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPelton_valvmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPelton* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->valvmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPelton_vav(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPelton* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vav; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPelton_vc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPelton* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPelton_vcv(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPelton* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vcv; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPelton_waterTunnelSurgeChamberSimulation(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPelton* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->waterTunnelSurgeChamberSimulation; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroPelton_zsfc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroPelton* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->zsfc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* GovHydroPelton_factory() { - return new GovHydroPelton; - } -} - -void GovHydroPelton::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:GovHydroPelton"), &GovHydroPelton_factory)); -} - -void GovHydroPelton::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:GovHydroPelton.av0"), &assign_GovHydroPelton_av0)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPelton.av1"), &assign_GovHydroPelton_av1)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPelton.bp"), &assign_GovHydroPelton_bp)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPelton.db1"), &assign_GovHydroPelton_db1)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPelton.db2"), &assign_GovHydroPelton_db2)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPelton.h1"), &assign_GovHydroPelton_h1)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPelton.h2"), &assign_GovHydroPelton_h2)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPelton.hn"), &assign_GovHydroPelton_hn)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPelton.kc"), &assign_GovHydroPelton_kc)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPelton.kg"), &assign_GovHydroPelton_kg)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPelton.qc0"), &assign_GovHydroPelton_qc0)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPelton.simplifiedPelton"), &assign_GovHydroPelton_simplifiedPelton)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPelton.staticCompensating"), &assign_GovHydroPelton_staticCompensating)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPelton.ta"), &assign_GovHydroPelton_ta)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPelton.ts"), &assign_GovHydroPelton_ts)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPelton.tv"), &assign_GovHydroPelton_tv)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPelton.twnc"), &assign_GovHydroPelton_twnc)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPelton.twng"), &assign_GovHydroPelton_twng)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPelton.tx"), &assign_GovHydroPelton_tx)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPelton.va"), &assign_GovHydroPelton_va)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPelton.valvmax"), &assign_GovHydroPelton_valvmax)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPelton.valvmin"), &assign_GovHydroPelton_valvmin)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPelton.vav"), &assign_GovHydroPelton_vav)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPelton.vc"), &assign_GovHydroPelton_vc)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPelton.vcv"), &assign_GovHydroPelton_vcv)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPelton.waterTunnelSurgeChamberSimulation"), &assign_GovHydroPelton_waterTunnelSurgeChamberSimulation)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroPelton.zsfc"), &assign_GovHydroPelton_zsfc)); -} - -void GovHydroPelton::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:GovHydroPelton.qn"), &assign_GovHydroPelton_qn)); - } - -const char GovHydroPelton::debugName[] = "GovHydroPelton"; -const char* GovHydroPelton::debugString() -{ - return GovHydroPelton::debugName; -} - -const BaseClassDefiner GovHydroPelton::declare() -{ - return BaseClassDefiner(GovHydroPelton::addConstructToMap, GovHydroPelton::addPrimitiveAssignFnsToMap, GovHydroPelton::addClassAssignFnsToMap, GovHydroPelton::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/GovHydroPelton.hpp b/CGMES_2.4.13_18DEC2013/GovHydroPelton.hpp deleted file mode 100644 index 1cdd59f95..000000000 --- a/CGMES_2.4.13_18DEC2013/GovHydroPelton.hpp +++ /dev/null @@ -1,74 +0,0 @@ -#ifndef GovHydroPelton_H -#define GovHydroPelton_H - -#include "TurbineGovernorDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Area.hpp" -#include "PU.hpp" -#include "Frequency.hpp" -#include "Length.hpp" -#include "Boolean.hpp" -#include "Seconds.hpp" -#include "Simple_Float.hpp" - -namespace CIMPP { - - -class VolumeFlowRate; - /* - Detailed hydro unit - Pelton model. This model can be used to represent the dynamic related to water tunnel and surge chamber. A schematic of the hydraulic system of detailed hydro unit models, like Francis and Pelton, is located under the GovHydroFrancis class. - */ - class GovHydroPelton: public TurbineGovernorDynamics - { - - public: - CIMPP::Area av0; /* Area of the surge tank (A). Unit = m. Typical Value = 30. Default: nullptr */ - CIMPP::Area av1; /* Area of the compensation tank (A). Unit = m. Typical Value = 700. Default: nullptr */ - CIMPP::PU bp; /* Droop (bp). Typical Value = 0.05. Default: nullptr */ - CIMPP::Frequency db1; /* Intentional dead-band width (DB1). Unit = Hz. Typical Value = 0. Default: nullptr */ - CIMPP::Frequency db2; /* Intentional dead-band width of valve opening error (DB2). Unit = Hz. Typical Value = 0.01. Default: nullptr */ - CIMPP::Length h1; /* Head of compensation chamber water level with respect to the level of penstock (H). Unit = m. Typical Value = 4. Default: nullptr */ - CIMPP::Length h2; /* Head of surge tank water level with respect to the level of penstock (H). Unit = m. Typical Value = 40. Default: nullptr */ - CIMPP::Length hn; /* Rated hydraulic head (H). Unit = m. Typical Value = 250. Default: nullptr */ - CIMPP::PU kc; /* Penstock loss coefficient (due to friction) (Kc). Typical Value = 0.025. Default: nullptr */ - CIMPP::PU kg; /* Water tunnel and surge chamber loss coefficient (due to friction) (Kg). Typical Value = -0.025. Default: nullptr */ - CIMPP::PU qc0; /* No-load turbine flow at nominal head (Qc0). Typical Value = 0.05. Default: nullptr */ - CIMPP::VolumeFlowRate* qn; /* Rated flow (Q). Unit = m/s. Typical Value = 40. Default: nullptr */ - CIMPP::Boolean simplifiedPelton; /* Simplified Pelton model simulation (Sflag). true = enable of simplified Pelton model simulation false = enable of complete Pelton model simulation (non linear gain). Typical Value = false. Default: false */ - CIMPP::Boolean staticCompensating; /* Static compensating characteristic (Cflag). true = enable of static compensating characteristic false = inhibit of static compensating characteristic. Typical Value = false. Default: false */ - CIMPP::Seconds ta; /* Derivative gain (accelerometer time constant) (Ta). Typical Value = 3. Default: nullptr */ - CIMPP::Seconds ts; /* Gate servo time constant (Ts). Typical Value = 0.15. Default: nullptr */ - CIMPP::Seconds tv; /* Servomotor integrator time constant (TV). Typical Value = 0.3. Default: nullptr */ - CIMPP::Seconds twnc; /* Water inertia time constant (Twnc). Typical Value = 1. Default: nullptr */ - CIMPP::Seconds twng; /* Water tunnel and surge chamber inertia time constant (Twng). Typical Value = 3. Default: nullptr */ - CIMPP::Seconds tx; /* Electronic integrator time constant (Tx). Typical Value = 0.5. Default: nullptr */ - CIMPP::Simple_Float va; /* Maximum gate opening velocity (Va). Unit = PU/sec. Typical Value = 0.016. Default: nullptr */ - CIMPP::PU valvmax; /* Maximum gate opening (ValvMax). Typical Value = 1. Default: nullptr */ - CIMPP::PU valvmin; /* Minimum gate opening (ValvMin). Typical Value = 0. Default: nullptr */ - CIMPP::PU vav; /* Maximum servomotor valve opening velocity (Vav). Typical Value = 0.017. Default: nullptr */ - CIMPP::Simple_Float vc; /* Maximum gate closing velocity (Vc). Unit = PU/sec. Typical Value = -0.016. Default: nullptr */ - CIMPP::PU vcv; /* Maximum servomotor valve closing velocity (Vcv). Typical Value = -0.017. Default: nullptr */ - CIMPP::Boolean waterTunnelSurgeChamberSimulation; /* Water tunnel and surge chamber simulation (Tflag). true = enable of water tunnel and surge chamber simulation false = inhibit of water tunnel and surge chamber simulation. Typical Value = false. Default: false */ - CIMPP::Length zsfc; /* Head of upper water level with respect to the level of penstock (Zsfc). Unit = m. Typical Value = 25. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - GovHydroPelton(); - virtual ~GovHydroPelton(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* GovHydroPelton_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/GovHydroR.cpp b/CGMES_2.4.13_18DEC2013/GovHydroR.cpp deleted file mode 100644 index 42e1bcc8d..000000000 --- a/CGMES_2.4.13_18DEC2013/GovHydroR.cpp +++ /dev/null @@ -1,671 +0,0 @@ -#include -#include "TurbineGovernorDynamics.hpp" -#include "GovHydroR.hpp" - -#include "ActivePower.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Boolean.hpp" -#include "Frequency.hpp" -#include "Frequency.hpp" -#include "ActivePower.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -GovHydroR::GovHydroR() {}; - -GovHydroR::~GovHydroR() {}; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -bool assign_GovHydroR_mwbase(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroR* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->mwbase; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroR_pmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroR* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroR_pmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroR* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroR_r(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroR* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->r; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroR_td(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroR* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->td; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroR_t1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroR* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroR_t2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroR* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroR_t3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroR* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroR_t4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroR* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroR_t5(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroR* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroR_t6(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroR* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t6; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroR_t7(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroR* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t7; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroR_t8(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroR* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t8; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroR_tp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroR* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroR_velop(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroR* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->velop; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroR_velcl(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroR* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->velcl; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroR_ki(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroR* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ki; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroR_kg(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroR* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kg; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroR_gmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroR* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroR_gmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroR* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroR_tt(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroR* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tt; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroR_inputSignal(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroR* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->inputSignal; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroR_db1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroR* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->db1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroR_eps(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroR* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->eps; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroR_db2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroR* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->db2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroR_tw(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroR* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tw; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroR_at(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroR* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->at; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroR_dturb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroR* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->dturb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroR_qnl(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroR* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->qnl; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroR_h0(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroR* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->h0; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroR_gv1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroR* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gv1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroR_pgv1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroR* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pgv1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroR_gv2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroR* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gv2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroR_pgv2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroR* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pgv2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroR_gv3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroR* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gv3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroR_pgv3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroR* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pgv3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroR_gv4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroR* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gv4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroR_pgv4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroR* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pgv4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroR_gv5(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroR* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gv5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroR_pgv5(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroR* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pgv5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroR_gv6(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroR* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gv6; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroR_pgv6(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroR* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pgv6; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* GovHydroR_factory() { - return new GovHydroR; - } -} - -void GovHydroR::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:GovHydroR"), &GovHydroR_factory)); -} - -void GovHydroR::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:GovHydroR.mwbase"), &assign_GovHydroR_mwbase)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroR.pmax"), &assign_GovHydroR_pmax)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroR.pmin"), &assign_GovHydroR_pmin)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroR.r"), &assign_GovHydroR_r)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroR.td"), &assign_GovHydroR_td)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroR.t1"), &assign_GovHydroR_t1)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroR.t2"), &assign_GovHydroR_t2)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroR.t3"), &assign_GovHydroR_t3)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroR.t4"), &assign_GovHydroR_t4)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroR.t5"), &assign_GovHydroR_t5)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroR.t6"), &assign_GovHydroR_t6)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroR.t7"), &assign_GovHydroR_t7)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroR.t8"), &assign_GovHydroR_t8)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroR.tp"), &assign_GovHydroR_tp)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroR.velop"), &assign_GovHydroR_velop)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroR.velcl"), &assign_GovHydroR_velcl)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroR.ki"), &assign_GovHydroR_ki)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroR.kg"), &assign_GovHydroR_kg)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroR.gmax"), &assign_GovHydroR_gmax)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroR.gmin"), &assign_GovHydroR_gmin)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroR.tt"), &assign_GovHydroR_tt)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroR.inputSignal"), &assign_GovHydroR_inputSignal)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroR.db1"), &assign_GovHydroR_db1)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroR.eps"), &assign_GovHydroR_eps)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroR.db2"), &assign_GovHydroR_db2)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroR.tw"), &assign_GovHydroR_tw)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroR.at"), &assign_GovHydroR_at)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroR.dturb"), &assign_GovHydroR_dturb)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroR.qnl"), &assign_GovHydroR_qnl)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroR.h0"), &assign_GovHydroR_h0)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroR.gv1"), &assign_GovHydroR_gv1)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroR.pgv1"), &assign_GovHydroR_pgv1)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroR.gv2"), &assign_GovHydroR_gv2)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroR.pgv2"), &assign_GovHydroR_pgv2)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroR.gv3"), &assign_GovHydroR_gv3)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroR.pgv3"), &assign_GovHydroR_pgv3)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroR.gv4"), &assign_GovHydroR_gv4)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroR.pgv4"), &assign_GovHydroR_pgv4)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroR.gv5"), &assign_GovHydroR_gv5)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroR.pgv5"), &assign_GovHydroR_pgv5)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroR.gv6"), &assign_GovHydroR_gv6)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroR.pgv6"), &assign_GovHydroR_pgv6)); -} - -void GovHydroR::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char GovHydroR::debugName[] = "GovHydroR"; -const char* GovHydroR::debugString() -{ - return GovHydroR::debugName; -} - -const BaseClassDefiner GovHydroR::declare() -{ - return BaseClassDefiner(GovHydroR::addConstructToMap, GovHydroR::addPrimitiveAssignFnsToMap, GovHydroR::addClassAssignFnsToMap, GovHydroR::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/GovHydroR.hpp b/CGMES_2.4.13_18DEC2013/GovHydroR.hpp deleted file mode 100644 index 0a48d42e3..000000000 --- a/CGMES_2.4.13_18DEC2013/GovHydroR.hpp +++ /dev/null @@ -1,86 +0,0 @@ -#ifndef GovHydroR_H -#define GovHydroR_H - -#include "TurbineGovernorDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "ActivePower.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Simple_Float.hpp" -#include "Boolean.hpp" -#include "Frequency.hpp" - -namespace CIMPP { - - - /* - Fourth order lead-lag governor and hydro turbine. - */ - class GovHydroR: public TurbineGovernorDynamics - { - - public: - CIMPP::ActivePower mwbase; /* Base for power values (MWbase) (>0). Unit = MW. Default: nullptr */ - CIMPP::PU pmax; /* Maximum gate opening, PU of MWbase (Pmax). Typical Value = 1. Default: nullptr */ - CIMPP::PU pmin; /* Minimum gate opening, PU of MWbase (Pmin). Typical Value = 0. Default: nullptr */ - CIMPP::PU r; /* Steady-state droop (R). Typical Value = 0.05. Default: nullptr */ - CIMPP::Seconds td; /* Input filter time constant (Td). Typical Value = 0.05. Default: nullptr */ - CIMPP::Seconds t1; /* Lead time constant 1 (T1). Typical Value = 1.5. Default: nullptr */ - CIMPP::Seconds t2; /* Lag time constant 1 (T2). Typical Value = 0.1. Default: nullptr */ - CIMPP::Seconds t3; /* Lead time constant 2 (T3). Typical Value = 1.5. Default: nullptr */ - CIMPP::Seconds t4; /* Lag time constant 2 (T4). Typical Value = 0.1. Default: nullptr */ - CIMPP::Seconds t5; /* Lead time constant 3 (T5). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds t6; /* Lag time constant 3 (T6). Typical Value = 0.05. Default: nullptr */ - CIMPP::Seconds t7; /* Lead time constant 4 (T7). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds t8; /* Lag time constant 4 (T8). Typical Value = 0.05. Default: nullptr */ - CIMPP::Seconds tp; /* Gate servo time constant (Tp). Typical Value = 0.05. Default: nullptr */ - CIMPP::Simple_Float velop; /* Maximum gate opening velocity (Velop). Unit = PU/sec. Typical Value = 0.2. Default: nullptr */ - CIMPP::Simple_Float velcl; /* Maximum gate closing velocity (Velcl). Unit = PU/sec. Typical Value = -0.2. Default: nullptr */ - CIMPP::PU ki; /* Integral gain (Ki). Typical Value = 0.5. Default: nullptr */ - CIMPP::PU kg; /* Gate servo gain (Kg). Typical Value = 2. Default: nullptr */ - CIMPP::PU gmax; /* Maximum governor output (Gmax). Typical Value = 1.05. Default: nullptr */ - CIMPP::PU gmin; /* Minimum governor output (Gmin). Typical Value = -0.05. Default: nullptr */ - CIMPP::Seconds tt; /* Power feedback time constant (Tt). Typical Value = 0. Default: nullptr */ - CIMPP::Boolean inputSignal; /* Input signal switch (Flag). true = Pe input is used false = feedback is received from CV. Flag is normally dependent on Tt. If Tf is zero, Flag is set to false. If Tf is not zero, Flag is set to true. Typical Value = true. Default: false */ - CIMPP::Frequency db1; /* Intentional dead-band width (db1). Unit = Hz. Typical Value = 0. Default: nullptr */ - CIMPP::Frequency eps; /* Intentional db hysteresis (eps). Unit = Hz. Typical Value = 0. Default: nullptr */ - CIMPP::ActivePower db2; /* Unintentional dead-band (db2). Unit = MW. Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tw; /* Water inertia time constant (Tw). Typical Value = 1. Default: nullptr */ - CIMPP::PU at; /* Turbine gain (At). Typical Value = 1.2. Default: nullptr */ - CIMPP::PU dturb; /* Turbine damping factor (Dturb). Typical Value = 0.2. Default: nullptr */ - CIMPP::PU qnl; /* No-load turbine flow at nominal head (Qnl). Typical Value = 0.08. Default: nullptr */ - CIMPP::PU h0; /* Turbine nominal head (H0). Typical Value = 1. Default: nullptr */ - CIMPP::PU gv1; /* Nonlinear gain point 1, PU gv (Gv1). Typical Value = 0. Default: nullptr */ - CIMPP::PU pgv1; /* Nonlinear gain point 1, PU power (Pgv1). Typical Value = 0. Default: nullptr */ - CIMPP::PU gv2; /* Nonlinear gain point 2, PU gv (Gv2). Typical Value = 0. Default: nullptr */ - CIMPP::PU pgv2; /* Nonlinear gain point 2, PU power (Pgv2). Typical Value = 0. Default: nullptr */ - CIMPP::PU gv3; /* Nonlinear gain point 3, PU gv (Gv3). Typical Value = 0. Default: nullptr */ - CIMPP::PU pgv3; /* Nonlinear gain point 3, PU power (Pgv3). Typical Value = 0. Default: nullptr */ - CIMPP::PU gv4; /* Nonlinear gain point 4, PU gv (Gv4). Typical Value = 0. Default: nullptr */ - CIMPP::PU pgv4; /* Nonlinear gain point 4, PU power (Pgv4). Typical Value = 0. Default: nullptr */ - CIMPP::PU gv5; /* Nonlinear gain point 5, PU gv (Gv5). Typical Value = 0. Default: nullptr */ - CIMPP::PU pgv5; /* Nonlinear gain point 5, PU power (Pgv5). Typical Value = 0. Default: nullptr */ - CIMPP::PU gv6; /* Nonlinear gain point 6, PU gv (Gv6). Typical Value = 0. Default: nullptr */ - CIMPP::PU pgv6; /* Nonlinear gain point 6, PU power (Pgv6). Typical Value = 0. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - GovHydroR(); - virtual ~GovHydroR(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* GovHydroR_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/GovHydroWEH.cpp b/CGMES_2.4.13_18DEC2013/GovHydroWEH.cpp deleted file mode 100644 index 62f9d50e6..000000000 --- a/CGMES_2.4.13_18DEC2013/GovHydroWEH.cpp +++ /dev/null @@ -1,806 +0,0 @@ -#include -#include "TurbineGovernorDynamics.hpp" -#include "GovHydroWEH.hpp" - -#include "ActivePower.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Boolean.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -GovHydroWEH::GovHydroWEH() {}; - -GovHydroWEH::~GovHydroWEH() {}; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -bool assign_GovHydroWEH_mwbase(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWEH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->mwbase; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWEH_rpg(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWEH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->rpg; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWEH_rpp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWEH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->rpp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWEH_tpe(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWEH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tpe; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWEH_kp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWEH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWEH_ki(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWEH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ki; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWEH_kd(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWEH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kd; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWEH_td(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWEH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->td; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWEH_tp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWEH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWEH_tdv(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWEH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tdv; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWEH_tg(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWEH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tg; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWEH_gtmxop(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWEH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gtmxop; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWEH_gtmxcl(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWEH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gtmxcl; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWEH_gmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWEH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWEH_gmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWEH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWEH_dturb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWEH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->dturb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWEH_tw(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWEH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tw; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWEH_db(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWEH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->db; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWEH_dpv(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWEH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->dpv; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWEH_dicn(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWEH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->dicn; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWEH_feedbackSignal(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWEH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->feedbackSignal; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWEH_gv1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWEH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gv1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWEH_gv2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWEH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gv2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWEH_gv3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWEH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gv3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWEH_gv4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWEH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gv4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWEH_gv5(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWEH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gv5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWEH_fl1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWEH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->fl1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWEH_fl2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWEH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->fl2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWEH_fl3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWEH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->fl3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWEH_fl4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWEH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->fl4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWEH_fl5(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWEH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->fl5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWEH_fp1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWEH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->fp1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWEH_fp2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWEH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->fp2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWEH_fp3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWEH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->fp3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWEH_fp4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWEH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->fp4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWEH_fp5(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWEH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->fp5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWEH_fp6(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWEH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->fp6; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWEH_fp7(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWEH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->fp7; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWEH_fp8(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWEH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->fp8; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWEH_fp9(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWEH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->fp9; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWEH_fp10(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWEH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->fp10; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWEH_pmss1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWEH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pmss1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWEH_pmss2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWEH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pmss2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWEH_pmss3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWEH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pmss3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWEH_pmss4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWEH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pmss4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWEH_pmss5(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWEH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pmss5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWEH_pmss6(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWEH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pmss6; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWEH_pmss7(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWEH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pmss7; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWEH_pmss8(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWEH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pmss8; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWEH_pmss9(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWEH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pmss9; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWEH_pmss10(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWEH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pmss10; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* GovHydroWEH_factory() { - return new GovHydroWEH; - } -} - -void GovHydroWEH::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:GovHydroWEH"), &GovHydroWEH_factory)); -} - -void GovHydroWEH::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:GovHydroWEH.mwbase"), &assign_GovHydroWEH_mwbase)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWEH.rpg"), &assign_GovHydroWEH_rpg)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWEH.rpp"), &assign_GovHydroWEH_rpp)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWEH.tpe"), &assign_GovHydroWEH_tpe)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWEH.kp"), &assign_GovHydroWEH_kp)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWEH.ki"), &assign_GovHydroWEH_ki)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWEH.kd"), &assign_GovHydroWEH_kd)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWEH.td"), &assign_GovHydroWEH_td)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWEH.tp"), &assign_GovHydroWEH_tp)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWEH.tdv"), &assign_GovHydroWEH_tdv)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWEH.tg"), &assign_GovHydroWEH_tg)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWEH.gtmxop"), &assign_GovHydroWEH_gtmxop)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWEH.gtmxcl"), &assign_GovHydroWEH_gtmxcl)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWEH.gmax"), &assign_GovHydroWEH_gmax)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWEH.gmin"), &assign_GovHydroWEH_gmin)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWEH.dturb"), &assign_GovHydroWEH_dturb)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWEH.tw"), &assign_GovHydroWEH_tw)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWEH.db"), &assign_GovHydroWEH_db)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWEH.dpv"), &assign_GovHydroWEH_dpv)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWEH.dicn"), &assign_GovHydroWEH_dicn)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWEH.feedbackSignal"), &assign_GovHydroWEH_feedbackSignal)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWEH.gv1"), &assign_GovHydroWEH_gv1)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWEH.gv2"), &assign_GovHydroWEH_gv2)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWEH.gv3"), &assign_GovHydroWEH_gv3)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWEH.gv4"), &assign_GovHydroWEH_gv4)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWEH.gv5"), &assign_GovHydroWEH_gv5)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWEH.fl1"), &assign_GovHydroWEH_fl1)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWEH.fl2"), &assign_GovHydroWEH_fl2)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWEH.fl3"), &assign_GovHydroWEH_fl3)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWEH.fl4"), &assign_GovHydroWEH_fl4)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWEH.fl5"), &assign_GovHydroWEH_fl5)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWEH.fp1"), &assign_GovHydroWEH_fp1)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWEH.fp2"), &assign_GovHydroWEH_fp2)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWEH.fp3"), &assign_GovHydroWEH_fp3)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWEH.fp4"), &assign_GovHydroWEH_fp4)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWEH.fp5"), &assign_GovHydroWEH_fp5)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWEH.fp6"), &assign_GovHydroWEH_fp6)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWEH.fp7"), &assign_GovHydroWEH_fp7)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWEH.fp8"), &assign_GovHydroWEH_fp8)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWEH.fp9"), &assign_GovHydroWEH_fp9)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWEH.fp10"), &assign_GovHydroWEH_fp10)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWEH.pmss1"), &assign_GovHydroWEH_pmss1)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWEH.pmss2"), &assign_GovHydroWEH_pmss2)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWEH.pmss3"), &assign_GovHydroWEH_pmss3)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWEH.pmss4"), &assign_GovHydroWEH_pmss4)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWEH.pmss5"), &assign_GovHydroWEH_pmss5)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWEH.pmss6"), &assign_GovHydroWEH_pmss6)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWEH.pmss7"), &assign_GovHydroWEH_pmss7)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWEH.pmss8"), &assign_GovHydroWEH_pmss8)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWEH.pmss9"), &assign_GovHydroWEH_pmss9)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWEH.pmss10"), &assign_GovHydroWEH_pmss10)); -} - -void GovHydroWEH::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char GovHydroWEH::debugName[] = "GovHydroWEH"; -const char* GovHydroWEH::debugString() -{ - return GovHydroWEH::debugName; -} - -const BaseClassDefiner GovHydroWEH::declare() -{ - return BaseClassDefiner(GovHydroWEH::addConstructToMap, GovHydroWEH::addPrimitiveAssignFnsToMap, GovHydroWEH::addClassAssignFnsToMap, GovHydroWEH::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/GovHydroWEH.hpp b/CGMES_2.4.13_18DEC2013/GovHydroWEH.hpp deleted file mode 100644 index 5836eb6b8..000000000 --- a/CGMES_2.4.13_18DEC2013/GovHydroWEH.hpp +++ /dev/null @@ -1,94 +0,0 @@ -#ifndef GovHydroWEH_H -#define GovHydroWEH_H - -#include "TurbineGovernorDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "ActivePower.hpp" -#include "Simple_Float.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Boolean.hpp" - -namespace CIMPP { - - - /* - Woodward Electric Hydro Governor Model. - */ - class GovHydroWEH: public TurbineGovernorDynamics - { - - public: - CIMPP::ActivePower mwbase; /* Base for power values (MWbase) (>0). Unit = MW. Default: nullptr */ - CIMPP::Simple_Float rpg; /* Permanent droop for governor output feedback (R-Perm-Gate). Default: nullptr */ - CIMPP::Simple_Float rpp; /* Permanent droop for electrical power feedback (R-Perm-Pe). Default: nullptr */ - CIMPP::Seconds tpe; /* Electrical power droop time constant (Tpe). Default: nullptr */ - CIMPP::PU kp; /* Derivative control gain (Kp). Default: nullptr */ - CIMPP::PU ki; /* Derivative controller Integral gain (Ki). Default: nullptr */ - CIMPP::PU kd; /* Derivative controller derivative gain (Kd). Default: nullptr */ - CIMPP::Seconds td; /* Derivative controller time constant to limit the derivative characteristic beyond a breakdown frequency to avoid amplification of high-frequency noise (Td). Default: nullptr */ - CIMPP::Seconds tp; /* Pilot Valve time lag time constant (Tp). Default: nullptr */ - CIMPP::Seconds tdv; /* Distributive Valve time lag time constant (Tdv). Default: nullptr */ - CIMPP::Seconds tg; /* Value to allow the Distribution valve controller to advance beyond the gate movement rate limit (Tg). Default: nullptr */ - CIMPP::PU gtmxop; /* Maximum gate opening rate (Gtmxop). Default: nullptr */ - CIMPP::PU gtmxcl; /* Maximum gate closing rate (Gtmxcl). Default: nullptr */ - CIMPP::PU gmax; /* Maximum Gate Position (Gmax). Default: nullptr */ - CIMPP::PU gmin; /* Minimum Gate Position (Gmin). Default: nullptr */ - CIMPP::PU dturb; /* Turbine damping factor (Dturb). Unit = delta P (PU of MWbase) / delta speed (PU). Default: nullptr */ - CIMPP::Seconds tw; /* Water inertia time constant (Tw) (>0). Default: nullptr */ - CIMPP::PU db; /* Speed Dead Band (db). Default: nullptr */ - CIMPP::PU dpv; /* Value to allow the Pilot valve controller to advance beyond the gate limits (Dpv). Default: nullptr */ - CIMPP::PU dicn; /* Value to allow the integral controller to advance beyond the gate limits (Dicn). Default: nullptr */ - CIMPP::Boolean feedbackSignal; /* Feedback signal selection (Sw). true = PID Output (if R-Perm-Gate=droop and R-Perm-Pe=0) false = Electrical Power (if R-Perm-Gate=0 and R-Perm-Pe=droop) or false = Gate Position (if R-Perm-Gate=droop and R-Perm-Pe=0). Default: false */ - CIMPP::PU gv1; /* Gate 1 (Gv1). Gate Position value for point 1 for lookup table representing water flow through the turbine as a function of gate position to produce steady state flow. Default: nullptr */ - CIMPP::PU gv2; /* Gate 2 (Gv2). Gate Position value for point 2 for lookup table representing water flow through the turbine as a function of gate position to produce steady state flow. Default: nullptr */ - CIMPP::PU gv3; /* Gate 3 (Gv3). Gate Position value for point 3 for lookup table representing water flow through the turbine as a function of gate position to produce steady state flow. Default: nullptr */ - CIMPP::PU gv4; /* Gate 4 (Gv4). Gate Position value for point 4 for lookup table representing water flow through the turbine as a function of gate position to produce steady state flow. Default: nullptr */ - CIMPP::PU gv5; /* Gate 5 (Gv5). Gate Position value for point 5 for lookup table representing water flow through the turbine as a function of gate position to produce steady state flow. Default: nullptr */ - CIMPP::PU fl1; /* Flow Gate 1 (Fl1). Flow value for gate position point 1 for lookup table representing water flow through the turbine as a function of gate position to produce steady state flow. Default: nullptr */ - CIMPP::PU fl2; /* Flow Gate 2 (Fl2). Flow value for gate position point 2 for lookup table representing water flow through the turbine as a function of gate position to produce steady state flow. Default: nullptr */ - CIMPP::PU fl3; /* Flow Gate 3 (Fl3). Flow value for gate position point 3 for lookup table representing water flow through the turbine as a function of gate position to produce steady state flow. Default: nullptr */ - CIMPP::PU fl4; /* Flow Gate 4 (Fl4). Flow value for gate position point 4 for lookup table representing water flow through the turbine as a function of gate position to produce steady state flow. Default: nullptr */ - CIMPP::PU fl5; /* Flow Gate 5 (Fl5). Flow value for gate position point 5 for lookup table representing water flow through the turbine as a function of gate position to produce steady state flow. Default: nullptr */ - CIMPP::PU fp1; /* Flow P1 (Fp1). Turbine Flow value for point 1 for lookup table representing per unit mechanical power on machine MVA rating as a function of turbine flow. Default: nullptr */ - CIMPP::PU fp2; /* Flow P2 (Fp2). Turbine Flow value for point 2 for lookup table representing per unit mechanical power on machine MVA rating as a function of turbine flow. Default: nullptr */ - CIMPP::PU fp3; /* Flow P3 (Fp3). Turbine Flow value for point 3 for lookup table representing per unit mechanical power on machine MVA rating as a function of turbine flow. Default: nullptr */ - CIMPP::PU fp4; /* Flow P4 (Fp4). Turbine Flow value for point 4 for lookup table representing per unit mechanical power on machine MVA rating as a function of turbine flow. Default: nullptr */ - CIMPP::PU fp5; /* Flow P5 (Fp5). Turbine Flow value for point 5 for lookup table representing per unit mechanical power on machine MVA rating as a function of turbine flow. Default: nullptr */ - CIMPP::PU fp6; /* Flow P6 (Fp6). Turbine Flow value for point 6 for lookup table representing per unit mechanical power on machine MVA rating as a function of turbine flow. Default: nullptr */ - CIMPP::PU fp7; /* Flow P7 (Fp7). Turbine Flow value for point 7 for lookup table representing per unit mechanical power on machine MVA rating as a function of turbine flow. Default: nullptr */ - CIMPP::PU fp8; /* Flow P8 (Fp8). Turbine Flow value for point 8 for lookup table representing per unit mechanical power on machine MVA rating as a function of turbine flow. Default: nullptr */ - CIMPP::PU fp9; /* Flow P9 (Fp9). Turbine Flow value for point 9 for lookup table representing per unit mechanical power on machine MVA rating as a function of turbine flow. Default: nullptr */ - CIMPP::PU fp10; /* Flow P10 (Fp10). Turbine Flow value for point 10 for lookup table representing per unit mechanical power on machine MVA rating as a function of turbine flow. Default: nullptr */ - CIMPP::PU pmss1; /* Pmss Flow P1 (Pmss1). Mechanical Power output Pmss for Turbine Flow point 1 for lookup table representing per unit mechanical power on machine MVA rating as a function of turbine flow. Default: nullptr */ - CIMPP::PU pmss2; /* Pmss Flow P2 (Pmss2). Mechanical Power output Pmss for Turbine Flow point 2 for lookup table representing per unit mechanical power on machine MVA rating as a function of turbine flow. Default: nullptr */ - CIMPP::PU pmss3; /* Pmss Flow P3 (Pmss3). Mechanical Power output Pmss for Turbine Flow point 3 for lookup table representing per unit mechanical power on machine MVA rating as a function of turbine flow. Default: nullptr */ - CIMPP::PU pmss4; /* Pmss Flow P4 (Pmss4). Mechanical Power output Pmss for Turbine Flow point 4 for lookup table representing per unit mechanical power on machine MVA rating as a function of turbine flow. Default: nullptr */ - CIMPP::PU pmss5; /* Pmss Flow P5 (Pmss5). Mechanical Power output Pmss for Turbine Flow point 5 for lookup table representing per unit mechanical power on machine MVA rating as a function of turbine flow. Default: nullptr */ - CIMPP::PU pmss6; /* Pmss Flow P6 (Pmss6). Mechanical Power output Pmss for Turbine Flow point 6 for lookup table representing per unit mechanical power on machine MVA rating as a function of turbine flow. Default: nullptr */ - CIMPP::PU pmss7; /* Pmss Flow P7 (Pmss7). Mechanical Power output Pmss for Turbine Flow point 7 for lookup table representing per unit mechanical power on machine MVA rating as a function of turbine flow. Default: nullptr */ - CIMPP::PU pmss8; /* Pmss Flow P8 (Pmss8). Mechanical Power output Pmss for Turbine Flow point 8 for lookup table representing per unit mechanical power on machine MVA rating as a function of turbine flow. Default: nullptr */ - CIMPP::PU pmss9; /* Pmss Flow P9 (Pmss9). Mechanical Power output Pmss for Turbine Flow point 9 for lookup table representing per unit mechanical power on machine MVA rating as a function of turbine flow. Default: nullptr */ - CIMPP::PU pmss10; /* Pmss Flow P10 (Pmss10). Mechanical Power output Pmss for Turbine Flow point 10 for lookup table representing per unit mechanical power on machine MVA rating as a function of turbine flow. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - GovHydroWEH(); - virtual ~GovHydroWEH(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* GovHydroWEH_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/GovHydroWPID.cpp b/CGMES_2.4.13_18DEC2013/GovHydroWPID.cpp deleted file mode 100644 index 1bc4b1d82..000000000 --- a/CGMES_2.4.13_18DEC2013/GovHydroWPID.cpp +++ /dev/null @@ -1,371 +0,0 @@ -#include -#include "TurbineGovernorDynamics.hpp" -#include "GovHydroWPID.hpp" - -#include "ActivePower.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -GovHydroWPID::GovHydroWPID() {}; - -GovHydroWPID::~GovHydroWPID() {}; - - - - - - - - - - - - - - - - - - - - - - - - - -bool assign_GovHydroWPID_mwbase(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWPID* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->mwbase; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWPID_treg(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWPID* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->treg; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWPID_reg(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWPID* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->reg; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWPID_kp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWPID* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWPID_ki(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWPID* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ki; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWPID_kd(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWPID* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kd; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWPID_ta(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWPID* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ta; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWPID_tb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWPID* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWPID_velmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWPID* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->velmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWPID_velmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWPID* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->velmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWPID_gatmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWPID* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gatmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWPID_gatmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWPID* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gatmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWPID_tw(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWPID* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tw; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWPID_pmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWPID* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWPID_pmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWPID* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWPID_d(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWPID* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->d; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWPID_gv3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWPID* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gv3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWPID_gv1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWPID* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gv1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWPID_pgv1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWPID* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pgv1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWPID_gv2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWPID* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gv2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWPID_pgv2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWPID* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pgv2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovHydroWPID_pgv3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovHydroWPID* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pgv3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* GovHydroWPID_factory() { - return new GovHydroWPID; - } -} - -void GovHydroWPID::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:GovHydroWPID"), &GovHydroWPID_factory)); -} - -void GovHydroWPID::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:GovHydroWPID.mwbase"), &assign_GovHydroWPID_mwbase)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWPID.treg"), &assign_GovHydroWPID_treg)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWPID.reg"), &assign_GovHydroWPID_reg)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWPID.kp"), &assign_GovHydroWPID_kp)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWPID.ki"), &assign_GovHydroWPID_ki)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWPID.kd"), &assign_GovHydroWPID_kd)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWPID.ta"), &assign_GovHydroWPID_ta)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWPID.tb"), &assign_GovHydroWPID_tb)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWPID.velmax"), &assign_GovHydroWPID_velmax)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWPID.velmin"), &assign_GovHydroWPID_velmin)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWPID.gatmax"), &assign_GovHydroWPID_gatmax)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWPID.gatmin"), &assign_GovHydroWPID_gatmin)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWPID.tw"), &assign_GovHydroWPID_tw)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWPID.pmax"), &assign_GovHydroWPID_pmax)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWPID.pmin"), &assign_GovHydroWPID_pmin)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWPID.d"), &assign_GovHydroWPID_d)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWPID.gv3"), &assign_GovHydroWPID_gv3)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWPID.gv1"), &assign_GovHydroWPID_gv1)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWPID.pgv1"), &assign_GovHydroWPID_pgv1)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWPID.gv2"), &assign_GovHydroWPID_gv2)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWPID.pgv2"), &assign_GovHydroWPID_pgv2)); - assign_map.insert(std::make_pair(std::string("cim:GovHydroWPID.pgv3"), &assign_GovHydroWPID_pgv3)); -} - -void GovHydroWPID::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char GovHydroWPID::debugName[] = "GovHydroWPID"; -const char* GovHydroWPID::debugString() -{ - return GovHydroWPID::debugName; -} - -const BaseClassDefiner GovHydroWPID::declare() -{ - return BaseClassDefiner(GovHydroWPID::addConstructToMap, GovHydroWPID::addPrimitiveAssignFnsToMap, GovHydroWPID::addClassAssignFnsToMap, GovHydroWPID::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/GovHydroWPID.hpp b/CGMES_2.4.13_18DEC2013/GovHydroWPID.hpp deleted file mode 100644 index a9fe2c041..000000000 --- a/CGMES_2.4.13_18DEC2013/GovHydroWPID.hpp +++ /dev/null @@ -1,63 +0,0 @@ -#ifndef GovHydroWPID_H -#define GovHydroWPID_H - -#include "TurbineGovernorDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "ActivePower.hpp" -#include "Seconds.hpp" -#include "PU.hpp" - -namespace CIMPP { - - - /* - Woodward PID Hydro Governor. - */ - class GovHydroWPID: public TurbineGovernorDynamics - { - - public: - CIMPP::ActivePower mwbase; /* Base for power values (MWbase) (>0). Unit = MW. Default: nullptr */ - CIMPP::Seconds treg; /* Speed detector time constant (Treg). Default: nullptr */ - CIMPP::PU reg; /* Permanent drop (Reg). Default: nullptr */ - CIMPP::PU kp; /* Proportional gain (Kp). Typical Value = 0.1. Default: nullptr */ - CIMPP::PU ki; /* Reset gain (Ki). Typical Value = 0.36. Default: nullptr */ - CIMPP::PU kd; /* Derivative gain (Kd). Typical Value = 1.11. Default: nullptr */ - CIMPP::Seconds ta; /* Controller time constant (Ta) (>0). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tb; /* Gate servo time constant (Tb) (>0). Typical Value = 0. Default: nullptr */ - CIMPP::PU velmax; /* Maximum gate opening velocity (Velmax). Unit = PU/sec. Typical Value = 0. Default: nullptr */ - CIMPP::PU velmin; /* Maximum gate closing velocity (Velmin). Unit = PU/sec. Typical Value = 0. Default: nullptr */ - CIMPP::PU gatmax; /* Gate opening Limit Maximum (Gatmax). Default: nullptr */ - CIMPP::PU gatmin; /* Gate opening Limit Minimum (Gatmin). Default: nullptr */ - CIMPP::Seconds tw; /* Water inertia time constant (Tw) (>0). Typical Value = 0. Default: nullptr */ - CIMPP::PU pmax; /* Maximum Power Output (Pmax). Default: nullptr */ - CIMPP::PU pmin; /* Minimum Power Output (Pmin). Default: nullptr */ - CIMPP::PU d; /* Turbine damping factor (D). Unit = delta P / delta speed. Default: nullptr */ - CIMPP::PU gv3; /* Gate position 3 (Gv3). Default: nullptr */ - CIMPP::PU gv1; /* Gate position 1 (Gv1). Default: nullptr */ - CIMPP::PU pgv1; /* Output at Gv1 PU of MWbase (Pgv1). Default: nullptr */ - CIMPP::PU gv2; /* Gate position 2 (Gv2). Default: nullptr */ - CIMPP::PU pgv2; /* Output at Gv2 PU of MWbase (Pgv2). Default: nullptr */ - CIMPP::PU pgv3; /* Output at Gv3 PU of MWbase (Pgv3). Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - GovHydroWPID(); - virtual ~GovHydroWPID(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* GovHydroWPID_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/GovSteam0.cpp b/CGMES_2.4.13_18DEC2013/GovSteam0.cpp deleted file mode 100644 index 09842372b..000000000 --- a/CGMES_2.4.13_18DEC2013/GovSteam0.cpp +++ /dev/null @@ -1,161 +0,0 @@ -#include -#include "TurbineGovernorDynamics.hpp" -#include "GovSteam0.hpp" - -#include "ActivePower.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -GovSteam0::GovSteam0() {}; - -GovSteam0::~GovSteam0() {}; - - - - - - - - - - - -bool assign_GovSteam0_mwbase(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteam0* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->mwbase; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteam0_r(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteam0* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->r; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteam0_t1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteam0* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteam0_vmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteam0* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteam0_vmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteam0* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteam0_t2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteam0* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteam0_t3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteam0* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteam0_dt(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteam0* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->dt; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* GovSteam0_factory() { - return new GovSteam0; - } -} - -void GovSteam0::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:GovSteam0"), &GovSteam0_factory)); -} - -void GovSteam0::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:GovSteam0.mwbase"), &assign_GovSteam0_mwbase)); - assign_map.insert(std::make_pair(std::string("cim:GovSteam0.r"), &assign_GovSteam0_r)); - assign_map.insert(std::make_pair(std::string("cim:GovSteam0.t1"), &assign_GovSteam0_t1)); - assign_map.insert(std::make_pair(std::string("cim:GovSteam0.vmax"), &assign_GovSteam0_vmax)); - assign_map.insert(std::make_pair(std::string("cim:GovSteam0.vmin"), &assign_GovSteam0_vmin)); - assign_map.insert(std::make_pair(std::string("cim:GovSteam0.t2"), &assign_GovSteam0_t2)); - assign_map.insert(std::make_pair(std::string("cim:GovSteam0.t3"), &assign_GovSteam0_t3)); - assign_map.insert(std::make_pair(std::string("cim:GovSteam0.dt"), &assign_GovSteam0_dt)); -} - -void GovSteam0::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char GovSteam0::debugName[] = "GovSteam0"; -const char* GovSteam0::debugString() -{ - return GovSteam0::debugName; -} - -const BaseClassDefiner GovSteam0::declare() -{ - return BaseClassDefiner(GovSteam0::addConstructToMap, GovSteam0::addPrimitiveAssignFnsToMap, GovSteam0::addClassAssignFnsToMap, GovSteam0::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/GovSteam0.hpp b/CGMES_2.4.13_18DEC2013/GovSteam0.hpp deleted file mode 100644 index d25f0238a..000000000 --- a/CGMES_2.4.13_18DEC2013/GovSteam0.hpp +++ /dev/null @@ -1,49 +0,0 @@ -#ifndef GovSteam0_H -#define GovSteam0_H - -#include "TurbineGovernorDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "ActivePower.hpp" -#include "PU.hpp" -#include "Seconds.hpp" - -namespace CIMPP { - - - /* - A simplified steam turbine governor model. - */ - class GovSteam0: public TurbineGovernorDynamics - { - - public: - CIMPP::ActivePower mwbase; /* Base for power values (MWbase) (>0). Unit = MW. Default: nullptr */ - CIMPP::PU r; /* Permanent droop (R). Typical Value = 0.05. Default: nullptr */ - CIMPP::Seconds t1; /* Steam bowl time constant (T1). Typical Value = 0.5. Default: nullptr */ - CIMPP::PU vmax; /* Maximum valve position, PU of mwcap (Vmax). Typical Value = 1. Default: nullptr */ - CIMPP::PU vmin; /* Minimum valve position, PU of mwcap (Vmin). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds t2; /* Numerator time constant of T2/T3 block (T2). Typical Value = 3. Default: nullptr */ - CIMPP::Seconds t3; /* Reheater time constant (T3). Typical Value = 10. Default: nullptr */ - CIMPP::PU dt; /* Turbine damping coefficient (Dt). Unit = delta P / delta speed. Typical Value = 0. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - GovSteam0(); - virtual ~GovSteam0(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* GovSteam0_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/GovSteam1.cpp b/CGMES_2.4.13_18DEC2013/GovSteam1.cpp deleted file mode 100644 index a41c168bc..000000000 --- a/CGMES_2.4.13_18DEC2013/GovSteam1.cpp +++ /dev/null @@ -1,626 +0,0 @@ -#include -#include "TurbineGovernorDynamics.hpp" -#include "GovSteam1.hpp" - -#include "ActivePower.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Seconds.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Seconds.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Seconds.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Frequency.hpp" -#include "Frequency.hpp" -#include "Boolean.hpp" -#include "Boolean.hpp" -#include "ActivePower.hpp" -#include "Boolean.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -GovSteam1::GovSteam1() {}; - -GovSteam1::~GovSteam1() {}; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -bool assign_GovSteam1_mwbase(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteam1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->mwbase; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteam1_k(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteam1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteam1_t1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteam1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteam1_t2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteam1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteam1_t3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteam1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteam1_uo(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteam1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->uo; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteam1_uc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteam1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->uc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteam1_pmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteam1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteam1_pmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteam1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteam1_t4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteam1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteam1_k1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteam1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteam1_k2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteam1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteam1_t5(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteam1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteam1_k3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteam1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteam1_k4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteam1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteam1_t6(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteam1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t6; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteam1_k5(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteam1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteam1_k6(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteam1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k6; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteam1_t7(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteam1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t7; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteam1_k7(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteam1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k7; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteam1_k8(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteam1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k8; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteam1_db1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteam1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->db1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteam1_eps(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteam1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->eps; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteam1_sdb1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteam1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->sdb1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteam1_sdb2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteam1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->sdb2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteam1_db2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteam1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->db2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteam1_valve(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteam1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->valve; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteam1_gv1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteam1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gv1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteam1_pgv1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteam1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pgv1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteam1_gv2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteam1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gv2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteam1_pgv2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteam1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pgv2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteam1_gv3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteam1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gv3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteam1_pgv3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteam1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pgv3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteam1_gv4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteam1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gv4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteam1_pgv4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteam1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pgv4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteam1_gv5(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteam1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gv5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteam1_pgv5(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteam1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pgv5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteam1_gv6(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteam1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gv6; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteam1_pgv6(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteam1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pgv6; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* GovSteam1_factory() { - return new GovSteam1; - } -} - -void GovSteam1::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:GovSteam1"), &GovSteam1_factory)); -} - -void GovSteam1::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:GovSteam1.mwbase"), &assign_GovSteam1_mwbase)); - assign_map.insert(std::make_pair(std::string("cim:GovSteam1.k"), &assign_GovSteam1_k)); - assign_map.insert(std::make_pair(std::string("cim:GovSteam1.t1"), &assign_GovSteam1_t1)); - assign_map.insert(std::make_pair(std::string("cim:GovSteam1.t2"), &assign_GovSteam1_t2)); - assign_map.insert(std::make_pair(std::string("cim:GovSteam1.t3"), &assign_GovSteam1_t3)); - assign_map.insert(std::make_pair(std::string("cim:GovSteam1.uo"), &assign_GovSteam1_uo)); - assign_map.insert(std::make_pair(std::string("cim:GovSteam1.uc"), &assign_GovSteam1_uc)); - assign_map.insert(std::make_pair(std::string("cim:GovSteam1.pmax"), &assign_GovSteam1_pmax)); - assign_map.insert(std::make_pair(std::string("cim:GovSteam1.pmin"), &assign_GovSteam1_pmin)); - assign_map.insert(std::make_pair(std::string("cim:GovSteam1.t4"), &assign_GovSteam1_t4)); - assign_map.insert(std::make_pair(std::string("cim:GovSteam1.k1"), &assign_GovSteam1_k1)); - assign_map.insert(std::make_pair(std::string("cim:GovSteam1.k2"), &assign_GovSteam1_k2)); - assign_map.insert(std::make_pair(std::string("cim:GovSteam1.t5"), &assign_GovSteam1_t5)); - assign_map.insert(std::make_pair(std::string("cim:GovSteam1.k3"), &assign_GovSteam1_k3)); - assign_map.insert(std::make_pair(std::string("cim:GovSteam1.k4"), &assign_GovSteam1_k4)); - assign_map.insert(std::make_pair(std::string("cim:GovSteam1.t6"), &assign_GovSteam1_t6)); - assign_map.insert(std::make_pair(std::string("cim:GovSteam1.k5"), &assign_GovSteam1_k5)); - assign_map.insert(std::make_pair(std::string("cim:GovSteam1.k6"), &assign_GovSteam1_k6)); - assign_map.insert(std::make_pair(std::string("cim:GovSteam1.t7"), &assign_GovSteam1_t7)); - assign_map.insert(std::make_pair(std::string("cim:GovSteam1.k7"), &assign_GovSteam1_k7)); - assign_map.insert(std::make_pair(std::string("cim:GovSteam1.k8"), &assign_GovSteam1_k8)); - assign_map.insert(std::make_pair(std::string("cim:GovSteam1.db1"), &assign_GovSteam1_db1)); - assign_map.insert(std::make_pair(std::string("cim:GovSteam1.eps"), &assign_GovSteam1_eps)); - assign_map.insert(std::make_pair(std::string("cim:GovSteam1.sdb1"), &assign_GovSteam1_sdb1)); - assign_map.insert(std::make_pair(std::string("cim:GovSteam1.sdb2"), &assign_GovSteam1_sdb2)); - assign_map.insert(std::make_pair(std::string("cim:GovSteam1.db2"), &assign_GovSteam1_db2)); - assign_map.insert(std::make_pair(std::string("cim:GovSteam1.valve"), &assign_GovSteam1_valve)); - assign_map.insert(std::make_pair(std::string("cim:GovSteam1.gv1"), &assign_GovSteam1_gv1)); - assign_map.insert(std::make_pair(std::string("cim:GovSteam1.pgv1"), &assign_GovSteam1_pgv1)); - assign_map.insert(std::make_pair(std::string("cim:GovSteam1.gv2"), &assign_GovSteam1_gv2)); - assign_map.insert(std::make_pair(std::string("cim:GovSteam1.pgv2"), &assign_GovSteam1_pgv2)); - assign_map.insert(std::make_pair(std::string("cim:GovSteam1.gv3"), &assign_GovSteam1_gv3)); - assign_map.insert(std::make_pair(std::string("cim:GovSteam1.pgv3"), &assign_GovSteam1_pgv3)); - assign_map.insert(std::make_pair(std::string("cim:GovSteam1.gv4"), &assign_GovSteam1_gv4)); - assign_map.insert(std::make_pair(std::string("cim:GovSteam1.pgv4"), &assign_GovSteam1_pgv4)); - assign_map.insert(std::make_pair(std::string("cim:GovSteam1.gv5"), &assign_GovSteam1_gv5)); - assign_map.insert(std::make_pair(std::string("cim:GovSteam1.pgv5"), &assign_GovSteam1_pgv5)); - assign_map.insert(std::make_pair(std::string("cim:GovSteam1.gv6"), &assign_GovSteam1_gv6)); - assign_map.insert(std::make_pair(std::string("cim:GovSteam1.pgv6"), &assign_GovSteam1_pgv6)); -} - -void GovSteam1::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char GovSteam1::debugName[] = "GovSteam1"; -const char* GovSteam1::debugString() -{ - return GovSteam1::debugName; -} - -const BaseClassDefiner GovSteam1::declare() -{ - return BaseClassDefiner(GovSteam1::addConstructToMap, GovSteam1::addPrimitiveAssignFnsToMap, GovSteam1::addClassAssignFnsToMap, GovSteam1::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/GovSteam1.hpp b/CGMES_2.4.13_18DEC2013/GovSteam1.hpp deleted file mode 100644 index 02b477df4..000000000 --- a/CGMES_2.4.13_18DEC2013/GovSteam1.hpp +++ /dev/null @@ -1,83 +0,0 @@ -#ifndef GovSteam1_H -#define GovSteam1_H - -#include "TurbineGovernorDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "ActivePower.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Simple_Float.hpp" -#include "Frequency.hpp" -#include "Boolean.hpp" - -namespace CIMPP { - - - /* - Steam turbine governor model, based on the GovSteamIEEE1 model (with optional deadband and nonlinear valve gain added). - */ - class GovSteam1: public TurbineGovernorDynamics - { - - public: - CIMPP::ActivePower mwbase; /* Base for power values (MWbase) (>0). Unit = MW. Default: nullptr */ - CIMPP::PU k; /* Governor gain (reciprocal of droop) (K) (>0). Typical Value = 25. Default: nullptr */ - CIMPP::Seconds t1; /* Governor lag time constant (T1). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds t2; /* Governor lead time constant (T2). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds t3; /* Valve positioner time constant (T3(>0). Typical Value = 0.1. Default: nullptr */ - CIMPP::Simple_Float uo; /* Maximum valve opening velocity (Uo) (>0). Unit = PU/sec. Typical Value = 1. Default: nullptr */ - CIMPP::Simple_Float uc; /* Maximum valve closing velocity (Uc) (<0). Unit = PU/sec. Typical Value = -10. Default: nullptr */ - CIMPP::PU pmax; /* Maximum valve opening (Pmax) (> Pmin). Typical Value = 1. Default: nullptr */ - CIMPP::PU pmin; /* Minimum valve opening (Pmin) (>=0). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds t4; /* Inlet piping/steam bowl time constant (T4). Typical Value = 0.3. Default: nullptr */ - CIMPP::Simple_Float k1; /* Fraction of HP shaft power after first boiler pass (K1). Typical Value = 0.2. Default: nullptr */ - CIMPP::Simple_Float k2; /* Fraction of LP shaft power after first boiler pass (K2). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds t5; /* Time constant of second boiler pass (T5). Typical Value = 5. Default: nullptr */ - CIMPP::Simple_Float k3; /* Fraction of HP shaft power after second boiler pass (K3). Typical Value = 0.3. Default: nullptr */ - CIMPP::Simple_Float k4; /* Fraction of LP shaft power after second boiler pass (K4). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds t6; /* Time constant of third boiler pass (T6). Typical Value = 0.5. Default: nullptr */ - CIMPP::Simple_Float k5; /* Fraction of HP shaft power after third boiler pass (K5). Typical Value = 0.5. Default: nullptr */ - CIMPP::Simple_Float k6; /* Fraction of LP shaft power after third boiler pass (K6). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds t7; /* Time constant of fourth boiler pass (T7). Typical Value = 0. Default: nullptr */ - CIMPP::Simple_Float k7; /* Fraction of HP shaft power after fourth boiler pass (K7). Typical Value = 0. Default: nullptr */ - CIMPP::Simple_Float k8; /* Fraction of LP shaft power after fourth boiler pass (K8). Typical Value = 0. Default: nullptr */ - CIMPP::Frequency db1; /* Intentional deadband width (db1). Unit = Hz. Typical Value = 0. Default: nullptr */ - CIMPP::Frequency eps; /* Intentional db hysteresis (eps). Unit = Hz. Typical Value = 0. Default: nullptr */ - CIMPP::Boolean sdb1; /* Intentional deadband indicator. true = intentional deadband is applied false = intentional deadband is not applied. Typical Value = true. Default: false */ - CIMPP::Boolean sdb2; /* Unintentional deadband location. true = intentional deadband is applied before point `A` false = intentional deadband is applied after point `A`. Typical Value = true. Default: false */ - CIMPP::ActivePower db2; /* Unintentional deadband (db2). Unit = MW. Typical Value = 0. Default: nullptr */ - CIMPP::Boolean valve; /* Nonlinear valve characteristic. true = nonlinear valve characteristic is used false = nonlinear valve characteristic is not used. Typical Value = true. Default: false */ - CIMPP::PU gv1; /* Nonlinear gain valve position point 1 (GV1). Typical Value = 0. Default: nullptr */ - CIMPP::PU pgv1; /* Nonlinear gain power value point 1 (Pgv1). Typical Value = 0. Default: nullptr */ - CIMPP::PU gv2; /* Nonlinear gain valve position point 2 (GV2). Typical Value = 0.4. Default: nullptr */ - CIMPP::PU pgv2; /* Nonlinear gain power value point 2 (Pgv2). Typical Value = 0.75. Default: nullptr */ - CIMPP::PU gv3; /* Nonlinear gain valve position point 3 (GV3). Typical Value = 0.5. Default: nullptr */ - CIMPP::PU pgv3; /* Nonlinear gain power value point 3 (Pgv3). Typical Value = 0.91. Default: nullptr */ - CIMPP::PU gv4; /* Nonlinear gain valve position point 4 (GV4). Typical Value = 0.6. Default: nullptr */ - CIMPP::PU pgv4; /* Nonlinear gain power value point 4 (Pgv4). Typical Value = 0.98. Default: nullptr */ - CIMPP::PU gv5; /* Nonlinear gain valve position point 5 (GV5). Typical Value = 1. Default: nullptr */ - CIMPP::PU pgv5; /* Nonlinear gain power value point 5 (Pgv5). Typical Value = 1. Default: nullptr */ - CIMPP::PU gv6; /* Nonlinear gain valve position point 6 (GV6). Typical Value = 0. Default: nullptr */ - CIMPP::PU pgv6; /* Nonlinear gain power value point 6 (Pgv6). Typical Value = 0. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - GovSteam1(); - virtual ~GovSteam1(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* GovSteam1_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/GovSteam2.cpp b/CGMES_2.4.13_18DEC2013/GovSteam2.cpp deleted file mode 100644 index 7fa5c8ba4..000000000 --- a/CGMES_2.4.13_18DEC2013/GovSteam2.cpp +++ /dev/null @@ -1,161 +0,0 @@ -#include -#include "TurbineGovernorDynamics.hpp" -#include "GovSteam2.hpp" - -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -GovSteam2::GovSteam2() {}; - -GovSteam2::~GovSteam2() {}; - - - - - - - - - - - -bool assign_GovSteam2_k(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteam2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteam2_dbf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteam2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->dbf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteam2_t1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteam2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteam2_t2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteam2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteam2_pmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteam2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteam2_pmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteam2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteam2_mxef(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteam2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->mxef; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteam2_mnef(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteam2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->mnef; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* GovSteam2_factory() { - return new GovSteam2; - } -} - -void GovSteam2::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:GovSteam2"), &GovSteam2_factory)); -} - -void GovSteam2::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:GovSteam2.k"), &assign_GovSteam2_k)); - assign_map.insert(std::make_pair(std::string("cim:GovSteam2.dbf"), &assign_GovSteam2_dbf)); - assign_map.insert(std::make_pair(std::string("cim:GovSteam2.t1"), &assign_GovSteam2_t1)); - assign_map.insert(std::make_pair(std::string("cim:GovSteam2.t2"), &assign_GovSteam2_t2)); - assign_map.insert(std::make_pair(std::string("cim:GovSteam2.pmax"), &assign_GovSteam2_pmax)); - assign_map.insert(std::make_pair(std::string("cim:GovSteam2.pmin"), &assign_GovSteam2_pmin)); - assign_map.insert(std::make_pair(std::string("cim:GovSteam2.mxef"), &assign_GovSteam2_mxef)); - assign_map.insert(std::make_pair(std::string("cim:GovSteam2.mnef"), &assign_GovSteam2_mnef)); -} - -void GovSteam2::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char GovSteam2::debugName[] = "GovSteam2"; -const char* GovSteam2::debugString() -{ - return GovSteam2::debugName; -} - -const BaseClassDefiner GovSteam2::declare() -{ - return BaseClassDefiner(GovSteam2::addConstructToMap, GovSteam2::addPrimitiveAssignFnsToMap, GovSteam2::addClassAssignFnsToMap, GovSteam2::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/GovSteam2.hpp b/CGMES_2.4.13_18DEC2013/GovSteam2.hpp deleted file mode 100644 index 0bbbead01..000000000 --- a/CGMES_2.4.13_18DEC2013/GovSteam2.hpp +++ /dev/null @@ -1,49 +0,0 @@ -#ifndef GovSteam2_H -#define GovSteam2_H - -#include "TurbineGovernorDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "Seconds.hpp" - -namespace CIMPP { - - - /* - Simplified governor model. - */ - class GovSteam2: public TurbineGovernorDynamics - { - - public: - CIMPP::Simple_Float k; /* Governor gain (reciprocal of droop) (K). Typical Value = 20. Default: nullptr */ - CIMPP::PU dbf; /* Frequency dead band (DBF). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds t1; /* Governor lag time constant (T) (>0). Typical Value = 0.45. Default: nullptr */ - CIMPP::Seconds t2; /* Governor lead time constant (T) (may be 0). Typical Value = 0. Default: nullptr */ - CIMPP::PU pmax; /* Maximum fuel flow (P). Typical Value = 1. Default: nullptr */ - CIMPP::PU pmin; /* Minimum fuel flow (P). Typical Value = 0. Default: nullptr */ - CIMPP::PU mxef; /* Fuel flow maximum positive error value (MX). Typical Value = 1. Default: nullptr */ - CIMPP::PU mnef; /* Fuel flow maximum negative error value (MN). Typical Value = -1. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - GovSteam2(); - virtual ~GovSteam2(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* GovSteam2_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/GovSteamCC.cpp b/CGMES_2.4.13_18DEC2013/GovSteamCC.cpp deleted file mode 100644 index eb9bd88ba..000000000 --- a/CGMES_2.4.13_18DEC2013/GovSteamCC.cpp +++ /dev/null @@ -1,296 +0,0 @@ -#include -#include "TurbineGovernorDynamics.hpp" -#include "GovSteamCC.hpp" - -#include "ActivePower.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -GovSteamCC::GovSteamCC() {}; - -GovSteamCC::~GovSteamCC() {}; - - - - - - - - - - - - - - - - - - - - -bool assign_GovSteamCC_mwbase(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamCC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->mwbase; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamCC_pmaxhp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamCC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pmaxhp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamCC_rhp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamCC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->rhp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamCC_t1hp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamCC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t1hp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamCC_t3hp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamCC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t3hp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamCC_t4hp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamCC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t4hp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamCC_t5hp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamCC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t5hp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamCC_fhp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamCC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->fhp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamCC_dhp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamCC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->dhp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamCC_pmaxlp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamCC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pmaxlp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamCC_rlp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamCC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->rlp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamCC_t1lp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamCC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t1lp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamCC_t3lp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamCC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t3lp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamCC_t4lp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamCC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t4lp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamCC_t5lp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamCC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t5lp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamCC_flp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamCC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->flp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamCC_dlp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamCC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->dlp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* GovSteamCC_factory() { - return new GovSteamCC; - } -} - -void GovSteamCC::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:GovSteamCC"), &GovSteamCC_factory)); -} - -void GovSteamCC::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:GovSteamCC.mwbase"), &assign_GovSteamCC_mwbase)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamCC.pmaxhp"), &assign_GovSteamCC_pmaxhp)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamCC.rhp"), &assign_GovSteamCC_rhp)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamCC.t1hp"), &assign_GovSteamCC_t1hp)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamCC.t3hp"), &assign_GovSteamCC_t3hp)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamCC.t4hp"), &assign_GovSteamCC_t4hp)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamCC.t5hp"), &assign_GovSteamCC_t5hp)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamCC.fhp"), &assign_GovSteamCC_fhp)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamCC.dhp"), &assign_GovSteamCC_dhp)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamCC.pmaxlp"), &assign_GovSteamCC_pmaxlp)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamCC.rlp"), &assign_GovSteamCC_rlp)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamCC.t1lp"), &assign_GovSteamCC_t1lp)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamCC.t3lp"), &assign_GovSteamCC_t3lp)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamCC.t4lp"), &assign_GovSteamCC_t4lp)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamCC.t5lp"), &assign_GovSteamCC_t5lp)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamCC.flp"), &assign_GovSteamCC_flp)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamCC.dlp"), &assign_GovSteamCC_dlp)); -} - -void GovSteamCC::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char GovSteamCC::debugName[] = "GovSteamCC"; -const char* GovSteamCC::debugString() -{ - return GovSteamCC::debugName; -} - -const BaseClassDefiner GovSteamCC::declare() -{ - return BaseClassDefiner(GovSteamCC::addConstructToMap, GovSteamCC::addPrimitiveAssignFnsToMap, GovSteamCC::addClassAssignFnsToMap, GovSteamCC::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/GovSteamCC.hpp b/CGMES_2.4.13_18DEC2013/GovSteamCC.hpp deleted file mode 100644 index 7bb44f76b..000000000 --- a/CGMES_2.4.13_18DEC2013/GovSteamCC.hpp +++ /dev/null @@ -1,58 +0,0 @@ -#ifndef GovSteamCC_H -#define GovSteamCC_H - -#include "TurbineGovernorDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "ActivePower.hpp" -#include "PU.hpp" -#include "Seconds.hpp" - -namespace CIMPP { - - - /* - Cross compound turbine governor model. - */ - class GovSteamCC: public TurbineGovernorDynamics - { - - public: - CIMPP::ActivePower mwbase; /* Base for power values (MWbase) (>0). Unit = MW. Default: nullptr */ - CIMPP::PU pmaxhp; /* Maximum HP value position (Pmaxhp). Typical Value = 1. Default: nullptr */ - CIMPP::PU rhp; /* HP governor droop (Rhp). Typical Value = 0.05. Default: nullptr */ - CIMPP::Seconds t1hp; /* HP governor time constant (T1hp). Typical Value = 0.1. Default: nullptr */ - CIMPP::Seconds t3hp; /* HP turbine time constant (T3hp). Typical Value = 0.1. Default: nullptr */ - CIMPP::Seconds t4hp; /* HP turbine time constant (T4hp). Typical Value = 0.1. Default: nullptr */ - CIMPP::Seconds t5hp; /* HP reheater time constant (T5hp). Typical Value = 10. Default: nullptr */ - CIMPP::PU fhp; /* Fraction of HP power ahead of reheater (Fhp). Typical Value = 0.3. Default: nullptr */ - CIMPP::PU dhp; /* HP damping factor (Dhp). Typical Value = 0. Default: nullptr */ - CIMPP::PU pmaxlp; /* Maximum LP value position (Pmaxlp). Typical Value = 1. Default: nullptr */ - CIMPP::PU rlp; /* LP governor droop (Rlp). Typical Value = 0.05. Default: nullptr */ - CIMPP::Seconds t1lp; /* LP governor time constant (T1lp). Typical Value = 0.1. Default: nullptr */ - CIMPP::Seconds t3lp; /* LP turbine time constant (T3lp). Typical Value = 0.1. Default: nullptr */ - CIMPP::Seconds t4lp; /* LP turbine time constant (T4lp). Typical Value = 0.1. Default: nullptr */ - CIMPP::Seconds t5lp; /* LP reheater time constant (T5lp). Typical Value = 10. Default: nullptr */ - CIMPP::PU flp; /* Fraction of LP power ahead of reheater (Flp). Typical Value = 0.7. Default: nullptr */ - CIMPP::PU dlp; /* LP damping factor (Dlp). Typical Value = 0. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - GovSteamCC(); - virtual ~GovSteamCC(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* GovSteamCC_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/GovSteamEU.cpp b/CGMES_2.4.13_18DEC2013/GovSteamEU.cpp deleted file mode 100644 index d65b3ef66..000000000 --- a/CGMES_2.4.13_18DEC2013/GovSteamEU.cpp +++ /dev/null @@ -1,566 +0,0 @@ -#include -#include "TurbineGovernorDynamics.hpp" -#include "GovSteamEU.hpp" - -#include "ActivePower.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" - -using namespace CIMPP; - -GovSteamEU::GovSteamEU() {}; - -GovSteamEU::~GovSteamEU() {}; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -bool assign_GovSteamEU_mwbase(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamEU* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->mwbase; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamEU_tp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamEU* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamEU_ke(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamEU* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ke; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamEU_tip(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamEU* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tip; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamEU_tdp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamEU* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tdp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamEU_tfp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamEU* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tfp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamEU_tf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamEU* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamEU_kfcor(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamEU* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kfcor; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamEU_db1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamEU* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->db1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamEU_wfmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamEU* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->wfmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamEU_wfmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamEU* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->wfmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamEU_pmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamEU* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamEU_ten(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamEU* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ten; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamEU_tw(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamEU* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tw; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamEU_kwcor(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamEU* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kwcor; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamEU_db2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamEU* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->db2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamEU_wwmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamEU* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->wwmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamEU_wwmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamEU* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->wwmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamEU_wmax1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamEU* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->wmax1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamEU_wmax2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamEU* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->wmax2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamEU_tvhp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamEU* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tvhp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamEU_cho(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamEU* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->cho; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamEU_chc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamEU* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->chc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamEU_hhpmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamEU* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->hhpmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamEU_tvip(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamEU* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tvip; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamEU_cio(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamEU* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->cio; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamEU_cic(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamEU* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->cic; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamEU_simx(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamEU* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->simx; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamEU_thp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamEU* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->thp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamEU_trh(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamEU* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->trh; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamEU_tlp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamEU* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tlp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamEU_prhmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamEU* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->prhmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamEU_khp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamEU* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->khp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamEU_klp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamEU* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->klp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamEU_tb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamEU* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* GovSteamEU_factory() { - return new GovSteamEU; - } -} - -void GovSteamEU::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:GovSteamEU"), &GovSteamEU_factory)); -} - -void GovSteamEU::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:GovSteamEU.mwbase"), &assign_GovSteamEU_mwbase)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamEU.tp"), &assign_GovSteamEU_tp)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamEU.ke"), &assign_GovSteamEU_ke)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamEU.tip"), &assign_GovSteamEU_tip)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamEU.tdp"), &assign_GovSteamEU_tdp)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamEU.tfp"), &assign_GovSteamEU_tfp)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamEU.tf"), &assign_GovSteamEU_tf)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamEU.kfcor"), &assign_GovSteamEU_kfcor)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamEU.db1"), &assign_GovSteamEU_db1)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamEU.wfmax"), &assign_GovSteamEU_wfmax)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamEU.wfmin"), &assign_GovSteamEU_wfmin)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamEU.pmax"), &assign_GovSteamEU_pmax)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamEU.ten"), &assign_GovSteamEU_ten)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamEU.tw"), &assign_GovSteamEU_tw)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamEU.kwcor"), &assign_GovSteamEU_kwcor)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamEU.db2"), &assign_GovSteamEU_db2)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamEU.wwmax"), &assign_GovSteamEU_wwmax)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamEU.wwmin"), &assign_GovSteamEU_wwmin)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamEU.wmax1"), &assign_GovSteamEU_wmax1)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamEU.wmax2"), &assign_GovSteamEU_wmax2)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamEU.tvhp"), &assign_GovSteamEU_tvhp)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamEU.cho"), &assign_GovSteamEU_cho)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamEU.chc"), &assign_GovSteamEU_chc)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamEU.hhpmax"), &assign_GovSteamEU_hhpmax)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamEU.tvip"), &assign_GovSteamEU_tvip)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamEU.cio"), &assign_GovSteamEU_cio)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamEU.cic"), &assign_GovSteamEU_cic)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamEU.simx"), &assign_GovSteamEU_simx)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamEU.thp"), &assign_GovSteamEU_thp)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamEU.trh"), &assign_GovSteamEU_trh)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamEU.tlp"), &assign_GovSteamEU_tlp)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamEU.prhmax"), &assign_GovSteamEU_prhmax)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamEU.khp"), &assign_GovSteamEU_khp)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamEU.klp"), &assign_GovSteamEU_klp)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamEU.tb"), &assign_GovSteamEU_tb)); -} - -void GovSteamEU::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char GovSteamEU::debugName[] = "GovSteamEU"; -const char* GovSteamEU::debugString() -{ - return GovSteamEU::debugName; -} - -const BaseClassDefiner GovSteamEU::declare() -{ - return BaseClassDefiner(GovSteamEU::addConstructToMap, GovSteamEU::addPrimitiveAssignFnsToMap, GovSteamEU::addClassAssignFnsToMap, GovSteamEU::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/GovSteamEU.hpp b/CGMES_2.4.13_18DEC2013/GovSteamEU.hpp deleted file mode 100644 index a29f4cbae..000000000 --- a/CGMES_2.4.13_18DEC2013/GovSteamEU.hpp +++ /dev/null @@ -1,77 +0,0 @@ -#ifndef GovSteamEU_H -#define GovSteamEU_H - -#include "TurbineGovernorDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "ActivePower.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" - -namespace CIMPP { - - - /* - Simplified model of boiler and steam turbine with PID governor. - */ - class GovSteamEU: public TurbineGovernorDynamics - { - - public: - CIMPP::ActivePower mwbase; /* Base for power values (MWbase) (>0). Unit = MW. Default: nullptr */ - CIMPP::Seconds tp; /* Power transducer time constant (Tp). Typical Value = 0.07. Default: nullptr */ - CIMPP::PU ke; /* Gain of the power controller (Ke). Typical Value = 0.65. Default: nullptr */ - CIMPP::Seconds tip; /* Integral time constant of the power controller (Tip). Typical Value = 2. Default: nullptr */ - CIMPP::Seconds tdp; /* Derivative time constant of the power controller (Tdp). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tfp; /* Time constant of the power controller (Tfp). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tf; /* Frequency transducer time constant (Tf). Typical Value = 0. Default: nullptr */ - CIMPP::PU kfcor; /* Gain of the frequency corrector (Kfcor). Typical Value = 20. Default: nullptr */ - CIMPP::PU db1; /* Dead band of the frequency corrector (db1). Typical Value = 0. Default: nullptr */ - CIMPP::PU wfmax; /* Upper limit for frequency correction (Wfmax). Typical Value = 0.05. Default: nullptr */ - CIMPP::PU wfmin; /* Lower limit for frequency correction (Wfmin). Typical Value = -0.05. Default: nullptr */ - CIMPP::PU pmax; /* Maximal active power of the turbine (Pmax). Typical Value = 1. Default: nullptr */ - CIMPP::Seconds ten; /* Electro hydraulic transducer (Ten). Typical Value = 0.1. Default: nullptr */ - CIMPP::Seconds tw; /* Speed transducer time constant (Tw). Typical Value = 0.02. Default: nullptr */ - CIMPP::PU kwcor; /* Gain of the speed governor (Kwcor). Typical Value = 20. Default: nullptr */ - CIMPP::PU db2; /* Dead band of the speed governor (db2). Typical Value = 0.0004. Default: nullptr */ - CIMPP::PU wwmax; /* Upper limit for the speed governor (Wwmax). Typical Value = 0.1. Default: nullptr */ - CIMPP::PU wwmin; /* Lower limit for the speed governor frequency correction (Wwmin). Typical Value = -1. Default: nullptr */ - CIMPP::PU wmax1; /* Emergency speed control lower limit (wmax1). Typical Value = 1.025. Default: nullptr */ - CIMPP::PU wmax2; /* Emergency speed control upper limit (wmax2). Typical Value = 1.05. Default: nullptr */ - CIMPP::Seconds tvhp; /* Control valves servo time constant (Tvhp). Typical Value = 0.1. Default: nullptr */ - CIMPP::Simple_Float cho; /* Control valves rate opening limit (Cho). Unit = PU/sec. Typical Value = 0.17. Default: nullptr */ - CIMPP::Simple_Float chc; /* Control valves rate closing limit (Chc). Unit = PU/sec. Typical Value = -3.3. Default: nullptr */ - CIMPP::PU hhpmax; /* Maximum control valve position (Hhpmax). Typical Value = 1. Default: nullptr */ - CIMPP::Seconds tvip; /* Intercept valves servo time constant (Tvip). Typical Value = 0.15. Default: nullptr */ - CIMPP::PU cio; /* Intercept valves rate opening limit (Cio). Typical Value = 0.123. Default: nullptr */ - CIMPP::PU cic; /* Intercept valves rate closing limit (Cic). Typical Value = -2.2. Default: nullptr */ - CIMPP::PU simx; /* Intercept valves transfer limit (Simx). Typical Value = 0.425. Default: nullptr */ - CIMPP::Seconds thp; /* High pressure (HP) time constant of the turbine (Thp). Typical Value = 0.31. Default: nullptr */ - CIMPP::Seconds trh; /* Reheater time constant of the turbine (Trh). Typical Value = 8. Default: nullptr */ - CIMPP::Seconds tlp; /* Low pressure(LP) time constant of the turbine (Tlp). Typical Value = 0.45. Default: nullptr */ - CIMPP::PU prhmax; /* Maximum low pressure limit (Prhmax). Typical Value = 1.4. Default: nullptr */ - CIMPP::PU khp; /* Fraction of total turbine output generated by HP part (Khp). Typical Value = 0.277. Default: nullptr */ - CIMPP::PU klp; /* Fraction of total turbine output generated by HP part (Klp). Typical Value = 0.723. Default: nullptr */ - CIMPP::Seconds tb; /* Boiler time constant (Tb). Typical Value = 100. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - GovSteamEU(); - virtual ~GovSteamEU(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* GovSteamEU_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/GovSteamFV2.cpp b/CGMES_2.4.13_18DEC2013/GovSteamFV2.cpp deleted file mode 100644 index c907305f9..000000000 --- a/CGMES_2.4.13_18DEC2013/GovSteamFV2.cpp +++ /dev/null @@ -1,236 +0,0 @@ -#include -#include "TurbineGovernorDynamics.hpp" -#include "GovSteamFV2.hpp" - -#include "ActivePower.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" - -using namespace CIMPP; - -GovSteamFV2::GovSteamFV2() {}; - -GovSteamFV2::~GovSteamFV2() {}; - - - - - - - - - - - - - - - - -bool assign_GovSteamFV2_mwbase(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->mwbase; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV2_r(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->r; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV2_t1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV2_vmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV2_vmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV2_k(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV2_t3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV2_dt(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->dt; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV2_tt(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tt; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV2_ta(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ta; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV2_tb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV2_tc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV2_ti(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ti; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* GovSteamFV2_factory() { - return new GovSteamFV2; - } -} - -void GovSteamFV2::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:GovSteamFV2"), &GovSteamFV2_factory)); -} - -void GovSteamFV2::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV2.mwbase"), &assign_GovSteamFV2_mwbase)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV2.r"), &assign_GovSteamFV2_r)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV2.t1"), &assign_GovSteamFV2_t1)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV2.vmax"), &assign_GovSteamFV2_vmax)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV2.vmin"), &assign_GovSteamFV2_vmin)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV2.k"), &assign_GovSteamFV2_k)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV2.t3"), &assign_GovSteamFV2_t3)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV2.dt"), &assign_GovSteamFV2_dt)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV2.tt"), &assign_GovSteamFV2_tt)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV2.ta"), &assign_GovSteamFV2_ta)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV2.tb"), &assign_GovSteamFV2_tb)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV2.tc"), &assign_GovSteamFV2_tc)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV2.ti"), &assign_GovSteamFV2_ti)); -} - -void GovSteamFV2::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char GovSteamFV2::debugName[] = "GovSteamFV2"; -const char* GovSteamFV2::debugString() -{ - return GovSteamFV2::debugName; -} - -const BaseClassDefiner GovSteamFV2::declare() -{ - return BaseClassDefiner(GovSteamFV2::addConstructToMap, GovSteamFV2::addPrimitiveAssignFnsToMap, GovSteamFV2::addClassAssignFnsToMap, GovSteamFV2::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/GovSteamFV2.hpp b/CGMES_2.4.13_18DEC2013/GovSteamFV2.hpp deleted file mode 100644 index 5346ddee4..000000000 --- a/CGMES_2.4.13_18DEC2013/GovSteamFV2.hpp +++ /dev/null @@ -1,54 +0,0 @@ -#ifndef GovSteamFV2_H -#define GovSteamFV2_H - -#include "TurbineGovernorDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "ActivePower.hpp" -#include "PU.hpp" -#include "Seconds.hpp" - -namespace CIMPP { - - - /* - Steam turbine governor with reheat time constants and modeling of the effects of fast valve closing to reduce mechanical power. - */ - class GovSteamFV2: public TurbineGovernorDynamics - { - - public: - CIMPP::ActivePower mwbase; /* Alternate Base used instead of Machine base in equipment model if necessary (MWbase) (>0). Unit = MW. Default: nullptr */ - CIMPP::PU r; /* (R). Default: nullptr */ - CIMPP::Seconds t1; /* Governor time constant (T1). Default: nullptr */ - CIMPP::PU vmax; /* (Vmax). Default: nullptr */ - CIMPP::PU vmin; /* (Vmin). Default: nullptr */ - CIMPP::PU k; /* Fraction of the turbine power developed by turbine sections not involved in fast valving (K). Default: nullptr */ - CIMPP::Seconds t3; /* Reheater time constant (T3). Default: nullptr */ - CIMPP::PU dt; /* (Dt). Default: nullptr */ - CIMPP::Seconds tt; /* Time constant with which power falls off after intercept valve closure (Tt). Default: nullptr */ - CIMPP::Seconds ta; /* Time after initial time for valve to close (Ta). Default: nullptr */ - CIMPP::Seconds tb; /* Time after initial time for valve to begin opening (Tb). Default: nullptr */ - CIMPP::Seconds tc; /* Time after initial time for valve to become fully open (Tc). Default: nullptr */ - CIMPP::Seconds ti; /* Initial time to begin fast valving (Ti). Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - GovSteamFV2(); - virtual ~GovSteamFV2(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* GovSteamFV2_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/GovSteamFV3.cpp b/CGMES_2.4.13_18DEC2013/GovSteamFV3.cpp deleted file mode 100644 index 8b48f1cb6..000000000 --- a/CGMES_2.4.13_18DEC2013/GovSteamFV3.cpp +++ /dev/null @@ -1,326 +0,0 @@ -#include -#include "TurbineGovernorDynamics.hpp" -#include "GovSteamFV3.hpp" - -#include "ActivePower.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -GovSteamFV3::GovSteamFV3() {}; - -GovSteamFV3::~GovSteamFV3() {}; - - - - - - - - - - - - - - - - - - - - - - -bool assign_GovSteamFV3_mwbase(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->mwbase; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV3_k(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV3_t1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV3_t2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV3_t3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV3_uo(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->uo; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV3_uc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->uc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV3_pmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV3_pmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV3_t4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV3_k1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV3_t5(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV3_k2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV3_t6(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t6; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV3_k3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV3_ta(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ta; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV3_tb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV3_tc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV3_prmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->prmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* GovSteamFV3_factory() { - return new GovSteamFV3; - } -} - -void GovSteamFV3::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:GovSteamFV3"), &GovSteamFV3_factory)); -} - -void GovSteamFV3::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV3.mwbase"), &assign_GovSteamFV3_mwbase)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV3.k"), &assign_GovSteamFV3_k)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV3.t1"), &assign_GovSteamFV3_t1)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV3.t2"), &assign_GovSteamFV3_t2)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV3.t3"), &assign_GovSteamFV3_t3)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV3.uo"), &assign_GovSteamFV3_uo)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV3.uc"), &assign_GovSteamFV3_uc)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV3.pmax"), &assign_GovSteamFV3_pmax)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV3.pmin"), &assign_GovSteamFV3_pmin)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV3.t4"), &assign_GovSteamFV3_t4)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV3.k1"), &assign_GovSteamFV3_k1)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV3.t5"), &assign_GovSteamFV3_t5)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV3.k2"), &assign_GovSteamFV3_k2)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV3.t6"), &assign_GovSteamFV3_t6)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV3.k3"), &assign_GovSteamFV3_k3)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV3.ta"), &assign_GovSteamFV3_ta)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV3.tb"), &assign_GovSteamFV3_tb)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV3.tc"), &assign_GovSteamFV3_tc)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV3.prmax"), &assign_GovSteamFV3_prmax)); -} - -void GovSteamFV3::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char GovSteamFV3::debugName[] = "GovSteamFV3"; -const char* GovSteamFV3::debugString() -{ - return GovSteamFV3::debugName; -} - -const BaseClassDefiner GovSteamFV3::declare() -{ - return BaseClassDefiner(GovSteamFV3::addConstructToMap, GovSteamFV3::addPrimitiveAssignFnsToMap, GovSteamFV3::addClassAssignFnsToMap, GovSteamFV3::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/GovSteamFV3.hpp b/CGMES_2.4.13_18DEC2013/GovSteamFV3.hpp deleted file mode 100644 index fc3650f3f..000000000 --- a/CGMES_2.4.13_18DEC2013/GovSteamFV3.hpp +++ /dev/null @@ -1,61 +0,0 @@ -#ifndef GovSteamFV3_H -#define GovSteamFV3_H - -#include "TurbineGovernorDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "ActivePower.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Simple_Float.hpp" - -namespace CIMPP { - - - /* - Simplified GovSteamIEEE1 Steam turbine governor model with Prmax limit and fast valving. - */ - class GovSteamFV3: public TurbineGovernorDynamics - { - - public: - CIMPP::ActivePower mwbase; /* Base for power values (MWbase) (>0). Unit = MW. Default: nullptr */ - CIMPP::PU k; /* Governor gain, (reciprocal of droop) (K). Typical Value = 20. Default: nullptr */ - CIMPP::Seconds t1; /* Governor lead time constant (T1). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds t2; /* Governor lag time constant (T2). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds t3; /* Valve positioner time constant (T3). Typical Value = 0. Default: nullptr */ - CIMPP::Simple_Float uo; /* Maximum valve opening velocity (Uo). Unit = PU/sec. Typical Value = 0.1. Default: nullptr */ - CIMPP::Simple_Float uc; /* Maximum valve closing velocity (Uc). Unit = PU/sec. Typical Value = -1. Default: nullptr */ - CIMPP::PU pmax; /* Maximum valve opening, PU of MWbase (Pmax). Typical Value = 1. Default: nullptr */ - CIMPP::PU pmin; /* Minimum valve opening, PU of MWbase (Pmin). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds t4; /* Inlet piping/steam bowl time constant (T4). Typical Value = 0.2. Default: nullptr */ - CIMPP::PU k1; /* Fraction of turbine power developed after first boiler pass (K1). Typical Value = 0.2. Default: nullptr */ - CIMPP::Seconds t5; /* Time constant of second boiler pass (i.e. reheater) (T5). Typical Value = 0.5. Default: nullptr */ - CIMPP::PU k2; /* Fraction of turbine power developed after second boiler pass (K2). Typical Value = 0.2. Default: nullptr */ - CIMPP::Seconds t6; /* Time constant of crossover or third boiler pass (T6). Typical Value = 10. Default: nullptr */ - CIMPP::PU k3; /* Fraction of hp turbine power developed after crossover or third boiler pass (K3). Typical Value = 0.6. Default: nullptr */ - CIMPP::Seconds ta; /* Time to close intercept valve (IV) (Ta). Typical Value = 0.97. Default: nullptr */ - CIMPP::Seconds tb; /* Time until IV starts to reopen (Tb). Typical Value = 0.98. Default: nullptr */ - CIMPP::Seconds tc; /* Time until IV is fully open (Tc). Typical Value = 0.99. Default: nullptr */ - CIMPP::PU prmax; /* Max. pressure in reheater (Prmax). Typical Value = 1. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - GovSteamFV3(); - virtual ~GovSteamFV3(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* GovSteamFV3_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/GovSteamFV4.cpp b/CGMES_2.4.13_18DEC2013/GovSteamFV4.cpp deleted file mode 100644 index 98d03a636..000000000 --- a/CGMES_2.4.13_18DEC2013/GovSteamFV4.cpp +++ /dev/null @@ -1,806 +0,0 @@ -#include -#include "TurbineGovernorDynamics.hpp" -#include "GovSteamFV4.hpp" - -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -GovSteamFV4::GovSteamFV4() {}; - -GovSteamFV4::~GovSteamFV4() {}; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -bool assign_GovSteamFV4_kf1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kf1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV4_kf3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kf3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV4_lps(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->lps; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV4_lpi(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->lpi; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV4_mxef(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->mxef; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV4_mnef(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->mnef; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV4_crmx(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->crmx; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV4_crmn(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->crmn; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV4_kpt(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kpt; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV4_kit(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kit; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV4_rvgmx(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->rvgmx; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV4_rvgmn(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->rvgmn; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV4_svmx(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->svmx; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV4_svmn(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->svmn; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV4_srmx(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->srmx; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV4_srmn(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->srmn; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV4_kpp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kpp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV4_kip(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kip; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV4_rsmimx(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->rsmimx; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV4_rsmimn(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->rsmimn; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV4_kmp1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kmp1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV4_kmp2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kmp2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV4_srsmp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->srsmp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV4_ta(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ta; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV4_tc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV4_ty(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ty; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV4_yhpmx(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->yhpmx; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV4_yhpmn(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->yhpmn; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV4_tam(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tam; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV4_tcm(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tcm; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV4_ympmx(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ympmx; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV4_ympmn(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ympmn; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV4_y(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->y; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV4_thp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->thp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV4_trh(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->trh; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV4_tmp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tmp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV4_khp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->khp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV4_pr1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pr1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV4_pr2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pr2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV4_psmn(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->psmn; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV4_kpc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kpc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV4_kic(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kic; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV4_kdc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kdc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV4_tdc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tdc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV4_cpsmx(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->cpsmx; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV4_cpsmn(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->cpsmn; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV4_krc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->krc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV4_tf1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tf1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV4_tf2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tf2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV4_tv(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tv; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamFV4_ksh(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamFV4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ksh; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* GovSteamFV4_factory() { - return new GovSteamFV4; - } -} - -void GovSteamFV4::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:GovSteamFV4"), &GovSteamFV4_factory)); -} - -void GovSteamFV4::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV4.kf1"), &assign_GovSteamFV4_kf1)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV4.kf3"), &assign_GovSteamFV4_kf3)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV4.lps"), &assign_GovSteamFV4_lps)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV4.lpi"), &assign_GovSteamFV4_lpi)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV4.mxef"), &assign_GovSteamFV4_mxef)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV4.mnef"), &assign_GovSteamFV4_mnef)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV4.crmx"), &assign_GovSteamFV4_crmx)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV4.crmn"), &assign_GovSteamFV4_crmn)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV4.kpt"), &assign_GovSteamFV4_kpt)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV4.kit"), &assign_GovSteamFV4_kit)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV4.rvgmx"), &assign_GovSteamFV4_rvgmx)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV4.rvgmn"), &assign_GovSteamFV4_rvgmn)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV4.svmx"), &assign_GovSteamFV4_svmx)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV4.svmn"), &assign_GovSteamFV4_svmn)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV4.srmx"), &assign_GovSteamFV4_srmx)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV4.srmn"), &assign_GovSteamFV4_srmn)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV4.kpp"), &assign_GovSteamFV4_kpp)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV4.kip"), &assign_GovSteamFV4_kip)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV4.rsmimx"), &assign_GovSteamFV4_rsmimx)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV4.rsmimn"), &assign_GovSteamFV4_rsmimn)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV4.kmp1"), &assign_GovSteamFV4_kmp1)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV4.kmp2"), &assign_GovSteamFV4_kmp2)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV4.srsmp"), &assign_GovSteamFV4_srsmp)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV4.ta"), &assign_GovSteamFV4_ta)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV4.tc"), &assign_GovSteamFV4_tc)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV4.ty"), &assign_GovSteamFV4_ty)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV4.yhpmx"), &assign_GovSteamFV4_yhpmx)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV4.yhpmn"), &assign_GovSteamFV4_yhpmn)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV4.tam"), &assign_GovSteamFV4_tam)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV4.tcm"), &assign_GovSteamFV4_tcm)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV4.ympmx"), &assign_GovSteamFV4_ympmx)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV4.ympmn"), &assign_GovSteamFV4_ympmn)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV4.y"), &assign_GovSteamFV4_y)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV4.thp"), &assign_GovSteamFV4_thp)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV4.trh"), &assign_GovSteamFV4_trh)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV4.tmp"), &assign_GovSteamFV4_tmp)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV4.khp"), &assign_GovSteamFV4_khp)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV4.pr1"), &assign_GovSteamFV4_pr1)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV4.pr2"), &assign_GovSteamFV4_pr2)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV4.psmn"), &assign_GovSteamFV4_psmn)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV4.kpc"), &assign_GovSteamFV4_kpc)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV4.kic"), &assign_GovSteamFV4_kic)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV4.kdc"), &assign_GovSteamFV4_kdc)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV4.tdc"), &assign_GovSteamFV4_tdc)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV4.cpsmx"), &assign_GovSteamFV4_cpsmx)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV4.cpsmn"), &assign_GovSteamFV4_cpsmn)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV4.krc"), &assign_GovSteamFV4_krc)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV4.tf1"), &assign_GovSteamFV4_tf1)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV4.tf2"), &assign_GovSteamFV4_tf2)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV4.tv"), &assign_GovSteamFV4_tv)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamFV4.ksh"), &assign_GovSteamFV4_ksh)); -} - -void GovSteamFV4::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char GovSteamFV4::debugName[] = "GovSteamFV4"; -const char* GovSteamFV4::debugString() -{ - return GovSteamFV4::debugName; -} - -const BaseClassDefiner GovSteamFV4::declare() -{ - return BaseClassDefiner(GovSteamFV4::addConstructToMap, GovSteamFV4::addPrimitiveAssignFnsToMap, GovSteamFV4::addClassAssignFnsToMap, GovSteamFV4::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/GovSteamFV4.hpp b/CGMES_2.4.13_18DEC2013/GovSteamFV4.hpp deleted file mode 100644 index 0054e6425..000000000 --- a/CGMES_2.4.13_18DEC2013/GovSteamFV4.hpp +++ /dev/null @@ -1,92 +0,0 @@ -#ifndef GovSteamFV4_H -#define GovSteamFV4_H - -#include "TurbineGovernorDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "Seconds.hpp" - -namespace CIMPP { - - - /* - Detailed electro-hydraulic governor for steam unit. - */ - class GovSteamFV4: public TurbineGovernorDynamics - { - - public: - CIMPP::PU kf1; /* Frequency bias (reciprocal of droop) (Kf1). Typical Value = 20. Default: nullptr */ - CIMPP::PU kf3; /* Frequency control (reciprocal of droop) (Kf3). Typical Value = 20. Default: nullptr */ - CIMPP::PU lps; /* Maximum positive power error (Lps). Typical Value = 0.03. Default: nullptr */ - CIMPP::PU lpi; /* Maximum negative power error (Lpi). Typical Value = -0.15. Default: nullptr */ - CIMPP::PU mxef; /* Upper limit for frequency correction (MX). Typical Value = 0.05. Default: nullptr */ - CIMPP::PU mnef; /* Lower limit for frequency correction (MN). Typical Value = -0.05. Default: nullptr */ - CIMPP::PU crmx; /* Maximum value of regulator set-point (Crmx). Typical Value = 1.2. Default: nullptr */ - CIMPP::PU crmn; /* Minimum value of regulator set-point (Crmn). Typical Value = 0. Default: nullptr */ - CIMPP::PU kpt; /* Proportional gain of electro-hydraulic regulator (Kpt). Typical Value = 0.3. Default: nullptr */ - CIMPP::PU kit; /* Integral gain of electro-hydraulic regulator (Kit). Typical Value = 0.04. Default: nullptr */ - CIMPP::PU rvgmx; /* Maximum value of integral regulator (Rvgmx). Typical Value = 1.2. Default: nullptr */ - CIMPP::PU rvgmn; /* Minimum value of integral regulator (Rvgmn). Typical Value = 0. Default: nullptr */ - CIMPP::Simple_Float svmx; /* Maximum regulator gate opening velocity (Svmx). Typical Value = 0.0333. Default: nullptr */ - CIMPP::Simple_Float svmn; /* Maximum regulator gate closing velocity (Svmn). Typical Value = -0.0333. Default: nullptr */ - CIMPP::PU srmx; /* Maximum valve opening (Srmx). Typical Value = 1.1. Default: nullptr */ - CIMPP::PU srmn; /* Minimum valve opening (Srmn). Typical Value = 0. Default: nullptr */ - CIMPP::PU kpp; /* Proportional gain of pressure feedback regulator (Kpp). Typical Value = 1. Default: nullptr */ - CIMPP::PU kip; /* Integral gain of pressure feedback regulator (Kip). Typical Value = 0.5. Default: nullptr */ - CIMPP::PU rsmimx; /* Maximum value of integral regulator (Rsmimx). Typical Value = 1.1. Default: nullptr */ - CIMPP::PU rsmimn; /* Minimum value of integral regulator (Rsmimn). Typical Value = 0. Default: nullptr */ - CIMPP::PU kmp1; /* First gain coefficient of intercept valves characteristic (Kmp1). Typical Value = 0.5. Default: nullptr */ - CIMPP::PU kmp2; /* Second gain coefficient of intercept valves characteristic (Kmp2). Typical Value = 3.5. Default: nullptr */ - CIMPP::PU srsmp; /* Intercept valves characteristic discontinuity point (Srsmp). Typical Value = 0.43. Default: nullptr */ - CIMPP::Seconds ta; /* Control valves rate opening time (Ta). Typical Value = 0.8. Default: nullptr */ - CIMPP::Seconds tc; /* Control valves rate closing time (Tc). Typical Value = 0.5. Default: nullptr */ - CIMPP::Seconds ty; /* Control valves servo time constant (Ty). Typical Value = 0.1. Default: nullptr */ - CIMPP::PU yhpmx; /* Maximum control valve position (Yhpmx). Typical Value = 1.1. Default: nullptr */ - CIMPP::PU yhpmn; /* Minimum control valve position (Yhpmn). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tam; /* Intercept valves rate opening time (Tam). Typical Value = 0.8. Default: nullptr */ - CIMPP::Seconds tcm; /* Intercept valves rate closing time (Tcm). Typical Value = 0.5. Default: nullptr */ - CIMPP::PU ympmx; /* Maximum intercept valve position (Ympmx). Typical Value = 1.1. Default: nullptr */ - CIMPP::PU ympmn; /* Minimum intercept valve position (Ympmn). Typical Value = 0. Default: nullptr */ - CIMPP::PU y; /* Coefficient of linearized equations of turbine (Stodola formulation) (Y). Typical Value = 0.13. Default: nullptr */ - CIMPP::Seconds thp; /* High pressure (HP) time constant of the turbine (Thp). Typical Value = 0.15. Default: nullptr */ - CIMPP::Seconds trh; /* Reheater time constant of the turbine (Trh). Typical Value = 10. Default: nullptr */ - CIMPP::Seconds tmp; /* Low pressure (LP) time constant of the turbine (Tmp). Typical Value = 0.4. Default: nullptr */ - CIMPP::PU khp; /* Fraction of total turbine output generated by HP part (Khp). Typical Value = 0.35. Default: nullptr */ - CIMPP::PU pr1; /* First value of pressure set point static characteristic (Pr1). Typical Value = 0.2. Default: nullptr */ - CIMPP::PU pr2; /* Second value of pressure set point static characteristic, corresponding to Ps0 = 1.0 PU (Pr2). Typical Value = 0.75. Default: nullptr */ - CIMPP::PU psmn; /* Minimum value of pressure set point static characteristic (Psmn). Typical Value = 1. Default: nullptr */ - CIMPP::PU kpc; /* Proportional gain of pressure regulator (Kpc). Typical Value = 0.5. Default: nullptr */ - CIMPP::PU kic; /* Integral gain of pressure regulator (Kic). Typical Value = 0.0033. Default: nullptr */ - CIMPP::PU kdc; /* Derivative gain of pressure regulator (Kdc). Typical Value = 1. Default: nullptr */ - CIMPP::Seconds tdc; /* Derivative time constant of pressure regulator (Tdc). Typical Value = 90. Default: nullptr */ - CIMPP::PU cpsmx; /* Maximum value of pressure regulator output (Cpsmx). Typical Value = 1. Default: nullptr */ - CIMPP::PU cpsmn; /* Minimum value of pressure regulator output (Cpsmn). Typical Value = -1. Default: nullptr */ - CIMPP::PU krc; /* Maximum variation of fuel flow (Krc). Typical Value = 0.05. Default: nullptr */ - CIMPP::Seconds tf1; /* Time constant of fuel regulation (Tf1). Typical Value = 10. Default: nullptr */ - CIMPP::Seconds tf2; /* Time constant of steam chest (Tf2). Typical Value = 10. Default: nullptr */ - CIMPP::Seconds tv; /* Boiler time constant (Tv). Typical Value = 60. Default: nullptr */ - CIMPP::PU ksh; /* Pressure loss due to flow friction in the boiler tubes (Ksh). Typical Value = 0.08. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - GovSteamFV4(); - virtual ~GovSteamFV4(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* GovSteamFV4_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/GovSteamIEEE1.cpp b/CGMES_2.4.13_18DEC2013/GovSteamIEEE1.cpp deleted file mode 100644 index de0955544..000000000 --- a/CGMES_2.4.13_18DEC2013/GovSteamIEEE1.cpp +++ /dev/null @@ -1,356 +0,0 @@ -#include -#include "TurbineGovernorDynamics.hpp" -#include "GovSteamIEEE1.hpp" - -#include "ActivePower.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Seconds.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Seconds.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Seconds.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" - -using namespace CIMPP; - -GovSteamIEEE1::GovSteamIEEE1() {}; - -GovSteamIEEE1::~GovSteamIEEE1() {}; - - - - - - - - - - - - - - - - - - - - - - - - -bool assign_GovSteamIEEE1_mwbase(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamIEEE1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->mwbase; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamIEEE1_k(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamIEEE1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamIEEE1_t1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamIEEE1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamIEEE1_t2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamIEEE1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamIEEE1_t3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamIEEE1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamIEEE1_uo(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamIEEE1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->uo; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamIEEE1_uc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamIEEE1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->uc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamIEEE1_pmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamIEEE1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamIEEE1_pmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamIEEE1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamIEEE1_t4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamIEEE1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamIEEE1_k1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamIEEE1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamIEEE1_k2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamIEEE1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamIEEE1_t5(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamIEEE1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamIEEE1_k3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamIEEE1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamIEEE1_k4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamIEEE1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamIEEE1_t6(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamIEEE1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t6; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamIEEE1_k5(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamIEEE1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamIEEE1_k6(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamIEEE1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k6; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamIEEE1_t7(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamIEEE1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t7; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamIEEE1_k7(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamIEEE1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k7; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamIEEE1_k8(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamIEEE1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k8; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* GovSteamIEEE1_factory() { - return new GovSteamIEEE1; - } -} - -void GovSteamIEEE1::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:GovSteamIEEE1"), &GovSteamIEEE1_factory)); -} - -void GovSteamIEEE1::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:GovSteamIEEE1.mwbase"), &assign_GovSteamIEEE1_mwbase)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamIEEE1.k"), &assign_GovSteamIEEE1_k)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamIEEE1.t1"), &assign_GovSteamIEEE1_t1)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamIEEE1.t2"), &assign_GovSteamIEEE1_t2)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamIEEE1.t3"), &assign_GovSteamIEEE1_t3)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamIEEE1.uo"), &assign_GovSteamIEEE1_uo)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamIEEE1.uc"), &assign_GovSteamIEEE1_uc)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamIEEE1.pmax"), &assign_GovSteamIEEE1_pmax)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamIEEE1.pmin"), &assign_GovSteamIEEE1_pmin)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamIEEE1.t4"), &assign_GovSteamIEEE1_t4)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamIEEE1.k1"), &assign_GovSteamIEEE1_k1)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamIEEE1.k2"), &assign_GovSteamIEEE1_k2)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamIEEE1.t5"), &assign_GovSteamIEEE1_t5)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamIEEE1.k3"), &assign_GovSteamIEEE1_k3)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamIEEE1.k4"), &assign_GovSteamIEEE1_k4)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamIEEE1.t6"), &assign_GovSteamIEEE1_t6)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamIEEE1.k5"), &assign_GovSteamIEEE1_k5)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamIEEE1.k6"), &assign_GovSteamIEEE1_k6)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamIEEE1.t7"), &assign_GovSteamIEEE1_t7)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamIEEE1.k7"), &assign_GovSteamIEEE1_k7)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamIEEE1.k8"), &assign_GovSteamIEEE1_k8)); -} - -void GovSteamIEEE1::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char GovSteamIEEE1::debugName[] = "GovSteamIEEE1"; -const char* GovSteamIEEE1::debugString() -{ - return GovSteamIEEE1::debugName; -} - -const BaseClassDefiner GovSteamIEEE1::declare() -{ - return BaseClassDefiner(GovSteamIEEE1::addConstructToMap, GovSteamIEEE1::addPrimitiveAssignFnsToMap, GovSteamIEEE1::addClassAssignFnsToMap, GovSteamIEEE1::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/GovSteamIEEE1.hpp b/CGMES_2.4.13_18DEC2013/GovSteamIEEE1.hpp deleted file mode 100644 index 5d42a4071..000000000 --- a/CGMES_2.4.13_18DEC2013/GovSteamIEEE1.hpp +++ /dev/null @@ -1,63 +0,0 @@ -#ifndef GovSteamIEEE1_H -#define GovSteamIEEE1_H - -#include "TurbineGovernorDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "ActivePower.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Simple_Float.hpp" - -namespace CIMPP { - - - /* - IEEE steam turbine governor model. Ref - */ - class GovSteamIEEE1: public TurbineGovernorDynamics - { - - public: - CIMPP::ActivePower mwbase; /* Base for power values (MWbase) (> 0) Default: nullptr */ - CIMPP::PU k; /* Governor gain (reciprocal of droop) (K) (> 0). Typical Value = 25. Default: nullptr */ - CIMPP::Seconds t1; /* Governor lag time constant (T1). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds t2; /* Governor lead time constant (T2). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds t3; /* Valve positioner time constant (T3) (> 0). Typical Value = 0.1. Default: nullptr */ - CIMPP::Simple_Float uo; /* Maximum valve opening velocity (Uo) (> 0). Unit = PU/sec. Typical Value = 1. Default: nullptr */ - CIMPP::Simple_Float uc; /* Maximum valve closing velocity (Uc) (< 0). Unit = PU/sec. Typical Value = -10. Default: nullptr */ - CIMPP::PU pmax; /* Maximum valve opening (Pmax) (> Pmin). Typical Value = 1. Default: nullptr */ - CIMPP::PU pmin; /* Minimum valve opening (Pmin) (>= 0). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds t4; /* Inlet piping/steam bowl time constant (T4). Typical Value = 0.3. Default: nullptr */ - CIMPP::Simple_Float k1; /* Fraction of HP shaft power after first boiler pass (K1). Typical Value = 0.2. Default: nullptr */ - CIMPP::Simple_Float k2; /* Fraction of LP shaft power after first boiler pass (K2). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds t5; /* Time constant of second boiler pass (T5). Typical Value = 5. Default: nullptr */ - CIMPP::Simple_Float k3; /* Fraction of HP shaft power after second boiler pass (K3). Typical Value = 0.3. Default: nullptr */ - CIMPP::Simple_Float k4; /* Fraction of LP shaft power after second boiler pass (K4). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds t6; /* Time constant of third boiler pass (T6). Typical Value = 0.5. Default: nullptr */ - CIMPP::Simple_Float k5; /* Fraction of HP shaft power after third boiler pass (K5). Typical Value = 0.5. Default: nullptr */ - CIMPP::Simple_Float k6; /* Fraction of LP shaft power after third boiler pass (K6). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds t7; /* Time constant of fourth boiler pass (T7). Typical Value = 0. Default: nullptr */ - CIMPP::Simple_Float k7; /* Fraction of HP shaft power after fourth boiler pass (K7). Typical Value = 0. Default: nullptr */ - CIMPP::Simple_Float k8; /* Fraction of LP shaft power after fourth boiler pass (K8). Typical Value = 0. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - GovSteamIEEE1(); - virtual ~GovSteamIEEE1(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* GovSteamIEEE1_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/GovSteamSGO.cpp b/CGMES_2.4.13_18DEC2013/GovSteamSGO.cpp deleted file mode 100644 index 009818518..000000000 --- a/CGMES_2.4.13_18DEC2013/GovSteamSGO.cpp +++ /dev/null @@ -1,221 +0,0 @@ -#include -#include "TurbineGovernorDynamics.hpp" -#include "GovSteamSGO.hpp" - -#include "ActivePower.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" - -using namespace CIMPP; - -GovSteamSGO::GovSteamSGO() {}; - -GovSteamSGO::~GovSteamSGO() {}; - - - - - - - - - - - - - - - -bool assign_GovSteamSGO_mwbase(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamSGO* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->mwbase; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamSGO_t1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamSGO* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamSGO_t2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamSGO* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamSGO_t3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamSGO* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamSGO_t4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamSGO* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamSGO_t5(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamSGO* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamSGO_t6(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamSGO* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t6; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamSGO_k1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamSGO* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamSGO_k2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamSGO* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamSGO_k3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamSGO* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamSGO_pmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamSGO* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_GovSteamSGO_pmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GovSteamSGO* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* GovSteamSGO_factory() { - return new GovSteamSGO; - } -} - -void GovSteamSGO::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:GovSteamSGO"), &GovSteamSGO_factory)); -} - -void GovSteamSGO::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:GovSteamSGO.mwbase"), &assign_GovSteamSGO_mwbase)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamSGO.t1"), &assign_GovSteamSGO_t1)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamSGO.t2"), &assign_GovSteamSGO_t2)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamSGO.t3"), &assign_GovSteamSGO_t3)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamSGO.t4"), &assign_GovSteamSGO_t4)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamSGO.t5"), &assign_GovSteamSGO_t5)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamSGO.t6"), &assign_GovSteamSGO_t6)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamSGO.k1"), &assign_GovSteamSGO_k1)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamSGO.k2"), &assign_GovSteamSGO_k2)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamSGO.k3"), &assign_GovSteamSGO_k3)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamSGO.pmax"), &assign_GovSteamSGO_pmax)); - assign_map.insert(std::make_pair(std::string("cim:GovSteamSGO.pmin"), &assign_GovSteamSGO_pmin)); -} - -void GovSteamSGO::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char GovSteamSGO::debugName[] = "GovSteamSGO"; -const char* GovSteamSGO::debugString() -{ - return GovSteamSGO::debugName; -} - -const BaseClassDefiner GovSteamSGO::declare() -{ - return BaseClassDefiner(GovSteamSGO::addConstructToMap, GovSteamSGO::addPrimitiveAssignFnsToMap, GovSteamSGO::addClassAssignFnsToMap, GovSteamSGO::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/GovSteamSGO.hpp b/CGMES_2.4.13_18DEC2013/GovSteamSGO.hpp deleted file mode 100644 index 01f856226..000000000 --- a/CGMES_2.4.13_18DEC2013/GovSteamSGO.hpp +++ /dev/null @@ -1,53 +0,0 @@ -#ifndef GovSteamSGO_H -#define GovSteamSGO_H - -#include "TurbineGovernorDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "ActivePower.hpp" -#include "Seconds.hpp" -#include "PU.hpp" - -namespace CIMPP { - - - /* - Simplified Steam turbine governor model. - */ - class GovSteamSGO: public TurbineGovernorDynamics - { - - public: - CIMPP::ActivePower mwbase; /* Base for power values (MWbase) (>0). Unit = MW. Default: nullptr */ - CIMPP::Seconds t1; /* Controller lag (T1). Default: nullptr */ - CIMPP::Seconds t2; /* Controller lead compensation (T2). Default: nullptr */ - CIMPP::Seconds t3; /* Governor lag (T3) (>0). Default: nullptr */ - CIMPP::Seconds t4; /* Delay due to steam inlet volumes associated with steam chest and inlet piping (T4). Default: nullptr */ - CIMPP::Seconds t5; /* Reheater delay including hot and cold leads (T5). Default: nullptr */ - CIMPP::Seconds t6; /* Delay due to IP-LP turbine, crossover pipes and LP end hoods (T6). Default: nullptr */ - CIMPP::PU k1; /* One/per unit regulation (K1). Default: nullptr */ - CIMPP::PU k2; /* Fraction (K2). Default: nullptr */ - CIMPP::PU k3; /* Fraction (K3). Default: nullptr */ - CIMPP::PU pmax; /* Upper power limit (Pmax). Default: nullptr */ - CIMPP::Seconds pmin; /* Lower power limit (Pmin). Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - GovSteamSGO(); - virtual ~GovSteamSGO(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* GovSteamSGO_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/GrossToNetActivePowerCurve.cpp b/CGMES_2.4.13_18DEC2013/GrossToNetActivePowerCurve.cpp deleted file mode 100644 index f2b70de95..000000000 --- a/CGMES_2.4.13_18DEC2013/GrossToNetActivePowerCurve.cpp +++ /dev/null @@ -1,54 +0,0 @@ -#include -#include "Curve.hpp" -#include "GrossToNetActivePowerCurve.hpp" - -#include "GeneratingUnit.hpp" - -using namespace CIMPP; - -GrossToNetActivePowerCurve::GrossToNetActivePowerCurve(): GeneratingUnit(nullptr) {}; - -GrossToNetActivePowerCurve::~GrossToNetActivePowerCurve() {}; - - -bool assign_GeneratingUnit_GrossToNetActivePowerCurves(BaseClass*, BaseClass*); -bool assign_GrossToNetActivePowerCurve_GeneratingUnit(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(GrossToNetActivePowerCurve* element = dynamic_cast(BaseClass_ptr1)) { - element->GeneratingUnit = dynamic_cast(BaseClass_ptr2); - if(element->GeneratingUnit != nullptr) - return assign_GeneratingUnit_GrossToNetActivePowerCurves(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - -namespace CIMPP { - BaseClass* GrossToNetActivePowerCurve_factory() { - return new GrossToNetActivePowerCurve; - } -} - -void GrossToNetActivePowerCurve::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:GrossToNetActivePowerCurve"), &GrossToNetActivePowerCurve_factory)); -} - -void GrossToNetActivePowerCurve::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void GrossToNetActivePowerCurve::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:GrossToNetActivePowerCurve.GeneratingUnit"), &assign_GrossToNetActivePowerCurve_GeneratingUnit)); -} - -const char GrossToNetActivePowerCurve::debugName[] = "GrossToNetActivePowerCurve"; -const char* GrossToNetActivePowerCurve::debugString() -{ - return GrossToNetActivePowerCurve::debugName; -} - -const BaseClassDefiner GrossToNetActivePowerCurve::declare() -{ - return BaseClassDefiner(GrossToNetActivePowerCurve::addConstructToMap, GrossToNetActivePowerCurve::addPrimitiveAssignFnsToMap, GrossToNetActivePowerCurve::addClassAssignFnsToMap, GrossToNetActivePowerCurve::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/GrossToNetActivePowerCurve.hpp b/CGMES_2.4.13_18DEC2013/GrossToNetActivePowerCurve.hpp deleted file mode 100644 index 5b039fbee..000000000 --- a/CGMES_2.4.13_18DEC2013/GrossToNetActivePowerCurve.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef GrossToNetActivePowerCurve_H -#define GrossToNetActivePowerCurve_H - -#include "Curve.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class GeneratingUnit; - /* - Relationship between the generating unit's gross active power output on the X-axis (measured at the terminals of the machine(s)) and the generating unit's net active power output on the Y-axis (based on utility-defined measurements at the power station). Station service loads, when modeled, should be treated as non-conforming bus loads. There may be more than one curve, depending on the auxiliary equipment that is in service. - */ - class GrossToNetActivePowerCurve: public Curve - { - - public: - CIMPP::GeneratingUnit* GeneratingUnit; /* A generating unit may have a gross active power to net active power curve, describing the losses and auxiliary power requirements of the unit. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - GrossToNetActivePowerCurve(); - virtual ~GrossToNetActivePowerCurve(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* GrossToNetActivePowerCurve_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/Ground.cpp b/CGMES_2.4.13_18DEC2013/Ground.cpp deleted file mode 100644 index f4782840d..000000000 --- a/CGMES_2.4.13_18DEC2013/Ground.cpp +++ /dev/null @@ -1,41 +0,0 @@ -#include -#include "ConductingEquipment.hpp" -#include "Ground.hpp" - - -using namespace CIMPP; - -Ground::Ground() {}; - -Ground::~Ground() {}; - - - -namespace CIMPP { - BaseClass* Ground_factory() { - return new Ground; - } -} - -void Ground::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:Ground"), &Ground_factory)); -} - -void Ground::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { -} - -void Ground::addClassAssignFnsToMap(std::unordered_map& assign_map) { -} - -const char Ground::debugName[] = "Ground"; -const char* Ground::debugString() -{ - return Ground::debugName; -} - -const BaseClassDefiner Ground::declare() -{ - return BaseClassDefiner(Ground::addConstructToMap, Ground::addPrimitiveAssignFnsToMap, Ground::addClassAssignFnsToMap, Ground::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/Ground.hpp b/CGMES_2.4.13_18DEC2013/Ground.hpp deleted file mode 100644 index 957975aec..000000000 --- a/CGMES_2.4.13_18DEC2013/Ground.hpp +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef Ground_H -#define Ground_H - -#include "ConductingEquipment.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - - /* - A point where the system is grounded used for connecting conducting equipment to ground. The power system model can have any number of grounds. - */ - class Ground: public ConductingEquipment - { - - public: - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - Ground(); - virtual ~Ground(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* Ground_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/GroundDisconnector.cpp b/CGMES_2.4.13_18DEC2013/GroundDisconnector.cpp deleted file mode 100644 index 916d77d68..000000000 --- a/CGMES_2.4.13_18DEC2013/GroundDisconnector.cpp +++ /dev/null @@ -1,41 +0,0 @@ -#include -#include "Switch.hpp" -#include "GroundDisconnector.hpp" - - -using namespace CIMPP; - -GroundDisconnector::GroundDisconnector() {}; - -GroundDisconnector::~GroundDisconnector() {}; - - - -namespace CIMPP { - BaseClass* GroundDisconnector_factory() { - return new GroundDisconnector; - } -} - -void GroundDisconnector::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:GroundDisconnector"), &GroundDisconnector_factory)); -} - -void GroundDisconnector::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { -} - -void GroundDisconnector::addClassAssignFnsToMap(std::unordered_map& assign_map) { -} - -const char GroundDisconnector::debugName[] = "GroundDisconnector"; -const char* GroundDisconnector::debugString() -{ - return GroundDisconnector::debugName; -} - -const BaseClassDefiner GroundDisconnector::declare() -{ - return BaseClassDefiner(GroundDisconnector::addConstructToMap, GroundDisconnector::addPrimitiveAssignFnsToMap, GroundDisconnector::addClassAssignFnsToMap, GroundDisconnector::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/GroundDisconnector.hpp b/CGMES_2.4.13_18DEC2013/GroundDisconnector.hpp deleted file mode 100644 index 6468eb944..000000000 --- a/CGMES_2.4.13_18DEC2013/GroundDisconnector.hpp +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef GroundDisconnector_H -#define GroundDisconnector_H - -#include "Switch.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - - /* - A manually operated or motor operated mechanical switching device used for isolating a circuit or equipment from ground. - */ - class GroundDisconnector: public Switch - { - - public: - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - GroundDisconnector(); - virtual ~GroundDisconnector(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* GroundDisconnector_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/GroundingImpedance.cpp b/CGMES_2.4.13_18DEC2013/GroundingImpedance.cpp deleted file mode 100644 index 2921d989c..000000000 --- a/CGMES_2.4.13_18DEC2013/GroundingImpedance.cpp +++ /dev/null @@ -1,56 +0,0 @@ -#include -#include "EarthFaultCompensator.hpp" -#include "GroundingImpedance.hpp" - -#include "Reactance.hpp" - -using namespace CIMPP; - -GroundingImpedance::GroundingImpedance() {}; - -GroundingImpedance::~GroundingImpedance() {}; - - - - -bool assign_GroundingImpedance_x(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(GroundingImpedance* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->x; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* GroundingImpedance_factory() { - return new GroundingImpedance; - } -} - -void GroundingImpedance::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:GroundingImpedance"), &GroundingImpedance_factory)); -} - -void GroundingImpedance::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:GroundingImpedance.x"), &assign_GroundingImpedance_x)); -} - -void GroundingImpedance::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char GroundingImpedance::debugName[] = "GroundingImpedance"; -const char* GroundingImpedance::debugString() -{ - return GroundingImpedance::debugName; -} - -const BaseClassDefiner GroundingImpedance::declare() -{ - return BaseClassDefiner(GroundingImpedance::addConstructToMap, GroundingImpedance::addPrimitiveAssignFnsToMap, GroundingImpedance::addClassAssignFnsToMap, GroundingImpedance::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/GroundingImpedance.hpp b/CGMES_2.4.13_18DEC2013/GroundingImpedance.hpp deleted file mode 100644 index 9dff17f5d..000000000 --- a/CGMES_2.4.13_18DEC2013/GroundingImpedance.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef GroundingImpedance_H -#define GroundingImpedance_H - -#include "EarthFaultCompensator.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Reactance.hpp" - -namespace CIMPP { - - - /* - A fixed impedance device used for grounding. - */ - class GroundingImpedance: public EarthFaultCompensator - { - - public: - CIMPP::Reactance x; /* Reactance of device. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - GroundingImpedance(); - virtual ~GroundingImpedance(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* GroundingImpedance_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/HydroEnergyConversionKind.cpp b/CGMES_2.4.13_18DEC2013/HydroEnergyConversionKind.cpp deleted file mode 100644 index 4b2174501..000000000 --- a/CGMES_2.4.13_18DEC2013/HydroEnergyConversionKind.cpp +++ /dev/null @@ -1,37 +0,0 @@ -#include -#include -#include "HydroEnergyConversionKind.hpp" - -using namespace CIMPP; - -namespace CIMPP { - std::istream& operator>>(std::istream& lop, CIMPP::HydroEnergyConversionKind& rop) - { - std::string EnumSymbol; - lop >> EnumSymbol; - - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "HydroEnergyConversionKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "generator") - { - rop = HydroEnergyConversionKind::generator; - return lop; - } - if(EnumSymbol == "pumpAndGenerator") - { - rop = HydroEnergyConversionKind::pumpAndGenerator; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; - } -} - diff --git a/CGMES_2.4.13_18DEC2013/HydroEnergyConversionKind.hpp b/CGMES_2.4.13_18DEC2013/HydroEnergyConversionKind.hpp deleted file mode 100644 index 8c8a2bc26..000000000 --- a/CGMES_2.4.13_18DEC2013/HydroEnergyConversionKind.hpp +++ /dev/null @@ -1,21 +0,0 @@ -#ifndef HydroEnergyConversionKind_H -#define HydroEnergyConversionKind_H - -namespace CIMPP { - /* - Specifies the capability of the hydro generating unit to convert energy as a generator or pump. - */ - enum class HydroEnergyConversionKind - { - /** - * Able to generate power, but not able to pump water for energy storage. - */ - generator, - /** - * Able to both generate power and pump water for energy storage. - */ - pumpAndGenerator, - }; - std::istream& operator>>(std::istream& lop, CIMPP::HydroEnergyConversionKind& rop); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/HydroGeneratingUnit.cpp b/CGMES_2.4.13_18DEC2013/HydroGeneratingUnit.cpp deleted file mode 100644 index 0ec06387c..000000000 --- a/CGMES_2.4.13_18DEC2013/HydroGeneratingUnit.cpp +++ /dev/null @@ -1,69 +0,0 @@ -#include -#include "GeneratingUnit.hpp" -#include "HydroGeneratingUnit.hpp" - -#include "HydroEnergyConversionKind.hpp" -#include "HydroPowerPlant.hpp" - -using namespace CIMPP; - -HydroGeneratingUnit::HydroGeneratingUnit(): HydroPowerPlant(nullptr) {}; - -HydroGeneratingUnit::~HydroGeneratingUnit() {}; - - - -bool assign_HydroPowerPlant_HydroGeneratingUnits(BaseClass*, BaseClass*); -bool assign_HydroGeneratingUnit_HydroPowerPlant(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(HydroGeneratingUnit* element = dynamic_cast(BaseClass_ptr1)) { - element->HydroPowerPlant = dynamic_cast(BaseClass_ptr2); - if(element->HydroPowerPlant != nullptr) - return assign_HydroPowerPlant_HydroGeneratingUnits(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - -bool assign_HydroGeneratingUnit_energyConversionCapability(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(HydroGeneratingUnit* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->energyConversionCapability; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -namespace CIMPP { - BaseClass* HydroGeneratingUnit_factory() { - return new HydroGeneratingUnit; - } -} - -void HydroGeneratingUnit::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:HydroGeneratingUnit"), &HydroGeneratingUnit_factory)); -} - -void HydroGeneratingUnit::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:HydroGeneratingUnit.energyConversionCapability"), &assign_HydroGeneratingUnit_energyConversionCapability)); - } - -void HydroGeneratingUnit::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:HydroGeneratingUnit.HydroPowerPlant"), &assign_HydroGeneratingUnit_HydroPowerPlant)); -} - -const char HydroGeneratingUnit::debugName[] = "HydroGeneratingUnit"; -const char* HydroGeneratingUnit::debugString() -{ - return HydroGeneratingUnit::debugName; -} - -const BaseClassDefiner HydroGeneratingUnit::declare() -{ - return BaseClassDefiner(HydroGeneratingUnit::addConstructToMap, HydroGeneratingUnit::addPrimitiveAssignFnsToMap, HydroGeneratingUnit::addClassAssignFnsToMap, HydroGeneratingUnit::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/HydroGeneratingUnit.hpp b/CGMES_2.4.13_18DEC2013/HydroGeneratingUnit.hpp deleted file mode 100644 index 06c820579..000000000 --- a/CGMES_2.4.13_18DEC2013/HydroGeneratingUnit.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef HydroGeneratingUnit_H -#define HydroGeneratingUnit_H - -#include "GeneratingUnit.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "HydroEnergyConversionKind.hpp" - -namespace CIMPP { - - -class HydroPowerPlant; - /* - A generating unit whose prime mover is a hydraulic turbine (e.g., Francis, Pelton, Kaplan). - */ - class HydroGeneratingUnit: public GeneratingUnit - { - - public: - CIMPP::HydroEnergyConversionKind energyConversionCapability; /* Energy conversion capability for generating. Default: 0 */ - CIMPP::HydroPowerPlant* HydroPowerPlant; /* The hydro generating unit belongs to a hydro power plant. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - HydroGeneratingUnit(); - virtual ~HydroGeneratingUnit(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* HydroGeneratingUnit_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/HydroPlantStorageKind.cpp b/CGMES_2.4.13_18DEC2013/HydroPlantStorageKind.cpp deleted file mode 100644 index 253416bd5..000000000 --- a/CGMES_2.4.13_18DEC2013/HydroPlantStorageKind.cpp +++ /dev/null @@ -1,42 +0,0 @@ -#include -#include -#include "HydroPlantStorageKind.hpp" - -using namespace CIMPP; - -namespace CIMPP { - std::istream& operator>>(std::istream& lop, CIMPP::HydroPlantStorageKind& rop) - { - std::string EnumSymbol; - lop >> EnumSymbol; - - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "HydroPlantStorageKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "runOfRiver") - { - rop = HydroPlantStorageKind::runOfRiver; - return lop; - } - if(EnumSymbol == "pumpedStorage") - { - rop = HydroPlantStorageKind::pumpedStorage; - return lop; - } - if(EnumSymbol == "storage") - { - rop = HydroPlantStorageKind::storage; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; - } -} - diff --git a/CGMES_2.4.13_18DEC2013/HydroPlantStorageKind.hpp b/CGMES_2.4.13_18DEC2013/HydroPlantStorageKind.hpp deleted file mode 100644 index 80b35ab00..000000000 --- a/CGMES_2.4.13_18DEC2013/HydroPlantStorageKind.hpp +++ /dev/null @@ -1,25 +0,0 @@ -#ifndef HydroPlantStorageKind_H -#define HydroPlantStorageKind_H - -namespace CIMPP { - /* - The type of hydro power plant. - */ - enum class HydroPlantStorageKind - { - /** - * Run of river. - */ - runOfRiver, - /** - * Pumped storage. - */ - pumpedStorage, - /** - * Storage. - */ - storage, - }; - std::istream& operator>>(std::istream& lop, CIMPP::HydroPlantStorageKind& rop); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/HydroPowerPlant.cpp b/CGMES_2.4.13_18DEC2013/HydroPowerPlant.cpp deleted file mode 100644 index 4e5888666..000000000 --- a/CGMES_2.4.13_18DEC2013/HydroPowerPlant.cpp +++ /dev/null @@ -1,82 +0,0 @@ -#include -#include "PowerSystemResource.hpp" -#include "HydroPowerPlant.hpp" - -#include "HydroGeneratingUnit.hpp" -#include "HydroPlantStorageKind.hpp" -#include "HydroPump.hpp" - -using namespace CIMPP; - -HydroPowerPlant::HydroPowerPlant() {}; - -HydroPowerPlant::~HydroPowerPlant() {}; - - -bool assign_HydroPowerPlant_HydroGeneratingUnits(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(HydroPowerPlant* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->HydroGeneratingUnits.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - -bool assign_HydroPowerPlant_HydroPumps(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(HydroPowerPlant* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->HydroPumps.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - - -bool assign_HydroPowerPlant_hydroPlantStorageType(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(HydroPowerPlant* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->hydroPlantStorageType; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -namespace CIMPP { - BaseClass* HydroPowerPlant_factory() { - return new HydroPowerPlant; - } -} - -void HydroPowerPlant::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:HydroPowerPlant"), &HydroPowerPlant_factory)); -} - -void HydroPowerPlant::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:HydroPowerPlant.hydroPlantStorageType"), &assign_HydroPowerPlant_hydroPlantStorageType)); - } - -void HydroPowerPlant::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:HydroPowerPlant.HydroGeneratingUnits"), &assign_HydroPowerPlant_HydroGeneratingUnits)); - assign_map.insert(std::make_pair(std::string("cim:HydroPowerPlant.HydroPumps"), &assign_HydroPowerPlant_HydroPumps)); -} - -const char HydroPowerPlant::debugName[] = "HydroPowerPlant"; -const char* HydroPowerPlant::debugString() -{ - return HydroPowerPlant::debugName; -} - -const BaseClassDefiner HydroPowerPlant::declare() -{ - return BaseClassDefiner(HydroPowerPlant::addConstructToMap, HydroPowerPlant::addPrimitiveAssignFnsToMap, HydroPowerPlant::addClassAssignFnsToMap, HydroPowerPlant::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/HydroPowerPlant.hpp b/CGMES_2.4.13_18DEC2013/HydroPowerPlant.hpp deleted file mode 100644 index b059060a8..000000000 --- a/CGMES_2.4.13_18DEC2013/HydroPowerPlant.hpp +++ /dev/null @@ -1,44 +0,0 @@ -#ifndef HydroPowerPlant_H -#define HydroPowerPlant_H - -#include "PowerSystemResource.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "HydroPlantStorageKind.hpp" - -namespace CIMPP { - - -class HydroGeneratingUnit; -class HydroPump; - /* - A hydro power station which can generate or pump. When generating, the generator turbines receive water from an upper reservoir. When pumping, the pumps receive their water from a lower reservoir. - */ - class HydroPowerPlant: public PowerSystemResource - { - - public: - std::list HydroGeneratingUnits; /* The hydro generating unit belongs to a hydro power plant. Default: 0 */ - CIMPP::HydroPlantStorageKind hydroPlantStorageType; /* The type of hydro power plant water storage. Default: 0 */ - std::list HydroPumps; /* The hydro pump may be a member of a pumped storage plant or a pump for distributing water. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - HydroPowerPlant(); - virtual ~HydroPowerPlant(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* HydroPowerPlant_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/HydroPump.cpp b/CGMES_2.4.13_18DEC2013/HydroPump.cpp deleted file mode 100644 index ce26816c6..000000000 --- a/CGMES_2.4.13_18DEC2013/HydroPump.cpp +++ /dev/null @@ -1,67 +0,0 @@ -#include -#include "Equipment.hpp" -#include "HydroPump.hpp" - -#include "HydroPowerPlant.hpp" -#include "RotatingMachine.hpp" - -using namespace CIMPP; - -HydroPump::HydroPump(): HydroPowerPlant(nullptr), RotatingMachine(nullptr) {}; - -HydroPump::~HydroPump() {}; - - -bool assign_HydroPowerPlant_HydroPumps(BaseClass*, BaseClass*); -bool assign_HydroPump_HydroPowerPlant(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(HydroPump* element = dynamic_cast(BaseClass_ptr1)) { - element->HydroPowerPlant = dynamic_cast(BaseClass_ptr2); - if(element->HydroPowerPlant != nullptr) - return assign_HydroPowerPlant_HydroPumps(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_RotatingMachine_HydroPump(BaseClass*, BaseClass*); -bool assign_HydroPump_RotatingMachine(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(HydroPump* element = dynamic_cast(BaseClass_ptr1)) { - element->RotatingMachine = dynamic_cast(BaseClass_ptr2); - if(element->RotatingMachine != nullptr) - return assign_RotatingMachine_HydroPump(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - - -namespace CIMPP { - BaseClass* HydroPump_factory() { - return new HydroPump; - } -} - -void HydroPump::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:HydroPump"), &HydroPump_factory)); -} - -void HydroPump::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void HydroPump::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:HydroPump.HydroPowerPlant"), &assign_HydroPump_HydroPowerPlant)); - assign_map.insert(std::make_pair(std::string("cim:HydroPump.RotatingMachine"), &assign_HydroPump_RotatingMachine)); -} - -const char HydroPump::debugName[] = "HydroPump"; -const char* HydroPump::debugString() -{ - return HydroPump::debugName; -} - -const BaseClassDefiner HydroPump::declare() -{ - return BaseClassDefiner(HydroPump::addConstructToMap, HydroPump::addPrimitiveAssignFnsToMap, HydroPump::addClassAssignFnsToMap, HydroPump::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/HydroPump.hpp b/CGMES_2.4.13_18DEC2013/HydroPump.hpp deleted file mode 100644 index 03d6266d0..000000000 --- a/CGMES_2.4.13_18DEC2013/HydroPump.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef HydroPump_H -#define HydroPump_H - -#include "Equipment.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class HydroPowerPlant; -class RotatingMachine; - /* - A synchronous motor-driven pump, typically associated with a pumped storage plant. - */ - class HydroPump: public Equipment - { - - public: - CIMPP::HydroPowerPlant* HydroPowerPlant; /* The hydro pump may be a member of a pumped storage plant or a pump for distributing water. Default: 0 */ - CIMPP::RotatingMachine* RotatingMachine; /* The synchronous machine drives the turbine which moves the water from a low elevation to a higher elevation. The direction of machine rotation for pumping may or may not be the same as for generating. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - HydroPump(); - virtual ~HydroPump(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* HydroPump_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/IEC61970.hpp b/CGMES_2.4.13_18DEC2013/IEC61970.hpp deleted file mode 100644 index ee29fb648..000000000 --- a/CGMES_2.4.13_18DEC2013/IEC61970.hpp +++ /dev/null @@ -1,442 +0,0 @@ -#ifndef IEC61970_H -#define IEC61970_H -#include "ACDCConverter.hpp" -#include "ACDCConverterDCTerminal.hpp" -#include "ACDCTerminal.hpp" -#include "ACLineSegment.hpp" -#include "Accumulator.hpp" -#include "AccumulatorLimit.hpp" -#include "AccumulatorLimitSet.hpp" -#include "AccumulatorReset.hpp" -#include "AccumulatorValue.hpp" -#include "ActivePower.hpp" -#include "ActivePowerLimit.hpp" -#include "ActivePowerPerFrequency.hpp" -#include "Analog.hpp" -#include "AnalogControl.hpp" -#include "AnalogLimit.hpp" -#include "AnalogLimitSet.hpp" -#include "AnalogValue.hpp" -#include "AngleDegrees.hpp" -#include "AngleRadians.hpp" -#include "ApparentPower.hpp" -#include "ApparentPowerLimit.hpp" -#include "Area.hpp" -#include "AsynchronousMachine.hpp" -#include "AsynchronousMachineDynamics.hpp" -#include "AsynchronousMachineEquivalentCircuit.hpp" -#include "AsynchronousMachineTimeConstantReactance.hpp" -#include "AsynchronousMachineUserDefined.hpp" -#include "BaseClass.hpp" -#include "BaseClassDefiner.hpp" -#include "BaseVoltage.hpp" -#include "BasicIntervalSchedule.hpp" -#include "Bay.hpp" -#include "Boolean.hpp" -#include "Breaker.hpp" -#include "BusNameMarker.hpp" -#include "BusbarSection.hpp" -#include "CIMFactory.hpp" -#include "Capacitance.hpp" -#include "CapacitancePerLength.hpp" -#include "Command.hpp" -#include "Conductance.hpp" -#include "ConductingEquipment.hpp" -#include "Conductor.hpp" -#include "ConformLoad.hpp" -#include "ConformLoadGroup.hpp" -#include "ConformLoadSchedule.hpp" -#include "ConnectivityNode.hpp" -#include "ConnectivityNodeContainer.hpp" -#include "Connector.hpp" -#include "Control.hpp" -#include "ControlArea.hpp" -#include "ControlAreaGeneratingUnit.hpp" -#include "CoordinateSystem.hpp" -#include "CsConverter.hpp" -#include "CurrentFlow.hpp" -#include "CurrentLimit.hpp" -#include "Curve.hpp" -#include "CurveData.hpp" -#include "DCBaseTerminal.hpp" -#include "DCBreaker.hpp" -#include "DCBusbar.hpp" -#include "DCChopper.hpp" -#include "DCConductingEquipment.hpp" -#include "DCConverterUnit.hpp" -#include "DCDisconnector.hpp" -#include "DCEquipmentContainer.hpp" -#include "DCGround.hpp" -#include "DCLine.hpp" -#include "DCLineSegment.hpp" -#include "DCNode.hpp" -#include "DCSeriesDevice.hpp" -#include "DCShunt.hpp" -#include "DCSwitch.hpp" -#include "DCTerminal.hpp" -#include "DCTopologicalIsland.hpp" -#include "DCTopologicalNode.hpp" -#include "Date.hpp" -#include "DateTime.hpp" -#include "DayType.hpp" -#include "Decimal.hpp" -#include "Diagram.hpp" -#include "DiagramLayoutVersion.hpp" -#include "DiagramObject.hpp" -#include "DiagramObjectGluePoint.hpp" -#include "DiagramObjectPoint.hpp" -#include "DiagramObjectStyle.hpp" -#include "DiagramStyle.hpp" -#include "DiscExcContIEEEDEC1A.hpp" -#include "DiscExcContIEEEDEC2A.hpp" -#include "DiscExcContIEEEDEC3A.hpp" -#include "Disconnector.hpp" -#include "DiscontinuousExcitationControlDynamics.hpp" -#include "DiscontinuousExcitationControlUserDefined.hpp" -#include "Discrete.hpp" -#include "DiscreteValue.hpp" -#include "DynamicsFunctionBlock.hpp" -#include "DynamicsVersion.hpp" -#include "EarthFaultCompensator.hpp" -#include "EnergyArea.hpp" -#include "EnergyConsumer.hpp" -#include "EnergySchedulingType.hpp" -#include "EnergySource.hpp" -#include "Equipment.hpp" -#include "EquipmentBoundaryVersion.hpp" -#include "EquipmentContainer.hpp" -#include "EquipmentVersion.hpp" -#include "EquivalentBranch.hpp" -#include "EquivalentEquipment.hpp" -#include "EquivalentInjection.hpp" -#include "EquivalentNetwork.hpp" -#include "EquivalentShunt.hpp" -#include "ExcAC1A.hpp" -#include "ExcAC2A.hpp" -#include "ExcAC3A.hpp" -#include "ExcAC4A.hpp" -#include "ExcAC5A.hpp" -#include "ExcAC6A.hpp" -#include "ExcAC8B.hpp" -#include "ExcANS.hpp" -#include "ExcAVR1.hpp" -#include "ExcAVR2.hpp" -#include "ExcAVR3.hpp" -#include "ExcAVR4.hpp" -#include "ExcAVR5.hpp" -#include "ExcAVR7.hpp" -#include "ExcBBC.hpp" -#include "ExcCZ.hpp" -#include "ExcDC1A.hpp" -#include "ExcDC2A.hpp" -#include "ExcDC3A.hpp" -#include "ExcDC3A1.hpp" -#include "ExcELIN1.hpp" -#include "ExcELIN2.hpp" -#include "ExcHU.hpp" -#include "ExcIEEEAC1A.hpp" -#include "ExcIEEEAC2A.hpp" -#include "ExcIEEEAC3A.hpp" -#include "ExcIEEEAC4A.hpp" -#include "ExcIEEEAC5A.hpp" -#include "ExcIEEEAC6A.hpp" -#include "ExcIEEEAC7B.hpp" -#include "ExcIEEEAC8B.hpp" -#include "ExcIEEEDC1A.hpp" -#include "ExcIEEEDC2A.hpp" -#include "ExcIEEEDC3A.hpp" -#include "ExcIEEEDC4B.hpp" -#include "ExcIEEEST1A.hpp" -#include "ExcIEEEST2A.hpp" -#include "ExcIEEEST3A.hpp" -#include "ExcIEEEST4B.hpp" -#include "ExcIEEEST5B.hpp" -#include "ExcIEEEST6B.hpp" -#include "ExcIEEEST7B.hpp" -#include "ExcOEX3T.hpp" -#include "ExcPIC.hpp" -#include "ExcREXS.hpp" -#include "ExcSCRX.hpp" -#include "ExcSEXS.hpp" -#include "ExcSK.hpp" -#include "ExcST1A.hpp" -#include "ExcST2A.hpp" -#include "ExcST3A.hpp" -#include "ExcST4B.hpp" -#include "ExcST6B.hpp" -#include "ExcST7B.hpp" -#include "ExcitationSystemDynamics.hpp" -#include "ExcitationSystemUserDefined.hpp" -#include "ExternalNetworkInjection.hpp" -#include "Float.hpp" -#include "FossilFuel.hpp" -#include "Frequency.hpp" -#include "GenICompensationForGenJ.hpp" -#include "GeneratingUnit.hpp" -#include "GeographicalLocationVersion.hpp" -#include "GeographicalRegion.hpp" -#include "GovCT1.hpp" -#include "GovCT2.hpp" -#include "GovGAST.hpp" -#include "GovGAST1.hpp" -#include "GovGAST2.hpp" -#include "GovGAST3.hpp" -#include "GovGAST4.hpp" -#include "GovGASTWD.hpp" -#include "GovHydro1.hpp" -#include "GovHydro2.hpp" -#include "GovHydro3.hpp" -#include "GovHydro4.hpp" -#include "GovHydroDD.hpp" -#include "GovHydroFrancis.hpp" -#include "GovHydroIEEE0.hpp" -#include "GovHydroIEEE2.hpp" -#include "GovHydroPID.hpp" -#include "GovHydroPID2.hpp" -#include "GovHydroPelton.hpp" -#include "GovHydroR.hpp" -#include "GovHydroWEH.hpp" -#include "GovHydroWPID.hpp" -#include "GovSteam0.hpp" -#include "GovSteam1.hpp" -#include "GovSteam2.hpp" -#include "GovSteamCC.hpp" -#include "GovSteamEU.hpp" -#include "GovSteamFV2.hpp" -#include "GovSteamFV3.hpp" -#include "GovSteamFV4.hpp" -#include "GovSteamIEEE1.hpp" -#include "GovSteamSGO.hpp" -#include "GrossToNetActivePowerCurve.hpp" -#include "Ground.hpp" -#include "GroundDisconnector.hpp" -#include "GroundingImpedance.hpp" -#include "HydroGeneratingUnit.hpp" -#include "HydroPowerPlant.hpp" -#include "HydroPump.hpp" -#include "IdentifiedObject.hpp" -#include "Inductance.hpp" -#include "InductancePerLength.hpp" -#include "Integer.hpp" -#include "Junction.hpp" -#include "Length.hpp" -#include "Limit.hpp" -#include "LimitSet.hpp" -#include "Line.hpp" -#include "LinearShuntCompensator.hpp" -#include "LoadAggregate.hpp" -#include "LoadArea.hpp" -#include "LoadBreakSwitch.hpp" -#include "LoadComposite.hpp" -#include "LoadDynamics.hpp" -#include "LoadGenericNonLinear.hpp" -#include "LoadGroup.hpp" -#include "LoadMotor.hpp" -#include "LoadResponseCharacteristic.hpp" -#include "LoadStatic.hpp" -#include "LoadUserDefined.hpp" -#include "Location.hpp" -#include "Measurement.hpp" -#include "MeasurementValue.hpp" -#include "MeasurementValueQuality.hpp" -#include "MeasurementValueSource.hpp" -#include "MechLoad1.hpp" -#include "MechanicalLoadDynamics.hpp" -#include "MechanicalLoadUserDefined.hpp" -#include "Money.hpp" -#include "MonthDay.hpp" -#include "MutualCoupling.hpp" -#include "NonConformLoad.hpp" -#include "NonConformLoadGroup.hpp" -#include "NonConformLoadSchedule.hpp" -#include "NonlinearShuntCompensator.hpp" -#include "NonlinearShuntCompensatorPoint.hpp" -#include "NuclearGeneratingUnit.hpp" -#include "OperationalLimit.hpp" -#include "OperationalLimitSet.hpp" -#include "OperationalLimitType.hpp" -#include "OverexcLim2.hpp" -#include "OverexcLimIEEE.hpp" -#include "OverexcLimX1.hpp" -#include "OverexcLimX2.hpp" -#include "OverexcitationLimiterDynamics.hpp" -#include "OverexcitationLimiterUserDefined.hpp" -#include "PFVArControllerType1Dynamics.hpp" -#include "PFVArControllerType1UserDefined.hpp" -#include "PFVArControllerType2Dynamics.hpp" -#include "PFVArControllerType2UserDefined.hpp" -#include "PFVArType1IEEEPFController.hpp" -#include "PFVArType1IEEEVArController.hpp" -#include "PFVArType2Common1.hpp" -#include "PFVArType2IEEEPFController.hpp" -#include "PFVArType2IEEEVArController.hpp" -#include "PU.hpp" -#include "PerCent.hpp" -#include "PerLengthDCLineParameter.hpp" -#include "PetersenCoil.hpp" -#include "PhaseTapChanger.hpp" -#include "PhaseTapChangerAsymmetrical.hpp" -#include "PhaseTapChangerLinear.hpp" -#include "PhaseTapChangerNonLinear.hpp" -#include "PhaseTapChangerSymmetrical.hpp" -#include "PhaseTapChangerTable.hpp" -#include "PhaseTapChangerTablePoint.hpp" -#include "PhaseTapChangerTabular.hpp" -#include "PositionPoint.hpp" -#include "PowerSystemResource.hpp" -#include "PowerSystemStabilizerDynamics.hpp" -#include "PowerSystemStabilizerUserDefined.hpp" -#include "PowerTransformer.hpp" -#include "PowerTransformerEnd.hpp" -#include "ProprietaryParameterDynamics.hpp" -#include "ProtectedSwitch.hpp" -#include "Pss1.hpp" -#include "Pss1A.hpp" -#include "Pss2B.hpp" -#include "Pss2ST.hpp" -#include "Pss5.hpp" -#include "PssELIN2.hpp" -#include "PssIEEE1A.hpp" -#include "PssIEEE2B.hpp" -#include "PssIEEE3B.hpp" -#include "PssIEEE4B.hpp" -#include "PssPTIST1.hpp" -#include "PssPTIST3.hpp" -#include "PssSB4.hpp" -#include "PssSH.hpp" -#include "PssSK.hpp" -#include "PssWECC.hpp" -#include "Quality61850.hpp" -#include "RaiseLowerCommand.hpp" -#include "RatioTapChanger.hpp" -#include "RatioTapChangerTable.hpp" -#include "RatioTapChangerTablePoint.hpp" -#include "Reactance.hpp" -#include "ReactiveCapabilityCurve.hpp" -#include "ReactivePower.hpp" -#include "RegularIntervalSchedule.hpp" -#include "RegularTimePoint.hpp" -#include "RegulatingCondEq.hpp" -#include "RegulatingControl.hpp" -#include "RegulationSchedule.hpp" -#include "RemoteInputSignal.hpp" -#include "ReportingGroup.hpp" -#include "Resistance.hpp" -#include "ResistancePerLength.hpp" -#include "RotatingMachine.hpp" -#include "RotatingMachineDynamics.hpp" -#include "RotationSpeed.hpp" -#include "Season.hpp" -#include "SeasonDayTypeSchedule.hpp" -#include "Seconds.hpp" -#include "SeriesCompensator.hpp" -#include "SetPoint.hpp" -#include "ShuntCompensator.hpp" -#include "Simple_Float.hpp" -#include "SolarGeneratingUnit.hpp" -#include "StateVariablesVersion.hpp" -#include "StaticVarCompensator.hpp" -#include "StationSupply.hpp" -#include "SteadyStateHypothesisVersion.hpp" -#include "String.hpp" -#include "StringMeasurement.hpp" -#include "StringMeasurementValue.hpp" -#include "SubGeographicalRegion.hpp" -#include "SubLoadArea.hpp" -#include "Substation.hpp" -#include "Susceptance.hpp" -#include "SvInjection.hpp" -#include "SvPowerFlow.hpp" -#include "SvShuntCompensatorSections.hpp" -#include "SvStatus.hpp" -#include "SvTapStep.hpp" -#include "SvVoltage.hpp" -#include "Switch.hpp" -#include "SwitchSchedule.hpp" -#include "SynchronousMachine.hpp" -#include "SynchronousMachineDetailed.hpp" -#include "SynchronousMachineDynamics.hpp" -#include "SynchronousMachineEquivalentCircuit.hpp" -#include "SynchronousMachineSimplified.hpp" -#include "SynchronousMachineTimeConstantReactance.hpp" -#include "SynchronousMachineUserDefined.hpp" -#include "TapChanger.hpp" -#include "TapChangerControl.hpp" -#include "TapChangerTablePoint.hpp" -#include "TapSchedule.hpp" -#include "Temperature.hpp" -#include "Terminal.hpp" -#include "TextDiagramObject.hpp" -#include "ThermalGeneratingUnit.hpp" -#include "TieFlow.hpp" -#include "TopologicalIsland.hpp" -#include "TopologicalNode.hpp" -#include "TopologyBoundaryVersion.hpp" -#include "TopologyVersion.hpp" -#include "TransformerEnd.hpp" -#include "TurbLCFB1.hpp" -#include "TurbineGovernorDynamics.hpp" -#include "TurbineGovernorUserDefined.hpp" -#include "TurbineLoadControllerDynamics.hpp" -#include "TurbineLoadControllerUserDefined.hpp" -#include "UnderexcLim2Simplified.hpp" -#include "UnderexcLimIEEE1.hpp" -#include "UnderexcLimIEEE2.hpp" -#include "UnderexcLimX1.hpp" -#include "UnderexcLimX2.hpp" -#include "UnderexcitationLimiterDynamics.hpp" -#include "UnderexcitationLimiterUserDefined.hpp" -#include "UnknownType.hpp" -#include "VAdjIEEE.hpp" -#include "VCompIEEEType1.hpp" -#include "VCompIEEEType2.hpp" -#include "ValueAliasSet.hpp" -#include "ValueToAlias.hpp" -#include "VisibilityLayer.hpp" -#include "Voltage.hpp" -#include "VoltageAdjusterDynamics.hpp" -#include "VoltageAdjusterUserDefined.hpp" -#include "VoltageCompensatorDynamics.hpp" -#include "VoltageCompensatorUserDefined.hpp" -#include "VoltageLevel.hpp" -#include "VoltageLimit.hpp" -#include "VoltagePerReactivePower.hpp" -#include "VolumeFlowRate.hpp" -#include "VsCapabilityCurve.hpp" -#include "VsConverter.hpp" -#include "WindAeroConstIEC.hpp" -#include "WindAeroLinearIEC.hpp" -#include "WindContCurrLimIEC.hpp" -#include "WindContPType3IEC.hpp" -#include "WindContPType4aIEC.hpp" -#include "WindContPType4bIEC.hpp" -#include "WindContPitchAngleIEC.hpp" -#include "WindContQIEC.hpp" -#include "WindContRotorRIEC.hpp" -#include "WindDynamicsLookupTable.hpp" -#include "WindGenTurbineType1IEC.hpp" -#include "WindGenTurbineType2IEC.hpp" -#include "WindGenTurbineType3IEC.hpp" -#include "WindGenTurbineType3aIEC.hpp" -#include "WindGenTurbineType3bIEC.hpp" -#include "WindGenType4IEC.hpp" -#include "WindGeneratingUnit.hpp" -#include "WindMechIEC.hpp" -#include "WindPitchContEmulIEC.hpp" -#include "WindPlantDynamics.hpp" -#include "WindPlantFreqPcontrolIEC.hpp" -#include "WindPlantIEC.hpp" -#include "WindPlantReactiveControlIEC.hpp" -#include "WindPlantUserDefined.hpp" -#include "WindProtectionIEC.hpp" -#include "WindTurbineType1or2Dynamics.hpp" -#include "WindTurbineType1or2IEC.hpp" -#include "WindTurbineType3or4Dynamics.hpp" -#include "WindTurbineType3or4IEC.hpp" -#include "WindTurbineType4aIEC.hpp" -#include "WindTurbineType4bIEC.hpp" -#include "WindType1or2UserDefined.hpp" -#include "WindType3or4UserDefined.hpp" -#include "assignments.hpp" -#include "UnknownType.hpp" -#endif diff --git a/CGMES_2.4.13_18DEC2013/IEC61970/IEC61970CIMVersion.cpp b/CGMES_2.4.13_18DEC2013/IEC61970/IEC61970CIMVersion.cpp deleted file mode 100644 index c769c5282..000000000 --- a/CGMES_2.4.13_18DEC2013/IEC61970/IEC61970CIMVersion.cpp +++ /dev/null @@ -1,15 +0,0 @@ -/////////////////////////////////////////////////////////// -// IEC61970CIMVersion.cpp -// Implementation of the Class IEC61970CIMVersion -/////////////////////////////////////////////////////////// - -#include "IEC61970CIMVersion.h" - -using namespace CIMPP; - -IEC61970CIMVersion::IEC61970CIMVersion(){} - -IEC61970CIMVersion::~IEC61970CIMVersion(){} - -const Date IEC61970CIMVersion::date = Date("2017-07-26"); -const String IEC61970CIMVersion::version = "IEC61970CIM17v23"; diff --git a/CGMES_2.4.13_18DEC2013/IEC61970/IEC61970CIMVersion.h b/CGMES_2.4.13_18DEC2013/IEC61970/IEC61970CIMVersion.h deleted file mode 100644 index 61a9e2910..000000000 --- a/CGMES_2.4.13_18DEC2013/IEC61970/IEC61970CIMVersion.h +++ /dev/null @@ -1,31 +0,0 @@ -/////////////////////////////////////////////////////////// -// IEC61970CIMVersion.h -// Implementation of the Class IEC61970CIMVersion -/////////////////////////////////////////////////////////// - -#ifndef IEC61970CIMVERSION_H -#define IEC61970CIMVERSION_H - -#include "BaseClass.hpp" -#include "Date.hpp" -#include "String.hpp" - -namespace CIMPP { - - class IEC61970CIMVersion : public BaseClass - { - public: - IEC61970CIMVersion(); - virtual ~IEC61970CIMVersion(); - /** - * Form is YYYY-MM-DD for example for January 5, 2009 it is 2009-01-05. - */ - static const Date date; - /** - * Form is IEC61970CIMXXvYY where XX is the major CIM package version and the YY - * is the minor version. For example IEC61970CIM13v18. - */ - static const String version; - }; -} -#endif // IEC61970CIMVERSION_H diff --git a/CGMES_2.4.13_18DEC2013/IdentifiedObject.cpp b/CGMES_2.4.13_18DEC2013/IdentifiedObject.cpp deleted file mode 100644 index 712e5ab2b..000000000 --- a/CGMES_2.4.13_18DEC2013/IdentifiedObject.cpp +++ /dev/null @@ -1,124 +0,0 @@ -#include -#include "BaseClass.hpp" -#include "IdentifiedObject.hpp" - -#include "String.hpp" -#include "String.hpp" -#include "String.hpp" -#include "String.hpp" -#include "String.hpp" -#include "DiagramObject.hpp" - -using namespace CIMPP; - -IdentifiedObject::IdentifiedObject() {}; - -IdentifiedObject::~IdentifiedObject() {}; - - - - - - - -bool assign_IdentifiedObject_DiagramObjects(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(IdentifiedObject* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->DiagramObjects.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - -bool assign_IdentifiedObject_description(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(IdentifiedObject* element = dynamic_cast(BaseClass_ptr1)) { - element->description = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_IdentifiedObject_energyIdentCodeEic(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(IdentifiedObject* element = dynamic_cast(BaseClass_ptr1)) { - element->energyIdentCodeEic = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_IdentifiedObject_mRID(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(IdentifiedObject* element = dynamic_cast(BaseClass_ptr1)) { - element->mRID = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_IdentifiedObject_name(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(IdentifiedObject* element = dynamic_cast(BaseClass_ptr1)) { - element->name = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_IdentifiedObject_shortName(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(IdentifiedObject* element = dynamic_cast(BaseClass_ptr1)) { - element->shortName = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - - -namespace CIMPP { - BaseClass* IdentifiedObject_factory() { - return new IdentifiedObject; - } -} - -void IdentifiedObject::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:IdentifiedObject"), &IdentifiedObject_factory)); -} - -void IdentifiedObject::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:IdentifiedObject.description"), &assign_IdentifiedObject_description)); - assign_map.insert(std::make_pair(std::string("cim:IdentifiedObject.energyIdentCodeEic"), &assign_IdentifiedObject_energyIdentCodeEic)); - assign_map.insert(std::make_pair(std::string("cim:IdentifiedObject.mRID"), &assign_IdentifiedObject_mRID)); - assign_map.insert(std::make_pair(std::string("cim:IdentifiedObject.name"), &assign_IdentifiedObject_name)); - assign_map.insert(std::make_pair(std::string("cim:IdentifiedObject.shortName"), &assign_IdentifiedObject_shortName)); - } - -void IdentifiedObject::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:IdentifiedObject.DiagramObjects"), &assign_IdentifiedObject_DiagramObjects)); -} - -const char IdentifiedObject::debugName[] = "IdentifiedObject"; -const char* IdentifiedObject::debugString() -{ - return IdentifiedObject::debugName; -} - -const BaseClassDefiner IdentifiedObject::declare() -{ - return BaseClassDefiner(IdentifiedObject::addConstructToMap, IdentifiedObject::addPrimitiveAssignFnsToMap, IdentifiedObject::addClassAssignFnsToMap, IdentifiedObject::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/IdentifiedObject.hpp b/CGMES_2.4.13_18DEC2013/IdentifiedObject.hpp deleted file mode 100644 index 620e57919..000000000 --- a/CGMES_2.4.13_18DEC2013/IdentifiedObject.hpp +++ /dev/null @@ -1,46 +0,0 @@ -#ifndef IdentifiedObject_H -#define IdentifiedObject_H - -#include "BaseClass.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "String.hpp" - -namespace CIMPP { - - -class DiagramObject; - /* - This is a root class to provide common identification for all classes needing identification and naming attributes. - */ - class IdentifiedObject: public BaseClass - { - - public: - CIMPP::String description; /* The description is a free human readable text describing or naming the object. It may be non unique and may not correlate to a naming hierarchy. Default: '' */ - CIMPP::String energyIdentCodeEic; /* The attribute is used for an exchange of the EIC code (Energy identification Code). The length of the string is 16 characters as defined by the EIC code. References: Default: '' */ - CIMPP::String mRID; /* Master resource identifier issued by a model authority. The mRID must semantically be a UUID as specified in RFC 4122. The mRID is globally unique. For CIMXML data files in RDF syntax, the mRID is mapped to rdf:ID or rdf:about attributes that identify CIM object elements. Default: '' */ - CIMPP::String name; /* The name is any free human readable and possibly non unique text naming the object. Default: '' */ - CIMPP::String shortName; /* The attribute is used for an exchange of a human readable short name with length of the string 12 characters maximum. Default: '' */ - std::list DiagramObjects; /* The domain object to which this diagram object is associated. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - IdentifiedObject(); - virtual ~IdentifiedObject(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* IdentifiedObject_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/IfdBaseKind.cpp b/CGMES_2.4.13_18DEC2013/IfdBaseKind.cpp deleted file mode 100644 index a1c2a51a3..000000000 --- a/CGMES_2.4.13_18DEC2013/IfdBaseKind.cpp +++ /dev/null @@ -1,47 +0,0 @@ -#include -#include -#include "IfdBaseKind.hpp" - -using namespace CIMPP; - -namespace CIMPP { - std::istream& operator>>(std::istream& lop, CIMPP::IfdBaseKind& rop) - { - std::string EnumSymbol; - lop >> EnumSymbol; - - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "IfdBaseKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "ifag") - { - rop = IfdBaseKind::ifag; - return lop; - } - if(EnumSymbol == "ifnl") - { - rop = IfdBaseKind::ifnl; - return lop; - } - if(EnumSymbol == "iffl") - { - rop = IfdBaseKind::iffl; - return lop; - } - if(EnumSymbol == "other") - { - rop = IfdBaseKind::other; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; - } -} - diff --git a/CGMES_2.4.13_18DEC2013/IfdBaseKind.hpp b/CGMES_2.4.13_18DEC2013/IfdBaseKind.hpp deleted file mode 100644 index b7a5dbfbd..000000000 --- a/CGMES_2.4.13_18DEC2013/IfdBaseKind.hpp +++ /dev/null @@ -1,29 +0,0 @@ -#ifndef IfdBaseKind_H -#define IfdBaseKind_H - -namespace CIMPP { - /* - Excitation base system mode. - */ - enum class IfdBaseKind - { - /** - * Air gap line mode. ifdBaseValue is computed, not defined by the user, in this mode. - */ - ifag, - /** - * No load system with saturation mode. ifdBaseValue is computed, not defined by the user, in this mode. - */ - ifnl, - /** - * Full load system mode. ifdBaseValue is computed, not defined by the user, in this mode. - */ - iffl, - /** - * Free mode. ifdBaseValue is defined by the user in this mode. - */ - other, - }; - std::istream& operator>>(std::istream& lop, CIMPP::IfdBaseKind& rop); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/Inductance.cpp b/CGMES_2.4.13_18DEC2013/Inductance.cpp deleted file mode 100644 index 3fca7421a..000000000 --- a/CGMES_2.4.13_18DEC2013/Inductance.cpp +++ /dev/null @@ -1,70 +0,0 @@ -#include "Inductance.hpp" -#include "../src/CIMExceptions.hpp" - -using namespace CIMPP; - -Inductance::Inductance() {} - -Inductance::~Inductance(){} - -Inductance::Inductance(long double value) : value(value), initialized(true) {} - -void Inductance::addConstructToMap(std::unordered_map& factory_map) {} - -void Inductance::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) {} - -void Inductance::addClassAssignFnsToMap(std::unordered_map& assign_map) {} - -const char Inductance::debugName[] = "Inductance"; -const char* Inductance::debugString() { - return Inductance::debugName; -} - - -const BaseClassDefiner Inductance::declare() { - return BaseClassDefiner(Inductance::addConstructToMap, Inductance::addPrimitiveAssignFnsToMap, Inductance::addClassAssignFnsToMap, Inductance::debugName); -} - -namespace CIMPP { - Inductance& Inductance::operator=(long double &rop) { - value = rop; - initialized = true; - return *this; - } - - Inductance& Inductance::operator-=(const Inductance& rhs) { - value -= rhs.value; - return *this; - } - - Inductance& Inductance::operator*=(const Inductance& rhs) { - value *= rhs.value; - return *this; - } - - Inductance& Inductance::operator/=(const Inductance& rhs) { - value /= rhs.value; - return *this; - } - - Inductance& Inductance::operator+=(const Inductance& rhs) { - value += rhs.value; - return *this; - } - - Inductance::operator long double() { - if(!initialized) - { - throw new ReadingUninitializedField(); - } - return value; - } - - std::istream& operator>>(std::istream& lop, Inductance& rop) { - std::string tmp; - lop >> tmp; - rop.value = stold(tmp); - rop.initialized = true; - return lop; - } -} diff --git a/CGMES_2.4.13_18DEC2013/Inductance.hpp b/CGMES_2.4.13_18DEC2013/Inductance.hpp deleted file mode 100644 index 3634234ce..000000000 --- a/CGMES_2.4.13_18DEC2013/Inductance.hpp +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef Inductance_H -#define Inductance_H - -#include -#include - -#include "BaseClass.hpp" - -namespace CIMPP -{ - class Inductance : public BaseClass - { - - public: - Inductance(); - virtual ~Inductance(); - Inductance(long double value); - static const BaseClassDefiner declare(); - Inductance& operator=(long double &rop); - Inductance& operator+=(const Inductance& rhs); - Inductance& operator-=(const Inductance& rhs); - Inductance& operator*=(const Inductance& rhs); - Inductance& operator/=(const Inductance& rhs); - friend std::istream& operator>>(std::istream& lop, Inductance& rop); - operator long double(); - - long double value = 0.0; - bool initialized = false; - - static const char debugName[]; - virtual const char* debugString(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - }; -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/InductancePerLength.cpp b/CGMES_2.4.13_18DEC2013/InductancePerLength.cpp deleted file mode 100644 index da27f78df..000000000 --- a/CGMES_2.4.13_18DEC2013/InductancePerLength.cpp +++ /dev/null @@ -1,113 +0,0 @@ -#include -#include "BaseClass.hpp" -#include "InductancePerLength.hpp" - -#include "Float.hpp" -#include "UnitSymbol.hpp" -#include "UnitMultiplier.hpp" -#include "UnitSymbol.hpp" -#include "UnitMultiplier.hpp" - -using namespace CIMPP; - -InductancePerLength::InductancePerLength(): value(nullptr) {}; - -InductancePerLength::~InductancePerLength() {}; - - -bool assign_InductancePerLength_value(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(InductancePerLength* element = dynamic_cast(BaseClass_ptr1)) { - element->value = dynamic_cast(BaseClass_ptr2); - if(element->value != nullptr) - return true; - } - return false; -} - - - - - - - -bool assign_InductancePerLength_unit(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(InductancePerLength* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->unit; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_InductancePerLength_multiplier(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(InductancePerLength* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->multiplier; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_InductancePerLength_denominatorUnit(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(InductancePerLength* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->denominatorUnit; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_InductancePerLength_denominatorMultiplier(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(InductancePerLength* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->denominatorMultiplier; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* InductancePerLength_factory() { - return new InductancePerLength; - } -} - -void InductancePerLength::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:InductancePerLength"), &InductancePerLength_factory)); -} - -void InductancePerLength::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:InductancePerLength.unit"), &assign_InductancePerLength_unit)); - assign_map.insert(std::make_pair(std::string("cim:InductancePerLength.multiplier"), &assign_InductancePerLength_multiplier)); - assign_map.insert(std::make_pair(std::string("cim:InductancePerLength.denominatorUnit"), &assign_InductancePerLength_denominatorUnit)); - assign_map.insert(std::make_pair(std::string("cim:InductancePerLength.denominatorMultiplier"), &assign_InductancePerLength_denominatorMultiplier)); -} - -void InductancePerLength::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:InductancePerLength.value"), &assign_InductancePerLength_value)); - } - -const char InductancePerLength::debugName[] = "InductancePerLength"; -const char* InductancePerLength::debugString() -{ - return InductancePerLength::debugName; -} - -const BaseClassDefiner InductancePerLength::declare() -{ - return BaseClassDefiner(InductancePerLength::addConstructToMap, InductancePerLength::addPrimitiveAssignFnsToMap, InductancePerLength::addClassAssignFnsToMap, InductancePerLength::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/InductancePerLength.hpp b/CGMES_2.4.13_18DEC2013/InductancePerLength.hpp deleted file mode 100644 index f29b9fcc9..000000000 --- a/CGMES_2.4.13_18DEC2013/InductancePerLength.hpp +++ /dev/null @@ -1,46 +0,0 @@ -#ifndef InductancePerLength_H -#define InductancePerLength_H - -#include "BaseClass.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "UnitSymbol.hpp" -#include "UnitMultiplier.hpp" - -namespace CIMPP { - - -class Float; - /* - Inductance per unit of length. - */ - class InductancePerLength: public BaseClass - { - - public: - CIMPP::Float* value; /* Default: nullptr */ - CIMPP::UnitSymbol unit; /* Default: 0 */ - CIMPP::UnitMultiplier multiplier; /* Default: 0 */ - CIMPP::UnitSymbol denominatorUnit; /* Default: 0 */ - CIMPP::UnitMultiplier denominatorMultiplier; /* Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - InductancePerLength(); - virtual ~InductancePerLength(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* InductancePerLength_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/InputSignalKind.cpp b/CGMES_2.4.13_18DEC2013/InputSignalKind.cpp deleted file mode 100644 index 482cf1713..000000000 --- a/CGMES_2.4.13_18DEC2013/InputSignalKind.cpp +++ /dev/null @@ -1,77 +0,0 @@ -#include -#include -#include "InputSignalKind.hpp" - -using namespace CIMPP; - -namespace CIMPP { - std::istream& operator>>(std::istream& lop, CIMPP::InputSignalKind& rop) - { - std::string EnumSymbol; - lop >> EnumSymbol; - - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "InputSignalKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "rotorSpeed") - { - rop = InputSignalKind::rotorSpeed; - return lop; - } - if(EnumSymbol == "rotorAngularFrequencyDeviation") - { - rop = InputSignalKind::rotorAngularFrequencyDeviation; - return lop; - } - if(EnumSymbol == "busFrequency") - { - rop = InputSignalKind::busFrequency; - return lop; - } - if(EnumSymbol == "busFrequencyDeviation") - { - rop = InputSignalKind::busFrequencyDeviation; - return lop; - } - if(EnumSymbol == "generatorElectricalPower") - { - rop = InputSignalKind::generatorElectricalPower; - return lop; - } - if(EnumSymbol == "generatorAcceleratingPower") - { - rop = InputSignalKind::generatorAcceleratingPower; - return lop; - } - if(EnumSymbol == "busVoltage") - { - rop = InputSignalKind::busVoltage; - return lop; - } - if(EnumSymbol == "busVoltageDerivative") - { - rop = InputSignalKind::busVoltageDerivative; - return lop; - } - if(EnumSymbol == "branchCurrent") - { - rop = InputSignalKind::branchCurrent; - return lop; - } - if(EnumSymbol == "fieldCurrent") - { - rop = InputSignalKind::fieldCurrent; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; - } -} - diff --git a/CGMES_2.4.13_18DEC2013/InputSignalKind.hpp b/CGMES_2.4.13_18DEC2013/InputSignalKind.hpp deleted file mode 100644 index cc11f6f94..000000000 --- a/CGMES_2.4.13_18DEC2013/InputSignalKind.hpp +++ /dev/null @@ -1,53 +0,0 @@ -#ifndef InputSignalKind_H -#define InputSignalKind_H - -namespace CIMPP { - /* - Input signal type. In Dynamics modelling, commonly represented by j parameter. - */ - enum class InputSignalKind - { - /** - * Input signal is rotor or shaft speed (angular frequency). - */ - rotorSpeed, - /** - * Input signal is rotor or shaft angular frequency deviation. - */ - rotorAngularFrequencyDeviation, - /** - * Input signal is bus voltage fr - */ - busFrequency, - /** - * Input signal is deviation of bus voltage frequ - */ - busFrequencyDeviation, - /** - * Input signal is generator electrical power on rated S. - */ - generatorElectricalPower, - /** - * Input signal is generating accelerating power. - */ - generatorAcceleratingPower, - /** - * Input signal - */ - busVoltage, - /** - * Input signal is derivative of bus voltag - */ - busVoltageDerivative, - /** - * Input signal is amplitude of remote branch current. - */ - branchCurrent, - /** - * Input signal is generator field current. - */ - fieldCurrent, - }; - std::istream& operator>>(std::istream& lop, CIMPP::InputSignalKind& rop); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/Integer.cpp b/CGMES_2.4.13_18DEC2013/Integer.cpp deleted file mode 100644 index 638dd4175..000000000 --- a/CGMES_2.4.13_18DEC2013/Integer.cpp +++ /dev/null @@ -1,72 +0,0 @@ -#include "Integer.hpp" -#include "CIMExceptions.hpp" - -using namespace CIMPP; - -Integer::Integer(){} - -Integer::~Integer(){} - -Integer::Integer(long int value) - : value(value), initialized(true) {} - -const BaseClassDefiner Integer::declare() { - return BaseClassDefiner(Integer::addConstructToMap, Integer::addPrimitiveAssignFnsToMap, Integer::addClassAssignFnsToMap, Integer::debugName); -} - -const char Integer::debugName[] = "Integer"; -const char* Integer::debugString() { - return Integer::debugName; -} - -void Integer::addConstructToMap(std::unordered_map& factory_map) {} - -void Integer::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) {} - -void Integer::addClassAssignFnsToMap(std::unordered_map& assign_map) {} - -namespace CIMPP { - Integer& Integer::operator=(long int &rop){ - value = rop; - initialized = true; - return *this; - } - - Integer& Integer::operator-=(const Integer& rhs){ - value -= rhs.value; - return *this; - } - - Integer& Integer::operator*=(const Integer& rhs){ - value *= rhs.value; - return *this; - } - - Integer& Integer::operator/=(const Integer& rhs){ - value /= rhs.value; - return *this; - } - - Integer& Integer::operator+=(const Integer& rhs){ - value += rhs.value; - return *this; - } - - Integer::operator long int(){ - if(!initialized) - { - throw new ReadingUninitializedField(); - } - return value; - } - - std::istream& operator>>(std::istream& lop, Integer& rop) - { - std::string tmp; - lop >> tmp; - - rop.value = stol(tmp); - rop.initialized = true; - return lop; - } -} diff --git a/CGMES_2.4.13_18DEC2013/Integer.hpp b/CGMES_2.4.13_18DEC2013/Integer.hpp deleted file mode 100644 index a39f6c814..000000000 --- a/CGMES_2.4.13_18DEC2013/Integer.hpp +++ /dev/null @@ -1,41 +0,0 @@ -#ifndef INTEGER_H -#define INTEGER_H - -#include -#include -#include - -#include "BaseClass.hpp" - -namespace CIMPP { - - /** - * An Integer number. The range is unspecified and not limited. - */ - class Integer - { - public: - Integer(); - Integer(long int value); - virtual ~Integer(); - static const BaseClassDefiner declare(); - Integer& operator=(long int &rop); - Integer& operator+=(const Integer& rhs); - Integer& operator-=(const Integer& rhs); - Integer& operator*=(const Integer& rhs); - Integer& operator/=(const Integer& rhs); - friend std::istream& operator>>(std::istream& lop, Integer& rop); - operator long int(); - - long int value = 0; - bool initialized = false; - - static const char debugName[]; - virtual const char* debugString(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - }; -} -#endif // INTEGER_H diff --git a/CGMES_2.4.13_18DEC2013/Junction.cpp b/CGMES_2.4.13_18DEC2013/Junction.cpp deleted file mode 100644 index f8ffd734b..000000000 --- a/CGMES_2.4.13_18DEC2013/Junction.cpp +++ /dev/null @@ -1,41 +0,0 @@ -#include -#include "Connector.hpp" -#include "Junction.hpp" - - -using namespace CIMPP; - -Junction::Junction() {}; - -Junction::~Junction() {}; - - - -namespace CIMPP { - BaseClass* Junction_factory() { - return new Junction; - } -} - -void Junction::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:Junction"), &Junction_factory)); -} - -void Junction::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { -} - -void Junction::addClassAssignFnsToMap(std::unordered_map& assign_map) { -} - -const char Junction::debugName[] = "Junction"; -const char* Junction::debugString() -{ - return Junction::debugName; -} - -const BaseClassDefiner Junction::declare() -{ - return BaseClassDefiner(Junction::addConstructToMap, Junction::addPrimitiveAssignFnsToMap, Junction::addClassAssignFnsToMap, Junction::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/Junction.hpp b/CGMES_2.4.13_18DEC2013/Junction.hpp deleted file mode 100644 index 9d390733d..000000000 --- a/CGMES_2.4.13_18DEC2013/Junction.hpp +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef Junction_H -#define Junction_H - -#include "Connector.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - - /* - A point where one or more conducting equipments are connected with zero resistance. - */ - class Junction: public Connector - { - - public: - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - Junction(); - virtual ~Junction(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* Junction_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/Length.cpp b/CGMES_2.4.13_18DEC2013/Length.cpp deleted file mode 100644 index 59e68bac1..000000000 --- a/CGMES_2.4.13_18DEC2013/Length.cpp +++ /dev/null @@ -1,70 +0,0 @@ -#include "Length.hpp" -#include "../src/CIMExceptions.hpp" - -using namespace CIMPP; - -Length::Length() {} - -Length::~Length(){} - -Length::Length(long double value) : value(value), initialized(true) {} - -void Length::addConstructToMap(std::unordered_map& factory_map) {} - -void Length::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) {} - -void Length::addClassAssignFnsToMap(std::unordered_map& assign_map) {} - -const char Length::debugName[] = "Length"; -const char* Length::debugString() { - return Length::debugName; -} - - -const BaseClassDefiner Length::declare() { - return BaseClassDefiner(Length::addConstructToMap, Length::addPrimitiveAssignFnsToMap, Length::addClassAssignFnsToMap, Length::debugName); -} - -namespace CIMPP { - Length& Length::operator=(long double &rop) { - value = rop; - initialized = true; - return *this; - } - - Length& Length::operator-=(const Length& rhs) { - value -= rhs.value; - return *this; - } - - Length& Length::operator*=(const Length& rhs) { - value *= rhs.value; - return *this; - } - - Length& Length::operator/=(const Length& rhs) { - value /= rhs.value; - return *this; - } - - Length& Length::operator+=(const Length& rhs) { - value += rhs.value; - return *this; - } - - Length::operator long double() { - if(!initialized) - { - throw new ReadingUninitializedField(); - } - return value; - } - - std::istream& operator>>(std::istream& lop, Length& rop) { - std::string tmp; - lop >> tmp; - rop.value = stold(tmp); - rop.initialized = true; - return lop; - } -} diff --git a/CGMES_2.4.13_18DEC2013/Length.hpp b/CGMES_2.4.13_18DEC2013/Length.hpp deleted file mode 100644 index 999a55e3b..000000000 --- a/CGMES_2.4.13_18DEC2013/Length.hpp +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef Length_H -#define Length_H - -#include -#include - -#include "BaseClass.hpp" - -namespace CIMPP -{ - class Length : public BaseClass - { - - public: - Length(); - virtual ~Length(); - Length(long double value); - static const BaseClassDefiner declare(); - Length& operator=(long double &rop); - Length& operator+=(const Length& rhs); - Length& operator-=(const Length& rhs); - Length& operator*=(const Length& rhs); - Length& operator/=(const Length& rhs); - friend std::istream& operator>>(std::istream& lop, Length& rop); - operator long double(); - - long double value = 0.0; - bool initialized = false; - - static const char debugName[]; - virtual const char* debugString(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - }; -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/Limit.cpp b/CGMES_2.4.13_18DEC2013/Limit.cpp deleted file mode 100644 index baebfa177..000000000 --- a/CGMES_2.4.13_18DEC2013/Limit.cpp +++ /dev/null @@ -1,41 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "Limit.hpp" - - -using namespace CIMPP; - -Limit::Limit() {}; - -Limit::~Limit() {}; - - - -namespace CIMPP { - BaseClass* Limit_factory() { - return new Limit; - } -} - -void Limit::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:Limit"), &Limit_factory)); -} - -void Limit::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { -} - -void Limit::addClassAssignFnsToMap(std::unordered_map& assign_map) { -} - -const char Limit::debugName[] = "Limit"; -const char* Limit::debugString() -{ - return Limit::debugName; -} - -const BaseClassDefiner Limit::declare() -{ - return BaseClassDefiner(Limit::addConstructToMap, Limit::addPrimitiveAssignFnsToMap, Limit::addClassAssignFnsToMap, Limit::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/Limit.hpp b/CGMES_2.4.13_18DEC2013/Limit.hpp deleted file mode 100644 index 0bfa855f1..000000000 --- a/CGMES_2.4.13_18DEC2013/Limit.hpp +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef Limit_H -#define Limit_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - - /* - Specifies one limit value for a Measurement. A Measurement typically has several limits that are kept together by the LimitSet class. The actual meaning and use of a Limit instance (i.e., if it is an alarm or warning limit or if it is a high or low limit) is not captured in the Limit class. However the name of a Limit instance may indicate both meaning and use. - */ - class Limit: public IdentifiedObject - { - - public: - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - Limit(); - virtual ~Limit(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* Limit_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/LimitSet.cpp b/CGMES_2.4.13_18DEC2013/LimitSet.cpp deleted file mode 100644 index 4fd6fd57e..000000000 --- a/CGMES_2.4.13_18DEC2013/LimitSet.cpp +++ /dev/null @@ -1,41 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "LimitSet.hpp" - - -using namespace CIMPP; - -LimitSet::LimitSet() {}; - -LimitSet::~LimitSet() {}; - - - -namespace CIMPP { - BaseClass* LimitSet_factory() { - return new LimitSet; - } -} - -void LimitSet::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:LimitSet"), &LimitSet_factory)); -} - -void LimitSet::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { -} - -void LimitSet::addClassAssignFnsToMap(std::unordered_map& assign_map) { -} - -const char LimitSet::debugName[] = "LimitSet"; -const char* LimitSet::debugString() -{ - return LimitSet::debugName; -} - -const BaseClassDefiner LimitSet::declare() -{ - return BaseClassDefiner(LimitSet::addConstructToMap, LimitSet::addPrimitiveAssignFnsToMap, LimitSet::addClassAssignFnsToMap, LimitSet::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/LimitSet.hpp b/CGMES_2.4.13_18DEC2013/LimitSet.hpp deleted file mode 100644 index 92539ff27..000000000 --- a/CGMES_2.4.13_18DEC2013/LimitSet.hpp +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef LimitSet_H -#define LimitSet_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - - /* - Specifies a set of Limits that are associated with a Measurement. A Measurement may have several LimitSets corresponding to seasonal or other changing conditions. The condition is captured in the name and description attributes. The same LimitSet may be used for several Measurements. In particular percentage limits are used this way. - */ - class LimitSet: public IdentifiedObject - { - - public: - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - LimitSet(); - virtual ~LimitSet(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* LimitSet_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/LimitTypeKind.cpp b/CGMES_2.4.13_18DEC2013/LimitTypeKind.cpp deleted file mode 100644 index 52efaf862..000000000 --- a/CGMES_2.4.13_18DEC2013/LimitTypeKind.cpp +++ /dev/null @@ -1,62 +0,0 @@ -#include -#include -#include "LimitTypeKind.hpp" - -using namespace CIMPP; - -namespace CIMPP { - std::istream& operator>>(std::istream& lop, CIMPP::LimitTypeKind& rop) - { - std::string EnumSymbol; - lop >> EnumSymbol; - - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "LimitTypeKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "patl") - { - rop = LimitTypeKind::patl; - return lop; - } - if(EnumSymbol == "patlt") - { - rop = LimitTypeKind::patlt; - return lop; - } - if(EnumSymbol == "tatl") - { - rop = LimitTypeKind::tatl; - return lop; - } - if(EnumSymbol == "tc") - { - rop = LimitTypeKind::tc; - return lop; - } - if(EnumSymbol == "tct") - { - rop = LimitTypeKind::tct; - return lop; - } - if(EnumSymbol == "highVoltage") - { - rop = LimitTypeKind::highVoltage; - return lop; - } - if(EnumSymbol == "lowVoltage") - { - rop = LimitTypeKind::lowVoltage; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; - } -} - diff --git a/CGMES_2.4.13_18DEC2013/LimitTypeKind.hpp b/CGMES_2.4.13_18DEC2013/LimitTypeKind.hpp deleted file mode 100644 index 9fe76cfc8..000000000 --- a/CGMES_2.4.13_18DEC2013/LimitTypeKind.hpp +++ /dev/null @@ -1,41 +0,0 @@ -#ifndef LimitTypeKind_H -#define LimitTypeKind_H - -namespace CIMPP { - /* - The enumeration defines the kinds of the limit types. - */ - enum class LimitTypeKind - { - /** - * The Permanent Admissible Transmission Loading (PATL) is the loading in Amps, MVA or MW that can be accepted by a network branch for an unlimited duration without any risk for the material. The duration attribute is not used and shall be excluded for the PATL limit type. Hence only one limit value exists for the PATL type. - */ - patl, - /** - * Permanent Admissible Transmission Loading Threshold (PATLT) is a percentage less than 100 of the PATL type intended to alert operators of an arising condition. - */ - patlt, - /** - * Temporarily Admissible Transmission Loading (TATL) which is the loading in Amps, MVA or MW that can be accepted by a branch for a certain limited duration. The TATL can be defined in different ways: Such a definition of TATL can depend on the initial operating conditions of the network element (sag situation of a line). The duration attribute can be used define several TATL limit types. Hence multiple TATL limit values may exist having different durations. - */ - tatl, - /** - * Tripping Current (TC) is the ultimate intensity without any delay. It is defined as the threshold the line will trip without any possible remedial actions. The tripping of the network element is ordered by protections against short circuits or by overload protections, but in any case, the activation delay of these protections is not compatible with the reaction delay of an operator (less than one minute). The duration is always zero and the duration attribute may be left out. Hence only one limit value exists for the TC type. - */ - tc, - /** - * Tripping Current Threshold (TCT) is a percentage less than 100 of the TC type intended to alert operators of an arising condition. - */ - tct, - /** - * Referring to the rating of the equipments, a voltage too high can lead to accelerated ageing or the destruction of the equipment. This limit type may or may not have duration. - */ - highVoltage, - /** - * A too low voltage can disturb the normal operation of some protections and transformer equipped with on-load tap changers, electronic power devices or can affect the behaviour of the auxiliaries of generation units. This limit type may or may not have duration. - */ - lowVoltage, - }; - std::istream& operator>>(std::istream& lop, CIMPP::LimitTypeKind& rop); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/Line.cpp b/CGMES_2.4.13_18DEC2013/Line.cpp deleted file mode 100644 index 5cd36f03c..000000000 --- a/CGMES_2.4.13_18DEC2013/Line.cpp +++ /dev/null @@ -1,54 +0,0 @@ -#include -#include "EquipmentContainer.hpp" -#include "Line.hpp" - -#include "SubGeographicalRegion.hpp" - -using namespace CIMPP; - -Line::Line(): Region(nullptr) {}; - -Line::~Line() {}; - - -bool assign_SubGeographicalRegion_Lines(BaseClass*, BaseClass*); -bool assign_Line_Region(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(Line* element = dynamic_cast(BaseClass_ptr1)) { - element->Region = dynamic_cast(BaseClass_ptr2); - if(element->Region != nullptr) - return assign_SubGeographicalRegion_Lines(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - -namespace CIMPP { - BaseClass* Line_factory() { - return new Line; - } -} - -void Line::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:Line"), &Line_factory)); -} - -void Line::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void Line::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:Line.Region"), &assign_Line_Region)); -} - -const char Line::debugName[] = "Line"; -const char* Line::debugString() -{ - return Line::debugName; -} - -const BaseClassDefiner Line::declare() -{ - return BaseClassDefiner(Line::addConstructToMap, Line::addPrimitiveAssignFnsToMap, Line::addClassAssignFnsToMap, Line::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/Line.hpp b/CGMES_2.4.13_18DEC2013/Line.hpp deleted file mode 100644 index a4d34c007..000000000 --- a/CGMES_2.4.13_18DEC2013/Line.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef Line_H -#define Line_H - -#include "EquipmentContainer.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class SubGeographicalRegion; - /* - Contains equipment beyond a substation belonging to a power transmission line. - */ - class Line: public EquipmentContainer - { - - public: - CIMPP::SubGeographicalRegion* Region; /* The lines within the sub-geographical region. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - Line(); - virtual ~Line(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* Line_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/LinearShuntCompensator.cpp b/CGMES_2.4.13_18DEC2013/LinearShuntCompensator.cpp deleted file mode 100644 index c392d9991..000000000 --- a/CGMES_2.4.13_18DEC2013/LinearShuntCompensator.cpp +++ /dev/null @@ -1,101 +0,0 @@ -#include -#include "ShuntCompensator.hpp" -#include "LinearShuntCompensator.hpp" - -#include "Susceptance.hpp" -#include "Susceptance.hpp" -#include "Conductance.hpp" -#include "Conductance.hpp" - -using namespace CIMPP; - -LinearShuntCompensator::LinearShuntCompensator() {}; - -LinearShuntCompensator::~LinearShuntCompensator() {}; - - - - - - - -bool assign_LinearShuntCompensator_b0PerSection(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LinearShuntCompensator* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->b0PerSection; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_LinearShuntCompensator_bPerSection(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LinearShuntCompensator* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->bPerSection; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_LinearShuntCompensator_g0PerSection(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LinearShuntCompensator* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->g0PerSection; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_LinearShuntCompensator_gPerSection(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LinearShuntCompensator* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->gPerSection; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* LinearShuntCompensator_factory() { - return new LinearShuntCompensator; - } -} - -void LinearShuntCompensator::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:LinearShuntCompensator"), &LinearShuntCompensator_factory)); -} - -void LinearShuntCompensator::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:LinearShuntCompensator.b0PerSection"), &assign_LinearShuntCompensator_b0PerSection)); - assign_map.insert(std::make_pair(std::string("cim:LinearShuntCompensator.bPerSection"), &assign_LinearShuntCompensator_bPerSection)); - assign_map.insert(std::make_pair(std::string("cim:LinearShuntCompensator.g0PerSection"), &assign_LinearShuntCompensator_g0PerSection)); - assign_map.insert(std::make_pair(std::string("cim:LinearShuntCompensator.gPerSection"), &assign_LinearShuntCompensator_gPerSection)); -} - -void LinearShuntCompensator::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char LinearShuntCompensator::debugName[] = "LinearShuntCompensator"; -const char* LinearShuntCompensator::debugString() -{ - return LinearShuntCompensator::debugName; -} - -const BaseClassDefiner LinearShuntCompensator::declare() -{ - return BaseClassDefiner(LinearShuntCompensator::addConstructToMap, LinearShuntCompensator::addPrimitiveAssignFnsToMap, LinearShuntCompensator::addClassAssignFnsToMap, LinearShuntCompensator::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/LinearShuntCompensator.hpp b/CGMES_2.4.13_18DEC2013/LinearShuntCompensator.hpp deleted file mode 100644 index df6a9d672..000000000 --- a/CGMES_2.4.13_18DEC2013/LinearShuntCompensator.hpp +++ /dev/null @@ -1,44 +0,0 @@ -#ifndef LinearShuntCompensator_H -#define LinearShuntCompensator_H - -#include "ShuntCompensator.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Susceptance.hpp" -#include "Conductance.hpp" - -namespace CIMPP { - - - /* - A linear shunt compensator has banks or sections with equal admittance values. - */ - class LinearShuntCompensator: public ShuntCompensator - { - - public: - CIMPP::Susceptance b0PerSection; /* Zero sequence shunt (charging) susceptance per section Default: nullptr */ - CIMPP::Susceptance bPerSection; /* Positive sequence shunt (charging) susceptance per section Default: nullptr */ - CIMPP::Conductance g0PerSection; /* Zero sequence shunt (charging) conductance per section Default: nullptr */ - CIMPP::Conductance gPerSection; /* Positive sequence shunt (charging) conductance per section Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - LinearShuntCompensator(); - virtual ~LinearShuntCompensator(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* LinearShuntCompensator_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/LoadAggregate.cpp b/CGMES_2.4.13_18DEC2013/LoadAggregate.cpp deleted file mode 100644 index 04785e416..000000000 --- a/CGMES_2.4.13_18DEC2013/LoadAggregate.cpp +++ /dev/null @@ -1,65 +0,0 @@ -#include -#include "LoadDynamics.hpp" -#include "LoadAggregate.hpp" - -#include "LoadStatic.hpp" -#include "LoadMotor.hpp" - -using namespace CIMPP; - -LoadAggregate::LoadAggregate(): LoadStatic(nullptr), LoadMotor(nullptr) {}; - -LoadAggregate::~LoadAggregate() {}; - - -bool assign_LoadAggregate_LoadStatic(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(LoadAggregate* element = dynamic_cast(BaseClass_ptr1)) { - element->LoadStatic = dynamic_cast(BaseClass_ptr2); - if(element->LoadStatic != nullptr) - return true; - } - return false; -} - -bool assign_LoadAggregate_LoadMotor(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(LoadAggregate* element = dynamic_cast(BaseClass_ptr1)) { - element->LoadMotor = dynamic_cast(BaseClass_ptr2); - if(element->LoadMotor != nullptr) - return true; - } - return false; -} - - - - -namespace CIMPP { - BaseClass* LoadAggregate_factory() { - return new LoadAggregate; - } -} - -void LoadAggregate::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:LoadAggregate"), &LoadAggregate_factory)); -} - -void LoadAggregate::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void LoadAggregate::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:LoadAggregate.LoadStatic"), &assign_LoadAggregate_LoadStatic)); - assign_map.insert(std::make_pair(std::string("cim:LoadAggregate.LoadMotor"), &assign_LoadAggregate_LoadMotor)); -} - -const char LoadAggregate::debugName[] = "LoadAggregate"; -const char* LoadAggregate::debugString() -{ - return LoadAggregate::debugName; -} - -const BaseClassDefiner LoadAggregate::declare() -{ - return BaseClassDefiner(LoadAggregate::addConstructToMap, LoadAggregate::addPrimitiveAssignFnsToMap, LoadAggregate::addClassAssignFnsToMap, LoadAggregate::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/LoadAggregate.hpp b/CGMES_2.4.13_18DEC2013/LoadAggregate.hpp deleted file mode 100644 index 0e138c16d..000000000 --- a/CGMES_2.4.13_18DEC2013/LoadAggregate.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef LoadAggregate_H -#define LoadAggregate_H - -#include "LoadDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class LoadStatic; -class LoadMotor; - /* - Standard aggregate load model comprised of static and/or dynamic components. A static load model represents the sensitivity of the real and reactive power consumed by the load to the amplitude and frequency of the bus voltage. A dynamic load model can used to represent the aggregate response of the motor components of the load. - */ - class LoadAggregate: public LoadDynamics - { - - public: - CIMPP::LoadStatic* LoadStatic; /* Aggregate static load associated with this aggregate load. Default: 0 */ - CIMPP::LoadMotor* LoadMotor; /* Aggregate motor (dynamic) load associated with this aggregate load. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - LoadAggregate(); - virtual ~LoadAggregate(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* LoadAggregate_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/LoadArea.cpp b/CGMES_2.4.13_18DEC2013/LoadArea.cpp deleted file mode 100644 index a698a730f..000000000 --- a/CGMES_2.4.13_18DEC2013/LoadArea.cpp +++ /dev/null @@ -1,54 +0,0 @@ -#include -#include "EnergyArea.hpp" -#include "LoadArea.hpp" - -#include "SubLoadArea.hpp" - -using namespace CIMPP; - -LoadArea::LoadArea() {}; - -LoadArea::~LoadArea() {}; - - -bool assign_LoadArea_SubLoadAreas(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(LoadArea* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->SubLoadAreas.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - - -namespace CIMPP { - BaseClass* LoadArea_factory() { - return new LoadArea; - } -} - -void LoadArea::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:LoadArea"), &LoadArea_factory)); -} - -void LoadArea::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void LoadArea::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:LoadArea.SubLoadAreas"), &assign_LoadArea_SubLoadAreas)); -} - -const char LoadArea::debugName[] = "LoadArea"; -const char* LoadArea::debugString() -{ - return LoadArea::debugName; -} - -const BaseClassDefiner LoadArea::declare() -{ - return BaseClassDefiner(LoadArea::addConstructToMap, LoadArea::addPrimitiveAssignFnsToMap, LoadArea::addClassAssignFnsToMap, LoadArea::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/LoadArea.hpp b/CGMES_2.4.13_18DEC2013/LoadArea.hpp deleted file mode 100644 index 8e65aa6fe..000000000 --- a/CGMES_2.4.13_18DEC2013/LoadArea.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef LoadArea_H -#define LoadArea_H - -#include "EnergyArea.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class SubLoadArea; - /* - The class is the root or first level in a hierarchical structure for grouping of loads for the purpose of load flow load scaling. - */ - class LoadArea: public EnergyArea - { - - public: - std::list SubLoadAreas; /* The SubLoadAreas in the LoadArea. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - LoadArea(); - virtual ~LoadArea(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* LoadArea_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/LoadBreakSwitch.cpp b/CGMES_2.4.13_18DEC2013/LoadBreakSwitch.cpp deleted file mode 100644 index 48d70a647..000000000 --- a/CGMES_2.4.13_18DEC2013/LoadBreakSwitch.cpp +++ /dev/null @@ -1,41 +0,0 @@ -#include -#include "ProtectedSwitch.hpp" -#include "LoadBreakSwitch.hpp" - - -using namespace CIMPP; - -LoadBreakSwitch::LoadBreakSwitch() {}; - -LoadBreakSwitch::~LoadBreakSwitch() {}; - - - -namespace CIMPP { - BaseClass* LoadBreakSwitch_factory() { - return new LoadBreakSwitch; - } -} - -void LoadBreakSwitch::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:LoadBreakSwitch"), &LoadBreakSwitch_factory)); -} - -void LoadBreakSwitch::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { -} - -void LoadBreakSwitch::addClassAssignFnsToMap(std::unordered_map& assign_map) { -} - -const char LoadBreakSwitch::debugName[] = "LoadBreakSwitch"; -const char* LoadBreakSwitch::debugString() -{ - return LoadBreakSwitch::debugName; -} - -const BaseClassDefiner LoadBreakSwitch::declare() -{ - return BaseClassDefiner(LoadBreakSwitch::addConstructToMap, LoadBreakSwitch::addPrimitiveAssignFnsToMap, LoadBreakSwitch::addClassAssignFnsToMap, LoadBreakSwitch::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/LoadBreakSwitch.hpp b/CGMES_2.4.13_18DEC2013/LoadBreakSwitch.hpp deleted file mode 100644 index fd0dfbd1c..000000000 --- a/CGMES_2.4.13_18DEC2013/LoadBreakSwitch.hpp +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef LoadBreakSwitch_H -#define LoadBreakSwitch_H - -#include "ProtectedSwitch.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - - /* - A mechanical switching device capable of making, carrying, and breaking currents under normal operating conditions. - */ - class LoadBreakSwitch: public ProtectedSwitch - { - - public: - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - LoadBreakSwitch(); - virtual ~LoadBreakSwitch(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* LoadBreakSwitch_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/LoadComposite.cpp b/CGMES_2.4.13_18DEC2013/LoadComposite.cpp deleted file mode 100644 index 98b340ca4..000000000 --- a/CGMES_2.4.13_18DEC2013/LoadComposite.cpp +++ /dev/null @@ -1,206 +0,0 @@ -#include -#include "LoadDynamics.hpp" -#include "LoadComposite.hpp" - -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Seconds.hpp" -#include "Simple_Float.hpp" - -using namespace CIMPP; - -LoadComposite::LoadComposite() {}; - -LoadComposite::~LoadComposite() {}; - - - - - - - - - - - - - - -bool assign_LoadComposite_epvs(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LoadComposite* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->epvs; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_LoadComposite_epfs(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LoadComposite* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->epfs; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_LoadComposite_eqvs(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LoadComposite* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->eqvs; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_LoadComposite_eqfs(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LoadComposite* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->eqfs; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_LoadComposite_epvd(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LoadComposite* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->epvd; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_LoadComposite_epfd(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LoadComposite* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->epfd; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_LoadComposite_eqvd(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LoadComposite* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->eqvd; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_LoadComposite_eqfd(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LoadComposite* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->eqfd; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_LoadComposite_lfrac(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LoadComposite* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->lfrac; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_LoadComposite_h(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LoadComposite* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->h; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_LoadComposite_pfrac(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LoadComposite* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pfrac; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* LoadComposite_factory() { - return new LoadComposite; - } -} - -void LoadComposite::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:LoadComposite"), &LoadComposite_factory)); -} - -void LoadComposite::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:LoadComposite.epvs"), &assign_LoadComposite_epvs)); - assign_map.insert(std::make_pair(std::string("cim:LoadComposite.epfs"), &assign_LoadComposite_epfs)); - assign_map.insert(std::make_pair(std::string("cim:LoadComposite.eqvs"), &assign_LoadComposite_eqvs)); - assign_map.insert(std::make_pair(std::string("cim:LoadComposite.eqfs"), &assign_LoadComposite_eqfs)); - assign_map.insert(std::make_pair(std::string("cim:LoadComposite.epvd"), &assign_LoadComposite_epvd)); - assign_map.insert(std::make_pair(std::string("cim:LoadComposite.epfd"), &assign_LoadComposite_epfd)); - assign_map.insert(std::make_pair(std::string("cim:LoadComposite.eqvd"), &assign_LoadComposite_eqvd)); - assign_map.insert(std::make_pair(std::string("cim:LoadComposite.eqfd"), &assign_LoadComposite_eqfd)); - assign_map.insert(std::make_pair(std::string("cim:LoadComposite.lfrac"), &assign_LoadComposite_lfrac)); - assign_map.insert(std::make_pair(std::string("cim:LoadComposite.h"), &assign_LoadComposite_h)); - assign_map.insert(std::make_pair(std::string("cim:LoadComposite.pfrac"), &assign_LoadComposite_pfrac)); -} - -void LoadComposite::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char LoadComposite::debugName[] = "LoadComposite"; -const char* LoadComposite::debugString() -{ - return LoadComposite::debugName; -} - -const BaseClassDefiner LoadComposite::declare() -{ - return BaseClassDefiner(LoadComposite::addConstructToMap, LoadComposite::addPrimitiveAssignFnsToMap, LoadComposite::addClassAssignFnsToMap, LoadComposite::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/LoadComposite.hpp b/CGMES_2.4.13_18DEC2013/LoadComposite.hpp deleted file mode 100644 index 410ffb8c9..000000000 --- a/CGMES_2.4.13_18DEC2013/LoadComposite.hpp +++ /dev/null @@ -1,51 +0,0 @@ -#ifndef LoadComposite_H -#define LoadComposite_H - -#include "LoadDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Simple_Float.hpp" -#include "Seconds.hpp" - -namespace CIMPP { - - - /* - This models combines static load and induction motor load effects. The dynamics of the motor are simplified by linearizing the induction machine equations. - */ - class LoadComposite: public LoadDynamics - { - - public: - CIMPP::Simple_Float epvs; /* Active load-voltage dependence index (static) (Epvs). Typical Value = 0.7. Default: nullptr */ - CIMPP::Simple_Float epfs; /* Active load-frequency dependence index (static) (Epfs). Typical Value = 1.5. Default: nullptr */ - CIMPP::Simple_Float eqvs; /* Reactive load-voltage dependence index (static) (Eqvs). Typical Value = 2. Default: nullptr */ - CIMPP::Simple_Float eqfs; /* Reactive load-frequency dependence index (static) (Eqfs). Typical Value = 0. Default: nullptr */ - CIMPP::Simple_Float epvd; /* Active load-voltage dependence index (dynamic) (Epvd). Typical Value = 0.7. Default: nullptr */ - CIMPP::Simple_Float epfd; /* Active load-frequency dependence index (dynamic) (Epfd). Typical Value = 1.5. Default: nullptr */ - CIMPP::Simple_Float eqvd; /* Reactive load-voltage dependence index (dynamic) (Eqvd). Typical Value = 2. Default: nullptr */ - CIMPP::Simple_Float eqfd; /* Reactive load-frequency dependence index (dynamic) (Eqfd). Typical Value = 0. Default: nullptr */ - CIMPP::Simple_Float lfrac; /* Loading factor - ratio of initial P to motor MVA base (Lfrac). Typical Value = 0.8. Default: nullptr */ - CIMPP::Seconds h; /* Inertia constant (H). Typical Value = 2.5. Default: nullptr */ - CIMPP::Simple_Float pfrac; /* Fraction of constant-power load to be represented by this motor model (Pfrac) (>=0.0 and <=1.0). Typical Value = 0.5. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - LoadComposite(); - virtual ~LoadComposite(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* LoadComposite_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/LoadDynamics.cpp b/CGMES_2.4.13_18DEC2013/LoadDynamics.cpp deleted file mode 100644 index 47cafda7f..000000000 --- a/CGMES_2.4.13_18DEC2013/LoadDynamics.cpp +++ /dev/null @@ -1,54 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "LoadDynamics.hpp" - -#include "EnergyConsumer.hpp" - -using namespace CIMPP; - -LoadDynamics::LoadDynamics() {}; - -LoadDynamics::~LoadDynamics() {}; - - -bool assign_LoadDynamics_EnergyConsumer(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(LoadDynamics* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->EnergyConsumer.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - - -namespace CIMPP { - BaseClass* LoadDynamics_factory() { - return new LoadDynamics; - } -} - -void LoadDynamics::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:LoadDynamics"), &LoadDynamics_factory)); -} - -void LoadDynamics::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void LoadDynamics::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:LoadDynamics.EnergyConsumer"), &assign_LoadDynamics_EnergyConsumer)); -} - -const char LoadDynamics::debugName[] = "LoadDynamics"; -const char* LoadDynamics::debugString() -{ - return LoadDynamics::debugName; -} - -const BaseClassDefiner LoadDynamics::declare() -{ - return BaseClassDefiner(LoadDynamics::addConstructToMap, LoadDynamics::addPrimitiveAssignFnsToMap, LoadDynamics::addClassAssignFnsToMap, LoadDynamics::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/LoadDynamics.hpp b/CGMES_2.4.13_18DEC2013/LoadDynamics.hpp deleted file mode 100644 index d6693e71f..000000000 --- a/CGMES_2.4.13_18DEC2013/LoadDynamics.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef LoadDynamics_H -#define LoadDynamics_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class EnergyConsumer; - /* - Load whose behaviour is described by reference to a standard model A standard feature of dynamic load behaviour modelling is the ability to associate the same behaviour to multiple energy consumers by means of a single aggregate load definition. Aggregate loads are used to represent all or part of the real and reactive load from one or more loads in the static (power flow) data. This load is usually the aggregation of many individual load devices and the load model is approximate representation of the aggregate response of the load devices to system disturbances. The load model is always applied to individual bus loads (energy consumers) but a single set of load model parameters can used for all loads in the grouping. - */ - class LoadDynamics: public IdentifiedObject - { - - public: - std::list EnergyConsumer; /* Energy consumer to which this dynamics load model applies. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - LoadDynamics(); - virtual ~LoadDynamics(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* LoadDynamics_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/LoadGenericNonLinear.cpp b/CGMES_2.4.13_18DEC2013/LoadGenericNonLinear.cpp deleted file mode 100644 index 6ed0a1bbd..000000000 --- a/CGMES_2.4.13_18DEC2013/LoadGenericNonLinear.cpp +++ /dev/null @@ -1,176 +0,0 @@ -#include -#include "LoadDynamics.hpp" -#include "LoadGenericNonLinear.hpp" - -#include "GenericNonLinearLoadModelKind.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" - -using namespace CIMPP; - -LoadGenericNonLinear::LoadGenericNonLinear() {}; - -LoadGenericNonLinear::~LoadGenericNonLinear() {}; - - - - - - - - - - - - -bool assign_LoadGenericNonLinear_genericNonLinearLoadModelType(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LoadGenericNonLinear* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->genericNonLinearLoadModelType; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_LoadGenericNonLinear_pt(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LoadGenericNonLinear* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pt; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_LoadGenericNonLinear_qt(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LoadGenericNonLinear* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->qt; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_LoadGenericNonLinear_tp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LoadGenericNonLinear* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_LoadGenericNonLinear_tq(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LoadGenericNonLinear* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tq; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_LoadGenericNonLinear_ls(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LoadGenericNonLinear* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ls; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_LoadGenericNonLinear_lt(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LoadGenericNonLinear* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->lt; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_LoadGenericNonLinear_bs(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LoadGenericNonLinear* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->bs; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_LoadGenericNonLinear_bt(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LoadGenericNonLinear* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->bt; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* LoadGenericNonLinear_factory() { - return new LoadGenericNonLinear; - } -} - -void LoadGenericNonLinear::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:LoadGenericNonLinear"), &LoadGenericNonLinear_factory)); -} - -void LoadGenericNonLinear::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:LoadGenericNonLinear.genericNonLinearLoadModelType"), &assign_LoadGenericNonLinear_genericNonLinearLoadModelType)); - assign_map.insert(std::make_pair(std::string("cim:LoadGenericNonLinear.pt"), &assign_LoadGenericNonLinear_pt)); - assign_map.insert(std::make_pair(std::string("cim:LoadGenericNonLinear.qt"), &assign_LoadGenericNonLinear_qt)); - assign_map.insert(std::make_pair(std::string("cim:LoadGenericNonLinear.tp"), &assign_LoadGenericNonLinear_tp)); - assign_map.insert(std::make_pair(std::string("cim:LoadGenericNonLinear.tq"), &assign_LoadGenericNonLinear_tq)); - assign_map.insert(std::make_pair(std::string("cim:LoadGenericNonLinear.ls"), &assign_LoadGenericNonLinear_ls)); - assign_map.insert(std::make_pair(std::string("cim:LoadGenericNonLinear.lt"), &assign_LoadGenericNonLinear_lt)); - assign_map.insert(std::make_pair(std::string("cim:LoadGenericNonLinear.bs"), &assign_LoadGenericNonLinear_bs)); - assign_map.insert(std::make_pair(std::string("cim:LoadGenericNonLinear.bt"), &assign_LoadGenericNonLinear_bt)); -} - -void LoadGenericNonLinear::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char LoadGenericNonLinear::debugName[] = "LoadGenericNonLinear"; -const char* LoadGenericNonLinear::debugString() -{ - return LoadGenericNonLinear::debugName; -} - -const BaseClassDefiner LoadGenericNonLinear::declare() -{ - return BaseClassDefiner(LoadGenericNonLinear::addConstructToMap, LoadGenericNonLinear::addPrimitiveAssignFnsToMap, LoadGenericNonLinear::addClassAssignFnsToMap, LoadGenericNonLinear::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/LoadGenericNonLinear.hpp b/CGMES_2.4.13_18DEC2013/LoadGenericNonLinear.hpp deleted file mode 100644 index bcb4a2cce..000000000 --- a/CGMES_2.4.13_18DEC2013/LoadGenericNonLinear.hpp +++ /dev/null @@ -1,50 +0,0 @@ -#ifndef LoadGenericNonLinear_H -#define LoadGenericNonLinear_H - -#include "LoadDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "GenericNonLinearLoadModelKind.hpp" -#include "Simple_Float.hpp" -#include "Seconds.hpp" - -namespace CIMPP { - - - /* - These load models (known also as generic non-linear dynamic (GNLD) load models) can be used in mid-term and long-term voltage stability simulations (i.e., to study voltage collapse), as they can replace a more detailed representation of aggregate load, including induction motors, thermostatically controlled and static loads. - */ - class LoadGenericNonLinear: public LoadDynamics - { - - public: - CIMPP::GenericNonLinearLoadModelKind genericNonLinearLoadModelType; /* Type of generic non-linear load model. Default: 0 */ - CIMPP::Simple_Float pt; /* Dynamic portion of active load (P). Default: nullptr */ - CIMPP::Simple_Float qt; /* Dynamic portion of reactive load (Q). Default: nullptr */ - CIMPP::Seconds tp; /* Time constant of lag function of active power (T). Default: nullptr */ - CIMPP::Seconds tq; /* Time constant of lag function of reactive power (T). Default: nullptr */ - CIMPP::Simple_Float ls; /* Steady state voltage index for active power (LS). Default: nullptr */ - CIMPP::Simple_Float lt; /* Transient voltage index for active power (LT). Default: nullptr */ - CIMPP::Simple_Float bs; /* Steady state voltage index for reactive power (BS). Default: nullptr */ - CIMPP::Simple_Float bt; /* Transient voltage index for reactive power (BT). Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - LoadGenericNonLinear(); - virtual ~LoadGenericNonLinear(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* LoadGenericNonLinear_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/LoadGroup.cpp b/CGMES_2.4.13_18DEC2013/LoadGroup.cpp deleted file mode 100644 index 83b54e687..000000000 --- a/CGMES_2.4.13_18DEC2013/LoadGroup.cpp +++ /dev/null @@ -1,54 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "LoadGroup.hpp" - -#include "SubLoadArea.hpp" - -using namespace CIMPP; - -LoadGroup::LoadGroup(): SubLoadArea(nullptr) {}; - -LoadGroup::~LoadGroup() {}; - - -bool assign_SubLoadArea_LoadGroups(BaseClass*, BaseClass*); -bool assign_LoadGroup_SubLoadArea(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(LoadGroup* element = dynamic_cast(BaseClass_ptr1)) { - element->SubLoadArea = dynamic_cast(BaseClass_ptr2); - if(element->SubLoadArea != nullptr) - return assign_SubLoadArea_LoadGroups(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - -namespace CIMPP { - BaseClass* LoadGroup_factory() { - return new LoadGroup; - } -} - -void LoadGroup::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:LoadGroup"), &LoadGroup_factory)); -} - -void LoadGroup::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void LoadGroup::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:LoadGroup.SubLoadArea"), &assign_LoadGroup_SubLoadArea)); -} - -const char LoadGroup::debugName[] = "LoadGroup"; -const char* LoadGroup::debugString() -{ - return LoadGroup::debugName; -} - -const BaseClassDefiner LoadGroup::declare() -{ - return BaseClassDefiner(LoadGroup::addConstructToMap, LoadGroup::addPrimitiveAssignFnsToMap, LoadGroup::addClassAssignFnsToMap, LoadGroup::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/LoadGroup.hpp b/CGMES_2.4.13_18DEC2013/LoadGroup.hpp deleted file mode 100644 index 648d54b00..000000000 --- a/CGMES_2.4.13_18DEC2013/LoadGroup.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef LoadGroup_H -#define LoadGroup_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class SubLoadArea; - /* - The class is the third level in a hierarchical structure for grouping of loads for the purpose of load flow load scaling. - */ - class LoadGroup: public IdentifiedObject - { - - public: - CIMPP::SubLoadArea* SubLoadArea; /* The SubLoadArea where the Loadgroup belongs. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - LoadGroup(); - virtual ~LoadGroup(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* LoadGroup_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/LoadMotor.cpp b/CGMES_2.4.13_18DEC2013/LoadMotor.cpp deleted file mode 100644 index ac2df6f92..000000000 --- a/CGMES_2.4.13_18DEC2013/LoadMotor.cpp +++ /dev/null @@ -1,249 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "LoadMotor.hpp" - -#include "LoadAggregate.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" - -using namespace CIMPP; - -LoadMotor::LoadMotor(): LoadAggregate(nullptr) {}; - -LoadMotor::~LoadMotor() {}; - - -bool assign_LoadAggregate_LoadMotor(BaseClass*, BaseClass*); -bool assign_LoadMotor_LoadAggregate(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(LoadMotor* element = dynamic_cast(BaseClass_ptr1)) { - element->LoadAggregate = dynamic_cast(BaseClass_ptr2); - if(element->LoadAggregate != nullptr) - return assign_LoadAggregate_LoadMotor(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - - - - - - - - - - - - - - -bool assign_LoadMotor_pfrac(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LoadMotor* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pfrac; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_LoadMotor_lfac(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LoadMotor* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->lfac; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_LoadMotor_ls(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LoadMotor* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ls; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_LoadMotor_lp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LoadMotor* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->lp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_LoadMotor_lpp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LoadMotor* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->lpp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_LoadMotor_ra(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LoadMotor* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ra; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_LoadMotor_tpo(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LoadMotor* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tpo; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_LoadMotor_tppo(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LoadMotor* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tppo; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_LoadMotor_h(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LoadMotor* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->h; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_LoadMotor_d(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LoadMotor* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->d; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_LoadMotor_vt(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LoadMotor* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vt; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_LoadMotor_tv(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LoadMotor* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tv; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_LoadMotor_tbkr(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LoadMotor* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tbkr; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* LoadMotor_factory() { - return new LoadMotor; - } -} - -void LoadMotor::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:LoadMotor"), &LoadMotor_factory)); -} - -void LoadMotor::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:LoadMotor.pfrac"), &assign_LoadMotor_pfrac)); - assign_map.insert(std::make_pair(std::string("cim:LoadMotor.lfac"), &assign_LoadMotor_lfac)); - assign_map.insert(std::make_pair(std::string("cim:LoadMotor.ls"), &assign_LoadMotor_ls)); - assign_map.insert(std::make_pair(std::string("cim:LoadMotor.lp"), &assign_LoadMotor_lp)); - assign_map.insert(std::make_pair(std::string("cim:LoadMotor.lpp"), &assign_LoadMotor_lpp)); - assign_map.insert(std::make_pair(std::string("cim:LoadMotor.ra"), &assign_LoadMotor_ra)); - assign_map.insert(std::make_pair(std::string("cim:LoadMotor.tpo"), &assign_LoadMotor_tpo)); - assign_map.insert(std::make_pair(std::string("cim:LoadMotor.tppo"), &assign_LoadMotor_tppo)); - assign_map.insert(std::make_pair(std::string("cim:LoadMotor.h"), &assign_LoadMotor_h)); - assign_map.insert(std::make_pair(std::string("cim:LoadMotor.d"), &assign_LoadMotor_d)); - assign_map.insert(std::make_pair(std::string("cim:LoadMotor.vt"), &assign_LoadMotor_vt)); - assign_map.insert(std::make_pair(std::string("cim:LoadMotor.tv"), &assign_LoadMotor_tv)); - assign_map.insert(std::make_pair(std::string("cim:LoadMotor.tbkr"), &assign_LoadMotor_tbkr)); -} - -void LoadMotor::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:LoadMotor.LoadAggregate"), &assign_LoadMotor_LoadAggregate)); - } - -const char LoadMotor::debugName[] = "LoadMotor"; -const char* LoadMotor::debugString() -{ - return LoadMotor::debugName; -} - -const BaseClassDefiner LoadMotor::declare() -{ - return BaseClassDefiner(LoadMotor::addConstructToMap, LoadMotor::addPrimitiveAssignFnsToMap, LoadMotor::addClassAssignFnsToMap, LoadMotor::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/LoadMotor.hpp b/CGMES_2.4.13_18DEC2013/LoadMotor.hpp deleted file mode 100644 index cb15d6517..000000000 --- a/CGMES_2.4.13_18DEC2013/LoadMotor.hpp +++ /dev/null @@ -1,56 +0,0 @@ -#ifndef LoadMotor_H -#define LoadMotor_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "Seconds.hpp" - -namespace CIMPP { - - -class LoadAggregate; - /* - Aggregate induction motor load. This model is used to represent a fraction of an ordinary load as "induction motor load". It allows load that is treated as ordinary constant power in power flow analysis to be represented by an induction motor in dynamic simulation. If = 0. or = , or = 0., only one cage is represented. Magnetic saturation is not modelled. Either a "one-cage" or "two-cage" model of the induction machine can be modelled. Magnetic saturation is not modelled. This model is intended for representation of aggregations of many motors dispersed through a load represented at a high voltage bus but where there is no information on the characteristics of individual motors. This model treats a fraction of the constant power part of a load as a motor. During initialisation, the initial power drawn by the motor is set equal to times the constant part of the static load. The remainder of the load is left as static load. The reactive power demand of the motor is calculated during initialisation as a function of voltage at the load bus. This reactive power demand may be less than or greater than the constant component of the load. If the motor's reactive demand is greater than the constant component of the load, the model inserts a shunt capacitor at the terminal of the motor to bring its reactive demand down to equal the constant reactive load. If a motor model and a static load model are both present for a load, the motor is assumed to be subtracted from the power flow constant load before the static load model is applied. The remainder of the load, if any, is then represented by the static load model. - */ - class LoadMotor: public IdentifiedObject - { - - public: - CIMPP::LoadAggregate* LoadAggregate; /* Aggregate load to which this aggregate motor (dynamic) load belongs. Default: 0 */ - CIMPP::Simple_Float pfrac; /* Fraction of constant-power load to be represented by this motor model (Pfrac) (>=0.0 and <=1.0). Typical Value = 0.3. Default: nullptr */ - CIMPP::Simple_Float lfac; /* Loading factor - ratio of initial P to motor MVA base (Lfac). Typical Value = 0.8. Default: nullptr */ - CIMPP::PU ls; /* Synchronous reactance (Ls). Typical Value = 3.2. Default: nullptr */ - CIMPP::PU lp; /* Transient reactance (Lp). Typical Value = 0.15. Default: nullptr */ - CIMPP::PU lpp; /* Subtransient reactance (Lpp). Typical Value = 0.15. Default: nullptr */ - CIMPP::PU ra; /* Stator resistance (Ra). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tpo; /* Transient rotor time constant (Tpo) (not=0). Typical Value = 1. Default: nullptr */ - CIMPP::Seconds tppo; /* Subtransient rotor time constant (Tppo). Typical Value = 0.02. Default: nullptr */ - CIMPP::Seconds h; /* Inertia constant (H) (not=0). Typical Value = 0.4. Default: nullptr */ - CIMPP::Simple_Float d; /* Damping factor (D). Unit = delta P/delta speed. Typical Value = 2. Default: nullptr */ - CIMPP::PU vt; /* Voltage threshold for tripping (Vt). Typical Value = 0.7. Default: nullptr */ - CIMPP::Seconds tv; /* Voltage trip pickup time (Tv). Typical Value = 0.1. Default: nullptr */ - CIMPP::Seconds tbkr; /* Circuit breaker operating time (Tbkr). Typical Value = 0.08. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - LoadMotor(); - virtual ~LoadMotor(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* LoadMotor_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/LoadResponseCharacteristic.cpp b/CGMES_2.4.13_18DEC2013/LoadResponseCharacteristic.cpp deleted file mode 100644 index 4c0c8b6e9..000000000 --- a/CGMES_2.4.13_18DEC2013/LoadResponseCharacteristic.cpp +++ /dev/null @@ -1,219 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "LoadResponseCharacteristic.hpp" - -#include "EnergyConsumer.hpp" -#include "Boolean.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" - -using namespace CIMPP; - -LoadResponseCharacteristic::LoadResponseCharacteristic() {}; - -LoadResponseCharacteristic::~LoadResponseCharacteristic() {}; - - -bool assign_LoadResponseCharacteristic_EnergyConsumer(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(LoadResponseCharacteristic* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->EnergyConsumer.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - - - - - - - - - - - - - -bool assign_LoadResponseCharacteristic_exponentModel(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LoadResponseCharacteristic* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->exponentModel; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_LoadResponseCharacteristic_pConstantCurrent(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LoadResponseCharacteristic* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pConstantCurrent; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_LoadResponseCharacteristic_pConstantImpedance(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LoadResponseCharacteristic* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pConstantImpedance; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_LoadResponseCharacteristic_pConstantPower(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LoadResponseCharacteristic* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pConstantPower; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_LoadResponseCharacteristic_pFrequencyExponent(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LoadResponseCharacteristic* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pFrequencyExponent; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_LoadResponseCharacteristic_pVoltageExponent(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LoadResponseCharacteristic* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pVoltageExponent; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_LoadResponseCharacteristic_qConstantCurrent(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LoadResponseCharacteristic* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->qConstantCurrent; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_LoadResponseCharacteristic_qConstantImpedance(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LoadResponseCharacteristic* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->qConstantImpedance; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_LoadResponseCharacteristic_qConstantPower(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LoadResponseCharacteristic* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->qConstantPower; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_LoadResponseCharacteristic_qFrequencyExponent(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LoadResponseCharacteristic* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->qFrequencyExponent; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_LoadResponseCharacteristic_qVoltageExponent(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LoadResponseCharacteristic* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->qVoltageExponent; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* LoadResponseCharacteristic_factory() { - return new LoadResponseCharacteristic; - } -} - -void LoadResponseCharacteristic::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:LoadResponseCharacteristic"), &LoadResponseCharacteristic_factory)); -} - -void LoadResponseCharacteristic::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:LoadResponseCharacteristic.exponentModel"), &assign_LoadResponseCharacteristic_exponentModel)); - assign_map.insert(std::make_pair(std::string("cim:LoadResponseCharacteristic.pConstantCurrent"), &assign_LoadResponseCharacteristic_pConstantCurrent)); - assign_map.insert(std::make_pair(std::string("cim:LoadResponseCharacteristic.pConstantImpedance"), &assign_LoadResponseCharacteristic_pConstantImpedance)); - assign_map.insert(std::make_pair(std::string("cim:LoadResponseCharacteristic.pConstantPower"), &assign_LoadResponseCharacteristic_pConstantPower)); - assign_map.insert(std::make_pair(std::string("cim:LoadResponseCharacteristic.pFrequencyExponent"), &assign_LoadResponseCharacteristic_pFrequencyExponent)); - assign_map.insert(std::make_pair(std::string("cim:LoadResponseCharacteristic.pVoltageExponent"), &assign_LoadResponseCharacteristic_pVoltageExponent)); - assign_map.insert(std::make_pair(std::string("cim:LoadResponseCharacteristic.qConstantCurrent"), &assign_LoadResponseCharacteristic_qConstantCurrent)); - assign_map.insert(std::make_pair(std::string("cim:LoadResponseCharacteristic.qConstantImpedance"), &assign_LoadResponseCharacteristic_qConstantImpedance)); - assign_map.insert(std::make_pair(std::string("cim:LoadResponseCharacteristic.qConstantPower"), &assign_LoadResponseCharacteristic_qConstantPower)); - assign_map.insert(std::make_pair(std::string("cim:LoadResponseCharacteristic.qFrequencyExponent"), &assign_LoadResponseCharacteristic_qFrequencyExponent)); - assign_map.insert(std::make_pair(std::string("cim:LoadResponseCharacteristic.qVoltageExponent"), &assign_LoadResponseCharacteristic_qVoltageExponent)); -} - -void LoadResponseCharacteristic::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:LoadResponseCharacteristic.EnergyConsumer"), &assign_LoadResponseCharacteristic_EnergyConsumer)); - } - -const char LoadResponseCharacteristic::debugName[] = "LoadResponseCharacteristic"; -const char* LoadResponseCharacteristic::debugString() -{ - return LoadResponseCharacteristic::debugName; -} - -const BaseClassDefiner LoadResponseCharacteristic::declare() -{ - return BaseClassDefiner(LoadResponseCharacteristic::addConstructToMap, LoadResponseCharacteristic::addPrimitiveAssignFnsToMap, LoadResponseCharacteristic::addClassAssignFnsToMap, LoadResponseCharacteristic::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/LoadResponseCharacteristic.hpp b/CGMES_2.4.13_18DEC2013/LoadResponseCharacteristic.hpp deleted file mode 100644 index 7cadd7573..000000000 --- a/CGMES_2.4.13_18DEC2013/LoadResponseCharacteristic.hpp +++ /dev/null @@ -1,53 +0,0 @@ -#ifndef LoadResponseCharacteristic_H -#define LoadResponseCharacteristic_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Boolean.hpp" -#include "Simple_Float.hpp" - -namespace CIMPP { - - -class EnergyConsumer; - /* - Models the characteristic response of the load demand due to changes in system conditions such as voltage and frequency. This is not related to demand response. If LoadResponseCharacteristic.exponentModel is True, the voltage exponents are specified and used as to calculate: Active power component = Pnominal * (Voltage/cim:BaseVoltage.nominalVoltage) ** cim:LoadResponseCharacteristic.pVoltageExponent Reactive power component = Qnominal * (Voltage/cim:BaseVoltage.nominalVoltage)** cim:LoadResponseCharacteristic.qVoltageExponent Where * means "multiply" and ** is "raised to power of". - */ - class LoadResponseCharacteristic: public IdentifiedObject - { - - public: - std::list EnergyConsumer; /* The set of loads that have the response characteristics. Default: 0 */ - CIMPP::Boolean exponentModel; /* Indicates the exponential voltage dependency model is to be used. If false, the coefficient model is to be used. The exponential voltage dependency model consist of the attributes - pVoltageExponent - qVoltageExponent. The coefficient model consist of the attributes - pConstantImpedance - pConstantCurrent - pConstantPower - qConstantImpedance - qConstantCurrent - qConstantPower. The sum of pConstantImpedance, pConstantCurrent and pConstantPower shall equal 1. The sum of qConstantImpedance, qConstantCurrent and qConstantPower shall equal 1. Default: false */ - CIMPP::Simple_Float pConstantCurrent; /* Portion of active power load modeled as constant current. Default: nullptr */ - CIMPP::Simple_Float pConstantImpedance; /* Portion of active power load modeled as constant impedance. Default: nullptr */ - CIMPP::Simple_Float pConstantPower; /* Portion of active power load modeled as constant power. Default: nullptr */ - CIMPP::Simple_Float pFrequencyExponent; /* Exponent of per unit frequency effecting active power. Default: nullptr */ - CIMPP::Simple_Float pVoltageExponent; /* Exponent of per unit voltage effecting real power. Default: nullptr */ - CIMPP::Simple_Float qConstantCurrent; /* Portion of reactive power load modeled as constant current. Default: nullptr */ - CIMPP::Simple_Float qConstantImpedance; /* Portion of reactive power load modeled as constant impedance. Default: nullptr */ - CIMPP::Simple_Float qConstantPower; /* Portion of reactive power load modeled as constant power. Default: nullptr */ - CIMPP::Simple_Float qFrequencyExponent; /* Exponent of per unit frequency effecting reactive power. Default: nullptr */ - CIMPP::Simple_Float qVoltageExponent; /* Exponent of per unit voltage effecting reactive power. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - LoadResponseCharacteristic(); - virtual ~LoadResponseCharacteristic(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* LoadResponseCharacteristic_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/LoadStatic.cpp b/CGMES_2.4.13_18DEC2013/LoadStatic.cpp deleted file mode 100644 index aab0f5ccd..000000000 --- a/CGMES_2.4.13_18DEC2013/LoadStatic.cpp +++ /dev/null @@ -1,309 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "LoadStatic.hpp" - -#include "LoadAggregate.hpp" -#include "StaticLoadModelKind.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" - -using namespace CIMPP; - -LoadStatic::LoadStatic(): LoadAggregate(nullptr) {}; - -LoadStatic::~LoadStatic() {}; - - -bool assign_LoadAggregate_LoadStatic(BaseClass*, BaseClass*); -bool assign_LoadStatic_LoadAggregate(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(LoadStatic* element = dynamic_cast(BaseClass_ptr1)) { - element->LoadAggregate = dynamic_cast(BaseClass_ptr2); - if(element->LoadAggregate != nullptr) - return assign_LoadAggregate_LoadStatic(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - - - - - - - - - - - - - - - - - - -bool assign_LoadStatic_staticLoadModelType(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LoadStatic* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->staticLoadModelType; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_LoadStatic_kp1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LoadStatic* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kp1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_LoadStatic_kp2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LoadStatic* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kp2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_LoadStatic_kp3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LoadStatic* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kp3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_LoadStatic_kp4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LoadStatic* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kp4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_LoadStatic_ep1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LoadStatic* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ep1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_LoadStatic_ep2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LoadStatic* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ep2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_LoadStatic_ep3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LoadStatic* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ep3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_LoadStatic_kpf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LoadStatic* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kpf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_LoadStatic_kq1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LoadStatic* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kq1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_LoadStatic_kq2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LoadStatic* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kq2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_LoadStatic_kq3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LoadStatic* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kq3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_LoadStatic_kq4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LoadStatic* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kq4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_LoadStatic_eq1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LoadStatic* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->eq1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_LoadStatic_eq2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LoadStatic* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->eq2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_LoadStatic_eq3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LoadStatic* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->eq3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_LoadStatic_kqf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LoadStatic* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kqf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* LoadStatic_factory() { - return new LoadStatic; - } -} - -void LoadStatic::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:LoadStatic"), &LoadStatic_factory)); -} - -void LoadStatic::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:LoadStatic.staticLoadModelType"), &assign_LoadStatic_staticLoadModelType)); - assign_map.insert(std::make_pair(std::string("cim:LoadStatic.kp1"), &assign_LoadStatic_kp1)); - assign_map.insert(std::make_pair(std::string("cim:LoadStatic.kp2"), &assign_LoadStatic_kp2)); - assign_map.insert(std::make_pair(std::string("cim:LoadStatic.kp3"), &assign_LoadStatic_kp3)); - assign_map.insert(std::make_pair(std::string("cim:LoadStatic.kp4"), &assign_LoadStatic_kp4)); - assign_map.insert(std::make_pair(std::string("cim:LoadStatic.ep1"), &assign_LoadStatic_ep1)); - assign_map.insert(std::make_pair(std::string("cim:LoadStatic.ep2"), &assign_LoadStatic_ep2)); - assign_map.insert(std::make_pair(std::string("cim:LoadStatic.ep3"), &assign_LoadStatic_ep3)); - assign_map.insert(std::make_pair(std::string("cim:LoadStatic.kpf"), &assign_LoadStatic_kpf)); - assign_map.insert(std::make_pair(std::string("cim:LoadStatic.kq1"), &assign_LoadStatic_kq1)); - assign_map.insert(std::make_pair(std::string("cim:LoadStatic.kq2"), &assign_LoadStatic_kq2)); - assign_map.insert(std::make_pair(std::string("cim:LoadStatic.kq3"), &assign_LoadStatic_kq3)); - assign_map.insert(std::make_pair(std::string("cim:LoadStatic.kq4"), &assign_LoadStatic_kq4)); - assign_map.insert(std::make_pair(std::string("cim:LoadStatic.eq1"), &assign_LoadStatic_eq1)); - assign_map.insert(std::make_pair(std::string("cim:LoadStatic.eq2"), &assign_LoadStatic_eq2)); - assign_map.insert(std::make_pair(std::string("cim:LoadStatic.eq3"), &assign_LoadStatic_eq3)); - assign_map.insert(std::make_pair(std::string("cim:LoadStatic.kqf"), &assign_LoadStatic_kqf)); -} - -void LoadStatic::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:LoadStatic.LoadAggregate"), &assign_LoadStatic_LoadAggregate)); - } - -const char LoadStatic::debugName[] = "LoadStatic"; -const char* LoadStatic::debugString() -{ - return LoadStatic::debugName; -} - -const BaseClassDefiner LoadStatic::declare() -{ - return BaseClassDefiner(LoadStatic::addConstructToMap, LoadStatic::addPrimitiveAssignFnsToMap, LoadStatic::addClassAssignFnsToMap, LoadStatic::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/LoadStatic.hpp b/CGMES_2.4.13_18DEC2013/LoadStatic.hpp deleted file mode 100644 index 6e23b6fbb..000000000 --- a/CGMES_2.4.13_18DEC2013/LoadStatic.hpp +++ /dev/null @@ -1,59 +0,0 @@ -#ifndef LoadStatic_H -#define LoadStatic_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "StaticLoadModelKind.hpp" -#include "Simple_Float.hpp" - -namespace CIMPP { - - -class LoadAggregate; - /* - General static load model representing the sensitivity of the real and reactive power consumed by the load to the amplitude and frequency of the bus voltage. - */ - class LoadStatic: public IdentifiedObject - { - - public: - CIMPP::LoadAggregate* LoadAggregate; /* Aggregate load to which this aggregate static load belongs. Default: 0 */ - CIMPP::StaticLoadModelKind staticLoadModelType; /* Type of static load model. Typical Value = constantZ. Default: 0 */ - CIMPP::Simple_Float kp1; /* First term voltage coefficient for active power (Kp1). Not used when .staticLoadModelType = constantZ. Default: nullptr */ - CIMPP::Simple_Float kp2; /* Second term voltage coefficient for active power (Kp2). Not used when .staticLoadModelType = constantZ. Default: nullptr */ - CIMPP::Simple_Float kp3; /* Third term voltage coefficient for active power (Kp3). Not used when .staticLoadModelType = constantZ. Default: nullptr */ - CIMPP::Simple_Float kp4; /* Frequency coefficient for active power (Kp4). Must be non-zero when .staticLoadModelType = ZIP2. Not used for all other values of .staticLoadModelType. Default: nullptr */ - CIMPP::Simple_Float ep1; /* First term voltage exponent for active power (Ep1). Used only when .staticLoadModelType = exponential. Default: nullptr */ - CIMPP::Simple_Float ep2; /* Second term voltage exponent for active power (Ep2). Used only when .staticLoadModelType = exponential. Default: nullptr */ - CIMPP::Simple_Float ep3; /* Third term voltage exponent for active power (Ep3). Used only when .staticLoadModelType = exponential. Default: nullptr */ - CIMPP::Simple_Float kpf; /* Frequency deviation coefficient for active power (Kpf). Not used when .staticLoadModelType = constantZ. Default: nullptr */ - CIMPP::Simple_Float kq1; /* First term voltage coefficient for reactive power (Kq1). Not used when .staticLoadModelType = constantZ. Default: nullptr */ - CIMPP::Simple_Float kq2; /* Second term voltage coefficient for reactive power (Kq2). Not used when .staticLoadModelType = constantZ. Default: nullptr */ - CIMPP::Simple_Float kq3; /* Third term voltage coefficient for reactive power (Kq3). Not used when .staticLoadModelType = constantZ. Default: nullptr */ - CIMPP::Simple_Float kq4; /* Frequency coefficient for reactive power (Kq4). Must be non-zero when .staticLoadModelType = ZIP2. Not used for all other values of .staticLoadModelType. Default: nullptr */ - CIMPP::Simple_Float eq1; /* First term voltage exponent for reactive power (Eq1). Used only when .staticLoadModelType = exponential. Default: nullptr */ - CIMPP::Simple_Float eq2; /* Second term voltage exponent for reactive power (Eq2). Used only when .staticLoadModelType = exponential. Default: nullptr */ - CIMPP::Simple_Float eq3; /* Third term voltage exponent for reactive power (Eq3). Used only when .staticLoadModelType = exponential. Default: nullptr */ - CIMPP::Simple_Float kqf; /* Frequency deviation coefficient for reactive power (Kqf). Not used when .staticLoadModelType = constantZ. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - LoadStatic(); - virtual ~LoadStatic(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* LoadStatic_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/LoadUserDefined.cpp b/CGMES_2.4.13_18DEC2013/LoadUserDefined.cpp deleted file mode 100644 index ba2ad4b40..000000000 --- a/CGMES_2.4.13_18DEC2013/LoadUserDefined.cpp +++ /dev/null @@ -1,69 +0,0 @@ -#include -#include "LoadDynamics.hpp" -#include "LoadUserDefined.hpp" - -#include "Boolean.hpp" -#include "ProprietaryParameterDynamics.hpp" - -using namespace CIMPP; - -LoadUserDefined::LoadUserDefined() {}; - -LoadUserDefined::~LoadUserDefined() {}; - - - -bool assign_LoadUserDefined_ProprietaryParameterDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(LoadUserDefined* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->ProprietaryParameterDynamics.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - -bool assign_LoadUserDefined_proprietary(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(LoadUserDefined* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->proprietary; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -namespace CIMPP { - BaseClass* LoadUserDefined_factory() { - return new LoadUserDefined; - } -} - -void LoadUserDefined::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:LoadUserDefined"), &LoadUserDefined_factory)); -} - -void LoadUserDefined::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:LoadUserDefined.proprietary"), &assign_LoadUserDefined_proprietary)); - } - -void LoadUserDefined::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:LoadUserDefined.ProprietaryParameterDynamics"), &assign_LoadUserDefined_ProprietaryParameterDynamics)); -} - -const char LoadUserDefined::debugName[] = "LoadUserDefined"; -const char* LoadUserDefined::debugString() -{ - return LoadUserDefined::debugName; -} - -const BaseClassDefiner LoadUserDefined::declare() -{ - return BaseClassDefiner(LoadUserDefined::addConstructToMap, LoadUserDefined::addPrimitiveAssignFnsToMap, LoadUserDefined::addClassAssignFnsToMap, LoadUserDefined::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/LoadUserDefined.hpp b/CGMES_2.4.13_18DEC2013/LoadUserDefined.hpp deleted file mode 100644 index 37d3c3a78..000000000 --- a/CGMES_2.4.13_18DEC2013/LoadUserDefined.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef LoadUserDefined_H -#define LoadUserDefined_H - -#include "LoadDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Boolean.hpp" - -namespace CIMPP { - - -class ProprietaryParameterDynamics; - /* - Load whose dynamic behaviour is described by a user-defined model. - */ - class LoadUserDefined: public LoadDynamics - { - - public: - CIMPP::Boolean proprietary; /* Behaviour is based on proprietary model as opposed to detailed model. true = user-defined model is proprietary with behaviour mutually understood by sending and receiving applications and parameters passed as general attributes false = user-defined model is explicitly defined in terms of control blocks and their input and output signals. Default: false */ - std::list ProprietaryParameterDynamics; /* Parameter of this proprietary user-defined model. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - LoadUserDefined(); - virtual ~LoadUserDefined(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* LoadUserDefined_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/Location.cpp b/CGMES_2.4.13_18DEC2013/Location.cpp deleted file mode 100644 index 51552b401..000000000 --- a/CGMES_2.4.13_18DEC2013/Location.cpp +++ /dev/null @@ -1,80 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "Location.hpp" - -#include "CoordinateSystem.hpp" -#include "PowerSystemResource.hpp" -#include "PositionPoint.hpp" - -using namespace CIMPP; - -Location::Location(): CoordinateSystem(nullptr), PowerSystemResources(nullptr) {}; - -Location::~Location() {}; - - -bool assign_CoordinateSystem_Location(BaseClass*, BaseClass*); -bool assign_Location_CoordinateSystem(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(Location* element = dynamic_cast(BaseClass_ptr1)) { - element->CoordinateSystem = dynamic_cast(BaseClass_ptr2); - if(element->CoordinateSystem != nullptr) - return assign_CoordinateSystem_Location(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_PowerSystemResource_Location(BaseClass*, BaseClass*); -bool assign_Location_PowerSystemResources(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(Location* element = dynamic_cast(BaseClass_ptr1)) { - element->PowerSystemResources = dynamic_cast(BaseClass_ptr2); - if(element->PowerSystemResources != nullptr) - return assign_PowerSystemResource_Location(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_Location_PositionPoints(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(Location* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->PositionPoints.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - - - - -namespace CIMPP { - BaseClass* Location_factory() { - return new Location; - } -} - -void Location::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:Location"), &Location_factory)); -} - -void Location::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void Location::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:Location.CoordinateSystem"), &assign_Location_CoordinateSystem)); - assign_map.insert(std::make_pair(std::string("cim:Location.PowerSystemResources"), &assign_Location_PowerSystemResources)); - assign_map.insert(std::make_pair(std::string("cim:Location.PositionPoints"), &assign_Location_PositionPoints)); -} - -const char Location::debugName[] = "Location"; -const char* Location::debugString() -{ - return Location::debugName; -} - -const BaseClassDefiner Location::declare() -{ - return BaseClassDefiner(Location::addConstructToMap, Location::addPrimitiveAssignFnsToMap, Location::addClassAssignFnsToMap, Location::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/Location.hpp b/CGMES_2.4.13_18DEC2013/Location.hpp deleted file mode 100644 index 4f1e5df0e..000000000 --- a/CGMES_2.4.13_18DEC2013/Location.hpp +++ /dev/null @@ -1,44 +0,0 @@ -#ifndef Location_H -#define Location_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class CoordinateSystem; -class PowerSystemResource; -class PositionPoint; - /* - The place, scene, or point of something where someone or something has been, is, and/or will be at a given moment in time. It can be defined with one or more postition points (coordinates) in a given coordinate system. - */ - class Location: public IdentifiedObject - { - - public: - CIMPP::CoordinateSystem* CoordinateSystem; /* Coordinate system used to describe position points of this location. Default: 0 */ - CIMPP::PowerSystemResource* PowerSystemResources; /* All power system resources at this location. Default: 0 */ - std::list PositionPoints; /* Sequence of position points describing this location, expressed in coordinate system `Location.CoordinateSystem`. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - Location(); - virtual ~Location(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* Location_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/Measurement.cpp b/CGMES_2.4.13_18DEC2013/Measurement.cpp deleted file mode 100644 index 5e00ecfee..000000000 --- a/CGMES_2.4.13_18DEC2013/Measurement.cpp +++ /dev/null @@ -1,126 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "Measurement.hpp" - -#include "String.hpp" -#include "PhaseCode.hpp" -#include "UnitSymbol.hpp" -#include "UnitMultiplier.hpp" -#include "ACDCTerminal.hpp" -#include "PowerSystemResource.hpp" - -using namespace CIMPP; - -Measurement::Measurement(): Terminal(nullptr), PowerSystemResource(nullptr) {}; - -Measurement::~Measurement() {}; - - - - - - -bool assign_ACDCTerminal_Measurements(BaseClass*, BaseClass*); -bool assign_Measurement_Terminal(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(Measurement* element = dynamic_cast(BaseClass_ptr1)) { - element->Terminal = dynamic_cast(BaseClass_ptr2); - if(element->Terminal != nullptr) - return assign_ACDCTerminal_Measurements(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_PowerSystemResource_Measurements(BaseClass*, BaseClass*); -bool assign_Measurement_PowerSystemResource(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(Measurement* element = dynamic_cast(BaseClass_ptr1)) { - element->PowerSystemResource = dynamic_cast(BaseClass_ptr2); - if(element->PowerSystemResource != nullptr) - return assign_PowerSystemResource_Measurements(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - -bool assign_Measurement_measurementType(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Measurement* element = dynamic_cast(BaseClass_ptr1)) { - element->measurementType = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_Measurement_phases(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Measurement* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->phases; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Measurement_unitSymbol(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Measurement* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->unitSymbol; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Measurement_unitMultiplier(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Measurement* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->unitMultiplier; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - - -namespace CIMPP { - BaseClass* Measurement_factory() { - return new Measurement; - } -} - -void Measurement::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:Measurement"), &Measurement_factory)); -} - -void Measurement::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:Measurement.measurementType"), &assign_Measurement_measurementType)); - assign_map.insert(std::make_pair(std::string("cim:Measurement.phases"), &assign_Measurement_phases)); - assign_map.insert(std::make_pair(std::string("cim:Measurement.unitSymbol"), &assign_Measurement_unitSymbol)); - assign_map.insert(std::make_pair(std::string("cim:Measurement.unitMultiplier"), &assign_Measurement_unitMultiplier)); - } - -void Measurement::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:Measurement.Terminal"), &assign_Measurement_Terminal)); - assign_map.insert(std::make_pair(std::string("cim:Measurement.PowerSystemResource"), &assign_Measurement_PowerSystemResource)); -} - -const char Measurement::debugName[] = "Measurement"; -const char* Measurement::debugString() -{ - return Measurement::debugName; -} - -const BaseClassDefiner Measurement::declare() -{ - return BaseClassDefiner(Measurement::addConstructToMap, Measurement::addPrimitiveAssignFnsToMap, Measurement::addClassAssignFnsToMap, Measurement::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/Measurement.hpp b/CGMES_2.4.13_18DEC2013/Measurement.hpp deleted file mode 100644 index 9e7f2f064..000000000 --- a/CGMES_2.4.13_18DEC2013/Measurement.hpp +++ /dev/null @@ -1,50 +0,0 @@ -#ifndef Measurement_H -#define Measurement_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "String.hpp" -#include "PhaseCode.hpp" -#include "UnitSymbol.hpp" -#include "UnitMultiplier.hpp" - -namespace CIMPP { - - -class ACDCTerminal; -class PowerSystemResource; - /* - A Measurement represents any measured, calculated or non-measured non-calculated quantity. Any piece of equipment may contain Measurements, e.g. a substation may have temperature measurements and door open indications, a transformer may have oil temperature and tank pressure measurements, a bay may contain a number of power flow measurements and a Breaker may contain a switch status measurement. The PSR - Measurement association is intended to capture this use of Measurement and is included in the naming hierarchy based on EquipmentContainer. The naming hierarchy typically has Measurements as leafs, e.g. Substation-VoltageLevel-Bay-Switch-Measurement. Some Measurements represent quantities related to a particular sensor location in the network, e.g. a voltage transformer (PT) at a busbar or a current transformer (CT) at the bar between a breaker and an isolator. The sensing position is not captured in the PSR - Measurement association. Instead it is captured by the Measurement - Terminal association that is used to define the sensing location in the network topology. The location is defined by the connection of the Terminal to ConductingEquipment. If both a Terminal and PSR are associated, and the PSR is of type ConductingEquipment, the associated Terminal should belong to that ConductingEquipment instance. When the sensor location is needed both Measurement-PSR and Measurement-Terminal are used. The Measurement-Terminal association is never used alone. - */ - class Measurement: public IdentifiedObject - { - - public: - CIMPP::String measurementType; /* Specifies the type of measurement. For example, this specifies if the measurement represents an indoor temperature, outdoor temperature, bus voltage, line flow, etc. Default: '' */ - CIMPP::PhaseCode phases; /* Indicates to which phases the measurement applies and avoids the need to use `measurementType` to also encode phase information (which would explode the types). The phase information in Measurement, along with `measurementType` and `phases` uniquely defines a Measurement for a device, based on normal network phase. Their meaning will not change when the computed energizing phasing is changed due to jumpers or other reasons. If the attribute is missing three phases (ABC) shall be assumed. Default: 0 */ - CIMPP::UnitSymbol unitSymbol; /* The unit of measure of the measured quantity. Default: 0 */ - CIMPP::UnitMultiplier unitMultiplier; /* The unit multiplier of the measured quantity. Default: 0 */ - CIMPP::ACDCTerminal* Terminal; /* One or more measurements may be associated with a terminal in the network. Default: 0 */ - CIMPP::PowerSystemResource* PowerSystemResource; /* The measurements associated with this power system resource. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - Measurement(); - virtual ~Measurement(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* Measurement_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/MeasurementValue.cpp b/CGMES_2.4.13_18DEC2013/MeasurementValue.cpp deleted file mode 100644 index 63d4b71c8..000000000 --- a/CGMES_2.4.13_18DEC2013/MeasurementValue.cpp +++ /dev/null @@ -1,93 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "MeasurementValue.hpp" - -#include "DateTime.hpp" -#include "PerCent.hpp" -#include "MeasurementValueQuality.hpp" -#include "MeasurementValueSource.hpp" - -using namespace CIMPP; - -MeasurementValue::MeasurementValue(): timeStamp(nullptr), MeasurementValueQuality(nullptr), MeasurementValueSource(nullptr) {}; - -MeasurementValue::~MeasurementValue() {}; - - -bool assign_MeasurementValue_timeStamp(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(MeasurementValue* element = dynamic_cast(BaseClass_ptr1)) { - element->timeStamp = dynamic_cast(BaseClass_ptr2); - if(element->timeStamp != nullptr) - return true; - } - return false; -} - - -bool assign_MeasurementValue_MeasurementValueQuality(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(MeasurementValue* element = dynamic_cast(BaseClass_ptr1)) { - element->MeasurementValueQuality = dynamic_cast(BaseClass_ptr2); - if(element->MeasurementValueQuality != nullptr) - return true; - } - return false; -} - -bool assign_MeasurementValueSource_MeasurementValues(BaseClass*, BaseClass*); -bool assign_MeasurementValue_MeasurementValueSource(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(MeasurementValue* element = dynamic_cast(BaseClass_ptr1)) { - element->MeasurementValueSource = dynamic_cast(BaseClass_ptr2); - if(element->MeasurementValueSource != nullptr) - return assign_MeasurementValueSource_MeasurementValues(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - -bool assign_MeasurementValue_sensorAccuracy(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(MeasurementValue* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->sensorAccuracy; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - - -namespace CIMPP { - BaseClass* MeasurementValue_factory() { - return new MeasurementValue; - } -} - -void MeasurementValue::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:MeasurementValue"), &MeasurementValue_factory)); -} - -void MeasurementValue::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:MeasurementValue.sensorAccuracy"), &assign_MeasurementValue_sensorAccuracy)); - } - -void MeasurementValue::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:MeasurementValue.timeStamp"), &assign_MeasurementValue_timeStamp)); - assign_map.insert(std::make_pair(std::string("cim:MeasurementValue.MeasurementValueQuality"), &assign_MeasurementValue_MeasurementValueQuality)); - assign_map.insert(std::make_pair(std::string("cim:MeasurementValue.MeasurementValueSource"), &assign_MeasurementValue_MeasurementValueSource)); -} - -const char MeasurementValue::debugName[] = "MeasurementValue"; -const char* MeasurementValue::debugString() -{ - return MeasurementValue::debugName; -} - -const BaseClassDefiner MeasurementValue::declare() -{ - return BaseClassDefiner(MeasurementValue::addConstructToMap, MeasurementValue::addPrimitiveAssignFnsToMap, MeasurementValue::addClassAssignFnsToMap, MeasurementValue::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/MeasurementValue.hpp b/CGMES_2.4.13_18DEC2013/MeasurementValue.hpp deleted file mode 100644 index fa2681e76..000000000 --- a/CGMES_2.4.13_18DEC2013/MeasurementValue.hpp +++ /dev/null @@ -1,46 +0,0 @@ -#ifndef MeasurementValue_H -#define MeasurementValue_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PerCent.hpp" - -namespace CIMPP { - - -class DateTime; -class MeasurementValueQuality; -class MeasurementValueSource; - /* - The current state for a measurement. A state value is an instance of a measurement from a specific source. Measurements can be associated with many state values, each representing a different source for the measurement. - */ - class MeasurementValue: public IdentifiedObject - { - - public: - CIMPP::DateTime* timeStamp; /* The time when the value was last updated Default: '' */ - CIMPP::PerCent sensorAccuracy; /* The limit, expressed as a percentage of the sensor maximum, that errors will not exceed when the sensor is used under reference conditions. Default: nullptr */ - CIMPP::MeasurementValueQuality* MeasurementValueQuality; /* A MeasurementValue has a MeasurementValueQuality associated with it. Default: 0 */ - CIMPP::MeasurementValueSource* MeasurementValueSource; /* The MeasurementValues updated by the source. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - MeasurementValue(); - virtual ~MeasurementValue(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* MeasurementValue_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/MeasurementValueQuality.cpp b/CGMES_2.4.13_18DEC2013/MeasurementValueQuality.cpp deleted file mode 100644 index 714a78c7f..000000000 --- a/CGMES_2.4.13_18DEC2013/MeasurementValueQuality.cpp +++ /dev/null @@ -1,54 +0,0 @@ -#include -#include "Quality61850.hpp" -#include "MeasurementValueQuality.hpp" - -#include "MeasurementValue.hpp" - -using namespace CIMPP; - -MeasurementValueQuality::MeasurementValueQuality(): MeasurementValue(nullptr) {}; - -MeasurementValueQuality::~MeasurementValueQuality() {}; - - -bool assign_MeasurementValue_MeasurementValueQuality(BaseClass*, BaseClass*); -bool assign_MeasurementValueQuality_MeasurementValue(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(MeasurementValueQuality* element = dynamic_cast(BaseClass_ptr1)) { - element->MeasurementValue = dynamic_cast(BaseClass_ptr2); - if(element->MeasurementValue != nullptr) - return assign_MeasurementValue_MeasurementValueQuality(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - -namespace CIMPP { - BaseClass* MeasurementValueQuality_factory() { - return new MeasurementValueQuality; - } -} - -void MeasurementValueQuality::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:MeasurementValueQuality"), &MeasurementValueQuality_factory)); -} - -void MeasurementValueQuality::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void MeasurementValueQuality::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:MeasurementValueQuality.MeasurementValue"), &assign_MeasurementValueQuality_MeasurementValue)); -} - -const char MeasurementValueQuality::debugName[] = "MeasurementValueQuality"; -const char* MeasurementValueQuality::debugString() -{ - return MeasurementValueQuality::debugName; -} - -const BaseClassDefiner MeasurementValueQuality::declare() -{ - return BaseClassDefiner(MeasurementValueQuality::addConstructToMap, MeasurementValueQuality::addPrimitiveAssignFnsToMap, MeasurementValueQuality::addClassAssignFnsToMap, MeasurementValueQuality::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/MeasurementValueQuality.hpp b/CGMES_2.4.13_18DEC2013/MeasurementValueQuality.hpp deleted file mode 100644 index ea2ba6681..000000000 --- a/CGMES_2.4.13_18DEC2013/MeasurementValueQuality.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef MeasurementValueQuality_H -#define MeasurementValueQuality_H - -#include "Quality61850.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class MeasurementValue; - /* - Measurement quality flags. Bits 0-10 are defined for substation automation in draft IEC 61850 part 7-3. Bits 11-15 are reserved for future expansion by that document. Bits 16-31 are reserved for EMS applications. - */ - class MeasurementValueQuality: public Quality61850 - { - - public: - CIMPP::MeasurementValue* MeasurementValue; /* A MeasurementValue has a MeasurementValueQuality associated with it. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - MeasurementValueQuality(); - virtual ~MeasurementValueQuality(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* MeasurementValueQuality_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/MeasurementValueSource.cpp b/CGMES_2.4.13_18DEC2013/MeasurementValueSource.cpp deleted file mode 100644 index e4b009712..000000000 --- a/CGMES_2.4.13_18DEC2013/MeasurementValueSource.cpp +++ /dev/null @@ -1,54 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "MeasurementValueSource.hpp" - -#include "MeasurementValue.hpp" - -using namespace CIMPP; - -MeasurementValueSource::MeasurementValueSource() {}; - -MeasurementValueSource::~MeasurementValueSource() {}; - - -bool assign_MeasurementValueSource_MeasurementValues(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(MeasurementValueSource* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->MeasurementValues.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - - -namespace CIMPP { - BaseClass* MeasurementValueSource_factory() { - return new MeasurementValueSource; - } -} - -void MeasurementValueSource::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:MeasurementValueSource"), &MeasurementValueSource_factory)); -} - -void MeasurementValueSource::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void MeasurementValueSource::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:MeasurementValueSource.MeasurementValues"), &assign_MeasurementValueSource_MeasurementValues)); -} - -const char MeasurementValueSource::debugName[] = "MeasurementValueSource"; -const char* MeasurementValueSource::debugString() -{ - return MeasurementValueSource::debugName; -} - -const BaseClassDefiner MeasurementValueSource::declare() -{ - return BaseClassDefiner(MeasurementValueSource::addConstructToMap, MeasurementValueSource::addPrimitiveAssignFnsToMap, MeasurementValueSource::addClassAssignFnsToMap, MeasurementValueSource::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/MeasurementValueSource.hpp b/CGMES_2.4.13_18DEC2013/MeasurementValueSource.hpp deleted file mode 100644 index 5f4e60a0c..000000000 --- a/CGMES_2.4.13_18DEC2013/MeasurementValueSource.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef MeasurementValueSource_H -#define MeasurementValueSource_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class MeasurementValue; - /* - MeasurementValueSource describes the alternative sources updating a MeasurementValue. User conventions for how to use the MeasurementValueSource attributes are described in the introduction to IEC 61970-301. - */ - class MeasurementValueSource: public IdentifiedObject - { - - public: - std::list MeasurementValues; /* A reference to the type of source that updates the MeasurementValue, e.g. SCADA, CCLink, manual, etc. User conventions for the names of sources are contained in the introduction to IEC 61970-301. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - MeasurementValueSource(); - virtual ~MeasurementValueSource(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* MeasurementValueSource_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/MechLoad1.cpp b/CGMES_2.4.13_18DEC2013/MechLoad1.cpp deleted file mode 100644 index 4c23dd381..000000000 --- a/CGMES_2.4.13_18DEC2013/MechLoad1.cpp +++ /dev/null @@ -1,101 +0,0 @@ -#include -#include "MechanicalLoadDynamics.hpp" -#include "MechLoad1.hpp" - -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" - -using namespace CIMPP; - -MechLoad1::MechLoad1() {}; - -MechLoad1::~MechLoad1() {}; - - - - - - - -bool assign_MechLoad1_a(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(MechLoad1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->a; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_MechLoad1_b(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(MechLoad1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->b; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_MechLoad1_d(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(MechLoad1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->d; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_MechLoad1_e(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(MechLoad1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->e; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* MechLoad1_factory() { - return new MechLoad1; - } -} - -void MechLoad1::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:MechLoad1"), &MechLoad1_factory)); -} - -void MechLoad1::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:MechLoad1.a"), &assign_MechLoad1_a)); - assign_map.insert(std::make_pair(std::string("cim:MechLoad1.b"), &assign_MechLoad1_b)); - assign_map.insert(std::make_pair(std::string("cim:MechLoad1.d"), &assign_MechLoad1_d)); - assign_map.insert(std::make_pair(std::string("cim:MechLoad1.e"), &assign_MechLoad1_e)); -} - -void MechLoad1::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char MechLoad1::debugName[] = "MechLoad1"; -const char* MechLoad1::debugString() -{ - return MechLoad1::debugName; -} - -const BaseClassDefiner MechLoad1::declare() -{ - return BaseClassDefiner(MechLoad1::addConstructToMap, MechLoad1::addPrimitiveAssignFnsToMap, MechLoad1::addClassAssignFnsToMap, MechLoad1::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/MechLoad1.hpp b/CGMES_2.4.13_18DEC2013/MechLoad1.hpp deleted file mode 100644 index 6d8c10200..000000000 --- a/CGMES_2.4.13_18DEC2013/MechLoad1.hpp +++ /dev/null @@ -1,43 +0,0 @@ -#ifndef MechLoad1_H -#define MechLoad1_H - -#include "MechanicalLoadDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Simple_Float.hpp" - -namespace CIMPP { - - - /* - Mechanical load model type 1. - */ - class MechLoad1: public MechanicalLoadDynamics - { - - public: - CIMPP::Simple_Float a; /* Speed squared coefficient (a). Default: nullptr */ - CIMPP::Simple_Float b; /* Speed coefficient (b). Default: nullptr */ - CIMPP::Simple_Float d; /* Speed to the exponent coefficient (d). Default: nullptr */ - CIMPP::Simple_Float e; /* Exponent (e). Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - MechLoad1(); - virtual ~MechLoad1(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* MechLoad1_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/MechanicalLoadDynamics.cpp b/CGMES_2.4.13_18DEC2013/MechanicalLoadDynamics.cpp deleted file mode 100644 index 740a75944..000000000 --- a/CGMES_2.4.13_18DEC2013/MechanicalLoadDynamics.cpp +++ /dev/null @@ -1,67 +0,0 @@ -#include -#include "DynamicsFunctionBlock.hpp" -#include "MechanicalLoadDynamics.hpp" - -#include "SynchronousMachineDynamics.hpp" -#include "AsynchronousMachineDynamics.hpp" - -using namespace CIMPP; - -MechanicalLoadDynamics::MechanicalLoadDynamics(): SynchronousMachineDynamics(nullptr), AsynchronousMachineDynamics(nullptr) {}; - -MechanicalLoadDynamics::~MechanicalLoadDynamics() {}; - - -bool assign_SynchronousMachineDynamics_MechanicalLoadDynamics(BaseClass*, BaseClass*); -bool assign_MechanicalLoadDynamics_SynchronousMachineDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(MechanicalLoadDynamics* element = dynamic_cast(BaseClass_ptr1)) { - element->SynchronousMachineDynamics = dynamic_cast(BaseClass_ptr2); - if(element->SynchronousMachineDynamics != nullptr) - return assign_SynchronousMachineDynamics_MechanicalLoadDynamics(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_AsynchronousMachineDynamics_MechanicalLoadDynamics(BaseClass*, BaseClass*); -bool assign_MechanicalLoadDynamics_AsynchronousMachineDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(MechanicalLoadDynamics* element = dynamic_cast(BaseClass_ptr1)) { - element->AsynchronousMachineDynamics = dynamic_cast(BaseClass_ptr2); - if(element->AsynchronousMachineDynamics != nullptr) - return assign_AsynchronousMachineDynamics_MechanicalLoadDynamics(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - - -namespace CIMPP { - BaseClass* MechanicalLoadDynamics_factory() { - return new MechanicalLoadDynamics; - } -} - -void MechanicalLoadDynamics::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:MechanicalLoadDynamics"), &MechanicalLoadDynamics_factory)); -} - -void MechanicalLoadDynamics::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void MechanicalLoadDynamics::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:MechanicalLoadDynamics.SynchronousMachineDynamics"), &assign_MechanicalLoadDynamics_SynchronousMachineDynamics)); - assign_map.insert(std::make_pair(std::string("cim:MechanicalLoadDynamics.AsynchronousMachineDynamics"), &assign_MechanicalLoadDynamics_AsynchronousMachineDynamics)); -} - -const char MechanicalLoadDynamics::debugName[] = "MechanicalLoadDynamics"; -const char* MechanicalLoadDynamics::debugString() -{ - return MechanicalLoadDynamics::debugName; -} - -const BaseClassDefiner MechanicalLoadDynamics::declare() -{ - return BaseClassDefiner(MechanicalLoadDynamics::addConstructToMap, MechanicalLoadDynamics::addPrimitiveAssignFnsToMap, MechanicalLoadDynamics::addClassAssignFnsToMap, MechanicalLoadDynamics::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/MechanicalLoadDynamics.hpp b/CGMES_2.4.13_18DEC2013/MechanicalLoadDynamics.hpp deleted file mode 100644 index c938e9201..000000000 --- a/CGMES_2.4.13_18DEC2013/MechanicalLoadDynamics.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef MechanicalLoadDynamics_H -#define MechanicalLoadDynamics_H - -#include "DynamicsFunctionBlock.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class SynchronousMachineDynamics; -class AsynchronousMachineDynamics; - /* - Mechanical load function block whose behavior is described by reference to a standard model - */ - class MechanicalLoadDynamics: public DynamicsFunctionBlock - { - - public: - CIMPP::SynchronousMachineDynamics* SynchronousMachineDynamics; /* Synchronous machine model with which this mechanical load model is associated. Default: 0 */ - CIMPP::AsynchronousMachineDynamics* AsynchronousMachineDynamics; /* Asynchronous machine model with which this mechanical load model is associated. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - MechanicalLoadDynamics(); - virtual ~MechanicalLoadDynamics(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* MechanicalLoadDynamics_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/MechanicalLoadUserDefined.cpp b/CGMES_2.4.13_18DEC2013/MechanicalLoadUserDefined.cpp deleted file mode 100644 index 9640a0bb3..000000000 --- a/CGMES_2.4.13_18DEC2013/MechanicalLoadUserDefined.cpp +++ /dev/null @@ -1,69 +0,0 @@ -#include -#include "MechanicalLoadDynamics.hpp" -#include "MechanicalLoadUserDefined.hpp" - -#include "Boolean.hpp" -#include "ProprietaryParameterDynamics.hpp" - -using namespace CIMPP; - -MechanicalLoadUserDefined::MechanicalLoadUserDefined() {}; - -MechanicalLoadUserDefined::~MechanicalLoadUserDefined() {}; - - - -bool assign_MechanicalLoadUserDefined_ProprietaryParameterDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(MechanicalLoadUserDefined* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->ProprietaryParameterDynamics.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - -bool assign_MechanicalLoadUserDefined_proprietary(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(MechanicalLoadUserDefined* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->proprietary; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -namespace CIMPP { - BaseClass* MechanicalLoadUserDefined_factory() { - return new MechanicalLoadUserDefined; - } -} - -void MechanicalLoadUserDefined::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:MechanicalLoadUserDefined"), &MechanicalLoadUserDefined_factory)); -} - -void MechanicalLoadUserDefined::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:MechanicalLoadUserDefined.proprietary"), &assign_MechanicalLoadUserDefined_proprietary)); - } - -void MechanicalLoadUserDefined::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:MechanicalLoadUserDefined.ProprietaryParameterDynamics"), &assign_MechanicalLoadUserDefined_ProprietaryParameterDynamics)); -} - -const char MechanicalLoadUserDefined::debugName[] = "MechanicalLoadUserDefined"; -const char* MechanicalLoadUserDefined::debugString() -{ - return MechanicalLoadUserDefined::debugName; -} - -const BaseClassDefiner MechanicalLoadUserDefined::declare() -{ - return BaseClassDefiner(MechanicalLoadUserDefined::addConstructToMap, MechanicalLoadUserDefined::addPrimitiveAssignFnsToMap, MechanicalLoadUserDefined::addClassAssignFnsToMap, MechanicalLoadUserDefined::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/MechanicalLoadUserDefined.hpp b/CGMES_2.4.13_18DEC2013/MechanicalLoadUserDefined.hpp deleted file mode 100644 index 6a21617a5..000000000 --- a/CGMES_2.4.13_18DEC2013/MechanicalLoadUserDefined.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef MechanicalLoadUserDefined_H -#define MechanicalLoadUserDefined_H - -#include "MechanicalLoadDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Boolean.hpp" - -namespace CIMPP { - - -class ProprietaryParameterDynamics; - /* - Mechanical load function block whose dynamic behaviour is described by - */ - class MechanicalLoadUserDefined: public MechanicalLoadDynamics - { - - public: - CIMPP::Boolean proprietary; /* Behaviour is based on proprietary model as opposed to detailed model. true = user-defined model is proprietary with behaviour mutually understood by sending and receiving applications and parameters passed as general attributes false = user-defined model is explicitly defined in terms of control blocks and their input and output signals. Default: false */ - std::list ProprietaryParameterDynamics; /* Parameter of this proprietary user-defined model. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - MechanicalLoadUserDefined(); - virtual ~MechanicalLoadUserDefined(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* MechanicalLoadUserDefined_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/Money.cpp b/CGMES_2.4.13_18DEC2013/Money.cpp deleted file mode 100644 index 5080a7dc9..000000000 --- a/CGMES_2.4.13_18DEC2013/Money.cpp +++ /dev/null @@ -1,70 +0,0 @@ -#include "Money.hpp" -#include "../src/CIMExceptions.hpp" - -using namespace CIMPP; - -Money::Money() {} - -Money::~Money(){} - -Money::Money(long double value) : value(value), initialized(true) {} - -void Money::addConstructToMap(std::unordered_map& factory_map) {} - -void Money::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) {} - -void Money::addClassAssignFnsToMap(std::unordered_map& assign_map) {} - -const char Money::debugName[] = "Money"; -const char* Money::debugString() { - return Money::debugName; -} - - -const BaseClassDefiner Money::declare() { - return BaseClassDefiner(Money::addConstructToMap, Money::addPrimitiveAssignFnsToMap, Money::addClassAssignFnsToMap, Money::debugName); -} - -namespace CIMPP { - Money& Money::operator=(long double &rop) { - value = rop; - initialized = true; - return *this; - } - - Money& Money::operator-=(const Money& rhs) { - value -= rhs.value; - return *this; - } - - Money& Money::operator*=(const Money& rhs) { - value *= rhs.value; - return *this; - } - - Money& Money::operator/=(const Money& rhs) { - value /= rhs.value; - return *this; - } - - Money& Money::operator+=(const Money& rhs) { - value += rhs.value; - return *this; - } - - Money::operator long double() { - if(!initialized) - { - throw new ReadingUninitializedField(); - } - return value; - } - - std::istream& operator>>(std::istream& lop, Money& rop) { - std::string tmp; - lop >> tmp; - rop.value = stold(tmp); - rop.initialized = true; - return lop; - } -} diff --git a/CGMES_2.4.13_18DEC2013/Money.hpp b/CGMES_2.4.13_18DEC2013/Money.hpp deleted file mode 100644 index 0de1c0f1d..000000000 --- a/CGMES_2.4.13_18DEC2013/Money.hpp +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef Money_H -#define Money_H - -#include -#include - -#include "BaseClass.hpp" - -namespace CIMPP -{ - class Money : public BaseClass - { - - public: - Money(); - virtual ~Money(); - Money(long double value); - static const BaseClassDefiner declare(); - Money& operator=(long double &rop); - Money& operator+=(const Money& rhs); - Money& operator-=(const Money& rhs); - Money& operator*=(const Money& rhs); - Money& operator/=(const Money& rhs); - friend std::istream& operator>>(std::istream& lop, Money& rop); - operator long double(); - - long double value = 0.0; - bool initialized = false; - - static const char debugName[]; - virtual const char* debugString(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - }; -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/MonthDay.cpp b/CGMES_2.4.13_18DEC2013/MonthDay.cpp deleted file mode 100644 index 7e9be476a..000000000 --- a/CGMES_2.4.13_18DEC2013/MonthDay.cpp +++ /dev/null @@ -1,41 +0,0 @@ -#include -#include "BaseClass.hpp" -#include "MonthDay.hpp" - - -using namespace CIMPP; - -MonthDay::MonthDay() {}; - -MonthDay::~MonthDay() {}; - - - -namespace CIMPP { - BaseClass* MonthDay_factory() { - return new MonthDay; - } -} - -void MonthDay::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:MonthDay"), &MonthDay_factory)); -} - -void MonthDay::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { -} - -void MonthDay::addClassAssignFnsToMap(std::unordered_map& assign_map) { -} - -const char MonthDay::debugName[] = "MonthDay"; -const char* MonthDay::debugString() -{ - return MonthDay::debugName; -} - -const BaseClassDefiner MonthDay::declare() -{ - return BaseClassDefiner(MonthDay::addConstructToMap, MonthDay::addPrimitiveAssignFnsToMap, MonthDay::addClassAssignFnsToMap, MonthDay::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/MonthDay.hpp b/CGMES_2.4.13_18DEC2013/MonthDay.hpp deleted file mode 100644 index 202cd4b4d..000000000 --- a/CGMES_2.4.13_18DEC2013/MonthDay.hpp +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef MonthDay_H -#define MonthDay_H - -#include "BaseClass.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - - /* - MonthDay format as "--mm-dd", which conforms with XSD data type gMonthDay. - */ - class MonthDay: public BaseClass - { - - public: - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - MonthDay(); - virtual ~MonthDay(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* MonthDay_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/MutualCoupling.cpp b/CGMES_2.4.13_18DEC2013/MutualCoupling.cpp deleted file mode 100644 index 32229dbc4..000000000 --- a/CGMES_2.4.13_18DEC2013/MutualCoupling.cpp +++ /dev/null @@ -1,187 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "MutualCoupling.hpp" - -#include "Terminal.hpp" -#include "Terminal.hpp" -#include "Susceptance.hpp" -#include "Length.hpp" -#include "Length.hpp" -#include "Length.hpp" -#include "Length.hpp" -#include "Conductance.hpp" -#include "Resistance.hpp" -#include "Reactance.hpp" - -using namespace CIMPP; - -MutualCoupling::MutualCoupling(): First_Terminal(nullptr), Second_Terminal(nullptr) {}; - -MutualCoupling::~MutualCoupling() {}; - - -bool assign_Terminal_HasFirstMutualCoupling(BaseClass*, BaseClass*); -bool assign_MutualCoupling_First_Terminal(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(MutualCoupling* element = dynamic_cast(BaseClass_ptr1)) { - element->First_Terminal = dynamic_cast(BaseClass_ptr2); - if(element->First_Terminal != nullptr) - return assign_Terminal_HasFirstMutualCoupling(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_Terminal_HasSecondMutualCoupling(BaseClass*, BaseClass*); -bool assign_MutualCoupling_Second_Terminal(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(MutualCoupling* element = dynamic_cast(BaseClass_ptr1)) { - element->Second_Terminal = dynamic_cast(BaseClass_ptr2); - if(element->Second_Terminal != nullptr) - return assign_Terminal_HasSecondMutualCoupling(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - - - - - - - - - - -bool assign_MutualCoupling_b0ch(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(MutualCoupling* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->b0ch; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_MutualCoupling_distance11(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(MutualCoupling* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->distance11; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_MutualCoupling_distance12(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(MutualCoupling* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->distance12; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_MutualCoupling_distance21(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(MutualCoupling* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->distance21; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_MutualCoupling_distance22(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(MutualCoupling* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->distance22; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_MutualCoupling_g0ch(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(MutualCoupling* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->g0ch; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_MutualCoupling_r0(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(MutualCoupling* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->r0; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_MutualCoupling_x0(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(MutualCoupling* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->x0; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* MutualCoupling_factory() { - return new MutualCoupling; - } -} - -void MutualCoupling::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:MutualCoupling"), &MutualCoupling_factory)); -} - -void MutualCoupling::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:MutualCoupling.b0ch"), &assign_MutualCoupling_b0ch)); - assign_map.insert(std::make_pair(std::string("cim:MutualCoupling.distance11"), &assign_MutualCoupling_distance11)); - assign_map.insert(std::make_pair(std::string("cim:MutualCoupling.distance12"), &assign_MutualCoupling_distance12)); - assign_map.insert(std::make_pair(std::string("cim:MutualCoupling.distance21"), &assign_MutualCoupling_distance21)); - assign_map.insert(std::make_pair(std::string("cim:MutualCoupling.distance22"), &assign_MutualCoupling_distance22)); - assign_map.insert(std::make_pair(std::string("cim:MutualCoupling.g0ch"), &assign_MutualCoupling_g0ch)); - assign_map.insert(std::make_pair(std::string("cim:MutualCoupling.r0"), &assign_MutualCoupling_r0)); - assign_map.insert(std::make_pair(std::string("cim:MutualCoupling.x0"), &assign_MutualCoupling_x0)); -} - -void MutualCoupling::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:MutualCoupling.First_Terminal"), &assign_MutualCoupling_First_Terminal)); - assign_map.insert(std::make_pair(std::string("cim:MutualCoupling.Second_Terminal"), &assign_MutualCoupling_Second_Terminal)); - } - -const char MutualCoupling::debugName[] = "MutualCoupling"; -const char* MutualCoupling::debugString() -{ - return MutualCoupling::debugName; -} - -const BaseClassDefiner MutualCoupling::declare() -{ - return BaseClassDefiner(MutualCoupling::addConstructToMap, MutualCoupling::addPrimitiveAssignFnsToMap, MutualCoupling::addClassAssignFnsToMap, MutualCoupling::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/MutualCoupling.hpp b/CGMES_2.4.13_18DEC2013/MutualCoupling.hpp deleted file mode 100644 index 5d7873232..000000000 --- a/CGMES_2.4.13_18DEC2013/MutualCoupling.hpp +++ /dev/null @@ -1,54 +0,0 @@ -#ifndef MutualCoupling_H -#define MutualCoupling_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Susceptance.hpp" -#include "Length.hpp" -#include "Conductance.hpp" -#include "Resistance.hpp" -#include "Reactance.hpp" - -namespace CIMPP { - - -class Terminal; - /* - This class represents the zero sequence line mutual coupling. - */ - class MutualCoupling: public IdentifiedObject - { - - public: - CIMPP::Terminal* First_Terminal; /* The starting terminal for the calculation of distances along the first branch of the mutual coupling. Normally MutualCoupling would only be used for terminals of AC line segments. The first and second terminals of a mutual coupling should point to different AC line segments. Default: 0 */ - CIMPP::Terminal* Second_Terminal; /* The starting terminal for the calculation of distances along the second branch of the mutual coupling. Default: 0 */ - CIMPP::Susceptance b0ch; /* Zero sequence mutual coupling shunt (charging) susceptance, uniformly distributed, of the entire line section. Default: nullptr */ - CIMPP::Length distance11; /* Distance to the start of the coupled region from the first line`s terminal having sequence number equal to 1. Default: nullptr */ - CIMPP::Length distance12; /* Distance to the end of the coupled region from the first line`s terminal with sequence number equal to 1. Default: nullptr */ - CIMPP::Length distance21; /* Distance to the start of coupled region from the second line`s terminal with sequence number equal to 1. Default: nullptr */ - CIMPP::Length distance22; /* Distance to the end of coupled region from the second line`s terminal with sequence number equal to 1. Default: nullptr */ - CIMPP::Conductance g0ch; /* Zero sequence mutual coupling shunt (charging) conductance, uniformly distributed, of the entire line section. Default: nullptr */ - CIMPP::Resistance r0; /* Zero sequence branch-to-branch mutual impedance coupling, resistance. Default: nullptr */ - CIMPP::Reactance x0; /* Zero sequence branch-to-branch mutual impedance coupling, reactance. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - MutualCoupling(); - virtual ~MutualCoupling(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* MutualCoupling_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/NonConformLoad.cpp b/CGMES_2.4.13_18DEC2013/NonConformLoad.cpp deleted file mode 100644 index fa7e294e9..000000000 --- a/CGMES_2.4.13_18DEC2013/NonConformLoad.cpp +++ /dev/null @@ -1,54 +0,0 @@ -#include -#include "EnergyConsumer.hpp" -#include "NonConformLoad.hpp" - -#include "NonConformLoadGroup.hpp" - -using namespace CIMPP; - -NonConformLoad::NonConformLoad(): LoadGroup(nullptr) {}; - -NonConformLoad::~NonConformLoad() {}; - - -bool assign_NonConformLoadGroup_EnergyConsumers(BaseClass*, BaseClass*); -bool assign_NonConformLoad_LoadGroup(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(NonConformLoad* element = dynamic_cast(BaseClass_ptr1)) { - element->LoadGroup = dynamic_cast(BaseClass_ptr2); - if(element->LoadGroup != nullptr) - return assign_NonConformLoadGroup_EnergyConsumers(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - -namespace CIMPP { - BaseClass* NonConformLoad_factory() { - return new NonConformLoad; - } -} - -void NonConformLoad::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:NonConformLoad"), &NonConformLoad_factory)); -} - -void NonConformLoad::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void NonConformLoad::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:NonConformLoad.LoadGroup"), &assign_NonConformLoad_LoadGroup)); -} - -const char NonConformLoad::debugName[] = "NonConformLoad"; -const char* NonConformLoad::debugString() -{ - return NonConformLoad::debugName; -} - -const BaseClassDefiner NonConformLoad::declare() -{ - return BaseClassDefiner(NonConformLoad::addConstructToMap, NonConformLoad::addPrimitiveAssignFnsToMap, NonConformLoad::addClassAssignFnsToMap, NonConformLoad::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/NonConformLoad.hpp b/CGMES_2.4.13_18DEC2013/NonConformLoad.hpp deleted file mode 100644 index e53291a4f..000000000 --- a/CGMES_2.4.13_18DEC2013/NonConformLoad.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef NonConformLoad_H -#define NonConformLoad_H - -#include "EnergyConsumer.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class NonConformLoadGroup; - /* - NonConformLoad represent loads that do not follow a daily load change pattern and changes are not correlated with the daily load change pattern. - */ - class NonConformLoad: public EnergyConsumer - { - - public: - CIMPP::NonConformLoadGroup* LoadGroup; /* Conform loads assigned to this ConformLoadGroup. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - NonConformLoad(); - virtual ~NonConformLoad(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* NonConformLoad_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/NonConformLoadGroup.cpp b/CGMES_2.4.13_18DEC2013/NonConformLoadGroup.cpp deleted file mode 100644 index 8897ca92e..000000000 --- a/CGMES_2.4.13_18DEC2013/NonConformLoadGroup.cpp +++ /dev/null @@ -1,67 +0,0 @@ -#include -#include "LoadGroup.hpp" -#include "NonConformLoadGroup.hpp" - -#include "NonConformLoad.hpp" -#include "NonConformLoadSchedule.hpp" - -using namespace CIMPP; - -NonConformLoadGroup::NonConformLoadGroup() {}; - -NonConformLoadGroup::~NonConformLoadGroup() {}; - - -bool assign_NonConformLoadGroup_EnergyConsumers(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(NonConformLoadGroup* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->EnergyConsumers.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_NonConformLoadGroup_NonConformLoadSchedules(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(NonConformLoadGroup* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->NonConformLoadSchedules.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - - - -namespace CIMPP { - BaseClass* NonConformLoadGroup_factory() { - return new NonConformLoadGroup; - } -} - -void NonConformLoadGroup::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:NonConformLoadGroup"), &NonConformLoadGroup_factory)); -} - -void NonConformLoadGroup::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void NonConformLoadGroup::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:NonConformLoadGroup.EnergyConsumers"), &assign_NonConformLoadGroup_EnergyConsumers)); - assign_map.insert(std::make_pair(std::string("cim:NonConformLoadGroup.NonConformLoadSchedules"), &assign_NonConformLoadGroup_NonConformLoadSchedules)); -} - -const char NonConformLoadGroup::debugName[] = "NonConformLoadGroup"; -const char* NonConformLoadGroup::debugString() -{ - return NonConformLoadGroup::debugName; -} - -const BaseClassDefiner NonConformLoadGroup::declare() -{ - return BaseClassDefiner(NonConformLoadGroup::addConstructToMap, NonConformLoadGroup::addPrimitiveAssignFnsToMap, NonConformLoadGroup::addClassAssignFnsToMap, NonConformLoadGroup::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/NonConformLoadGroup.hpp b/CGMES_2.4.13_18DEC2013/NonConformLoadGroup.hpp deleted file mode 100644 index 1685c6f84..000000000 --- a/CGMES_2.4.13_18DEC2013/NonConformLoadGroup.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef NonConformLoadGroup_H -#define NonConformLoadGroup_H - -#include "LoadGroup.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class NonConformLoad; -class NonConformLoadSchedule; - /* - Loads that do not follow a daily and seasonal load variation pattern. - */ - class NonConformLoadGroup: public LoadGroup - { - - public: - std::list EnergyConsumers; /* Group of this ConformLoad. Default: 0 */ - std::list NonConformLoadSchedules; /* The NonConformLoadSchedules in the NonConformLoadGroup. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - NonConformLoadGroup(); - virtual ~NonConformLoadGroup(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* NonConformLoadGroup_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/NonConformLoadSchedule.cpp b/CGMES_2.4.13_18DEC2013/NonConformLoadSchedule.cpp deleted file mode 100644 index bc30e5194..000000000 --- a/CGMES_2.4.13_18DEC2013/NonConformLoadSchedule.cpp +++ /dev/null @@ -1,54 +0,0 @@ -#include -#include "SeasonDayTypeSchedule.hpp" -#include "NonConformLoadSchedule.hpp" - -#include "NonConformLoadGroup.hpp" - -using namespace CIMPP; - -NonConformLoadSchedule::NonConformLoadSchedule(): NonConformLoadGroup(nullptr) {}; - -NonConformLoadSchedule::~NonConformLoadSchedule() {}; - - -bool assign_NonConformLoadGroup_NonConformLoadSchedules(BaseClass*, BaseClass*); -bool assign_NonConformLoadSchedule_NonConformLoadGroup(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(NonConformLoadSchedule* element = dynamic_cast(BaseClass_ptr1)) { - element->NonConformLoadGroup = dynamic_cast(BaseClass_ptr2); - if(element->NonConformLoadGroup != nullptr) - return assign_NonConformLoadGroup_NonConformLoadSchedules(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - -namespace CIMPP { - BaseClass* NonConformLoadSchedule_factory() { - return new NonConformLoadSchedule; - } -} - -void NonConformLoadSchedule::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:NonConformLoadSchedule"), &NonConformLoadSchedule_factory)); -} - -void NonConformLoadSchedule::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void NonConformLoadSchedule::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:NonConformLoadSchedule.NonConformLoadGroup"), &assign_NonConformLoadSchedule_NonConformLoadGroup)); -} - -const char NonConformLoadSchedule::debugName[] = "NonConformLoadSchedule"; -const char* NonConformLoadSchedule::debugString() -{ - return NonConformLoadSchedule::debugName; -} - -const BaseClassDefiner NonConformLoadSchedule::declare() -{ - return BaseClassDefiner(NonConformLoadSchedule::addConstructToMap, NonConformLoadSchedule::addPrimitiveAssignFnsToMap, NonConformLoadSchedule::addClassAssignFnsToMap, NonConformLoadSchedule::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/NonConformLoadSchedule.hpp b/CGMES_2.4.13_18DEC2013/NonConformLoadSchedule.hpp deleted file mode 100644 index 7bdfe2c9b..000000000 --- a/CGMES_2.4.13_18DEC2013/NonConformLoadSchedule.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef NonConformLoadSchedule_H -#define NonConformLoadSchedule_H - -#include "SeasonDayTypeSchedule.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class NonConformLoadGroup; - /* - An active power (Y1-axis) and reactive power (Y2-axis) schedule (curves) versus time (X-axis) for non-conforming loads, e.g., large industrial load or power station service (where modeled). - */ - class NonConformLoadSchedule: public SeasonDayTypeSchedule - { - - public: - CIMPP::NonConformLoadGroup* NonConformLoadGroup; /* The NonConformLoadGroup where the NonConformLoadSchedule belongs. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - NonConformLoadSchedule(); - virtual ~NonConformLoadSchedule(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* NonConformLoadSchedule_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/NonlinearShuntCompensator.cpp b/CGMES_2.4.13_18DEC2013/NonlinearShuntCompensator.cpp deleted file mode 100644 index a8af57fd0..000000000 --- a/CGMES_2.4.13_18DEC2013/NonlinearShuntCompensator.cpp +++ /dev/null @@ -1,54 +0,0 @@ -#include -#include "ShuntCompensator.hpp" -#include "NonlinearShuntCompensator.hpp" - -#include "NonlinearShuntCompensatorPoint.hpp" - -using namespace CIMPP; - -NonlinearShuntCompensator::NonlinearShuntCompensator() {}; - -NonlinearShuntCompensator::~NonlinearShuntCompensator() {}; - - -bool assign_NonlinearShuntCompensator_NonlinearShuntCompensatorPoints(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(NonlinearShuntCompensator* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->NonlinearShuntCompensatorPoints.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - - -namespace CIMPP { - BaseClass* NonlinearShuntCompensator_factory() { - return new NonlinearShuntCompensator; - } -} - -void NonlinearShuntCompensator::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:NonlinearShuntCompensator"), &NonlinearShuntCompensator_factory)); -} - -void NonlinearShuntCompensator::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void NonlinearShuntCompensator::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:NonlinearShuntCompensator.NonlinearShuntCompensatorPoints"), &assign_NonlinearShuntCompensator_NonlinearShuntCompensatorPoints)); -} - -const char NonlinearShuntCompensator::debugName[] = "NonlinearShuntCompensator"; -const char* NonlinearShuntCompensator::debugString() -{ - return NonlinearShuntCompensator::debugName; -} - -const BaseClassDefiner NonlinearShuntCompensator::declare() -{ - return BaseClassDefiner(NonlinearShuntCompensator::addConstructToMap, NonlinearShuntCompensator::addPrimitiveAssignFnsToMap, NonlinearShuntCompensator::addClassAssignFnsToMap, NonlinearShuntCompensator::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/NonlinearShuntCompensator.hpp b/CGMES_2.4.13_18DEC2013/NonlinearShuntCompensator.hpp deleted file mode 100644 index f771f72cf..000000000 --- a/CGMES_2.4.13_18DEC2013/NonlinearShuntCompensator.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef NonlinearShuntCompensator_H -#define NonlinearShuntCompensator_H - -#include "ShuntCompensator.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class NonlinearShuntCompensatorPoint; - /* - A non linear shunt compensator has bank or section admittance values that differs. - */ - class NonlinearShuntCompensator: public ShuntCompensator - { - - public: - std::list NonlinearShuntCompensatorPoints; /* All points of the non-linear shunt compensator. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - NonlinearShuntCompensator(); - virtual ~NonlinearShuntCompensator(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* NonlinearShuntCompensator_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/NonlinearShuntCompensatorPoint.cpp b/CGMES_2.4.13_18DEC2013/NonlinearShuntCompensatorPoint.cpp deleted file mode 100644 index cad6b520c..000000000 --- a/CGMES_2.4.13_18DEC2013/NonlinearShuntCompensatorPoint.cpp +++ /dev/null @@ -1,129 +0,0 @@ -#include -#include "BaseClass.hpp" -#include "NonlinearShuntCompensatorPoint.hpp" - -#include "NonlinearShuntCompensator.hpp" -#include "Susceptance.hpp" -#include "Susceptance.hpp" -#include "Conductance.hpp" -#include "Conductance.hpp" -#include "Integer.hpp" - -using namespace CIMPP; - -NonlinearShuntCompensatorPoint::NonlinearShuntCompensatorPoint(): NonlinearShuntCompensator(nullptr) {}; - -NonlinearShuntCompensatorPoint::~NonlinearShuntCompensatorPoint() {}; - - -bool assign_NonlinearShuntCompensator_NonlinearShuntCompensatorPoints(BaseClass*, BaseClass*); -bool assign_NonlinearShuntCompensatorPoint_NonlinearShuntCompensator(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(NonlinearShuntCompensatorPoint* element = dynamic_cast(BaseClass_ptr1)) { - element->NonlinearShuntCompensator = dynamic_cast(BaseClass_ptr2); - if(element->NonlinearShuntCompensator != nullptr) - return assign_NonlinearShuntCompensator_NonlinearShuntCompensatorPoints(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - - - - - - -bool assign_NonlinearShuntCompensatorPoint_b(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(NonlinearShuntCompensatorPoint* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->b; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_NonlinearShuntCompensatorPoint_b0(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(NonlinearShuntCompensatorPoint* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->b0; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_NonlinearShuntCompensatorPoint_g(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(NonlinearShuntCompensatorPoint* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->g; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_NonlinearShuntCompensatorPoint_g0(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(NonlinearShuntCompensatorPoint* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->g0; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_NonlinearShuntCompensatorPoint_sectionNumber(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(NonlinearShuntCompensatorPoint* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->sectionNumber; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* NonlinearShuntCompensatorPoint_factory() { - return new NonlinearShuntCompensatorPoint; - } -} - -void NonlinearShuntCompensatorPoint::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:NonlinearShuntCompensatorPoint"), &NonlinearShuntCompensatorPoint_factory)); -} - -void NonlinearShuntCompensatorPoint::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:NonlinearShuntCompensatorPoint.b"), &assign_NonlinearShuntCompensatorPoint_b)); - assign_map.insert(std::make_pair(std::string("cim:NonlinearShuntCompensatorPoint.b0"), &assign_NonlinearShuntCompensatorPoint_b0)); - assign_map.insert(std::make_pair(std::string("cim:NonlinearShuntCompensatorPoint.g"), &assign_NonlinearShuntCompensatorPoint_g)); - assign_map.insert(std::make_pair(std::string("cim:NonlinearShuntCompensatorPoint.g0"), &assign_NonlinearShuntCompensatorPoint_g0)); - assign_map.insert(std::make_pair(std::string("cim:NonlinearShuntCompensatorPoint.sectionNumber"), &assign_NonlinearShuntCompensatorPoint_sectionNumber)); -} - -void NonlinearShuntCompensatorPoint::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:NonlinearShuntCompensatorPoint.NonlinearShuntCompensator"), &assign_NonlinearShuntCompensatorPoint_NonlinearShuntCompensator)); - } - -const char NonlinearShuntCompensatorPoint::debugName[] = "NonlinearShuntCompensatorPoint"; -const char* NonlinearShuntCompensatorPoint::debugString() -{ - return NonlinearShuntCompensatorPoint::debugName; -} - -const BaseClassDefiner NonlinearShuntCompensatorPoint::declare() -{ - return BaseClassDefiner(NonlinearShuntCompensatorPoint::addConstructToMap, NonlinearShuntCompensatorPoint::addPrimitiveAssignFnsToMap, NonlinearShuntCompensatorPoint::addClassAssignFnsToMap, NonlinearShuntCompensatorPoint::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/NonlinearShuntCompensatorPoint.hpp b/CGMES_2.4.13_18DEC2013/NonlinearShuntCompensatorPoint.hpp deleted file mode 100644 index 63371bb7b..000000000 --- a/CGMES_2.4.13_18DEC2013/NonlinearShuntCompensatorPoint.hpp +++ /dev/null @@ -1,48 +0,0 @@ -#ifndef NonlinearShuntCompensatorPoint_H -#define NonlinearShuntCompensatorPoint_H - -#include "BaseClass.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Susceptance.hpp" -#include "Conductance.hpp" -#include "Integer.hpp" - -namespace CIMPP { - - -class NonlinearShuntCompensator; - /* - A non linear shunt compensator bank or section admittance value. - */ - class NonlinearShuntCompensatorPoint: public BaseClass - { - - public: - CIMPP::NonlinearShuntCompensator* NonlinearShuntCompensator; /* Non-linear shunt compensator owning this point. Default: 0 */ - CIMPP::Susceptance b; /* Positive sequence shunt (charging) susceptance per section Default: nullptr */ - CIMPP::Susceptance b0; /* Zero sequence shunt (charging) susceptance per section Default: nullptr */ - CIMPP::Conductance g; /* Positive sequence shunt (charging) conductance per section Default: nullptr */ - CIMPP::Conductance g0; /* Zero sequence shunt (charging) conductance per section Default: nullptr */ - CIMPP::Integer sectionNumber; /* The number of the section. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - NonlinearShuntCompensatorPoint(); - virtual ~NonlinearShuntCompensatorPoint(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* NonlinearShuntCompensatorPoint_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/NuclearGeneratingUnit.cpp b/CGMES_2.4.13_18DEC2013/NuclearGeneratingUnit.cpp deleted file mode 100644 index 63a9c7e15..000000000 --- a/CGMES_2.4.13_18DEC2013/NuclearGeneratingUnit.cpp +++ /dev/null @@ -1,41 +0,0 @@ -#include -#include "GeneratingUnit.hpp" -#include "NuclearGeneratingUnit.hpp" - - -using namespace CIMPP; - -NuclearGeneratingUnit::NuclearGeneratingUnit() {}; - -NuclearGeneratingUnit::~NuclearGeneratingUnit() {}; - - - -namespace CIMPP { - BaseClass* NuclearGeneratingUnit_factory() { - return new NuclearGeneratingUnit; - } -} - -void NuclearGeneratingUnit::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:NuclearGeneratingUnit"), &NuclearGeneratingUnit_factory)); -} - -void NuclearGeneratingUnit::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { -} - -void NuclearGeneratingUnit::addClassAssignFnsToMap(std::unordered_map& assign_map) { -} - -const char NuclearGeneratingUnit::debugName[] = "NuclearGeneratingUnit"; -const char* NuclearGeneratingUnit::debugString() -{ - return NuclearGeneratingUnit::debugName; -} - -const BaseClassDefiner NuclearGeneratingUnit::declare() -{ - return BaseClassDefiner(NuclearGeneratingUnit::addConstructToMap, NuclearGeneratingUnit::addPrimitiveAssignFnsToMap, NuclearGeneratingUnit::addClassAssignFnsToMap, NuclearGeneratingUnit::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/NuclearGeneratingUnit.hpp b/CGMES_2.4.13_18DEC2013/NuclearGeneratingUnit.hpp deleted file mode 100644 index eb359a1e0..000000000 --- a/CGMES_2.4.13_18DEC2013/NuclearGeneratingUnit.hpp +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef NuclearGeneratingUnit_H -#define NuclearGeneratingUnit_H - -#include "GeneratingUnit.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - - /* - A nuclear generating unit. - */ - class NuclearGeneratingUnit: public GeneratingUnit - { - - public: - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - NuclearGeneratingUnit(); - virtual ~NuclearGeneratingUnit(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* NuclearGeneratingUnit_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/OperationalLimit.cpp b/CGMES_2.4.13_18DEC2013/OperationalLimit.cpp deleted file mode 100644 index cf3a675ea..000000000 --- a/CGMES_2.4.13_18DEC2013/OperationalLimit.cpp +++ /dev/null @@ -1,67 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "OperationalLimit.hpp" - -#include "OperationalLimitSet.hpp" -#include "OperationalLimitType.hpp" - -using namespace CIMPP; - -OperationalLimit::OperationalLimit(): OperationalLimitSet(nullptr), OperationalLimitType(nullptr) {}; - -OperationalLimit::~OperationalLimit() {}; - - -bool assign_OperationalLimitSet_OperationalLimitValue(BaseClass*, BaseClass*); -bool assign_OperationalLimit_OperationalLimitSet(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(OperationalLimit* element = dynamic_cast(BaseClass_ptr1)) { - element->OperationalLimitSet = dynamic_cast(BaseClass_ptr2); - if(element->OperationalLimitSet != nullptr) - return assign_OperationalLimitSet_OperationalLimitValue(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_OperationalLimitType_OperationalLimit(BaseClass*, BaseClass*); -bool assign_OperationalLimit_OperationalLimitType(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(OperationalLimit* element = dynamic_cast(BaseClass_ptr1)) { - element->OperationalLimitType = dynamic_cast(BaseClass_ptr2); - if(element->OperationalLimitType != nullptr) - return assign_OperationalLimitType_OperationalLimit(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - - -namespace CIMPP { - BaseClass* OperationalLimit_factory() { - return new OperationalLimit; - } -} - -void OperationalLimit::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:OperationalLimit"), &OperationalLimit_factory)); -} - -void OperationalLimit::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void OperationalLimit::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:OperationalLimit.OperationalLimitSet"), &assign_OperationalLimit_OperationalLimitSet)); - assign_map.insert(std::make_pair(std::string("cim:OperationalLimit.OperationalLimitType"), &assign_OperationalLimit_OperationalLimitType)); -} - -const char OperationalLimit::debugName[] = "OperationalLimit"; -const char* OperationalLimit::debugString() -{ - return OperationalLimit::debugName; -} - -const BaseClassDefiner OperationalLimit::declare() -{ - return BaseClassDefiner(OperationalLimit::addConstructToMap, OperationalLimit::addPrimitiveAssignFnsToMap, OperationalLimit::addClassAssignFnsToMap, OperationalLimit::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/OperationalLimit.hpp b/CGMES_2.4.13_18DEC2013/OperationalLimit.hpp deleted file mode 100644 index 9db66a379..000000000 --- a/CGMES_2.4.13_18DEC2013/OperationalLimit.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef OperationalLimit_H -#define OperationalLimit_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class OperationalLimitSet; -class OperationalLimitType; - /* - A value associated with a specific kind of limit. The sub class value attribute shall be positive. The sub class value attribute is inversely proportional to OperationalLimitType.acceptableDuration (acceptableDuration for short). A pair of value_x and acceptableDuration_x are related to each other as follows: if value_1 > value_2 > value_3 >... then acceptableDuration_1 < acceptableDuration_2 < acceptableDuration_3 < ... A value_x with direction="high" shall be greater than a value_y with direction="low". - */ - class OperationalLimit: public IdentifiedObject - { - - public: - CIMPP::OperationalLimitSet* OperationalLimitSet; /* Values of equipment limits. Default: 0 */ - CIMPP::OperationalLimitType* OperationalLimitType; /* The limit type associated with this limit. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - OperationalLimit(); - virtual ~OperationalLimit(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* OperationalLimit_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/OperationalLimitDirectionKind.cpp b/CGMES_2.4.13_18DEC2013/OperationalLimitDirectionKind.cpp deleted file mode 100644 index 9cb5f80b9..000000000 --- a/CGMES_2.4.13_18DEC2013/OperationalLimitDirectionKind.cpp +++ /dev/null @@ -1,42 +0,0 @@ -#include -#include -#include "OperationalLimitDirectionKind.hpp" - -using namespace CIMPP; - -namespace CIMPP { - std::istream& operator>>(std::istream& lop, CIMPP::OperationalLimitDirectionKind& rop) - { - std::string EnumSymbol; - lop >> EnumSymbol; - - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "OperationalLimitDirectionKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "high") - { - rop = OperationalLimitDirectionKind::high; - return lop; - } - if(EnumSymbol == "low") - { - rop = OperationalLimitDirectionKind::low; - return lop; - } - if(EnumSymbol == "absoluteValue") - { - rop = OperationalLimitDirectionKind::absoluteValue; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; - } -} - diff --git a/CGMES_2.4.13_18DEC2013/OperationalLimitDirectionKind.hpp b/CGMES_2.4.13_18DEC2013/OperationalLimitDirectionKind.hpp deleted file mode 100644 index ce1461f83..000000000 --- a/CGMES_2.4.13_18DEC2013/OperationalLimitDirectionKind.hpp +++ /dev/null @@ -1,25 +0,0 @@ -#ifndef OperationalLimitDirectionKind_H -#define OperationalLimitDirectionKind_H - -namespace CIMPP { - /* - The direction attribute describes the side of a limit that is a violation. - */ - enum class OperationalLimitDirectionKind - { - /** - * High means that a monitored value above the limit value is a violation. If applied to a terminal flow, the positive direction is into the terminal. - */ - high, - /** - * Low means a monitored value below the limit is a violation. If applied to a terminal flow, the positive direction is into the terminal. - */ - low, - /** - * An absoluteValue limit means that a monitored absolute value above the limit value is a violation. - */ - absoluteValue, - }; - std::istream& operator>>(std::istream& lop, CIMPP::OperationalLimitDirectionKind& rop); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/OperationalLimitSet.cpp b/CGMES_2.4.13_18DEC2013/OperationalLimitSet.cpp deleted file mode 100644 index 6b820c844..000000000 --- a/CGMES_2.4.13_18DEC2013/OperationalLimitSet.cpp +++ /dev/null @@ -1,80 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "OperationalLimitSet.hpp" - -#include "ACDCTerminal.hpp" -#include "Equipment.hpp" -#include "OperationalLimit.hpp" - -using namespace CIMPP; - -OperationalLimitSet::OperationalLimitSet(): Terminal(nullptr), Equipment(nullptr) {}; - -OperationalLimitSet::~OperationalLimitSet() {}; - - -bool assign_ACDCTerminal_OperationalLimitSet(BaseClass*, BaseClass*); -bool assign_OperationalLimitSet_Terminal(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(OperationalLimitSet* element = dynamic_cast(BaseClass_ptr1)) { - element->Terminal = dynamic_cast(BaseClass_ptr2); - if(element->Terminal != nullptr) - return assign_ACDCTerminal_OperationalLimitSet(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_Equipment_OperationalLimitSet(BaseClass*, BaseClass*); -bool assign_OperationalLimitSet_Equipment(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(OperationalLimitSet* element = dynamic_cast(BaseClass_ptr1)) { - element->Equipment = dynamic_cast(BaseClass_ptr2); - if(element->Equipment != nullptr) - return assign_Equipment_OperationalLimitSet(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_OperationalLimitSet_OperationalLimitValue(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(OperationalLimitSet* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->OperationalLimitValue.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - - - - -namespace CIMPP { - BaseClass* OperationalLimitSet_factory() { - return new OperationalLimitSet; - } -} - -void OperationalLimitSet::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:OperationalLimitSet"), &OperationalLimitSet_factory)); -} - -void OperationalLimitSet::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void OperationalLimitSet::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:OperationalLimitSet.Terminal"), &assign_OperationalLimitSet_Terminal)); - assign_map.insert(std::make_pair(std::string("cim:OperationalLimitSet.Equipment"), &assign_OperationalLimitSet_Equipment)); - assign_map.insert(std::make_pair(std::string("cim:OperationalLimitSet.OperationalLimitValue"), &assign_OperationalLimitSet_OperationalLimitValue)); -} - -const char OperationalLimitSet::debugName[] = "OperationalLimitSet"; -const char* OperationalLimitSet::debugString() -{ - return OperationalLimitSet::debugName; -} - -const BaseClassDefiner OperationalLimitSet::declare() -{ - return BaseClassDefiner(OperationalLimitSet::addConstructToMap, OperationalLimitSet::addPrimitiveAssignFnsToMap, OperationalLimitSet::addClassAssignFnsToMap, OperationalLimitSet::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/OperationalLimitSet.hpp b/CGMES_2.4.13_18DEC2013/OperationalLimitSet.hpp deleted file mode 100644 index 3fd1e4ba2..000000000 --- a/CGMES_2.4.13_18DEC2013/OperationalLimitSet.hpp +++ /dev/null @@ -1,44 +0,0 @@ -#ifndef OperationalLimitSet_H -#define OperationalLimitSet_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class ACDCTerminal; -class Equipment; -class OperationalLimit; - /* - A set of limits associated with equipment. Sets of limits might apply to a specific temperature, or season for example. A set of limits may contain different severities of limit levels that would apply to the same equipment. The set may contain limits of different types such as apparent power and current limits or high and low voltage limits that are logically applied together as a set. - */ - class OperationalLimitSet: public IdentifiedObject - { - - public: - CIMPP::ACDCTerminal* Terminal; /* Default: 0 */ - CIMPP::Equipment* Equipment; /* The equipment to which the limit set applies. Default: 0 */ - std::list OperationalLimitValue; /* The limit set to which the limit values belong. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - OperationalLimitSet(); - virtual ~OperationalLimitSet(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* OperationalLimitSet_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/OperationalLimitType.cpp b/CGMES_2.4.13_18DEC2013/OperationalLimitType.cpp deleted file mode 100644 index 106a78f84..000000000 --- a/CGMES_2.4.13_18DEC2013/OperationalLimitType.cpp +++ /dev/null @@ -1,99 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "OperationalLimitType.hpp" - -#include "OperationalLimit.hpp" -#include "Seconds.hpp" -#include "LimitTypeKind.hpp" -#include "OperationalLimitDirectionKind.hpp" - -using namespace CIMPP; - -OperationalLimitType::OperationalLimitType() {}; - -OperationalLimitType::~OperationalLimitType() {}; - - -bool assign_OperationalLimitType_OperationalLimit(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(OperationalLimitType* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->OperationalLimit.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - - - - - -bool assign_OperationalLimitType_acceptableDuration(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(OperationalLimitType* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->acceptableDuration; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_OperationalLimitType_limitType(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(OperationalLimitType* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->limitType; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_OperationalLimitType_direction(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(OperationalLimitType* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->direction; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* OperationalLimitType_factory() { - return new OperationalLimitType; - } -} - -void OperationalLimitType::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:OperationalLimitType"), &OperationalLimitType_factory)); -} - -void OperationalLimitType::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:OperationalLimitType.acceptableDuration"), &assign_OperationalLimitType_acceptableDuration)); - assign_map.insert(std::make_pair(std::string("cim:OperationalLimitType.limitType"), &assign_OperationalLimitType_limitType)); - assign_map.insert(std::make_pair(std::string("cim:OperationalLimitType.direction"), &assign_OperationalLimitType_direction)); -} - -void OperationalLimitType::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:OperationalLimitType.OperationalLimit"), &assign_OperationalLimitType_OperationalLimit)); - } - -const char OperationalLimitType::debugName[] = "OperationalLimitType"; -const char* OperationalLimitType::debugString() -{ - return OperationalLimitType::debugName; -} - -const BaseClassDefiner OperationalLimitType::declare() -{ - return BaseClassDefiner(OperationalLimitType::addConstructToMap, OperationalLimitType::addPrimitiveAssignFnsToMap, OperationalLimitType::addClassAssignFnsToMap, OperationalLimitType::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/OperationalLimitType.hpp b/CGMES_2.4.13_18DEC2013/OperationalLimitType.hpp deleted file mode 100644 index 8bf2c4462..000000000 --- a/CGMES_2.4.13_18DEC2013/OperationalLimitType.hpp +++ /dev/null @@ -1,46 +0,0 @@ -#ifndef OperationalLimitType_H -#define OperationalLimitType_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Seconds.hpp" -#include "LimitTypeKind.hpp" -#include "OperationalLimitDirectionKind.hpp" - -namespace CIMPP { - - -class OperationalLimit; - /* - The operational meaning of a category of limits. - */ - class OperationalLimitType: public IdentifiedObject - { - - public: - std::list OperationalLimit; /* The operational limits associated with this type of limit. Default: 0 */ - CIMPP::Seconds acceptableDuration; /* The nominal acceptable duration of the limit. Limits are commonly expressed in terms of the a time limit for which the limit is normally acceptable. The actual acceptable duration of a specific limit may depend on other local factors such as temperature or wind speed. Default: nullptr */ - CIMPP::LimitTypeKind limitType; /* Types of limits defined in the ENTSO-E Operational Handbook Policy 3. Default: 0 */ - CIMPP::OperationalLimitDirectionKind direction; /* The direction of the limit. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - OperationalLimitType(); - virtual ~OperationalLimitType(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* OperationalLimitType_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/OrientationKind.cpp b/CGMES_2.4.13_18DEC2013/OrientationKind.cpp deleted file mode 100644 index d9eae1669..000000000 --- a/CGMES_2.4.13_18DEC2013/OrientationKind.cpp +++ /dev/null @@ -1,32 +0,0 @@ -#include -#include -#include "OrientationKind.hpp" - -using namespace CIMPP; - -namespace CIMPP { - std::istream& operator>>(std::istream& lop, CIMPP::OrientationKind& rop) - { - std::string EnumSymbol; - lop >> EnumSymbol; - - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "OrientationKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "negative") - { - rop = OrientationKind::negative; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; - } -} - diff --git a/CGMES_2.4.13_18DEC2013/OrientationKind.hpp b/CGMES_2.4.13_18DEC2013/OrientationKind.hpp deleted file mode 100644 index 203bcf91a..000000000 --- a/CGMES_2.4.13_18DEC2013/OrientationKind.hpp +++ /dev/null @@ -1,17 +0,0 @@ -#ifndef OrientationKind_H -#define OrientationKind_H - -namespace CIMPP { - /* - The orientation of the coordinate system with respect to top, left, and the coordinate number system. - */ - enum class OrientationKind - { - /** - * For 2D diagrams, a negative orientation gives the left-hand orientation (favoured by computer graphics displays) with X values increasing from left to right and Y values increasing from top to bottom. This is also known as a left hand orientation. - */ - negative, - }; - std::istream& operator>>(std::istream& lop, CIMPP::OrientationKind& rop); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/OverexcLim2.cpp b/CGMES_2.4.13_18DEC2013/OverexcLim2.cpp deleted file mode 100644 index fdaa8c396..000000000 --- a/CGMES_2.4.13_18DEC2013/OverexcLim2.cpp +++ /dev/null @@ -1,101 +0,0 @@ -#include -#include "OverexcitationLimiterDynamics.hpp" -#include "OverexcLim2.hpp" - -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -OverexcLim2::OverexcLim2() {}; - -OverexcLim2::~OverexcLim2() {}; - - - - - - - -bool assign_OverexcLim2_koi(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(OverexcLim2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->koi; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_OverexcLim2_voimax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(OverexcLim2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->voimax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_OverexcLim2_voimin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(OverexcLim2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->voimin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_OverexcLim2_ifdlim(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(OverexcLim2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ifdlim; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* OverexcLim2_factory() { - return new OverexcLim2; - } -} - -void OverexcLim2::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:OverexcLim2"), &OverexcLim2_factory)); -} - -void OverexcLim2::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:OverexcLim2.koi"), &assign_OverexcLim2_koi)); - assign_map.insert(std::make_pair(std::string("cim:OverexcLim2.voimax"), &assign_OverexcLim2_voimax)); - assign_map.insert(std::make_pair(std::string("cim:OverexcLim2.voimin"), &assign_OverexcLim2_voimin)); - assign_map.insert(std::make_pair(std::string("cim:OverexcLim2.ifdlim"), &assign_OverexcLim2_ifdlim)); -} - -void OverexcLim2::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char OverexcLim2::debugName[] = "OverexcLim2"; -const char* OverexcLim2::debugString() -{ - return OverexcLim2::debugName; -} - -const BaseClassDefiner OverexcLim2::declare() -{ - return BaseClassDefiner(OverexcLim2::addConstructToMap, OverexcLim2::addPrimitiveAssignFnsToMap, OverexcLim2::addClassAssignFnsToMap, OverexcLim2::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/OverexcLim2.hpp b/CGMES_2.4.13_18DEC2013/OverexcLim2.hpp deleted file mode 100644 index 453fef17c..000000000 --- a/CGMES_2.4.13_18DEC2013/OverexcLim2.hpp +++ /dev/null @@ -1,43 +0,0 @@ -#ifndef OverexcLim2_H -#define OverexcLim2_H - -#include "OverexcitationLimiterDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" - -namespace CIMPP { - - - /* - Different from LimIEEEOEL, LimOEL2 has a fixed pickup threshold and reduces the excitation set-point by mean of non-windup integral regulator. Irated is the rated machine excitation current (calculated from nameplate conditions: V, P, CosPhi). - */ - class OverexcLim2: public OverexcitationLimiterDynamics - { - - public: - CIMPP::PU koi; /* Gain Over excitation limiter (K). Typical Value = 0.1. Default: nullptr */ - CIMPP::PU voimax; /* Maximum error signal (V). Typical Value = 0. Default: nullptr */ - CIMPP::PU voimin; /* Minimum error signal (V). Typical Value = -9999. Default: nullptr */ - CIMPP::PU ifdlim; /* Limit value of rated field current (I). Typical Value = 1.05. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - OverexcLim2(); - virtual ~OverexcLim2(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* OverexcLim2_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/OverexcLimIEEE.cpp b/CGMES_2.4.13_18DEC2013/OverexcLimIEEE.cpp deleted file mode 100644 index d2180b520..000000000 --- a/CGMES_2.4.13_18DEC2013/OverexcLimIEEE.cpp +++ /dev/null @@ -1,131 +0,0 @@ -#include -#include "OverexcitationLimiterDynamics.hpp" -#include "OverexcLimIEEE.hpp" - -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" - -using namespace CIMPP; - -OverexcLimIEEE::OverexcLimIEEE() {}; - -OverexcLimIEEE::~OverexcLimIEEE() {}; - - - - - - - - - -bool assign_OverexcLimIEEE_itfpu(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(OverexcLimIEEE* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->itfpu; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_OverexcLimIEEE_ifdmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(OverexcLimIEEE* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ifdmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_OverexcLimIEEE_ifdlim(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(OverexcLimIEEE* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ifdlim; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_OverexcLimIEEE_hyst(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(OverexcLimIEEE* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->hyst; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_OverexcLimIEEE_kcd(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(OverexcLimIEEE* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kcd; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_OverexcLimIEEE_kramp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(OverexcLimIEEE* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kramp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* OverexcLimIEEE_factory() { - return new OverexcLimIEEE; - } -} - -void OverexcLimIEEE::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:OverexcLimIEEE"), &OverexcLimIEEE_factory)); -} - -void OverexcLimIEEE::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:OverexcLimIEEE.itfpu"), &assign_OverexcLimIEEE_itfpu)); - assign_map.insert(std::make_pair(std::string("cim:OverexcLimIEEE.ifdmax"), &assign_OverexcLimIEEE_ifdmax)); - assign_map.insert(std::make_pair(std::string("cim:OverexcLimIEEE.ifdlim"), &assign_OverexcLimIEEE_ifdlim)); - assign_map.insert(std::make_pair(std::string("cim:OverexcLimIEEE.hyst"), &assign_OverexcLimIEEE_hyst)); - assign_map.insert(std::make_pair(std::string("cim:OverexcLimIEEE.kcd"), &assign_OverexcLimIEEE_kcd)); - assign_map.insert(std::make_pair(std::string("cim:OverexcLimIEEE.kramp"), &assign_OverexcLimIEEE_kramp)); -} - -void OverexcLimIEEE::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char OverexcLimIEEE::debugName[] = "OverexcLimIEEE"; -const char* OverexcLimIEEE::debugString() -{ - return OverexcLimIEEE::debugName; -} - -const BaseClassDefiner OverexcLimIEEE::declare() -{ - return BaseClassDefiner(OverexcLimIEEE::addConstructToMap, OverexcLimIEEE::addPrimitiveAssignFnsToMap, OverexcLimIEEE::addClassAssignFnsToMap, OverexcLimIEEE::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/OverexcLimIEEE.hpp b/CGMES_2.4.13_18DEC2013/OverexcLimIEEE.hpp deleted file mode 100644 index e5f8cc28f..000000000 --- a/CGMES_2.4.13_18DEC2013/OverexcLimIEEE.hpp +++ /dev/null @@ -1,46 +0,0 @@ -#ifndef OverexcLimIEEE_H -#define OverexcLimIEEE_H - -#include "OverexcitationLimiterDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "Simple_Float.hpp" - -namespace CIMPP { - - - /* - The over excitation limiter model is intended to represent the significant features of OELs necessary for some large-scale system studies. It is the result of a pragmatic approach to obtain a model that can be widely applied with attainable data from generator owners. An attempt to include all variations in the functionality of OELs and duplicate how they interact with the rest of the excitation systems would likely result in a level of application insufficient for the studies for which they are intended. Reference: IEEE OEL 421.5-2005 Section 9. - */ - class OverexcLimIEEE: public OverexcitationLimiterDynamics - { - - public: - CIMPP::PU itfpu; /* OEL timed field current limiter pickup level (I). Typical Value = 1.05. Default: nullptr */ - CIMPP::PU ifdmax; /* OEL instantaneous field current limit (I). Typical Value = 1.5. Default: nullptr */ - CIMPP::PU ifdlim; /* OEL timed field current limit (I). Typical Value = 1.05. Default: nullptr */ - CIMPP::PU hyst; /* OEL pickup/drop-out hysteresis (HYST). Typical Value = 0.03. Default: nullptr */ - CIMPP::PU kcd; /* OEL cooldown gain (K). Typical Value = 1. Default: nullptr */ - CIMPP::Simple_Float kramp; /* OEL ramped limit rate (K). Unit = PU/sec. Typical Value = 10. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - OverexcLimIEEE(); - virtual ~OverexcLimIEEE(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* OverexcLimIEEE_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/OverexcLimX1.cpp b/CGMES_2.4.13_18DEC2013/OverexcLimX1.cpp deleted file mode 100644 index 486d368dc..000000000 --- a/CGMES_2.4.13_18DEC2013/OverexcLimX1.cpp +++ /dev/null @@ -1,191 +0,0 @@ -#include -#include "OverexcitationLimiterDynamics.hpp" -#include "OverexcLimX1.hpp" - -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -OverexcLimX1::OverexcLimX1() {}; - -OverexcLimX1::~OverexcLimX1() {}; - - - - - - - - - - - - - -bool assign_OverexcLimX1_efdrated(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(OverexcLimX1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->efdrated; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_OverexcLimX1_efd1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(OverexcLimX1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->efd1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_OverexcLimX1_t1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(OverexcLimX1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_OverexcLimX1_efd2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(OverexcLimX1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->efd2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_OverexcLimX1_t2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(OverexcLimX1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_OverexcLimX1_efd3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(OverexcLimX1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->efd3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_OverexcLimX1_t3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(OverexcLimX1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_OverexcLimX1_efddes(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(OverexcLimX1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->efddes; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_OverexcLimX1_kmx(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(OverexcLimX1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kmx; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_OverexcLimX1_vlow(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(OverexcLimX1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vlow; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* OverexcLimX1_factory() { - return new OverexcLimX1; - } -} - -void OverexcLimX1::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:OverexcLimX1"), &OverexcLimX1_factory)); -} - -void OverexcLimX1::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:OverexcLimX1.efdrated"), &assign_OverexcLimX1_efdrated)); - assign_map.insert(std::make_pair(std::string("cim:OverexcLimX1.efd1"), &assign_OverexcLimX1_efd1)); - assign_map.insert(std::make_pair(std::string("cim:OverexcLimX1.t1"), &assign_OverexcLimX1_t1)); - assign_map.insert(std::make_pair(std::string("cim:OverexcLimX1.efd2"), &assign_OverexcLimX1_efd2)); - assign_map.insert(std::make_pair(std::string("cim:OverexcLimX1.t2"), &assign_OverexcLimX1_t2)); - assign_map.insert(std::make_pair(std::string("cim:OverexcLimX1.efd3"), &assign_OverexcLimX1_efd3)); - assign_map.insert(std::make_pair(std::string("cim:OverexcLimX1.t3"), &assign_OverexcLimX1_t3)); - assign_map.insert(std::make_pair(std::string("cim:OverexcLimX1.efddes"), &assign_OverexcLimX1_efddes)); - assign_map.insert(std::make_pair(std::string("cim:OverexcLimX1.kmx"), &assign_OverexcLimX1_kmx)); - assign_map.insert(std::make_pair(std::string("cim:OverexcLimX1.vlow"), &assign_OverexcLimX1_vlow)); -} - -void OverexcLimX1::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char OverexcLimX1::debugName[] = "OverexcLimX1"; -const char* OverexcLimX1::debugString() -{ - return OverexcLimX1::debugName; -} - -const BaseClassDefiner OverexcLimX1::declare() -{ - return BaseClassDefiner(OverexcLimX1::addConstructToMap, OverexcLimX1::addPrimitiveAssignFnsToMap, OverexcLimX1::addClassAssignFnsToMap, OverexcLimX1::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/OverexcLimX1.hpp b/CGMES_2.4.13_18DEC2013/OverexcLimX1.hpp deleted file mode 100644 index 7fdc27e45..000000000 --- a/CGMES_2.4.13_18DEC2013/OverexcLimX1.hpp +++ /dev/null @@ -1,50 +0,0 @@ -#ifndef OverexcLimX1_H -#define OverexcLimX1_H - -#include "OverexcitationLimiterDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "Seconds.hpp" - -namespace CIMPP { - - - /* - Field voltage over excitation limiter. - */ - class OverexcLimX1: public OverexcitationLimiterDynamics - { - - public: - CIMPP::PU efdrated; /* Rated field voltage (EFD). Typical Value = 1.05. Default: nullptr */ - CIMPP::PU efd1; /* Low voltage point on the inverse time characteristic (EFD). Typical Value = 1.1. Default: nullptr */ - CIMPP::Seconds t1; /* Time to trip the exciter at the low voltage point on the inverse time characteristic (TIME). Typical Value = 120. Default: nullptr */ - CIMPP::PU efd2; /* Mid voltage point on the inverse time characteristic (EFD). Typical Value = 1.2. Default: nullptr */ - CIMPP::Seconds t2; /* Time to trip the exciter at the mid voltage point on the inverse time characteristic (TIME). Typical Value = 40. Default: nullptr */ - CIMPP::PU efd3; /* High voltage point on the inverse time characteristic (EFD). Typical Value = 1.5. Default: nullptr */ - CIMPP::Seconds t3; /* Time to trip the exciter at the high voltage point on the inverse time characteristic (TIME). Typical Value = 15. Default: nullptr */ - CIMPP::PU efddes; /* Desired field voltage (EFD). Typical Value = 0.9. Default: nullptr */ - CIMPP::PU kmx; /* Gain (K). Typical Value = 0.01. Default: nullptr */ - CIMPP::PU vlow; /* Low voltage limit (V) (>0). Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - OverexcLimX1(); - virtual ~OverexcLimX1(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* OverexcLimX1_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/OverexcLimX2.cpp b/CGMES_2.4.13_18DEC2013/OverexcLimX2.cpp deleted file mode 100644 index 896cac502..000000000 --- a/CGMES_2.4.13_18DEC2013/OverexcLimX2.cpp +++ /dev/null @@ -1,206 +0,0 @@ -#include -#include "OverexcitationLimiterDynamics.hpp" -#include "OverexcLimX2.hpp" - -#include "Boolean.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -OverexcLimX2::OverexcLimX2() {}; - -OverexcLimX2::~OverexcLimX2() {}; - - - - - - - - - - - - - - -bool assign_OverexcLimX2_m(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(OverexcLimX2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->m; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_OverexcLimX2_efdrated(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(OverexcLimX2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->efdrated; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_OverexcLimX2_efd1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(OverexcLimX2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->efd1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_OverexcLimX2_t1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(OverexcLimX2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_OverexcLimX2_efd2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(OverexcLimX2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->efd2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_OverexcLimX2_t2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(OverexcLimX2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_OverexcLimX2_efd3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(OverexcLimX2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->efd3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_OverexcLimX2_t3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(OverexcLimX2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_OverexcLimX2_efddes(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(OverexcLimX2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->efddes; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_OverexcLimX2_kmx(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(OverexcLimX2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kmx; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_OverexcLimX2_vlow(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(OverexcLimX2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vlow; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* OverexcLimX2_factory() { - return new OverexcLimX2; - } -} - -void OverexcLimX2::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:OverexcLimX2"), &OverexcLimX2_factory)); -} - -void OverexcLimX2::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:OverexcLimX2.m"), &assign_OverexcLimX2_m)); - assign_map.insert(std::make_pair(std::string("cim:OverexcLimX2.efdrated"), &assign_OverexcLimX2_efdrated)); - assign_map.insert(std::make_pair(std::string("cim:OverexcLimX2.efd1"), &assign_OverexcLimX2_efd1)); - assign_map.insert(std::make_pair(std::string("cim:OverexcLimX2.t1"), &assign_OverexcLimX2_t1)); - assign_map.insert(std::make_pair(std::string("cim:OverexcLimX2.efd2"), &assign_OverexcLimX2_efd2)); - assign_map.insert(std::make_pair(std::string("cim:OverexcLimX2.t2"), &assign_OverexcLimX2_t2)); - assign_map.insert(std::make_pair(std::string("cim:OverexcLimX2.efd3"), &assign_OverexcLimX2_efd3)); - assign_map.insert(std::make_pair(std::string("cim:OverexcLimX2.t3"), &assign_OverexcLimX2_t3)); - assign_map.insert(std::make_pair(std::string("cim:OverexcLimX2.efddes"), &assign_OverexcLimX2_efddes)); - assign_map.insert(std::make_pair(std::string("cim:OverexcLimX2.kmx"), &assign_OverexcLimX2_kmx)); - assign_map.insert(std::make_pair(std::string("cim:OverexcLimX2.vlow"), &assign_OverexcLimX2_vlow)); -} - -void OverexcLimX2::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char OverexcLimX2::debugName[] = "OverexcLimX2"; -const char* OverexcLimX2::debugString() -{ - return OverexcLimX2::debugName; -} - -const BaseClassDefiner OverexcLimX2::declare() -{ - return BaseClassDefiner(OverexcLimX2::addConstructToMap, OverexcLimX2::addPrimitiveAssignFnsToMap, OverexcLimX2::addClassAssignFnsToMap, OverexcLimX2::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/OverexcLimX2.hpp b/CGMES_2.4.13_18DEC2013/OverexcLimX2.hpp deleted file mode 100644 index 7dd09d678..000000000 --- a/CGMES_2.4.13_18DEC2013/OverexcLimX2.hpp +++ /dev/null @@ -1,52 +0,0 @@ -#ifndef OverexcLimX2_H -#define OverexcLimX2_H - -#include "OverexcitationLimiterDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Boolean.hpp" -#include "PU.hpp" -#include "Seconds.hpp" - -namespace CIMPP { - - - /* - Field Voltage or Current overexcitation limiter designed to protect the generator field of an AC machine with automatic excitation control from overheating due to prolonged overexcitation. - */ - class OverexcLimX2: public OverexcitationLimiterDynamics - { - - public: - CIMPP::Boolean m; /* (m). true = IFD limiting false = EFD limiting. Default: false */ - CIMPP::PU efdrated; /* Rated field voltage if m=F or field current if m=T (EFD). Typical Value = 1.05. Default: nullptr */ - CIMPP::PU efd1; /* Low voltage or current point on the inverse time characteristic (EFD). Typical Value = 1.1. Default: nullptr */ - CIMPP::Seconds t1; /* Time to trip the exciter at the low voltage or current point on the inverse time characteristic (TIME). Typical Value = 120. Default: nullptr */ - CIMPP::PU efd2; /* Mid voltage or current point on the inverse time characteristic (EFD). Typical Value = 1.2. Default: nullptr */ - CIMPP::Seconds t2; /* Time to trip the exciter at the mid voltage or current point on the inverse time characteristic (TIME). Typical Value = 40. Default: nullptr */ - CIMPP::PU efd3; /* High voltage or current point on the inverse time characteristic (EFD). Typical Value = 1.5. Default: nullptr */ - CIMPP::Seconds t3; /* Time to trip the exciter at the high voltage or current point on the inverse time characteristic (TIME). Typical Value = 15. Default: nullptr */ - CIMPP::PU efddes; /* Desired field voltage if m=F or field current if m=T (EFD). Typical Value = 1. Default: nullptr */ - CIMPP::PU kmx; /* Gain (K). Typical Value = 0.002. Default: nullptr */ - CIMPP::PU vlow; /* Low voltage limit (V) (>0). Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - OverexcLimX2(); - virtual ~OverexcLimX2(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* OverexcLimX2_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/OverexcitationLimiterDynamics.cpp b/CGMES_2.4.13_18DEC2013/OverexcitationLimiterDynamics.cpp deleted file mode 100644 index 443cc045e..000000000 --- a/CGMES_2.4.13_18DEC2013/OverexcitationLimiterDynamics.cpp +++ /dev/null @@ -1,54 +0,0 @@ -#include -#include "DynamicsFunctionBlock.hpp" -#include "OverexcitationLimiterDynamics.hpp" - -#include "ExcitationSystemDynamics.hpp" - -using namespace CIMPP; - -OverexcitationLimiterDynamics::OverexcitationLimiterDynamics(): ExcitationSystemDynamics(nullptr) {}; - -OverexcitationLimiterDynamics::~OverexcitationLimiterDynamics() {}; - - -bool assign_ExcitationSystemDynamics_OverexcitationLimiterDynamics(BaseClass*, BaseClass*); -bool assign_OverexcitationLimiterDynamics_ExcitationSystemDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(OverexcitationLimiterDynamics* element = dynamic_cast(BaseClass_ptr1)) { - element->ExcitationSystemDynamics = dynamic_cast(BaseClass_ptr2); - if(element->ExcitationSystemDynamics != nullptr) - return assign_ExcitationSystemDynamics_OverexcitationLimiterDynamics(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - -namespace CIMPP { - BaseClass* OverexcitationLimiterDynamics_factory() { - return new OverexcitationLimiterDynamics; - } -} - -void OverexcitationLimiterDynamics::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:OverexcitationLimiterDynamics"), &OverexcitationLimiterDynamics_factory)); -} - -void OverexcitationLimiterDynamics::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void OverexcitationLimiterDynamics::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:OverexcitationLimiterDynamics.ExcitationSystemDynamics"), &assign_OverexcitationLimiterDynamics_ExcitationSystemDynamics)); -} - -const char OverexcitationLimiterDynamics::debugName[] = "OverexcitationLimiterDynamics"; -const char* OverexcitationLimiterDynamics::debugString() -{ - return OverexcitationLimiterDynamics::debugName; -} - -const BaseClassDefiner OverexcitationLimiterDynamics::declare() -{ - return BaseClassDefiner(OverexcitationLimiterDynamics::addConstructToMap, OverexcitationLimiterDynamics::addPrimitiveAssignFnsToMap, OverexcitationLimiterDynamics::addClassAssignFnsToMap, OverexcitationLimiterDynamics::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/OverexcitationLimiterDynamics.hpp b/CGMES_2.4.13_18DEC2013/OverexcitationLimiterDynamics.hpp deleted file mode 100644 index 1564df6a9..000000000 --- a/CGMES_2.4.13_18DEC2013/OverexcitationLimiterDynamics.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef OverexcitationLimiterDynamics_H -#define OverexcitationLimiterDynamics_H - -#include "DynamicsFunctionBlock.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class ExcitationSystemDynamics; - /* - Overexcitation limiter function block whose behaviour is described by reference to a standard model - */ - class OverexcitationLimiterDynamics: public DynamicsFunctionBlock - { - - public: - CIMPP::ExcitationSystemDynamics* ExcitationSystemDynamics; /* Excitation system model with which this overexcitation limiter model is associated. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - OverexcitationLimiterDynamics(); - virtual ~OverexcitationLimiterDynamics(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* OverexcitationLimiterDynamics_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/OverexcitationLimiterUserDefined.cpp b/CGMES_2.4.13_18DEC2013/OverexcitationLimiterUserDefined.cpp deleted file mode 100644 index aa3169f18..000000000 --- a/CGMES_2.4.13_18DEC2013/OverexcitationLimiterUserDefined.cpp +++ /dev/null @@ -1,69 +0,0 @@ -#include -#include "OverexcitationLimiterDynamics.hpp" -#include "OverexcitationLimiterUserDefined.hpp" - -#include "Boolean.hpp" -#include "ProprietaryParameterDynamics.hpp" - -using namespace CIMPP; - -OverexcitationLimiterUserDefined::OverexcitationLimiterUserDefined() {}; - -OverexcitationLimiterUserDefined::~OverexcitationLimiterUserDefined() {}; - - - -bool assign_OverexcitationLimiterUserDefined_ProprietaryParameterDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(OverexcitationLimiterUserDefined* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->ProprietaryParameterDynamics.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - -bool assign_OverexcitationLimiterUserDefined_proprietary(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(OverexcitationLimiterUserDefined* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->proprietary; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -namespace CIMPP { - BaseClass* OverexcitationLimiterUserDefined_factory() { - return new OverexcitationLimiterUserDefined; - } -} - -void OverexcitationLimiterUserDefined::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:OverexcitationLimiterUserDefined"), &OverexcitationLimiterUserDefined_factory)); -} - -void OverexcitationLimiterUserDefined::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:OverexcitationLimiterUserDefined.proprietary"), &assign_OverexcitationLimiterUserDefined_proprietary)); - } - -void OverexcitationLimiterUserDefined::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:OverexcitationLimiterUserDefined.ProprietaryParameterDynamics"), &assign_OverexcitationLimiterUserDefined_ProprietaryParameterDynamics)); -} - -const char OverexcitationLimiterUserDefined::debugName[] = "OverexcitationLimiterUserDefined"; -const char* OverexcitationLimiterUserDefined::debugString() -{ - return OverexcitationLimiterUserDefined::debugName; -} - -const BaseClassDefiner OverexcitationLimiterUserDefined::declare() -{ - return BaseClassDefiner(OverexcitationLimiterUserDefined::addConstructToMap, OverexcitationLimiterUserDefined::addPrimitiveAssignFnsToMap, OverexcitationLimiterUserDefined::addClassAssignFnsToMap, OverexcitationLimiterUserDefined::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/OverexcitationLimiterUserDefined.hpp b/CGMES_2.4.13_18DEC2013/OverexcitationLimiterUserDefined.hpp deleted file mode 100644 index 6bb76fbdf..000000000 --- a/CGMES_2.4.13_18DEC2013/OverexcitationLimiterUserDefined.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef OverexcitationLimiterUserDefined_H -#define OverexcitationLimiterUserDefined_H - -#include "OverexcitationLimiterDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Boolean.hpp" - -namespace CIMPP { - - -class ProprietaryParameterDynamics; - /* - Overexcitation limiter system function block whose dynamic behaviour is described by - */ - class OverexcitationLimiterUserDefined: public OverexcitationLimiterDynamics - { - - public: - CIMPP::Boolean proprietary; /* Behaviour is based on proprietary model as opposed to detailed model. true = user-defined model is proprietary with behaviour mutually understood by sending and receiving applications and parameters passed as general attributes false = user-defined model is explicitly defined in terms of control blocks and their input and output signals. Default: false */ - std::list ProprietaryParameterDynamics; /* Parameter of this proprietary user-defined model. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - OverexcitationLimiterUserDefined(); - virtual ~OverexcitationLimiterUserDefined(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* OverexcitationLimiterUserDefined_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/PFVArControllerType1Dynamics.cpp b/CGMES_2.4.13_18DEC2013/PFVArControllerType1Dynamics.cpp deleted file mode 100644 index 2d290b767..000000000 --- a/CGMES_2.4.13_18DEC2013/PFVArControllerType1Dynamics.cpp +++ /dev/null @@ -1,78 +0,0 @@ -#include -#include "DynamicsFunctionBlock.hpp" -#include "PFVArControllerType1Dynamics.hpp" - -#include "RemoteInputSignal.hpp" -#include "ExcitationSystemDynamics.hpp" -#include "VoltageAdjusterDynamics.hpp" - -using namespace CIMPP; - -PFVArControllerType1Dynamics::PFVArControllerType1Dynamics(): RemoteInputSignal(nullptr), ExcitationSystemDynamics(nullptr), VoltageAdjusterDynamics(nullptr) {}; - -PFVArControllerType1Dynamics::~PFVArControllerType1Dynamics() {}; - - -bool assign_PFVArControllerType1Dynamics_RemoteInputSignal(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(PFVArControllerType1Dynamics* element = dynamic_cast(BaseClass_ptr1)) { - element->RemoteInputSignal = dynamic_cast(BaseClass_ptr2); - if(element->RemoteInputSignal != nullptr) - return true; - } - return false; -} - -bool assign_ExcitationSystemDynamics_PFVArControllerType1Dynamics(BaseClass*, BaseClass*); -bool assign_PFVArControllerType1Dynamics_ExcitationSystemDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(PFVArControllerType1Dynamics* element = dynamic_cast(BaseClass_ptr1)) { - element->ExcitationSystemDynamics = dynamic_cast(BaseClass_ptr2); - if(element->ExcitationSystemDynamics != nullptr) - return assign_ExcitationSystemDynamics_PFVArControllerType1Dynamics(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_PFVArControllerType1Dynamics_VoltageAdjusterDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(PFVArControllerType1Dynamics* element = dynamic_cast(BaseClass_ptr1)) { - element->VoltageAdjusterDynamics = dynamic_cast(BaseClass_ptr2); - if(element->VoltageAdjusterDynamics != nullptr) - return true; - } - return false; -} - - - - - -namespace CIMPP { - BaseClass* PFVArControllerType1Dynamics_factory() { - return new PFVArControllerType1Dynamics; - } -} - -void PFVArControllerType1Dynamics::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:PFVArControllerType1Dynamics"), &PFVArControllerType1Dynamics_factory)); -} - -void PFVArControllerType1Dynamics::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void PFVArControllerType1Dynamics::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:PFVArControllerType1Dynamics.RemoteInputSignal"), &assign_PFVArControllerType1Dynamics_RemoteInputSignal)); - assign_map.insert(std::make_pair(std::string("cim:PFVArControllerType1Dynamics.ExcitationSystemDynamics"), &assign_PFVArControllerType1Dynamics_ExcitationSystemDynamics)); - assign_map.insert(std::make_pair(std::string("cim:PFVArControllerType1Dynamics.VoltageAdjusterDynamics"), &assign_PFVArControllerType1Dynamics_VoltageAdjusterDynamics)); -} - -const char PFVArControllerType1Dynamics::debugName[] = "PFVArControllerType1Dynamics"; -const char* PFVArControllerType1Dynamics::debugString() -{ - return PFVArControllerType1Dynamics::debugName; -} - -const BaseClassDefiner PFVArControllerType1Dynamics::declare() -{ - return BaseClassDefiner(PFVArControllerType1Dynamics::addConstructToMap, PFVArControllerType1Dynamics::addPrimitiveAssignFnsToMap, PFVArControllerType1Dynamics::addClassAssignFnsToMap, PFVArControllerType1Dynamics::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/PFVArControllerType1Dynamics.hpp b/CGMES_2.4.13_18DEC2013/PFVArControllerType1Dynamics.hpp deleted file mode 100644 index 76edafcd4..000000000 --- a/CGMES_2.4.13_18DEC2013/PFVArControllerType1Dynamics.hpp +++ /dev/null @@ -1,44 +0,0 @@ -#ifndef PFVArControllerType1Dynamics_H -#define PFVArControllerType1Dynamics_H - -#include "DynamicsFunctionBlock.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class RemoteInputSignal; -class ExcitationSystemDynamics; -class VoltageAdjusterDynamics; - /* - Power Factor or VAr controller Type I function block whose behaviour is described by reference to a standard model - */ - class PFVArControllerType1Dynamics: public DynamicsFunctionBlock - { - - public: - CIMPP::RemoteInputSignal* RemoteInputSignal; /* Remote input signal used by this Power Factor or VAr controller Type I model. Default: 0 */ - CIMPP::ExcitationSystemDynamics* ExcitationSystemDynamics; /* Excitation system model with which this Power Factor or VAr controller Type I model is associated. Default: 0 */ - CIMPP::VoltageAdjusterDynamics* VoltageAdjusterDynamics; /* Voltage adjuster model associated with this Power Factor or VA controller Type I model. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - PFVArControllerType1Dynamics(); - virtual ~PFVArControllerType1Dynamics(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* PFVArControllerType1Dynamics_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/PFVArControllerType1UserDefined.cpp b/CGMES_2.4.13_18DEC2013/PFVArControllerType1UserDefined.cpp deleted file mode 100644 index 966ff6b9b..000000000 --- a/CGMES_2.4.13_18DEC2013/PFVArControllerType1UserDefined.cpp +++ /dev/null @@ -1,69 +0,0 @@ -#include -#include "PFVArControllerType1Dynamics.hpp" -#include "PFVArControllerType1UserDefined.hpp" - -#include "Boolean.hpp" -#include "ProprietaryParameterDynamics.hpp" - -using namespace CIMPP; - -PFVArControllerType1UserDefined::PFVArControllerType1UserDefined() {}; - -PFVArControllerType1UserDefined::~PFVArControllerType1UserDefined() {}; - - - -bool assign_PFVArControllerType1UserDefined_ProprietaryParameterDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(PFVArControllerType1UserDefined* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->ProprietaryParameterDynamics.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - -bool assign_PFVArControllerType1UserDefined_proprietary(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PFVArControllerType1UserDefined* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->proprietary; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -namespace CIMPP { - BaseClass* PFVArControllerType1UserDefined_factory() { - return new PFVArControllerType1UserDefined; - } -} - -void PFVArControllerType1UserDefined::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:PFVArControllerType1UserDefined"), &PFVArControllerType1UserDefined_factory)); -} - -void PFVArControllerType1UserDefined::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:PFVArControllerType1UserDefined.proprietary"), &assign_PFVArControllerType1UserDefined_proprietary)); - } - -void PFVArControllerType1UserDefined::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:PFVArControllerType1UserDefined.ProprietaryParameterDynamics"), &assign_PFVArControllerType1UserDefined_ProprietaryParameterDynamics)); -} - -const char PFVArControllerType1UserDefined::debugName[] = "PFVArControllerType1UserDefined"; -const char* PFVArControllerType1UserDefined::debugString() -{ - return PFVArControllerType1UserDefined::debugName; -} - -const BaseClassDefiner PFVArControllerType1UserDefined::declare() -{ - return BaseClassDefiner(PFVArControllerType1UserDefined::addConstructToMap, PFVArControllerType1UserDefined::addPrimitiveAssignFnsToMap, PFVArControllerType1UserDefined::addClassAssignFnsToMap, PFVArControllerType1UserDefined::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/PFVArControllerType1UserDefined.hpp b/CGMES_2.4.13_18DEC2013/PFVArControllerType1UserDefined.hpp deleted file mode 100644 index 81be06182..000000000 --- a/CGMES_2.4.13_18DEC2013/PFVArControllerType1UserDefined.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef PFVArControllerType1UserDefined_H -#define PFVArControllerType1UserDefined_H - -#include "PFVArControllerType1Dynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Boolean.hpp" - -namespace CIMPP { - - -class ProprietaryParameterDynamics; - /* - Power Factor or VAr controller Type I function block whose dynamic behaviour is described by - */ - class PFVArControllerType1UserDefined: public PFVArControllerType1Dynamics - { - - public: - CIMPP::Boolean proprietary; /* Behaviour is based on proprietary model as opposed to detailed model. true = user-defined model is proprietary with behaviour mutually understood by sending and receiving applications and parameters passed as general attributes false = user-defined model is explicitly defined in terms of control blocks and their input and output signals. Default: false */ - std::list ProprietaryParameterDynamics; /* Parameter of this proprietary user-defined model. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - PFVArControllerType1UserDefined(); - virtual ~PFVArControllerType1UserDefined(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* PFVArControllerType1UserDefined_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/PFVArControllerType2Dynamics.cpp b/CGMES_2.4.13_18DEC2013/PFVArControllerType2Dynamics.cpp deleted file mode 100644 index 013e188fa..000000000 --- a/CGMES_2.4.13_18DEC2013/PFVArControllerType2Dynamics.cpp +++ /dev/null @@ -1,54 +0,0 @@ -#include -#include "DynamicsFunctionBlock.hpp" -#include "PFVArControllerType2Dynamics.hpp" - -#include "ExcitationSystemDynamics.hpp" - -using namespace CIMPP; - -PFVArControllerType2Dynamics::PFVArControllerType2Dynamics(): ExcitationSystemDynamics(nullptr) {}; - -PFVArControllerType2Dynamics::~PFVArControllerType2Dynamics() {}; - - -bool assign_ExcitationSystemDynamics_PFVArControllerType2Dynamics(BaseClass*, BaseClass*); -bool assign_PFVArControllerType2Dynamics_ExcitationSystemDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(PFVArControllerType2Dynamics* element = dynamic_cast(BaseClass_ptr1)) { - element->ExcitationSystemDynamics = dynamic_cast(BaseClass_ptr2); - if(element->ExcitationSystemDynamics != nullptr) - return assign_ExcitationSystemDynamics_PFVArControllerType2Dynamics(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - -namespace CIMPP { - BaseClass* PFVArControllerType2Dynamics_factory() { - return new PFVArControllerType2Dynamics; - } -} - -void PFVArControllerType2Dynamics::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:PFVArControllerType2Dynamics"), &PFVArControllerType2Dynamics_factory)); -} - -void PFVArControllerType2Dynamics::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void PFVArControllerType2Dynamics::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:PFVArControllerType2Dynamics.ExcitationSystemDynamics"), &assign_PFVArControllerType2Dynamics_ExcitationSystemDynamics)); -} - -const char PFVArControllerType2Dynamics::debugName[] = "PFVArControllerType2Dynamics"; -const char* PFVArControllerType2Dynamics::debugString() -{ - return PFVArControllerType2Dynamics::debugName; -} - -const BaseClassDefiner PFVArControllerType2Dynamics::declare() -{ - return BaseClassDefiner(PFVArControllerType2Dynamics::addConstructToMap, PFVArControllerType2Dynamics::addPrimitiveAssignFnsToMap, PFVArControllerType2Dynamics::addClassAssignFnsToMap, PFVArControllerType2Dynamics::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/PFVArControllerType2Dynamics.hpp b/CGMES_2.4.13_18DEC2013/PFVArControllerType2Dynamics.hpp deleted file mode 100644 index 4cd383163..000000000 --- a/CGMES_2.4.13_18DEC2013/PFVArControllerType2Dynamics.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef PFVArControllerType2Dynamics_H -#define PFVArControllerType2Dynamics_H - -#include "DynamicsFunctionBlock.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class ExcitationSystemDynamics; - /* - Power Factor or VAr controller Type II function block whose behaviour is described by reference to a standard model - */ - class PFVArControllerType2Dynamics: public DynamicsFunctionBlock - { - - public: - CIMPP::ExcitationSystemDynamics* ExcitationSystemDynamics; /* Excitation system model with which this Power Factor or VAr controller Type II is associated. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - PFVArControllerType2Dynamics(); - virtual ~PFVArControllerType2Dynamics(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* PFVArControllerType2Dynamics_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/PFVArControllerType2UserDefined.cpp b/CGMES_2.4.13_18DEC2013/PFVArControllerType2UserDefined.cpp deleted file mode 100644 index eb576916d..000000000 --- a/CGMES_2.4.13_18DEC2013/PFVArControllerType2UserDefined.cpp +++ /dev/null @@ -1,69 +0,0 @@ -#include -#include "PFVArControllerType2Dynamics.hpp" -#include "PFVArControllerType2UserDefined.hpp" - -#include "Boolean.hpp" -#include "ProprietaryParameterDynamics.hpp" - -using namespace CIMPP; - -PFVArControllerType2UserDefined::PFVArControllerType2UserDefined() {}; - -PFVArControllerType2UserDefined::~PFVArControllerType2UserDefined() {}; - - - -bool assign_PFVArControllerType2UserDefined_ProprietaryParameterDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(PFVArControllerType2UserDefined* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->ProprietaryParameterDynamics.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - -bool assign_PFVArControllerType2UserDefined_proprietary(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PFVArControllerType2UserDefined* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->proprietary; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -namespace CIMPP { - BaseClass* PFVArControllerType2UserDefined_factory() { - return new PFVArControllerType2UserDefined; - } -} - -void PFVArControllerType2UserDefined::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:PFVArControllerType2UserDefined"), &PFVArControllerType2UserDefined_factory)); -} - -void PFVArControllerType2UserDefined::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:PFVArControllerType2UserDefined.proprietary"), &assign_PFVArControllerType2UserDefined_proprietary)); - } - -void PFVArControllerType2UserDefined::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:PFVArControllerType2UserDefined.ProprietaryParameterDynamics"), &assign_PFVArControllerType2UserDefined_ProprietaryParameterDynamics)); -} - -const char PFVArControllerType2UserDefined::debugName[] = "PFVArControllerType2UserDefined"; -const char* PFVArControllerType2UserDefined::debugString() -{ - return PFVArControllerType2UserDefined::debugName; -} - -const BaseClassDefiner PFVArControllerType2UserDefined::declare() -{ - return BaseClassDefiner(PFVArControllerType2UserDefined::addConstructToMap, PFVArControllerType2UserDefined::addPrimitiveAssignFnsToMap, PFVArControllerType2UserDefined::addClassAssignFnsToMap, PFVArControllerType2UserDefined::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/PFVArControllerType2UserDefined.hpp b/CGMES_2.4.13_18DEC2013/PFVArControllerType2UserDefined.hpp deleted file mode 100644 index d4cdbd153..000000000 --- a/CGMES_2.4.13_18DEC2013/PFVArControllerType2UserDefined.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef PFVArControllerType2UserDefined_H -#define PFVArControllerType2UserDefined_H - -#include "PFVArControllerType2Dynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Boolean.hpp" - -namespace CIMPP { - - -class ProprietaryParameterDynamics; - /* - Power Factor or VAr controller Type II function block whose dynamic behaviour is described by - */ - class PFVArControllerType2UserDefined: public PFVArControllerType2Dynamics - { - - public: - CIMPP::Boolean proprietary; /* Behaviour is based on proprietary model as opposed to detailed model. true = user-defined model is proprietary with behaviour mutually understood by sending and receiving applications and parameters passed as general attributes false = user-defined model is explicitly defined in terms of control blocks and their input and output signals. Default: false */ - std::list ProprietaryParameterDynamics; /* Parameter of this proprietary user-defined model. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - PFVArControllerType2UserDefined(); - virtual ~PFVArControllerType2UserDefined(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* PFVArControllerType2UserDefined_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/PFVArType1IEEEPFController.cpp b/CGMES_2.4.13_18DEC2013/PFVArType1IEEEPFController.cpp deleted file mode 100644 index bc2548157..000000000 --- a/CGMES_2.4.13_18DEC2013/PFVArType1IEEEPFController.cpp +++ /dev/null @@ -1,161 +0,0 @@ -#include -#include "PFVArControllerType1Dynamics.hpp" -#include "PFVArType1IEEEPFController.hpp" - -#include "Boolean.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -PFVArType1IEEEPFController::PFVArType1IEEEPFController() {}; - -PFVArType1IEEEPFController::~PFVArType1IEEEPFController() {}; - - - - - - - - - - - -bool assign_PFVArType1IEEEPFController_ovex(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PFVArType1IEEEPFController* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ovex; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PFVArType1IEEEPFController_tpfc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PFVArType1IEEEPFController* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tpfc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PFVArType1IEEEPFController_vitmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PFVArType1IEEEPFController* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vitmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PFVArType1IEEEPFController_vpf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PFVArType1IEEEPFController* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vpf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PFVArType1IEEEPFController_vpfcbw(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PFVArType1IEEEPFController* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vpfcbw; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PFVArType1IEEEPFController_vpfref(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PFVArType1IEEEPFController* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vpfref; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PFVArType1IEEEPFController_vvtmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PFVArType1IEEEPFController* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vvtmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PFVArType1IEEEPFController_vvtmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PFVArType1IEEEPFController* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vvtmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* PFVArType1IEEEPFController_factory() { - return new PFVArType1IEEEPFController; - } -} - -void PFVArType1IEEEPFController::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:PFVArType1IEEEPFController"), &PFVArType1IEEEPFController_factory)); -} - -void PFVArType1IEEEPFController::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:PFVArType1IEEEPFController.ovex"), &assign_PFVArType1IEEEPFController_ovex)); - assign_map.insert(std::make_pair(std::string("cim:PFVArType1IEEEPFController.tpfc"), &assign_PFVArType1IEEEPFController_tpfc)); - assign_map.insert(std::make_pair(std::string("cim:PFVArType1IEEEPFController.vitmin"), &assign_PFVArType1IEEEPFController_vitmin)); - assign_map.insert(std::make_pair(std::string("cim:PFVArType1IEEEPFController.vpf"), &assign_PFVArType1IEEEPFController_vpf)); - assign_map.insert(std::make_pair(std::string("cim:PFVArType1IEEEPFController.vpfcbw"), &assign_PFVArType1IEEEPFController_vpfcbw)); - assign_map.insert(std::make_pair(std::string("cim:PFVArType1IEEEPFController.vpfref"), &assign_PFVArType1IEEEPFController_vpfref)); - assign_map.insert(std::make_pair(std::string("cim:PFVArType1IEEEPFController.vvtmax"), &assign_PFVArType1IEEEPFController_vvtmax)); - assign_map.insert(std::make_pair(std::string("cim:PFVArType1IEEEPFController.vvtmin"), &assign_PFVArType1IEEEPFController_vvtmin)); -} - -void PFVArType1IEEEPFController::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char PFVArType1IEEEPFController::debugName[] = "PFVArType1IEEEPFController"; -const char* PFVArType1IEEEPFController::debugString() -{ - return PFVArType1IEEEPFController::debugName; -} - -const BaseClassDefiner PFVArType1IEEEPFController::declare() -{ - return BaseClassDefiner(PFVArType1IEEEPFController::addConstructToMap, PFVArType1IEEEPFController::addPrimitiveAssignFnsToMap, PFVArType1IEEEPFController::addClassAssignFnsToMap, PFVArType1IEEEPFController::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/PFVArType1IEEEPFController.hpp b/CGMES_2.4.13_18DEC2013/PFVArType1IEEEPFController.hpp deleted file mode 100644 index e9e3af601..000000000 --- a/CGMES_2.4.13_18DEC2013/PFVArType1IEEEPFController.hpp +++ /dev/null @@ -1,50 +0,0 @@ -#ifndef PFVArType1IEEEPFController_H -#define PFVArType1IEEEPFController_H - -#include "PFVArControllerType1Dynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Boolean.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" - -namespace CIMPP { - - - /* - The class represents IEEE PF Controller Type 1 which operates by moving the voltage reference directly. Reference: IEEE Standard 421.5-2005 Section 11.2. - */ - class PFVArType1IEEEPFController: public PFVArControllerType1Dynamics - { - - public: - CIMPP::Boolean ovex; /* Overexcitation Flag () true = overexcited false = underexcited. Default: false */ - CIMPP::Seconds tpfc; /* PF controller time delay (). Typical Value = 5. Default: nullptr */ - CIMPP::PU vitmin; /* Minimum machine terminal current needed to enable pf/var controller (). Default: nullptr */ - CIMPP::PU vpf; /* Synchronous machine power factor (). Default: nullptr */ - CIMPP::Simple_Float vpfcbw; /* PF controller dead band (). Typical Value = 0.05. Default: nullptr */ - CIMPP::PU vpfref; /* PF controller reference (). Default: nullptr */ - CIMPP::PU vvtmax; /* Maximum machine terminal voltage needed for pf/var controller to be enabled (). Default: nullptr */ - CIMPP::PU vvtmin; /* Minimum machine terminal voltage needed to enable pf/var controller (). Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - PFVArType1IEEEPFController(); - virtual ~PFVArType1IEEEPFController(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* PFVArType1IEEEPFController_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/PFVArType1IEEEVArController.cpp b/CGMES_2.4.13_18DEC2013/PFVArType1IEEEVArController.cpp deleted file mode 100644 index 7e752901e..000000000 --- a/CGMES_2.4.13_18DEC2013/PFVArType1IEEEVArController.cpp +++ /dev/null @@ -1,131 +0,0 @@ -#include -#include "PFVArControllerType1Dynamics.hpp" -#include "PFVArType1IEEEVArController.hpp" - -#include "Seconds.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -PFVArType1IEEEVArController::PFVArType1IEEEVArController() {}; - -PFVArType1IEEEVArController::~PFVArType1IEEEVArController() {}; - - - - - - - - - -bool assign_PFVArType1IEEEVArController_tvarc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PFVArType1IEEEVArController* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tvarc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PFVArType1IEEEVArController_vvar(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PFVArType1IEEEVArController* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vvar; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PFVArType1IEEEVArController_vvarcbw(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PFVArType1IEEEVArController* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vvarcbw; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PFVArType1IEEEVArController_vvarref(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PFVArType1IEEEVArController* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vvarref; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PFVArType1IEEEVArController_vvtmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PFVArType1IEEEVArController* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vvtmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PFVArType1IEEEVArController_vvtmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PFVArType1IEEEVArController* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vvtmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* PFVArType1IEEEVArController_factory() { - return new PFVArType1IEEEVArController; - } -} - -void PFVArType1IEEEVArController::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:PFVArType1IEEEVArController"), &PFVArType1IEEEVArController_factory)); -} - -void PFVArType1IEEEVArController::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:PFVArType1IEEEVArController.tvarc"), &assign_PFVArType1IEEEVArController_tvarc)); - assign_map.insert(std::make_pair(std::string("cim:PFVArType1IEEEVArController.vvar"), &assign_PFVArType1IEEEVArController_vvar)); - assign_map.insert(std::make_pair(std::string("cim:PFVArType1IEEEVArController.vvarcbw"), &assign_PFVArType1IEEEVArController_vvarcbw)); - assign_map.insert(std::make_pair(std::string("cim:PFVArType1IEEEVArController.vvarref"), &assign_PFVArType1IEEEVArController_vvarref)); - assign_map.insert(std::make_pair(std::string("cim:PFVArType1IEEEVArController.vvtmax"), &assign_PFVArType1IEEEVArController_vvtmax)); - assign_map.insert(std::make_pair(std::string("cim:PFVArType1IEEEVArController.vvtmin"), &assign_PFVArType1IEEEVArController_vvtmin)); -} - -void PFVArType1IEEEVArController::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char PFVArType1IEEEVArController::debugName[] = "PFVArType1IEEEVArController"; -const char* PFVArType1IEEEVArController::debugString() -{ - return PFVArType1IEEEVArController::debugName; -} - -const BaseClassDefiner PFVArType1IEEEVArController::declare() -{ - return BaseClassDefiner(PFVArType1IEEEVArController::addConstructToMap, PFVArType1IEEEVArController::addPrimitiveAssignFnsToMap, PFVArType1IEEEVArController::addClassAssignFnsToMap, PFVArType1IEEEVArController::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/PFVArType1IEEEVArController.hpp b/CGMES_2.4.13_18DEC2013/PFVArType1IEEEVArController.hpp deleted file mode 100644 index 2f852e844..000000000 --- a/CGMES_2.4.13_18DEC2013/PFVArType1IEEEVArController.hpp +++ /dev/null @@ -1,47 +0,0 @@ -#ifndef PFVArType1IEEEVArController_H -#define PFVArType1IEEEVArController_H - -#include "PFVArControllerType1Dynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Seconds.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" - -namespace CIMPP { - - - /* - The class represents IEEE VAR Controller Type 1 which operates by moving the voltage reference directly. Reference: IEEE Standard 421.5-2005 Section 11.3. - */ - class PFVArType1IEEEVArController: public PFVArControllerType1Dynamics - { - - public: - CIMPP::Seconds tvarc; /* Var controller time delay (). Typical Value = 5. Default: nullptr */ - CIMPP::PU vvar; /* Synchronous machine power factor (). Default: nullptr */ - CIMPP::Simple_Float vvarcbw; /* Var controller dead band (). Typical Value = 0.02. Default: nullptr */ - CIMPP::PU vvarref; /* Var controller reference (). Default: nullptr */ - CIMPP::PU vvtmax; /* Maximum machine terminal voltage needed for pf/var controller to be enabled (). Default: nullptr */ - CIMPP::PU vvtmin; /* Minimum machine terminal voltage needed to enable pf/var controller (). Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - PFVArType1IEEEVArController(); - virtual ~PFVArType1IEEEVArController(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* PFVArType1IEEEVArController_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/PFVArType2Common1.cpp b/CGMES_2.4.13_18DEC2013/PFVArType2Common1.cpp deleted file mode 100644 index 69789ab36..000000000 --- a/CGMES_2.4.13_18DEC2013/PFVArType2Common1.cpp +++ /dev/null @@ -1,116 +0,0 @@ -#include -#include "PFVArControllerType2Dynamics.hpp" -#include "PFVArType2Common1.hpp" - -#include "Boolean.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -PFVArType2Common1::PFVArType2Common1() {}; - -PFVArType2Common1::~PFVArType2Common1() {}; - - - - - - - - -bool assign_PFVArType2Common1_j(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PFVArType2Common1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->j; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PFVArType2Common1_kp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PFVArType2Common1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PFVArType2Common1_ki(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PFVArType2Common1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ki; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PFVArType2Common1_max(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PFVArType2Common1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->max; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PFVArType2Common1_ref(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PFVArType2Common1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ref; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* PFVArType2Common1_factory() { - return new PFVArType2Common1; - } -} - -void PFVArType2Common1::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:PFVArType2Common1"), &PFVArType2Common1_factory)); -} - -void PFVArType2Common1::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:PFVArType2Common1.j"), &assign_PFVArType2Common1_j)); - assign_map.insert(std::make_pair(std::string("cim:PFVArType2Common1.kp"), &assign_PFVArType2Common1_kp)); - assign_map.insert(std::make_pair(std::string("cim:PFVArType2Common1.ki"), &assign_PFVArType2Common1_ki)); - assign_map.insert(std::make_pair(std::string("cim:PFVArType2Common1.max"), &assign_PFVArType2Common1_max)); - assign_map.insert(std::make_pair(std::string("cim:PFVArType2Common1.ref"), &assign_PFVArType2Common1_ref)); -} - -void PFVArType2Common1::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char PFVArType2Common1::debugName[] = "PFVArType2Common1"; -const char* PFVArType2Common1::debugString() -{ - return PFVArType2Common1::debugName; -} - -const BaseClassDefiner PFVArType2Common1::declare() -{ - return BaseClassDefiner(PFVArType2Common1::addConstructToMap, PFVArType2Common1::addPrimitiveAssignFnsToMap, PFVArType2Common1::addClassAssignFnsToMap, PFVArType2Common1::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/PFVArType2Common1.hpp b/CGMES_2.4.13_18DEC2013/PFVArType2Common1.hpp deleted file mode 100644 index ad830a145..000000000 --- a/CGMES_2.4.13_18DEC2013/PFVArType2Common1.hpp +++ /dev/null @@ -1,45 +0,0 @@ -#ifndef PFVArType2Common1_H -#define PFVArType2Common1_H - -#include "PFVArControllerType2Dynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Boolean.hpp" -#include "PU.hpp" - -namespace CIMPP { - - - /* - Power factor / Reactive power regulator. This model represents the power factor or reactive power controller such as the Basler SCP-250. The controller measures power factor or reactive power (PU on generator rated power) and compares it with the operator's set point. - */ - class PFVArType2Common1: public PFVArControllerType2Dynamics - { - - public: - CIMPP::Boolean j; /* Selector (J). true = control mode for reactive power false = control mode for power factor. Default: false */ - CIMPP::PU kp; /* Proportional gain (Kp). Default: nullptr */ - CIMPP::PU ki; /* Reset gain (Ki). Default: nullptr */ - CIMPP::PU max; /* Output limit (max). Default: nullptr */ - CIMPP::PU ref; /* Reference value of reactive power or power factor (Ref). The reference value is initialised by this model. This initialisation may override the value exchanged by this attribute to represent a plant operator`s change of the reference setting. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - PFVArType2Common1(); - virtual ~PFVArType2Common1(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* PFVArType2Common1_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/PFVArType2IEEEPFController.cpp b/CGMES_2.4.13_18DEC2013/PFVArType2IEEEPFController.cpp deleted file mode 100644 index 7e058f07a..000000000 --- a/CGMES_2.4.13_18DEC2013/PFVArType2IEEEPFController.cpp +++ /dev/null @@ -1,146 +0,0 @@ -#include -#include "PFVArControllerType2Dynamics.hpp" -#include "PFVArType2IEEEPFController.hpp" - -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "Boolean.hpp" - -using namespace CIMPP; - -PFVArType2IEEEPFController::PFVArType2IEEEPFController() {}; - -PFVArType2IEEEPFController::~PFVArType2IEEEPFController() {}; - - - - - - - - - - -bool assign_PFVArType2IEEEPFController_pfref(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PFVArType2IEEEPFController* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pfref; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PFVArType2IEEEPFController_vref(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PFVArType2IEEEPFController* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vref; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PFVArType2IEEEPFController_vclmt(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PFVArType2IEEEPFController* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vclmt; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PFVArType2IEEEPFController_kp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PFVArType2IEEEPFController* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PFVArType2IEEEPFController_ki(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PFVArType2IEEEPFController* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ki; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PFVArType2IEEEPFController_vs(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PFVArType2IEEEPFController* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vs; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PFVArType2IEEEPFController_exlon(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PFVArType2IEEEPFController* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->exlon; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* PFVArType2IEEEPFController_factory() { - return new PFVArType2IEEEPFController; - } -} - -void PFVArType2IEEEPFController::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:PFVArType2IEEEPFController"), &PFVArType2IEEEPFController_factory)); -} - -void PFVArType2IEEEPFController::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:PFVArType2IEEEPFController.pfref"), &assign_PFVArType2IEEEPFController_pfref)); - assign_map.insert(std::make_pair(std::string("cim:PFVArType2IEEEPFController.vref"), &assign_PFVArType2IEEEPFController_vref)); - assign_map.insert(std::make_pair(std::string("cim:PFVArType2IEEEPFController.vclmt"), &assign_PFVArType2IEEEPFController_vclmt)); - assign_map.insert(std::make_pair(std::string("cim:PFVArType2IEEEPFController.kp"), &assign_PFVArType2IEEEPFController_kp)); - assign_map.insert(std::make_pair(std::string("cim:PFVArType2IEEEPFController.ki"), &assign_PFVArType2IEEEPFController_ki)); - assign_map.insert(std::make_pair(std::string("cim:PFVArType2IEEEPFController.vs"), &assign_PFVArType2IEEEPFController_vs)); - assign_map.insert(std::make_pair(std::string("cim:PFVArType2IEEEPFController.exlon"), &assign_PFVArType2IEEEPFController_exlon)); -} - -void PFVArType2IEEEPFController::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char PFVArType2IEEEPFController::debugName[] = "PFVArType2IEEEPFController"; -const char* PFVArType2IEEEPFController::debugString() -{ - return PFVArType2IEEEPFController::debugName; -} - -const BaseClassDefiner PFVArType2IEEEPFController::declare() -{ - return BaseClassDefiner(PFVArType2IEEEPFController::addConstructToMap, PFVArType2IEEEPFController::addPrimitiveAssignFnsToMap, PFVArType2IEEEPFController::addClassAssignFnsToMap, PFVArType2IEEEPFController::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/PFVArType2IEEEPFController.hpp b/CGMES_2.4.13_18DEC2013/PFVArType2IEEEPFController.hpp deleted file mode 100644 index 480d6c0b9..000000000 --- a/CGMES_2.4.13_18DEC2013/PFVArType2IEEEPFController.hpp +++ /dev/null @@ -1,48 +0,0 @@ -#ifndef PFVArType2IEEEPFController_H -#define PFVArType2IEEEPFController_H - -#include "PFVArControllerType2Dynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "Boolean.hpp" - -namespace CIMPP { - - - /* - The class represents IEEE PF Controller Type 2 which is a summing point type controller and makes up the outside loop of a two-loop system. This controller is implemented as a slow PI type controller. The voltage regulator forms the inner loop and is implemented as a fast controller. Reference: IEEE Standard 421.5-2005 Section 11.4. - */ - class PFVArType2IEEEPFController: public PFVArControllerType2Dynamics - { - - public: - CIMPP::PU pfref; /* Power factor reference (). Default: nullptr */ - CIMPP::PU vref; /* Voltage regulator reference (). Default: nullptr */ - CIMPP::PU vclmt; /* Maximum output of the pf controller (). Typical Value = 0.1. Default: nullptr */ - CIMPP::PU kp; /* Proportional gain of the pf controller (). Typical Value = 1. Default: nullptr */ - CIMPP::PU ki; /* Integral gain of the pf controller (). Typical Value = 1. Default: nullptr */ - CIMPP::Simple_Float vs; /* Generator sensing voltage (). Default: nullptr */ - CIMPP::Boolean exlon; /* Overexcitation or under excitation flag () true = 1 (not in the overexcitation or underexcitation state, integral action is active) false = 0 (in the overexcitation or underexcitation state, so integral action is disabled to allow the limiter to play its role). Default: false */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - PFVArType2IEEEPFController(); - virtual ~PFVArType2IEEEPFController(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* PFVArType2IEEEPFController_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/PFVArType2IEEEVArController.cpp b/CGMES_2.4.13_18DEC2013/PFVArType2IEEEVArController.cpp deleted file mode 100644 index f5d150ecb..000000000 --- a/CGMES_2.4.13_18DEC2013/PFVArType2IEEEVArController.cpp +++ /dev/null @@ -1,146 +0,0 @@ -#include -#include "PFVArControllerType2Dynamics.hpp" -#include "PFVArType2IEEEVArController.hpp" - -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "Boolean.hpp" - -using namespace CIMPP; - -PFVArType2IEEEVArController::PFVArType2IEEEVArController() {}; - -PFVArType2IEEEVArController::~PFVArType2IEEEVArController() {}; - - - - - - - - - - -bool assign_PFVArType2IEEEVArController_qref(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PFVArType2IEEEVArController* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->qref; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PFVArType2IEEEVArController_vref(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PFVArType2IEEEVArController* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vref; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PFVArType2IEEEVArController_vclmt(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PFVArType2IEEEVArController* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vclmt; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PFVArType2IEEEVArController_kp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PFVArType2IEEEVArController* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PFVArType2IEEEVArController_ki(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PFVArType2IEEEVArController* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ki; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PFVArType2IEEEVArController_vs(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PFVArType2IEEEVArController* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vs; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PFVArType2IEEEVArController_exlon(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PFVArType2IEEEVArController* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->exlon; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* PFVArType2IEEEVArController_factory() { - return new PFVArType2IEEEVArController; - } -} - -void PFVArType2IEEEVArController::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:PFVArType2IEEEVArController"), &PFVArType2IEEEVArController_factory)); -} - -void PFVArType2IEEEVArController::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:PFVArType2IEEEVArController.qref"), &assign_PFVArType2IEEEVArController_qref)); - assign_map.insert(std::make_pair(std::string("cim:PFVArType2IEEEVArController.vref"), &assign_PFVArType2IEEEVArController_vref)); - assign_map.insert(std::make_pair(std::string("cim:PFVArType2IEEEVArController.vclmt"), &assign_PFVArType2IEEEVArController_vclmt)); - assign_map.insert(std::make_pair(std::string("cim:PFVArType2IEEEVArController.kp"), &assign_PFVArType2IEEEVArController_kp)); - assign_map.insert(std::make_pair(std::string("cim:PFVArType2IEEEVArController.ki"), &assign_PFVArType2IEEEVArController_ki)); - assign_map.insert(std::make_pair(std::string("cim:PFVArType2IEEEVArController.vs"), &assign_PFVArType2IEEEVArController_vs)); - assign_map.insert(std::make_pair(std::string("cim:PFVArType2IEEEVArController.exlon"), &assign_PFVArType2IEEEVArController_exlon)); -} - -void PFVArType2IEEEVArController::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char PFVArType2IEEEVArController::debugName[] = "PFVArType2IEEEVArController"; -const char* PFVArType2IEEEVArController::debugString() -{ - return PFVArType2IEEEVArController::debugName; -} - -const BaseClassDefiner PFVArType2IEEEVArController::declare() -{ - return BaseClassDefiner(PFVArType2IEEEVArController::addConstructToMap, PFVArType2IEEEVArController::addPrimitiveAssignFnsToMap, PFVArType2IEEEVArController::addClassAssignFnsToMap, PFVArType2IEEEVArController::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/PFVArType2IEEEVArController.hpp b/CGMES_2.4.13_18DEC2013/PFVArType2IEEEVArController.hpp deleted file mode 100644 index 6cd94b6b8..000000000 --- a/CGMES_2.4.13_18DEC2013/PFVArType2IEEEVArController.hpp +++ /dev/null @@ -1,48 +0,0 @@ -#ifndef PFVArType2IEEEVArController_H -#define PFVArType2IEEEVArController_H - -#include "PFVArControllerType2Dynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "Boolean.hpp" - -namespace CIMPP { - - - /* - The class represents IEEE VAR Controller Type 2 which is a summing point type controller. It makes up the outside loop of a two-loop system. This controller is implemented as a slow PI type controller, and the voltage regulator forms the inner loop and is implemented as a fast controller. Reference: IEEE Standard 421.5-2005 Section 11.5. - */ - class PFVArType2IEEEVArController: public PFVArControllerType2Dynamics - { - - public: - CIMPP::PU qref; /* Reactive power reference (). Default: nullptr */ - CIMPP::PU vref; /* Voltage regulator reference (). Default: nullptr */ - CIMPP::PU vclmt; /* Maximum output of the pf controller (). Default: nullptr */ - CIMPP::PU kp; /* Proportional gain of the pf controller (). Default: nullptr */ - CIMPP::PU ki; /* Integral gain of the pf controller (). Default: nullptr */ - CIMPP::Simple_Float vs; /* Generator sensing voltage (). Default: nullptr */ - CIMPP::Boolean exlon; /* Overexcitation or under excitation flag () true = 1 (not in the overexcitation or underexcitation state, integral action is active) false = 0 (in the overexcitation or underexcitation state, so integral action is disabled to allow the limiter to play its role). Default: false */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - PFVArType2IEEEVArController(); - virtual ~PFVArType2IEEEVArController(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* PFVArType2IEEEVArController_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/PU.cpp b/CGMES_2.4.13_18DEC2013/PU.cpp deleted file mode 100644 index 61bf98728..000000000 --- a/CGMES_2.4.13_18DEC2013/PU.cpp +++ /dev/null @@ -1,70 +0,0 @@ -#include "PU.hpp" -#include "../src/CIMExceptions.hpp" - -using namespace CIMPP; - -PU::PU() {} - -PU::~PU(){} - -PU::PU(long double value) : value(value), initialized(true) {} - -void PU::addConstructToMap(std::unordered_map& factory_map) {} - -void PU::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) {} - -void PU::addClassAssignFnsToMap(std::unordered_map& assign_map) {} - -const char PU::debugName[] = "PU"; -const char* PU::debugString() { - return PU::debugName; -} - - -const BaseClassDefiner PU::declare() { - return BaseClassDefiner(PU::addConstructToMap, PU::addPrimitiveAssignFnsToMap, PU::addClassAssignFnsToMap, PU::debugName); -} - -namespace CIMPP { - PU& PU::operator=(long double &rop) { - value = rop; - initialized = true; - return *this; - } - - PU& PU::operator-=(const PU& rhs) { - value -= rhs.value; - return *this; - } - - PU& PU::operator*=(const PU& rhs) { - value *= rhs.value; - return *this; - } - - PU& PU::operator/=(const PU& rhs) { - value /= rhs.value; - return *this; - } - - PU& PU::operator+=(const PU& rhs) { - value += rhs.value; - return *this; - } - - PU::operator long double() { - if(!initialized) - { - throw new ReadingUninitializedField(); - } - return value; - } - - std::istream& operator>>(std::istream& lop, PU& rop) { - std::string tmp; - lop >> tmp; - rop.value = stold(tmp); - rop.initialized = true; - return lop; - } -} diff --git a/CGMES_2.4.13_18DEC2013/PU.hpp b/CGMES_2.4.13_18DEC2013/PU.hpp deleted file mode 100644 index a83305ca5..000000000 --- a/CGMES_2.4.13_18DEC2013/PU.hpp +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef PU_H -#define PU_H - -#include -#include - -#include "BaseClass.hpp" - -namespace CIMPP -{ - class PU : public BaseClass - { - - public: - PU(); - virtual ~PU(); - PU(long double value); - static const BaseClassDefiner declare(); - PU& operator=(long double &rop); - PU& operator+=(const PU& rhs); - PU& operator-=(const PU& rhs); - PU& operator*=(const PU& rhs); - PU& operator/=(const PU& rhs); - friend std::istream& operator>>(std::istream& lop, PU& rop); - operator long double(); - - long double value = 0.0; - bool initialized = false; - - static const char debugName[]; - virtual const char* debugString(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - }; -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/PerCent.cpp b/CGMES_2.4.13_18DEC2013/PerCent.cpp deleted file mode 100644 index 057b28165..000000000 --- a/CGMES_2.4.13_18DEC2013/PerCent.cpp +++ /dev/null @@ -1,70 +0,0 @@ -#include "PerCent.hpp" -#include "../src/CIMExceptions.hpp" - -using namespace CIMPP; - -PerCent::PerCent() {} - -PerCent::~PerCent(){} - -PerCent::PerCent(long double value) : value(value), initialized(true) {} - -void PerCent::addConstructToMap(std::unordered_map& factory_map) {} - -void PerCent::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) {} - -void PerCent::addClassAssignFnsToMap(std::unordered_map& assign_map) {} - -const char PerCent::debugName[] = "PerCent"; -const char* PerCent::debugString() { - return PerCent::debugName; -} - - -const BaseClassDefiner PerCent::declare() { - return BaseClassDefiner(PerCent::addConstructToMap, PerCent::addPrimitiveAssignFnsToMap, PerCent::addClassAssignFnsToMap, PerCent::debugName); -} - -namespace CIMPP { - PerCent& PerCent::operator=(long double &rop) { - value = rop; - initialized = true; - return *this; - } - - PerCent& PerCent::operator-=(const PerCent& rhs) { - value -= rhs.value; - return *this; - } - - PerCent& PerCent::operator*=(const PerCent& rhs) { - value *= rhs.value; - return *this; - } - - PerCent& PerCent::operator/=(const PerCent& rhs) { - value /= rhs.value; - return *this; - } - - PerCent& PerCent::operator+=(const PerCent& rhs) { - value += rhs.value; - return *this; - } - - PerCent::operator long double() { - if(!initialized) - { - throw new ReadingUninitializedField(); - } - return value; - } - - std::istream& operator>>(std::istream& lop, PerCent& rop) { - std::string tmp; - lop >> tmp; - rop.value = stold(tmp); - rop.initialized = true; - return lop; - } -} diff --git a/CGMES_2.4.13_18DEC2013/PerCent.hpp b/CGMES_2.4.13_18DEC2013/PerCent.hpp deleted file mode 100644 index 065ec60f1..000000000 --- a/CGMES_2.4.13_18DEC2013/PerCent.hpp +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef PerCent_H -#define PerCent_H - -#include -#include - -#include "BaseClass.hpp" - -namespace CIMPP -{ - class PerCent : public BaseClass - { - - public: - PerCent(); - virtual ~PerCent(); - PerCent(long double value); - static const BaseClassDefiner declare(); - PerCent& operator=(long double &rop); - PerCent& operator+=(const PerCent& rhs); - PerCent& operator-=(const PerCent& rhs); - PerCent& operator*=(const PerCent& rhs); - PerCent& operator/=(const PerCent& rhs); - friend std::istream& operator>>(std::istream& lop, PerCent& rop); - operator long double(); - - long double value = 0.0; - bool initialized = false; - - static const char debugName[]; - virtual const char* debugString(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - }; -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/PerLengthDCLineParameter.cpp b/CGMES_2.4.13_18DEC2013/PerLengthDCLineParameter.cpp deleted file mode 100644 index 94b9d639b..000000000 --- a/CGMES_2.4.13_18DEC2013/PerLengthDCLineParameter.cpp +++ /dev/null @@ -1,90 +0,0 @@ -#include -#include "BaseClass.hpp" -#include "PerLengthDCLineParameter.hpp" - -#include "DCLineSegment.hpp" -#include "CapacitancePerLength.hpp" -#include "InductancePerLength.hpp" -#include "ResistancePerLength.hpp" - -using namespace CIMPP; - -PerLengthDCLineParameter::PerLengthDCLineParameter(): capacitance(nullptr), inductance(nullptr), resistance(nullptr) {}; - -PerLengthDCLineParameter::~PerLengthDCLineParameter() {}; - - -bool assign_PerLengthDCLineParameter_DCLineSegments(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(PerLengthDCLineParameter* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->DCLineSegments.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_PerLengthDCLineParameter_capacitance(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(PerLengthDCLineParameter* element = dynamic_cast(BaseClass_ptr1)) { - element->capacitance = dynamic_cast(BaseClass_ptr2); - if(element->capacitance != nullptr) - return true; - } - return false; -} - -bool assign_PerLengthDCLineParameter_inductance(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(PerLengthDCLineParameter* element = dynamic_cast(BaseClass_ptr1)) { - element->inductance = dynamic_cast(BaseClass_ptr2); - if(element->inductance != nullptr) - return true; - } - return false; -} - -bool assign_PerLengthDCLineParameter_resistance(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(PerLengthDCLineParameter* element = dynamic_cast(BaseClass_ptr1)) { - element->resistance = dynamic_cast(BaseClass_ptr2); - if(element->resistance != nullptr) - return true; - } - return false; -} - - - - - - -namespace CIMPP { - BaseClass* PerLengthDCLineParameter_factory() { - return new PerLengthDCLineParameter; - } -} - -void PerLengthDCLineParameter::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:PerLengthDCLineParameter"), &PerLengthDCLineParameter_factory)); -} - -void PerLengthDCLineParameter::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void PerLengthDCLineParameter::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:PerLengthDCLineParameter.DCLineSegments"), &assign_PerLengthDCLineParameter_DCLineSegments)); - assign_map.insert(std::make_pair(std::string("cim:PerLengthDCLineParameter.capacitance"), &assign_PerLengthDCLineParameter_capacitance)); - assign_map.insert(std::make_pair(std::string("cim:PerLengthDCLineParameter.inductance"), &assign_PerLengthDCLineParameter_inductance)); - assign_map.insert(std::make_pair(std::string("cim:PerLengthDCLineParameter.resistance"), &assign_PerLengthDCLineParameter_resistance)); -} - -const char PerLengthDCLineParameter::debugName[] = "PerLengthDCLineParameter"; -const char* PerLengthDCLineParameter::debugString() -{ - return PerLengthDCLineParameter::debugName; -} - -const BaseClassDefiner PerLengthDCLineParameter::declare() -{ - return BaseClassDefiner(PerLengthDCLineParameter::addConstructToMap, PerLengthDCLineParameter::addPrimitiveAssignFnsToMap, PerLengthDCLineParameter::addClassAssignFnsToMap, PerLengthDCLineParameter::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/PerLengthDCLineParameter.hpp b/CGMES_2.4.13_18DEC2013/PerLengthDCLineParameter.hpp deleted file mode 100644 index b72e976cd..000000000 --- a/CGMES_2.4.13_18DEC2013/PerLengthDCLineParameter.hpp +++ /dev/null @@ -1,46 +0,0 @@ -#ifndef PerLengthDCLineParameter_H -#define PerLengthDCLineParameter_H - -#include "BaseClass.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class DCLineSegment; -class CapacitancePerLength; -class InductancePerLength; -class ResistancePerLength; - /* - - */ - class PerLengthDCLineParameter: public BaseClass - { - - public: - std::list DCLineSegments; /* All line segments described by this set of per-length parameters. Default: 0 */ - CIMPP::CapacitancePerLength* capacitance; /* Capacitance per unit of length of the DC line segment; significant for cables only. Default: nullptr */ - CIMPP::InductancePerLength* inductance; /* Inductance per unit of length of the DC line segment. Default: nullptr */ - CIMPP::ResistancePerLength* resistance; /* Resistance per length of the DC line segment. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - PerLengthDCLineParameter(); - virtual ~PerLengthDCLineParameter(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* PerLengthDCLineParameter_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/PetersenCoil.cpp b/CGMES_2.4.13_18DEC2013/PetersenCoil.cpp deleted file mode 100644 index 0026ba8bc..000000000 --- a/CGMES_2.4.13_18DEC2013/PetersenCoil.cpp +++ /dev/null @@ -1,146 +0,0 @@ -#include -#include "EarthFaultCompensator.hpp" -#include "PetersenCoil.hpp" - -#include "PetersenCoilModeKind.hpp" -#include "Voltage.hpp" -#include "CurrentFlow.hpp" -#include "CurrentFlow.hpp" -#include "Reactance.hpp" -#include "Reactance.hpp" -#include "Reactance.hpp" - -using namespace CIMPP; - -PetersenCoil::PetersenCoil() {}; - -PetersenCoil::~PetersenCoil() {}; - - - - - - - - - - -bool assign_PetersenCoil_mode(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PetersenCoil* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->mode; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PetersenCoil_nominalU(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PetersenCoil* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->nominalU; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PetersenCoil_offsetCurrent(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PetersenCoil* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->offsetCurrent; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PetersenCoil_positionCurrent(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PetersenCoil* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->positionCurrent; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PetersenCoil_xGroundMax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PetersenCoil* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->xGroundMax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PetersenCoil_xGroundMin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PetersenCoil* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->xGroundMin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PetersenCoil_xGroundNominal(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PetersenCoil* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->xGroundNominal; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* PetersenCoil_factory() { - return new PetersenCoil; - } -} - -void PetersenCoil::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:PetersenCoil"), &PetersenCoil_factory)); -} - -void PetersenCoil::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:PetersenCoil.mode"), &assign_PetersenCoil_mode)); - assign_map.insert(std::make_pair(std::string("cim:PetersenCoil.nominalU"), &assign_PetersenCoil_nominalU)); - assign_map.insert(std::make_pair(std::string("cim:PetersenCoil.offsetCurrent"), &assign_PetersenCoil_offsetCurrent)); - assign_map.insert(std::make_pair(std::string("cim:PetersenCoil.positionCurrent"), &assign_PetersenCoil_positionCurrent)); - assign_map.insert(std::make_pair(std::string("cim:PetersenCoil.xGroundMax"), &assign_PetersenCoil_xGroundMax)); - assign_map.insert(std::make_pair(std::string("cim:PetersenCoil.xGroundMin"), &assign_PetersenCoil_xGroundMin)); - assign_map.insert(std::make_pair(std::string("cim:PetersenCoil.xGroundNominal"), &assign_PetersenCoil_xGroundNominal)); -} - -void PetersenCoil::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char PetersenCoil::debugName[] = "PetersenCoil"; -const char* PetersenCoil::debugString() -{ - return PetersenCoil::debugName; -} - -const BaseClassDefiner PetersenCoil::declare() -{ - return BaseClassDefiner(PetersenCoil::addConstructToMap, PetersenCoil::addPrimitiveAssignFnsToMap, PetersenCoil::addClassAssignFnsToMap, PetersenCoil::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/PetersenCoil.hpp b/CGMES_2.4.13_18DEC2013/PetersenCoil.hpp deleted file mode 100644 index 4c22351bc..000000000 --- a/CGMES_2.4.13_18DEC2013/PetersenCoil.hpp +++ /dev/null @@ -1,49 +0,0 @@ -#ifndef PetersenCoil_H -#define PetersenCoil_H - -#include "EarthFaultCompensator.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PetersenCoilModeKind.hpp" -#include "Voltage.hpp" -#include "CurrentFlow.hpp" -#include "Reactance.hpp" - -namespace CIMPP { - - - /* - A tunable impedance device normally used to offset line charging during single line faults in an ungrounded section of network. - */ - class PetersenCoil: public EarthFaultCompensator - { - - public: - CIMPP::PetersenCoilModeKind mode; /* The mode of operation of the Petersen coil. Default: 0 */ - CIMPP::Voltage nominalU; /* The nominal voltage for which the coil is designed. Default: nullptr */ - CIMPP::CurrentFlow offsetCurrent; /* The offset current that the Petersen coil controller is operating from the resonant point. This is normally a fixed amount for which the controller is configured and could be positive or negative. Typically 0 to 60 Amperes depending on voltage and resonance conditions. Default: nullptr */ - CIMPP::CurrentFlow positionCurrent; /* The control current used to control the Petersen coil also known as the position current. Typically in the range of 20-200mA. Default: nullptr */ - CIMPP::Reactance xGroundMax; /* The maximum reactance. Default: nullptr */ - CIMPP::Reactance xGroundMin; /* The minimum reactance. Default: nullptr */ - CIMPP::Reactance xGroundNominal; /* The nominal reactance. This is the operating point (normally over compensation) that is defined based on the resonance point in the healthy network condition. The impedance is calculated based on nominal voltage divided by position current. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - PetersenCoil(); - virtual ~PetersenCoil(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* PetersenCoil_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/PetersenCoilModeKind.cpp b/CGMES_2.4.13_18DEC2013/PetersenCoilModeKind.cpp deleted file mode 100644 index 8f8096909..000000000 --- a/CGMES_2.4.13_18DEC2013/PetersenCoilModeKind.cpp +++ /dev/null @@ -1,42 +0,0 @@ -#include -#include -#include "PetersenCoilModeKind.hpp" - -using namespace CIMPP; - -namespace CIMPP { - std::istream& operator>>(std::istream& lop, CIMPP::PetersenCoilModeKind& rop) - { - std::string EnumSymbol; - lop >> EnumSymbol; - - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "PetersenCoilModeKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "fixed") - { - rop = PetersenCoilModeKind::fixed; - return lop; - } - if(EnumSymbol == "manual") - { - rop = PetersenCoilModeKind::manual; - return lop; - } - if(EnumSymbol == "automaticPositioning") - { - rop = PetersenCoilModeKind::automaticPositioning; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; - } -} - diff --git a/CGMES_2.4.13_18DEC2013/PetersenCoilModeKind.hpp b/CGMES_2.4.13_18DEC2013/PetersenCoilModeKind.hpp deleted file mode 100644 index f1aac46cf..000000000 --- a/CGMES_2.4.13_18DEC2013/PetersenCoilModeKind.hpp +++ /dev/null @@ -1,25 +0,0 @@ -#ifndef PetersenCoilModeKind_H -#define PetersenCoilModeKind_H - -namespace CIMPP { - /* - The mode of operation for a Petersen coil. - */ - enum class PetersenCoilModeKind - { - /** - * Fixed position. - */ - fixed, - /** - * Manual positioning. - */ - manual, - /** - * Automatic positioning. - */ - automaticPositioning, - }; - std::istream& operator>>(std::istream& lop, CIMPP::PetersenCoilModeKind& rop); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/PhaseCode.cpp b/CGMES_2.4.13_18DEC2013/PhaseCode.cpp deleted file mode 100644 index b493c0a41..000000000 --- a/CGMES_2.4.13_18DEC2013/PhaseCode.cpp +++ /dev/null @@ -1,132 +0,0 @@ -#include -#include -#include "PhaseCode.hpp" - -using namespace CIMPP; - -namespace CIMPP { - std::istream& operator>>(std::istream& lop, CIMPP::PhaseCode& rop) - { - std::string EnumSymbol; - lop >> EnumSymbol; - - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "PhaseCode") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "ABCN") - { - rop = PhaseCode::ABCN; - return lop; - } - if(EnumSymbol == "ABC") - { - rop = PhaseCode::ABC; - return lop; - } - if(EnumSymbol == "ABN") - { - rop = PhaseCode::ABN; - return lop; - } - if(EnumSymbol == "ACN") - { - rop = PhaseCode::ACN; - return lop; - } - if(EnumSymbol == "BCN") - { - rop = PhaseCode::BCN; - return lop; - } - if(EnumSymbol == "AB") - { - rop = PhaseCode::AB; - return lop; - } - if(EnumSymbol == "AC") - { - rop = PhaseCode::AC; - return lop; - } - if(EnumSymbol == "BC") - { - rop = PhaseCode::BC; - return lop; - } - if(EnumSymbol == "AN") - { - rop = PhaseCode::AN; - return lop; - } - if(EnumSymbol == "BN") - { - rop = PhaseCode::BN; - return lop; - } - if(EnumSymbol == "CN") - { - rop = PhaseCode::CN; - return lop; - } - if(EnumSymbol == "A") - { - rop = PhaseCode::A; - return lop; - } - if(EnumSymbol == "B") - { - rop = PhaseCode::B; - return lop; - } - if(EnumSymbol == "C") - { - rop = PhaseCode::C; - return lop; - } - if(EnumSymbol == "N") - { - rop = PhaseCode::N; - return lop; - } - if(EnumSymbol == "s1N") - { - rop = PhaseCode::s1N; - return lop; - } - if(EnumSymbol == "s2N") - { - rop = PhaseCode::s2N; - return lop; - } - if(EnumSymbol == "s12N") - { - rop = PhaseCode::s12N; - return lop; - } - if(EnumSymbol == "s1") - { - rop = PhaseCode::s1; - return lop; - } - if(EnumSymbol == "s2") - { - rop = PhaseCode::s2; - return lop; - } - if(EnumSymbol == "s12") - { - rop = PhaseCode::s12; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; - } -} - diff --git a/CGMES_2.4.13_18DEC2013/PhaseCode.hpp b/CGMES_2.4.13_18DEC2013/PhaseCode.hpp deleted file mode 100644 index 383677709..000000000 --- a/CGMES_2.4.13_18DEC2013/PhaseCode.hpp +++ /dev/null @@ -1,97 +0,0 @@ -#ifndef PhaseCode_H -#define PhaseCode_H - -namespace CIMPP { - /* - Enumeration of phase identifiers. Allows designation of phases for both transmission and distribution equipment, circuits and loads. Residential and small commercial loads are often served from single-phase, or split-phase, secondary circuits. For example of s12N, phases 1 and 2 refer to hot wires that are 180 degrees out of phase, while N refers to the neutral wire. Through single-phase transformer connections, these secondary circuits may be served from one or two of the primary phases A, B, and C. For three-phase loads, use the A, B, C phase codes instead of s12N. - */ - enum class PhaseCode - { - /** - * Phases A, B, C, and N. - */ - ABCN, - /** - * Phases A, B, and C. - */ - ABC, - /** - * Phases A, B, and neutral. - */ - ABN, - /** - * Phases A, C and neutral. - */ - ACN, - /** - * Phases B, C, and neutral. - */ - BCN, - /** - * Phases A and B. - */ - AB, - /** - * Phases A and C. - */ - AC, - /** - * Phases B and C. - */ - BC, - /** - * Phases A and neutral. - */ - AN, - /** - * Phases B and neutral. - */ - BN, - /** - * Phases C and neutral. - */ - CN, - /** - * Phase A. - */ - A, - /** - * Phase B. - */ - B, - /** - * Phase C. - */ - C, - /** - * Neutral phase. - */ - N, - /** - * Secondary phase 1 and neutral. - */ - s1N, - /** - * Secondary phase 2 and neutral. - */ - s2N, - /** - * Secondary phases 1, 2, and neutral. - */ - s12N, - /** - * Secondary phase 1. - */ - s1, - /** - * Secondary phase 2. - */ - s2, - /** - * Secondary phase 1 and 2. - */ - s12, - }; - std::istream& operator>>(std::istream& lop, CIMPP::PhaseCode& rop); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/PhaseTapChanger.cpp b/CGMES_2.4.13_18DEC2013/PhaseTapChanger.cpp deleted file mode 100644 index cbfac61df..000000000 --- a/CGMES_2.4.13_18DEC2013/PhaseTapChanger.cpp +++ /dev/null @@ -1,54 +0,0 @@ -#include -#include "TapChanger.hpp" -#include "PhaseTapChanger.hpp" - -#include "TransformerEnd.hpp" - -using namespace CIMPP; - -PhaseTapChanger::PhaseTapChanger(): TransformerEnd(nullptr) {}; - -PhaseTapChanger::~PhaseTapChanger() {}; - - -bool assign_TransformerEnd_PhaseTapChanger(BaseClass*, BaseClass*); -bool assign_PhaseTapChanger_TransformerEnd(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(PhaseTapChanger* element = dynamic_cast(BaseClass_ptr1)) { - element->TransformerEnd = dynamic_cast(BaseClass_ptr2); - if(element->TransformerEnd != nullptr) - return assign_TransformerEnd_PhaseTapChanger(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - -namespace CIMPP { - BaseClass* PhaseTapChanger_factory() { - return new PhaseTapChanger; - } -} - -void PhaseTapChanger::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:PhaseTapChanger"), &PhaseTapChanger_factory)); -} - -void PhaseTapChanger::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void PhaseTapChanger::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:PhaseTapChanger.TransformerEnd"), &assign_PhaseTapChanger_TransformerEnd)); -} - -const char PhaseTapChanger::debugName[] = "PhaseTapChanger"; -const char* PhaseTapChanger::debugString() -{ - return PhaseTapChanger::debugName; -} - -const BaseClassDefiner PhaseTapChanger::declare() -{ - return BaseClassDefiner(PhaseTapChanger::addConstructToMap, PhaseTapChanger::addPrimitiveAssignFnsToMap, PhaseTapChanger::addClassAssignFnsToMap, PhaseTapChanger::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/PhaseTapChanger.hpp b/CGMES_2.4.13_18DEC2013/PhaseTapChanger.hpp deleted file mode 100644 index 5d806868e..000000000 --- a/CGMES_2.4.13_18DEC2013/PhaseTapChanger.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef PhaseTapChanger_H -#define PhaseTapChanger_H - -#include "TapChanger.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class TransformerEnd; - /* - A transformer phase shifting tap model that controls the phase angle difference across the power transformer and potentially the active power flow through the power transformer. This phase tap model may also impact the voltage magnitude. - */ - class PhaseTapChanger: public TapChanger - { - - public: - CIMPP::TransformerEnd* TransformerEnd; /* Phase tap changer associated with this transformer end. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - PhaseTapChanger(); - virtual ~PhaseTapChanger(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* PhaseTapChanger_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/PhaseTapChangerAsymmetrical.cpp b/CGMES_2.4.13_18DEC2013/PhaseTapChangerAsymmetrical.cpp deleted file mode 100644 index ef9f2ab24..000000000 --- a/CGMES_2.4.13_18DEC2013/PhaseTapChangerAsymmetrical.cpp +++ /dev/null @@ -1,56 +0,0 @@ -#include -#include "PhaseTapChangerNonLinear.hpp" -#include "PhaseTapChangerAsymmetrical.hpp" - -#include "AngleDegrees.hpp" - -using namespace CIMPP; - -PhaseTapChangerAsymmetrical::PhaseTapChangerAsymmetrical() {}; - -PhaseTapChangerAsymmetrical::~PhaseTapChangerAsymmetrical() {}; - - - - -bool assign_PhaseTapChangerAsymmetrical_windingConnectionAngle(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PhaseTapChangerAsymmetrical* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->windingConnectionAngle; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* PhaseTapChangerAsymmetrical_factory() { - return new PhaseTapChangerAsymmetrical; - } -} - -void PhaseTapChangerAsymmetrical::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:PhaseTapChangerAsymmetrical"), &PhaseTapChangerAsymmetrical_factory)); -} - -void PhaseTapChangerAsymmetrical::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:PhaseTapChangerAsymmetrical.windingConnectionAngle"), &assign_PhaseTapChangerAsymmetrical_windingConnectionAngle)); -} - -void PhaseTapChangerAsymmetrical::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char PhaseTapChangerAsymmetrical::debugName[] = "PhaseTapChangerAsymmetrical"; -const char* PhaseTapChangerAsymmetrical::debugString() -{ - return PhaseTapChangerAsymmetrical::debugName; -} - -const BaseClassDefiner PhaseTapChangerAsymmetrical::declare() -{ - return BaseClassDefiner(PhaseTapChangerAsymmetrical::addConstructToMap, PhaseTapChangerAsymmetrical::addPrimitiveAssignFnsToMap, PhaseTapChangerAsymmetrical::addClassAssignFnsToMap, PhaseTapChangerAsymmetrical::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/PhaseTapChangerAsymmetrical.hpp b/CGMES_2.4.13_18DEC2013/PhaseTapChangerAsymmetrical.hpp deleted file mode 100644 index 6e2cbfdff..000000000 --- a/CGMES_2.4.13_18DEC2013/PhaseTapChangerAsymmetrical.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef PhaseTapChangerAsymmetrical_H -#define PhaseTapChangerAsymmetrical_H - -#include "PhaseTapChangerNonLinear.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "AngleDegrees.hpp" - -namespace CIMPP { - - - /* - Describes the tap model for an asymmetrical phase shifting transformer in which the difference voltage vector adds to the primary side voltage. The angle between the primary side voltage and the difference voltage is named the winding connection angle. The phase shift depends on both the difference voltage magnitude and the winding connection angle. - */ - class PhaseTapChangerAsymmetrical: public PhaseTapChangerNonLinear - { - - public: - CIMPP::AngleDegrees windingConnectionAngle; /* The phase angle between the in-phase winding and the out-of -phase winding used for creating phase shift. The out-of-phase winding produces what is known as the difference voltage. Setting this angle to 90 degrees is not the same as a symmemtrical transformer. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - PhaseTapChangerAsymmetrical(); - virtual ~PhaseTapChangerAsymmetrical(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* PhaseTapChangerAsymmetrical_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/PhaseTapChangerLinear.cpp b/CGMES_2.4.13_18DEC2013/PhaseTapChangerLinear.cpp deleted file mode 100644 index e098e2fbf..000000000 --- a/CGMES_2.4.13_18DEC2013/PhaseTapChangerLinear.cpp +++ /dev/null @@ -1,86 +0,0 @@ -#include -#include "PhaseTapChanger.hpp" -#include "PhaseTapChangerLinear.hpp" - -#include "AngleDegrees.hpp" -#include "Reactance.hpp" -#include "Reactance.hpp" - -using namespace CIMPP; - -PhaseTapChangerLinear::PhaseTapChangerLinear() {}; - -PhaseTapChangerLinear::~PhaseTapChangerLinear() {}; - - - - - - -bool assign_PhaseTapChangerLinear_stepPhaseShiftIncrement(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PhaseTapChangerLinear* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->stepPhaseShiftIncrement; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PhaseTapChangerLinear_xMax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PhaseTapChangerLinear* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->xMax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PhaseTapChangerLinear_xMin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PhaseTapChangerLinear* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->xMin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* PhaseTapChangerLinear_factory() { - return new PhaseTapChangerLinear; - } -} - -void PhaseTapChangerLinear::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:PhaseTapChangerLinear"), &PhaseTapChangerLinear_factory)); -} - -void PhaseTapChangerLinear::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:PhaseTapChangerLinear.stepPhaseShiftIncrement"), &assign_PhaseTapChangerLinear_stepPhaseShiftIncrement)); - assign_map.insert(std::make_pair(std::string("cim:PhaseTapChangerLinear.xMax"), &assign_PhaseTapChangerLinear_xMax)); - assign_map.insert(std::make_pair(std::string("cim:PhaseTapChangerLinear.xMin"), &assign_PhaseTapChangerLinear_xMin)); -} - -void PhaseTapChangerLinear::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char PhaseTapChangerLinear::debugName[] = "PhaseTapChangerLinear"; -const char* PhaseTapChangerLinear::debugString() -{ - return PhaseTapChangerLinear::debugName; -} - -const BaseClassDefiner PhaseTapChangerLinear::declare() -{ - return BaseClassDefiner(PhaseTapChangerLinear::addConstructToMap, PhaseTapChangerLinear::addPrimitiveAssignFnsToMap, PhaseTapChangerLinear::addClassAssignFnsToMap, PhaseTapChangerLinear::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/PhaseTapChangerLinear.hpp b/CGMES_2.4.13_18DEC2013/PhaseTapChangerLinear.hpp deleted file mode 100644 index f53e2f1dc..000000000 --- a/CGMES_2.4.13_18DEC2013/PhaseTapChangerLinear.hpp +++ /dev/null @@ -1,43 +0,0 @@ -#ifndef PhaseTapChangerLinear_H -#define PhaseTapChangerLinear_H - -#include "PhaseTapChanger.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "AngleDegrees.hpp" -#include "Reactance.hpp" - -namespace CIMPP { - - - /* - Describes a tap changer with a linear relation between the tap step and the phase angle difference across the transformer. This is a mathematical model that is an approximation of a real phase tap changer. The phase angle is computed as stepPhaseShitfIncrement times the tap position. The secondary side voltage magnitude is the same as at the primary side. - */ - class PhaseTapChangerLinear: public PhaseTapChanger - { - - public: - CIMPP::AngleDegrees stepPhaseShiftIncrement; /* Phase shift per step position. A positive value indicates a positive phase shift from the winding where the tap is located to the other winding (for a two-winding transformer). The actual phase shift increment might be more accurately computed from the symmetrical or asymmetrical models or a tap step table lookup if those are available. Default: nullptr */ - CIMPP::Reactance xMax; /* The reactance depend on the tap position according to a `u` shaped curve. The maximum reactance (xMax) appear at the low and high tap positions. Default: nullptr */ - CIMPP::Reactance xMin; /* The reactance depend on the tap position according to a `u` shaped curve. The minimum reactance (xMin) appear at the mid tap position. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - PhaseTapChangerLinear(); - virtual ~PhaseTapChangerLinear(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* PhaseTapChangerLinear_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/PhaseTapChangerNonLinear.cpp b/CGMES_2.4.13_18DEC2013/PhaseTapChangerNonLinear.cpp deleted file mode 100644 index 321bcc079..000000000 --- a/CGMES_2.4.13_18DEC2013/PhaseTapChangerNonLinear.cpp +++ /dev/null @@ -1,86 +0,0 @@ -#include -#include "PhaseTapChanger.hpp" -#include "PhaseTapChangerNonLinear.hpp" - -#include "PerCent.hpp" -#include "Reactance.hpp" -#include "Reactance.hpp" - -using namespace CIMPP; - -PhaseTapChangerNonLinear::PhaseTapChangerNonLinear() {}; - -PhaseTapChangerNonLinear::~PhaseTapChangerNonLinear() {}; - - - - - - -bool assign_PhaseTapChangerNonLinear_voltageStepIncrement(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PhaseTapChangerNonLinear* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->voltageStepIncrement; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PhaseTapChangerNonLinear_xMax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PhaseTapChangerNonLinear* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->xMax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PhaseTapChangerNonLinear_xMin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PhaseTapChangerNonLinear* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->xMin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* PhaseTapChangerNonLinear_factory() { - return new PhaseTapChangerNonLinear; - } -} - -void PhaseTapChangerNonLinear::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:PhaseTapChangerNonLinear"), &PhaseTapChangerNonLinear_factory)); -} - -void PhaseTapChangerNonLinear::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:PhaseTapChangerNonLinear.voltageStepIncrement"), &assign_PhaseTapChangerNonLinear_voltageStepIncrement)); - assign_map.insert(std::make_pair(std::string("cim:PhaseTapChangerNonLinear.xMax"), &assign_PhaseTapChangerNonLinear_xMax)); - assign_map.insert(std::make_pair(std::string("cim:PhaseTapChangerNonLinear.xMin"), &assign_PhaseTapChangerNonLinear_xMin)); -} - -void PhaseTapChangerNonLinear::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char PhaseTapChangerNonLinear::debugName[] = "PhaseTapChangerNonLinear"; -const char* PhaseTapChangerNonLinear::debugString() -{ - return PhaseTapChangerNonLinear::debugName; -} - -const BaseClassDefiner PhaseTapChangerNonLinear::declare() -{ - return BaseClassDefiner(PhaseTapChangerNonLinear::addConstructToMap, PhaseTapChangerNonLinear::addPrimitiveAssignFnsToMap, PhaseTapChangerNonLinear::addClassAssignFnsToMap, PhaseTapChangerNonLinear::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/PhaseTapChangerNonLinear.hpp b/CGMES_2.4.13_18DEC2013/PhaseTapChangerNonLinear.hpp deleted file mode 100644 index 49fd4efa1..000000000 --- a/CGMES_2.4.13_18DEC2013/PhaseTapChangerNonLinear.hpp +++ /dev/null @@ -1,43 +0,0 @@ -#ifndef PhaseTapChangerNonLinear_H -#define PhaseTapChangerNonLinear_H - -#include "PhaseTapChanger.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PerCent.hpp" -#include "Reactance.hpp" - -namespace CIMPP { - - - /* - The non-linear phase tap changer describes the non-linear behavior of a phase tap changer. This is a base class for the symmetrical and asymmetrical phase tap changer models. The details of these models can be found in the IEC 61970-301 document. - */ - class PhaseTapChangerNonLinear: public PhaseTapChanger - { - - public: - CIMPP::PerCent voltageStepIncrement; /* The voltage step increment on the out of phase winding specified in percent of nominal voltage of the transformer end. Default: nullptr */ - CIMPP::Reactance xMax; /* The reactance depend on the tap position according to a `u` shaped curve. The maximum reactance (xMax) appear at the low and high tap positions. Default: nullptr */ - CIMPP::Reactance xMin; /* The reactance depend on the tap position according to a `u` shaped curve. The minimum reactance (xMin) appear at the mid tap position. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - PhaseTapChangerNonLinear(); - virtual ~PhaseTapChangerNonLinear(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* PhaseTapChangerNonLinear_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/PhaseTapChangerSymmetrical.cpp b/CGMES_2.4.13_18DEC2013/PhaseTapChangerSymmetrical.cpp deleted file mode 100644 index 28464b003..000000000 --- a/CGMES_2.4.13_18DEC2013/PhaseTapChangerSymmetrical.cpp +++ /dev/null @@ -1,41 +0,0 @@ -#include -#include "PhaseTapChangerNonLinear.hpp" -#include "PhaseTapChangerSymmetrical.hpp" - - -using namespace CIMPP; - -PhaseTapChangerSymmetrical::PhaseTapChangerSymmetrical() {}; - -PhaseTapChangerSymmetrical::~PhaseTapChangerSymmetrical() {}; - - - -namespace CIMPP { - BaseClass* PhaseTapChangerSymmetrical_factory() { - return new PhaseTapChangerSymmetrical; - } -} - -void PhaseTapChangerSymmetrical::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:PhaseTapChangerSymmetrical"), &PhaseTapChangerSymmetrical_factory)); -} - -void PhaseTapChangerSymmetrical::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { -} - -void PhaseTapChangerSymmetrical::addClassAssignFnsToMap(std::unordered_map& assign_map) { -} - -const char PhaseTapChangerSymmetrical::debugName[] = "PhaseTapChangerSymmetrical"; -const char* PhaseTapChangerSymmetrical::debugString() -{ - return PhaseTapChangerSymmetrical::debugName; -} - -const BaseClassDefiner PhaseTapChangerSymmetrical::declare() -{ - return BaseClassDefiner(PhaseTapChangerSymmetrical::addConstructToMap, PhaseTapChangerSymmetrical::addPrimitiveAssignFnsToMap, PhaseTapChangerSymmetrical::addClassAssignFnsToMap, PhaseTapChangerSymmetrical::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/PhaseTapChangerSymmetrical.hpp b/CGMES_2.4.13_18DEC2013/PhaseTapChangerSymmetrical.hpp deleted file mode 100644 index 91be9c6f2..000000000 --- a/CGMES_2.4.13_18DEC2013/PhaseTapChangerSymmetrical.hpp +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef PhaseTapChangerSymmetrical_H -#define PhaseTapChangerSymmetrical_H - -#include "PhaseTapChangerNonLinear.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - - /* - Describes a symmetrical phase shifting transformer tap model in which the secondary side voltage magnitude is the same as at the primary side. The difference voltage magnitude is the base in an equal-sided triangle where the sides corresponds to the primary and secondary voltages. The phase angle difference corresponds to the top angle and can be expressed as twice the arctangent of half the total difference voltage. - */ - class PhaseTapChangerSymmetrical: public PhaseTapChangerNonLinear - { - - public: - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - PhaseTapChangerSymmetrical(); - virtual ~PhaseTapChangerSymmetrical(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* PhaseTapChangerSymmetrical_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/PhaseTapChangerTable.cpp b/CGMES_2.4.13_18DEC2013/PhaseTapChangerTable.cpp deleted file mode 100644 index 178b12a8d..000000000 --- a/CGMES_2.4.13_18DEC2013/PhaseTapChangerTable.cpp +++ /dev/null @@ -1,67 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "PhaseTapChangerTable.hpp" - -#include "PhaseTapChangerTablePoint.hpp" -#include "PhaseTapChangerTabular.hpp" - -using namespace CIMPP; - -PhaseTapChangerTable::PhaseTapChangerTable() {}; - -PhaseTapChangerTable::~PhaseTapChangerTable() {}; - - -bool assign_PhaseTapChangerTable_PhaseTapChangerTablePoint(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(PhaseTapChangerTable* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->PhaseTapChangerTablePoint.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_PhaseTapChangerTable_PhaseTapChangerTabular(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(PhaseTapChangerTable* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->PhaseTapChangerTabular.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - - - -namespace CIMPP { - BaseClass* PhaseTapChangerTable_factory() { - return new PhaseTapChangerTable; - } -} - -void PhaseTapChangerTable::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:PhaseTapChangerTable"), &PhaseTapChangerTable_factory)); -} - -void PhaseTapChangerTable::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void PhaseTapChangerTable::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:PhaseTapChangerTable.PhaseTapChangerTablePoint"), &assign_PhaseTapChangerTable_PhaseTapChangerTablePoint)); - assign_map.insert(std::make_pair(std::string("cim:PhaseTapChangerTable.PhaseTapChangerTabular"), &assign_PhaseTapChangerTable_PhaseTapChangerTabular)); -} - -const char PhaseTapChangerTable::debugName[] = "PhaseTapChangerTable"; -const char* PhaseTapChangerTable::debugString() -{ - return PhaseTapChangerTable::debugName; -} - -const BaseClassDefiner PhaseTapChangerTable::declare() -{ - return BaseClassDefiner(PhaseTapChangerTable::addConstructToMap, PhaseTapChangerTable::addPrimitiveAssignFnsToMap, PhaseTapChangerTable::addClassAssignFnsToMap, PhaseTapChangerTable::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/PhaseTapChangerTable.hpp b/CGMES_2.4.13_18DEC2013/PhaseTapChangerTable.hpp deleted file mode 100644 index 32dc55135..000000000 --- a/CGMES_2.4.13_18DEC2013/PhaseTapChangerTable.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef PhaseTapChangerTable_H -#define PhaseTapChangerTable_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class PhaseTapChangerTablePoint; -class PhaseTapChangerTabular; - /* - Describes a tabular curve for how the phase angle difference and impedance varies with the tap step. - */ - class PhaseTapChangerTable: public IdentifiedObject - { - - public: - std::list PhaseTapChangerTablePoint; /* The points of this table. Default: 0 */ - std::list PhaseTapChangerTabular; /* The phase tap changers to which this phase tap table applies. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - PhaseTapChangerTable(); - virtual ~PhaseTapChangerTable(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* PhaseTapChangerTable_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/PhaseTapChangerTablePoint.cpp b/CGMES_2.4.13_18DEC2013/PhaseTapChangerTablePoint.cpp deleted file mode 100644 index b0fefe1eb..000000000 --- a/CGMES_2.4.13_18DEC2013/PhaseTapChangerTablePoint.cpp +++ /dev/null @@ -1,69 +0,0 @@ -#include -#include "TapChangerTablePoint.hpp" -#include "PhaseTapChangerTablePoint.hpp" - -#include "PhaseTapChangerTable.hpp" -#include "AngleDegrees.hpp" - -using namespace CIMPP; - -PhaseTapChangerTablePoint::PhaseTapChangerTablePoint(): PhaseTapChangerTable(nullptr) {}; - -PhaseTapChangerTablePoint::~PhaseTapChangerTablePoint() {}; - - -bool assign_PhaseTapChangerTable_PhaseTapChangerTablePoint(BaseClass*, BaseClass*); -bool assign_PhaseTapChangerTablePoint_PhaseTapChangerTable(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(PhaseTapChangerTablePoint* element = dynamic_cast(BaseClass_ptr1)) { - element->PhaseTapChangerTable = dynamic_cast(BaseClass_ptr2); - if(element->PhaseTapChangerTable != nullptr) - return assign_PhaseTapChangerTable_PhaseTapChangerTablePoint(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - - -bool assign_PhaseTapChangerTablePoint_angle(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PhaseTapChangerTablePoint* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->angle; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* PhaseTapChangerTablePoint_factory() { - return new PhaseTapChangerTablePoint; - } -} - -void PhaseTapChangerTablePoint::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:PhaseTapChangerTablePoint"), &PhaseTapChangerTablePoint_factory)); -} - -void PhaseTapChangerTablePoint::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:PhaseTapChangerTablePoint.angle"), &assign_PhaseTapChangerTablePoint_angle)); -} - -void PhaseTapChangerTablePoint::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:PhaseTapChangerTablePoint.PhaseTapChangerTable"), &assign_PhaseTapChangerTablePoint_PhaseTapChangerTable)); - } - -const char PhaseTapChangerTablePoint::debugName[] = "PhaseTapChangerTablePoint"; -const char* PhaseTapChangerTablePoint::debugString() -{ - return PhaseTapChangerTablePoint::debugName; -} - -const BaseClassDefiner PhaseTapChangerTablePoint::declare() -{ - return BaseClassDefiner(PhaseTapChangerTablePoint::addConstructToMap, PhaseTapChangerTablePoint::addPrimitiveAssignFnsToMap, PhaseTapChangerTablePoint::addClassAssignFnsToMap, PhaseTapChangerTablePoint::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/PhaseTapChangerTablePoint.hpp b/CGMES_2.4.13_18DEC2013/PhaseTapChangerTablePoint.hpp deleted file mode 100644 index 89d74043a..000000000 --- a/CGMES_2.4.13_18DEC2013/PhaseTapChangerTablePoint.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef PhaseTapChangerTablePoint_H -#define PhaseTapChangerTablePoint_H - -#include "TapChangerTablePoint.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "AngleDegrees.hpp" - -namespace CIMPP { - - -class PhaseTapChangerTable; - /* - Describes each tap step in the phase tap changer tabular curve. - */ - class PhaseTapChangerTablePoint: public TapChangerTablePoint - { - - public: - CIMPP::PhaseTapChangerTable* PhaseTapChangerTable; /* The table of this point. Default: 0 */ - CIMPP::AngleDegrees angle; /* The angle difference in degrees. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - PhaseTapChangerTablePoint(); - virtual ~PhaseTapChangerTablePoint(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* PhaseTapChangerTablePoint_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/PhaseTapChangerTabular.cpp b/CGMES_2.4.13_18DEC2013/PhaseTapChangerTabular.cpp deleted file mode 100644 index af16ab19d..000000000 --- a/CGMES_2.4.13_18DEC2013/PhaseTapChangerTabular.cpp +++ /dev/null @@ -1,54 +0,0 @@ -#include -#include "PhaseTapChanger.hpp" -#include "PhaseTapChangerTabular.hpp" - -#include "PhaseTapChangerTable.hpp" - -using namespace CIMPP; - -PhaseTapChangerTabular::PhaseTapChangerTabular(): PhaseTapChangerTable(nullptr) {}; - -PhaseTapChangerTabular::~PhaseTapChangerTabular() {}; - - -bool assign_PhaseTapChangerTable_PhaseTapChangerTabular(BaseClass*, BaseClass*); -bool assign_PhaseTapChangerTabular_PhaseTapChangerTable(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(PhaseTapChangerTabular* element = dynamic_cast(BaseClass_ptr1)) { - element->PhaseTapChangerTable = dynamic_cast(BaseClass_ptr2); - if(element->PhaseTapChangerTable != nullptr) - return assign_PhaseTapChangerTable_PhaseTapChangerTabular(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - -namespace CIMPP { - BaseClass* PhaseTapChangerTabular_factory() { - return new PhaseTapChangerTabular; - } -} - -void PhaseTapChangerTabular::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:PhaseTapChangerTabular"), &PhaseTapChangerTabular_factory)); -} - -void PhaseTapChangerTabular::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void PhaseTapChangerTabular::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:PhaseTapChangerTabular.PhaseTapChangerTable"), &assign_PhaseTapChangerTabular_PhaseTapChangerTable)); -} - -const char PhaseTapChangerTabular::debugName[] = "PhaseTapChangerTabular"; -const char* PhaseTapChangerTabular::debugString() -{ - return PhaseTapChangerTabular::debugName; -} - -const BaseClassDefiner PhaseTapChangerTabular::declare() -{ - return BaseClassDefiner(PhaseTapChangerTabular::addConstructToMap, PhaseTapChangerTabular::addPrimitiveAssignFnsToMap, PhaseTapChangerTabular::addClassAssignFnsToMap, PhaseTapChangerTabular::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/PhaseTapChangerTabular.hpp b/CGMES_2.4.13_18DEC2013/PhaseTapChangerTabular.hpp deleted file mode 100644 index 8fe254b92..000000000 --- a/CGMES_2.4.13_18DEC2013/PhaseTapChangerTabular.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef PhaseTapChangerTabular_H -#define PhaseTapChangerTabular_H - -#include "PhaseTapChanger.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class PhaseTapChangerTable; - /* - - */ - class PhaseTapChangerTabular: public PhaseTapChanger - { - - public: - CIMPP::PhaseTapChangerTable* PhaseTapChangerTable; /* The phase tap changer table for this phase tap changer. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - PhaseTapChangerTabular(); - virtual ~PhaseTapChangerTabular(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* PhaseTapChangerTabular_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/PositionPoint.cpp b/CGMES_2.4.13_18DEC2013/PositionPoint.cpp deleted file mode 100644 index 5bf0de0ad..000000000 --- a/CGMES_2.4.13_18DEC2013/PositionPoint.cpp +++ /dev/null @@ -1,111 +0,0 @@ -#include -#include "BaseClass.hpp" -#include "PositionPoint.hpp" - -#include "Location.hpp" -#include "Integer.hpp" -#include "String.hpp" -#include "String.hpp" -#include "String.hpp" - -using namespace CIMPP; - -PositionPoint::PositionPoint(): Location(nullptr) {}; - -PositionPoint::~PositionPoint() {}; - - -bool assign_Location_PositionPoints(BaseClass*, BaseClass*); -bool assign_PositionPoint_Location(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(PositionPoint* element = dynamic_cast(BaseClass_ptr1)) { - element->Location = dynamic_cast(BaseClass_ptr2); - if(element->Location != nullptr) - return assign_Location_PositionPoints(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - - - - - -bool assign_PositionPoint_sequenceNumber(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PositionPoint* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->sequenceNumber; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PositionPoint_xPosition(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PositionPoint* element = dynamic_cast(BaseClass_ptr1)) { - element->xPosition = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_PositionPoint_yPosition(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PositionPoint* element = dynamic_cast(BaseClass_ptr1)) { - element->yPosition = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_PositionPoint_zPosition(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PositionPoint* element = dynamic_cast(BaseClass_ptr1)) { - element->zPosition = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -namespace CIMPP { - BaseClass* PositionPoint_factory() { - return new PositionPoint; - } -} - -void PositionPoint::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:PositionPoint"), &PositionPoint_factory)); -} - -void PositionPoint::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:PositionPoint.sequenceNumber"), &assign_PositionPoint_sequenceNumber)); - assign_map.insert(std::make_pair(std::string("cim:PositionPoint.xPosition"), &assign_PositionPoint_xPosition)); - assign_map.insert(std::make_pair(std::string("cim:PositionPoint.yPosition"), &assign_PositionPoint_yPosition)); - assign_map.insert(std::make_pair(std::string("cim:PositionPoint.zPosition"), &assign_PositionPoint_zPosition)); -} - -void PositionPoint::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:PositionPoint.Location"), &assign_PositionPoint_Location)); - } - -const char PositionPoint::debugName[] = "PositionPoint"; -const char* PositionPoint::debugString() -{ - return PositionPoint::debugName; -} - -const BaseClassDefiner PositionPoint::declare() -{ - return BaseClassDefiner(PositionPoint::addConstructToMap, PositionPoint::addPrimitiveAssignFnsToMap, PositionPoint::addClassAssignFnsToMap, PositionPoint::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/PositionPoint.hpp b/CGMES_2.4.13_18DEC2013/PositionPoint.hpp deleted file mode 100644 index f21450531..000000000 --- a/CGMES_2.4.13_18DEC2013/PositionPoint.hpp +++ /dev/null @@ -1,46 +0,0 @@ -#ifndef PositionPoint_H -#define PositionPoint_H - -#include "BaseClass.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Integer.hpp" -#include "String.hpp" - -namespace CIMPP { - - -class Location; - /* - Set of spatial coordinates that determine a point, defined in the coordinate system specified in 'Location.CoordinateSystem'. Use a single position point instance to desribe a point-oriented location. Use a sequence of position points to describe a line-oriented object (physical location of non-point oriented objects like cables or lines), or area of an object (like a substation or a geographical zone - in this case, have first and last position point with the same values). - */ - class PositionPoint: public BaseClass - { - - public: - CIMPP::Location* Location; /* Location described by this position point. Default: 0 */ - CIMPP::Integer sequenceNumber; /* Zero-relative sequence number of this point within a series of points. Default: 0 */ - CIMPP::String xPosition; /* X axis position. Default: '' */ - CIMPP::String yPosition; /* Y axis position. Default: '' */ - CIMPP::String zPosition; /* (if applicable) Z axis position. Default: '' */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - PositionPoint(); - virtual ~PositionPoint(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* PositionPoint_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/PowerSystemResource.cpp b/CGMES_2.4.13_18DEC2013/PowerSystemResource.cpp deleted file mode 100644 index 7813a9ce7..000000000 --- a/CGMES_2.4.13_18DEC2013/PowerSystemResource.cpp +++ /dev/null @@ -1,79 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "PowerSystemResource.hpp" - -#include "Control.hpp" -#include "Measurement.hpp" -#include "Location.hpp" - -using namespace CIMPP; - -PowerSystemResource::PowerSystemResource(): Location(nullptr) {}; - -PowerSystemResource::~PowerSystemResource() {}; - - -bool assign_PowerSystemResource_Controls(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(PowerSystemResource* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->Controls.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_PowerSystemResource_Measurements(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(PowerSystemResource* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->Measurements.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_PowerSystemResource_Location(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(PowerSystemResource* element = dynamic_cast(BaseClass_ptr1)) { - element->Location = dynamic_cast(BaseClass_ptr2); - if(element->Location != nullptr) - return true; - } - return false; -} - - - - - -namespace CIMPP { - BaseClass* PowerSystemResource_factory() { - return new PowerSystemResource; - } -} - -void PowerSystemResource::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:PowerSystemResource"), &PowerSystemResource_factory)); -} - -void PowerSystemResource::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void PowerSystemResource::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:PowerSystemResource.Controls"), &assign_PowerSystemResource_Controls)); - assign_map.insert(std::make_pair(std::string("cim:PowerSystemResource.Measurements"), &assign_PowerSystemResource_Measurements)); - assign_map.insert(std::make_pair(std::string("cim:PowerSystemResource.Location"), &assign_PowerSystemResource_Location)); -} - -const char PowerSystemResource::debugName[] = "PowerSystemResource"; -const char* PowerSystemResource::debugString() -{ - return PowerSystemResource::debugName; -} - -const BaseClassDefiner PowerSystemResource::declare() -{ - return BaseClassDefiner(PowerSystemResource::addConstructToMap, PowerSystemResource::addPrimitiveAssignFnsToMap, PowerSystemResource::addClassAssignFnsToMap, PowerSystemResource::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/PowerSystemResource.hpp b/CGMES_2.4.13_18DEC2013/PowerSystemResource.hpp deleted file mode 100644 index 68db537eb..000000000 --- a/CGMES_2.4.13_18DEC2013/PowerSystemResource.hpp +++ /dev/null @@ -1,44 +0,0 @@ -#ifndef PowerSystemResource_H -#define PowerSystemResource_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class Control; -class Measurement; -class Location; - /* - A power system resource can be an item of equipment such as a switch, an equipment container containing many individual items of equipment such as a substation, or an organisational entity such as sub-control area. Power system resources can have measurements associated. - */ - class PowerSystemResource: public IdentifiedObject - { - - public: - std::list Controls; /* Regulating device governed by this control output. Default: 0 */ - std::list Measurements; /* The power system resource that contains the measurement. Default: 0 */ - CIMPP::Location* Location; /* Location of this power system resource. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - PowerSystemResource(); - virtual ~PowerSystemResource(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* PowerSystemResource_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/PowerSystemStabilizerDynamics.cpp b/CGMES_2.4.13_18DEC2013/PowerSystemStabilizerDynamics.cpp deleted file mode 100644 index 50a9bce48..000000000 --- a/CGMES_2.4.13_18DEC2013/PowerSystemStabilizerDynamics.cpp +++ /dev/null @@ -1,67 +0,0 @@ -#include -#include "DynamicsFunctionBlock.hpp" -#include "PowerSystemStabilizerDynamics.hpp" - -#include "RemoteInputSignal.hpp" -#include "ExcitationSystemDynamics.hpp" - -using namespace CIMPP; - -PowerSystemStabilizerDynamics::PowerSystemStabilizerDynamics(): ExcitationSystemDynamics(nullptr) {}; - -PowerSystemStabilizerDynamics::~PowerSystemStabilizerDynamics() {}; - - -bool assign_PowerSystemStabilizerDynamics_RemoteInputSignal(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(PowerSystemStabilizerDynamics* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->RemoteInputSignal.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_ExcitationSystemDynamics_PowerSystemStabilizerDynamics(BaseClass*, BaseClass*); -bool assign_PowerSystemStabilizerDynamics_ExcitationSystemDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(PowerSystemStabilizerDynamics* element = dynamic_cast(BaseClass_ptr1)) { - element->ExcitationSystemDynamics = dynamic_cast(BaseClass_ptr2); - if(element->ExcitationSystemDynamics != nullptr) - return assign_ExcitationSystemDynamics_PowerSystemStabilizerDynamics(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - - -namespace CIMPP { - BaseClass* PowerSystemStabilizerDynamics_factory() { - return new PowerSystemStabilizerDynamics; - } -} - -void PowerSystemStabilizerDynamics::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:PowerSystemStabilizerDynamics"), &PowerSystemStabilizerDynamics_factory)); -} - -void PowerSystemStabilizerDynamics::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void PowerSystemStabilizerDynamics::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:PowerSystemStabilizerDynamics.RemoteInputSignal"), &assign_PowerSystemStabilizerDynamics_RemoteInputSignal)); - assign_map.insert(std::make_pair(std::string("cim:PowerSystemStabilizerDynamics.ExcitationSystemDynamics"), &assign_PowerSystemStabilizerDynamics_ExcitationSystemDynamics)); -} - -const char PowerSystemStabilizerDynamics::debugName[] = "PowerSystemStabilizerDynamics"; -const char* PowerSystemStabilizerDynamics::debugString() -{ - return PowerSystemStabilizerDynamics::debugName; -} - -const BaseClassDefiner PowerSystemStabilizerDynamics::declare() -{ - return BaseClassDefiner(PowerSystemStabilizerDynamics::addConstructToMap, PowerSystemStabilizerDynamics::addPrimitiveAssignFnsToMap, PowerSystemStabilizerDynamics::addClassAssignFnsToMap, PowerSystemStabilizerDynamics::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/PowerSystemStabilizerDynamics.hpp b/CGMES_2.4.13_18DEC2013/PowerSystemStabilizerDynamics.hpp deleted file mode 100644 index f636ae567..000000000 --- a/CGMES_2.4.13_18DEC2013/PowerSystemStabilizerDynamics.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef PowerSystemStabilizerDynamics_H -#define PowerSystemStabilizerDynamics_H - -#include "DynamicsFunctionBlock.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class RemoteInputSignal; -class ExcitationSystemDynamics; - /* - Power system stabilizer function block whose behaviour is described by reference to a standard model - */ - class PowerSystemStabilizerDynamics: public DynamicsFunctionBlock - { - - public: - std::list RemoteInputSignal; /* Remote input signal used by this power system stabilizer model. Default: 0 */ - CIMPP::ExcitationSystemDynamics* ExcitationSystemDynamics; /* Excitation system model with which this power system stabilizer model is associated. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - PowerSystemStabilizerDynamics(); - virtual ~PowerSystemStabilizerDynamics(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* PowerSystemStabilizerDynamics_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/PowerSystemStabilizerUserDefined.cpp b/CGMES_2.4.13_18DEC2013/PowerSystemStabilizerUserDefined.cpp deleted file mode 100644 index 9d56aa4ab..000000000 --- a/CGMES_2.4.13_18DEC2013/PowerSystemStabilizerUserDefined.cpp +++ /dev/null @@ -1,69 +0,0 @@ -#include -#include "PowerSystemStabilizerDynamics.hpp" -#include "PowerSystemStabilizerUserDefined.hpp" - -#include "Boolean.hpp" -#include "ProprietaryParameterDynamics.hpp" - -using namespace CIMPP; - -PowerSystemStabilizerUserDefined::PowerSystemStabilizerUserDefined() {}; - -PowerSystemStabilizerUserDefined::~PowerSystemStabilizerUserDefined() {}; - - - -bool assign_PowerSystemStabilizerUserDefined_ProprietaryParameterDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(PowerSystemStabilizerUserDefined* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->ProprietaryParameterDynamics.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - -bool assign_PowerSystemStabilizerUserDefined_proprietary(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PowerSystemStabilizerUserDefined* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->proprietary; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -namespace CIMPP { - BaseClass* PowerSystemStabilizerUserDefined_factory() { - return new PowerSystemStabilizerUserDefined; - } -} - -void PowerSystemStabilizerUserDefined::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:PowerSystemStabilizerUserDefined"), &PowerSystemStabilizerUserDefined_factory)); -} - -void PowerSystemStabilizerUserDefined::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:PowerSystemStabilizerUserDefined.proprietary"), &assign_PowerSystemStabilizerUserDefined_proprietary)); - } - -void PowerSystemStabilizerUserDefined::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:PowerSystemStabilizerUserDefined.ProprietaryParameterDynamics"), &assign_PowerSystemStabilizerUserDefined_ProprietaryParameterDynamics)); -} - -const char PowerSystemStabilizerUserDefined::debugName[] = "PowerSystemStabilizerUserDefined"; -const char* PowerSystemStabilizerUserDefined::debugString() -{ - return PowerSystemStabilizerUserDefined::debugName; -} - -const BaseClassDefiner PowerSystemStabilizerUserDefined::declare() -{ - return BaseClassDefiner(PowerSystemStabilizerUserDefined::addConstructToMap, PowerSystemStabilizerUserDefined::addPrimitiveAssignFnsToMap, PowerSystemStabilizerUserDefined::addClassAssignFnsToMap, PowerSystemStabilizerUserDefined::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/PowerSystemStabilizerUserDefined.hpp b/CGMES_2.4.13_18DEC2013/PowerSystemStabilizerUserDefined.hpp deleted file mode 100644 index f2f48070f..000000000 --- a/CGMES_2.4.13_18DEC2013/PowerSystemStabilizerUserDefined.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef PowerSystemStabilizerUserDefined_H -#define PowerSystemStabilizerUserDefined_H - -#include "PowerSystemStabilizerDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Boolean.hpp" - -namespace CIMPP { - - -class ProprietaryParameterDynamics; - /* - function block whose dynamic behaviour is described by - */ - class PowerSystemStabilizerUserDefined: public PowerSystemStabilizerDynamics - { - - public: - CIMPP::Boolean proprietary; /* Behaviour is based on proprietary model as opposed to detailed model. true = user-defined model is proprietary with behaviour mutually understood by sending and receiving applications and parameters passed as general attributes false = user-defined model is explicitly defined in terms of control blocks and their input and output signals. Default: false */ - std::list ProprietaryParameterDynamics; /* Parameter of this proprietary user-defined model. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - PowerSystemStabilizerUserDefined(); - virtual ~PowerSystemStabilizerUserDefined(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* PowerSystemStabilizerUserDefined_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/PowerTransformer.cpp b/CGMES_2.4.13_18DEC2013/PowerTransformer.cpp deleted file mode 100644 index 892487c6c..000000000 --- a/CGMES_2.4.13_18DEC2013/PowerTransformer.cpp +++ /dev/null @@ -1,144 +0,0 @@ -#include -#include "ConductingEquipment.hpp" -#include "PowerTransformer.hpp" - -#include "CurrentFlow.hpp" -#include "Voltage.hpp" -#include "AngleDegrees.hpp" -#include "Voltage.hpp" -#include "Boolean.hpp" -#include "Boolean.hpp" -#include "PowerTransformerEnd.hpp" - -using namespace CIMPP; - -PowerTransformer::PowerTransformer() {}; - -PowerTransformer::~PowerTransformer() {}; - - - - - - - - -bool assign_PowerTransformer_PowerTransformerEnd(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(PowerTransformer* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->PowerTransformerEnd.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - -bool assign_PowerTransformer_beforeShCircuitHighestOperatingCurrent(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PowerTransformer* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->beforeShCircuitHighestOperatingCurrent; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PowerTransformer_beforeShCircuitHighestOperatingVoltage(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PowerTransformer* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->beforeShCircuitHighestOperatingVoltage; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PowerTransformer_beforeShortCircuitAnglePf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PowerTransformer* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->beforeShortCircuitAnglePf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PowerTransformer_highSideMinOperatingU(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PowerTransformer* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->highSideMinOperatingU; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PowerTransformer_isPartOfGeneratorUnit(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PowerTransformer* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->isPartOfGeneratorUnit; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PowerTransformer_operationalValuesConsidered(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PowerTransformer* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->operationalValuesConsidered; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -namespace CIMPP { - BaseClass* PowerTransformer_factory() { - return new PowerTransformer; - } -} - -void PowerTransformer::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:PowerTransformer"), &PowerTransformer_factory)); -} - -void PowerTransformer::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:PowerTransformer.beforeShCircuitHighestOperatingCurrent"), &assign_PowerTransformer_beforeShCircuitHighestOperatingCurrent)); - assign_map.insert(std::make_pair(std::string("cim:PowerTransformer.beforeShCircuitHighestOperatingVoltage"), &assign_PowerTransformer_beforeShCircuitHighestOperatingVoltage)); - assign_map.insert(std::make_pair(std::string("cim:PowerTransformer.beforeShortCircuitAnglePf"), &assign_PowerTransformer_beforeShortCircuitAnglePf)); - assign_map.insert(std::make_pair(std::string("cim:PowerTransformer.highSideMinOperatingU"), &assign_PowerTransformer_highSideMinOperatingU)); - assign_map.insert(std::make_pair(std::string("cim:PowerTransformer.isPartOfGeneratorUnit"), &assign_PowerTransformer_isPartOfGeneratorUnit)); - assign_map.insert(std::make_pair(std::string("cim:PowerTransformer.operationalValuesConsidered"), &assign_PowerTransformer_operationalValuesConsidered)); - } - -void PowerTransformer::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:PowerTransformer.PowerTransformerEnd"), &assign_PowerTransformer_PowerTransformerEnd)); -} - -const char PowerTransformer::debugName[] = "PowerTransformer"; -const char* PowerTransformer::debugString() -{ - return PowerTransformer::debugName; -} - -const BaseClassDefiner PowerTransformer::declare() -{ - return BaseClassDefiner(PowerTransformer::addConstructToMap, PowerTransformer::addPrimitiveAssignFnsToMap, PowerTransformer::addClassAssignFnsToMap, PowerTransformer::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/PowerTransformer.hpp b/CGMES_2.4.13_18DEC2013/PowerTransformer.hpp deleted file mode 100644 index 0627de6c3..000000000 --- a/CGMES_2.4.13_18DEC2013/PowerTransformer.hpp +++ /dev/null @@ -1,50 +0,0 @@ -#ifndef PowerTransformer_H -#define PowerTransformer_H - -#include "ConductingEquipment.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "CurrentFlow.hpp" -#include "Voltage.hpp" -#include "AngleDegrees.hpp" -#include "Boolean.hpp" - -namespace CIMPP { - - -class PowerTransformerEnd; - /* - An electrical device consisting of two or more coupled windings, with or without a magnetic core, for introducing mutual coupling between electric circuits. Transformers can be used to control voltage and phase shift (active power flow). A power transformer may be composed of separate transformer tanks that need not be identical. A power transformer can be modeled with or without tanks and is intended for use in both balanced and unbalanced representations. A power transformer typically has two terminals, but may have one (grounding), three or more terminals. The inherited association ConductingEquipment.BaseVoltage should not be used. The association from TransformerEnd to BaseVoltage should be used instead. - */ - class PowerTransformer: public ConductingEquipment - { - - public: - CIMPP::CurrentFlow beforeShCircuitHighestOperatingCurrent; /* The highest operating current (Ib in the IEC 60909-0) before short circuit (depends on network configuration and relevant reliability philosophy). It is used for calculation of the impedance correction factor KT defined in IEC 60909-0. Default: nullptr */ - CIMPP::Voltage beforeShCircuitHighestOperatingVoltage; /* The highest operating voltage (Ub in the IEC 60909-0) before short circuit. It is used for calculation of the impedance correction factor KT defined in IEC 60909-0. This is worst case voltage on the low side winding (Section 3.7.1 in the standard). Used to define operating conditions. Default: nullptr */ - CIMPP::AngleDegrees beforeShortCircuitAnglePf; /* The angle of power factor before short circuit (phib in the IEC 60909-0). It is used for calculation of the impedance correction factor KT defined in IEC 60909-0. This is the worst case power factor. Used to define operating conditions. Default: nullptr */ - CIMPP::Voltage highSideMinOperatingU; /* The minimum operating voltage (uQmin in the IEC 60909-0) at the high voltage side (Q side) of the unit transformer of the power station unit. A value well established from long-term operating experience of the system. It is used for calculation of the impedance correction factor KG defined in IEC 60909-0 Default: nullptr */ - CIMPP::Boolean isPartOfGeneratorUnit; /* Indicates whether the machine is part of a power station unit. Used for short circuit data exchange according to IEC 60909 Default: false */ - CIMPP::Boolean operationalValuesConsidered; /* It is used to define if the data (other attributes related to short circuit data exchange) defines long term operational conditions or not. Used for short circuit data exchange according to IEC 60909. Default: false */ - std::list PowerTransformerEnd; /* The power transformer of this power transformer end. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - PowerTransformer(); - virtual ~PowerTransformer(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* PowerTransformer_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/PowerTransformerEnd.cpp b/CGMES_2.4.13_18DEC2013/PowerTransformerEnd.cpp deleted file mode 100644 index 6d22b251f..000000000 --- a/CGMES_2.4.13_18DEC2013/PowerTransformerEnd.cpp +++ /dev/null @@ -1,234 +0,0 @@ -#include -#include "TransformerEnd.hpp" -#include "PowerTransformerEnd.hpp" - -#include "PowerTransformer.hpp" -#include "Susceptance.hpp" -#include "WindingConnection.hpp" -#include "Susceptance.hpp" -#include "Integer.hpp" -#include "ApparentPower.hpp" -#include "Conductance.hpp" -#include "Voltage.hpp" -#include "Conductance.hpp" -#include "Resistance.hpp" -#include "Resistance.hpp" -#include "Reactance.hpp" -#include "Reactance.hpp" - -using namespace CIMPP; - -PowerTransformerEnd::PowerTransformerEnd(): PowerTransformer(nullptr) {}; - -PowerTransformerEnd::~PowerTransformerEnd() {}; - - -bool assign_PowerTransformer_PowerTransformerEnd(BaseClass*, BaseClass*); -bool assign_PowerTransformerEnd_PowerTransformer(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(PowerTransformerEnd* element = dynamic_cast(BaseClass_ptr1)) { - element->PowerTransformer = dynamic_cast(BaseClass_ptr2); - if(element->PowerTransformer != nullptr) - return assign_PowerTransformer_PowerTransformerEnd(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - - - - - - - - - - - - - -bool assign_PowerTransformerEnd_b(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PowerTransformerEnd* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->b; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PowerTransformerEnd_connectionKind(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PowerTransformerEnd* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->connectionKind; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PowerTransformerEnd_b0(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PowerTransformerEnd* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->b0; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PowerTransformerEnd_phaseAngleClock(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PowerTransformerEnd* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->phaseAngleClock; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PowerTransformerEnd_ratedS(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PowerTransformerEnd* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ratedS; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PowerTransformerEnd_g(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PowerTransformerEnd* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->g; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PowerTransformerEnd_ratedU(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PowerTransformerEnd* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ratedU; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PowerTransformerEnd_g0(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PowerTransformerEnd* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->g0; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PowerTransformerEnd_r(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PowerTransformerEnd* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->r; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PowerTransformerEnd_r0(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PowerTransformerEnd* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->r0; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PowerTransformerEnd_x(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PowerTransformerEnd* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->x; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PowerTransformerEnd_x0(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PowerTransformerEnd* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->x0; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* PowerTransformerEnd_factory() { - return new PowerTransformerEnd; - } -} - -void PowerTransformerEnd::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:PowerTransformerEnd"), &PowerTransformerEnd_factory)); -} - -void PowerTransformerEnd::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:PowerTransformerEnd.b"), &assign_PowerTransformerEnd_b)); - assign_map.insert(std::make_pair(std::string("cim:PowerTransformerEnd.connectionKind"), &assign_PowerTransformerEnd_connectionKind)); - assign_map.insert(std::make_pair(std::string("cim:PowerTransformerEnd.b0"), &assign_PowerTransformerEnd_b0)); - assign_map.insert(std::make_pair(std::string("cim:PowerTransformerEnd.phaseAngleClock"), &assign_PowerTransformerEnd_phaseAngleClock)); - assign_map.insert(std::make_pair(std::string("cim:PowerTransformerEnd.ratedS"), &assign_PowerTransformerEnd_ratedS)); - assign_map.insert(std::make_pair(std::string("cim:PowerTransformerEnd.g"), &assign_PowerTransformerEnd_g)); - assign_map.insert(std::make_pair(std::string("cim:PowerTransformerEnd.ratedU"), &assign_PowerTransformerEnd_ratedU)); - assign_map.insert(std::make_pair(std::string("cim:PowerTransformerEnd.g0"), &assign_PowerTransformerEnd_g0)); - assign_map.insert(std::make_pair(std::string("cim:PowerTransformerEnd.r"), &assign_PowerTransformerEnd_r)); - assign_map.insert(std::make_pair(std::string("cim:PowerTransformerEnd.r0"), &assign_PowerTransformerEnd_r0)); - assign_map.insert(std::make_pair(std::string("cim:PowerTransformerEnd.x"), &assign_PowerTransformerEnd_x)); - assign_map.insert(std::make_pair(std::string("cim:PowerTransformerEnd.x0"), &assign_PowerTransformerEnd_x0)); -} - -void PowerTransformerEnd::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:PowerTransformerEnd.PowerTransformer"), &assign_PowerTransformerEnd_PowerTransformer)); - } - -const char PowerTransformerEnd::debugName[] = "PowerTransformerEnd"; -const char* PowerTransformerEnd::debugString() -{ - return PowerTransformerEnd::debugName; -} - -const BaseClassDefiner PowerTransformerEnd::declare() -{ - return BaseClassDefiner(PowerTransformerEnd::addConstructToMap, PowerTransformerEnd::addPrimitiveAssignFnsToMap, PowerTransformerEnd::addClassAssignFnsToMap, PowerTransformerEnd::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/PowerTransformerEnd.hpp b/CGMES_2.4.13_18DEC2013/PowerTransformerEnd.hpp deleted file mode 100644 index 2cb4b9b05..000000000 --- a/CGMES_2.4.13_18DEC2013/PowerTransformerEnd.hpp +++ /dev/null @@ -1,60 +0,0 @@ -#ifndef PowerTransformerEnd_H -#define PowerTransformerEnd_H - -#include "TransformerEnd.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Susceptance.hpp" -#include "WindingConnection.hpp" -#include "Integer.hpp" -#include "ApparentPower.hpp" -#include "Conductance.hpp" -#include "Voltage.hpp" -#include "Resistance.hpp" -#include "Reactance.hpp" - -namespace CIMPP { - - -class PowerTransformer; - /* - A PowerTransformerEnd is associated with each Terminal of a PowerTransformer. The impedance values r, r0, x, and x0 of a PowerTransformerEnd represents a star equivalent as follows 1) for a two Terminal PowerTransformer the high voltage PowerTransformerEnd has non zero values on r, r0, x, and x0 while the low voltage PowerTransformerEnd has zero values for r, r0, x, and x0. 2) for a three Terminal PowerTransformer the three PowerTransformerEnds represents a star equivalent with each leg in the star represented by r, r0, x, and x0 values. 3) for a PowerTransformer with more than three Terminals the PowerTransformerEnd impedance values cannot be used. Instead use the TransformerMeshImpedance or split the transformer into multiple PowerTransformers. - */ - class PowerTransformerEnd: public TransformerEnd - { - - public: - CIMPP::PowerTransformer* PowerTransformer; /* The ends of this power transformer. Default: 0 */ - CIMPP::Susceptance b; /* Magnetizing branch susceptance (B mag). The value can be positive or negative. Default: nullptr */ - CIMPP::WindingConnection connectionKind; /* Kind of connection. Default: 0 */ - CIMPP::Susceptance b0; /* Zero sequence magnetizing branch susceptance. Default: nullptr */ - CIMPP::Integer phaseAngleClock; /* Terminal voltage phase angle displacement where 360 degrees are represented with clock hours. The valid values are 0 to 11. For example, for the secondary side end of a transformer with vector group code of `Dyn11`, specify the connection kind as wye with neutral and specify the phase angle of the clock as 11. The clock value of the transformer end number specified as 1, is assumed to be zero. Note the transformer end number is not assumed to be the same as the terminal sequence number. Default: 0 */ - CIMPP::ApparentPower ratedS; /* Normal apparent power rating. The attribute shall be a positive value. For a two-winding transformer the values for the high and low voltage sides shall be identical. Default: nullptr */ - CIMPP::Conductance g; /* Magnetizing branch conductance. Default: nullptr */ - CIMPP::Voltage ratedU; /* Rated voltage: phase-phase for three-phase windings, and either phase-phase or phase-neutral for single-phase windings. A high voltage side, as given by TransformerEnd.endNumber, shall have a ratedU that is greater or equal than ratedU for the lower voltage sides. Default: nullptr */ - CIMPP::Conductance g0; /* Zero sequence magnetizing branch conductance (star-model). Default: nullptr */ - CIMPP::Resistance r; /* Resistance (star-model) of the transformer end. The attribute shall be equal or greater than zero for non-equivalent transformers. Default: nullptr */ - CIMPP::Resistance r0; /* Zero sequence series resistance (star-model) of the transformer end. Default: nullptr */ - CIMPP::Reactance x; /* Positive sequence series reactance (star-model) of the transformer end. Default: nullptr */ - CIMPP::Reactance x0; /* Zero sequence series reactance of the transformer end. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - PowerTransformerEnd(); - virtual ~PowerTransformerEnd(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* PowerTransformerEnd_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ProprietaryParameterDynamics.cpp b/CGMES_2.4.13_18DEC2013/ProprietaryParameterDynamics.cpp deleted file mode 100644 index 889206f83..000000000 --- a/CGMES_2.4.13_18DEC2013/ProprietaryParameterDynamics.cpp +++ /dev/null @@ -1,335 +0,0 @@ -#include -#include "BaseClass.hpp" -#include "ProprietaryParameterDynamics.hpp" - -#include "WindPlantUserDefined.hpp" -#include "WindType1or2UserDefined.hpp" -#include "WindType3or4UserDefined.hpp" -#include "SynchronousMachineUserDefined.hpp" -#include "AsynchronousMachineUserDefined.hpp" -#include "TurbineGovernorUserDefined.hpp" -#include "TurbineLoadControllerUserDefined.hpp" -#include "MechanicalLoadUserDefined.hpp" -#include "ExcitationSystemUserDefined.hpp" -#include "OverexcitationLimiterUserDefined.hpp" -#include "UnderexcitationLimiterUserDefined.hpp" -#include "PowerSystemStabilizerUserDefined.hpp" -#include "DiscontinuousExcitationControlUserDefined.hpp" -#include "PFVArControllerType1UserDefined.hpp" -#include "VoltageAdjusterUserDefined.hpp" -#include "PFVArControllerType2UserDefined.hpp" -#include "VoltageCompensatorUserDefined.hpp" -#include "LoadUserDefined.hpp" -#include "Integer.hpp" -#include "Boolean.hpp" -#include "Integer.hpp" -#include "Simple_Float.hpp" - -using namespace CIMPP; - -ProprietaryParameterDynamics::ProprietaryParameterDynamics(): WindPlantUserDefined(nullptr), WindType1or2UserDefined(nullptr), WindType3or4UserDefined(nullptr), SynchronousMachineUserDefined(nullptr), AsynchronousMachineUserDefined(nullptr), TurbineGovernorUserDefined(nullptr), TurbineLoadControllerUserDefined(nullptr), MechanicalLoadUserDefined(nullptr), ExcitationSystemUserDefined(nullptr), OverexcitationLimiterUserDefined(nullptr), UnderexcitationLimiterUserDefined(nullptr), PowerSystemStabilizerUserDefined(nullptr), DiscontinuousExcitationControlUserDefined(nullptr), PFVArControllerType1UserDefined(nullptr), VoltageAdjusterUserDefined(nullptr), PFVArControllerType2UserDefined(nullptr), VoltageCompensatorUserDefined(nullptr), LoadUserDefined(nullptr) {}; - -ProprietaryParameterDynamics::~ProprietaryParameterDynamics() {}; - - -bool assign_WindPlantUserDefined_ProprietaryParameterDynamics(BaseClass*, BaseClass*); -bool assign_ProprietaryParameterDynamics_WindPlantUserDefined(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ProprietaryParameterDynamics* element = dynamic_cast(BaseClass_ptr1)) { - element->WindPlantUserDefined = dynamic_cast(BaseClass_ptr2); - if(element->WindPlantUserDefined != nullptr) - return assign_WindPlantUserDefined_ProprietaryParameterDynamics(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_WindType1or2UserDefined_ProprietaryParameterDynamics(BaseClass*, BaseClass*); -bool assign_ProprietaryParameterDynamics_WindType1or2UserDefined(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ProprietaryParameterDynamics* element = dynamic_cast(BaseClass_ptr1)) { - element->WindType1or2UserDefined = dynamic_cast(BaseClass_ptr2); - if(element->WindType1or2UserDefined != nullptr) - return assign_WindType1or2UserDefined_ProprietaryParameterDynamics(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_WindType3or4UserDefined_ProprietaryParameterDynamics(BaseClass*, BaseClass*); -bool assign_ProprietaryParameterDynamics_WindType3or4UserDefined(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ProprietaryParameterDynamics* element = dynamic_cast(BaseClass_ptr1)) { - element->WindType3or4UserDefined = dynamic_cast(BaseClass_ptr2); - if(element->WindType3or4UserDefined != nullptr) - return assign_WindType3or4UserDefined_ProprietaryParameterDynamics(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_SynchronousMachineUserDefined_ProprietaryParameterDynamics(BaseClass*, BaseClass*); -bool assign_ProprietaryParameterDynamics_SynchronousMachineUserDefined(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ProprietaryParameterDynamics* element = dynamic_cast(BaseClass_ptr1)) { - element->SynchronousMachineUserDefined = dynamic_cast(BaseClass_ptr2); - if(element->SynchronousMachineUserDefined != nullptr) - return assign_SynchronousMachineUserDefined_ProprietaryParameterDynamics(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_AsynchronousMachineUserDefined_ProprietaryParameterDynamics(BaseClass*, BaseClass*); -bool assign_ProprietaryParameterDynamics_AsynchronousMachineUserDefined(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ProprietaryParameterDynamics* element = dynamic_cast(BaseClass_ptr1)) { - element->AsynchronousMachineUserDefined = dynamic_cast(BaseClass_ptr2); - if(element->AsynchronousMachineUserDefined != nullptr) - return assign_AsynchronousMachineUserDefined_ProprietaryParameterDynamics(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_TurbineGovernorUserDefined_ProprietaryParameterDynamics(BaseClass*, BaseClass*); -bool assign_ProprietaryParameterDynamics_TurbineGovernorUserDefined(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ProprietaryParameterDynamics* element = dynamic_cast(BaseClass_ptr1)) { - element->TurbineGovernorUserDefined = dynamic_cast(BaseClass_ptr2); - if(element->TurbineGovernorUserDefined != nullptr) - return assign_TurbineGovernorUserDefined_ProprietaryParameterDynamics(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_TurbineLoadControllerUserDefined_ProprietaryParameterDynamics(BaseClass*, BaseClass*); -bool assign_ProprietaryParameterDynamics_TurbineLoadControllerUserDefined(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ProprietaryParameterDynamics* element = dynamic_cast(BaseClass_ptr1)) { - element->TurbineLoadControllerUserDefined = dynamic_cast(BaseClass_ptr2); - if(element->TurbineLoadControllerUserDefined != nullptr) - return assign_TurbineLoadControllerUserDefined_ProprietaryParameterDynamics(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_MechanicalLoadUserDefined_ProprietaryParameterDynamics(BaseClass*, BaseClass*); -bool assign_ProprietaryParameterDynamics_MechanicalLoadUserDefined(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ProprietaryParameterDynamics* element = dynamic_cast(BaseClass_ptr1)) { - element->MechanicalLoadUserDefined = dynamic_cast(BaseClass_ptr2); - if(element->MechanicalLoadUserDefined != nullptr) - return assign_MechanicalLoadUserDefined_ProprietaryParameterDynamics(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_ExcitationSystemUserDefined_ProprietaryParameterDynamics(BaseClass*, BaseClass*); -bool assign_ProprietaryParameterDynamics_ExcitationSystemUserDefined(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ProprietaryParameterDynamics* element = dynamic_cast(BaseClass_ptr1)) { - element->ExcitationSystemUserDefined = dynamic_cast(BaseClass_ptr2); - if(element->ExcitationSystemUserDefined != nullptr) - return assign_ExcitationSystemUserDefined_ProprietaryParameterDynamics(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_OverexcitationLimiterUserDefined_ProprietaryParameterDynamics(BaseClass*, BaseClass*); -bool assign_ProprietaryParameterDynamics_OverexcitationLimiterUserDefined(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ProprietaryParameterDynamics* element = dynamic_cast(BaseClass_ptr1)) { - element->OverexcitationLimiterUserDefined = dynamic_cast(BaseClass_ptr2); - if(element->OverexcitationLimiterUserDefined != nullptr) - return assign_OverexcitationLimiterUserDefined_ProprietaryParameterDynamics(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_UnderexcitationLimiterUserDefined_ProprietaryParameterDynamics(BaseClass*, BaseClass*); -bool assign_ProprietaryParameterDynamics_UnderexcitationLimiterUserDefined(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ProprietaryParameterDynamics* element = dynamic_cast(BaseClass_ptr1)) { - element->UnderexcitationLimiterUserDefined = dynamic_cast(BaseClass_ptr2); - if(element->UnderexcitationLimiterUserDefined != nullptr) - return assign_UnderexcitationLimiterUserDefined_ProprietaryParameterDynamics(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_PowerSystemStabilizerUserDefined_ProprietaryParameterDynamics(BaseClass*, BaseClass*); -bool assign_ProprietaryParameterDynamics_PowerSystemStabilizerUserDefined(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ProprietaryParameterDynamics* element = dynamic_cast(BaseClass_ptr1)) { - element->PowerSystemStabilizerUserDefined = dynamic_cast(BaseClass_ptr2); - if(element->PowerSystemStabilizerUserDefined != nullptr) - return assign_PowerSystemStabilizerUserDefined_ProprietaryParameterDynamics(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_DiscontinuousExcitationControlUserDefined_ProprietaryParameterDynamics(BaseClass*, BaseClass*); -bool assign_ProprietaryParameterDynamics_DiscontinuousExcitationControlUserDefined(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ProprietaryParameterDynamics* element = dynamic_cast(BaseClass_ptr1)) { - element->DiscontinuousExcitationControlUserDefined = dynamic_cast(BaseClass_ptr2); - if(element->DiscontinuousExcitationControlUserDefined != nullptr) - return assign_DiscontinuousExcitationControlUserDefined_ProprietaryParameterDynamics(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_PFVArControllerType1UserDefined_ProprietaryParameterDynamics(BaseClass*, BaseClass*); -bool assign_ProprietaryParameterDynamics_PFVArControllerType1UserDefined(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ProprietaryParameterDynamics* element = dynamic_cast(BaseClass_ptr1)) { - element->PFVArControllerType1UserDefined = dynamic_cast(BaseClass_ptr2); - if(element->PFVArControllerType1UserDefined != nullptr) - return assign_PFVArControllerType1UserDefined_ProprietaryParameterDynamics(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_VoltageAdjusterUserDefined_ProprietaryParameterDynamics(BaseClass*, BaseClass*); -bool assign_ProprietaryParameterDynamics_VoltageAdjusterUserDefined(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ProprietaryParameterDynamics* element = dynamic_cast(BaseClass_ptr1)) { - element->VoltageAdjusterUserDefined = dynamic_cast(BaseClass_ptr2); - if(element->VoltageAdjusterUserDefined != nullptr) - return assign_VoltageAdjusterUserDefined_ProprietaryParameterDynamics(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_PFVArControllerType2UserDefined_ProprietaryParameterDynamics(BaseClass*, BaseClass*); -bool assign_ProprietaryParameterDynamics_PFVArControllerType2UserDefined(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ProprietaryParameterDynamics* element = dynamic_cast(BaseClass_ptr1)) { - element->PFVArControllerType2UserDefined = dynamic_cast(BaseClass_ptr2); - if(element->PFVArControllerType2UserDefined != nullptr) - return assign_PFVArControllerType2UserDefined_ProprietaryParameterDynamics(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_VoltageCompensatorUserDefined_ProprietaryParameterDynamics(BaseClass*, BaseClass*); -bool assign_ProprietaryParameterDynamics_VoltageCompensatorUserDefined(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ProprietaryParameterDynamics* element = dynamic_cast(BaseClass_ptr1)) { - element->VoltageCompensatorUserDefined = dynamic_cast(BaseClass_ptr2); - if(element->VoltageCompensatorUserDefined != nullptr) - return assign_VoltageCompensatorUserDefined_ProprietaryParameterDynamics(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_LoadUserDefined_ProprietaryParameterDynamics(BaseClass*, BaseClass*); -bool assign_ProprietaryParameterDynamics_LoadUserDefined(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ProprietaryParameterDynamics* element = dynamic_cast(BaseClass_ptr1)) { - element->LoadUserDefined = dynamic_cast(BaseClass_ptr2); - if(element->LoadUserDefined != nullptr) - return assign_LoadUserDefined_ProprietaryParameterDynamics(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - - - - - - - - - - - - - - - - - - - - - - -bool assign_ProprietaryParameterDynamics_parameterNumber(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ProprietaryParameterDynamics* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->parameterNumber; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ProprietaryParameterDynamics_booleanParameterValue(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ProprietaryParameterDynamics* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->booleanParameterValue; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ProprietaryParameterDynamics_integerParameterValue(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ProprietaryParameterDynamics* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->integerParameterValue; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ProprietaryParameterDynamics_floatParameterValue(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ProprietaryParameterDynamics* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->floatParameterValue; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ProprietaryParameterDynamics_factory() { - return new ProprietaryParameterDynamics; - } -} - -void ProprietaryParameterDynamics::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ProprietaryParameterDynamics"), &ProprietaryParameterDynamics_factory)); -} - -void ProprietaryParameterDynamics::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ProprietaryParameterDynamics.parameterNumber"), &assign_ProprietaryParameterDynamics_parameterNumber)); - assign_map.insert(std::make_pair(std::string("cim:ProprietaryParameterDynamics.booleanParameterValue"), &assign_ProprietaryParameterDynamics_booleanParameterValue)); - assign_map.insert(std::make_pair(std::string("cim:ProprietaryParameterDynamics.integerParameterValue"), &assign_ProprietaryParameterDynamics_integerParameterValue)); - assign_map.insert(std::make_pair(std::string("cim:ProprietaryParameterDynamics.floatParameterValue"), &assign_ProprietaryParameterDynamics_floatParameterValue)); -} - -void ProprietaryParameterDynamics::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ProprietaryParameterDynamics.WindPlantUserDefined"), &assign_ProprietaryParameterDynamics_WindPlantUserDefined)); - assign_map.insert(std::make_pair(std::string("cim:ProprietaryParameterDynamics.WindType1or2UserDefined"), &assign_ProprietaryParameterDynamics_WindType1or2UserDefined)); - assign_map.insert(std::make_pair(std::string("cim:ProprietaryParameterDynamics.WindType3or4UserDefined"), &assign_ProprietaryParameterDynamics_WindType3or4UserDefined)); - assign_map.insert(std::make_pair(std::string("cim:ProprietaryParameterDynamics.SynchronousMachineUserDefined"), &assign_ProprietaryParameterDynamics_SynchronousMachineUserDefined)); - assign_map.insert(std::make_pair(std::string("cim:ProprietaryParameterDynamics.AsynchronousMachineUserDefined"), &assign_ProprietaryParameterDynamics_AsynchronousMachineUserDefined)); - assign_map.insert(std::make_pair(std::string("cim:ProprietaryParameterDynamics.TurbineGovernorUserDefined"), &assign_ProprietaryParameterDynamics_TurbineGovernorUserDefined)); - assign_map.insert(std::make_pair(std::string("cim:ProprietaryParameterDynamics.TurbineLoadControllerUserDefined"), &assign_ProprietaryParameterDynamics_TurbineLoadControllerUserDefined)); - assign_map.insert(std::make_pair(std::string("cim:ProprietaryParameterDynamics.MechanicalLoadUserDefined"), &assign_ProprietaryParameterDynamics_MechanicalLoadUserDefined)); - assign_map.insert(std::make_pair(std::string("cim:ProprietaryParameterDynamics.ExcitationSystemUserDefined"), &assign_ProprietaryParameterDynamics_ExcitationSystemUserDefined)); - assign_map.insert(std::make_pair(std::string("cim:ProprietaryParameterDynamics.OverexcitationLimiterUserDefined"), &assign_ProprietaryParameterDynamics_OverexcitationLimiterUserDefined)); - assign_map.insert(std::make_pair(std::string("cim:ProprietaryParameterDynamics.UnderexcitationLimiterUserDefined"), &assign_ProprietaryParameterDynamics_UnderexcitationLimiterUserDefined)); - assign_map.insert(std::make_pair(std::string("cim:ProprietaryParameterDynamics.PowerSystemStabilizerUserDefined"), &assign_ProprietaryParameterDynamics_PowerSystemStabilizerUserDefined)); - assign_map.insert(std::make_pair(std::string("cim:ProprietaryParameterDynamics.DiscontinuousExcitationControlUserDefined"), &assign_ProprietaryParameterDynamics_DiscontinuousExcitationControlUserDefined)); - assign_map.insert(std::make_pair(std::string("cim:ProprietaryParameterDynamics.PFVArControllerType1UserDefined"), &assign_ProprietaryParameterDynamics_PFVArControllerType1UserDefined)); - assign_map.insert(std::make_pair(std::string("cim:ProprietaryParameterDynamics.VoltageAdjusterUserDefined"), &assign_ProprietaryParameterDynamics_VoltageAdjusterUserDefined)); - assign_map.insert(std::make_pair(std::string("cim:ProprietaryParameterDynamics.PFVArControllerType2UserDefined"), &assign_ProprietaryParameterDynamics_PFVArControllerType2UserDefined)); - assign_map.insert(std::make_pair(std::string("cim:ProprietaryParameterDynamics.VoltageCompensatorUserDefined"), &assign_ProprietaryParameterDynamics_VoltageCompensatorUserDefined)); - assign_map.insert(std::make_pair(std::string("cim:ProprietaryParameterDynamics.LoadUserDefined"), &assign_ProprietaryParameterDynamics_LoadUserDefined)); - } - -const char ProprietaryParameterDynamics::debugName[] = "ProprietaryParameterDynamics"; -const char* ProprietaryParameterDynamics::debugString() -{ - return ProprietaryParameterDynamics::debugName; -} - -const BaseClassDefiner ProprietaryParameterDynamics::declare() -{ - return BaseClassDefiner(ProprietaryParameterDynamics::addConstructToMap, ProprietaryParameterDynamics::addPrimitiveAssignFnsToMap, ProprietaryParameterDynamics::addClassAssignFnsToMap, ProprietaryParameterDynamics::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ProprietaryParameterDynamics.hpp b/CGMES_2.4.13_18DEC2013/ProprietaryParameterDynamics.hpp deleted file mode 100644 index 74d1117d2..000000000 --- a/CGMES_2.4.13_18DEC2013/ProprietaryParameterDynamics.hpp +++ /dev/null @@ -1,81 +0,0 @@ -#ifndef ProprietaryParameterDynamics_H -#define ProprietaryParameterDynamics_H - -#include "BaseClass.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Integer.hpp" -#include "Boolean.hpp" -#include "Simple_Float.hpp" - -namespace CIMPP { - - -class WindPlantUserDefined; -class WindType1or2UserDefined; -class WindType3or4UserDefined; -class SynchronousMachineUserDefined; -class AsynchronousMachineUserDefined; -class TurbineGovernorUserDefined; -class TurbineLoadControllerUserDefined; -class MechanicalLoadUserDefined; -class ExcitationSystemUserDefined; -class OverexcitationLimiterUserDefined; -class UnderexcitationLimiterUserDefined; -class PowerSystemStabilizerUserDefined; -class DiscontinuousExcitationControlUserDefined; -class PFVArControllerType1UserDefined; -class VoltageAdjusterUserDefined; -class PFVArControllerType2UserDefined; -class VoltageCompensatorUserDefined; -class LoadUserDefined; - /* - Supports definition of one or more parameters of several different datatypes for use by proprietary user-defined models. NOTE: This class does not inherit from IdentifiedObject since it is not intended that a single instance of it be referenced by more than one proprietary user-defined model instance. - */ - class ProprietaryParameterDynamics: public BaseClass - { - - public: - CIMPP::WindPlantUserDefined* WindPlantUserDefined; /* Proprietary user-defined model with which this parameter is associated. Default: 0 */ - CIMPP::WindType1or2UserDefined* WindType1or2UserDefined; /* Proprietary user-defined model with which this parameter is associated. Default: 0 */ - CIMPP::WindType3or4UserDefined* WindType3or4UserDefined; /* Proprietary user-defined model with which this parameter is associated. Default: 0 */ - CIMPP::SynchronousMachineUserDefined* SynchronousMachineUserDefined; /* Proprietary user-defined model with which this parameter is associated. Default: 0 */ - CIMPP::AsynchronousMachineUserDefined* AsynchronousMachineUserDefined; /* Proprietary user-defined model with which this parameter is associated. Default: 0 */ - CIMPP::TurbineGovernorUserDefined* TurbineGovernorUserDefined; /* Proprietary user-defined model with which this parameter is associated. Default: 0 */ - CIMPP::TurbineLoadControllerUserDefined* TurbineLoadControllerUserDefined; /* Proprietary user-defined model with which this parameter is associated. Default: 0 */ - CIMPP::MechanicalLoadUserDefined* MechanicalLoadUserDefined; /* Proprietary user-defined model with which this parameter is associated. Default: 0 */ - CIMPP::ExcitationSystemUserDefined* ExcitationSystemUserDefined; /* Proprietary user-defined model with which this parameter is associated. Default: 0 */ - CIMPP::OverexcitationLimiterUserDefined* OverexcitationLimiterUserDefined; /* Proprietary user-defined model with which this parameter is associated. Default: 0 */ - CIMPP::UnderexcitationLimiterUserDefined* UnderexcitationLimiterUserDefined; /* Proprietary user-defined model with which this parameter is associated. Default: 0 */ - CIMPP::PowerSystemStabilizerUserDefined* PowerSystemStabilizerUserDefined; /* Proprietary user-defined model with which this parameter is associated. Default: 0 */ - CIMPP::DiscontinuousExcitationControlUserDefined* DiscontinuousExcitationControlUserDefined; /* Proprietary user-defined model with which this parameter is associated. Default: 0 */ - CIMPP::PFVArControllerType1UserDefined* PFVArControllerType1UserDefined; /* Proprietary user-defined model with which this parameter is associated. Default: 0 */ - CIMPP::VoltageAdjusterUserDefined* VoltageAdjusterUserDefined; /* Proprietary user-defined model with which this parameter is associated. Default: 0 */ - CIMPP::PFVArControllerType2UserDefined* PFVArControllerType2UserDefined; /* Proprietary user-defined model with which this parameter is associated. Default: 0 */ - CIMPP::VoltageCompensatorUserDefined* VoltageCompensatorUserDefined; /* Proprietary user-defined model with which this parameter is associated. Default: 0 */ - CIMPP::LoadUserDefined* LoadUserDefined; /* Proprietary user-defined model with which this parameter is associated. Default: 0 */ - CIMPP::Integer parameterNumber; /* Sequence number of the parameter among the set of parameters associated with the related proprietary user-defined model. Default: 0 */ - CIMPP::Boolean booleanParameterValue; /* Used for boolean parameter value. If this attribute is populated, integerParameterValue and floatParameterValue will not be. Default: false */ - CIMPP::Integer integerParameterValue; /* Used for integer parameter value. If this attribute is populated, booleanParameterValue and floatParameterValue will not be. Default: 0 */ - CIMPP::Simple_Float floatParameterValue; /* Used for floating point parameter value. If this attribute is populated, booleanParameterValue and integerParameterValue will not be. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ProprietaryParameterDynamics(); - virtual ~ProprietaryParameterDynamics(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ProprietaryParameterDynamics_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ProtectedSwitch.cpp b/CGMES_2.4.13_18DEC2013/ProtectedSwitch.cpp deleted file mode 100644 index c7616980f..000000000 --- a/CGMES_2.4.13_18DEC2013/ProtectedSwitch.cpp +++ /dev/null @@ -1,41 +0,0 @@ -#include -#include "Switch.hpp" -#include "ProtectedSwitch.hpp" - - -using namespace CIMPP; - -ProtectedSwitch::ProtectedSwitch() {}; - -ProtectedSwitch::~ProtectedSwitch() {}; - - - -namespace CIMPP { - BaseClass* ProtectedSwitch_factory() { - return new ProtectedSwitch; - } -} - -void ProtectedSwitch::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ProtectedSwitch"), &ProtectedSwitch_factory)); -} - -void ProtectedSwitch::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { -} - -void ProtectedSwitch::addClassAssignFnsToMap(std::unordered_map& assign_map) { -} - -const char ProtectedSwitch::debugName[] = "ProtectedSwitch"; -const char* ProtectedSwitch::debugString() -{ - return ProtectedSwitch::debugName; -} - -const BaseClassDefiner ProtectedSwitch::declare() -{ - return BaseClassDefiner(ProtectedSwitch::addConstructToMap, ProtectedSwitch::addPrimitiveAssignFnsToMap, ProtectedSwitch::addClassAssignFnsToMap, ProtectedSwitch::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ProtectedSwitch.hpp b/CGMES_2.4.13_18DEC2013/ProtectedSwitch.hpp deleted file mode 100644 index 0c869db06..000000000 --- a/CGMES_2.4.13_18DEC2013/ProtectedSwitch.hpp +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef ProtectedSwitch_H -#define ProtectedSwitch_H - -#include "Switch.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - - /* - A ProtectedSwitch is a switching device that can be operated by ProtectionEquipment. - */ - class ProtectedSwitch: public Switch - { - - public: - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ProtectedSwitch(); - virtual ~ProtectedSwitch(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ProtectedSwitch_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/Pss1.cpp b/CGMES_2.4.13_18DEC2013/Pss1.cpp deleted file mode 100644 index 408478378..000000000 --- a/CGMES_2.4.13_18DEC2013/Pss1.cpp +++ /dev/null @@ -1,266 +0,0 @@ -#include -#include "PowerSystemStabilizerDynamics.hpp" -#include "Pss1.hpp" - -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Boolean.hpp" - -using namespace CIMPP; - -Pss1::Pss1() {}; - -Pss1::~Pss1() {}; - - - - - - - - - - - - - - - - - - -bool assign_Pss1_kw(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kw; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss1_kf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss1_kpe(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kpe; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss1_pmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss1_ks(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ks; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss1_vsmn(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vsmn; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss1_vsmx(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vsmx; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss1_tpe(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tpe; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss1_t5(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss1_t6(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t6; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss1_t7(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t7; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss1_t8(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t8; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss1_t9(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t9; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss1_t10(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t10; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss1_vadat(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vadat; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* Pss1_factory() { - return new Pss1; - } -} - -void Pss1::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:Pss1"), &Pss1_factory)); -} - -void Pss1::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:Pss1.kw"), &assign_Pss1_kw)); - assign_map.insert(std::make_pair(std::string("cim:Pss1.kf"), &assign_Pss1_kf)); - assign_map.insert(std::make_pair(std::string("cim:Pss1.kpe"), &assign_Pss1_kpe)); - assign_map.insert(std::make_pair(std::string("cim:Pss1.pmin"), &assign_Pss1_pmin)); - assign_map.insert(std::make_pair(std::string("cim:Pss1.ks"), &assign_Pss1_ks)); - assign_map.insert(std::make_pair(std::string("cim:Pss1.vsmn"), &assign_Pss1_vsmn)); - assign_map.insert(std::make_pair(std::string("cim:Pss1.vsmx"), &assign_Pss1_vsmx)); - assign_map.insert(std::make_pair(std::string("cim:Pss1.tpe"), &assign_Pss1_tpe)); - assign_map.insert(std::make_pair(std::string("cim:Pss1.t5"), &assign_Pss1_t5)); - assign_map.insert(std::make_pair(std::string("cim:Pss1.t6"), &assign_Pss1_t6)); - assign_map.insert(std::make_pair(std::string("cim:Pss1.t7"), &assign_Pss1_t7)); - assign_map.insert(std::make_pair(std::string("cim:Pss1.t8"), &assign_Pss1_t8)); - assign_map.insert(std::make_pair(std::string("cim:Pss1.t9"), &assign_Pss1_t9)); - assign_map.insert(std::make_pair(std::string("cim:Pss1.t10"), &assign_Pss1_t10)); - assign_map.insert(std::make_pair(std::string("cim:Pss1.vadat"), &assign_Pss1_vadat)); -} - -void Pss1::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char Pss1::debugName[] = "Pss1"; -const char* Pss1::debugString() -{ - return Pss1::debugName; -} - -const BaseClassDefiner Pss1::declare() -{ - return BaseClassDefiner(Pss1::addConstructToMap, Pss1::addPrimitiveAssignFnsToMap, Pss1::addClassAssignFnsToMap, Pss1::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/Pss1.hpp b/CGMES_2.4.13_18DEC2013/Pss1.hpp deleted file mode 100644 index 4d9ffbe22..000000000 --- a/CGMES_2.4.13_18DEC2013/Pss1.hpp +++ /dev/null @@ -1,57 +0,0 @@ -#ifndef Pss1_H -#define Pss1_H - -#include "PowerSystemStabilizerDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Boolean.hpp" - -namespace CIMPP { - - - /* - Italian PSS - three input PSS (speed, frequency, power). - */ - class Pss1: public PowerSystemStabilizerDynamics - { - - public: - CIMPP::Simple_Float kw; /* Shaft speed power input gain (K). Typical Value = 0. Default: nullptr */ - CIMPP::Simple_Float kf; /* Frequency power input gain (K). Typical Value = 5. Default: nullptr */ - CIMPP::Simple_Float kpe; /* Electric power input gain (K). Typical Value = 0.3. Default: nullptr */ - CIMPP::PU pmin; /* Minimum power PSS enabling (P). Typical Value = 0.25. Default: nullptr */ - CIMPP::Simple_Float ks; /* PSS gain (K). Typical Value = 1. Default: nullptr */ - CIMPP::PU vsmn; /* Stabilizer output max limit (V). Typical Value = -0.06. Default: nullptr */ - CIMPP::PU vsmx; /* Stabilizer output min limit (V). Typical Value = 0.06. Default: nullptr */ - CIMPP::Seconds tpe; /* Electric power filter time constant (T). Typical Value = 0.05. Default: nullptr */ - CIMPP::Seconds t5; /* Washout (T). Typical Value = 3.5. Default: nullptr */ - CIMPP::Seconds t6; /* Filter time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds t7; /* Lead/lag time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds t8; /* Lead/lag time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds t9; /* Lead/lag time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds t10; /* Lead/lag time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::Boolean vadat; /* Default: false */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - Pss1(); - virtual ~Pss1(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* Pss1_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/Pss1A.cpp b/CGMES_2.4.13_18DEC2013/Pss1A.cpp deleted file mode 100644 index b78db3b02..000000000 --- a/CGMES_2.4.13_18DEC2013/Pss1A.cpp +++ /dev/null @@ -1,371 +0,0 @@ -#include -#include "PowerSystemStabilizerDynamics.hpp" -#include "Pss1A.hpp" - -#include "InputSignalKind.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Boolean.hpp" -#include "Seconds.hpp" - -using namespace CIMPP; - -Pss1A::Pss1A() {}; - -Pss1A::~Pss1A() {}; - - - - - - - - - - - - - - - - - - - - - - - - - -bool assign_Pss1A_inputSignalType(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->inputSignalType; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss1A_a1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->a1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss1A_a2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->a2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss1A_t1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss1A_t2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss1A_t3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss1A_t4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss1A_t5(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss1A_t6(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t6; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss1A_ks(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ks; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss1A_vrmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss1A_vrmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss1A_vcu(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vcu; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss1A_vcl(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vcl; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss1A_a3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->a3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss1A_a4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->a4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss1A_a5(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->a5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss1A_a6(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->a6; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss1A_a7(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->a7; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss1A_a8(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->a8; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss1A_kd(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kd; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss1A_tdelay(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tdelay; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* Pss1A_factory() { - return new Pss1A; - } -} - -void Pss1A::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:Pss1A"), &Pss1A_factory)); -} - -void Pss1A::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:Pss1A.inputSignalType"), &assign_Pss1A_inputSignalType)); - assign_map.insert(std::make_pair(std::string("cim:Pss1A.a1"), &assign_Pss1A_a1)); - assign_map.insert(std::make_pair(std::string("cim:Pss1A.a2"), &assign_Pss1A_a2)); - assign_map.insert(std::make_pair(std::string("cim:Pss1A.t1"), &assign_Pss1A_t1)); - assign_map.insert(std::make_pair(std::string("cim:Pss1A.t2"), &assign_Pss1A_t2)); - assign_map.insert(std::make_pair(std::string("cim:Pss1A.t3"), &assign_Pss1A_t3)); - assign_map.insert(std::make_pair(std::string("cim:Pss1A.t4"), &assign_Pss1A_t4)); - assign_map.insert(std::make_pair(std::string("cim:Pss1A.t5"), &assign_Pss1A_t5)); - assign_map.insert(std::make_pair(std::string("cim:Pss1A.t6"), &assign_Pss1A_t6)); - assign_map.insert(std::make_pair(std::string("cim:Pss1A.ks"), &assign_Pss1A_ks)); - assign_map.insert(std::make_pair(std::string("cim:Pss1A.vrmax"), &assign_Pss1A_vrmax)); - assign_map.insert(std::make_pair(std::string("cim:Pss1A.vrmin"), &assign_Pss1A_vrmin)); - assign_map.insert(std::make_pair(std::string("cim:Pss1A.vcu"), &assign_Pss1A_vcu)); - assign_map.insert(std::make_pair(std::string("cim:Pss1A.vcl"), &assign_Pss1A_vcl)); - assign_map.insert(std::make_pair(std::string("cim:Pss1A.a3"), &assign_Pss1A_a3)); - assign_map.insert(std::make_pair(std::string("cim:Pss1A.a4"), &assign_Pss1A_a4)); - assign_map.insert(std::make_pair(std::string("cim:Pss1A.a5"), &assign_Pss1A_a5)); - assign_map.insert(std::make_pair(std::string("cim:Pss1A.a6"), &assign_Pss1A_a6)); - assign_map.insert(std::make_pair(std::string("cim:Pss1A.a7"), &assign_Pss1A_a7)); - assign_map.insert(std::make_pair(std::string("cim:Pss1A.a8"), &assign_Pss1A_a8)); - assign_map.insert(std::make_pair(std::string("cim:Pss1A.kd"), &assign_Pss1A_kd)); - assign_map.insert(std::make_pair(std::string("cim:Pss1A.tdelay"), &assign_Pss1A_tdelay)); -} - -void Pss1A::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char Pss1A::debugName[] = "Pss1A"; -const char* Pss1A::debugString() -{ - return Pss1A::debugName; -} - -const BaseClassDefiner Pss1A::declare() -{ - return BaseClassDefiner(Pss1A::addConstructToMap, Pss1A::addPrimitiveAssignFnsToMap, Pss1A::addClassAssignFnsToMap, Pss1A::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/Pss1A.hpp b/CGMES_2.4.13_18DEC2013/Pss1A.hpp deleted file mode 100644 index 39477bd6b..000000000 --- a/CGMES_2.4.13_18DEC2013/Pss1A.hpp +++ /dev/null @@ -1,64 +0,0 @@ -#ifndef Pss1A_H -#define Pss1A_H - -#include "PowerSystemStabilizerDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "InputSignalKind.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Boolean.hpp" - -namespace CIMPP { - - - /* - Single input power system stabilizer. It is a modified version in order to allow representation of various vendors' implementations on PSS type 1A. - */ - class Pss1A: public PowerSystemStabilizerDynamics - { - - public: - CIMPP::InputSignalKind inputSignalType; /* Type of input signal. Default: 0 */ - CIMPP::PU a1; /* Notch filter parameter (A1). Default: nullptr */ - CIMPP::PU a2; /* Notch filter parameter (A2). Default: nullptr */ - CIMPP::Seconds t1; /* Lead/lag time constant (T1). Default: nullptr */ - CIMPP::Seconds t2; /* Lead/lag time constant (T2). Default: nullptr */ - CIMPP::Seconds t3; /* Lead/lag time constant (T3). Default: nullptr */ - CIMPP::Seconds t4; /* Lead/lag time constant (T4). Default: nullptr */ - CIMPP::Seconds t5; /* Washout time constant (T5). Default: nullptr */ - CIMPP::Seconds t6; /* Transducer time constant (T6). Default: nullptr */ - CIMPP::PU ks; /* Stabilizer gain (Ks). Default: nullptr */ - CIMPP::PU vrmax; /* Maximum stabilizer output (Vrmax). Default: nullptr */ - CIMPP::PU vrmin; /* Minimum stabilizer output (Vrmin). Default: nullptr */ - CIMPP::PU vcu; /* Stabilizer input cutoff threshold (Vcu). Default: nullptr */ - CIMPP::PU vcl; /* Stabilizer input cutoff threshold (Vcl). Default: nullptr */ - CIMPP::PU a3; /* Notch filter parameter (A3). Default: nullptr */ - CIMPP::PU a4; /* Notch filter parameter (A4). Default: nullptr */ - CIMPP::PU a5; /* Notch filter parameter (A5). Default: nullptr */ - CIMPP::PU a6; /* Notch filter parameter (A6). Default: nullptr */ - CIMPP::PU a7; /* Notch filter parameter (A7). Default: nullptr */ - CIMPP::PU a8; /* Notch filter parameter (A8). Default: nullptr */ - CIMPP::Boolean kd; /* Selector (Kd). true = e used false = e not used. Default: false */ - CIMPP::Seconds tdelay; /* Time constant (Tdelay). Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - Pss1A(); - virtual ~Pss1A(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* Pss1A_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/Pss2B.cpp b/CGMES_2.4.13_18DEC2013/Pss2B.cpp deleted file mode 100644 index 9716156c5..000000000 --- a/CGMES_2.4.13_18DEC2013/Pss2B.cpp +++ /dev/null @@ -1,506 +0,0 @@ -#include -#include "PowerSystemStabilizerDynamics.hpp" -#include "Pss2B.hpp" - -#include "InputSignalKind.hpp" -#include "InputSignalKind.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Integer.hpp" -#include "Integer.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" - -using namespace CIMPP; - -Pss2B::Pss2B() {}; - -Pss2B::~Pss2B() {}; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -bool assign_Pss2B_inputSignal1Type(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss2B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->inputSignal1Type; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss2B_inputSignal2Type(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss2B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->inputSignal2Type; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss2B_vsi1max(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss2B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vsi1max; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss2B_vsi1min(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss2B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vsi1min; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss2B_tw1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss2B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tw1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss2B_tw2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss2B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tw2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss2B_vsi2max(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss2B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vsi2max; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss2B_vsi2min(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss2B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vsi2min; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss2B_tw3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss2B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tw3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss2B_tw4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss2B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tw4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss2B_t1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss2B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss2B_t2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss2B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss2B_t3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss2B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss2B_t4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss2B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss2B_t6(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss2B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t6; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss2B_t7(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss2B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t7; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss2B_t8(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss2B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t8; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss2B_t9(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss2B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t9; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss2B_t10(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss2B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t10; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss2B_t11(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss2B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t11; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss2B_ks1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss2B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ks1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss2B_ks2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss2B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ks2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss2B_ks3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss2B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ks3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss2B_ks4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss2B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ks4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss2B_n(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss2B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->n; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss2B_m(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss2B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->m; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss2B_vstmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss2B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vstmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss2B_vstmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss2B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vstmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss2B_a(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss2B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->a; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss2B_ta(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss2B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ta; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss2B_tb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss2B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* Pss2B_factory() { - return new Pss2B; - } -} - -void Pss2B::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:Pss2B"), &Pss2B_factory)); -} - -void Pss2B::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:Pss2B.inputSignal1Type"), &assign_Pss2B_inputSignal1Type)); - assign_map.insert(std::make_pair(std::string("cim:Pss2B.inputSignal2Type"), &assign_Pss2B_inputSignal2Type)); - assign_map.insert(std::make_pair(std::string("cim:Pss2B.vsi1max"), &assign_Pss2B_vsi1max)); - assign_map.insert(std::make_pair(std::string("cim:Pss2B.vsi1min"), &assign_Pss2B_vsi1min)); - assign_map.insert(std::make_pair(std::string("cim:Pss2B.tw1"), &assign_Pss2B_tw1)); - assign_map.insert(std::make_pair(std::string("cim:Pss2B.tw2"), &assign_Pss2B_tw2)); - assign_map.insert(std::make_pair(std::string("cim:Pss2B.vsi2max"), &assign_Pss2B_vsi2max)); - assign_map.insert(std::make_pair(std::string("cim:Pss2B.vsi2min"), &assign_Pss2B_vsi2min)); - assign_map.insert(std::make_pair(std::string("cim:Pss2B.tw3"), &assign_Pss2B_tw3)); - assign_map.insert(std::make_pair(std::string("cim:Pss2B.tw4"), &assign_Pss2B_tw4)); - assign_map.insert(std::make_pair(std::string("cim:Pss2B.t1"), &assign_Pss2B_t1)); - assign_map.insert(std::make_pair(std::string("cim:Pss2B.t2"), &assign_Pss2B_t2)); - assign_map.insert(std::make_pair(std::string("cim:Pss2B.t3"), &assign_Pss2B_t3)); - assign_map.insert(std::make_pair(std::string("cim:Pss2B.t4"), &assign_Pss2B_t4)); - assign_map.insert(std::make_pair(std::string("cim:Pss2B.t6"), &assign_Pss2B_t6)); - assign_map.insert(std::make_pair(std::string("cim:Pss2B.t7"), &assign_Pss2B_t7)); - assign_map.insert(std::make_pair(std::string("cim:Pss2B.t8"), &assign_Pss2B_t8)); - assign_map.insert(std::make_pair(std::string("cim:Pss2B.t9"), &assign_Pss2B_t9)); - assign_map.insert(std::make_pair(std::string("cim:Pss2B.t10"), &assign_Pss2B_t10)); - assign_map.insert(std::make_pair(std::string("cim:Pss2B.t11"), &assign_Pss2B_t11)); - assign_map.insert(std::make_pair(std::string("cim:Pss2B.ks1"), &assign_Pss2B_ks1)); - assign_map.insert(std::make_pair(std::string("cim:Pss2B.ks2"), &assign_Pss2B_ks2)); - assign_map.insert(std::make_pair(std::string("cim:Pss2B.ks3"), &assign_Pss2B_ks3)); - assign_map.insert(std::make_pair(std::string("cim:Pss2B.ks4"), &assign_Pss2B_ks4)); - assign_map.insert(std::make_pair(std::string("cim:Pss2B.n"), &assign_Pss2B_n)); - assign_map.insert(std::make_pair(std::string("cim:Pss2B.m"), &assign_Pss2B_m)); - assign_map.insert(std::make_pair(std::string("cim:Pss2B.vstmax"), &assign_Pss2B_vstmax)); - assign_map.insert(std::make_pair(std::string("cim:Pss2B.vstmin"), &assign_Pss2B_vstmin)); - assign_map.insert(std::make_pair(std::string("cim:Pss2B.a"), &assign_Pss2B_a)); - assign_map.insert(std::make_pair(std::string("cim:Pss2B.ta"), &assign_Pss2B_ta)); - assign_map.insert(std::make_pair(std::string("cim:Pss2B.tb"), &assign_Pss2B_tb)); -} - -void Pss2B::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char Pss2B::debugName[] = "Pss2B"; -const char* Pss2B::debugString() -{ - return Pss2B::debugName; -} - -const BaseClassDefiner Pss2B::declare() -{ - return BaseClassDefiner(Pss2B::addConstructToMap, Pss2B::addPrimitiveAssignFnsToMap, Pss2B::addClassAssignFnsToMap, Pss2B::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/Pss2B.hpp b/CGMES_2.4.13_18DEC2013/Pss2B.hpp deleted file mode 100644 index af58a81df..000000000 --- a/CGMES_2.4.13_18DEC2013/Pss2B.hpp +++ /dev/null @@ -1,74 +0,0 @@ -#ifndef Pss2B_H -#define Pss2B_H - -#include "PowerSystemStabilizerDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "InputSignalKind.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Integer.hpp" -#include "Simple_Float.hpp" - -namespace CIMPP { - - - /* - Modified IEEE PSS2B Model. Extra lead/lag (or rate) block added at end (up to 4 lead/lags total). - */ - class Pss2B: public PowerSystemStabilizerDynamics - { - - public: - CIMPP::InputSignalKind inputSignal1Type; /* Type of input signal #1. Typical Value = rotorSpeed. Default: 0 */ - CIMPP::InputSignalKind inputSignal2Type; /* Type of input signal #2. Typical Value = generatorElectricalPower. Default: 0 */ - CIMPP::PU vsi1max; /* Input signal #1 max limit (Vsi1max). Typical Value = 2. Default: nullptr */ - CIMPP::PU vsi1min; /* Input signal #1 min limit (Vsi1min). Typical Value = -2. Default: nullptr */ - CIMPP::Seconds tw1; /* First washout on signal #1 (Tw1). Typical Value = 2. Default: nullptr */ - CIMPP::Seconds tw2; /* Second washout on signal #1 (Tw2). Typical Value = 2. Default: nullptr */ - CIMPP::PU vsi2max; /* Input signal #2 max limit (Vsi2max). Typical Value = 2. Default: nullptr */ - CIMPP::PU vsi2min; /* Input signal #2 min limit (Vsi2min). Typical Value = -2. Default: nullptr */ - CIMPP::Seconds tw3; /* First washout on signal #2 (Tw3). Typical Value = 2. Default: nullptr */ - CIMPP::Seconds tw4; /* Second washout on signal #2 (Tw4). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds t1; /* Lead/lag time constant (T1). Typical Value = 0.12. Default: nullptr */ - CIMPP::Seconds t2; /* Lead/lag time constant (T2). Typical Value = 0.02. Default: nullptr */ - CIMPP::Seconds t3; /* Lead/lag time constant (T3). Typical Value = 0.3. Default: nullptr */ - CIMPP::Seconds t4; /* Lead/lag time constant (T4). Typical Value = 0.02. Default: nullptr */ - CIMPP::Seconds t6; /* Time constant on signal #1 (T6). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds t7; /* Time constant on signal #2 (T7). Typical Value = 2. Default: nullptr */ - CIMPP::Seconds t8; /* Lead of ramp tracking filter (T8). Typical Value = 0.2. Default: nullptr */ - CIMPP::Seconds t9; /* Lag of ramp tracking filter (T9). Typical Value = 0.1. Default: nullptr */ - CIMPP::Seconds t10; /* Lead/lag time constant (T10). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds t11; /* Lead/lag time constant (T11). Typical Value = 0. Default: nullptr */ - CIMPP::PU ks1; /* Stabilizer gain (Ks1). Typical Value = 12. Default: nullptr */ - CIMPP::PU ks2; /* Gain on signal #2 (Ks2). Typical Value = 0.2. Default: nullptr */ - CIMPP::PU ks3; /* Gain on signal #2 input before ramp-tracking filter (Ks3). Typical Value = 1. Default: nullptr */ - CIMPP::PU ks4; /* Gain on signal #2 input after ramp-tracking filter (Ks4). Typical Value = 1. Default: nullptr */ - CIMPP::Integer n; /* Order of ramp tracking filter (N). Typical Value = 1. Default: 0 */ - CIMPP::Integer m; /* Denominator order of ramp tracking filter (M). Typical Value = 5. Default: 0 */ - CIMPP::PU vstmax; /* Stabilizer output max limit (Vstmax). Typical Value = 0.1. Default: nullptr */ - CIMPP::PU vstmin; /* Stabilizer output min limit (Vstmin). Typical Value = -0.1. Default: nullptr */ - CIMPP::Simple_Float a; /* Numerator constant (a). Typical Value = 1. Default: nullptr */ - CIMPP::Seconds ta; /* Lead constant (Ta). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tb; /* Lag time constant (Tb). Typical Value = 0. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - Pss2B(); - virtual ~Pss2B(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* Pss2B_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/Pss2ST.cpp b/CGMES_2.4.13_18DEC2013/Pss2ST.cpp deleted file mode 100644 index 27a8ff8a0..000000000 --- a/CGMES_2.4.13_18DEC2013/Pss2ST.cpp +++ /dev/null @@ -1,311 +0,0 @@ -#include -#include "PowerSystemStabilizerDynamics.hpp" -#include "Pss2ST.hpp" - -#include "InputSignalKind.hpp" -#include "InputSignalKind.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -Pss2ST::Pss2ST() {}; - -Pss2ST::~Pss2ST() {}; - - - - - - - - - - - - - - - - - - - - - -bool assign_Pss2ST_inputSignal1Type(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss2ST* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->inputSignal1Type; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss2ST_inputSignal2Type(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss2ST* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->inputSignal2Type; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss2ST_k1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss2ST* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss2ST_k2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss2ST* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss2ST_t1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss2ST* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss2ST_t2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss2ST* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss2ST_t3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss2ST* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss2ST_t4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss2ST* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss2ST_t5(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss2ST* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss2ST_t6(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss2ST* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t6; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss2ST_t7(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss2ST* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t7; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss2ST_t8(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss2ST* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t8; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss2ST_t9(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss2ST* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t9; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss2ST_t10(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss2ST* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t10; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss2ST_lsmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss2ST* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->lsmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss2ST_lsmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss2ST* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->lsmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss2ST_vcu(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss2ST* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vcu; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss2ST_vcl(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss2ST* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vcl; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* Pss2ST_factory() { - return new Pss2ST; - } -} - -void Pss2ST::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:Pss2ST"), &Pss2ST_factory)); -} - -void Pss2ST::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:Pss2ST.inputSignal1Type"), &assign_Pss2ST_inputSignal1Type)); - assign_map.insert(std::make_pair(std::string("cim:Pss2ST.inputSignal2Type"), &assign_Pss2ST_inputSignal2Type)); - assign_map.insert(std::make_pair(std::string("cim:Pss2ST.k1"), &assign_Pss2ST_k1)); - assign_map.insert(std::make_pair(std::string("cim:Pss2ST.k2"), &assign_Pss2ST_k2)); - assign_map.insert(std::make_pair(std::string("cim:Pss2ST.t1"), &assign_Pss2ST_t1)); - assign_map.insert(std::make_pair(std::string("cim:Pss2ST.t2"), &assign_Pss2ST_t2)); - assign_map.insert(std::make_pair(std::string("cim:Pss2ST.t3"), &assign_Pss2ST_t3)); - assign_map.insert(std::make_pair(std::string("cim:Pss2ST.t4"), &assign_Pss2ST_t4)); - assign_map.insert(std::make_pair(std::string("cim:Pss2ST.t5"), &assign_Pss2ST_t5)); - assign_map.insert(std::make_pair(std::string("cim:Pss2ST.t6"), &assign_Pss2ST_t6)); - assign_map.insert(std::make_pair(std::string("cim:Pss2ST.t7"), &assign_Pss2ST_t7)); - assign_map.insert(std::make_pair(std::string("cim:Pss2ST.t8"), &assign_Pss2ST_t8)); - assign_map.insert(std::make_pair(std::string("cim:Pss2ST.t9"), &assign_Pss2ST_t9)); - assign_map.insert(std::make_pair(std::string("cim:Pss2ST.t10"), &assign_Pss2ST_t10)); - assign_map.insert(std::make_pair(std::string("cim:Pss2ST.lsmax"), &assign_Pss2ST_lsmax)); - assign_map.insert(std::make_pair(std::string("cim:Pss2ST.lsmin"), &assign_Pss2ST_lsmin)); - assign_map.insert(std::make_pair(std::string("cim:Pss2ST.vcu"), &assign_Pss2ST_vcu)); - assign_map.insert(std::make_pair(std::string("cim:Pss2ST.vcl"), &assign_Pss2ST_vcl)); -} - -void Pss2ST::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char Pss2ST::debugName[] = "Pss2ST"; -const char* Pss2ST::debugString() -{ - return Pss2ST::debugName; -} - -const BaseClassDefiner Pss2ST::declare() -{ - return BaseClassDefiner(Pss2ST::addConstructToMap, Pss2ST::addPrimitiveAssignFnsToMap, Pss2ST::addClassAssignFnsToMap, Pss2ST::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/Pss2ST.hpp b/CGMES_2.4.13_18DEC2013/Pss2ST.hpp deleted file mode 100644 index 3ac8add11..000000000 --- a/CGMES_2.4.13_18DEC2013/Pss2ST.hpp +++ /dev/null @@ -1,59 +0,0 @@ -#ifndef Pss2ST_H -#define Pss2ST_H - -#include "PowerSystemStabilizerDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "InputSignalKind.hpp" -#include "PU.hpp" -#include "Seconds.hpp" - -namespace CIMPP { - - - /* - PTI Microprocessor-Based Stabilizer type 1. - */ - class Pss2ST: public PowerSystemStabilizerDynamics - { - - public: - CIMPP::InputSignalKind inputSignal1Type; /* Type of input signal #1. Typical Value = rotorAngularFrequencyDeviation. Default: 0 */ - CIMPP::InputSignalKind inputSignal2Type; /* Type of input signal #2. Typical Value = generatorElectricalPower. Default: 0 */ - CIMPP::PU k1; /* Gain (K1). Default: nullptr */ - CIMPP::PU k2; /* Gain (K2). Default: nullptr */ - CIMPP::Seconds t1; /* Time constant (T1). Default: nullptr */ - CIMPP::Seconds t2; /* Time constant (T2). Default: nullptr */ - CIMPP::Seconds t3; /* Time constant (T3). Default: nullptr */ - CIMPP::Seconds t4; /* Time constant (T4). Default: nullptr */ - CIMPP::Seconds t5; /* Time constant (T5). Default: nullptr */ - CIMPP::Seconds t6; /* Time constant (T6). Default: nullptr */ - CIMPP::Seconds t7; /* Time constant (T7). Default: nullptr */ - CIMPP::Seconds t8; /* Time constant (T8). Default: nullptr */ - CIMPP::Seconds t9; /* Time constant (T9). Default: nullptr */ - CIMPP::Seconds t10; /* Time constant (T10). Default: nullptr */ - CIMPP::PU lsmax; /* Limiter (Lsmax). Default: nullptr */ - CIMPP::PU lsmin; /* Limiter (Lsmin). Default: nullptr */ - CIMPP::PU vcu; /* Cutoff limiter (Vcu). Default: nullptr */ - CIMPP::PU vcl; /* Cutoff limiter (Vcl). Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - Pss2ST(); - virtual ~Pss2ST(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* Pss2ST_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/Pss5.cpp b/CGMES_2.4.13_18DEC2013/Pss5.cpp deleted file mode 100644 index 455cfab8e..000000000 --- a/CGMES_2.4.13_18DEC2013/Pss5.cpp +++ /dev/null @@ -1,296 +0,0 @@ -#include -#include "PowerSystemStabilizerDynamics.hpp" -#include "Pss5.hpp" - -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Boolean.hpp" -#include "Simple_Float.hpp" -#include "Boolean.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Boolean.hpp" - -using namespace CIMPP; - -Pss5::Pss5() {}; - -Pss5::~Pss5() {}; - - - - - - - - - - - - - - - - - - - - -bool assign_Pss5_kpe(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss5* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kpe; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss5_kf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss5* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss5_isfreq(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss5* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->isfreq; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss5_kpss(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss5* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kpss; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss5_ctw2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss5* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ctw2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss5_tw1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss5* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tw1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss5_tw2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss5* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tw2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss5_tl1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss5* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tl1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss5_tl2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss5* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tl2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss5_tl3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss5* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tl3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss5_tl4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss5* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tl4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss5_vsmn(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss5* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vsmn; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss5_vsmx(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss5* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vsmx; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss5_tpe(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss5* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tpe; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss5_pmm(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss5* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pmm; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss5_deadband(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss5* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->deadband; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Pss5_vadat(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Pss5* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vadat; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* Pss5_factory() { - return new Pss5; - } -} - -void Pss5::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:Pss5"), &Pss5_factory)); -} - -void Pss5::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:Pss5.kpe"), &assign_Pss5_kpe)); - assign_map.insert(std::make_pair(std::string("cim:Pss5.kf"), &assign_Pss5_kf)); - assign_map.insert(std::make_pair(std::string("cim:Pss5.isfreq"), &assign_Pss5_isfreq)); - assign_map.insert(std::make_pair(std::string("cim:Pss5.kpss"), &assign_Pss5_kpss)); - assign_map.insert(std::make_pair(std::string("cim:Pss5.ctw2"), &assign_Pss5_ctw2)); - assign_map.insert(std::make_pair(std::string("cim:Pss5.tw1"), &assign_Pss5_tw1)); - assign_map.insert(std::make_pair(std::string("cim:Pss5.tw2"), &assign_Pss5_tw2)); - assign_map.insert(std::make_pair(std::string("cim:Pss5.tl1"), &assign_Pss5_tl1)); - assign_map.insert(std::make_pair(std::string("cim:Pss5.tl2"), &assign_Pss5_tl2)); - assign_map.insert(std::make_pair(std::string("cim:Pss5.tl3"), &assign_Pss5_tl3)); - assign_map.insert(std::make_pair(std::string("cim:Pss5.tl4"), &assign_Pss5_tl4)); - assign_map.insert(std::make_pair(std::string("cim:Pss5.vsmn"), &assign_Pss5_vsmn)); - assign_map.insert(std::make_pair(std::string("cim:Pss5.vsmx"), &assign_Pss5_vsmx)); - assign_map.insert(std::make_pair(std::string("cim:Pss5.tpe"), &assign_Pss5_tpe)); - assign_map.insert(std::make_pair(std::string("cim:Pss5.pmm"), &assign_Pss5_pmm)); - assign_map.insert(std::make_pair(std::string("cim:Pss5.deadband"), &assign_Pss5_deadband)); - assign_map.insert(std::make_pair(std::string("cim:Pss5.vadat"), &assign_Pss5_vadat)); -} - -void Pss5::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char Pss5::debugName[] = "Pss5"; -const char* Pss5::debugString() -{ - return Pss5::debugName; -} - -const BaseClassDefiner Pss5::declare() -{ - return BaseClassDefiner(Pss5::addConstructToMap, Pss5::addPrimitiveAssignFnsToMap, Pss5::addClassAssignFnsToMap, Pss5::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/Pss5.hpp b/CGMES_2.4.13_18DEC2013/Pss5.hpp deleted file mode 100644 index 4c792ad77..000000000 --- a/CGMES_2.4.13_18DEC2013/Pss5.hpp +++ /dev/null @@ -1,59 +0,0 @@ -#ifndef Pss5_H -#define Pss5_H - -#include "PowerSystemStabilizerDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Simple_Float.hpp" -#include "Boolean.hpp" -#include "Seconds.hpp" -#include "PU.hpp" - -namespace CIMPP { - - - /* - Italian PSS - Detailed PSS. - */ - class Pss5: public PowerSystemStabilizerDynamics - { - - public: - CIMPP::Simple_Float kpe; /* Electric power input gain (K). Typical Value = 0.3. Default: nullptr */ - CIMPP::Simple_Float kf; /* Frequency/shaft speed input gain (K). Typical Value = 5. Default: nullptr */ - CIMPP::Boolean isfreq; /* Selector for Frequency/shaft speed input (IsFreq). true = speed false = frequency. Typical Value = true. Default: false */ - CIMPP::Simple_Float kpss; /* PSS gain (K). Typical Value = 1. Default: nullptr */ - CIMPP::Boolean ctw2; /* Selector for Second washout enabling (C). true = second washout filter is bypassed false = second washout filter in use. Typical Value = true. Default: false */ - CIMPP::Seconds tw1; /* First WashOut (T). Typical Value = 3.5. Default: nullptr */ - CIMPP::Seconds tw2; /* Second WashOut (T). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tl1; /* Lead/lag time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tl2; /* Lead/lag time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tl3; /* Lead/lag time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tl4; /* Lead/lag time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::PU vsmn; /* Stabilizer output max limit (V). Typical Value = -0.1. Default: nullptr */ - CIMPP::PU vsmx; /* Stabilizer output min limit (V). Typical Value = 0.1. Default: nullptr */ - CIMPP::Seconds tpe; /* Electric power filter time constant (T). Typical Value = 0.05. Default: nullptr */ - CIMPP::PU pmm; /* Minimum power PSS enabling (P). Typical Value = 0.25. Default: nullptr */ - CIMPP::PU deadband; /* Stabilizer output dead band (DeadBand). Typical Value = 0. Default: nullptr */ - CIMPP::Boolean vadat; /* Default: false */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - Pss5(); - virtual ~Pss5(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* Pss5_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/PssELIN2.cpp b/CGMES_2.4.13_18DEC2013/PssELIN2.cpp deleted file mode 100644 index 703f07db6..000000000 --- a/CGMES_2.4.13_18DEC2013/PssELIN2.cpp +++ /dev/null @@ -1,206 +0,0 @@ -#include -#include "PowerSystemStabilizerDynamics.hpp" -#include "PssELIN2.hpp" - -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -PssELIN2::PssELIN2() {}; - -PssELIN2::~PssELIN2() {}; - - - - - - - - - - - - - - -bool assign_PssELIN2_ts1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssELIN2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ts1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssELIN2_ts2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssELIN2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ts2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssELIN2_ts3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssELIN2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ts3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssELIN2_ts4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssELIN2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ts4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssELIN2_ts5(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssELIN2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ts5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssELIN2_ts6(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssELIN2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ts6; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssELIN2_ks1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssELIN2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ks1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssELIN2_ks2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssELIN2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ks2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssELIN2_ppss(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssELIN2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ppss; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssELIN2_apss(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssELIN2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->apss; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssELIN2_psslim(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssELIN2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->psslim; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* PssELIN2_factory() { - return new PssELIN2; - } -} - -void PssELIN2::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:PssELIN2"), &PssELIN2_factory)); -} - -void PssELIN2::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:PssELIN2.ts1"), &assign_PssELIN2_ts1)); - assign_map.insert(std::make_pair(std::string("cim:PssELIN2.ts2"), &assign_PssELIN2_ts2)); - assign_map.insert(std::make_pair(std::string("cim:PssELIN2.ts3"), &assign_PssELIN2_ts3)); - assign_map.insert(std::make_pair(std::string("cim:PssELIN2.ts4"), &assign_PssELIN2_ts4)); - assign_map.insert(std::make_pair(std::string("cim:PssELIN2.ts5"), &assign_PssELIN2_ts5)); - assign_map.insert(std::make_pair(std::string("cim:PssELIN2.ts6"), &assign_PssELIN2_ts6)); - assign_map.insert(std::make_pair(std::string("cim:PssELIN2.ks1"), &assign_PssELIN2_ks1)); - assign_map.insert(std::make_pair(std::string("cim:PssELIN2.ks2"), &assign_PssELIN2_ks2)); - assign_map.insert(std::make_pair(std::string("cim:PssELIN2.ppss"), &assign_PssELIN2_ppss)); - assign_map.insert(std::make_pair(std::string("cim:PssELIN2.apss"), &assign_PssELIN2_apss)); - assign_map.insert(std::make_pair(std::string("cim:PssELIN2.psslim"), &assign_PssELIN2_psslim)); -} - -void PssELIN2::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char PssELIN2::debugName[] = "PssELIN2"; -const char* PssELIN2::debugString() -{ - return PssELIN2::debugName; -} - -const BaseClassDefiner PssELIN2::declare() -{ - return BaseClassDefiner(PssELIN2::addConstructToMap, PssELIN2::addPrimitiveAssignFnsToMap, PssELIN2::addClassAssignFnsToMap, PssELIN2::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/PssELIN2.hpp b/CGMES_2.4.13_18DEC2013/PssELIN2.hpp deleted file mode 100644 index ef2c9d869..000000000 --- a/CGMES_2.4.13_18DEC2013/PssELIN2.hpp +++ /dev/null @@ -1,51 +0,0 @@ -#ifndef PssELIN2_H -#define PssELIN2_H - -#include "PowerSystemStabilizerDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Seconds.hpp" -#include "PU.hpp" - -namespace CIMPP { - - - /* - Power system stabilizer typically associated with ExcELIN2 (though PssIEEE2B or Pss2B can also be used). - */ - class PssELIN2: public PowerSystemStabilizerDynamics - { - - public: - CIMPP::Seconds ts1; /* Time constant (Ts1). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds ts2; /* Time constant (Ts2). Typical Value = 1. Default: nullptr */ - CIMPP::Seconds ts3; /* Time constant (Ts3). Typical Value = 1. Default: nullptr */ - CIMPP::Seconds ts4; /* Time constant (Ts4). Typical Value = 0.1. Default: nullptr */ - CIMPP::Seconds ts5; /* Time constant (Ts5). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds ts6; /* Time constant (Ts6). Typical Value = 1. Default: nullptr */ - CIMPP::PU ks1; /* Gain (Ks1). Typical Value = 1. Default: nullptr */ - CIMPP::PU ks2; /* Gain (Ks2). Typical Value = 0.1. Default: nullptr */ - CIMPP::PU ppss; /* Coefficient (p_PSS) (>=0 and <=4). Typical Value = 0.1. Default: nullptr */ - CIMPP::PU apss; /* Coefficient (a_PSS). Typical Value = 0.1. Default: nullptr */ - CIMPP::PU psslim; /* PSS limiter (psslim). Typical Value = 0.1. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - PssELIN2(); - virtual ~PssELIN2(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* PssELIN2_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/PssIEEE1A.cpp b/CGMES_2.4.13_18DEC2013/PssIEEE1A.cpp deleted file mode 100644 index ae260b910..000000000 --- a/CGMES_2.4.13_18DEC2013/PssIEEE1A.cpp +++ /dev/null @@ -1,221 +0,0 @@ -#include -#include "PowerSystemStabilizerDynamics.hpp" -#include "PssIEEE1A.hpp" - -#include "InputSignalKind.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -PssIEEE1A::PssIEEE1A() {}; - -PssIEEE1A::~PssIEEE1A() {}; - - - - - - - - - - - - - - - -bool assign_PssIEEE1A_inputSignalType(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->inputSignalType; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE1A_a1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->a1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE1A_a2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->a2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE1A_t1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE1A_t2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE1A_t3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE1A_t4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE1A_t5(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE1A_t6(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t6; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE1A_ks(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ks; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE1A_vrmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE1A_vrmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE1A* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vrmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* PssIEEE1A_factory() { - return new PssIEEE1A; - } -} - -void PssIEEE1A::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:PssIEEE1A"), &PssIEEE1A_factory)); -} - -void PssIEEE1A::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:PssIEEE1A.inputSignalType"), &assign_PssIEEE1A_inputSignalType)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE1A.a1"), &assign_PssIEEE1A_a1)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE1A.a2"), &assign_PssIEEE1A_a2)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE1A.t1"), &assign_PssIEEE1A_t1)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE1A.t2"), &assign_PssIEEE1A_t2)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE1A.t3"), &assign_PssIEEE1A_t3)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE1A.t4"), &assign_PssIEEE1A_t4)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE1A.t5"), &assign_PssIEEE1A_t5)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE1A.t6"), &assign_PssIEEE1A_t6)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE1A.ks"), &assign_PssIEEE1A_ks)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE1A.vrmax"), &assign_PssIEEE1A_vrmax)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE1A.vrmin"), &assign_PssIEEE1A_vrmin)); -} - -void PssIEEE1A::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char PssIEEE1A::debugName[] = "PssIEEE1A"; -const char* PssIEEE1A::debugString() -{ - return PssIEEE1A::debugName; -} - -const BaseClassDefiner PssIEEE1A::declare() -{ - return BaseClassDefiner(PssIEEE1A::addConstructToMap, PssIEEE1A::addPrimitiveAssignFnsToMap, PssIEEE1A::addClassAssignFnsToMap, PssIEEE1A::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/PssIEEE1A.hpp b/CGMES_2.4.13_18DEC2013/PssIEEE1A.hpp deleted file mode 100644 index b25b525b7..000000000 --- a/CGMES_2.4.13_18DEC2013/PssIEEE1A.hpp +++ /dev/null @@ -1,53 +0,0 @@ -#ifndef PssIEEE1A_H -#define PssIEEE1A_H - -#include "PowerSystemStabilizerDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "InputSignalKind.hpp" -#include "PU.hpp" -#include "Seconds.hpp" - -namespace CIMPP { - - - /* - The class represents IEEE Std 421.5-2005 type PSS1A power system stabilizer model. PSS1A is the generalized form of a PSS with a single input. Some common stabilizer input signals are speed, frequency, and power. Reference: IEEE 1A 421.5-2005 Section 8.1. - */ - class PssIEEE1A: public PowerSystemStabilizerDynamics - { - - public: - CIMPP::InputSignalKind inputSignalType; /* Type of input signal. Typical Value = rotorAngularFrequencyDeviation. Default: 0 */ - CIMPP::PU a1; /* PSS signal conditioning frequency filter constant (A1). Typical Value = 0.061. Default: nullptr */ - CIMPP::PU a2; /* PSS signal conditioning frequency filter constant (A2). Typical Value = 0.0017. Default: nullptr */ - CIMPP::Seconds t1; /* Lead/lag time constant (T1). Typical Value = 0.3. Default: nullptr */ - CIMPP::Seconds t2; /* Lead/lag time constant (T2). Typical Value = 0.03. Default: nullptr */ - CIMPP::Seconds t3; /* Lead/lag time constant (T3). Typical Value = 0.3. Default: nullptr */ - CIMPP::Seconds t4; /* Lead/lag time constant (T4). Typical Value = 0.03. Default: nullptr */ - CIMPP::Seconds t5; /* Washout time constant (T5). Typical Value = 10. Default: nullptr */ - CIMPP::Seconds t6; /* Transducer time constant (T6). Typical Value = 0.01. Default: nullptr */ - CIMPP::PU ks; /* Stabilizer gain (Ks). Typical Value = 5. Default: nullptr */ - CIMPP::PU vrmax; /* Maximum stabilizer output (Vrmax). Typical Value = 0.05. Default: nullptr */ - CIMPP::PU vrmin; /* Minimum stabilizer output (Vrmin). Typical Value = -0.05. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - PssIEEE1A(); - virtual ~PssIEEE1A(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* PssIEEE1A_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/PssIEEE2B.cpp b/CGMES_2.4.13_18DEC2013/PssIEEE2B.cpp deleted file mode 100644 index dc56df282..000000000 --- a/CGMES_2.4.13_18DEC2013/PssIEEE2B.cpp +++ /dev/null @@ -1,446 +0,0 @@ -#include -#include "PowerSystemStabilizerDynamics.hpp" -#include "PssIEEE2B.hpp" - -#include "InputSignalKind.hpp" -#include "InputSignalKind.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Integer.hpp" -#include "Integer.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -PssIEEE2B::PssIEEE2B() {}; - -PssIEEE2B::~PssIEEE2B() {}; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -bool assign_PssIEEE2B_inputSignal1Type(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE2B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->inputSignal1Type; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE2B_inputSignal2Type(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE2B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->inputSignal2Type; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE2B_vsi1max(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE2B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vsi1max; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE2B_vsi1min(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE2B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vsi1min; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE2B_tw1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE2B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tw1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE2B_tw2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE2B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tw2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE2B_vsi2max(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE2B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vsi2max; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE2B_vsi2min(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE2B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vsi2min; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE2B_tw3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE2B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tw3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE2B_tw4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE2B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tw4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE2B_t1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE2B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE2B_t2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE2B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE2B_t3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE2B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE2B_t4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE2B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE2B_t6(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE2B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t6; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE2B_t7(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE2B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t7; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE2B_t8(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE2B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t8; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE2B_t9(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE2B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t9; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE2B_t10(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE2B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t10; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE2B_t11(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE2B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t11; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE2B_ks1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE2B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ks1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE2B_ks2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE2B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ks2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE2B_ks3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE2B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ks3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE2B_n(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE2B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->n; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE2B_m(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE2B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->m; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE2B_vstmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE2B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vstmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE2B_vstmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE2B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vstmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* PssIEEE2B_factory() { - return new PssIEEE2B; - } -} - -void PssIEEE2B::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:PssIEEE2B"), &PssIEEE2B_factory)); -} - -void PssIEEE2B::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:PssIEEE2B.inputSignal1Type"), &assign_PssIEEE2B_inputSignal1Type)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE2B.inputSignal2Type"), &assign_PssIEEE2B_inputSignal2Type)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE2B.vsi1max"), &assign_PssIEEE2B_vsi1max)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE2B.vsi1min"), &assign_PssIEEE2B_vsi1min)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE2B.tw1"), &assign_PssIEEE2B_tw1)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE2B.tw2"), &assign_PssIEEE2B_tw2)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE2B.vsi2max"), &assign_PssIEEE2B_vsi2max)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE2B.vsi2min"), &assign_PssIEEE2B_vsi2min)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE2B.tw3"), &assign_PssIEEE2B_tw3)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE2B.tw4"), &assign_PssIEEE2B_tw4)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE2B.t1"), &assign_PssIEEE2B_t1)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE2B.t2"), &assign_PssIEEE2B_t2)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE2B.t3"), &assign_PssIEEE2B_t3)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE2B.t4"), &assign_PssIEEE2B_t4)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE2B.t6"), &assign_PssIEEE2B_t6)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE2B.t7"), &assign_PssIEEE2B_t7)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE2B.t8"), &assign_PssIEEE2B_t8)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE2B.t9"), &assign_PssIEEE2B_t9)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE2B.t10"), &assign_PssIEEE2B_t10)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE2B.t11"), &assign_PssIEEE2B_t11)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE2B.ks1"), &assign_PssIEEE2B_ks1)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE2B.ks2"), &assign_PssIEEE2B_ks2)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE2B.ks3"), &assign_PssIEEE2B_ks3)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE2B.n"), &assign_PssIEEE2B_n)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE2B.m"), &assign_PssIEEE2B_m)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE2B.vstmax"), &assign_PssIEEE2B_vstmax)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE2B.vstmin"), &assign_PssIEEE2B_vstmin)); -} - -void PssIEEE2B::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char PssIEEE2B::debugName[] = "PssIEEE2B"; -const char* PssIEEE2B::debugString() -{ - return PssIEEE2B::debugName; -} - -const BaseClassDefiner PssIEEE2B::declare() -{ - return BaseClassDefiner(PssIEEE2B::addConstructToMap, PssIEEE2B::addPrimitiveAssignFnsToMap, PssIEEE2B::addClassAssignFnsToMap, PssIEEE2B::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/PssIEEE2B.hpp b/CGMES_2.4.13_18DEC2013/PssIEEE2B.hpp deleted file mode 100644 index 7cdf57c4e..000000000 --- a/CGMES_2.4.13_18DEC2013/PssIEEE2B.hpp +++ /dev/null @@ -1,69 +0,0 @@ -#ifndef PssIEEE2B_H -#define PssIEEE2B_H - -#include "PowerSystemStabilizerDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "InputSignalKind.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Integer.hpp" - -namespace CIMPP { - - - /* - The class represents IEEE Std 421.5-2005 type PSS2B power system stabilizer model. This stabilizer model is designed to represent a variety of dual-input stabilizers, which normally use combinations of power and speed or frequency to derive the stabilizing signal. Reference: IEEE 2B 421.5-2005 Section 8.2. - */ - class PssIEEE2B: public PowerSystemStabilizerDynamics - { - - public: - CIMPP::InputSignalKind inputSignal1Type; /* Type of input signal #1. Typical Value = rotorSpeed. Default: 0 */ - CIMPP::InputSignalKind inputSignal2Type; /* Type of input signal #2. Typical Value = generatorElectricalPower. Default: 0 */ - CIMPP::PU vsi1max; /* Input signal #1 max limit (Vsi1max). Typical Value = 2. Default: nullptr */ - CIMPP::PU vsi1min; /* Input signal #1 min limit (Vsi1min). Typical Value = -2. Default: nullptr */ - CIMPP::Seconds tw1; /* First washout on signal #1 (Tw1). Typical Value = 2. Default: nullptr */ - CIMPP::Seconds tw2; /* Second washout on signal #1 (Tw2). Typical Value = 2. Default: nullptr */ - CIMPP::PU vsi2max; /* Input signal #2 max limit (Vsi2max). Typical Value = 2. Default: nullptr */ - CIMPP::PU vsi2min; /* Input signal #2 min limit (Vsi2min). Typical Value = -2. Default: nullptr */ - CIMPP::Seconds tw3; /* First washout on signal #2 (Tw3). Typical Value = 2. Default: nullptr */ - CIMPP::Seconds tw4; /* Second washout on signal #2 (Tw4). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds t1; /* Lead/lag time constant (T1). Typical Value = 0.12. Default: nullptr */ - CIMPP::Seconds t2; /* Lead/lag time constant (T2). Typical Value = 0.02. Default: nullptr */ - CIMPP::Seconds t3; /* Lead/lag time constant (T3). Typical Value = 0.3. Default: nullptr */ - CIMPP::Seconds t4; /* Lead/lag time constant (T4). Typical Value = 0.02. Default: nullptr */ - CIMPP::Seconds t6; /* Time constant on signal #1 (T6). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds t7; /* Time constant on signal #2 (T7). Typical Value = 2. Default: nullptr */ - CIMPP::Seconds t8; /* Lead of ramp tracking filter (T8). Typical Value = 0.2. Default: nullptr */ - CIMPP::Seconds t9; /* Lag of ramp tracking filter (T9). Typical Value = 0.1. Default: nullptr */ - CIMPP::Seconds t10; /* Lead/lag time constant (T10). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds t11; /* Lead/lag time constant (T11). Typical Value = 0. Default: nullptr */ - CIMPP::PU ks1; /* Stabilizer gain (Ks1). Typical Value = 12. Default: nullptr */ - CIMPP::PU ks2; /* Gain on signal #2 (Ks2). Typical Value = 0.2. Default: nullptr */ - CIMPP::PU ks3; /* Gain on signal #2 input before ramp-tracking filter (Ks3). Typical Value = 1. Default: nullptr */ - CIMPP::Integer n; /* Order of ramp tracking filter (N). Typical Value = 1. Default: 0 */ - CIMPP::Integer m; /* Denominator order of ramp tracking filter (M). Typical Value = 5. Default: 0 */ - CIMPP::PU vstmax; /* Stabilizer output max limit (Vstmax). Typical Value = 0.1. Default: nullptr */ - CIMPP::PU vstmin; /* Stabilizer output min limit (Vstmin). Typical Value = -0.1. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - PssIEEE2B(); - virtual ~PssIEEE2B(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* PssIEEE2B_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/PssIEEE3B.cpp b/CGMES_2.4.13_18DEC2013/PssIEEE3B.cpp deleted file mode 100644 index 905f9274c..000000000 --- a/CGMES_2.4.13_18DEC2013/PssIEEE3B.cpp +++ /dev/null @@ -1,326 +0,0 @@ -#include -#include "PowerSystemStabilizerDynamics.hpp" -#include "PssIEEE3B.hpp" - -#include "InputSignalKind.hpp" -#include "InputSignalKind.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -PssIEEE3B::PssIEEE3B() {}; - -PssIEEE3B::~PssIEEE3B() {}; - - - - - - - - - - - - - - - - - - - - - - -bool assign_PssIEEE3B_inputSignal1Type(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE3B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->inputSignal1Type; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE3B_inputSignal2Type(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE3B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->inputSignal2Type; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE3B_t1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE3B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE3B_t2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE3B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE3B_tw1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE3B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tw1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE3B_tw2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE3B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tw2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE3B_tw3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE3B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tw3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE3B_ks1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE3B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ks1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE3B_ks2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE3B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ks2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE3B_a1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE3B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->a1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE3B_a2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE3B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->a2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE3B_a3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE3B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->a3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE3B_a4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE3B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->a4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE3B_a5(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE3B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->a5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE3B_a6(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE3B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->a6; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE3B_a7(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE3B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->a7; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE3B_a8(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE3B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->a8; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE3B_vstmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE3B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vstmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE3B_vstmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE3B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vstmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* PssIEEE3B_factory() { - return new PssIEEE3B; - } -} - -void PssIEEE3B::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:PssIEEE3B"), &PssIEEE3B_factory)); -} - -void PssIEEE3B::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:PssIEEE3B.inputSignal1Type"), &assign_PssIEEE3B_inputSignal1Type)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE3B.inputSignal2Type"), &assign_PssIEEE3B_inputSignal2Type)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE3B.t1"), &assign_PssIEEE3B_t1)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE3B.t2"), &assign_PssIEEE3B_t2)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE3B.tw1"), &assign_PssIEEE3B_tw1)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE3B.tw2"), &assign_PssIEEE3B_tw2)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE3B.tw3"), &assign_PssIEEE3B_tw3)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE3B.ks1"), &assign_PssIEEE3B_ks1)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE3B.ks2"), &assign_PssIEEE3B_ks2)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE3B.a1"), &assign_PssIEEE3B_a1)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE3B.a2"), &assign_PssIEEE3B_a2)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE3B.a3"), &assign_PssIEEE3B_a3)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE3B.a4"), &assign_PssIEEE3B_a4)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE3B.a5"), &assign_PssIEEE3B_a5)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE3B.a6"), &assign_PssIEEE3B_a6)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE3B.a7"), &assign_PssIEEE3B_a7)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE3B.a8"), &assign_PssIEEE3B_a8)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE3B.vstmax"), &assign_PssIEEE3B_vstmax)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE3B.vstmin"), &assign_PssIEEE3B_vstmin)); -} - -void PssIEEE3B::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char PssIEEE3B::debugName[] = "PssIEEE3B"; -const char* PssIEEE3B::debugString() -{ - return PssIEEE3B::debugName; -} - -const BaseClassDefiner PssIEEE3B::declare() -{ - return BaseClassDefiner(PssIEEE3B::addConstructToMap, PssIEEE3B::addPrimitiveAssignFnsToMap, PssIEEE3B::addClassAssignFnsToMap, PssIEEE3B::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/PssIEEE3B.hpp b/CGMES_2.4.13_18DEC2013/PssIEEE3B.hpp deleted file mode 100644 index 7b8c2d367..000000000 --- a/CGMES_2.4.13_18DEC2013/PssIEEE3B.hpp +++ /dev/null @@ -1,60 +0,0 @@ -#ifndef PssIEEE3B_H -#define PssIEEE3B_H - -#include "PowerSystemStabilizerDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "InputSignalKind.hpp" -#include "Seconds.hpp" -#include "PU.hpp" - -namespace CIMPP { - - - /* - The class represents IEEE Std 421.5-2005 type PSS3B power system stabilizer model. The PSS model PSS3B has dual inputs of electrical power and rotor angular frequency deviation. The signals are used to derive an equivalent mechanical power signal. Reference: IEEE 3B 421.5-2005 Section 8.3. - */ - class PssIEEE3B: public PowerSystemStabilizerDynamics - { - - public: - CIMPP::InputSignalKind inputSignal1Type; /* Type of input signal #1. Typical Value = generatorElectricalPower. Default: 0 */ - CIMPP::InputSignalKind inputSignal2Type; /* Type of input signal #2. Typical Value = rotorSpeed. Default: 0 */ - CIMPP::Seconds t1; /* Transducer time constant (T1). Typical Value = 0.012. Default: nullptr */ - CIMPP::Seconds t2; /* Transducer time constant (T2). Typical Value = 0.012. Default: nullptr */ - CIMPP::Seconds tw1; /* Washout time constant (Tw1). Typical Value = 0.3. Default: nullptr */ - CIMPP::Seconds tw2; /* Washout time constant (Tw2). Typical Value = 0.3. Default: nullptr */ - CIMPP::Seconds tw3; /* Washout time constant (Tw3). Typical Value = 0.6. Default: nullptr */ - CIMPP::PU ks1; /* Gain on signal # 1 (Ks1). Typical Value = -0.602. Default: nullptr */ - CIMPP::PU ks2; /* Gain on signal # 2 (Ks2). Typical Value = 30.12. Default: nullptr */ - CIMPP::PU a1; /* Notch filter parameter (A1). Typical Value = 0.359. Default: nullptr */ - CIMPP::PU a2; /* Notch filter parameter (A2). Typical Value = 0.586. Default: nullptr */ - CIMPP::PU a3; /* Notch filter parameter (A3). Typical Value = 0.429. Default: nullptr */ - CIMPP::PU a4; /* Notch filter parameter (A4). Typical Value = 0.564. Default: nullptr */ - CIMPP::PU a5; /* Notch filter parameter (A5). Typical Value = 0.001. Default: nullptr */ - CIMPP::PU a6; /* Notch filter parameter (A6). Typical Value = 0. Default: nullptr */ - CIMPP::PU a7; /* Notch filter parameter (A7). Typical Value = 0.031. Default: nullptr */ - CIMPP::PU a8; /* Notch filter parameter (A8). Typical Value = 0. Default: nullptr */ - CIMPP::PU vstmax; /* Stabilizer output max limit (Vstmax). Typical Value = 0.1. Default: nullptr */ - CIMPP::PU vstmin; /* Stabilizer output min limit (Vstmin). Typical Value = -0.1. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - PssIEEE3B(); - virtual ~PssIEEE3B(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* PssIEEE3B_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/PssIEEE4B.cpp b/CGMES_2.4.13_18DEC2013/PssIEEE4B.cpp deleted file mode 100644 index 683bf620b..000000000 --- a/CGMES_2.4.13_18DEC2013/PssIEEE4B.cpp +++ /dev/null @@ -1,956 +0,0 @@ -#include -#include "PowerSystemStabilizerDynamics.hpp" -#include "PssIEEE4B.hpp" - -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -PssIEEE4B::PssIEEE4B() {}; - -PssIEEE4B::~PssIEEE4B() {}; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -bool assign_PssIEEE4B_omegani(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->omegani; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE4B_bwi(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->bwi; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE4B_kl1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kl1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE4B_kl2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kl2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE4B_kl11(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kl11; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE4B_kl17(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kl17; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE4B_kl(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kl; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE4B_tl1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tl1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE4B_tl2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tl2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE4B_tl3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tl3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE4B_tl4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tl4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE4B_tl5(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tl5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE4B_tl6(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tl6; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE4B_tl7(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tl7; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE4B_tl8(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tl8; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE4B_tl9(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tl9; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE4B_tl10(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tl10; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE4B_tl11(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tl11; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE4B_tl12(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tl12; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE4B_vlmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vlmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE4B_vlmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vlmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE4B_ki1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ki1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE4B_ki2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ki2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE4B_ki11(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ki11; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE4B_ki17(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ki17; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE4B_ki(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ki; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE4B_ti1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ti1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE4B_ti2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ti2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE4B_ti3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ti3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE4B_ti4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ti4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE4B_ti5(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ti5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE4B_ti6(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ti6; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE4B_ti7(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ti7; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE4B_ti8(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ti8; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE4B_ti9(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ti9; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE4B_ti10(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ti10; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE4B_ti11(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ti11; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE4B_ti12(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ti12; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE4B_vimax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vimax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE4B_vimin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vimin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE4B_kh1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kh1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE4B_kh2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kh2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE4B_kh11(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kh11; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE4B_kh17(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kh17; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE4B_kh(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kh; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE4B_th1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->th1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE4B_th2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->th2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE4B_th3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->th3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE4B_th4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->th4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE4B_th5(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->th5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE4B_th6(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->th6; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE4B_th7(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->th7; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE4B_th8(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->th8; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE4B_th9(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->th9; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE4B_th10(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->th10; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE4B_th11(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->th11; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE4B_th12(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->th12; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE4B_vhmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vhmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE4B_vhmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vhmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE4B_vstmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vstmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssIEEE4B_vstmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssIEEE4B* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vstmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* PssIEEE4B_factory() { - return new PssIEEE4B; - } -} - -void PssIEEE4B::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:PssIEEE4B"), &PssIEEE4B_factory)); -} - -void PssIEEE4B::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:PssIEEE4B.omegani"), &assign_PssIEEE4B_omegani)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE4B.bwi"), &assign_PssIEEE4B_bwi)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE4B.kl1"), &assign_PssIEEE4B_kl1)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE4B.kl2"), &assign_PssIEEE4B_kl2)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE4B.kl11"), &assign_PssIEEE4B_kl11)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE4B.kl17"), &assign_PssIEEE4B_kl17)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE4B.kl"), &assign_PssIEEE4B_kl)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE4B.tl1"), &assign_PssIEEE4B_tl1)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE4B.tl2"), &assign_PssIEEE4B_tl2)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE4B.tl3"), &assign_PssIEEE4B_tl3)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE4B.tl4"), &assign_PssIEEE4B_tl4)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE4B.tl5"), &assign_PssIEEE4B_tl5)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE4B.tl6"), &assign_PssIEEE4B_tl6)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE4B.tl7"), &assign_PssIEEE4B_tl7)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE4B.tl8"), &assign_PssIEEE4B_tl8)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE4B.tl9"), &assign_PssIEEE4B_tl9)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE4B.tl10"), &assign_PssIEEE4B_tl10)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE4B.tl11"), &assign_PssIEEE4B_tl11)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE4B.tl12"), &assign_PssIEEE4B_tl12)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE4B.vlmax"), &assign_PssIEEE4B_vlmax)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE4B.vlmin"), &assign_PssIEEE4B_vlmin)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE4B.ki1"), &assign_PssIEEE4B_ki1)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE4B.ki2"), &assign_PssIEEE4B_ki2)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE4B.ki11"), &assign_PssIEEE4B_ki11)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE4B.ki17"), &assign_PssIEEE4B_ki17)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE4B.ki"), &assign_PssIEEE4B_ki)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE4B.ti1"), &assign_PssIEEE4B_ti1)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE4B.ti2"), &assign_PssIEEE4B_ti2)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE4B.ti3"), &assign_PssIEEE4B_ti3)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE4B.ti4"), &assign_PssIEEE4B_ti4)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE4B.ti5"), &assign_PssIEEE4B_ti5)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE4B.ti6"), &assign_PssIEEE4B_ti6)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE4B.ti7"), &assign_PssIEEE4B_ti7)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE4B.ti8"), &assign_PssIEEE4B_ti8)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE4B.ti9"), &assign_PssIEEE4B_ti9)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE4B.ti10"), &assign_PssIEEE4B_ti10)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE4B.ti11"), &assign_PssIEEE4B_ti11)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE4B.ti12"), &assign_PssIEEE4B_ti12)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE4B.vimax"), &assign_PssIEEE4B_vimax)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE4B.vimin"), &assign_PssIEEE4B_vimin)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE4B.kh1"), &assign_PssIEEE4B_kh1)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE4B.kh2"), &assign_PssIEEE4B_kh2)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE4B.kh11"), &assign_PssIEEE4B_kh11)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE4B.kh17"), &assign_PssIEEE4B_kh17)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE4B.kh"), &assign_PssIEEE4B_kh)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE4B.th1"), &assign_PssIEEE4B_th1)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE4B.th2"), &assign_PssIEEE4B_th2)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE4B.th3"), &assign_PssIEEE4B_th3)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE4B.th4"), &assign_PssIEEE4B_th4)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE4B.th5"), &assign_PssIEEE4B_th5)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE4B.th6"), &assign_PssIEEE4B_th6)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE4B.th7"), &assign_PssIEEE4B_th7)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE4B.th8"), &assign_PssIEEE4B_th8)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE4B.th9"), &assign_PssIEEE4B_th9)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE4B.th10"), &assign_PssIEEE4B_th10)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE4B.th11"), &assign_PssIEEE4B_th11)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE4B.th12"), &assign_PssIEEE4B_th12)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE4B.vhmax"), &assign_PssIEEE4B_vhmax)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE4B.vhmin"), &assign_PssIEEE4B_vhmin)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE4B.vstmax"), &assign_PssIEEE4B_vstmax)); - assign_map.insert(std::make_pair(std::string("cim:PssIEEE4B.vstmin"), &assign_PssIEEE4B_vstmin)); -} - -void PssIEEE4B::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char PssIEEE4B::debugName[] = "PssIEEE4B"; -const char* PssIEEE4B::debugString() -{ - return PssIEEE4B::debugName; -} - -const BaseClassDefiner PssIEEE4B::declare() -{ - return BaseClassDefiner(PssIEEE4B::addConstructToMap, PssIEEE4B::addPrimitiveAssignFnsToMap, PssIEEE4B::addClassAssignFnsToMap, PssIEEE4B::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/PssIEEE4B.hpp b/CGMES_2.4.13_18DEC2013/PssIEEE4B.hpp deleted file mode 100644 index b88b2afc4..000000000 --- a/CGMES_2.4.13_18DEC2013/PssIEEE4B.hpp +++ /dev/null @@ -1,102 +0,0 @@ -#ifndef PssIEEE4B_H -#define PssIEEE4B_H - -#include "PowerSystemStabilizerDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "Seconds.hpp" - -namespace CIMPP { - - - /* - The class represents IEEE Std 421.5-2005 type PSS2B power system stabilizer model. The PSS4B model represents a structure based on multiple working frequency bands. Three separate bands, respectively dedicated to the low-, intermediate- and high-frequency modes of oscillations, are used in this delta-omega (speed input) PSS. Reference: IEEE 4B 421.5-2005 Section 8.4. - */ - class PssIEEE4B: public PowerSystemStabilizerDynamics - { - - public: - CIMPP::Simple_Float omegani; /* Notch filter: filter frequency (omega). Default: nullptr */ - CIMPP::Simple_Float bwi; /* Three dB bandwidth (B). Default: nullptr */ - CIMPP::PU kl1; /* Low band differential filter gain (K). Typical Value = 66. Default: nullptr */ - CIMPP::PU kl2; /* Low band differential filter gain (K). Typical Value = 66. Default: nullptr */ - CIMPP::PU kl11; /* Low band first lead-lag blocks coefficient (K). Typical Value = 1. Default: nullptr */ - CIMPP::PU kl17; /* Low band first lead-lag blocks coefficient (K). Typical Value = 1. Default: nullptr */ - CIMPP::PU kl; /* Low band gain (K). Typical Value = 7.5. Default: nullptr */ - CIMPP::Seconds tl1; /* Low band time constant (T). Typical Value = 1.73. Default: nullptr */ - CIMPP::Seconds tl2; /* Low band time constant (T). Typical Value = 2.075. Default: nullptr */ - CIMPP::Seconds tl3; /* Low band time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tl4; /* Low band time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tl5; /* Low band time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tl6; /* Low band time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tl7; /* Low band time constant (T). Typical Value = 2.075. Default: nullptr */ - CIMPP::Seconds tl8; /* Low band time constant (T). Typical Value = 2.491. Default: nullptr */ - CIMPP::Seconds tl9; /* Low band time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tl10; /* Low band time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tl11; /* Low band time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tl12; /* Low band time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::PU vlmax; /* Low band output maximum limit (V). Typical Value = 0.075. Default: nullptr */ - CIMPP::PU vlmin; /* Low band output minimum limit (V). Typical Value = -0.075. Default: nullptr */ - CIMPP::PU ki1; /* Intermediate band differential filter gain (K). Typical Value = 66. Default: nullptr */ - CIMPP::PU ki2; /* Intermediate band differential filter gain (K). Typical Value = 66. Default: nullptr */ - CIMPP::PU ki11; /* Intermediate band first lead-lag blocks coefficient (K). Typical Value = 1. Default: nullptr */ - CIMPP::PU ki17; /* Intermediate band first lead-lag blocks coefficient (K). Typical Value = 1. Default: nullptr */ - CIMPP::PU ki; /* Intermediate band gain (K). Typical Value = 30. Default: nullptr */ - CIMPP::Seconds ti1; /* Intermediate band time constant (T). Typical Value = 0.173. Default: nullptr */ - CIMPP::Seconds ti2; /* Intermediate band time constant (T). Typical Value = 0.2075. Default: nullptr */ - CIMPP::Seconds ti3; /* Intermediate band time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds ti4; /* Intermediate band time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds ti5; /* Intermediate band time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds ti6; /* Intermediate band time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds ti7; /* Intermediate band time constant (T). Typical Value = 0.2075. Default: nullptr */ - CIMPP::Seconds ti8; /* Intermediate band time constant (T). Typical Value = 0.2491. Default: nullptr */ - CIMPP::Seconds ti9; /* Intermediate band time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds ti10; /* Intermediate band time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds ti11; /* Intermediate band time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds ti12; /* Intermediate band time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::PU vimax; /* Intermediate band output maximum limit (V). Typical Value = 0.6. Default: nullptr */ - CIMPP::PU vimin; /* Intermediate band output minimum limit (V). Typical Value = -0.6. Default: nullptr */ - CIMPP::PU kh1; /* High band differential filter gain (K). Typical Value = 66. Default: nullptr */ - CIMPP::PU kh2; /* High band differential filter gain (K). Typical Value = 66. Default: nullptr */ - CIMPP::PU kh11; /* High band first lead-lag blocks coefficient (K). Typical Value = 1. Default: nullptr */ - CIMPP::PU kh17; /* High band first lead-lag blocks coefficient (K). Typical Value = 1. Default: nullptr */ - CIMPP::PU kh; /* High band gain (K). Typical Value = 120. Default: nullptr */ - CIMPP::Seconds th1; /* High band time constant (T). Typical Value = 0.01513. Default: nullptr */ - CIMPP::Seconds th2; /* High band time constant (T). Typical Value = 0.01816. Default: nullptr */ - CIMPP::Seconds th3; /* High band time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds th4; /* High band time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds th5; /* High band time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds th6; /* High band time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds th7; /* High band time constant (T). Typical Value = 0.01816. Default: nullptr */ - CIMPP::Seconds th8; /* High band time constant (T). Typical Value = 0.02179. Default: nullptr */ - CIMPP::Seconds th9; /* High band time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds th10; /* High band time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds th11; /* High band time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds th12; /* High band time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::PU vhmax; /* High band output maximum limit (V). Typical Value = 0.6. Default: nullptr */ - CIMPP::PU vhmin; /* High band output minimum limit (V). Typical Value = -0.6. Default: nullptr */ - CIMPP::PU vstmax; /* PSS output maximum limit (V). Typical Value = 0.15. Default: nullptr */ - CIMPP::PU vstmin; /* PSS output minimum limit (V). Typical Value = -0.15. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - PssIEEE4B(); - virtual ~PssIEEE4B(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* PssIEEE4B_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/PssPTIST1.cpp b/CGMES_2.4.13_18DEC2013/PssPTIST1.cpp deleted file mode 100644 index 9e2f9ee94..000000000 --- a/CGMES_2.4.13_18DEC2013/PssPTIST1.cpp +++ /dev/null @@ -1,206 +0,0 @@ -#include -#include "PowerSystemStabilizerDynamics.hpp" -#include "PssPTIST1.hpp" - -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" - -using namespace CIMPP; - -PssPTIST1::PssPTIST1() {}; - -PssPTIST1::~PssPTIST1() {}; - - - - - - - - - - - - - - -bool assign_PssPTIST1_m(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssPTIST1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->m; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssPTIST1_tf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssPTIST1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssPTIST1_tp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssPTIST1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssPTIST1_t1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssPTIST1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssPTIST1_t2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssPTIST1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssPTIST1_t3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssPTIST1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssPTIST1_t4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssPTIST1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssPTIST1_k(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssPTIST1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssPTIST1_dtf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssPTIST1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->dtf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssPTIST1_dtc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssPTIST1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->dtc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssPTIST1_dtp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssPTIST1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->dtp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* PssPTIST1_factory() { - return new PssPTIST1; - } -} - -void PssPTIST1::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:PssPTIST1"), &PssPTIST1_factory)); -} - -void PssPTIST1::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:PssPTIST1.m"), &assign_PssPTIST1_m)); - assign_map.insert(std::make_pair(std::string("cim:PssPTIST1.tf"), &assign_PssPTIST1_tf)); - assign_map.insert(std::make_pair(std::string("cim:PssPTIST1.tp"), &assign_PssPTIST1_tp)); - assign_map.insert(std::make_pair(std::string("cim:PssPTIST1.t1"), &assign_PssPTIST1_t1)); - assign_map.insert(std::make_pair(std::string("cim:PssPTIST1.t2"), &assign_PssPTIST1_t2)); - assign_map.insert(std::make_pair(std::string("cim:PssPTIST1.t3"), &assign_PssPTIST1_t3)); - assign_map.insert(std::make_pair(std::string("cim:PssPTIST1.t4"), &assign_PssPTIST1_t4)); - assign_map.insert(std::make_pair(std::string("cim:PssPTIST1.k"), &assign_PssPTIST1_k)); - assign_map.insert(std::make_pair(std::string("cim:PssPTIST1.dtf"), &assign_PssPTIST1_dtf)); - assign_map.insert(std::make_pair(std::string("cim:PssPTIST1.dtc"), &assign_PssPTIST1_dtc)); - assign_map.insert(std::make_pair(std::string("cim:PssPTIST1.dtp"), &assign_PssPTIST1_dtp)); -} - -void PssPTIST1::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char PssPTIST1::debugName[] = "PssPTIST1"; -const char* PssPTIST1::debugString() -{ - return PssPTIST1::debugName; -} - -const BaseClassDefiner PssPTIST1::declare() -{ - return BaseClassDefiner(PssPTIST1::addConstructToMap, PssPTIST1::addPrimitiveAssignFnsToMap, PssPTIST1::addClassAssignFnsToMap, PssPTIST1::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/PssPTIST1.hpp b/CGMES_2.4.13_18DEC2013/PssPTIST1.hpp deleted file mode 100644 index 6e8f9983b..000000000 --- a/CGMES_2.4.13_18DEC2013/PssPTIST1.hpp +++ /dev/null @@ -1,51 +0,0 @@ -#ifndef PssPTIST1_H -#define PssPTIST1_H - -#include "PowerSystemStabilizerDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "Seconds.hpp" - -namespace CIMPP { - - - /* - PTI Microprocessor-Based Stabilizer type 1. - */ - class PssPTIST1: public PowerSystemStabilizerDynamics - { - - public: - CIMPP::PU m; /* (M). M=2*H. Typical Value = 5. Default: nullptr */ - CIMPP::Seconds tf; /* Time constant (Tf). Typical Value = 0.2. Default: nullptr */ - CIMPP::Seconds tp; /* Time constant (Tp). Typical Value = 0.2. Default: nullptr */ - CIMPP::Seconds t1; /* Time constant (T1). Typical Value = 0.3. Default: nullptr */ - CIMPP::Seconds t2; /* Time constant (T2). Typical Value = 1. Default: nullptr */ - CIMPP::Seconds t3; /* Time constant (T3). Typical Value = 0.2. Default: nullptr */ - CIMPP::Seconds t4; /* Time constant (T4). Typical Value = 0.05. Default: nullptr */ - CIMPP::PU k; /* Gain (K). Typical Value = 9. Default: nullptr */ - CIMPP::Seconds dtf; /* Time step frequency calculation (Dtf). Typical Value = 0.025. Default: nullptr */ - CIMPP::Seconds dtc; /* Time step related to activation of controls (Dtc). Typical Value = 0.025. Default: nullptr */ - CIMPP::Seconds dtp; /* Time step active power calculation (Dtp). Typical Value = 0.0125. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - PssPTIST1(); - virtual ~PssPTIST1(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* PssPTIST1_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/PssPTIST3.cpp b/CGMES_2.4.13_18DEC2013/PssPTIST3.cpp deleted file mode 100644 index 21f6c7999..000000000 --- a/CGMES_2.4.13_18DEC2013/PssPTIST3.cpp +++ /dev/null @@ -1,551 +0,0 @@ -#include -#include "PowerSystemStabilizerDynamics.hpp" -#include "PssPTIST3.hpp" - -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Boolean.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" - -using namespace CIMPP; - -PssPTIST3::PssPTIST3() {}; - -PssPTIST3::~PssPTIST3() {}; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -bool assign_PssPTIST3_m(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssPTIST3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->m; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssPTIST3_tf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssPTIST3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssPTIST3_tp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssPTIST3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssPTIST3_t1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssPTIST3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssPTIST3_t2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssPTIST3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssPTIST3_t3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssPTIST3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssPTIST3_t4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssPTIST3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssPTIST3_k(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssPTIST3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssPTIST3_dtf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssPTIST3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->dtf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssPTIST3_dtc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssPTIST3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->dtc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssPTIST3_dtp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssPTIST3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->dtp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssPTIST3_t5(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssPTIST3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssPTIST3_t6(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssPTIST3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t6; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssPTIST3_a0(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssPTIST3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->a0; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssPTIST3_a1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssPTIST3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->a1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssPTIST3_a2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssPTIST3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->a2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssPTIST3_b0(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssPTIST3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->b0; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssPTIST3_b1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssPTIST3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->b1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssPTIST3_b2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssPTIST3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->b2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssPTIST3_a3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssPTIST3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->a3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssPTIST3_a4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssPTIST3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->a4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssPTIST3_a5(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssPTIST3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->a5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssPTIST3_b3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssPTIST3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->b3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssPTIST3_b4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssPTIST3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->b4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssPTIST3_b5(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssPTIST3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->b5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssPTIST3_athres(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssPTIST3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->athres; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssPTIST3_dl(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssPTIST3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->dl; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssPTIST3_al(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssPTIST3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->al; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssPTIST3_lthres(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssPTIST3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->lthres; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssPTIST3_pmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssPTIST3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssPTIST3_isw(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssPTIST3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->isw; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssPTIST3_nav(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssPTIST3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->nav; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssPTIST3_ncl(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssPTIST3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ncl; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssPTIST3_ncr(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssPTIST3* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ncr; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* PssPTIST3_factory() { - return new PssPTIST3; - } -} - -void PssPTIST3::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:PssPTIST3"), &PssPTIST3_factory)); -} - -void PssPTIST3::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:PssPTIST3.m"), &assign_PssPTIST3_m)); - assign_map.insert(std::make_pair(std::string("cim:PssPTIST3.tf"), &assign_PssPTIST3_tf)); - assign_map.insert(std::make_pair(std::string("cim:PssPTIST3.tp"), &assign_PssPTIST3_tp)); - assign_map.insert(std::make_pair(std::string("cim:PssPTIST3.t1"), &assign_PssPTIST3_t1)); - assign_map.insert(std::make_pair(std::string("cim:PssPTIST3.t2"), &assign_PssPTIST3_t2)); - assign_map.insert(std::make_pair(std::string("cim:PssPTIST3.t3"), &assign_PssPTIST3_t3)); - assign_map.insert(std::make_pair(std::string("cim:PssPTIST3.t4"), &assign_PssPTIST3_t4)); - assign_map.insert(std::make_pair(std::string("cim:PssPTIST3.k"), &assign_PssPTIST3_k)); - assign_map.insert(std::make_pair(std::string("cim:PssPTIST3.dtf"), &assign_PssPTIST3_dtf)); - assign_map.insert(std::make_pair(std::string("cim:PssPTIST3.dtc"), &assign_PssPTIST3_dtc)); - assign_map.insert(std::make_pair(std::string("cim:PssPTIST3.dtp"), &assign_PssPTIST3_dtp)); - assign_map.insert(std::make_pair(std::string("cim:PssPTIST3.t5"), &assign_PssPTIST3_t5)); - assign_map.insert(std::make_pair(std::string("cim:PssPTIST3.t6"), &assign_PssPTIST3_t6)); - assign_map.insert(std::make_pair(std::string("cim:PssPTIST3.a0"), &assign_PssPTIST3_a0)); - assign_map.insert(std::make_pair(std::string("cim:PssPTIST3.a1"), &assign_PssPTIST3_a1)); - assign_map.insert(std::make_pair(std::string("cim:PssPTIST3.a2"), &assign_PssPTIST3_a2)); - assign_map.insert(std::make_pair(std::string("cim:PssPTIST3.b0"), &assign_PssPTIST3_b0)); - assign_map.insert(std::make_pair(std::string("cim:PssPTIST3.b1"), &assign_PssPTIST3_b1)); - assign_map.insert(std::make_pair(std::string("cim:PssPTIST3.b2"), &assign_PssPTIST3_b2)); - assign_map.insert(std::make_pair(std::string("cim:PssPTIST3.a3"), &assign_PssPTIST3_a3)); - assign_map.insert(std::make_pair(std::string("cim:PssPTIST3.a4"), &assign_PssPTIST3_a4)); - assign_map.insert(std::make_pair(std::string("cim:PssPTIST3.a5"), &assign_PssPTIST3_a5)); - assign_map.insert(std::make_pair(std::string("cim:PssPTIST3.b3"), &assign_PssPTIST3_b3)); - assign_map.insert(std::make_pair(std::string("cim:PssPTIST3.b4"), &assign_PssPTIST3_b4)); - assign_map.insert(std::make_pair(std::string("cim:PssPTIST3.b5"), &assign_PssPTIST3_b5)); - assign_map.insert(std::make_pair(std::string("cim:PssPTIST3.athres"), &assign_PssPTIST3_athres)); - assign_map.insert(std::make_pair(std::string("cim:PssPTIST3.dl"), &assign_PssPTIST3_dl)); - assign_map.insert(std::make_pair(std::string("cim:PssPTIST3.al"), &assign_PssPTIST3_al)); - assign_map.insert(std::make_pair(std::string("cim:PssPTIST3.lthres"), &assign_PssPTIST3_lthres)); - assign_map.insert(std::make_pair(std::string("cim:PssPTIST3.pmin"), &assign_PssPTIST3_pmin)); - assign_map.insert(std::make_pair(std::string("cim:PssPTIST3.isw"), &assign_PssPTIST3_isw)); - assign_map.insert(std::make_pair(std::string("cim:PssPTIST3.nav"), &assign_PssPTIST3_nav)); - assign_map.insert(std::make_pair(std::string("cim:PssPTIST3.ncl"), &assign_PssPTIST3_ncl)); - assign_map.insert(std::make_pair(std::string("cim:PssPTIST3.ncr"), &assign_PssPTIST3_ncr)); -} - -void PssPTIST3::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char PssPTIST3::debugName[] = "PssPTIST3"; -const char* PssPTIST3::debugString() -{ - return PssPTIST3::debugName; -} - -const BaseClassDefiner PssPTIST3::declare() -{ - return BaseClassDefiner(PssPTIST3::addConstructToMap, PssPTIST3::addPrimitiveAssignFnsToMap, PssPTIST3::addClassAssignFnsToMap, PssPTIST3::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/PssPTIST3.hpp b/CGMES_2.4.13_18DEC2013/PssPTIST3.hpp deleted file mode 100644 index 77bed928c..000000000 --- a/CGMES_2.4.13_18DEC2013/PssPTIST3.hpp +++ /dev/null @@ -1,76 +0,0 @@ -#ifndef PssPTIST3_H -#define PssPTIST3_H - -#include "PowerSystemStabilizerDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "Seconds.hpp" -#include "Boolean.hpp" -#include "Simple_Float.hpp" - -namespace CIMPP { - - - /* - PTI Microprocessor-Based Stabilizer type 3. - */ - class PssPTIST3: public PowerSystemStabilizerDynamics - { - - public: - CIMPP::PU m; /* (M). M=2*H. Typical Value = 5. Default: nullptr */ - CIMPP::Seconds tf; /* Time constant (Tf). Typical Value = 0.2. Default: nullptr */ - CIMPP::Seconds tp; /* Time constant (Tp). Typical Value = 0.2. Default: nullptr */ - CIMPP::Seconds t1; /* Time constant (T1). Typical Value = 0.3. Default: nullptr */ - CIMPP::Seconds t2; /* Time constant (T2). Typical Value = 1. Default: nullptr */ - CIMPP::Seconds t3; /* Time constant (T3). Typical Value = 0.2. Default: nullptr */ - CIMPP::Seconds t4; /* Time constant (T4). Typical Value = 0.05. Default: nullptr */ - CIMPP::PU k; /* Gain (K). Typical Value = 9. Default: nullptr */ - CIMPP::Seconds dtf; /* Time step frequency calculation (0.03 for 50 Hz) (Dtf). Typical Value = 0.025. Default: nullptr */ - CIMPP::Seconds dtc; /* Time step related to activation of controls (0.03 for 50 Hz) (Dtc). Typical Value = 0.025. Default: nullptr */ - CIMPP::Seconds dtp; /* Time step active power calculation (0.015 for 50 Hz) (Dtp). Typical Value = 0.0125. Default: nullptr */ - CIMPP::Seconds t5; /* Time constant (T5). Default: nullptr */ - CIMPP::Seconds t6; /* Time constant (T6). Default: nullptr */ - CIMPP::PU a0; /* Filter coefficient (A0). Default: nullptr */ - CIMPP::PU a1; /* Limiter (Al). Default: nullptr */ - CIMPP::PU a2; /* Filter coefficient (A2). Default: nullptr */ - CIMPP::PU b0; /* Filter coefficient (B0). Default: nullptr */ - CIMPP::PU b1; /* Filter coefficient (B1). Default: nullptr */ - CIMPP::PU b2; /* Filter coefficient (B2). Default: nullptr */ - CIMPP::PU a3; /* Filter coefficient (A3). Default: nullptr */ - CIMPP::PU a4; /* Filter coefficient (A4). Default: nullptr */ - CIMPP::PU a5; /* Filter coefficient (A5). Default: nullptr */ - CIMPP::PU b3; /* Filter coefficient (B3). Default: nullptr */ - CIMPP::PU b4; /* Filter coefficient (B4). Default: nullptr */ - CIMPP::PU b5; /* Filter coefficient (B5). Default: nullptr */ - CIMPP::PU athres; /* Threshold value above which output averaging will be bypassed (Athres). Typical Value = 0.005. Default: nullptr */ - CIMPP::PU dl; /* Limiter (Dl). Default: nullptr */ - CIMPP::PU al; /* Limiter (Al). Default: nullptr */ - CIMPP::PU lthres; /* Threshold value (Lthres). Default: nullptr */ - CIMPP::PU pmin; /* (Pmin). Default: nullptr */ - CIMPP::Boolean isw; /* Digital/analog output switch (Isw). true = produce analog output false = convert to digital output, using tap selection table. Default: false */ - CIMPP::Simple_Float nav; /* Number of control outputs to average (Nav) (1 <= Nav <= 16). Typical Value = 4. Default: nullptr */ - CIMPP::Simple_Float ncl; /* Number of counts at limit to active limit function (Ncl) (>0). Default: nullptr */ - CIMPP::Simple_Float ncr; /* Number of counts until reset after limit function is triggered (Ncr). Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - PssPTIST3(); - virtual ~PssPTIST3(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* PssPTIST3_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/PssSB4.cpp b/CGMES_2.4.13_18DEC2013/PssSB4.cpp deleted file mode 100644 index 94f0a847c..000000000 --- a/CGMES_2.4.13_18DEC2013/PssSB4.cpp +++ /dev/null @@ -1,206 +0,0 @@ -#include -#include "PowerSystemStabilizerDynamics.hpp" -#include "PssSB4.hpp" - -#include "Seconds.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -PssSB4::PssSB4() {}; - -PssSB4::~PssSB4() {}; - - - - - - - - - - - - - - -bool assign_PssSB4_tt(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssSB4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tt; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssSB4_kx(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssSB4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kx; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssSB4_tx2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssSB4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tx2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssSB4_ta(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssSB4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ta; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssSB4_tx1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssSB4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tx1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssSB4_tb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssSB4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssSB4_tc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssSB4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssSB4_td(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssSB4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->td; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssSB4_te(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssSB4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->te; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssSB4_vsmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssSB4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vsmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssSB4_vsmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssSB4* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vsmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* PssSB4_factory() { - return new PssSB4; - } -} - -void PssSB4::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:PssSB4"), &PssSB4_factory)); -} - -void PssSB4::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:PssSB4.tt"), &assign_PssSB4_tt)); - assign_map.insert(std::make_pair(std::string("cim:PssSB4.kx"), &assign_PssSB4_kx)); - assign_map.insert(std::make_pair(std::string("cim:PssSB4.tx2"), &assign_PssSB4_tx2)); - assign_map.insert(std::make_pair(std::string("cim:PssSB4.ta"), &assign_PssSB4_ta)); - assign_map.insert(std::make_pair(std::string("cim:PssSB4.tx1"), &assign_PssSB4_tx1)); - assign_map.insert(std::make_pair(std::string("cim:PssSB4.tb"), &assign_PssSB4_tb)); - assign_map.insert(std::make_pair(std::string("cim:PssSB4.tc"), &assign_PssSB4_tc)); - assign_map.insert(std::make_pair(std::string("cim:PssSB4.td"), &assign_PssSB4_td)); - assign_map.insert(std::make_pair(std::string("cim:PssSB4.te"), &assign_PssSB4_te)); - assign_map.insert(std::make_pair(std::string("cim:PssSB4.vsmax"), &assign_PssSB4_vsmax)); - assign_map.insert(std::make_pair(std::string("cim:PssSB4.vsmin"), &assign_PssSB4_vsmin)); -} - -void PssSB4::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char PssSB4::debugName[] = "PssSB4"; -const char* PssSB4::debugString() -{ - return PssSB4::debugName; -} - -const BaseClassDefiner PssSB4::declare() -{ - return BaseClassDefiner(PssSB4::addConstructToMap, PssSB4::addPrimitiveAssignFnsToMap, PssSB4::addClassAssignFnsToMap, PssSB4::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/PssSB4.hpp b/CGMES_2.4.13_18DEC2013/PssSB4.hpp deleted file mode 100644 index 31f1ed9c7..000000000 --- a/CGMES_2.4.13_18DEC2013/PssSB4.hpp +++ /dev/null @@ -1,51 +0,0 @@ -#ifndef PssSB4_H -#define PssSB4_H - -#include "PowerSystemStabilizerDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Seconds.hpp" -#include "PU.hpp" - -namespace CIMPP { - - - /* - Power sensitive stabilizer model. - */ - class PssSB4: public PowerSystemStabilizerDynamics - { - - public: - CIMPP::Seconds tt; /* Time constant (Tt). Default: nullptr */ - CIMPP::PU kx; /* Gain (Kx). Default: nullptr */ - CIMPP::Seconds tx2; /* Time constant (Tx2). Default: nullptr */ - CIMPP::Seconds ta; /* Time constant (Ta). Default: nullptr */ - CIMPP::Seconds tx1; /* Reset time constant (Tx1). Default: nullptr */ - CIMPP::Seconds tb; /* Time constant (Tb). Default: nullptr */ - CIMPP::Seconds tc; /* Time constant (Tc). Default: nullptr */ - CIMPP::Seconds td; /* Time constant (Td). Default: nullptr */ - CIMPP::Seconds te; /* Time constant (Te). Default: nullptr */ - CIMPP::PU vsmax; /* Limiter (Vsmax). Default: nullptr */ - CIMPP::PU vsmin; /* Limiter (Vsmin). Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - PssSB4(); - virtual ~PssSB4(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* PssSB4_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/PssSH.cpp b/CGMES_2.4.13_18DEC2013/PssSH.cpp deleted file mode 100644 index ffb22736d..000000000 --- a/CGMES_2.4.13_18DEC2013/PssSH.cpp +++ /dev/null @@ -1,236 +0,0 @@ -#include -#include "PowerSystemStabilizerDynamics.hpp" -#include "PssSH.hpp" - -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -PssSH::PssSH() {}; - -PssSH::~PssSH() {}; - - - - - - - - - - - - - - - - -bool assign_PssSH_k(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssSH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssSH_k0(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssSH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k0; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssSH_k1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssSH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssSH_k2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssSH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssSH_k3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssSH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssSH_k4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssSH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssSH_td(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssSH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->td; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssSH_t1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssSH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssSH_t2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssSH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssSH_t3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssSH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssSH_t4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssSH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssSH_vsmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssSH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vsmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssSH_vsmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssSH* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vsmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* PssSH_factory() { - return new PssSH; - } -} - -void PssSH::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:PssSH"), &PssSH_factory)); -} - -void PssSH::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:PssSH.k"), &assign_PssSH_k)); - assign_map.insert(std::make_pair(std::string("cim:PssSH.k0"), &assign_PssSH_k0)); - assign_map.insert(std::make_pair(std::string("cim:PssSH.k1"), &assign_PssSH_k1)); - assign_map.insert(std::make_pair(std::string("cim:PssSH.k2"), &assign_PssSH_k2)); - assign_map.insert(std::make_pair(std::string("cim:PssSH.k3"), &assign_PssSH_k3)); - assign_map.insert(std::make_pair(std::string("cim:PssSH.k4"), &assign_PssSH_k4)); - assign_map.insert(std::make_pair(std::string("cim:PssSH.td"), &assign_PssSH_td)); - assign_map.insert(std::make_pair(std::string("cim:PssSH.t1"), &assign_PssSH_t1)); - assign_map.insert(std::make_pair(std::string("cim:PssSH.t2"), &assign_PssSH_t2)); - assign_map.insert(std::make_pair(std::string("cim:PssSH.t3"), &assign_PssSH_t3)); - assign_map.insert(std::make_pair(std::string("cim:PssSH.t4"), &assign_PssSH_t4)); - assign_map.insert(std::make_pair(std::string("cim:PssSH.vsmax"), &assign_PssSH_vsmax)); - assign_map.insert(std::make_pair(std::string("cim:PssSH.vsmin"), &assign_PssSH_vsmin)); -} - -void PssSH::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char PssSH::debugName[] = "PssSH"; -const char* PssSH::debugString() -{ - return PssSH::debugName; -} - -const BaseClassDefiner PssSH::declare() -{ - return BaseClassDefiner(PssSH::addConstructToMap, PssSH::addPrimitiveAssignFnsToMap, PssSH::addClassAssignFnsToMap, PssSH::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/PssSH.hpp b/CGMES_2.4.13_18DEC2013/PssSH.hpp deleted file mode 100644 index dd728e153..000000000 --- a/CGMES_2.4.13_18DEC2013/PssSH.hpp +++ /dev/null @@ -1,53 +0,0 @@ -#ifndef PssSH_H -#define PssSH_H - -#include "PowerSystemStabilizerDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "Seconds.hpp" - -namespace CIMPP { - - - /* - Model for Siemens "H infinity" power system stabilizer with generator electrical power input. - */ - class PssSH: public PowerSystemStabilizerDynamics - { - - public: - CIMPP::PU k; /* Main gain (K). Typical Value = 1. Default: nullptr */ - CIMPP::PU k0; /* Gain 0 (K0). Typical Value = 0.012. Default: nullptr */ - CIMPP::PU k1; /* Gain 1 (K1). Typical Value = 0.488. Default: nullptr */ - CIMPP::PU k2; /* Gain 2 (K2). Typical Value = 0.064. Default: nullptr */ - CIMPP::PU k3; /* Gain 3 (K3). Typical Value = 0.224. Default: nullptr */ - CIMPP::PU k4; /* Gain 4 (K4). Typical Value = 0.1. Default: nullptr */ - CIMPP::Seconds td; /* Input time constant (Td). Typical Value = 10. Default: nullptr */ - CIMPP::Seconds t1; /* Time constant 1 (T1). Typical Value = 0.076. Default: nullptr */ - CIMPP::Seconds t2; /* Time constant 2 (T2). Typical Value = 0.086. Default: nullptr */ - CIMPP::Seconds t3; /* Time constant 3 (T3). Typical Value = 1.068. Default: nullptr */ - CIMPP::Seconds t4; /* Time constant 4 (T4). Typical Value = 1.913. Default: nullptr */ - CIMPP::PU vsmax; /* Output maximum limit (Vsmax). Typical Value = 0.1. Default: nullptr */ - CIMPP::PU vsmin; /* Output minimum limit (Vsmin). Typical Value = -0.1. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - PssSH(); - virtual ~PssSH(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* PssSH_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/PssSK.cpp b/CGMES_2.4.13_18DEC2013/PssSK.cpp deleted file mode 100644 index 3ce8b4a2c..000000000 --- a/CGMES_2.4.13_18DEC2013/PssSK.cpp +++ /dev/null @@ -1,206 +0,0 @@ -#include -#include "PowerSystemStabilizerDynamics.hpp" -#include "PssSK.hpp" - -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -PssSK::PssSK() {}; - -PssSK::~PssSK() {}; - - - - - - - - - - - - - - -bool assign_PssSK_k1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssSK* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssSK_k2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssSK* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssSK_k3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssSK* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssSK_t1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssSK* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssSK_t2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssSK* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssSK_t3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssSK* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssSK_t4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssSK* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssSK_t5(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssSK* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssSK_t6(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssSK* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t6; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssSK_vsmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssSK* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vsmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssSK_vsmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssSK* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vsmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* PssSK_factory() { - return new PssSK; - } -} - -void PssSK::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:PssSK"), &PssSK_factory)); -} - -void PssSK::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:PssSK.k1"), &assign_PssSK_k1)); - assign_map.insert(std::make_pair(std::string("cim:PssSK.k2"), &assign_PssSK_k2)); - assign_map.insert(std::make_pair(std::string("cim:PssSK.k3"), &assign_PssSK_k3)); - assign_map.insert(std::make_pair(std::string("cim:PssSK.t1"), &assign_PssSK_t1)); - assign_map.insert(std::make_pair(std::string("cim:PssSK.t2"), &assign_PssSK_t2)); - assign_map.insert(std::make_pair(std::string("cim:PssSK.t3"), &assign_PssSK_t3)); - assign_map.insert(std::make_pair(std::string("cim:PssSK.t4"), &assign_PssSK_t4)); - assign_map.insert(std::make_pair(std::string("cim:PssSK.t5"), &assign_PssSK_t5)); - assign_map.insert(std::make_pair(std::string("cim:PssSK.t6"), &assign_PssSK_t6)); - assign_map.insert(std::make_pair(std::string("cim:PssSK.vsmax"), &assign_PssSK_vsmax)); - assign_map.insert(std::make_pair(std::string("cim:PssSK.vsmin"), &assign_PssSK_vsmin)); -} - -void PssSK::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char PssSK::debugName[] = "PssSK"; -const char* PssSK::debugString() -{ - return PssSK::debugName; -} - -const BaseClassDefiner PssSK::declare() -{ - return BaseClassDefiner(PssSK::addConstructToMap, PssSK::addPrimitiveAssignFnsToMap, PssSK::addClassAssignFnsToMap, PssSK::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/PssSK.hpp b/CGMES_2.4.13_18DEC2013/PssSK.hpp deleted file mode 100644 index d1951bedb..000000000 --- a/CGMES_2.4.13_18DEC2013/PssSK.hpp +++ /dev/null @@ -1,51 +0,0 @@ -#ifndef PssSK_H -#define PssSK_H - -#include "PowerSystemStabilizerDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "Seconds.hpp" - -namespace CIMPP { - - - /* - PSS Slovakian type - three inputs. - */ - class PssSK: public PowerSystemStabilizerDynamics - { - - public: - CIMPP::PU k1; /* Gain P (K1). Typical Value = -0.3. Default: nullptr */ - CIMPP::PU k2; /* Gain fe (K2). Typical Value = -0.15. Default: nullptr */ - CIMPP::PU k3; /* Gain If (K3). Typical Value = 10. Default: nullptr */ - CIMPP::Seconds t1; /* Denominator time constant (T1). Typical Value = 0.3. Default: nullptr */ - CIMPP::Seconds t2; /* Filter time constant (T2). Typical Value = 0.35. Default: nullptr */ - CIMPP::Seconds t3; /* Denominator time constant (T3). Typical Value = 0.22. Default: nullptr */ - CIMPP::Seconds t4; /* Filter time constant (T4). Typical Value = 0.02. Default: nullptr */ - CIMPP::Seconds t5; /* Denominator time constant (T5). Typical Value = 0.02. Default: nullptr */ - CIMPP::Seconds t6; /* Filter time constant (T6). Typical Value = 0.02. Default: nullptr */ - CIMPP::PU vsmax; /* Stabilizer output max limit (Vsmax). Typical Value = 0.4. Default: nullptr */ - CIMPP::PU vsmin; /* Stabilizer output min limit (Vsmin). Typical Value = -0.4. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - PssSK(); - virtual ~PssSK(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* PssSK_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/PssWECC.cpp b/CGMES_2.4.13_18DEC2013/PssWECC.cpp deleted file mode 100644 index fee24fae9..000000000 --- a/CGMES_2.4.13_18DEC2013/PssWECC.cpp +++ /dev/null @@ -1,311 +0,0 @@ -#include -#include "PowerSystemStabilizerDynamics.hpp" -#include "PssWECC.hpp" - -#include "InputSignalKind.hpp" -#include "InputSignalKind.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -PssWECC::PssWECC() {}; - -PssWECC::~PssWECC() {}; - - - - - - - - - - - - - - - - - - - - - -bool assign_PssWECC_inputSignal1Type(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssWECC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->inputSignal1Type; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssWECC_inputSignal2Type(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssWECC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->inputSignal2Type; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssWECC_k1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssWECC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssWECC_t1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssWECC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssWECC_k2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssWECC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssWECC_t2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssWECC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssWECC_t3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssWECC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssWECC_t4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssWECC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssWECC_t5(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssWECC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssWECC_t6(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssWECC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t6; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssWECC_t7(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssWECC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t7; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssWECC_t8(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssWECC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t8; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssWECC_t10(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssWECC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t10; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssWECC_t9(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssWECC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t9; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssWECC_vsmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssWECC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vsmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssWECC_vsmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssWECC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vsmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssWECC_vcu(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssWECC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vcu; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_PssWECC_vcl(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(PssWECC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vcl; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* PssWECC_factory() { - return new PssWECC; - } -} - -void PssWECC::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:PssWECC"), &PssWECC_factory)); -} - -void PssWECC::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:PssWECC.inputSignal1Type"), &assign_PssWECC_inputSignal1Type)); - assign_map.insert(std::make_pair(std::string("cim:PssWECC.inputSignal2Type"), &assign_PssWECC_inputSignal2Type)); - assign_map.insert(std::make_pair(std::string("cim:PssWECC.k1"), &assign_PssWECC_k1)); - assign_map.insert(std::make_pair(std::string("cim:PssWECC.t1"), &assign_PssWECC_t1)); - assign_map.insert(std::make_pair(std::string("cim:PssWECC.k2"), &assign_PssWECC_k2)); - assign_map.insert(std::make_pair(std::string("cim:PssWECC.t2"), &assign_PssWECC_t2)); - assign_map.insert(std::make_pair(std::string("cim:PssWECC.t3"), &assign_PssWECC_t3)); - assign_map.insert(std::make_pair(std::string("cim:PssWECC.t4"), &assign_PssWECC_t4)); - assign_map.insert(std::make_pair(std::string("cim:PssWECC.t5"), &assign_PssWECC_t5)); - assign_map.insert(std::make_pair(std::string("cim:PssWECC.t6"), &assign_PssWECC_t6)); - assign_map.insert(std::make_pair(std::string("cim:PssWECC.t7"), &assign_PssWECC_t7)); - assign_map.insert(std::make_pair(std::string("cim:PssWECC.t8"), &assign_PssWECC_t8)); - assign_map.insert(std::make_pair(std::string("cim:PssWECC.t10"), &assign_PssWECC_t10)); - assign_map.insert(std::make_pair(std::string("cim:PssWECC.t9"), &assign_PssWECC_t9)); - assign_map.insert(std::make_pair(std::string("cim:PssWECC.vsmax"), &assign_PssWECC_vsmax)); - assign_map.insert(std::make_pair(std::string("cim:PssWECC.vsmin"), &assign_PssWECC_vsmin)); - assign_map.insert(std::make_pair(std::string("cim:PssWECC.vcu"), &assign_PssWECC_vcu)); - assign_map.insert(std::make_pair(std::string("cim:PssWECC.vcl"), &assign_PssWECC_vcl)); -} - -void PssWECC::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char PssWECC::debugName[] = "PssWECC"; -const char* PssWECC::debugString() -{ - return PssWECC::debugName; -} - -const BaseClassDefiner PssWECC::declare() -{ - return BaseClassDefiner(PssWECC::addConstructToMap, PssWECC::addPrimitiveAssignFnsToMap, PssWECC::addClassAssignFnsToMap, PssWECC::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/PssWECC.hpp b/CGMES_2.4.13_18DEC2013/PssWECC.hpp deleted file mode 100644 index 56daeaa51..000000000 --- a/CGMES_2.4.13_18DEC2013/PssWECC.hpp +++ /dev/null @@ -1,59 +0,0 @@ -#ifndef PssWECC_H -#define PssWECC_H - -#include "PowerSystemStabilizerDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "InputSignalKind.hpp" -#include "PU.hpp" -#include "Seconds.hpp" - -namespace CIMPP { - - - /* - Dual input Power System Stabilizer, based on IEEE type 2, with modified output limiter defined by WECC (Western Electricity Coordinating Council, USA). - */ - class PssWECC: public PowerSystemStabilizerDynamics - { - - public: - CIMPP::InputSignalKind inputSignal1Type; /* Type of input signal #1. Default: 0 */ - CIMPP::InputSignalKind inputSignal2Type; /* Type of input signal #2. Default: 0 */ - CIMPP::PU k1; /* Input signal 1 gain (K). Default: nullptr */ - CIMPP::Seconds t1; /* Input signal 1 transducer time constant (T). Default: nullptr */ - CIMPP::PU k2; /* Input signal 2 gain (K). Default: nullptr */ - CIMPP::Seconds t2; /* Input signal 2 transducer time constant (T). Default: nullptr */ - CIMPP::Seconds t3; /* Stabilizer washout time constant (T). Default: nullptr */ - CIMPP::Seconds t4; /* Stabilizer washout time lag constant (T) (>0). Default: nullptr */ - CIMPP::Seconds t5; /* Lead time constant (T). Default: nullptr */ - CIMPP::Seconds t6; /* Lag time constant (T). Default: nullptr */ - CIMPP::Seconds t7; /* Lead time constant (T). Default: nullptr */ - CIMPP::Seconds t8; /* Lag time constant (T). Default: nullptr */ - CIMPP::Seconds t10; /* Lag time constant (T). Default: nullptr */ - CIMPP::Seconds t9; /* Lead time constant (T). Default: nullptr */ - CIMPP::PU vsmax; /* Maximum output signal (Vsmax). Default: nullptr */ - CIMPP::PU vsmin; /* Minimum output signal (Vsmin). Default: nullptr */ - CIMPP::PU vcu; /* Maximum value for voltage compensator output (V). Default: nullptr */ - CIMPP::PU vcl; /* Minimum value for voltage compensator output (V). Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - PssWECC(); - virtual ~PssWECC(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* PssWECC_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/Quality61850.cpp b/CGMES_2.4.13_18DEC2013/Quality61850.cpp deleted file mode 100644 index 882cf9b2b..000000000 --- a/CGMES_2.4.13_18DEC2013/Quality61850.cpp +++ /dev/null @@ -1,221 +0,0 @@ -#include -#include "BaseClass.hpp" -#include "Quality61850.hpp" - -#include "Boolean.hpp" -#include "Boolean.hpp" -#include "Boolean.hpp" -#include "Boolean.hpp" -#include "Boolean.hpp" -#include "Boolean.hpp" -#include "Boolean.hpp" -#include "Boolean.hpp" -#include "Source.hpp" -#include "Boolean.hpp" -#include "Boolean.hpp" -#include "Validity.hpp" - -using namespace CIMPP; - -Quality61850::Quality61850() {}; - -Quality61850::~Quality61850() {}; - - - - - - - - - - - - - - - -bool assign_Quality61850_badReference(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Quality61850* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->badReference; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Quality61850_estimatorReplaced(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Quality61850* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->estimatorReplaced; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Quality61850_failure(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Quality61850* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->failure; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Quality61850_oldData(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Quality61850* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->oldData; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Quality61850_operatorBlocked(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Quality61850* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->operatorBlocked; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Quality61850_oscillatory(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Quality61850* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->oscillatory; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Quality61850_outOfRange(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Quality61850* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->outOfRange; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Quality61850_overFlow(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Quality61850* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->overFlow; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Quality61850_source(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Quality61850* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->source; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Quality61850_suspect(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Quality61850* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->suspect; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Quality61850_test(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Quality61850* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->test; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Quality61850_validity(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Quality61850* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->validity; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* Quality61850_factory() { - return new Quality61850; - } -} - -void Quality61850::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:Quality61850"), &Quality61850_factory)); -} - -void Quality61850::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:Quality61850.badReference"), &assign_Quality61850_badReference)); - assign_map.insert(std::make_pair(std::string("cim:Quality61850.estimatorReplaced"), &assign_Quality61850_estimatorReplaced)); - assign_map.insert(std::make_pair(std::string("cim:Quality61850.failure"), &assign_Quality61850_failure)); - assign_map.insert(std::make_pair(std::string("cim:Quality61850.oldData"), &assign_Quality61850_oldData)); - assign_map.insert(std::make_pair(std::string("cim:Quality61850.operatorBlocked"), &assign_Quality61850_operatorBlocked)); - assign_map.insert(std::make_pair(std::string("cim:Quality61850.oscillatory"), &assign_Quality61850_oscillatory)); - assign_map.insert(std::make_pair(std::string("cim:Quality61850.outOfRange"), &assign_Quality61850_outOfRange)); - assign_map.insert(std::make_pair(std::string("cim:Quality61850.overFlow"), &assign_Quality61850_overFlow)); - assign_map.insert(std::make_pair(std::string("cim:Quality61850.source"), &assign_Quality61850_source)); - assign_map.insert(std::make_pair(std::string("cim:Quality61850.suspect"), &assign_Quality61850_suspect)); - assign_map.insert(std::make_pair(std::string("cim:Quality61850.test"), &assign_Quality61850_test)); - assign_map.insert(std::make_pair(std::string("cim:Quality61850.validity"), &assign_Quality61850_validity)); -} - -void Quality61850::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char Quality61850::debugName[] = "Quality61850"; -const char* Quality61850::debugString() -{ - return Quality61850::debugName; -} - -const BaseClassDefiner Quality61850::declare() -{ - return BaseClassDefiner(Quality61850::addConstructToMap, Quality61850::addPrimitiveAssignFnsToMap, Quality61850::addClassAssignFnsToMap, Quality61850::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/Quality61850.hpp b/CGMES_2.4.13_18DEC2013/Quality61850.hpp deleted file mode 100644 index 6e6d4eb6a..000000000 --- a/CGMES_2.4.13_18DEC2013/Quality61850.hpp +++ /dev/null @@ -1,53 +0,0 @@ -#ifndef Quality61850_H -#define Quality61850_H - -#include "BaseClass.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Boolean.hpp" -#include "Source.hpp" -#include "Validity.hpp" - -namespace CIMPP { - - - /* - Quality flags in this class are as defined in IEC 61850, except for estimatorReplaced, which has been included in this class for convenience. - */ - class Quality61850: public BaseClass - { - - public: - CIMPP::Boolean badReference; /* Measurement value may be incorrect due to a reference being out of calibration. Default: false */ - CIMPP::Boolean estimatorReplaced; /* Value has been replaced by State Estimator. estimatorReplaced is not an IEC61850 quality bit but has been put in this class for convenience. Default: false */ - CIMPP::Boolean failure; /* This identifier indicates that a supervision function has detected an internal or external failure, e.g. communication failure. Default: false */ - CIMPP::Boolean oldData; /* Measurement value is old and possibly invalid, as it has not been successfully updated during a specified time interval. Default: false */ - CIMPP::Boolean operatorBlocked; /* Measurement value is blocked and hence unavailable for transmission. Default: false */ - CIMPP::Boolean oscillatory; /* To prevent some overload of the communication it is sensible to detect and suppress oscillating (fast changing) binary inputs. If a signal changes in a defined time (tosc) twice in the same direction (from 0 to 1 or from 1 to 0) then oscillation is detected and the detail quality identifier `oscillatory` is set. If it is detected a configured numbers of transient changes could be passed by. In this time the validity status `questionable` is set. If after this defined numbers of changes the signal is still in the oscillating state the value shall be set either to the opposite state of the previous stable value or to a defined default value. In this case the validity status `questionable` is reset and `invalid` is set as long as the signal is oscillating. If it is configured such that no transient changes should be passed by then the validity status `invalid` is set immediately in addition to the detail quality identifier `oscillatory` (used for status information only). Default: false */ - CIMPP::Boolean outOfRange; /* Measurement value is beyond a predefined range of value. Default: false */ - CIMPP::Boolean overFlow; /* Measurement value is beyond the capability of being represented properly. For example, a counter value overflows from maximum count back to a value of zero. Default: false */ - CIMPP::Source source; /* Source gives information related to the origin of a value. The value may be acquired from the process, defaulted or substituted. Default: 0 */ - CIMPP::Boolean suspect; /* A correlation function has detected that the value is not consitent with other values. Typically set by a network State Estimator. Default: false */ - CIMPP::Boolean test; /* Measurement value is transmitted for test purposes. Default: false */ - CIMPP::Validity validity; /* Validity of the measurement value. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - Quality61850(); - virtual ~Quality61850(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* Quality61850_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/RaiseLowerCommand.cpp b/CGMES_2.4.13_18DEC2013/RaiseLowerCommand.cpp deleted file mode 100644 index 96b62d8dc..000000000 --- a/CGMES_2.4.13_18DEC2013/RaiseLowerCommand.cpp +++ /dev/null @@ -1,54 +0,0 @@ -#include -#include "AnalogControl.hpp" -#include "RaiseLowerCommand.hpp" - -#include "ValueAliasSet.hpp" - -using namespace CIMPP; - -RaiseLowerCommand::RaiseLowerCommand(): ValueAliasSet(nullptr) {}; - -RaiseLowerCommand::~RaiseLowerCommand() {}; - - -bool assign_ValueAliasSet_RaiseLowerCommands(BaseClass*, BaseClass*); -bool assign_RaiseLowerCommand_ValueAliasSet(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(RaiseLowerCommand* element = dynamic_cast(BaseClass_ptr1)) { - element->ValueAliasSet = dynamic_cast(BaseClass_ptr2); - if(element->ValueAliasSet != nullptr) - return assign_ValueAliasSet_RaiseLowerCommands(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - -namespace CIMPP { - BaseClass* RaiseLowerCommand_factory() { - return new RaiseLowerCommand; - } -} - -void RaiseLowerCommand::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:RaiseLowerCommand"), &RaiseLowerCommand_factory)); -} - -void RaiseLowerCommand::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void RaiseLowerCommand::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:RaiseLowerCommand.ValueAliasSet"), &assign_RaiseLowerCommand_ValueAliasSet)); -} - -const char RaiseLowerCommand::debugName[] = "RaiseLowerCommand"; -const char* RaiseLowerCommand::debugString() -{ - return RaiseLowerCommand::debugName; -} - -const BaseClassDefiner RaiseLowerCommand::declare() -{ - return BaseClassDefiner(RaiseLowerCommand::addConstructToMap, RaiseLowerCommand::addPrimitiveAssignFnsToMap, RaiseLowerCommand::addClassAssignFnsToMap, RaiseLowerCommand::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/RaiseLowerCommand.hpp b/CGMES_2.4.13_18DEC2013/RaiseLowerCommand.hpp deleted file mode 100644 index 98c85b0ac..000000000 --- a/CGMES_2.4.13_18DEC2013/RaiseLowerCommand.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef RaiseLowerCommand_H -#define RaiseLowerCommand_H - -#include "AnalogControl.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class ValueAliasSet; - /* - An analog control that increase or decrease a set point value with pulses. - */ - class RaiseLowerCommand: public AnalogControl - { - - public: - CIMPP::ValueAliasSet* ValueAliasSet; /* The ValueAliasSet used for translation of a Control value to a name. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - RaiseLowerCommand(); - virtual ~RaiseLowerCommand(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* RaiseLowerCommand_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/RatioTapChanger.cpp b/CGMES_2.4.13_18DEC2013/RatioTapChanger.cpp deleted file mode 100644 index f584544c0..000000000 --- a/CGMES_2.4.13_18DEC2013/RatioTapChanger.cpp +++ /dev/null @@ -1,97 +0,0 @@ -#include -#include "TapChanger.hpp" -#include "RatioTapChanger.hpp" - -#include "TransformerControlMode.hpp" -#include "PerCent.hpp" -#include "RatioTapChangerTable.hpp" -#include "TransformerEnd.hpp" - -using namespace CIMPP; - -RatioTapChanger::RatioTapChanger(): RatioTapChangerTable(nullptr), TransformerEnd(nullptr) {}; - -RatioTapChanger::~RatioTapChanger() {}; - - - - -bool assign_RatioTapChangerTable_RatioTapChanger(BaseClass*, BaseClass*); -bool assign_RatioTapChanger_RatioTapChangerTable(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(RatioTapChanger* element = dynamic_cast(BaseClass_ptr1)) { - element->RatioTapChangerTable = dynamic_cast(BaseClass_ptr2); - if(element->RatioTapChangerTable != nullptr) - return assign_RatioTapChangerTable_RatioTapChanger(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_TransformerEnd_RatioTapChanger(BaseClass*, BaseClass*); -bool assign_RatioTapChanger_TransformerEnd(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(RatioTapChanger* element = dynamic_cast(BaseClass_ptr1)) { - element->TransformerEnd = dynamic_cast(BaseClass_ptr2); - if(element->TransformerEnd != nullptr) - return assign_TransformerEnd_RatioTapChanger(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - -bool assign_RatioTapChanger_tculControlMode(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(RatioTapChanger* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tculControlMode; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_RatioTapChanger_stepVoltageIncrement(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(RatioTapChanger* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->stepVoltageIncrement; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - - -namespace CIMPP { - BaseClass* RatioTapChanger_factory() { - return new RatioTapChanger; - } -} - -void RatioTapChanger::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:RatioTapChanger"), &RatioTapChanger_factory)); -} - -void RatioTapChanger::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:RatioTapChanger.tculControlMode"), &assign_RatioTapChanger_tculControlMode)); - assign_map.insert(std::make_pair(std::string("cim:RatioTapChanger.stepVoltageIncrement"), &assign_RatioTapChanger_stepVoltageIncrement)); - } - -void RatioTapChanger::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:RatioTapChanger.RatioTapChangerTable"), &assign_RatioTapChanger_RatioTapChangerTable)); - assign_map.insert(std::make_pair(std::string("cim:RatioTapChanger.TransformerEnd"), &assign_RatioTapChanger_TransformerEnd)); -} - -const char RatioTapChanger::debugName[] = "RatioTapChanger"; -const char* RatioTapChanger::debugString() -{ - return RatioTapChanger::debugName; -} - -const BaseClassDefiner RatioTapChanger::declare() -{ - return BaseClassDefiner(RatioTapChanger::addConstructToMap, RatioTapChanger::addPrimitiveAssignFnsToMap, RatioTapChanger::addClassAssignFnsToMap, RatioTapChanger::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/RatioTapChanger.hpp b/CGMES_2.4.13_18DEC2013/RatioTapChanger.hpp deleted file mode 100644 index f4de91f70..000000000 --- a/CGMES_2.4.13_18DEC2013/RatioTapChanger.hpp +++ /dev/null @@ -1,46 +0,0 @@ -#ifndef RatioTapChanger_H -#define RatioTapChanger_H - -#include "TapChanger.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "TransformerControlMode.hpp" -#include "PerCent.hpp" - -namespace CIMPP { - - -class RatioTapChangerTable; -class TransformerEnd; - /* - A tap changer that changes the voltage ratio impacting the voltage magnitude but not the phase angle across the transformer. - */ - class RatioTapChanger: public TapChanger - { - - public: - CIMPP::TransformerControlMode tculControlMode; /* Specifies the regulation control mode (voltage or reactive) of the RatioTapChanger. Default: 0 */ - CIMPP::PerCent stepVoltageIncrement; /* Tap step increment, in per cent of nominal voltage, per step position. Default: nullptr */ - CIMPP::RatioTapChangerTable* RatioTapChangerTable; /* The ratio tap changer of this tap ratio table. Default: 0 */ - CIMPP::TransformerEnd* TransformerEnd; /* Ratio tap changer associated with this transformer end. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - RatioTapChanger(); - virtual ~RatioTapChanger(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* RatioTapChanger_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/RatioTapChangerTable.cpp b/CGMES_2.4.13_18DEC2013/RatioTapChangerTable.cpp deleted file mode 100644 index d61eef797..000000000 --- a/CGMES_2.4.13_18DEC2013/RatioTapChangerTable.cpp +++ /dev/null @@ -1,67 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "RatioTapChangerTable.hpp" - -#include "RatioTapChanger.hpp" -#include "RatioTapChangerTablePoint.hpp" - -using namespace CIMPP; - -RatioTapChangerTable::RatioTapChangerTable() {}; - -RatioTapChangerTable::~RatioTapChangerTable() {}; - - -bool assign_RatioTapChangerTable_RatioTapChanger(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(RatioTapChangerTable* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->RatioTapChanger.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_RatioTapChangerTable_RatioTapChangerTablePoint(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(RatioTapChangerTable* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->RatioTapChangerTablePoint.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - - - -namespace CIMPP { - BaseClass* RatioTapChangerTable_factory() { - return new RatioTapChangerTable; - } -} - -void RatioTapChangerTable::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:RatioTapChangerTable"), &RatioTapChangerTable_factory)); -} - -void RatioTapChangerTable::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void RatioTapChangerTable::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:RatioTapChangerTable.RatioTapChanger"), &assign_RatioTapChangerTable_RatioTapChanger)); - assign_map.insert(std::make_pair(std::string("cim:RatioTapChangerTable.RatioTapChangerTablePoint"), &assign_RatioTapChangerTable_RatioTapChangerTablePoint)); -} - -const char RatioTapChangerTable::debugName[] = "RatioTapChangerTable"; -const char* RatioTapChangerTable::debugString() -{ - return RatioTapChangerTable::debugName; -} - -const BaseClassDefiner RatioTapChangerTable::declare() -{ - return BaseClassDefiner(RatioTapChangerTable::addConstructToMap, RatioTapChangerTable::addPrimitiveAssignFnsToMap, RatioTapChangerTable::addClassAssignFnsToMap, RatioTapChangerTable::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/RatioTapChangerTable.hpp b/CGMES_2.4.13_18DEC2013/RatioTapChangerTable.hpp deleted file mode 100644 index 6bfa9abad..000000000 --- a/CGMES_2.4.13_18DEC2013/RatioTapChangerTable.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef RatioTapChangerTable_H -#define RatioTapChangerTable_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class RatioTapChanger; -class RatioTapChangerTablePoint; - /* - Describes a curve for how the voltage magnitude and impedance varies with the tap step. - */ - class RatioTapChangerTable: public IdentifiedObject - { - - public: - std::list RatioTapChanger; /* The tap ratio table for this ratio tap changer. Default: 0 */ - std::list RatioTapChangerTablePoint; /* Table of this point. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - RatioTapChangerTable(); - virtual ~RatioTapChangerTable(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* RatioTapChangerTable_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/RatioTapChangerTablePoint.cpp b/CGMES_2.4.13_18DEC2013/RatioTapChangerTablePoint.cpp deleted file mode 100644 index 0a258a916..000000000 --- a/CGMES_2.4.13_18DEC2013/RatioTapChangerTablePoint.cpp +++ /dev/null @@ -1,54 +0,0 @@ -#include -#include "TapChangerTablePoint.hpp" -#include "RatioTapChangerTablePoint.hpp" - -#include "RatioTapChangerTable.hpp" - -using namespace CIMPP; - -RatioTapChangerTablePoint::RatioTapChangerTablePoint(): RatioTapChangerTable(nullptr) {}; - -RatioTapChangerTablePoint::~RatioTapChangerTablePoint() {}; - - -bool assign_RatioTapChangerTable_RatioTapChangerTablePoint(BaseClass*, BaseClass*); -bool assign_RatioTapChangerTablePoint_RatioTapChangerTable(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(RatioTapChangerTablePoint* element = dynamic_cast(BaseClass_ptr1)) { - element->RatioTapChangerTable = dynamic_cast(BaseClass_ptr2); - if(element->RatioTapChangerTable != nullptr) - return assign_RatioTapChangerTable_RatioTapChangerTablePoint(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - -namespace CIMPP { - BaseClass* RatioTapChangerTablePoint_factory() { - return new RatioTapChangerTablePoint; - } -} - -void RatioTapChangerTablePoint::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:RatioTapChangerTablePoint"), &RatioTapChangerTablePoint_factory)); -} - -void RatioTapChangerTablePoint::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void RatioTapChangerTablePoint::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:RatioTapChangerTablePoint.RatioTapChangerTable"), &assign_RatioTapChangerTablePoint_RatioTapChangerTable)); -} - -const char RatioTapChangerTablePoint::debugName[] = "RatioTapChangerTablePoint"; -const char* RatioTapChangerTablePoint::debugString() -{ - return RatioTapChangerTablePoint::debugName; -} - -const BaseClassDefiner RatioTapChangerTablePoint::declare() -{ - return BaseClassDefiner(RatioTapChangerTablePoint::addConstructToMap, RatioTapChangerTablePoint::addPrimitiveAssignFnsToMap, RatioTapChangerTablePoint::addClassAssignFnsToMap, RatioTapChangerTablePoint::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/RatioTapChangerTablePoint.hpp b/CGMES_2.4.13_18DEC2013/RatioTapChangerTablePoint.hpp deleted file mode 100644 index 3750262d1..000000000 --- a/CGMES_2.4.13_18DEC2013/RatioTapChangerTablePoint.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef RatioTapChangerTablePoint_H -#define RatioTapChangerTablePoint_H - -#include "TapChangerTablePoint.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class RatioTapChangerTable; - /* - Describes each tap step in the ratio tap changer tabular curve. - */ - class RatioTapChangerTablePoint: public TapChangerTablePoint - { - - public: - CIMPP::RatioTapChangerTable* RatioTapChangerTable; /* Points of this table. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - RatioTapChangerTablePoint(); - virtual ~RatioTapChangerTablePoint(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* RatioTapChangerTablePoint_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/Reactance.cpp b/CGMES_2.4.13_18DEC2013/Reactance.cpp deleted file mode 100644 index e5ea380cd..000000000 --- a/CGMES_2.4.13_18DEC2013/Reactance.cpp +++ /dev/null @@ -1,70 +0,0 @@ -#include "Reactance.hpp" -#include "../src/CIMExceptions.hpp" - -using namespace CIMPP; - -Reactance::Reactance() {} - -Reactance::~Reactance(){} - -Reactance::Reactance(long double value) : value(value), initialized(true) {} - -void Reactance::addConstructToMap(std::unordered_map& factory_map) {} - -void Reactance::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) {} - -void Reactance::addClassAssignFnsToMap(std::unordered_map& assign_map) {} - -const char Reactance::debugName[] = "Reactance"; -const char* Reactance::debugString() { - return Reactance::debugName; -} - - -const BaseClassDefiner Reactance::declare() { - return BaseClassDefiner(Reactance::addConstructToMap, Reactance::addPrimitiveAssignFnsToMap, Reactance::addClassAssignFnsToMap, Reactance::debugName); -} - -namespace CIMPP { - Reactance& Reactance::operator=(long double &rop) { - value = rop; - initialized = true; - return *this; - } - - Reactance& Reactance::operator-=(const Reactance& rhs) { - value -= rhs.value; - return *this; - } - - Reactance& Reactance::operator*=(const Reactance& rhs) { - value *= rhs.value; - return *this; - } - - Reactance& Reactance::operator/=(const Reactance& rhs) { - value /= rhs.value; - return *this; - } - - Reactance& Reactance::operator+=(const Reactance& rhs) { - value += rhs.value; - return *this; - } - - Reactance::operator long double() { - if(!initialized) - { - throw new ReadingUninitializedField(); - } - return value; - } - - std::istream& operator>>(std::istream& lop, Reactance& rop) { - std::string tmp; - lop >> tmp; - rop.value = stold(tmp); - rop.initialized = true; - return lop; - } -} diff --git a/CGMES_2.4.13_18DEC2013/Reactance.hpp b/CGMES_2.4.13_18DEC2013/Reactance.hpp deleted file mode 100644 index ba0ae3f00..000000000 --- a/CGMES_2.4.13_18DEC2013/Reactance.hpp +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef Reactance_H -#define Reactance_H - -#include -#include - -#include "BaseClass.hpp" - -namespace CIMPP -{ - class Reactance : public BaseClass - { - - public: - Reactance(); - virtual ~Reactance(); - Reactance(long double value); - static const BaseClassDefiner declare(); - Reactance& operator=(long double &rop); - Reactance& operator+=(const Reactance& rhs); - Reactance& operator-=(const Reactance& rhs); - Reactance& operator*=(const Reactance& rhs); - Reactance& operator/=(const Reactance& rhs); - friend std::istream& operator>>(std::istream& lop, Reactance& rop); - operator long double(); - - long double value = 0.0; - bool initialized = false; - - static const char debugName[]; - virtual const char* debugString(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - }; -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ReactiveCapabilityCurve.cpp b/CGMES_2.4.13_18DEC2013/ReactiveCapabilityCurve.cpp deleted file mode 100644 index 1e25f308d..000000000 --- a/CGMES_2.4.13_18DEC2013/ReactiveCapabilityCurve.cpp +++ /dev/null @@ -1,67 +0,0 @@ -#include -#include "Curve.hpp" -#include "ReactiveCapabilityCurve.hpp" - -#include "EquivalentInjection.hpp" -#include "SynchronousMachine.hpp" - -using namespace CIMPP; - -ReactiveCapabilityCurve::ReactiveCapabilityCurve() {}; - -ReactiveCapabilityCurve::~ReactiveCapabilityCurve() {}; - - -bool assign_ReactiveCapabilityCurve_EquivalentInjection(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ReactiveCapabilityCurve* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->EquivalentInjection.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_ReactiveCapabilityCurve_InitiallyUsedBySynchronousMachines(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ReactiveCapabilityCurve* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->InitiallyUsedBySynchronousMachines.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - - - -namespace CIMPP { - BaseClass* ReactiveCapabilityCurve_factory() { - return new ReactiveCapabilityCurve; - } -} - -void ReactiveCapabilityCurve::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ReactiveCapabilityCurve"), &ReactiveCapabilityCurve_factory)); -} - -void ReactiveCapabilityCurve::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void ReactiveCapabilityCurve::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ReactiveCapabilityCurve.EquivalentInjection"), &assign_ReactiveCapabilityCurve_EquivalentInjection)); - assign_map.insert(std::make_pair(std::string("cim:ReactiveCapabilityCurve.InitiallyUsedBySynchronousMachines"), &assign_ReactiveCapabilityCurve_InitiallyUsedBySynchronousMachines)); -} - -const char ReactiveCapabilityCurve::debugName[] = "ReactiveCapabilityCurve"; -const char* ReactiveCapabilityCurve::debugString() -{ - return ReactiveCapabilityCurve::debugName; -} - -const BaseClassDefiner ReactiveCapabilityCurve::declare() -{ - return BaseClassDefiner(ReactiveCapabilityCurve::addConstructToMap, ReactiveCapabilityCurve::addPrimitiveAssignFnsToMap, ReactiveCapabilityCurve::addClassAssignFnsToMap, ReactiveCapabilityCurve::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ReactiveCapabilityCurve.hpp b/CGMES_2.4.13_18DEC2013/ReactiveCapabilityCurve.hpp deleted file mode 100644 index c81f39345..000000000 --- a/CGMES_2.4.13_18DEC2013/ReactiveCapabilityCurve.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef ReactiveCapabilityCurve_H -#define ReactiveCapabilityCurve_H - -#include "Curve.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class EquivalentInjection; -class SynchronousMachine; - /* - Reactive power rating envelope versus the synchronous machine's active power, in both the generating and motoring modes. For each active power value there is a corresponding high and low reactive power limit value. Typically there will be a separate curve for each coolant condition, such as hydrogen pressure. The Y1 axis values represent reactive minimum and the Y2 axis values represent reactive maximum. - */ - class ReactiveCapabilityCurve: public Curve - { - - public: - std::list EquivalentInjection; /* The reactive capability curve used by this equivalent injection. Default: 0 */ - std::list InitiallyUsedBySynchronousMachines; /* The default reactive capability curve for use by a synchronous machine. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ReactiveCapabilityCurve(); - virtual ~ReactiveCapabilityCurve(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ReactiveCapabilityCurve_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ReactivePower.cpp b/CGMES_2.4.13_18DEC2013/ReactivePower.cpp deleted file mode 100644 index 45b4344f3..000000000 --- a/CGMES_2.4.13_18DEC2013/ReactivePower.cpp +++ /dev/null @@ -1,70 +0,0 @@ -#include "ReactivePower.hpp" -#include "../src/CIMExceptions.hpp" - -using namespace CIMPP; - -ReactivePower::ReactivePower() {} - -ReactivePower::~ReactivePower(){} - -ReactivePower::ReactivePower(long double value) : value(value), initialized(true) {} - -void ReactivePower::addConstructToMap(std::unordered_map& factory_map) {} - -void ReactivePower::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) {} - -void ReactivePower::addClassAssignFnsToMap(std::unordered_map& assign_map) {} - -const char ReactivePower::debugName[] = "ReactivePower"; -const char* ReactivePower::debugString() { - return ReactivePower::debugName; -} - - -const BaseClassDefiner ReactivePower::declare() { - return BaseClassDefiner(ReactivePower::addConstructToMap, ReactivePower::addPrimitiveAssignFnsToMap, ReactivePower::addClassAssignFnsToMap, ReactivePower::debugName); -} - -namespace CIMPP { - ReactivePower& ReactivePower::operator=(long double &rop) { - value = rop; - initialized = true; - return *this; - } - - ReactivePower& ReactivePower::operator-=(const ReactivePower& rhs) { - value -= rhs.value; - return *this; - } - - ReactivePower& ReactivePower::operator*=(const ReactivePower& rhs) { - value *= rhs.value; - return *this; - } - - ReactivePower& ReactivePower::operator/=(const ReactivePower& rhs) { - value /= rhs.value; - return *this; - } - - ReactivePower& ReactivePower::operator+=(const ReactivePower& rhs) { - value += rhs.value; - return *this; - } - - ReactivePower::operator long double() { - if(!initialized) - { - throw new ReadingUninitializedField(); - } - return value; - } - - std::istream& operator>>(std::istream& lop, ReactivePower& rop) { - std::string tmp; - lop >> tmp; - rop.value = stold(tmp); - rop.initialized = true; - return lop; - } -} diff --git a/CGMES_2.4.13_18DEC2013/ReactivePower.hpp b/CGMES_2.4.13_18DEC2013/ReactivePower.hpp deleted file mode 100644 index 0b22e461b..000000000 --- a/CGMES_2.4.13_18DEC2013/ReactivePower.hpp +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef ReactivePower_H -#define ReactivePower_H - -#include -#include - -#include "BaseClass.hpp" - -namespace CIMPP -{ - class ReactivePower : public BaseClass - { - - public: - ReactivePower(); - virtual ~ReactivePower(); - ReactivePower(long double value); - static const BaseClassDefiner declare(); - ReactivePower& operator=(long double &rop); - ReactivePower& operator+=(const ReactivePower& rhs); - ReactivePower& operator-=(const ReactivePower& rhs); - ReactivePower& operator*=(const ReactivePower& rhs); - ReactivePower& operator/=(const ReactivePower& rhs); - friend std::istream& operator>>(std::istream& lop, ReactivePower& rop); - operator long double(); - - long double value = 0.0; - bool initialized = false; - - static const char debugName[]; - virtual const char* debugString(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - }; -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/RegularIntervalSchedule.cpp b/CGMES_2.4.13_18DEC2013/RegularIntervalSchedule.cpp deleted file mode 100644 index d887a2de7..000000000 --- a/CGMES_2.4.13_18DEC2013/RegularIntervalSchedule.cpp +++ /dev/null @@ -1,81 +0,0 @@ -#include -#include "BasicIntervalSchedule.hpp" -#include "RegularIntervalSchedule.hpp" - -#include "Seconds.hpp" -#include "DateTime.hpp" -#include "RegularTimePoint.hpp" - -using namespace CIMPP; - -RegularIntervalSchedule::RegularIntervalSchedule(): endTime(nullptr) {}; - -RegularIntervalSchedule::~RegularIntervalSchedule() {}; - - - -bool assign_RegularIntervalSchedule_endTime(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(RegularIntervalSchedule* element = dynamic_cast(BaseClass_ptr1)) { - element->endTime = dynamic_cast(BaseClass_ptr2); - if(element->endTime != nullptr) - return true; - } - return false; -} - -bool assign_RegularIntervalSchedule_TimePoints(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(RegularIntervalSchedule* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->TimePoints.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - -bool assign_RegularIntervalSchedule_timeStep(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(RegularIntervalSchedule* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->timeStep; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - - -namespace CIMPP { - BaseClass* RegularIntervalSchedule_factory() { - return new RegularIntervalSchedule; - } -} - -void RegularIntervalSchedule::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:RegularIntervalSchedule"), &RegularIntervalSchedule_factory)); -} - -void RegularIntervalSchedule::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:RegularIntervalSchedule.timeStep"), &assign_RegularIntervalSchedule_timeStep)); - } - -void RegularIntervalSchedule::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:RegularIntervalSchedule.endTime"), &assign_RegularIntervalSchedule_endTime)); - assign_map.insert(std::make_pair(std::string("cim:RegularIntervalSchedule.TimePoints"), &assign_RegularIntervalSchedule_TimePoints)); -} - -const char RegularIntervalSchedule::debugName[] = "RegularIntervalSchedule"; -const char* RegularIntervalSchedule::debugString() -{ - return RegularIntervalSchedule::debugName; -} - -const BaseClassDefiner RegularIntervalSchedule::declare() -{ - return BaseClassDefiner(RegularIntervalSchedule::addConstructToMap, RegularIntervalSchedule::addPrimitiveAssignFnsToMap, RegularIntervalSchedule::addClassAssignFnsToMap, RegularIntervalSchedule::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/RegularIntervalSchedule.hpp b/CGMES_2.4.13_18DEC2013/RegularIntervalSchedule.hpp deleted file mode 100644 index de8973301..000000000 --- a/CGMES_2.4.13_18DEC2013/RegularIntervalSchedule.hpp +++ /dev/null @@ -1,44 +0,0 @@ -#ifndef RegularIntervalSchedule_H -#define RegularIntervalSchedule_H - -#include "BasicIntervalSchedule.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Seconds.hpp" - -namespace CIMPP { - - -class DateTime; -class RegularTimePoint; - /* - The schedule has time points where the time between them is constant. - */ - class RegularIntervalSchedule: public BasicIntervalSchedule - { - - public: - CIMPP::Seconds timeStep; /* The time between each pair of subsequent regular time points in sequence order. Default: nullptr */ - CIMPP::DateTime* endTime; /* The time for the last time point. Default: '' */ - std::list TimePoints; /* The regular interval time point data values that define this schedule. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - RegularIntervalSchedule(); - virtual ~RegularIntervalSchedule(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* RegularIntervalSchedule_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/RegularTimePoint.cpp b/CGMES_2.4.13_18DEC2013/RegularTimePoint.cpp deleted file mode 100644 index 33e56c754..000000000 --- a/CGMES_2.4.13_18DEC2013/RegularTimePoint.cpp +++ /dev/null @@ -1,99 +0,0 @@ -#include -#include "BaseClass.hpp" -#include "RegularTimePoint.hpp" - -#include "RegularIntervalSchedule.hpp" -#include "Integer.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" - -using namespace CIMPP; - -RegularTimePoint::RegularTimePoint(): IntervalSchedule(nullptr) {}; - -RegularTimePoint::~RegularTimePoint() {}; - - -bool assign_RegularIntervalSchedule_TimePoints(BaseClass*, BaseClass*); -bool assign_RegularTimePoint_IntervalSchedule(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(RegularTimePoint* element = dynamic_cast(BaseClass_ptr1)) { - element->IntervalSchedule = dynamic_cast(BaseClass_ptr2); - if(element->IntervalSchedule != nullptr) - return assign_RegularIntervalSchedule_TimePoints(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - - - - -bool assign_RegularTimePoint_sequenceNumber(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(RegularTimePoint* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->sequenceNumber; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_RegularTimePoint_value1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(RegularTimePoint* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->value1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_RegularTimePoint_value2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(RegularTimePoint* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->value2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* RegularTimePoint_factory() { - return new RegularTimePoint; - } -} - -void RegularTimePoint::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:RegularTimePoint"), &RegularTimePoint_factory)); -} - -void RegularTimePoint::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:RegularTimePoint.sequenceNumber"), &assign_RegularTimePoint_sequenceNumber)); - assign_map.insert(std::make_pair(std::string("cim:RegularTimePoint.value1"), &assign_RegularTimePoint_value1)); - assign_map.insert(std::make_pair(std::string("cim:RegularTimePoint.value2"), &assign_RegularTimePoint_value2)); -} - -void RegularTimePoint::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:RegularTimePoint.IntervalSchedule"), &assign_RegularTimePoint_IntervalSchedule)); - } - -const char RegularTimePoint::debugName[] = "RegularTimePoint"; -const char* RegularTimePoint::debugString() -{ - return RegularTimePoint::debugName; -} - -const BaseClassDefiner RegularTimePoint::declare() -{ - return BaseClassDefiner(RegularTimePoint::addConstructToMap, RegularTimePoint::addPrimitiveAssignFnsToMap, RegularTimePoint::addClassAssignFnsToMap, RegularTimePoint::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/RegularTimePoint.hpp b/CGMES_2.4.13_18DEC2013/RegularTimePoint.hpp deleted file mode 100644 index a313cfc35..000000000 --- a/CGMES_2.4.13_18DEC2013/RegularTimePoint.hpp +++ /dev/null @@ -1,45 +0,0 @@ -#ifndef RegularTimePoint_H -#define RegularTimePoint_H - -#include "BaseClass.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Integer.hpp" -#include "Simple_Float.hpp" - -namespace CIMPP { - - -class RegularIntervalSchedule; - /* - Time point for a schedule where the time between the consecutive points is constant. - */ - class RegularTimePoint: public BaseClass - { - - public: - CIMPP::RegularIntervalSchedule* IntervalSchedule; /* Regular interval schedule containing this time point. Default: 0 */ - CIMPP::Integer sequenceNumber; /* The position of the regular time point in the sequence. Note that time points don`t have to be sequential, i.e. time points may be omitted. The actual time for a RegularTimePoint is computed by multiplying the associated regular interval schedule`s time step with the regular time point sequence number and adding the associated schedules start time. Default: 0 */ - CIMPP::Simple_Float value1; /* The first value at the time. The meaning of the value is defined by the derived type of the associated schedule. Default: nullptr */ - CIMPP::Simple_Float value2; /* The second value at the time. The meaning of the value is defined by the derived type of the associated schedule. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - RegularTimePoint(); - virtual ~RegularTimePoint(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* RegularTimePoint_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/RegulatingCondEq.cpp b/CGMES_2.4.13_18DEC2013/RegulatingCondEq.cpp deleted file mode 100644 index 0d70ff410..000000000 --- a/CGMES_2.4.13_18DEC2013/RegulatingCondEq.cpp +++ /dev/null @@ -1,69 +0,0 @@ -#include -#include "ConductingEquipment.hpp" -#include "RegulatingCondEq.hpp" - -#include "Boolean.hpp" -#include "RegulatingControl.hpp" - -using namespace CIMPP; - -RegulatingCondEq::RegulatingCondEq(): RegulatingControl(nullptr) {}; - -RegulatingCondEq::~RegulatingCondEq() {}; - - - -bool assign_RegulatingControl_RegulatingCondEq(BaseClass*, BaseClass*); -bool assign_RegulatingCondEq_RegulatingControl(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(RegulatingCondEq* element = dynamic_cast(BaseClass_ptr1)) { - element->RegulatingControl = dynamic_cast(BaseClass_ptr2); - if(element->RegulatingControl != nullptr) - return assign_RegulatingControl_RegulatingCondEq(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - -bool assign_RegulatingCondEq_controlEnabled(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(RegulatingCondEq* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->controlEnabled; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -namespace CIMPP { - BaseClass* RegulatingCondEq_factory() { - return new RegulatingCondEq; - } -} - -void RegulatingCondEq::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:RegulatingCondEq"), &RegulatingCondEq_factory)); -} - -void RegulatingCondEq::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:RegulatingCondEq.controlEnabled"), &assign_RegulatingCondEq_controlEnabled)); - } - -void RegulatingCondEq::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:RegulatingCondEq.RegulatingControl"), &assign_RegulatingCondEq_RegulatingControl)); -} - -const char RegulatingCondEq::debugName[] = "RegulatingCondEq"; -const char* RegulatingCondEq::debugString() -{ - return RegulatingCondEq::debugName; -} - -const BaseClassDefiner RegulatingCondEq::declare() -{ - return BaseClassDefiner(RegulatingCondEq::addConstructToMap, RegulatingCondEq::addPrimitiveAssignFnsToMap, RegulatingCondEq::addClassAssignFnsToMap, RegulatingCondEq::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/RegulatingCondEq.hpp b/CGMES_2.4.13_18DEC2013/RegulatingCondEq.hpp deleted file mode 100644 index caaeb61d3..000000000 --- a/CGMES_2.4.13_18DEC2013/RegulatingCondEq.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef RegulatingCondEq_H -#define RegulatingCondEq_H - -#include "ConductingEquipment.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Boolean.hpp" - -namespace CIMPP { - - -class RegulatingControl; - /* - A type of conducting equipment that can regulate a quantity (i.e. voltage or flow) at a specific point in the network. - */ - class RegulatingCondEq: public ConductingEquipment - { - - public: - CIMPP::Boolean controlEnabled; /* Specifies the regulation status of the equipment. True is regulating, false is not regulating. Default: false */ - CIMPP::RegulatingControl* RegulatingControl; /* The regulating control scheme in which this equipment participates. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - RegulatingCondEq(); - virtual ~RegulatingCondEq(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* RegulatingCondEq_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/RegulatingControl.cpp b/CGMES_2.4.13_18DEC2013/RegulatingControl.cpp deleted file mode 100644 index f53d47775..000000000 --- a/CGMES_2.4.13_18DEC2013/RegulatingControl.cpp +++ /dev/null @@ -1,170 +0,0 @@ -#include -#include "PowerSystemResource.hpp" -#include "RegulatingControl.hpp" - -#include "Boolean.hpp" -#include "Boolean.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "UnitMultiplier.hpp" -#include "Terminal.hpp" -#include "RegulatingCondEq.hpp" -#include "RegulatingControlModeKind.hpp" -#include "RegulationSchedule.hpp" - -using namespace CIMPP; - -RegulatingControl::RegulatingControl(): Terminal(nullptr) {}; - -RegulatingControl::~RegulatingControl() {}; - - - - - - - -bool assign_Terminal_RegulatingControl(BaseClass*, BaseClass*); -bool assign_RegulatingControl_Terminal(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(RegulatingControl* element = dynamic_cast(BaseClass_ptr1)) { - element->Terminal = dynamic_cast(BaseClass_ptr2); - if(element->Terminal != nullptr) - return assign_Terminal_RegulatingControl(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_RegulatingControl_RegulatingCondEq(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(RegulatingControl* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->RegulatingCondEq.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - -bool assign_RegulatingControl_RegulationSchedule(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(RegulatingControl* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->RegulationSchedule.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - -bool assign_RegulatingControl_discrete(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(RegulatingControl* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->discrete; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_RegulatingControl_enabled(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(RegulatingControl* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->enabled; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_RegulatingControl_targetDeadband(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(RegulatingControl* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->targetDeadband; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_RegulatingControl_targetValue(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(RegulatingControl* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->targetValue; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_RegulatingControl_targetValueUnitMultiplier(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(RegulatingControl* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->targetValueUnitMultiplier; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - - -bool assign_RegulatingControl_mode(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(RegulatingControl* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->mode; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -namespace CIMPP { - BaseClass* RegulatingControl_factory() { - return new RegulatingControl; - } -} - -void RegulatingControl::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:RegulatingControl"), &RegulatingControl_factory)); -} - -void RegulatingControl::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:RegulatingControl.discrete"), &assign_RegulatingControl_discrete)); - assign_map.insert(std::make_pair(std::string("cim:RegulatingControl.enabled"), &assign_RegulatingControl_enabled)); - assign_map.insert(std::make_pair(std::string("cim:RegulatingControl.targetDeadband"), &assign_RegulatingControl_targetDeadband)); - assign_map.insert(std::make_pair(std::string("cim:RegulatingControl.targetValue"), &assign_RegulatingControl_targetValue)); - assign_map.insert(std::make_pair(std::string("cim:RegulatingControl.targetValueUnitMultiplier"), &assign_RegulatingControl_targetValueUnitMultiplier)); - assign_map.insert(std::make_pair(std::string("cim:RegulatingControl.mode"), &assign_RegulatingControl_mode)); - } - -void RegulatingControl::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:RegulatingControl.Terminal"), &assign_RegulatingControl_Terminal)); - assign_map.insert(std::make_pair(std::string("cim:RegulatingControl.RegulatingCondEq"), &assign_RegulatingControl_RegulatingCondEq)); - assign_map.insert(std::make_pair(std::string("cim:RegulatingControl.RegulationSchedule"), &assign_RegulatingControl_RegulationSchedule)); -} - -const char RegulatingControl::debugName[] = "RegulatingControl"; -const char* RegulatingControl::debugString() -{ - return RegulatingControl::debugName; -} - -const BaseClassDefiner RegulatingControl::declare() -{ - return BaseClassDefiner(RegulatingControl::addConstructToMap, RegulatingControl::addPrimitiveAssignFnsToMap, RegulatingControl::addClassAssignFnsToMap, RegulatingControl::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/RegulatingControl.hpp b/CGMES_2.4.13_18DEC2013/RegulatingControl.hpp deleted file mode 100644 index 73689e85a..000000000 --- a/CGMES_2.4.13_18DEC2013/RegulatingControl.hpp +++ /dev/null @@ -1,54 +0,0 @@ -#ifndef RegulatingControl_H -#define RegulatingControl_H - -#include "PowerSystemResource.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Boolean.hpp" -#include "Simple_Float.hpp" -#include "UnitMultiplier.hpp" -#include "RegulatingControlModeKind.hpp" - -namespace CIMPP { - - -class Terminal; -class RegulatingCondEq; -class RegulationSchedule; - /* - Specifies a set of equipment that works together to control a power system quantity such as voltage or flow. Remote bus voltage control is possible by specifying the controlled terminal located at some place remote from the controlling equipment. In case multiple equipment, possibly of different types, control same terminal there must be only one RegulatingControl at that terminal. The most specific subtype of RegulatingControl shall be used in case such equipment participate in the control, e.g. TapChangerControl for tap changers. For flow control load sign convention is used, i.e. positive sign means flow out from a TopologicalNode (bus) into the conducting equipment. - */ - class RegulatingControl: public PowerSystemResource - { - - public: - CIMPP::Boolean discrete; /* The regulation is performed in a discrete mode. This applies to equipment with discrete controls, e.g. tap changers and shunt compensators. Default: false */ - CIMPP::Boolean enabled; /* The flag tells if regulation is enabled. Default: false */ - CIMPP::Simple_Float targetDeadband; /* This is a deadband used with discrete control to avoid excessive update of controls like tap changers and shunt compensator banks while regulating. The units of those appropriate for the mode. Default: nullptr */ - CIMPP::Simple_Float targetValue; /* The target value specified for case input. This value can be used for the target value without the use of schedules. The value has the units appropriate to the mode attribute. Default: nullptr */ - CIMPP::UnitMultiplier targetValueUnitMultiplier; /* Specify the multiplier for used for the targetValue. Default: 0 */ - CIMPP::Terminal* Terminal; /* The controls regulating this terminal. Default: 0 */ - std::list RegulatingCondEq; /* The equipment that participates in this regulating control scheme. Default: 0 */ - CIMPP::RegulatingControlModeKind mode; /* The regulating control mode presently available. This specification allows for determining the kind of regulation without need for obtaining the units from a schedule. Default: 0 */ - std::list RegulationSchedule; /* Schedule for this Regulating regulating control. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - RegulatingControl(); - virtual ~RegulatingControl(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* RegulatingControl_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/RegulatingControlModeKind.cpp b/CGMES_2.4.13_18DEC2013/RegulatingControlModeKind.cpp deleted file mode 100644 index 36d62b3f6..000000000 --- a/CGMES_2.4.13_18DEC2013/RegulatingControlModeKind.cpp +++ /dev/null @@ -1,67 +0,0 @@ -#include -#include -#include "RegulatingControlModeKind.hpp" - -using namespace CIMPP; - -namespace CIMPP { - std::istream& operator>>(std::istream& lop, CIMPP::RegulatingControlModeKind& rop) - { - std::string EnumSymbol; - lop >> EnumSymbol; - - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "RegulatingControlModeKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "voltage") - { - rop = RegulatingControlModeKind::voltage; - return lop; - } - if(EnumSymbol == "activePower") - { - rop = RegulatingControlModeKind::activePower; - return lop; - } - if(EnumSymbol == "reactivePower") - { - rop = RegulatingControlModeKind::reactivePower; - return lop; - } - if(EnumSymbol == "currentFlow") - { - rop = RegulatingControlModeKind::currentFlow; - return lop; - } - if(EnumSymbol == "admittance") - { - rop = RegulatingControlModeKind::admittance; - return lop; - } - if(EnumSymbol == "timeScheduled") - { - rop = RegulatingControlModeKind::timeScheduled; - return lop; - } - if(EnumSymbol == "temperature") - { - rop = RegulatingControlModeKind::temperature; - return lop; - } - if(EnumSymbol == "powerFactor") - { - rop = RegulatingControlModeKind::powerFactor; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; - } -} - diff --git a/CGMES_2.4.13_18DEC2013/RegulatingControlModeKind.hpp b/CGMES_2.4.13_18DEC2013/RegulatingControlModeKind.hpp deleted file mode 100644 index fc671981d..000000000 --- a/CGMES_2.4.13_18DEC2013/RegulatingControlModeKind.hpp +++ /dev/null @@ -1,45 +0,0 @@ -#ifndef RegulatingControlModeKind_H -#define RegulatingControlModeKind_H - -namespace CIMPP { - /* - The kind of regulation model. For example regulating voltage, reactive power, active power, etc. - */ - enum class RegulatingControlModeKind - { - /** - * Voltage is specified. - */ - voltage, - /** - * Active power is specified. - */ - activePower, - /** - * Reactive power is specified. - */ - reactivePower, - /** - * Current flow is specified. - */ - currentFlow, - /** - * Admittance is specified. - */ - admittance, - /** - * Control switches on/off by time of day. The times may change on the weekend, or in different seasons. - */ - timeScheduled, - /** - * Control switches on/off based on the local temperature (i.e., a thermostat). - */ - temperature, - /** - * Power factor is specified. - */ - powerFactor, - }; - std::istream& operator>>(std::istream& lop, CIMPP::RegulatingControlModeKind& rop); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/RegulationSchedule.cpp b/CGMES_2.4.13_18DEC2013/RegulationSchedule.cpp deleted file mode 100644 index 74a4e7b8f..000000000 --- a/CGMES_2.4.13_18DEC2013/RegulationSchedule.cpp +++ /dev/null @@ -1,54 +0,0 @@ -#include -#include "SeasonDayTypeSchedule.hpp" -#include "RegulationSchedule.hpp" - -#include "RegulatingControl.hpp" - -using namespace CIMPP; - -RegulationSchedule::RegulationSchedule(): RegulatingControl(nullptr) {}; - -RegulationSchedule::~RegulationSchedule() {}; - - -bool assign_RegulatingControl_RegulationSchedule(BaseClass*, BaseClass*); -bool assign_RegulationSchedule_RegulatingControl(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(RegulationSchedule* element = dynamic_cast(BaseClass_ptr1)) { - element->RegulatingControl = dynamic_cast(BaseClass_ptr2); - if(element->RegulatingControl != nullptr) - return assign_RegulatingControl_RegulationSchedule(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - -namespace CIMPP { - BaseClass* RegulationSchedule_factory() { - return new RegulationSchedule; - } -} - -void RegulationSchedule::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:RegulationSchedule"), &RegulationSchedule_factory)); -} - -void RegulationSchedule::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void RegulationSchedule::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:RegulationSchedule.RegulatingControl"), &assign_RegulationSchedule_RegulatingControl)); -} - -const char RegulationSchedule::debugName[] = "RegulationSchedule"; -const char* RegulationSchedule::debugString() -{ - return RegulationSchedule::debugName; -} - -const BaseClassDefiner RegulationSchedule::declare() -{ - return BaseClassDefiner(RegulationSchedule::addConstructToMap, RegulationSchedule::addPrimitiveAssignFnsToMap, RegulationSchedule::addClassAssignFnsToMap, RegulationSchedule::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/RegulationSchedule.hpp b/CGMES_2.4.13_18DEC2013/RegulationSchedule.hpp deleted file mode 100644 index 0d8fed494..000000000 --- a/CGMES_2.4.13_18DEC2013/RegulationSchedule.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef RegulationSchedule_H -#define RegulationSchedule_H - -#include "SeasonDayTypeSchedule.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class RegulatingControl; - /* - A pre-established pattern over time for a controlled variable, e.g., busbar voltage. - */ - class RegulationSchedule: public SeasonDayTypeSchedule - { - - public: - CIMPP::RegulatingControl* RegulatingControl; /* Regulating controls that have this Schedule. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - RegulationSchedule(); - virtual ~RegulationSchedule(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* RegulationSchedule_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/RemoteInputSignal.cpp b/CGMES_2.4.13_18DEC2013/RemoteInputSignal.cpp deleted file mode 100644 index 217f515ba..000000000 --- a/CGMES_2.4.13_18DEC2013/RemoteInputSignal.cpp +++ /dev/null @@ -1,170 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "RemoteInputSignal.hpp" - -#include "Terminal.hpp" -#include "RemoteSignalKind.hpp" -#include "PFVArControllerType1Dynamics.hpp" -#include "UnderexcitationLimiterDynamics.hpp" -#include "WindTurbineType1or2Dynamics.hpp" -#include "VoltageCompensatorDynamics.hpp" -#include "PowerSystemStabilizerDynamics.hpp" -#include "DiscontinuousExcitationControlDynamics.hpp" -#include "WindTurbineType3or4Dynamics.hpp" -#include "WindPlantDynamics.hpp" - -using namespace CIMPP; - -RemoteInputSignal::RemoteInputSignal(): Terminal(nullptr), PFVArControllerType1Dynamics(nullptr), UnderexcitationLimiterDynamics(nullptr), WindTurbineType1or2Dynamics(nullptr), VoltageCompensatorDynamics(nullptr), PowerSystemStabilizerDynamics(nullptr), DiscontinuousExcitationControlDynamics(nullptr), WindTurbineType3or4Dynamics(nullptr), WindPlantDynamics(nullptr) {}; - -RemoteInputSignal::~RemoteInputSignal() {}; - - -bool assign_Terminal_RemoteInputSignal(BaseClass*, BaseClass*); -bool assign_RemoteInputSignal_Terminal(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(RemoteInputSignal* element = dynamic_cast(BaseClass_ptr1)) { - element->Terminal = dynamic_cast(BaseClass_ptr2); - if(element->Terminal != nullptr) - return assign_Terminal_RemoteInputSignal(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - -bool assign_PFVArControllerType1Dynamics_RemoteInputSignal(BaseClass*, BaseClass*); -bool assign_RemoteInputSignal_PFVArControllerType1Dynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(RemoteInputSignal* element = dynamic_cast(BaseClass_ptr1)) { - element->PFVArControllerType1Dynamics = dynamic_cast(BaseClass_ptr2); - if(element->PFVArControllerType1Dynamics != nullptr) - return assign_PFVArControllerType1Dynamics_RemoteInputSignal(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_UnderexcitationLimiterDynamics_RemoteInputSignal(BaseClass*, BaseClass*); -bool assign_RemoteInputSignal_UnderexcitationLimiterDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(RemoteInputSignal* element = dynamic_cast(BaseClass_ptr1)) { - element->UnderexcitationLimiterDynamics = dynamic_cast(BaseClass_ptr2); - if(element->UnderexcitationLimiterDynamics != nullptr) - return assign_UnderexcitationLimiterDynamics_RemoteInputSignal(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_RemoteInputSignal_WindTurbineType1or2Dynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(RemoteInputSignal* element = dynamic_cast(BaseClass_ptr1)) { - element->WindTurbineType1or2Dynamics = dynamic_cast(BaseClass_ptr2); - if(element->WindTurbineType1or2Dynamics != nullptr) - return true; - } - return false; -} - -bool assign_VoltageCompensatorDynamics_RemoteInputSignal(BaseClass*, BaseClass*); -bool assign_RemoteInputSignal_VoltageCompensatorDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(RemoteInputSignal* element = dynamic_cast(BaseClass_ptr1)) { - element->VoltageCompensatorDynamics = dynamic_cast(BaseClass_ptr2); - if(element->VoltageCompensatorDynamics != nullptr) - return assign_VoltageCompensatorDynamics_RemoteInputSignal(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_PowerSystemStabilizerDynamics_RemoteInputSignal(BaseClass*, BaseClass*); -bool assign_RemoteInputSignal_PowerSystemStabilizerDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(RemoteInputSignal* element = dynamic_cast(BaseClass_ptr1)) { - element->PowerSystemStabilizerDynamics = dynamic_cast(BaseClass_ptr2); - if(element->PowerSystemStabilizerDynamics != nullptr) - return assign_PowerSystemStabilizerDynamics_RemoteInputSignal(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_DiscontinuousExcitationControlDynamics_RemoteInputSignal(BaseClass*, BaseClass*); -bool assign_RemoteInputSignal_DiscontinuousExcitationControlDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(RemoteInputSignal* element = dynamic_cast(BaseClass_ptr1)) { - element->DiscontinuousExcitationControlDynamics = dynamic_cast(BaseClass_ptr2); - if(element->DiscontinuousExcitationControlDynamics != nullptr) - return assign_DiscontinuousExcitationControlDynamics_RemoteInputSignal(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_RemoteInputSignal_WindTurbineType3or4Dynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(RemoteInputSignal* element = dynamic_cast(BaseClass_ptr1)) { - element->WindTurbineType3or4Dynamics = dynamic_cast(BaseClass_ptr2); - if(element->WindTurbineType3or4Dynamics != nullptr) - return true; - } - return false; -} - -bool assign_RemoteInputSignal_WindPlantDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(RemoteInputSignal* element = dynamic_cast(BaseClass_ptr1)) { - element->WindPlantDynamics = dynamic_cast(BaseClass_ptr2); - if(element->WindPlantDynamics != nullptr) - return true; - } - return false; -} - - - -bool assign_RemoteInputSignal_remoteSignalType(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(RemoteInputSignal* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->remoteSignalType; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - - - - - - - - -namespace CIMPP { - BaseClass* RemoteInputSignal_factory() { - return new RemoteInputSignal; - } -} - -void RemoteInputSignal::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:RemoteInputSignal"), &RemoteInputSignal_factory)); -} - -void RemoteInputSignal::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:RemoteInputSignal.remoteSignalType"), &assign_RemoteInputSignal_remoteSignalType)); - } - -void RemoteInputSignal::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:RemoteInputSignal.Terminal"), &assign_RemoteInputSignal_Terminal)); - assign_map.insert(std::make_pair(std::string("cim:RemoteInputSignal.PFVArControllerType1Dynamics"), &assign_RemoteInputSignal_PFVArControllerType1Dynamics)); - assign_map.insert(std::make_pair(std::string("cim:RemoteInputSignal.UnderexcitationLimiterDynamics"), &assign_RemoteInputSignal_UnderexcitationLimiterDynamics)); - assign_map.insert(std::make_pair(std::string("cim:RemoteInputSignal.WindTurbineType1or2Dynamics"), &assign_RemoteInputSignal_WindTurbineType1or2Dynamics)); - assign_map.insert(std::make_pair(std::string("cim:RemoteInputSignal.VoltageCompensatorDynamics"), &assign_RemoteInputSignal_VoltageCompensatorDynamics)); - assign_map.insert(std::make_pair(std::string("cim:RemoteInputSignal.PowerSystemStabilizerDynamics"), &assign_RemoteInputSignal_PowerSystemStabilizerDynamics)); - assign_map.insert(std::make_pair(std::string("cim:RemoteInputSignal.DiscontinuousExcitationControlDynamics"), &assign_RemoteInputSignal_DiscontinuousExcitationControlDynamics)); - assign_map.insert(std::make_pair(std::string("cim:RemoteInputSignal.WindTurbineType3or4Dynamics"), &assign_RemoteInputSignal_WindTurbineType3or4Dynamics)); - assign_map.insert(std::make_pair(std::string("cim:RemoteInputSignal.WindPlantDynamics"), &assign_RemoteInputSignal_WindPlantDynamics)); -} - -const char RemoteInputSignal::debugName[] = "RemoteInputSignal"; -const char* RemoteInputSignal::debugString() -{ - return RemoteInputSignal::debugName; -} - -const BaseClassDefiner RemoteInputSignal::declare() -{ - return BaseClassDefiner(RemoteInputSignal::addConstructToMap, RemoteInputSignal::addPrimitiveAssignFnsToMap, RemoteInputSignal::addClassAssignFnsToMap, RemoteInputSignal::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/RemoteInputSignal.hpp b/CGMES_2.4.13_18DEC2013/RemoteInputSignal.hpp deleted file mode 100644 index 908d89be5..000000000 --- a/CGMES_2.4.13_18DEC2013/RemoteInputSignal.hpp +++ /dev/null @@ -1,58 +0,0 @@ -#ifndef RemoteInputSignal_H -#define RemoteInputSignal_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "RemoteSignalKind.hpp" - -namespace CIMPP { - - -class Terminal; -class PFVArControllerType1Dynamics; -class UnderexcitationLimiterDynamics; -class WindTurbineType1or2Dynamics; -class VoltageCompensatorDynamics; -class PowerSystemStabilizerDynamics; -class DiscontinuousExcitationControlDynamics; -class WindTurbineType3or4Dynamics; -class WindPlantDynamics; - /* - Supports connection to a terminal associated with a remote bus from which an input signal of a specific type is coming. - */ - class RemoteInputSignal: public IdentifiedObject - { - - public: - CIMPP::Terminal* Terminal; /* Remote terminal with which this input signal is associated. Default: 0 */ - CIMPP::RemoteSignalKind remoteSignalType; /* Type of input signal. Default: 0 */ - CIMPP::PFVArControllerType1Dynamics* PFVArControllerType1Dynamics; /* Power Factor or VAr controller Type I model using this remote input signal. Default: 0 */ - CIMPP::UnderexcitationLimiterDynamics* UnderexcitationLimiterDynamics; /* Underexcitation limiter model using this remote input signal. Default: 0 */ - CIMPP::WindTurbineType1or2Dynamics* WindTurbineType1or2Dynamics; /* Wind generator Type 1 or Type 2 model using this remote input signal. Default: 0 */ - CIMPP::VoltageCompensatorDynamics* VoltageCompensatorDynamics; /* Voltage compensator model using this remote input signal. Default: 0 */ - CIMPP::PowerSystemStabilizerDynamics* PowerSystemStabilizerDynamics; /* Power system stabilizer model using this remote input signal. Default: 0 */ - CIMPP::DiscontinuousExcitationControlDynamics* DiscontinuousExcitationControlDynamics; /* Discontinuous excitation control model using this remote input signal. Default: 0 */ - CIMPP::WindTurbineType3or4Dynamics* WindTurbineType3or4Dynamics; /* Remote input signal used by these wind turbine Type 3 or 4 models. Default: 0 */ - CIMPP::WindPlantDynamics* WindPlantDynamics; /* The remote signal with which this power plant is associated. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - RemoteInputSignal(); - virtual ~RemoteInputSignal(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* RemoteInputSignal_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/RemoteSignalKind.cpp b/CGMES_2.4.13_18DEC2013/RemoteSignalKind.cpp deleted file mode 100644 index 9909a7ec1..000000000 --- a/CGMES_2.4.13_18DEC2013/RemoteSignalKind.cpp +++ /dev/null @@ -1,72 +0,0 @@ -#include -#include -#include "RemoteSignalKind.hpp" - -using namespace CIMPP; - -namespace CIMPP { - std::istream& operator>>(std::istream& lop, CIMPP::RemoteSignalKind& rop) - { - std::string EnumSymbol; - lop >> EnumSymbol; - - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "RemoteSignalKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "remoteBusVoltageFrequency") - { - rop = RemoteSignalKind::remoteBusVoltageFrequency; - return lop; - } - if(EnumSymbol == "remoteBusVoltageFrequencyDeviation") - { - rop = RemoteSignalKind::remoteBusVoltageFrequencyDeviation; - return lop; - } - if(EnumSymbol == "remoteBusFrequency") - { - rop = RemoteSignalKind::remoteBusFrequency; - return lop; - } - if(EnumSymbol == "remoteBusFrequencyDeviation") - { - rop = RemoteSignalKind::remoteBusFrequencyDeviation; - return lop; - } - if(EnumSymbol == "remoteBusVoltageAmplitude") - { - rop = RemoteSignalKind::remoteBusVoltageAmplitude; - return lop; - } - if(EnumSymbol == "remoteBusVoltage") - { - rop = RemoteSignalKind::remoteBusVoltage; - return lop; - } - if(EnumSymbol == "remoteBranchCurrentAmplitude") - { - rop = RemoteSignalKind::remoteBranchCurrentAmplitude; - return lop; - } - if(EnumSymbol == "remoteBusVoltageAmplitudeDerivative") - { - rop = RemoteSignalKind::remoteBusVoltageAmplitudeDerivative; - return lop; - } - if(EnumSymbol == "remotePuBusVoltageDerivative") - { - rop = RemoteSignalKind::remotePuBusVoltageDerivative; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; - } -} - diff --git a/CGMES_2.4.13_18DEC2013/RemoteSignalKind.hpp b/CGMES_2.4.13_18DEC2013/RemoteSignalKind.hpp deleted file mode 100644 index 007451b50..000000000 --- a/CGMES_2.4.13_18DEC2013/RemoteSignalKind.hpp +++ /dev/null @@ -1,49 +0,0 @@ -#ifndef RemoteSignalKind_H -#define RemoteSignalKind_H - -namespace CIMPP { - /* - Type of input signal coming from remote bus. - */ - enum class RemoteSignalKind - { - /** - * Input is voltage frequency from remote terminal bus. - */ - remoteBusVoltageFrequency, - /** - * Input is voltage frequency deviation from remote terminal bus. - */ - remoteBusVoltageFrequencyDeviation, - /** - * Input is frequency from remote terminal bus. - */ - remoteBusFrequency, - /** - * Input is frequency deviation from remote terminal bus. - */ - remoteBusFrequencyDeviation, - /** - * Input is voltage amplitude from remote terminal bus. - */ - remoteBusVoltageAmplitude, - /** - * Input is voltage from remote terminal bus. - */ - remoteBusVoltage, - /** - * Input is branch current amplitude from remote terminal bus. - */ - remoteBranchCurrentAmplitude, - /** - * Input is branch current amplitude derivative from remote terminal bus. - */ - remoteBusVoltageAmplitudeDerivative, - /** - * Input is PU voltage derivative from remote terminal bus. - */ - remotePuBusVoltageDerivative, - }; - std::istream& operator>>(std::istream& lop, CIMPP::RemoteSignalKind& rop); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ReportingGroup.cpp b/CGMES_2.4.13_18DEC2013/ReportingGroup.cpp deleted file mode 100644 index 6386660c3..000000000 --- a/CGMES_2.4.13_18DEC2013/ReportingGroup.cpp +++ /dev/null @@ -1,67 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "ReportingGroup.hpp" - -#include "TopologicalNode.hpp" -#include "BusNameMarker.hpp" - -using namespace CIMPP; - -ReportingGroup::ReportingGroup() {}; - -ReportingGroup::~ReportingGroup() {}; - - -bool assign_ReportingGroup_TopologicalNode(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ReportingGroup* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->TopologicalNode.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_ReportingGroup_BusNameMarker(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ReportingGroup* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->BusNameMarker.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - - - -namespace CIMPP { - BaseClass* ReportingGroup_factory() { - return new ReportingGroup; - } -} - -void ReportingGroup::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ReportingGroup"), &ReportingGroup_factory)); -} - -void ReportingGroup::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void ReportingGroup::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ReportingGroup.TopologicalNode"), &assign_ReportingGroup_TopologicalNode)); - assign_map.insert(std::make_pair(std::string("cim:ReportingGroup.BusNameMarker"), &assign_ReportingGroup_BusNameMarker)); -} - -const char ReportingGroup::debugName[] = "ReportingGroup"; -const char* ReportingGroup::debugString() -{ - return ReportingGroup::debugName; -} - -const BaseClassDefiner ReportingGroup::declare() -{ - return BaseClassDefiner(ReportingGroup::addConstructToMap, ReportingGroup::addPrimitiveAssignFnsToMap, ReportingGroup::addClassAssignFnsToMap, ReportingGroup::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ReportingGroup.hpp b/CGMES_2.4.13_18DEC2013/ReportingGroup.hpp deleted file mode 100644 index accd46340..000000000 --- a/CGMES_2.4.13_18DEC2013/ReportingGroup.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef ReportingGroup_H -#define ReportingGroup_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class TopologicalNode; -class BusNameMarker; - /* - A reporting group is used for various ad-hoc groupings used for reporting. - */ - class ReportingGroup: public IdentifiedObject - { - - public: - std::list TopologicalNode; /* The reporting group to which the topological node belongs. Default: 0 */ - std::list BusNameMarker; /* The reporting group to which this bus name marker belongs. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ReportingGroup(); - virtual ~ReportingGroup(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ReportingGroup_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/Resistance.cpp b/CGMES_2.4.13_18DEC2013/Resistance.cpp deleted file mode 100644 index e588088c7..000000000 --- a/CGMES_2.4.13_18DEC2013/Resistance.cpp +++ /dev/null @@ -1,70 +0,0 @@ -#include "Resistance.hpp" -#include "../src/CIMExceptions.hpp" - -using namespace CIMPP; - -Resistance::Resistance() {} - -Resistance::~Resistance(){} - -Resistance::Resistance(long double value) : value(value), initialized(true) {} - -void Resistance::addConstructToMap(std::unordered_map& factory_map) {} - -void Resistance::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) {} - -void Resistance::addClassAssignFnsToMap(std::unordered_map& assign_map) {} - -const char Resistance::debugName[] = "Resistance"; -const char* Resistance::debugString() { - return Resistance::debugName; -} - - -const BaseClassDefiner Resistance::declare() { - return BaseClassDefiner(Resistance::addConstructToMap, Resistance::addPrimitiveAssignFnsToMap, Resistance::addClassAssignFnsToMap, Resistance::debugName); -} - -namespace CIMPP { - Resistance& Resistance::operator=(long double &rop) { - value = rop; - initialized = true; - return *this; - } - - Resistance& Resistance::operator-=(const Resistance& rhs) { - value -= rhs.value; - return *this; - } - - Resistance& Resistance::operator*=(const Resistance& rhs) { - value *= rhs.value; - return *this; - } - - Resistance& Resistance::operator/=(const Resistance& rhs) { - value /= rhs.value; - return *this; - } - - Resistance& Resistance::operator+=(const Resistance& rhs) { - value += rhs.value; - return *this; - } - - Resistance::operator long double() { - if(!initialized) - { - throw new ReadingUninitializedField(); - } - return value; - } - - std::istream& operator>>(std::istream& lop, Resistance& rop) { - std::string tmp; - lop >> tmp; - rop.value = stold(tmp); - rop.initialized = true; - return lop; - } -} diff --git a/CGMES_2.4.13_18DEC2013/Resistance.hpp b/CGMES_2.4.13_18DEC2013/Resistance.hpp deleted file mode 100644 index f8f3b51fa..000000000 --- a/CGMES_2.4.13_18DEC2013/Resistance.hpp +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef Resistance_H -#define Resistance_H - -#include -#include - -#include "BaseClass.hpp" - -namespace CIMPP -{ - class Resistance : public BaseClass - { - - public: - Resistance(); - virtual ~Resistance(); - Resistance(long double value); - static const BaseClassDefiner declare(); - Resistance& operator=(long double &rop); - Resistance& operator+=(const Resistance& rhs); - Resistance& operator-=(const Resistance& rhs); - Resistance& operator*=(const Resistance& rhs); - Resistance& operator/=(const Resistance& rhs); - friend std::istream& operator>>(std::istream& lop, Resistance& rop); - operator long double(); - - long double value = 0.0; - bool initialized = false; - - static const char debugName[]; - virtual const char* debugString(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - }; -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ResistancePerLength.cpp b/CGMES_2.4.13_18DEC2013/ResistancePerLength.cpp deleted file mode 100644 index 306291ec7..000000000 --- a/CGMES_2.4.13_18DEC2013/ResistancePerLength.cpp +++ /dev/null @@ -1,113 +0,0 @@ -#include -#include "BaseClass.hpp" -#include "ResistancePerLength.hpp" - -#include "Float.hpp" -#include "UnitSymbol.hpp" -#include "UnitMultiplier.hpp" -#include "UnitSymbol.hpp" -#include "UnitMultiplier.hpp" - -using namespace CIMPP; - -ResistancePerLength::ResistancePerLength(): value(nullptr) {}; - -ResistancePerLength::~ResistancePerLength() {}; - - -bool assign_ResistancePerLength_value(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ResistancePerLength* element = dynamic_cast(BaseClass_ptr1)) { - element->value = dynamic_cast(BaseClass_ptr2); - if(element->value != nullptr) - return true; - } - return false; -} - - - - - - - -bool assign_ResistancePerLength_unit(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ResistancePerLength* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->unit; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ResistancePerLength_multiplier(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ResistancePerLength* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->multiplier; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ResistancePerLength_denominatorUnit(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ResistancePerLength* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->denominatorUnit; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ResistancePerLength_denominatorMultiplier(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ResistancePerLength* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->denominatorMultiplier; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ResistancePerLength_factory() { - return new ResistancePerLength; - } -} - -void ResistancePerLength::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ResistancePerLength"), &ResistancePerLength_factory)); -} - -void ResistancePerLength::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ResistancePerLength.unit"), &assign_ResistancePerLength_unit)); - assign_map.insert(std::make_pair(std::string("cim:ResistancePerLength.multiplier"), &assign_ResistancePerLength_multiplier)); - assign_map.insert(std::make_pair(std::string("cim:ResistancePerLength.denominatorUnit"), &assign_ResistancePerLength_denominatorUnit)); - assign_map.insert(std::make_pair(std::string("cim:ResistancePerLength.denominatorMultiplier"), &assign_ResistancePerLength_denominatorMultiplier)); -} - -void ResistancePerLength::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ResistancePerLength.value"), &assign_ResistancePerLength_value)); - } - -const char ResistancePerLength::debugName[] = "ResistancePerLength"; -const char* ResistancePerLength::debugString() -{ - return ResistancePerLength::debugName; -} - -const BaseClassDefiner ResistancePerLength::declare() -{ - return BaseClassDefiner(ResistancePerLength::addConstructToMap, ResistancePerLength::addPrimitiveAssignFnsToMap, ResistancePerLength::addClassAssignFnsToMap, ResistancePerLength::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ResistancePerLength.hpp b/CGMES_2.4.13_18DEC2013/ResistancePerLength.hpp deleted file mode 100644 index ffcd9b0f9..000000000 --- a/CGMES_2.4.13_18DEC2013/ResistancePerLength.hpp +++ /dev/null @@ -1,46 +0,0 @@ -#ifndef ResistancePerLength_H -#define ResistancePerLength_H - -#include "BaseClass.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "UnitSymbol.hpp" -#include "UnitMultiplier.hpp" - -namespace CIMPP { - - -class Float; - /* - Resistance (real part of impedance) per unit of length. - */ - class ResistancePerLength: public BaseClass - { - - public: - CIMPP::Float* value; /* Default: nullptr */ - CIMPP::UnitSymbol unit; /* Default: 0 */ - CIMPP::UnitMultiplier multiplier; /* Default: 0 */ - CIMPP::UnitSymbol denominatorUnit; /* Default: 0 */ - CIMPP::UnitMultiplier denominatorMultiplier; /* Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ResistancePerLength(); - virtual ~ResistancePerLength(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ResistancePerLength_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/RotatingMachine.cpp b/CGMES_2.4.13_18DEC2013/RotatingMachine.cpp deleted file mode 100644 index 329317cf1..000000000 --- a/CGMES_2.4.13_18DEC2013/RotatingMachine.cpp +++ /dev/null @@ -1,141 +0,0 @@ -#include -#include "RegulatingCondEq.hpp" -#include "RotatingMachine.hpp" - -#include "ActivePower.hpp" -#include "ReactivePower.hpp" -#include "GeneratingUnit.hpp" -#include "HydroPump.hpp" -#include "Simple_Float.hpp" -#include "ApparentPower.hpp" -#include "Voltage.hpp" - -using namespace CIMPP; - -RotatingMachine::RotatingMachine(): GeneratingUnit(nullptr), HydroPump(nullptr) {}; - -RotatingMachine::~RotatingMachine() {}; - - - - -bool assign_GeneratingUnit_RotatingMachine(BaseClass*, BaseClass*); -bool assign_RotatingMachine_GeneratingUnit(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(RotatingMachine* element = dynamic_cast(BaseClass_ptr1)) { - element->GeneratingUnit = dynamic_cast(BaseClass_ptr2); - if(element->GeneratingUnit != nullptr) - return assign_GeneratingUnit_RotatingMachine(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_RotatingMachine_HydroPump(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(RotatingMachine* element = dynamic_cast(BaseClass_ptr1)) { - element->HydroPump = dynamic_cast(BaseClass_ptr2); - if(element->HydroPump != nullptr) - return true; - } - return false; -} - - - - - -bool assign_RotatingMachine_p(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(RotatingMachine* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->p; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_RotatingMachine_q(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(RotatingMachine* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->q; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - - -bool assign_RotatingMachine_ratedPowerFactor(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(RotatingMachine* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ratedPowerFactor; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_RotatingMachine_ratedS(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(RotatingMachine* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ratedS; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_RotatingMachine_ratedU(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(RotatingMachine* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ratedU; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* RotatingMachine_factory() { - return new RotatingMachine; - } -} - -void RotatingMachine::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:RotatingMachine"), &RotatingMachine_factory)); -} - -void RotatingMachine::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:RotatingMachine.p"), &assign_RotatingMachine_p)); - assign_map.insert(std::make_pair(std::string("cim:RotatingMachine.q"), &assign_RotatingMachine_q)); - assign_map.insert(std::make_pair(std::string("cim:RotatingMachine.ratedPowerFactor"), &assign_RotatingMachine_ratedPowerFactor)); - assign_map.insert(std::make_pair(std::string("cim:RotatingMachine.ratedS"), &assign_RotatingMachine_ratedS)); - assign_map.insert(std::make_pair(std::string("cim:RotatingMachine.ratedU"), &assign_RotatingMachine_ratedU)); -} - -void RotatingMachine::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:RotatingMachine.GeneratingUnit"), &assign_RotatingMachine_GeneratingUnit)); - assign_map.insert(std::make_pair(std::string("cim:RotatingMachine.HydroPump"), &assign_RotatingMachine_HydroPump)); - } - -const char RotatingMachine::debugName[] = "RotatingMachine"; -const char* RotatingMachine::debugString() -{ - return RotatingMachine::debugName; -} - -const BaseClassDefiner RotatingMachine::declare() -{ - return BaseClassDefiner(RotatingMachine::addConstructToMap, RotatingMachine::addPrimitiveAssignFnsToMap, RotatingMachine::addClassAssignFnsToMap, RotatingMachine::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/RotatingMachine.hpp b/CGMES_2.4.13_18DEC2013/RotatingMachine.hpp deleted file mode 100644 index 85d5250b4..000000000 --- a/CGMES_2.4.13_18DEC2013/RotatingMachine.hpp +++ /dev/null @@ -1,52 +0,0 @@ -#ifndef RotatingMachine_H -#define RotatingMachine_H - -#include "RegulatingCondEq.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "ActivePower.hpp" -#include "ReactivePower.hpp" -#include "Simple_Float.hpp" -#include "ApparentPower.hpp" -#include "Voltage.hpp" - -namespace CIMPP { - - -class GeneratingUnit; -class HydroPump; - /* - A rotating machine which may be used as a generator or motor. - */ - class RotatingMachine: public RegulatingCondEq - { - - public: - CIMPP::ActivePower p; /* Active power injection. Load sign convention is used, i.e. positive sign means flow out from a node. Starting value for a steady state solution. Default: nullptr */ - CIMPP::ReactivePower q; /* Reactive power injection. Load sign convention is used, i.e. positive sign means flow out from a node. Starting value for a steady state solution. Default: nullptr */ - CIMPP::GeneratingUnit* GeneratingUnit; /* A synchronous machine may operate as a generator and as such becomes a member of a generating unit. Default: 0 */ - CIMPP::HydroPump* HydroPump; /* The synchronous machine drives the turbine which moves the water from a low elevation to a higher elevation. The direction of machine rotation for pumping may or may not be the same as for generating. Default: 0 */ - CIMPP::Simple_Float ratedPowerFactor; /* Power factor (nameplate data). It is primarily used for short circuit data exchange according to IEC 60909. Default: nullptr */ - CIMPP::ApparentPower ratedS; /* Nameplate apparent power rating for the unit. The attribute shall have a positive value. Default: nullptr */ - CIMPP::Voltage ratedU; /* Rated voltage (nameplate data, Ur in IEC 60909-0). It is primarily used for short circuit data exchange according to IEC 60909. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - RotatingMachine(); - virtual ~RotatingMachine(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* RotatingMachine_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/RotatingMachineDynamics.cpp b/CGMES_2.4.13_18DEC2013/RotatingMachineDynamics.cpp deleted file mode 100644 index ea42560c6..000000000 --- a/CGMES_2.4.13_18DEC2013/RotatingMachineDynamics.cpp +++ /dev/null @@ -1,131 +0,0 @@ -#include -#include "DynamicsFunctionBlock.hpp" -#include "RotatingMachineDynamics.hpp" - -#include "Simple_Float.hpp" -#include "Seconds.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -RotatingMachineDynamics::RotatingMachineDynamics() {}; - -RotatingMachineDynamics::~RotatingMachineDynamics() {}; - - - - - - - - - -bool assign_RotatingMachineDynamics_damping(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(RotatingMachineDynamics* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->damping; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_RotatingMachineDynamics_inertia(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(RotatingMachineDynamics* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->inertia; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_RotatingMachineDynamics_saturationFactor(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(RotatingMachineDynamics* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->saturationFactor; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_RotatingMachineDynamics_saturationFactor120(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(RotatingMachineDynamics* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->saturationFactor120; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_RotatingMachineDynamics_statorLeakageReactance(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(RotatingMachineDynamics* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->statorLeakageReactance; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_RotatingMachineDynamics_statorResistance(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(RotatingMachineDynamics* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->statorResistance; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* RotatingMachineDynamics_factory() { - return new RotatingMachineDynamics; - } -} - -void RotatingMachineDynamics::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:RotatingMachineDynamics"), &RotatingMachineDynamics_factory)); -} - -void RotatingMachineDynamics::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:RotatingMachineDynamics.damping"), &assign_RotatingMachineDynamics_damping)); - assign_map.insert(std::make_pair(std::string("cim:RotatingMachineDynamics.inertia"), &assign_RotatingMachineDynamics_inertia)); - assign_map.insert(std::make_pair(std::string("cim:RotatingMachineDynamics.saturationFactor"), &assign_RotatingMachineDynamics_saturationFactor)); - assign_map.insert(std::make_pair(std::string("cim:RotatingMachineDynamics.saturationFactor120"), &assign_RotatingMachineDynamics_saturationFactor120)); - assign_map.insert(std::make_pair(std::string("cim:RotatingMachineDynamics.statorLeakageReactance"), &assign_RotatingMachineDynamics_statorLeakageReactance)); - assign_map.insert(std::make_pair(std::string("cim:RotatingMachineDynamics.statorResistance"), &assign_RotatingMachineDynamics_statorResistance)); -} - -void RotatingMachineDynamics::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char RotatingMachineDynamics::debugName[] = "RotatingMachineDynamics"; -const char* RotatingMachineDynamics::debugString() -{ - return RotatingMachineDynamics::debugName; -} - -const BaseClassDefiner RotatingMachineDynamics::declare() -{ - return BaseClassDefiner(RotatingMachineDynamics::addConstructToMap, RotatingMachineDynamics::addPrimitiveAssignFnsToMap, RotatingMachineDynamics::addClassAssignFnsToMap, RotatingMachineDynamics::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/RotatingMachineDynamics.hpp b/CGMES_2.4.13_18DEC2013/RotatingMachineDynamics.hpp deleted file mode 100644 index 013a8be45..000000000 --- a/CGMES_2.4.13_18DEC2013/RotatingMachineDynamics.hpp +++ /dev/null @@ -1,47 +0,0 @@ -#ifndef RotatingMachineDynamics_H -#define RotatingMachineDynamics_H - -#include "DynamicsFunctionBlock.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Simple_Float.hpp" -#include "Seconds.hpp" -#include "PU.hpp" - -namespace CIMPP { - - - /* - Abstract parent class for all synchronous and asynchronous machine standard models. - */ - class RotatingMachineDynamics: public DynamicsFunctionBlock - { - - public: - CIMPP::Simple_Float damping; /* Damping torque coefficient (D). A proportionality constant that, when multiplied by the angular velocity of the rotor poles with respect to the magnetic field (frequency), results in the damping torque. This value is often zero when the sources of damping torques (generator damper windings, load damping effects, etc.) are modelled in detail. Typical Value = 0. Default: nullptr */ - CIMPP::Seconds inertia; /* Inertia constant of generator or motor and mechanical load (H) (>0). This is the specification for the stored energy in the rotating mass when operating at rated speed. For a generator, this includes the generator plus all other elements (turbine, exciter) on the same shaft and has units of MW*sec. For a motor, it includes the motor plus its mechanical load. Conventional units are per unit on the generator MVA base, usually expressed as MW*second/MVA or just second. This value is used in the accelerating power reference frame for operator training simulator solutions. Typical Value = 3. Default: nullptr */ - CIMPP::Simple_Float saturationFactor; /* Saturation factor at rated terminal voltage (S1) (> or =0). Not used by simplified model. Defined by defined by S(E1) in the SynchronousMachineSaturationParameters diagram. Typical Value = 0.02. Default: nullptr */ - CIMPP::Simple_Float saturationFactor120; /* Saturation factor at 120% of rated terminal voltage (S12) (> or =S1). Not used by the simplified model, defined by S(E2) in the SynchronousMachineSaturationParameters diagram. Typical Value = 0.12. Default: nullptr */ - CIMPP::PU statorLeakageReactance; /* Stator leakage reactance (Xl) (> or =0). Typical Value = 0.15. Default: nullptr */ - CIMPP::PU statorResistance; /* Stator (armature) resistance (Rs) (> or =0). Typical Value = 0.005. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - RotatingMachineDynamics(); - virtual ~RotatingMachineDynamics(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* RotatingMachineDynamics_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/RotationSpeed.cpp b/CGMES_2.4.13_18DEC2013/RotationSpeed.cpp deleted file mode 100644 index b9797951b..000000000 --- a/CGMES_2.4.13_18DEC2013/RotationSpeed.cpp +++ /dev/null @@ -1,113 +0,0 @@ -#include -#include "BaseClass.hpp" -#include "RotationSpeed.hpp" - -#include "Float.hpp" -#include "UnitSymbol.hpp" -#include "UnitMultiplier.hpp" -#include "UnitSymbol.hpp" -#include "UnitMultiplier.hpp" - -using namespace CIMPP; - -RotationSpeed::RotationSpeed(): value(nullptr) {}; - -RotationSpeed::~RotationSpeed() {}; - - -bool assign_RotationSpeed_value(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(RotationSpeed* element = dynamic_cast(BaseClass_ptr1)) { - element->value = dynamic_cast(BaseClass_ptr2); - if(element->value != nullptr) - return true; - } - return false; -} - - - - - - - -bool assign_RotationSpeed_unit(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(RotationSpeed* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->unit; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_RotationSpeed_multiplier(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(RotationSpeed* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->multiplier; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_RotationSpeed_denominatorUnit(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(RotationSpeed* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->denominatorUnit; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_RotationSpeed_denominatorMultiplier(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(RotationSpeed* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->denominatorMultiplier; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* RotationSpeed_factory() { - return new RotationSpeed; - } -} - -void RotationSpeed::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:RotationSpeed"), &RotationSpeed_factory)); -} - -void RotationSpeed::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:RotationSpeed.unit"), &assign_RotationSpeed_unit)); - assign_map.insert(std::make_pair(std::string("cim:RotationSpeed.multiplier"), &assign_RotationSpeed_multiplier)); - assign_map.insert(std::make_pair(std::string("cim:RotationSpeed.denominatorUnit"), &assign_RotationSpeed_denominatorUnit)); - assign_map.insert(std::make_pair(std::string("cim:RotationSpeed.denominatorMultiplier"), &assign_RotationSpeed_denominatorMultiplier)); -} - -void RotationSpeed::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:RotationSpeed.value"), &assign_RotationSpeed_value)); - } - -const char RotationSpeed::debugName[] = "RotationSpeed"; -const char* RotationSpeed::debugString() -{ - return RotationSpeed::debugName; -} - -const BaseClassDefiner RotationSpeed::declare() -{ - return BaseClassDefiner(RotationSpeed::addConstructToMap, RotationSpeed::addPrimitiveAssignFnsToMap, RotationSpeed::addClassAssignFnsToMap, RotationSpeed::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/RotationSpeed.hpp b/CGMES_2.4.13_18DEC2013/RotationSpeed.hpp deleted file mode 100644 index 6baff3f75..000000000 --- a/CGMES_2.4.13_18DEC2013/RotationSpeed.hpp +++ /dev/null @@ -1,46 +0,0 @@ -#ifndef RotationSpeed_H -#define RotationSpeed_H - -#include "BaseClass.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "UnitSymbol.hpp" -#include "UnitMultiplier.hpp" - -namespace CIMPP { - - -class Float; - /* - Number of revolutions per second. - */ - class RotationSpeed: public BaseClass - { - - public: - CIMPP::Float* value; /* Default: nullptr */ - CIMPP::UnitSymbol unit; /* Default: 0 */ - CIMPP::UnitMultiplier multiplier; /* Default: 0 */ - CIMPP::UnitSymbol denominatorUnit; /* Default: 0 */ - CIMPP::UnitMultiplier denominatorMultiplier; /* Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - RotationSpeed(); - virtual ~RotationSpeed(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* RotationSpeed_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/RotorKind.cpp b/CGMES_2.4.13_18DEC2013/RotorKind.cpp deleted file mode 100644 index 154709fe1..000000000 --- a/CGMES_2.4.13_18DEC2013/RotorKind.cpp +++ /dev/null @@ -1,37 +0,0 @@ -#include -#include -#include "RotorKind.hpp" - -using namespace CIMPP; - -namespace CIMPP { - std::istream& operator>>(std::istream& lop, CIMPP::RotorKind& rop) - { - std::string EnumSymbol; - lop >> EnumSymbol; - - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "RotorKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "roundRotor") - { - rop = RotorKind::roundRotor; - return lop; - } - if(EnumSymbol == "salientPole") - { - rop = RotorKind::salientPole; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; - } -} - diff --git a/CGMES_2.4.13_18DEC2013/RotorKind.hpp b/CGMES_2.4.13_18DEC2013/RotorKind.hpp deleted file mode 100644 index f531247aa..000000000 --- a/CGMES_2.4.13_18DEC2013/RotorKind.hpp +++ /dev/null @@ -1,21 +0,0 @@ -#ifndef RotorKind_H -#define RotorKind_H - -namespace CIMPP { - /* - Type of rotor on physical machine. - */ - enum class RotorKind - { - /** - * Round rotor type of synchronous machine. - */ - roundRotor, - /** - * Salient pole type of synchronous machine. - */ - salientPole, - }; - std::istream& operator>>(std::istream& lop, CIMPP::RotorKind& rop); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/SVCControlMode.cpp b/CGMES_2.4.13_18DEC2013/SVCControlMode.cpp deleted file mode 100644 index 3b920e5f2..000000000 --- a/CGMES_2.4.13_18DEC2013/SVCControlMode.cpp +++ /dev/null @@ -1,37 +0,0 @@ -#include -#include -#include "SVCControlMode.hpp" - -using namespace CIMPP; - -namespace CIMPP { - std::istream& operator>>(std::istream& lop, CIMPP::SVCControlMode& rop) - { - std::string EnumSymbol; - lop >> EnumSymbol; - - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "SVCControlMode") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "reactivePower") - { - rop = SVCControlMode::reactivePower; - return lop; - } - if(EnumSymbol == "voltage") - { - rop = SVCControlMode::voltage; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; - } -} - diff --git a/CGMES_2.4.13_18DEC2013/SVCControlMode.hpp b/CGMES_2.4.13_18DEC2013/SVCControlMode.hpp deleted file mode 100644 index 8884a84af..000000000 --- a/CGMES_2.4.13_18DEC2013/SVCControlMode.hpp +++ /dev/null @@ -1,21 +0,0 @@ -#ifndef SVCControlMode_H -#define SVCControlMode_H - -namespace CIMPP { - /* - Static VAr Compensator control mode. - */ - enum class SVCControlMode - { - /** - * - */ - reactivePower, - /** - * - */ - voltage, - }; - std::istream& operator>>(std::istream& lop, CIMPP::SVCControlMode& rop); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/Season.cpp b/CGMES_2.4.13_18DEC2013/Season.cpp deleted file mode 100644 index 2b3829758..000000000 --- a/CGMES_2.4.13_18DEC2013/Season.cpp +++ /dev/null @@ -1,78 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "Season.hpp" - -#include "MonthDay.hpp" -#include "MonthDay.hpp" -#include "SeasonDayTypeSchedule.hpp" - -using namespace CIMPP; - -Season::Season(): endDate(nullptr), startDate(nullptr) {}; - -Season::~Season() {}; - - -bool assign_Season_endDate(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(Season* element = dynamic_cast(BaseClass_ptr1)) { - element->endDate = dynamic_cast(BaseClass_ptr2); - if(element->endDate != nullptr) - return true; - } - return false; -} - -bool assign_Season_startDate(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(Season* element = dynamic_cast(BaseClass_ptr1)) { - element->startDate = dynamic_cast(BaseClass_ptr2); - if(element->startDate != nullptr) - return true; - } - return false; -} - -bool assign_Season_SeasonDayTypeSchedules(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(Season* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->SeasonDayTypeSchedules.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - - - - -namespace CIMPP { - BaseClass* Season_factory() { - return new Season; - } -} - -void Season::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:Season"), &Season_factory)); -} - -void Season::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void Season::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:Season.endDate"), &assign_Season_endDate)); - assign_map.insert(std::make_pair(std::string("cim:Season.startDate"), &assign_Season_startDate)); - assign_map.insert(std::make_pair(std::string("cim:Season.SeasonDayTypeSchedules"), &assign_Season_SeasonDayTypeSchedules)); -} - -const char Season::debugName[] = "Season"; -const char* Season::debugString() -{ - return Season::debugName; -} - -const BaseClassDefiner Season::declare() -{ - return BaseClassDefiner(Season::addConstructToMap, Season::addPrimitiveAssignFnsToMap, Season::addClassAssignFnsToMap, Season::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/Season.hpp b/CGMES_2.4.13_18DEC2013/Season.hpp deleted file mode 100644 index 3372a6d21..000000000 --- a/CGMES_2.4.13_18DEC2013/Season.hpp +++ /dev/null @@ -1,43 +0,0 @@ -#ifndef Season_H -#define Season_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class MonthDay; -class SeasonDayTypeSchedule; - /* - A specified time period of the year. - */ - class Season: public IdentifiedObject - { - - public: - CIMPP::MonthDay* endDate; /* Date season ends. Default: nullptr */ - CIMPP::MonthDay* startDate; /* Date season starts. Default: nullptr */ - std::list SeasonDayTypeSchedules; /* Season for the Schedule. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - Season(); - virtual ~Season(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* Season_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/SeasonDayTypeSchedule.cpp b/CGMES_2.4.13_18DEC2013/SeasonDayTypeSchedule.cpp deleted file mode 100644 index 73e3f63cd..000000000 --- a/CGMES_2.4.13_18DEC2013/SeasonDayTypeSchedule.cpp +++ /dev/null @@ -1,67 +0,0 @@ -#include -#include "RegularIntervalSchedule.hpp" -#include "SeasonDayTypeSchedule.hpp" - -#include "DayType.hpp" -#include "Season.hpp" - -using namespace CIMPP; - -SeasonDayTypeSchedule::SeasonDayTypeSchedule(): DayType(nullptr), Season(nullptr) {}; - -SeasonDayTypeSchedule::~SeasonDayTypeSchedule() {}; - - -bool assign_DayType_SeasonDayTypeSchedules(BaseClass*, BaseClass*); -bool assign_SeasonDayTypeSchedule_DayType(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(SeasonDayTypeSchedule* element = dynamic_cast(BaseClass_ptr1)) { - element->DayType = dynamic_cast(BaseClass_ptr2); - if(element->DayType != nullptr) - return assign_DayType_SeasonDayTypeSchedules(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_Season_SeasonDayTypeSchedules(BaseClass*, BaseClass*); -bool assign_SeasonDayTypeSchedule_Season(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(SeasonDayTypeSchedule* element = dynamic_cast(BaseClass_ptr1)) { - element->Season = dynamic_cast(BaseClass_ptr2); - if(element->Season != nullptr) - return assign_Season_SeasonDayTypeSchedules(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - - -namespace CIMPP { - BaseClass* SeasonDayTypeSchedule_factory() { - return new SeasonDayTypeSchedule; - } -} - -void SeasonDayTypeSchedule::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:SeasonDayTypeSchedule"), &SeasonDayTypeSchedule_factory)); -} - -void SeasonDayTypeSchedule::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void SeasonDayTypeSchedule::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:SeasonDayTypeSchedule.DayType"), &assign_SeasonDayTypeSchedule_DayType)); - assign_map.insert(std::make_pair(std::string("cim:SeasonDayTypeSchedule.Season"), &assign_SeasonDayTypeSchedule_Season)); -} - -const char SeasonDayTypeSchedule::debugName[] = "SeasonDayTypeSchedule"; -const char* SeasonDayTypeSchedule::debugString() -{ - return SeasonDayTypeSchedule::debugName; -} - -const BaseClassDefiner SeasonDayTypeSchedule::declare() -{ - return BaseClassDefiner(SeasonDayTypeSchedule::addConstructToMap, SeasonDayTypeSchedule::addPrimitiveAssignFnsToMap, SeasonDayTypeSchedule::addClassAssignFnsToMap, SeasonDayTypeSchedule::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/SeasonDayTypeSchedule.hpp b/CGMES_2.4.13_18DEC2013/SeasonDayTypeSchedule.hpp deleted file mode 100644 index 06ac128af..000000000 --- a/CGMES_2.4.13_18DEC2013/SeasonDayTypeSchedule.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef SeasonDayTypeSchedule_H -#define SeasonDayTypeSchedule_H - -#include "RegularIntervalSchedule.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class DayType; -class Season; - /* - A time schedule covering a 24 hour period, with curve data for a specific type of season and day. - */ - class SeasonDayTypeSchedule: public RegularIntervalSchedule - { - - public: - CIMPP::DayType* DayType; /* Schedules that use this DayType. Default: 0 */ - CIMPP::Season* Season; /* Schedules that use this Season. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - SeasonDayTypeSchedule(); - virtual ~SeasonDayTypeSchedule(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* SeasonDayTypeSchedule_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/Seconds.cpp b/CGMES_2.4.13_18DEC2013/Seconds.cpp deleted file mode 100644 index 7d5d3e99e..000000000 --- a/CGMES_2.4.13_18DEC2013/Seconds.cpp +++ /dev/null @@ -1,70 +0,0 @@ -#include "Seconds.hpp" -#include "../src/CIMExceptions.hpp" - -using namespace CIMPP; - -Seconds::Seconds() {} - -Seconds::~Seconds(){} - -Seconds::Seconds(long double value) : value(value), initialized(true) {} - -void Seconds::addConstructToMap(std::unordered_map& factory_map) {} - -void Seconds::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) {} - -void Seconds::addClassAssignFnsToMap(std::unordered_map& assign_map) {} - -const char Seconds::debugName[] = "Seconds"; -const char* Seconds::debugString() { - return Seconds::debugName; -} - - -const BaseClassDefiner Seconds::declare() { - return BaseClassDefiner(Seconds::addConstructToMap, Seconds::addPrimitiveAssignFnsToMap, Seconds::addClassAssignFnsToMap, Seconds::debugName); -} - -namespace CIMPP { - Seconds& Seconds::operator=(long double &rop) { - value = rop; - initialized = true; - return *this; - } - - Seconds& Seconds::operator-=(const Seconds& rhs) { - value -= rhs.value; - return *this; - } - - Seconds& Seconds::operator*=(const Seconds& rhs) { - value *= rhs.value; - return *this; - } - - Seconds& Seconds::operator/=(const Seconds& rhs) { - value /= rhs.value; - return *this; - } - - Seconds& Seconds::operator+=(const Seconds& rhs) { - value += rhs.value; - return *this; - } - - Seconds::operator long double() { - if(!initialized) - { - throw new ReadingUninitializedField(); - } - return value; - } - - std::istream& operator>>(std::istream& lop, Seconds& rop) { - std::string tmp; - lop >> tmp; - rop.value = stold(tmp); - rop.initialized = true; - return lop; - } -} diff --git a/CGMES_2.4.13_18DEC2013/Seconds.hpp b/CGMES_2.4.13_18DEC2013/Seconds.hpp deleted file mode 100644 index 7e1278190..000000000 --- a/CGMES_2.4.13_18DEC2013/Seconds.hpp +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef Seconds_H -#define Seconds_H - -#include -#include - -#include "BaseClass.hpp" - -namespace CIMPP -{ - class Seconds : public BaseClass - { - - public: - Seconds(); - virtual ~Seconds(); - Seconds(long double value); - static const BaseClassDefiner declare(); - Seconds& operator=(long double &rop); - Seconds& operator+=(const Seconds& rhs); - Seconds& operator-=(const Seconds& rhs); - Seconds& operator*=(const Seconds& rhs); - Seconds& operator/=(const Seconds& rhs); - friend std::istream& operator>>(std::istream& lop, Seconds& rop); - operator long double(); - - long double value = 0.0; - bool initialized = false; - - static const char debugName[]; - virtual const char* debugString(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - }; -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/SeriesCompensator.cpp b/CGMES_2.4.13_18DEC2013/SeriesCompensator.cpp deleted file mode 100644 index 5e37050c1..000000000 --- a/CGMES_2.4.13_18DEC2013/SeriesCompensator.cpp +++ /dev/null @@ -1,146 +0,0 @@ -#include -#include "ConductingEquipment.hpp" -#include "SeriesCompensator.hpp" - -#include "Resistance.hpp" -#include "Resistance.hpp" -#include "Reactance.hpp" -#include "Reactance.hpp" -#include "Boolean.hpp" -#include "CurrentFlow.hpp" -#include "Voltage.hpp" - -using namespace CIMPP; - -SeriesCompensator::SeriesCompensator() {}; - -SeriesCompensator::~SeriesCompensator() {}; - - - - - - - - - - -bool assign_SeriesCompensator_r(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SeriesCompensator* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->r; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_SeriesCompensator_r0(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SeriesCompensator* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->r0; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_SeriesCompensator_x(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SeriesCompensator* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->x; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_SeriesCompensator_x0(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SeriesCompensator* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->x0; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_SeriesCompensator_varistorPresent(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SeriesCompensator* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->varistorPresent; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_SeriesCompensator_varistorRatedCurrent(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SeriesCompensator* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->varistorRatedCurrent; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_SeriesCompensator_varistorVoltageThreshold(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SeriesCompensator* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->varistorVoltageThreshold; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* SeriesCompensator_factory() { - return new SeriesCompensator; - } -} - -void SeriesCompensator::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:SeriesCompensator"), &SeriesCompensator_factory)); -} - -void SeriesCompensator::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:SeriesCompensator.r"), &assign_SeriesCompensator_r)); - assign_map.insert(std::make_pair(std::string("cim:SeriesCompensator.r0"), &assign_SeriesCompensator_r0)); - assign_map.insert(std::make_pair(std::string("cim:SeriesCompensator.x"), &assign_SeriesCompensator_x)); - assign_map.insert(std::make_pair(std::string("cim:SeriesCompensator.x0"), &assign_SeriesCompensator_x0)); - assign_map.insert(std::make_pair(std::string("cim:SeriesCompensator.varistorPresent"), &assign_SeriesCompensator_varistorPresent)); - assign_map.insert(std::make_pair(std::string("cim:SeriesCompensator.varistorRatedCurrent"), &assign_SeriesCompensator_varistorRatedCurrent)); - assign_map.insert(std::make_pair(std::string("cim:SeriesCompensator.varistorVoltageThreshold"), &assign_SeriesCompensator_varistorVoltageThreshold)); -} - -void SeriesCompensator::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char SeriesCompensator::debugName[] = "SeriesCompensator"; -const char* SeriesCompensator::debugString() -{ - return SeriesCompensator::debugName; -} - -const BaseClassDefiner SeriesCompensator::declare() -{ - return BaseClassDefiner(SeriesCompensator::addConstructToMap, SeriesCompensator::addPrimitiveAssignFnsToMap, SeriesCompensator::addClassAssignFnsToMap, SeriesCompensator::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/SeriesCompensator.hpp b/CGMES_2.4.13_18DEC2013/SeriesCompensator.hpp deleted file mode 100644 index d6935fdc0..000000000 --- a/CGMES_2.4.13_18DEC2013/SeriesCompensator.hpp +++ /dev/null @@ -1,50 +0,0 @@ -#ifndef SeriesCompensator_H -#define SeriesCompensator_H - -#include "ConductingEquipment.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Resistance.hpp" -#include "Reactance.hpp" -#include "Boolean.hpp" -#include "CurrentFlow.hpp" -#include "Voltage.hpp" - -namespace CIMPP { - - - /* - A Series Compensator is a series capacitor or reactor or an AC transmission line without charging susceptance. It is a two terminal device. - */ - class SeriesCompensator: public ConductingEquipment - { - - public: - CIMPP::Resistance r; /* Positive sequence resistance. Default: nullptr */ - CIMPP::Resistance r0; /* Zero sequence resistance. Default: nullptr */ - CIMPP::Reactance x; /* Positive sequence reactance. Default: nullptr */ - CIMPP::Reactance x0; /* Zero sequence reactance. Default: nullptr */ - CIMPP::Boolean varistorPresent; /* Describe if a metal oxide varistor (mov) for over voltage protection is configured at the series compensator. Default: false */ - CIMPP::CurrentFlow varistorRatedCurrent; /* The maximum current the varistor is designed to handle at specified duration. Default: nullptr */ - CIMPP::Voltage varistorVoltageThreshold; /* The dc voltage at which the varistor start conducting. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - SeriesCompensator(); - virtual ~SeriesCompensator(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* SeriesCompensator_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/SetPoint.cpp b/CGMES_2.4.13_18DEC2013/SetPoint.cpp deleted file mode 100644 index 7ff0d8d24..000000000 --- a/CGMES_2.4.13_18DEC2013/SetPoint.cpp +++ /dev/null @@ -1,71 +0,0 @@ -#include -#include "AnalogControl.hpp" -#include "SetPoint.hpp" - -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" - -using namespace CIMPP; - -SetPoint::SetPoint() {}; - -SetPoint::~SetPoint() {}; - - - - - -bool assign_SetPoint_normalValue(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SetPoint* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->normalValue; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_SetPoint_value(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SetPoint* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* SetPoint_factory() { - return new SetPoint; - } -} - -void SetPoint::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:SetPoint"), &SetPoint_factory)); -} - -void SetPoint::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:SetPoint.normalValue"), &assign_SetPoint_normalValue)); - assign_map.insert(std::make_pair(std::string("cim:SetPoint.value"), &assign_SetPoint_value)); -} - -void SetPoint::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char SetPoint::debugName[] = "SetPoint"; -const char* SetPoint::debugString() -{ - return SetPoint::debugName; -} - -const BaseClassDefiner SetPoint::declare() -{ - return BaseClassDefiner(SetPoint::addConstructToMap, SetPoint::addPrimitiveAssignFnsToMap, SetPoint::addClassAssignFnsToMap, SetPoint::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/SetPoint.hpp b/CGMES_2.4.13_18DEC2013/SetPoint.hpp deleted file mode 100644 index a0b6d6322..000000000 --- a/CGMES_2.4.13_18DEC2013/SetPoint.hpp +++ /dev/null @@ -1,41 +0,0 @@ -#ifndef SetPoint_H -#define SetPoint_H - -#include "AnalogControl.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Simple_Float.hpp" - -namespace CIMPP { - - - /* - An analog control that issue a set point value. - */ - class SetPoint: public AnalogControl - { - - public: - CIMPP::Simple_Float normalValue; /* Normal value for Control.value e.g. used for percentage scaling. Default: nullptr */ - CIMPP::Simple_Float value; /* The value representing the actuator output. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - SetPoint(); - virtual ~SetPoint(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* SetPoint_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ShortCircuitRotorKind.cpp b/CGMES_2.4.13_18DEC2013/ShortCircuitRotorKind.cpp deleted file mode 100644 index dbd0a619b..000000000 --- a/CGMES_2.4.13_18DEC2013/ShortCircuitRotorKind.cpp +++ /dev/null @@ -1,47 +0,0 @@ -#include -#include -#include "ShortCircuitRotorKind.hpp" - -using namespace CIMPP; - -namespace CIMPP { - std::istream& operator>>(std::istream& lop, CIMPP::ShortCircuitRotorKind& rop) - { - std::string EnumSymbol; - lop >> EnumSymbol; - - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "ShortCircuitRotorKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "salientPole1") - { - rop = ShortCircuitRotorKind::salientPole1; - return lop; - } - if(EnumSymbol == "salientPole2") - { - rop = ShortCircuitRotorKind::salientPole2; - return lop; - } - if(EnumSymbol == "turboSeries1") - { - rop = ShortCircuitRotorKind::turboSeries1; - return lop; - } - if(EnumSymbol == "turboSeries2") - { - rop = ShortCircuitRotorKind::turboSeries2; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; - } -} - diff --git a/CGMES_2.4.13_18DEC2013/ShortCircuitRotorKind.hpp b/CGMES_2.4.13_18DEC2013/ShortCircuitRotorKind.hpp deleted file mode 100644 index 0da968334..000000000 --- a/CGMES_2.4.13_18DEC2013/ShortCircuitRotorKind.hpp +++ /dev/null @@ -1,29 +0,0 @@ -#ifndef ShortCircuitRotorKind_H -#define ShortCircuitRotorKind_H - -namespace CIMPP { - /* - Type of rotor, used by short circuit applications. - */ - enum class ShortCircuitRotorKind - { - /** - * Salient pole 1 in the IEC 60909 - */ - salientPole1, - /** - * Salient pole 2 in IEC 60909 - */ - salientPole2, - /** - * Turbo Series 1 in the IEC 60909 - */ - turboSeries1, - /** - * Turbo series 2 in IEC 60909 - */ - turboSeries2, - }; - std::istream& operator>>(std::istream& lop, CIMPP::ShortCircuitRotorKind& rop); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ShuntCompensator.cpp b/CGMES_2.4.13_18DEC2013/ShuntCompensator.cpp deleted file mode 100644 index de343ce75..000000000 --- a/CGMES_2.4.13_18DEC2013/ShuntCompensator.cpp +++ /dev/null @@ -1,182 +0,0 @@ -#include -#include "RegulatingCondEq.hpp" -#include "ShuntCompensator.hpp" - -#include "Simple_Float.hpp" -#include "Seconds.hpp" -#include "Boolean.hpp" -#include "Integer.hpp" -#include "Voltage.hpp" -#include "Integer.hpp" -#include "Integer.hpp" -#include "DateTime.hpp" -#include "VoltagePerReactivePower.hpp" -#include "SvShuntCompensatorSections.hpp" - -using namespace CIMPP; - -ShuntCompensator::ShuntCompensator(): switchOnDate(nullptr), voltageSensitivity(nullptr), SvShuntCompensatorSections(nullptr) {}; - -ShuntCompensator::~ShuntCompensator() {}; - - - - - - - - - -bool assign_ShuntCompensator_switchOnDate(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ShuntCompensator* element = dynamic_cast(BaseClass_ptr1)) { - element->switchOnDate = dynamic_cast(BaseClass_ptr2); - if(element->switchOnDate != nullptr) - return true; - } - return false; -} - -bool assign_ShuntCompensator_voltageSensitivity(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ShuntCompensator* element = dynamic_cast(BaseClass_ptr1)) { - element->voltageSensitivity = dynamic_cast(BaseClass_ptr2); - if(element->voltageSensitivity != nullptr) - return true; - } - return false; -} - -bool assign_ShuntCompensator_SvShuntCompensatorSections(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ShuntCompensator* element = dynamic_cast(BaseClass_ptr1)) { - element->SvShuntCompensatorSections = dynamic_cast(BaseClass_ptr2); - if(element->SvShuntCompensatorSections != nullptr) - return true; - } - return false; -} - - -bool assign_ShuntCompensator_sections(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ShuntCompensator* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->sections; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ShuntCompensator_aVRDelay(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ShuntCompensator* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->aVRDelay; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ShuntCompensator_grounded(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ShuntCompensator* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->grounded; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ShuntCompensator_maximumSections(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ShuntCompensator* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->maximumSections; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ShuntCompensator_nomU(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ShuntCompensator* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->nomU; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ShuntCompensator_normalSections(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ShuntCompensator* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->normalSections; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_ShuntCompensator_switchOnCount(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ShuntCompensator* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->switchOnCount; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - - - -namespace CIMPP { - BaseClass* ShuntCompensator_factory() { - return new ShuntCompensator; - } -} - -void ShuntCompensator::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ShuntCompensator"), &ShuntCompensator_factory)); -} - -void ShuntCompensator::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ShuntCompensator.sections"), &assign_ShuntCompensator_sections)); - assign_map.insert(std::make_pair(std::string("cim:ShuntCompensator.aVRDelay"), &assign_ShuntCompensator_aVRDelay)); - assign_map.insert(std::make_pair(std::string("cim:ShuntCompensator.grounded"), &assign_ShuntCompensator_grounded)); - assign_map.insert(std::make_pair(std::string("cim:ShuntCompensator.maximumSections"), &assign_ShuntCompensator_maximumSections)); - assign_map.insert(std::make_pair(std::string("cim:ShuntCompensator.nomU"), &assign_ShuntCompensator_nomU)); - assign_map.insert(std::make_pair(std::string("cim:ShuntCompensator.normalSections"), &assign_ShuntCompensator_normalSections)); - assign_map.insert(std::make_pair(std::string("cim:ShuntCompensator.switchOnCount"), &assign_ShuntCompensator_switchOnCount)); - } - -void ShuntCompensator::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ShuntCompensator.switchOnDate"), &assign_ShuntCompensator_switchOnDate)); - assign_map.insert(std::make_pair(std::string("cim:ShuntCompensator.voltageSensitivity"), &assign_ShuntCompensator_voltageSensitivity)); - assign_map.insert(std::make_pair(std::string("cim:ShuntCompensator.SvShuntCompensatorSections"), &assign_ShuntCompensator_SvShuntCompensatorSections)); -} - -const char ShuntCompensator::debugName[] = "ShuntCompensator"; -const char* ShuntCompensator::debugString() -{ - return ShuntCompensator::debugName; -} - -const BaseClassDefiner ShuntCompensator::declare() -{ - return BaseClassDefiner(ShuntCompensator::addConstructToMap, ShuntCompensator::addPrimitiveAssignFnsToMap, ShuntCompensator::addClassAssignFnsToMap, ShuntCompensator::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ShuntCompensator.hpp b/CGMES_2.4.13_18DEC2013/ShuntCompensator.hpp deleted file mode 100644 index 0e22d0c1d..000000000 --- a/CGMES_2.4.13_18DEC2013/ShuntCompensator.hpp +++ /dev/null @@ -1,56 +0,0 @@ -#ifndef ShuntCompensator_H -#define ShuntCompensator_H - -#include "RegulatingCondEq.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Simple_Float.hpp" -#include "Seconds.hpp" -#include "Boolean.hpp" -#include "Integer.hpp" -#include "Voltage.hpp" - -namespace CIMPP { - - -class DateTime; -class VoltagePerReactivePower; -class SvShuntCompensatorSections; - /* - A shunt capacitor or reactor or switchable bank of shunt capacitors or reactors. A section of a shunt compensator is an individual capacitor or reactor. A negative value for reactivePerSection indicates that the compensator is a reactor. ShuntCompensator is a single terminal device. Ground is implied. - */ - class ShuntCompensator: public RegulatingCondEq - { - - public: - CIMPP::Simple_Float sections; /* Shunt compensator sections in use. Starting value for steady state solution. Non integer values are allowed to support continuous variables. The reasons for continuous value are to support study cases where no discrete shunt compensators has yet been designed, a solutions where a narrow voltage band force the sections to oscillate or accommodate for a continuous solution as input. Default: nullptr */ - CIMPP::Seconds aVRDelay; /* Time delay required for the device to be connected or disconnected by automatic voltage regulation (AVR). Default: nullptr */ - CIMPP::Boolean grounded; /* Used for Yn and Zn connections. True if the neutral is solidly grounded. Default: false */ - CIMPP::Integer maximumSections; /* The maximum number of sections that may be switched in. Default: 0 */ - CIMPP::Voltage nomU; /* The voltage at which the nominal reactive power may be calculated. This should normally be within 10% of the voltage at which the capacitor is connected to the network. Default: nullptr */ - CIMPP::Integer normalSections; /* The normal number of sections switched in. Default: 0 */ - CIMPP::Integer switchOnCount; /* The switch on count since the capacitor count was last reset or initialized. Default: 0 */ - CIMPP::DateTime* switchOnDate; /* The date and time when the capacitor bank was last switched on. Default: '' */ - CIMPP::VoltagePerReactivePower* voltageSensitivity; /* Voltage sensitivity required for the device to regulate the bus voltage, in voltage/reactive power. Default: nullptr */ - CIMPP::SvShuntCompensatorSections* SvShuntCompensatorSections; /* The state for the number of shunt compensator sections in service. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ShuntCompensator(); - virtual ~ShuntCompensator(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ShuntCompensator_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/Simple_Float.cpp b/CGMES_2.4.13_18DEC2013/Simple_Float.cpp deleted file mode 100644 index 58f419031..000000000 --- a/CGMES_2.4.13_18DEC2013/Simple_Float.cpp +++ /dev/null @@ -1,70 +0,0 @@ -#include "Simple_Float.hpp" -#include "../src/CIMExceptions.hpp" - -using namespace CIMPP; - -Simple_Float::Simple_Float() {} - -Simple_Float::~Simple_Float(){} - -Simple_Float::Simple_Float(long double value) : value(value), initialized(true) {} - -void Simple_Float::addConstructToMap(std::unordered_map& factory_map) {} - -void Simple_Float::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) {} - -void Simple_Float::addClassAssignFnsToMap(std::unordered_map& assign_map) {} - -const char Simple_Float::debugName[] = "Simple_Float"; -const char* Simple_Float::debugString() { - return Simple_Float::debugName; -} - - -const BaseClassDefiner Simple_Float::declare() { - return BaseClassDefiner(Simple_Float::addConstructToMap, Simple_Float::addPrimitiveAssignFnsToMap, Simple_Float::addClassAssignFnsToMap, Simple_Float::debugName); -} - -namespace CIMPP { - Simple_Float& Simple_Float::operator=(long double &rop) { - value = rop; - initialized = true; - return *this; - } - - Simple_Float& Simple_Float::operator-=(const Simple_Float& rhs) { - value -= rhs.value; - return *this; - } - - Simple_Float& Simple_Float::operator*=(const Simple_Float& rhs) { - value *= rhs.value; - return *this; - } - - Simple_Float& Simple_Float::operator/=(const Simple_Float& rhs) { - value /= rhs.value; - return *this; - } - - Simple_Float& Simple_Float::operator+=(const Simple_Float& rhs) { - value += rhs.value; - return *this; - } - - Simple_Float::operator long double() { - if(!initialized) - { - throw new ReadingUninitializedField(); - } - return value; - } - - std::istream& operator>>(std::istream& lop, Simple_Float& rop) { - std::string tmp; - lop >> tmp; - rop.value = stold(tmp); - rop.initialized = true; - return lop; - } -} diff --git a/CGMES_2.4.13_18DEC2013/Simple_Float.hpp b/CGMES_2.4.13_18DEC2013/Simple_Float.hpp deleted file mode 100644 index c56e4bb97..000000000 --- a/CGMES_2.4.13_18DEC2013/Simple_Float.hpp +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef Simple_Float_H -#define Simple_Float_H - -#include -#include - -#include "BaseClass.hpp" - -namespace CIMPP -{ - class Simple_Float : public BaseClass - { - - public: - Simple_Float(); - virtual ~Simple_Float(); - Simple_Float(long double value); - static const BaseClassDefiner declare(); - Simple_Float& operator=(long double &rop); - Simple_Float& operator+=(const Simple_Float& rhs); - Simple_Float& operator-=(const Simple_Float& rhs); - Simple_Float& operator*=(const Simple_Float& rhs); - Simple_Float& operator/=(const Simple_Float& rhs); - friend std::istream& operator>>(std::istream& lop, Simple_Float& rop); - operator long double(); - - long double value = 0.0; - bool initialized = false; - - static const char debugName[]; - virtual const char* debugString(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - }; -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/SolarGeneratingUnit.cpp b/CGMES_2.4.13_18DEC2013/SolarGeneratingUnit.cpp deleted file mode 100644 index 2ef7948ba..000000000 --- a/CGMES_2.4.13_18DEC2013/SolarGeneratingUnit.cpp +++ /dev/null @@ -1,41 +0,0 @@ -#include -#include "GeneratingUnit.hpp" -#include "SolarGeneratingUnit.hpp" - - -using namespace CIMPP; - -SolarGeneratingUnit::SolarGeneratingUnit() {}; - -SolarGeneratingUnit::~SolarGeneratingUnit() {}; - - - -namespace CIMPP { - BaseClass* SolarGeneratingUnit_factory() { - return new SolarGeneratingUnit; - } -} - -void SolarGeneratingUnit::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:SolarGeneratingUnit"), &SolarGeneratingUnit_factory)); -} - -void SolarGeneratingUnit::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { -} - -void SolarGeneratingUnit::addClassAssignFnsToMap(std::unordered_map& assign_map) { -} - -const char SolarGeneratingUnit::debugName[] = "SolarGeneratingUnit"; -const char* SolarGeneratingUnit::debugString() -{ - return SolarGeneratingUnit::debugName; -} - -const BaseClassDefiner SolarGeneratingUnit::declare() -{ - return BaseClassDefiner(SolarGeneratingUnit::addConstructToMap, SolarGeneratingUnit::addPrimitiveAssignFnsToMap, SolarGeneratingUnit::addClassAssignFnsToMap, SolarGeneratingUnit::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/SolarGeneratingUnit.hpp b/CGMES_2.4.13_18DEC2013/SolarGeneratingUnit.hpp deleted file mode 100644 index 497cbea6a..000000000 --- a/CGMES_2.4.13_18DEC2013/SolarGeneratingUnit.hpp +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef SolarGeneratingUnit_H -#define SolarGeneratingUnit_H - -#include "GeneratingUnit.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - - /* - A solar thermal generating unit. - */ - class SolarGeneratingUnit: public GeneratingUnit - { - - public: - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - SolarGeneratingUnit(); - virtual ~SolarGeneratingUnit(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* SolarGeneratingUnit_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/Source.cpp b/CGMES_2.4.13_18DEC2013/Source.cpp deleted file mode 100644 index 1a37656e9..000000000 --- a/CGMES_2.4.13_18DEC2013/Source.cpp +++ /dev/null @@ -1,42 +0,0 @@ -#include -#include -#include "Source.hpp" - -using namespace CIMPP; - -namespace CIMPP { - std::istream& operator>>(std::istream& lop, CIMPP::Source& rop) - { - std::string EnumSymbol; - lop >> EnumSymbol; - - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "Source") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "PROCESS") - { - rop = Source::PROCESS; - return lop; - } - if(EnumSymbol == "DEFAULTED") - { - rop = Source::DEFAULTED; - return lop; - } - if(EnumSymbol == "SUBSTITUTED") - { - rop = Source::SUBSTITUTED; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; - } -} - diff --git a/CGMES_2.4.13_18DEC2013/Source.hpp b/CGMES_2.4.13_18DEC2013/Source.hpp deleted file mode 100644 index bff597490..000000000 --- a/CGMES_2.4.13_18DEC2013/Source.hpp +++ /dev/null @@ -1,25 +0,0 @@ -#ifndef Source_H -#define Source_H - -namespace CIMPP { - /* - Source gives information related to the origin of a value. - */ - enum class Source - { - /** - * The value is provided by input from the process I/O or being calculated from some function. - */ - PROCESS, - /** - * The value contains a default value. - */ - DEFAULTED, - /** - * The value is provided by input of an operator or by an automatic source. - */ - SUBSTITUTED, - }; - std::istream& operator>>(std::istream& lop, CIMPP::Source& rop); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/StateVariablesVersion.cpp b/CGMES_2.4.13_18DEC2013/StateVariablesVersion.cpp deleted file mode 100644 index ac589b5ae..000000000 --- a/CGMES_2.4.13_18DEC2013/StateVariablesVersion.cpp +++ /dev/null @@ -1,179 +0,0 @@ -#include -#include "BaseClass.hpp" -#include "StateVariablesVersion.hpp" - -#include "String.hpp" -#include "String.hpp" -#include "Date.hpp" -#include "String.hpp" -#include "String.hpp" -#include "String.hpp" -#include "String.hpp" -#include "String.hpp" -#include "String.hpp" -#include "String.hpp" - -using namespace CIMPP; - -StateVariablesVersion::StateVariablesVersion(): date(nullptr) {}; - -StateVariablesVersion::~StateVariablesVersion() {}; - - - - -bool assign_StateVariablesVersion_date(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(StateVariablesVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->date = dynamic_cast(BaseClass_ptr2); - if(element->date != nullptr) - return true; - } - return false; -} - - - - - - - - - -bool assign_StateVariablesVersion_baseUML(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(StateVariablesVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->baseUML = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_StateVariablesVersion_baseURI(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(StateVariablesVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->baseURI = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - - -bool assign_StateVariablesVersion_differenceModelURI(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(StateVariablesVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->differenceModelURI = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_StateVariablesVersion_entsoeUML(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(StateVariablesVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->entsoeUML = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_StateVariablesVersion_entsoeURI(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(StateVariablesVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->entsoeURI = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_StateVariablesVersion_modelDescriptionURI(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(StateVariablesVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->modelDescriptionURI = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_StateVariablesVersion_namespaceRDF(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(StateVariablesVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->namespaceRDF = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_StateVariablesVersion_namespaceUML(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(StateVariablesVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->namespaceUML = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_StateVariablesVersion_shortName(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(StateVariablesVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->shortName = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -namespace CIMPP { - BaseClass* StateVariablesVersion_factory() { - return new StateVariablesVersion; - } -} - -void StateVariablesVersion::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:StateVariablesVersion"), &StateVariablesVersion_factory)); -} - -void StateVariablesVersion::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:StateVariablesVersion.baseUML"), &assign_StateVariablesVersion_baseUML)); - assign_map.insert(std::make_pair(std::string("cim:StateVariablesVersion.baseURI"), &assign_StateVariablesVersion_baseURI)); - assign_map.insert(std::make_pair(std::string("cim:StateVariablesVersion.differenceModelURI"), &assign_StateVariablesVersion_differenceModelURI)); - assign_map.insert(std::make_pair(std::string("cim:StateVariablesVersion.entsoeUML"), &assign_StateVariablesVersion_entsoeUML)); - assign_map.insert(std::make_pair(std::string("cim:StateVariablesVersion.entsoeURI"), &assign_StateVariablesVersion_entsoeURI)); - assign_map.insert(std::make_pair(std::string("cim:StateVariablesVersion.modelDescriptionURI"), &assign_StateVariablesVersion_modelDescriptionURI)); - assign_map.insert(std::make_pair(std::string("cim:StateVariablesVersion.namespaceRDF"), &assign_StateVariablesVersion_namespaceRDF)); - assign_map.insert(std::make_pair(std::string("cim:StateVariablesVersion.namespaceUML"), &assign_StateVariablesVersion_namespaceUML)); - assign_map.insert(std::make_pair(std::string("cim:StateVariablesVersion.shortName"), &assign_StateVariablesVersion_shortName)); -} - -void StateVariablesVersion::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:StateVariablesVersion.date"), &assign_StateVariablesVersion_date)); - } - -const char StateVariablesVersion::debugName[] = "StateVariablesVersion"; -const char* StateVariablesVersion::debugString() -{ - return StateVariablesVersion::debugName; -} - -const BaseClassDefiner StateVariablesVersion::declare() -{ - return BaseClassDefiner(StateVariablesVersion::addConstructToMap, StateVariablesVersion::addPrimitiveAssignFnsToMap, StateVariablesVersion::addClassAssignFnsToMap, StateVariablesVersion::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/StateVariablesVersion.hpp b/CGMES_2.4.13_18DEC2013/StateVariablesVersion.hpp deleted file mode 100644 index 604650d9a..000000000 --- a/CGMES_2.4.13_18DEC2013/StateVariablesVersion.hpp +++ /dev/null @@ -1,50 +0,0 @@ -#ifndef StateVariablesVersion_H -#define StateVariablesVersion_H - -#include "BaseClass.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "String.hpp" - -namespace CIMPP { - - -class Date; - /* - Version details. - */ - class StateVariablesVersion: public BaseClass - { - - public: - CIMPP::String baseUML; /* Base UML provided by CIM model manager. Default: '' */ - CIMPP::String baseURI; /* Profile URI used in the Model Exchange header and defined in IEC standards. It uniquely identifies the Profile and its version. It is given for information only and to identify the closest IEC profile to which this CGMES profile is based on. Default: '' */ - CIMPP::Date* date; /* Profile creation date Form is YYYY-MM-DD for example for January 5, 2009 it is 2009-01-05. Default: '' */ - CIMPP::String differenceModelURI; /* Difference model URI defined by IEC 61970-552. Default: '' */ - CIMPP::String entsoeUML; /* UML provided by ENTSO-E. Default: '' */ - CIMPP::String entsoeURI; /* Profile URI defined by ENTSO-E and used in the Model Exchange header. It uniquely identifies the Profile and its version. The last two elements in the URI (http://entsoe.eu/CIM/StateVariables/yy/zzz) indicate major and minor versions where: - yy - indicates a major version; - zzz - indicates a minor version. Default: '' */ - CIMPP::String modelDescriptionURI; /* Model Description URI defined by IEC 61970-552. Default: '' */ - CIMPP::String namespaceRDF; /* RDF namespace. Default: '' */ - CIMPP::String namespaceUML; /* CIM UML namespace. Default: '' */ - CIMPP::String shortName; /* The short name of the profile used in profile documentation. Default: '' */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - StateVariablesVersion(); - virtual ~StateVariablesVersion(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* StateVariablesVersion_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/StaticLoadModelKind.cpp b/CGMES_2.4.13_18DEC2013/StaticLoadModelKind.cpp deleted file mode 100644 index c845ea521..000000000 --- a/CGMES_2.4.13_18DEC2013/StaticLoadModelKind.cpp +++ /dev/null @@ -1,47 +0,0 @@ -#include -#include -#include "StaticLoadModelKind.hpp" - -using namespace CIMPP; - -namespace CIMPP { - std::istream& operator>>(std::istream& lop, CIMPP::StaticLoadModelKind& rop) - { - std::string EnumSymbol; - lop >> EnumSymbol; - - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "StaticLoadModelKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "exponential") - { - rop = StaticLoadModelKind::exponential; - return lop; - } - if(EnumSymbol == "zIP1") - { - rop = StaticLoadModelKind::zIP1; - return lop; - } - if(EnumSymbol == "zIP2") - { - rop = StaticLoadModelKind::zIP2; - return lop; - } - if(EnumSymbol == "constantZ") - { - rop = StaticLoadModelKind::constantZ; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; - } -} - diff --git a/CGMES_2.4.13_18DEC2013/StaticLoadModelKind.hpp b/CGMES_2.4.13_18DEC2013/StaticLoadModelKind.hpp deleted file mode 100644 index ecb0dd9b5..000000000 --- a/CGMES_2.4.13_18DEC2013/StaticLoadModelKind.hpp +++ /dev/null @@ -1,29 +0,0 @@ -#ifndef StaticLoadModelKind_H -#define StaticLoadModelKind_H - -namespace CIMPP { - /* - Type of static load model. - */ - enum class StaticLoadModelKind - { - /** - * Exponential P and Q equations are used and the following attributes are required: kp1, kp2, kp3, kpf, ep1, ep2, ep3 kq1, kq2, kq3, kqf, eq1, eq2, eq3. - */ - exponential, - /** - * ZIP1 P and Q equations are used and the following attributes are required: kp1, kp2, kp3, kpf kq1, kq2, kq3, kqf. - */ - zIP1, - /** - * This model separates the frequency-dependent load (primarily motors) from other load. ZIP2 P and Q equations are used and the following attributes are required: kp1, kp2, kp3, kq4, kpf kq1, kq2, kq3, kq4, kqf. - */ - zIP2, - /** - * The load is represented as a constant impedance. ConstantZ P and Q equations are used and no attributes are required. - */ - constantZ, - }; - std::istream& operator>>(std::istream& lop, CIMPP::StaticLoadModelKind& rop); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/StaticVarCompensator.cpp b/CGMES_2.4.13_18DEC2013/StaticVarCompensator.cpp deleted file mode 100644 index e506bb241..000000000 --- a/CGMES_2.4.13_18DEC2013/StaticVarCompensator.cpp +++ /dev/null @@ -1,128 +0,0 @@ -#include -#include "RegulatingCondEq.hpp" -#include "StaticVarCompensator.hpp" - -#include "ReactivePower.hpp" -#include "Reactance.hpp" -#include "Reactance.hpp" -#include "VoltagePerReactivePower.hpp" -#include "SVCControlMode.hpp" -#include "Voltage.hpp" - -using namespace CIMPP; - -StaticVarCompensator::StaticVarCompensator(): slope(nullptr) {}; - -StaticVarCompensator::~StaticVarCompensator() {}; - - - - - -bool assign_StaticVarCompensator_slope(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(StaticVarCompensator* element = dynamic_cast(BaseClass_ptr1)) { - element->slope = dynamic_cast(BaseClass_ptr2); - if(element->slope != nullptr) - return true; - } - return false; -} - - - - -bool assign_StaticVarCompensator_q(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(StaticVarCompensator* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->q; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_StaticVarCompensator_capacitiveRating(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(StaticVarCompensator* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->capacitiveRating; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_StaticVarCompensator_inductiveRating(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(StaticVarCompensator* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->inductiveRating; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -bool assign_StaticVarCompensator_sVCControlMode(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(StaticVarCompensator* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->sVCControlMode; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_StaticVarCompensator_voltageSetPoint(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(StaticVarCompensator* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->voltageSetPoint; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* StaticVarCompensator_factory() { - return new StaticVarCompensator; - } -} - -void StaticVarCompensator::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:StaticVarCompensator"), &StaticVarCompensator_factory)); -} - -void StaticVarCompensator::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:StaticVarCompensator.q"), &assign_StaticVarCompensator_q)); - assign_map.insert(std::make_pair(std::string("cim:StaticVarCompensator.capacitiveRating"), &assign_StaticVarCompensator_capacitiveRating)); - assign_map.insert(std::make_pair(std::string("cim:StaticVarCompensator.inductiveRating"), &assign_StaticVarCompensator_inductiveRating)); - assign_map.insert(std::make_pair(std::string("cim:StaticVarCompensator.sVCControlMode"), &assign_StaticVarCompensator_sVCControlMode)); - assign_map.insert(std::make_pair(std::string("cim:StaticVarCompensator.voltageSetPoint"), &assign_StaticVarCompensator_voltageSetPoint)); -} - -void StaticVarCompensator::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:StaticVarCompensator.slope"), &assign_StaticVarCompensator_slope)); - } - -const char StaticVarCompensator::debugName[] = "StaticVarCompensator"; -const char* StaticVarCompensator::debugString() -{ - return StaticVarCompensator::debugName; -} - -const BaseClassDefiner StaticVarCompensator::declare() -{ - return BaseClassDefiner(StaticVarCompensator::addConstructToMap, StaticVarCompensator::addPrimitiveAssignFnsToMap, StaticVarCompensator::addClassAssignFnsToMap, StaticVarCompensator::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/StaticVarCompensator.hpp b/CGMES_2.4.13_18DEC2013/StaticVarCompensator.hpp deleted file mode 100644 index 8fd764de0..000000000 --- a/CGMES_2.4.13_18DEC2013/StaticVarCompensator.hpp +++ /dev/null @@ -1,49 +0,0 @@ -#ifndef StaticVarCompensator_H -#define StaticVarCompensator_H - -#include "RegulatingCondEq.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "ReactivePower.hpp" -#include "Reactance.hpp" -#include "SVCControlMode.hpp" -#include "Voltage.hpp" - -namespace CIMPP { - - -class VoltagePerReactivePower; - /* - A facility for providing variable and controllable shunt reactive power. The SVC typically consists of a stepdown transformer, filter, thyristor-controlled reactor, and thyristor-switched capacitor arms. The SVC may operate in fixed MVar output mode or in voltage control mode. When in voltage control mode, the output of the SVC will be proportional to the deviation of voltage at the controlled bus from the voltage setpoint. The SVC characteristic slope defines the proportion. If the voltage at the controlled bus is equal to the voltage setpoint, the SVC MVar output is zero. - */ - class StaticVarCompensator: public RegulatingCondEq - { - - public: - CIMPP::ReactivePower q; /* Reactive power injection. Load sign convention is used, i.e. positive sign means flow out from a node. Starting value for a steady state solution. Default: nullptr */ - CIMPP::Reactance capacitiveRating; /* Maximum available capacitive reactance. Default: nullptr */ - CIMPP::Reactance inductiveRating; /* Maximum available inductive reactance. Default: nullptr */ - CIMPP::VoltagePerReactivePower* slope; /* The characteristics slope of an SVC defines how the reactive power output changes in proportion to the difference between the regulated bus voltage and the voltage setpoint. Default: nullptr */ - CIMPP::SVCControlMode sVCControlMode; /* SVC control mode. Default: 0 */ - CIMPP::Voltage voltageSetPoint; /* The reactive power output of the SVC is proportional to the difference between the voltage at the regulated bus and the voltage setpoint. When the regulated bus voltage is equal to the voltage setpoint, the reactive power output is zero. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - StaticVarCompensator(); - virtual ~StaticVarCompensator(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* StaticVarCompensator_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/StationSupply.cpp b/CGMES_2.4.13_18DEC2013/StationSupply.cpp deleted file mode 100644 index fe0641442..000000000 --- a/CGMES_2.4.13_18DEC2013/StationSupply.cpp +++ /dev/null @@ -1,41 +0,0 @@ -#include -#include "EnergyConsumer.hpp" -#include "StationSupply.hpp" - - -using namespace CIMPP; - -StationSupply::StationSupply() {}; - -StationSupply::~StationSupply() {}; - - - -namespace CIMPP { - BaseClass* StationSupply_factory() { - return new StationSupply; - } -} - -void StationSupply::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:StationSupply"), &StationSupply_factory)); -} - -void StationSupply::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { -} - -void StationSupply::addClassAssignFnsToMap(std::unordered_map& assign_map) { -} - -const char StationSupply::debugName[] = "StationSupply"; -const char* StationSupply::debugString() -{ - return StationSupply::debugName; -} - -const BaseClassDefiner StationSupply::declare() -{ - return BaseClassDefiner(StationSupply::addConstructToMap, StationSupply::addPrimitiveAssignFnsToMap, StationSupply::addClassAssignFnsToMap, StationSupply::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/StationSupply.hpp b/CGMES_2.4.13_18DEC2013/StationSupply.hpp deleted file mode 100644 index a974df9de..000000000 --- a/CGMES_2.4.13_18DEC2013/StationSupply.hpp +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef StationSupply_H -#define StationSupply_H - -#include "EnergyConsumer.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - - /* - Station supply with load derived from the station output. - */ - class StationSupply: public EnergyConsumer - { - - public: - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - StationSupply(); - virtual ~StationSupply(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* StationSupply_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/SteadyStateHypothesisVersion.cpp b/CGMES_2.4.13_18DEC2013/SteadyStateHypothesisVersion.cpp deleted file mode 100644 index 2c3ac7407..000000000 --- a/CGMES_2.4.13_18DEC2013/SteadyStateHypothesisVersion.cpp +++ /dev/null @@ -1,179 +0,0 @@ -#include -#include "BaseClass.hpp" -#include "SteadyStateHypothesisVersion.hpp" - -#include "String.hpp" -#include "String.hpp" -#include "Date.hpp" -#include "String.hpp" -#include "String.hpp" -#include "String.hpp" -#include "String.hpp" -#include "String.hpp" -#include "String.hpp" -#include "String.hpp" - -using namespace CIMPP; - -SteadyStateHypothesisVersion::SteadyStateHypothesisVersion(): date(nullptr) {}; - -SteadyStateHypothesisVersion::~SteadyStateHypothesisVersion() {}; - - - - -bool assign_SteadyStateHypothesisVersion_date(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(SteadyStateHypothesisVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->date = dynamic_cast(BaseClass_ptr2); - if(element->date != nullptr) - return true; - } - return false; -} - - - - - - - - - -bool assign_SteadyStateHypothesisVersion_baseUML(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SteadyStateHypothesisVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->baseUML = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_SteadyStateHypothesisVersion_baseURI(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SteadyStateHypothesisVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->baseURI = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - - -bool assign_SteadyStateHypothesisVersion_differenceModelURI(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SteadyStateHypothesisVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->differenceModelURI = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_SteadyStateHypothesisVersion_entsoeUML(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SteadyStateHypothesisVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->entsoeUML = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_SteadyStateHypothesisVersion_entsoeURI(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SteadyStateHypothesisVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->entsoeURI = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_SteadyStateHypothesisVersion_modelDescriptionURI(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SteadyStateHypothesisVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->modelDescriptionURI = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_SteadyStateHypothesisVersion_namespaceRDF(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SteadyStateHypothesisVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->namespaceRDF = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_SteadyStateHypothesisVersion_namespaceUML(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SteadyStateHypothesisVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->namespaceUML = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_SteadyStateHypothesisVersion_shortName(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SteadyStateHypothesisVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->shortName = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -namespace CIMPP { - BaseClass* SteadyStateHypothesisVersion_factory() { - return new SteadyStateHypothesisVersion; - } -} - -void SteadyStateHypothesisVersion::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:SteadyStateHypothesisVersion"), &SteadyStateHypothesisVersion_factory)); -} - -void SteadyStateHypothesisVersion::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:SteadyStateHypothesisVersion.baseUML"), &assign_SteadyStateHypothesisVersion_baseUML)); - assign_map.insert(std::make_pair(std::string("cim:SteadyStateHypothesisVersion.baseURI"), &assign_SteadyStateHypothesisVersion_baseURI)); - assign_map.insert(std::make_pair(std::string("cim:SteadyStateHypothesisVersion.differenceModelURI"), &assign_SteadyStateHypothesisVersion_differenceModelURI)); - assign_map.insert(std::make_pair(std::string("cim:SteadyStateHypothesisVersion.entsoeUML"), &assign_SteadyStateHypothesisVersion_entsoeUML)); - assign_map.insert(std::make_pair(std::string("cim:SteadyStateHypothesisVersion.entsoeURI"), &assign_SteadyStateHypothesisVersion_entsoeURI)); - assign_map.insert(std::make_pair(std::string("cim:SteadyStateHypothesisVersion.modelDescriptionURI"), &assign_SteadyStateHypothesisVersion_modelDescriptionURI)); - assign_map.insert(std::make_pair(std::string("cim:SteadyStateHypothesisVersion.namespaceRDF"), &assign_SteadyStateHypothesisVersion_namespaceRDF)); - assign_map.insert(std::make_pair(std::string("cim:SteadyStateHypothesisVersion.namespaceUML"), &assign_SteadyStateHypothesisVersion_namespaceUML)); - assign_map.insert(std::make_pair(std::string("cim:SteadyStateHypothesisVersion.shortName"), &assign_SteadyStateHypothesisVersion_shortName)); -} - -void SteadyStateHypothesisVersion::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:SteadyStateHypothesisVersion.date"), &assign_SteadyStateHypothesisVersion_date)); - } - -const char SteadyStateHypothesisVersion::debugName[] = "SteadyStateHypothesisVersion"; -const char* SteadyStateHypothesisVersion::debugString() -{ - return SteadyStateHypothesisVersion::debugName; -} - -const BaseClassDefiner SteadyStateHypothesisVersion::declare() -{ - return BaseClassDefiner(SteadyStateHypothesisVersion::addConstructToMap, SteadyStateHypothesisVersion::addPrimitiveAssignFnsToMap, SteadyStateHypothesisVersion::addClassAssignFnsToMap, SteadyStateHypothesisVersion::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/SteadyStateHypothesisVersion.hpp b/CGMES_2.4.13_18DEC2013/SteadyStateHypothesisVersion.hpp deleted file mode 100644 index 79fde578d..000000000 --- a/CGMES_2.4.13_18DEC2013/SteadyStateHypothesisVersion.hpp +++ /dev/null @@ -1,50 +0,0 @@ -#ifndef SteadyStateHypothesisVersion_H -#define SteadyStateHypothesisVersion_H - -#include "BaseClass.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "String.hpp" - -namespace CIMPP { - - -class Date; - /* - Version details. - */ - class SteadyStateHypothesisVersion: public BaseClass - { - - public: - CIMPP::String baseUML; /* Base UML provided by CIM model manager. Default: '' */ - CIMPP::String baseURI; /* Profile URI used in the Model Exchange header and defined in IEC standards. It uniquely identifies the Profile and its version. It is given for information only and to identify the closest IEC profile to which this CGMES profile is based on. Default: '' */ - CIMPP::Date* date; /* Profile creation date Form is YYYY-MM-DD for example for January 5, 2009 it is 2009-01-05. Default: '' */ - CIMPP::String differenceModelURI; /* Difference model URI defined by IEC 61970-552. Default: '' */ - CIMPP::String entsoeUML; /* UML provided by ENTSO-E. Default: '' */ - CIMPP::String entsoeURI; /* Profile URI defined by ENTSO-E and used in the Model Exchange header. It uniquely identifies the Profile and its version. The last two elements in the URI (http://entsoe.eu/CIM/SteadyStateHypothesis/yy/zzz) indicate major and minor versions where: - yy - indicates a major version; - zzz - indicates a minor version. Default: '' */ - CIMPP::String modelDescriptionURI; /* Model Description URI defined by IEC 61970-552. Default: '' */ - CIMPP::String namespaceRDF; /* RDF namespace. Default: '' */ - CIMPP::String namespaceUML; /* CIM UML namespace. Default: '' */ - CIMPP::String shortName; /* The short name of the profile used in profile documentation. Default: '' */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - SteadyStateHypothesisVersion(); - virtual ~SteadyStateHypothesisVersion(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* SteadyStateHypothesisVersion_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/String.hpp b/CGMES_2.4.13_18DEC2013/String.hpp deleted file mode 100644 index 9ed603352..000000000 --- a/CGMES_2.4.13_18DEC2013/String.hpp +++ /dev/null @@ -1,14 +0,0 @@ -#ifndef STRING_H -#define STRING_H - -#include "BaseClass.hpp" -#include "string" - -/* -A string consisting of a sequence of characters. The character encoding is UTF-8. The string length is unspecified and unlimited. -*/ -namespace CIMPP { - - typedef std::string String; -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/StringMeasurement.cpp b/CGMES_2.4.13_18DEC2013/StringMeasurement.cpp deleted file mode 100644 index 84ffd2b8d..000000000 --- a/CGMES_2.4.13_18DEC2013/StringMeasurement.cpp +++ /dev/null @@ -1,54 +0,0 @@ -#include -#include "Measurement.hpp" -#include "StringMeasurement.hpp" - -#include "StringMeasurementValue.hpp" - -using namespace CIMPP; - -StringMeasurement::StringMeasurement() {}; - -StringMeasurement::~StringMeasurement() {}; - - -bool assign_StringMeasurement_StringMeasurementValues(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(StringMeasurement* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->StringMeasurementValues.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - - -namespace CIMPP { - BaseClass* StringMeasurement_factory() { - return new StringMeasurement; - } -} - -void StringMeasurement::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:StringMeasurement"), &StringMeasurement_factory)); -} - -void StringMeasurement::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void StringMeasurement::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:StringMeasurement.StringMeasurementValues"), &assign_StringMeasurement_StringMeasurementValues)); -} - -const char StringMeasurement::debugName[] = "StringMeasurement"; -const char* StringMeasurement::debugString() -{ - return StringMeasurement::debugName; -} - -const BaseClassDefiner StringMeasurement::declare() -{ - return BaseClassDefiner(StringMeasurement::addConstructToMap, StringMeasurement::addPrimitiveAssignFnsToMap, StringMeasurement::addClassAssignFnsToMap, StringMeasurement::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/StringMeasurement.hpp b/CGMES_2.4.13_18DEC2013/StringMeasurement.hpp deleted file mode 100644 index c95a15cf6..000000000 --- a/CGMES_2.4.13_18DEC2013/StringMeasurement.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef StringMeasurement_H -#define StringMeasurement_H - -#include "Measurement.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class StringMeasurementValue; - /* - StringMeasurement represents a measurement with values of type string. - */ - class StringMeasurement: public Measurement - { - - public: - std::list StringMeasurementValues; /* The values connected to this measurement. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - StringMeasurement(); - virtual ~StringMeasurement(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* StringMeasurement_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/StringMeasurementValue.cpp b/CGMES_2.4.13_18DEC2013/StringMeasurementValue.cpp deleted file mode 100644 index e4a525151..000000000 --- a/CGMES_2.4.13_18DEC2013/StringMeasurementValue.cpp +++ /dev/null @@ -1,68 +0,0 @@ -#include -#include "MeasurementValue.hpp" -#include "StringMeasurementValue.hpp" - -#include "StringMeasurement.hpp" -#include "String.hpp" - -using namespace CIMPP; - -StringMeasurementValue::StringMeasurementValue(): StringMeasurement(nullptr) {}; - -StringMeasurementValue::~StringMeasurementValue() {}; - - -bool assign_StringMeasurement_StringMeasurementValues(BaseClass*, BaseClass*); -bool assign_StringMeasurementValue_StringMeasurement(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(StringMeasurementValue* element = dynamic_cast(BaseClass_ptr1)) { - element->StringMeasurement = dynamic_cast(BaseClass_ptr2); - if(element->StringMeasurement != nullptr) - return assign_StringMeasurement_StringMeasurementValues(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - - -bool assign_StringMeasurementValue_value(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(StringMeasurementValue* element = dynamic_cast(BaseClass_ptr1)) { - element->value = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -namespace CIMPP { - BaseClass* StringMeasurementValue_factory() { - return new StringMeasurementValue; - } -} - -void StringMeasurementValue::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:StringMeasurementValue"), &StringMeasurementValue_factory)); -} - -void StringMeasurementValue::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:StringMeasurementValue.value"), &assign_StringMeasurementValue_value)); -} - -void StringMeasurementValue::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:StringMeasurementValue.StringMeasurement"), &assign_StringMeasurementValue_StringMeasurement)); - } - -const char StringMeasurementValue::debugName[] = "StringMeasurementValue"; -const char* StringMeasurementValue::debugString() -{ - return StringMeasurementValue::debugName; -} - -const BaseClassDefiner StringMeasurementValue::declare() -{ - return BaseClassDefiner(StringMeasurementValue::addConstructToMap, StringMeasurementValue::addPrimitiveAssignFnsToMap, StringMeasurementValue::addClassAssignFnsToMap, StringMeasurementValue::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/StringMeasurementValue.hpp b/CGMES_2.4.13_18DEC2013/StringMeasurementValue.hpp deleted file mode 100644 index 9d1533ae8..000000000 --- a/CGMES_2.4.13_18DEC2013/StringMeasurementValue.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef StringMeasurementValue_H -#define StringMeasurementValue_H - -#include "MeasurementValue.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "String.hpp" - -namespace CIMPP { - - -class StringMeasurement; - /* - StringMeasurementValue represents a measurement value of type string. - */ - class StringMeasurementValue: public MeasurementValue - { - - public: - CIMPP::StringMeasurement* StringMeasurement; /* Measurement to which this value is connected. Default: 0 */ - CIMPP::String value; /* The value to supervise. Default: '' */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - StringMeasurementValue(); - virtual ~StringMeasurementValue(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* StringMeasurementValue_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/SubGeographicalRegion.cpp b/CGMES_2.4.13_18DEC2013/SubGeographicalRegion.cpp deleted file mode 100644 index ad0c77e1e..000000000 --- a/CGMES_2.4.13_18DEC2013/SubGeographicalRegion.cpp +++ /dev/null @@ -1,93 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "SubGeographicalRegion.hpp" - -#include "GeographicalRegion.hpp" -#include "Line.hpp" -#include "DCLine.hpp" -#include "Substation.hpp" - -using namespace CIMPP; - -SubGeographicalRegion::SubGeographicalRegion(): Region(nullptr) {}; - -SubGeographicalRegion::~SubGeographicalRegion() {}; - - -bool assign_GeographicalRegion_Regions(BaseClass*, BaseClass*); -bool assign_SubGeographicalRegion_Region(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(SubGeographicalRegion* element = dynamic_cast(BaseClass_ptr1)) { - element->Region = dynamic_cast(BaseClass_ptr2); - if(element->Region != nullptr) - return assign_GeographicalRegion_Regions(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_SubGeographicalRegion_Lines(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(SubGeographicalRegion* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->Lines.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_SubGeographicalRegion_DCLines(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(SubGeographicalRegion* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->DCLines.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_SubGeographicalRegion_Substations(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(SubGeographicalRegion* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->Substations.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - - - - - -namespace CIMPP { - BaseClass* SubGeographicalRegion_factory() { - return new SubGeographicalRegion; - } -} - -void SubGeographicalRegion::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:SubGeographicalRegion"), &SubGeographicalRegion_factory)); -} - -void SubGeographicalRegion::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void SubGeographicalRegion::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:SubGeographicalRegion.Region"), &assign_SubGeographicalRegion_Region)); - assign_map.insert(std::make_pair(std::string("cim:SubGeographicalRegion.Lines"), &assign_SubGeographicalRegion_Lines)); - assign_map.insert(std::make_pair(std::string("cim:SubGeographicalRegion.DCLines"), &assign_SubGeographicalRegion_DCLines)); - assign_map.insert(std::make_pair(std::string("cim:SubGeographicalRegion.Substations"), &assign_SubGeographicalRegion_Substations)); -} - -const char SubGeographicalRegion::debugName[] = "SubGeographicalRegion"; -const char* SubGeographicalRegion::debugString() -{ - return SubGeographicalRegion::debugName; -} - -const BaseClassDefiner SubGeographicalRegion::declare() -{ - return BaseClassDefiner(SubGeographicalRegion::addConstructToMap, SubGeographicalRegion::addPrimitiveAssignFnsToMap, SubGeographicalRegion::addClassAssignFnsToMap, SubGeographicalRegion::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/SubGeographicalRegion.hpp b/CGMES_2.4.13_18DEC2013/SubGeographicalRegion.hpp deleted file mode 100644 index 126f481ee..000000000 --- a/CGMES_2.4.13_18DEC2013/SubGeographicalRegion.hpp +++ /dev/null @@ -1,46 +0,0 @@ -#ifndef SubGeographicalRegion_H -#define SubGeographicalRegion_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class GeographicalRegion; -class Line; -class DCLine; -class Substation; - /* - A subset of a geographical region of a power system network model. - */ - class SubGeographicalRegion: public IdentifiedObject - { - - public: - CIMPP::GeographicalRegion* Region; /* The geographical region to which this sub-geographical region is within. Default: 0 */ - std::list Lines; /* The sub-geographical region of the line. Default: 0 */ - std::list DCLines; /* Default: 0 */ - std::list Substations; /* The substations in this sub-geographical region. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - SubGeographicalRegion(); - virtual ~SubGeographicalRegion(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* SubGeographicalRegion_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/SubLoadArea.cpp b/CGMES_2.4.13_18DEC2013/SubLoadArea.cpp deleted file mode 100644 index caa12cdf0..000000000 --- a/CGMES_2.4.13_18DEC2013/SubLoadArea.cpp +++ /dev/null @@ -1,67 +0,0 @@ -#include -#include "EnergyArea.hpp" -#include "SubLoadArea.hpp" - -#include "LoadArea.hpp" -#include "LoadGroup.hpp" - -using namespace CIMPP; - -SubLoadArea::SubLoadArea(): LoadArea(nullptr) {}; - -SubLoadArea::~SubLoadArea() {}; - - -bool assign_LoadArea_SubLoadAreas(BaseClass*, BaseClass*); -bool assign_SubLoadArea_LoadArea(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(SubLoadArea* element = dynamic_cast(BaseClass_ptr1)) { - element->LoadArea = dynamic_cast(BaseClass_ptr2); - if(element->LoadArea != nullptr) - return assign_LoadArea_SubLoadAreas(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_SubLoadArea_LoadGroups(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(SubLoadArea* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->LoadGroups.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - - - -namespace CIMPP { - BaseClass* SubLoadArea_factory() { - return new SubLoadArea; - } -} - -void SubLoadArea::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:SubLoadArea"), &SubLoadArea_factory)); -} - -void SubLoadArea::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void SubLoadArea::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:SubLoadArea.LoadArea"), &assign_SubLoadArea_LoadArea)); - assign_map.insert(std::make_pair(std::string("cim:SubLoadArea.LoadGroups"), &assign_SubLoadArea_LoadGroups)); -} - -const char SubLoadArea::debugName[] = "SubLoadArea"; -const char* SubLoadArea::debugString() -{ - return SubLoadArea::debugName; -} - -const BaseClassDefiner SubLoadArea::declare() -{ - return BaseClassDefiner(SubLoadArea::addConstructToMap, SubLoadArea::addPrimitiveAssignFnsToMap, SubLoadArea::addClassAssignFnsToMap, SubLoadArea::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/SubLoadArea.hpp b/CGMES_2.4.13_18DEC2013/SubLoadArea.hpp deleted file mode 100644 index 23effe803..000000000 --- a/CGMES_2.4.13_18DEC2013/SubLoadArea.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef SubLoadArea_H -#define SubLoadArea_H - -#include "EnergyArea.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class LoadArea; -class LoadGroup; - /* - The class is the second level in a hierarchical structure for grouping of loads for the purpose of load flow load scaling. - */ - class SubLoadArea: public EnergyArea - { - - public: - CIMPP::LoadArea* LoadArea; /* The LoadArea where the SubLoadArea belongs. Default: 0 */ - std::list LoadGroups; /* The Loadgroups in the SubLoadArea. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - SubLoadArea(); - virtual ~SubLoadArea(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* SubLoadArea_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/Substation.cpp b/CGMES_2.4.13_18DEC2013/Substation.cpp deleted file mode 100644 index 42d61f23a..000000000 --- a/CGMES_2.4.13_18DEC2013/Substation.cpp +++ /dev/null @@ -1,80 +0,0 @@ -#include -#include "EquipmentContainer.hpp" -#include "Substation.hpp" - -#include "DCConverterUnit.hpp" -#include "SubGeographicalRegion.hpp" -#include "VoltageLevel.hpp" - -using namespace CIMPP; - -Substation::Substation(): Region(nullptr) {}; - -Substation::~Substation() {}; - - -bool assign_Substation_DCConverterUnit(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(Substation* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->DCConverterUnit.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_SubGeographicalRegion_Substations(BaseClass*, BaseClass*); -bool assign_Substation_Region(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(Substation* element = dynamic_cast(BaseClass_ptr1)) { - element->Region = dynamic_cast(BaseClass_ptr2); - if(element->Region != nullptr) - return assign_SubGeographicalRegion_Substations(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_Substation_VoltageLevels(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(Substation* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->VoltageLevels.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - - - - -namespace CIMPP { - BaseClass* Substation_factory() { - return new Substation; - } -} - -void Substation::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:Substation"), &Substation_factory)); -} - -void Substation::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void Substation::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:Substation.DCConverterUnit"), &assign_Substation_DCConverterUnit)); - assign_map.insert(std::make_pair(std::string("cim:Substation.Region"), &assign_Substation_Region)); - assign_map.insert(std::make_pair(std::string("cim:Substation.VoltageLevels"), &assign_Substation_VoltageLevels)); -} - -const char Substation::debugName[] = "Substation"; -const char* Substation::debugString() -{ - return Substation::debugName; -} - -const BaseClassDefiner Substation::declare() -{ - return BaseClassDefiner(Substation::addConstructToMap, Substation::addPrimitiveAssignFnsToMap, Substation::addClassAssignFnsToMap, Substation::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/Substation.hpp b/CGMES_2.4.13_18DEC2013/Substation.hpp deleted file mode 100644 index 9309a7e14..000000000 --- a/CGMES_2.4.13_18DEC2013/Substation.hpp +++ /dev/null @@ -1,44 +0,0 @@ -#ifndef Substation_H -#define Substation_H - -#include "EquipmentContainer.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class DCConverterUnit; -class SubGeographicalRegion; -class VoltageLevel; - /* - A collection of equipment for purposes other than generation or utilization, through which electric energy in bulk is passed for the purposes of switching or modifying its characteristics. - */ - class Substation: public EquipmentContainer - { - - public: - std::list DCConverterUnit; /* Default: 0 */ - CIMPP::SubGeographicalRegion* Region; /* The SubGeographicalRegion containing the substation. Default: 0 */ - std::list VoltageLevels; /* The voltage levels within this substation. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - Substation(); - virtual ~Substation(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* Substation_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/Susceptance.cpp b/CGMES_2.4.13_18DEC2013/Susceptance.cpp deleted file mode 100644 index 965ca66b4..000000000 --- a/CGMES_2.4.13_18DEC2013/Susceptance.cpp +++ /dev/null @@ -1,70 +0,0 @@ -#include "Susceptance.hpp" -#include "../src/CIMExceptions.hpp" - -using namespace CIMPP; - -Susceptance::Susceptance() {} - -Susceptance::~Susceptance(){} - -Susceptance::Susceptance(long double value) : value(value), initialized(true) {} - -void Susceptance::addConstructToMap(std::unordered_map& factory_map) {} - -void Susceptance::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) {} - -void Susceptance::addClassAssignFnsToMap(std::unordered_map& assign_map) {} - -const char Susceptance::debugName[] = "Susceptance"; -const char* Susceptance::debugString() { - return Susceptance::debugName; -} - - -const BaseClassDefiner Susceptance::declare() { - return BaseClassDefiner(Susceptance::addConstructToMap, Susceptance::addPrimitiveAssignFnsToMap, Susceptance::addClassAssignFnsToMap, Susceptance::debugName); -} - -namespace CIMPP { - Susceptance& Susceptance::operator=(long double &rop) { - value = rop; - initialized = true; - return *this; - } - - Susceptance& Susceptance::operator-=(const Susceptance& rhs) { - value -= rhs.value; - return *this; - } - - Susceptance& Susceptance::operator*=(const Susceptance& rhs) { - value *= rhs.value; - return *this; - } - - Susceptance& Susceptance::operator/=(const Susceptance& rhs) { - value /= rhs.value; - return *this; - } - - Susceptance& Susceptance::operator+=(const Susceptance& rhs) { - value += rhs.value; - return *this; - } - - Susceptance::operator long double() { - if(!initialized) - { - throw new ReadingUninitializedField(); - } - return value; - } - - std::istream& operator>>(std::istream& lop, Susceptance& rop) { - std::string tmp; - lop >> tmp; - rop.value = stold(tmp); - rop.initialized = true; - return lop; - } -} diff --git a/CGMES_2.4.13_18DEC2013/Susceptance.hpp b/CGMES_2.4.13_18DEC2013/Susceptance.hpp deleted file mode 100644 index f4c64d673..000000000 --- a/CGMES_2.4.13_18DEC2013/Susceptance.hpp +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef Susceptance_H -#define Susceptance_H - -#include -#include - -#include "BaseClass.hpp" - -namespace CIMPP -{ - class Susceptance : public BaseClass - { - - public: - Susceptance(); - virtual ~Susceptance(); - Susceptance(long double value); - static const BaseClassDefiner declare(); - Susceptance& operator=(long double &rop); - Susceptance& operator+=(const Susceptance& rhs); - Susceptance& operator-=(const Susceptance& rhs); - Susceptance& operator*=(const Susceptance& rhs); - Susceptance& operator/=(const Susceptance& rhs); - friend std::istream& operator>>(std::istream& lop, Susceptance& rop); - operator long double(); - - long double value = 0.0; - bool initialized = false; - - static const char debugName[]; - virtual const char* debugString(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - }; -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/SvInjection.cpp b/CGMES_2.4.13_18DEC2013/SvInjection.cpp deleted file mode 100644 index fb6fffeb8..000000000 --- a/CGMES_2.4.13_18DEC2013/SvInjection.cpp +++ /dev/null @@ -1,84 +0,0 @@ -#include -#include "BaseClass.hpp" -#include "SvInjection.hpp" - -#include "ActivePower.hpp" -#include "ReactivePower.hpp" -#include "TopologicalNode.hpp" - -using namespace CIMPP; - -SvInjection::SvInjection(): TopologicalNode(nullptr) {}; - -SvInjection::~SvInjection() {}; - - - - -bool assign_TopologicalNode_SvInjection(BaseClass*, BaseClass*); -bool assign_SvInjection_TopologicalNode(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(SvInjection* element = dynamic_cast(BaseClass_ptr1)) { - element->TopologicalNode = dynamic_cast(BaseClass_ptr2); - if(element->TopologicalNode != nullptr) - return assign_TopologicalNode_SvInjection(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - -bool assign_SvInjection_pInjection(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SvInjection* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pInjection; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_SvInjection_qInjection(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SvInjection* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->qInjection; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -namespace CIMPP { - BaseClass* SvInjection_factory() { - return new SvInjection; - } -} - -void SvInjection::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:SvInjection"), &SvInjection_factory)); -} - -void SvInjection::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:SvInjection.pInjection"), &assign_SvInjection_pInjection)); - assign_map.insert(std::make_pair(std::string("cim:SvInjection.qInjection"), &assign_SvInjection_qInjection)); - } - -void SvInjection::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:SvInjection.TopologicalNode"), &assign_SvInjection_TopologicalNode)); -} - -const char SvInjection::debugName[] = "SvInjection"; -const char* SvInjection::debugString() -{ - return SvInjection::debugName; -} - -const BaseClassDefiner SvInjection::declare() -{ - return BaseClassDefiner(SvInjection::addConstructToMap, SvInjection::addPrimitiveAssignFnsToMap, SvInjection::addClassAssignFnsToMap, SvInjection::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/SvInjection.hpp b/CGMES_2.4.13_18DEC2013/SvInjection.hpp deleted file mode 100644 index a272c3211..000000000 --- a/CGMES_2.4.13_18DEC2013/SvInjection.hpp +++ /dev/null @@ -1,44 +0,0 @@ -#ifndef SvInjection_H -#define SvInjection_H - -#include "BaseClass.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "ActivePower.hpp" -#include "ReactivePower.hpp" - -namespace CIMPP { - - -class TopologicalNode; - /* - The SvInjection is reporting the calculated bus injection minus the sum of the terminal flows. The terminal flow is positive out from the bus (load sign convention) and bus injection has positive flow into the bus. SvInjection may have the remainder after state estimation or slack after power flow calculation. - */ - class SvInjection: public BaseClass - { - - public: - CIMPP::ActivePower pInjection; /* The active power injected into the bus in addition to injections from equipment terminals. Positive sign means injection into the TopologicalNode (bus). Default: nullptr */ - CIMPP::ReactivePower qInjection; /* The reactive power injected into the bus in addition to injections from equipment terminals. Positive sign means injection into the TopologicalNode (bus). Default: nullptr */ - CIMPP::TopologicalNode* TopologicalNode; /* The injection flows state variables associated with the topological node. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - SvInjection(); - virtual ~SvInjection(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* SvInjection_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/SvPowerFlow.cpp b/CGMES_2.4.13_18DEC2013/SvPowerFlow.cpp deleted file mode 100644 index c71367f35..000000000 --- a/CGMES_2.4.13_18DEC2013/SvPowerFlow.cpp +++ /dev/null @@ -1,84 +0,0 @@ -#include -#include "BaseClass.hpp" -#include "SvPowerFlow.hpp" - -#include "Terminal.hpp" -#include "ActivePower.hpp" -#include "ReactivePower.hpp" - -using namespace CIMPP; - -SvPowerFlow::SvPowerFlow(): Terminal(nullptr) {}; - -SvPowerFlow::~SvPowerFlow() {}; - - -bool assign_Terminal_SvPowerFlow(BaseClass*, BaseClass*); -bool assign_SvPowerFlow_Terminal(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(SvPowerFlow* element = dynamic_cast(BaseClass_ptr1)) { - element->Terminal = dynamic_cast(BaseClass_ptr2); - if(element->Terminal != nullptr) - return assign_Terminal_SvPowerFlow(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - - - -bool assign_SvPowerFlow_p(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SvPowerFlow* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->p; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_SvPowerFlow_q(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SvPowerFlow* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->q; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* SvPowerFlow_factory() { - return new SvPowerFlow; - } -} - -void SvPowerFlow::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:SvPowerFlow"), &SvPowerFlow_factory)); -} - -void SvPowerFlow::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:SvPowerFlow.p"), &assign_SvPowerFlow_p)); - assign_map.insert(std::make_pair(std::string("cim:SvPowerFlow.q"), &assign_SvPowerFlow_q)); -} - -void SvPowerFlow::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:SvPowerFlow.Terminal"), &assign_SvPowerFlow_Terminal)); - } - -const char SvPowerFlow::debugName[] = "SvPowerFlow"; -const char* SvPowerFlow::debugString() -{ - return SvPowerFlow::debugName; -} - -const BaseClassDefiner SvPowerFlow::declare() -{ - return BaseClassDefiner(SvPowerFlow::addConstructToMap, SvPowerFlow::addPrimitiveAssignFnsToMap, SvPowerFlow::addClassAssignFnsToMap, SvPowerFlow::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/SvPowerFlow.hpp b/CGMES_2.4.13_18DEC2013/SvPowerFlow.hpp deleted file mode 100644 index 5ef4b3afd..000000000 --- a/CGMES_2.4.13_18DEC2013/SvPowerFlow.hpp +++ /dev/null @@ -1,44 +0,0 @@ -#ifndef SvPowerFlow_H -#define SvPowerFlow_H - -#include "BaseClass.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "ActivePower.hpp" -#include "ReactivePower.hpp" - -namespace CIMPP { - - -class Terminal; - /* - State variable for power flow. Load convention is used for flow direction. This means flow out from the TopologicalNode into the equipment is positive. - */ - class SvPowerFlow: public BaseClass - { - - public: - CIMPP::Terminal* Terminal; /* The terminal associated with the power flow state variable. Default: 0 */ - CIMPP::ActivePower p; /* The active power flow. Load sign convention is used, i.e. positive sign means flow out from a TopologicalNode (bus) into the conducting equipment. Default: nullptr */ - CIMPP::ReactivePower q; /* The reactive power flow. Load sign convention is used, i.e. positive sign means flow out from a TopologicalNode (bus) into the conducting equipment. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - SvPowerFlow(); - virtual ~SvPowerFlow(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* SvPowerFlow_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/SvShuntCompensatorSections.cpp b/CGMES_2.4.13_18DEC2013/SvShuntCompensatorSections.cpp deleted file mode 100644 index 934385944..000000000 --- a/CGMES_2.4.13_18DEC2013/SvShuntCompensatorSections.cpp +++ /dev/null @@ -1,69 +0,0 @@ -#include -#include "BaseClass.hpp" -#include "SvShuntCompensatorSections.hpp" - -#include "Simple_Float.hpp" -#include "ShuntCompensator.hpp" - -using namespace CIMPP; - -SvShuntCompensatorSections::SvShuntCompensatorSections(): ShuntCompensator(nullptr) {}; - -SvShuntCompensatorSections::~SvShuntCompensatorSections() {}; - - - -bool assign_ShuntCompensator_SvShuntCompensatorSections(BaseClass*, BaseClass*); -bool assign_SvShuntCompensatorSections_ShuntCompensator(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(SvShuntCompensatorSections* element = dynamic_cast(BaseClass_ptr1)) { - element->ShuntCompensator = dynamic_cast(BaseClass_ptr2); - if(element->ShuntCompensator != nullptr) - return assign_ShuntCompensator_SvShuntCompensatorSections(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - -bool assign_SvShuntCompensatorSections_sections(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SvShuntCompensatorSections* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->sections; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -namespace CIMPP { - BaseClass* SvShuntCompensatorSections_factory() { - return new SvShuntCompensatorSections; - } -} - -void SvShuntCompensatorSections::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:SvShuntCompensatorSections"), &SvShuntCompensatorSections_factory)); -} - -void SvShuntCompensatorSections::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:SvShuntCompensatorSections.sections"), &assign_SvShuntCompensatorSections_sections)); - } - -void SvShuntCompensatorSections::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:SvShuntCompensatorSections.ShuntCompensator"), &assign_SvShuntCompensatorSections_ShuntCompensator)); -} - -const char SvShuntCompensatorSections::debugName[] = "SvShuntCompensatorSections"; -const char* SvShuntCompensatorSections::debugString() -{ - return SvShuntCompensatorSections::debugName; -} - -const BaseClassDefiner SvShuntCompensatorSections::declare() -{ - return BaseClassDefiner(SvShuntCompensatorSections::addConstructToMap, SvShuntCompensatorSections::addPrimitiveAssignFnsToMap, SvShuntCompensatorSections::addClassAssignFnsToMap, SvShuntCompensatorSections::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/SvShuntCompensatorSections.hpp b/CGMES_2.4.13_18DEC2013/SvShuntCompensatorSections.hpp deleted file mode 100644 index bffb9e15d..000000000 --- a/CGMES_2.4.13_18DEC2013/SvShuntCompensatorSections.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef SvShuntCompensatorSections_H -#define SvShuntCompensatorSections_H - -#include "BaseClass.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Simple_Float.hpp" - -namespace CIMPP { - - -class ShuntCompensator; - /* - State variable for the number of sections in service for a shunt compensator. - */ - class SvShuntCompensatorSections: public BaseClass - { - - public: - CIMPP::Simple_Float sections; /* The number of sections in service as a continous variable. To get integer value scale with ShuntCompensator.bPerSection. Default: nullptr */ - CIMPP::ShuntCompensator* ShuntCompensator; /* The shunt compensator for which the state applies. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - SvShuntCompensatorSections(); - virtual ~SvShuntCompensatorSections(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* SvShuntCompensatorSections_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/SvStatus.cpp b/CGMES_2.4.13_18DEC2013/SvStatus.cpp deleted file mode 100644 index 3d89ab4cb..000000000 --- a/CGMES_2.4.13_18DEC2013/SvStatus.cpp +++ /dev/null @@ -1,69 +0,0 @@ -#include -#include "BaseClass.hpp" -#include "SvStatus.hpp" - -#include "ConductingEquipment.hpp" -#include "Boolean.hpp" - -using namespace CIMPP; - -SvStatus::SvStatus(): ConductingEquipment(nullptr) {}; - -SvStatus::~SvStatus() {}; - - -bool assign_ConductingEquipment_SvStatus(BaseClass*, BaseClass*); -bool assign_SvStatus_ConductingEquipment(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(SvStatus* element = dynamic_cast(BaseClass_ptr1)) { - element->ConductingEquipment = dynamic_cast(BaseClass_ptr2); - if(element->ConductingEquipment != nullptr) - return assign_ConductingEquipment_SvStatus(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - - -bool assign_SvStatus_inService(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SvStatus* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->inService; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* SvStatus_factory() { - return new SvStatus; - } -} - -void SvStatus::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:SvStatus"), &SvStatus_factory)); -} - -void SvStatus::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:SvStatus.inService"), &assign_SvStatus_inService)); -} - -void SvStatus::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:SvStatus.ConductingEquipment"), &assign_SvStatus_ConductingEquipment)); - } - -const char SvStatus::debugName[] = "SvStatus"; -const char* SvStatus::debugString() -{ - return SvStatus::debugName; -} - -const BaseClassDefiner SvStatus::declare() -{ - return BaseClassDefiner(SvStatus::addConstructToMap, SvStatus::addPrimitiveAssignFnsToMap, SvStatus::addClassAssignFnsToMap, SvStatus::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/SvStatus.hpp b/CGMES_2.4.13_18DEC2013/SvStatus.hpp deleted file mode 100644 index 242b1a277..000000000 --- a/CGMES_2.4.13_18DEC2013/SvStatus.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef SvStatus_H -#define SvStatus_H - -#include "BaseClass.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Boolean.hpp" - -namespace CIMPP { - - -class ConductingEquipment; - /* - State variable for status. - */ - class SvStatus: public BaseClass - { - - public: - CIMPP::ConductingEquipment* ConductingEquipment; /* The conducting equipment associated with the status state variable. Default: 0 */ - CIMPP::Boolean inService; /* The in service status as a result of topology processing. Default: false */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - SvStatus(); - virtual ~SvStatus(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* SvStatus_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/SvTapStep.cpp b/CGMES_2.4.13_18DEC2013/SvTapStep.cpp deleted file mode 100644 index e9a367cf3..000000000 --- a/CGMES_2.4.13_18DEC2013/SvTapStep.cpp +++ /dev/null @@ -1,69 +0,0 @@ -#include -#include "BaseClass.hpp" -#include "SvTapStep.hpp" - -#include "Simple_Float.hpp" -#include "TapChanger.hpp" - -using namespace CIMPP; - -SvTapStep::SvTapStep(): TapChanger(nullptr) {}; - -SvTapStep::~SvTapStep() {}; - - - -bool assign_TapChanger_SvTapStep(BaseClass*, BaseClass*); -bool assign_SvTapStep_TapChanger(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(SvTapStep* element = dynamic_cast(BaseClass_ptr1)) { - element->TapChanger = dynamic_cast(BaseClass_ptr2); - if(element->TapChanger != nullptr) - return assign_TapChanger_SvTapStep(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - -bool assign_SvTapStep_position(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SvTapStep* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->position; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -namespace CIMPP { - BaseClass* SvTapStep_factory() { - return new SvTapStep; - } -} - -void SvTapStep::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:SvTapStep"), &SvTapStep_factory)); -} - -void SvTapStep::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:SvTapStep.position"), &assign_SvTapStep_position)); - } - -void SvTapStep::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:SvTapStep.TapChanger"), &assign_SvTapStep_TapChanger)); -} - -const char SvTapStep::debugName[] = "SvTapStep"; -const char* SvTapStep::debugString() -{ - return SvTapStep::debugName; -} - -const BaseClassDefiner SvTapStep::declare() -{ - return BaseClassDefiner(SvTapStep::addConstructToMap, SvTapStep::addPrimitiveAssignFnsToMap, SvTapStep::addClassAssignFnsToMap, SvTapStep::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/SvTapStep.hpp b/CGMES_2.4.13_18DEC2013/SvTapStep.hpp deleted file mode 100644 index dccf76782..000000000 --- a/CGMES_2.4.13_18DEC2013/SvTapStep.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef SvTapStep_H -#define SvTapStep_H - -#include "BaseClass.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Simple_Float.hpp" - -namespace CIMPP { - - -class TapChanger; - /* - State variable for transformer tap step. This class is to be used for taps of LTC (load tap changing) transformers, not fixed tap transformers. - */ - class SvTapStep: public BaseClass - { - - public: - CIMPP::Simple_Float position; /* The floating point tap position. This is not the tap ratio, but rather the tap step position as defined by the related tap changer model and normally is constrained to be within the range of minimum and maximum tap positions. Default: nullptr */ - CIMPP::TapChanger* TapChanger; /* The tap changer associated with the tap step state. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - SvTapStep(); - virtual ~SvTapStep(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* SvTapStep_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/SvVoltage.cpp b/CGMES_2.4.13_18DEC2013/SvVoltage.cpp deleted file mode 100644 index 627dd3cac..000000000 --- a/CGMES_2.4.13_18DEC2013/SvVoltage.cpp +++ /dev/null @@ -1,84 +0,0 @@ -#include -#include "BaseClass.hpp" -#include "SvVoltage.hpp" - -#include "AngleDegrees.hpp" -#include "Voltage.hpp" -#include "TopologicalNode.hpp" - -using namespace CIMPP; - -SvVoltage::SvVoltage(): TopologicalNode(nullptr) {}; - -SvVoltage::~SvVoltage() {}; - - - - -bool assign_TopologicalNode_SvVoltage(BaseClass*, BaseClass*); -bool assign_SvVoltage_TopologicalNode(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(SvVoltage* element = dynamic_cast(BaseClass_ptr1)) { - element->TopologicalNode = dynamic_cast(BaseClass_ptr2); - if(element->TopologicalNode != nullptr) - return assign_TopologicalNode_SvVoltage(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - -bool assign_SvVoltage_angle(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SvVoltage* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->angle; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_SvVoltage_v(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SvVoltage* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->v; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -namespace CIMPP { - BaseClass* SvVoltage_factory() { - return new SvVoltage; - } -} - -void SvVoltage::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:SvVoltage"), &SvVoltage_factory)); -} - -void SvVoltage::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:SvVoltage.angle"), &assign_SvVoltage_angle)); - assign_map.insert(std::make_pair(std::string("cim:SvVoltage.v"), &assign_SvVoltage_v)); - } - -void SvVoltage::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:SvVoltage.TopologicalNode"), &assign_SvVoltage_TopologicalNode)); -} - -const char SvVoltage::debugName[] = "SvVoltage"; -const char* SvVoltage::debugString() -{ - return SvVoltage::debugName; -} - -const BaseClassDefiner SvVoltage::declare() -{ - return BaseClassDefiner(SvVoltage::addConstructToMap, SvVoltage::addPrimitiveAssignFnsToMap, SvVoltage::addClassAssignFnsToMap, SvVoltage::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/SvVoltage.hpp b/CGMES_2.4.13_18DEC2013/SvVoltage.hpp deleted file mode 100644 index 0b1341e75..000000000 --- a/CGMES_2.4.13_18DEC2013/SvVoltage.hpp +++ /dev/null @@ -1,44 +0,0 @@ -#ifndef SvVoltage_H -#define SvVoltage_H - -#include "BaseClass.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "AngleDegrees.hpp" -#include "Voltage.hpp" - -namespace CIMPP { - - -class TopologicalNode; - /* - State variable for voltage. - */ - class SvVoltage: public BaseClass - { - - public: - CIMPP::AngleDegrees angle; /* The voltage angle of the topological node complex voltage with respect to system reference. Default: nullptr */ - CIMPP::Voltage v; /* The voltage magnitude of the topological node. Default: nullptr */ - CIMPP::TopologicalNode* TopologicalNode; /* The state voltage associated with the topological node. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - SvVoltage(); - virtual ~SvVoltage(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* SvVoltage_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/Switch.cpp b/CGMES_2.4.13_18DEC2013/Switch.cpp deleted file mode 100644 index 03e1959fa..000000000 --- a/CGMES_2.4.13_18DEC2013/Switch.cpp +++ /dev/null @@ -1,114 +0,0 @@ -#include -#include "ConductingEquipment.hpp" -#include "Switch.hpp" - -#include "Boolean.hpp" -#include "Boolean.hpp" -#include "CurrentFlow.hpp" -#include "Boolean.hpp" -#include "SwitchSchedule.hpp" - -using namespace CIMPP; - -Switch::Switch() {}; - -Switch::~Switch() {}; - - - - - - -bool assign_Switch_SwitchSchedules(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(Switch* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->SwitchSchedules.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - -bool assign_Switch_open(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Switch* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->open; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Switch_normalOpen(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Switch* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->normalOpen; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Switch_ratedCurrent(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Switch* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ratedCurrent; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_Switch_retained(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Switch* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->retained; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -namespace CIMPP { - BaseClass* Switch_factory() { - return new Switch; - } -} - -void Switch::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:Switch"), &Switch_factory)); -} - -void Switch::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:Switch.open"), &assign_Switch_open)); - assign_map.insert(std::make_pair(std::string("cim:Switch.normalOpen"), &assign_Switch_normalOpen)); - assign_map.insert(std::make_pair(std::string("cim:Switch.ratedCurrent"), &assign_Switch_ratedCurrent)); - assign_map.insert(std::make_pair(std::string("cim:Switch.retained"), &assign_Switch_retained)); - } - -void Switch::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:Switch.SwitchSchedules"), &assign_Switch_SwitchSchedules)); -} - -const char Switch::debugName[] = "Switch"; -const char* Switch::debugString() -{ - return Switch::debugName; -} - -const BaseClassDefiner Switch::declare() -{ - return BaseClassDefiner(Switch::addConstructToMap, Switch::addPrimitiveAssignFnsToMap, Switch::addClassAssignFnsToMap, Switch::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/Switch.hpp b/CGMES_2.4.13_18DEC2013/Switch.hpp deleted file mode 100644 index 3547aa208..000000000 --- a/CGMES_2.4.13_18DEC2013/Switch.hpp +++ /dev/null @@ -1,46 +0,0 @@ -#ifndef Switch_H -#define Switch_H - -#include "ConductingEquipment.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Boolean.hpp" -#include "CurrentFlow.hpp" - -namespace CIMPP { - - -class SwitchSchedule; - /* - A generic device designed to close, or open, or both, one or more electric circuits. All switches are two terminal devices including grounding switches. - */ - class Switch: public ConductingEquipment - { - - public: - CIMPP::Boolean open; /* The attribute tells if the switch is considered open when used as input to topology processing. Default: false */ - CIMPP::Boolean normalOpen; /* The attribute is used in cases when no Measurement for the status value is present. If the Switch has a status measurement the Discrete.normalValue is expected to match with the Switch.normalOpen. Default: false */ - CIMPP::CurrentFlow ratedCurrent; /* The maximum continuous current carrying capacity in amps governed by the device material and construction. Default: nullptr */ - CIMPP::Boolean retained; /* Branch is retained in a bus branch model. The flow through retained switches will normally be calculated in power flow. Default: false */ - std::list SwitchSchedules; /* A SwitchSchedule is associated with a Switch. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - Switch(); - virtual ~Switch(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* Switch_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/SwitchSchedule.cpp b/CGMES_2.4.13_18DEC2013/SwitchSchedule.cpp deleted file mode 100644 index faa15f446..000000000 --- a/CGMES_2.4.13_18DEC2013/SwitchSchedule.cpp +++ /dev/null @@ -1,54 +0,0 @@ -#include -#include "SeasonDayTypeSchedule.hpp" -#include "SwitchSchedule.hpp" - -#include "Switch.hpp" - -using namespace CIMPP; - -SwitchSchedule::SwitchSchedule(): Switch(nullptr) {}; - -SwitchSchedule::~SwitchSchedule() {}; - - -bool assign_Switch_SwitchSchedules(BaseClass*, BaseClass*); -bool assign_SwitchSchedule_Switch(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(SwitchSchedule* element = dynamic_cast(BaseClass_ptr1)) { - element->Switch = dynamic_cast(BaseClass_ptr2); - if(element->Switch != nullptr) - return assign_Switch_SwitchSchedules(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - -namespace CIMPP { - BaseClass* SwitchSchedule_factory() { - return new SwitchSchedule; - } -} - -void SwitchSchedule::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:SwitchSchedule"), &SwitchSchedule_factory)); -} - -void SwitchSchedule::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void SwitchSchedule::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:SwitchSchedule.Switch"), &assign_SwitchSchedule_Switch)); -} - -const char SwitchSchedule::debugName[] = "SwitchSchedule"; -const char* SwitchSchedule::debugString() -{ - return SwitchSchedule::debugName; -} - -const BaseClassDefiner SwitchSchedule::declare() -{ - return BaseClassDefiner(SwitchSchedule::addConstructToMap, SwitchSchedule::addPrimitiveAssignFnsToMap, SwitchSchedule::addClassAssignFnsToMap, SwitchSchedule::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/SwitchSchedule.hpp b/CGMES_2.4.13_18DEC2013/SwitchSchedule.hpp deleted file mode 100644 index cdddbe7d7..000000000 --- a/CGMES_2.4.13_18DEC2013/SwitchSchedule.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef SwitchSchedule_H -#define SwitchSchedule_H - -#include "SeasonDayTypeSchedule.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class Switch; - /* - A schedule of switch positions. If RegularTimePoint.value1 is 0, the switch is open. If 1, the switch is closed. - */ - class SwitchSchedule: public SeasonDayTypeSchedule - { - - public: - CIMPP::Switch* Switch; /* A Switch can be associated with SwitchSchedules. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - SwitchSchedule(); - virtual ~SwitchSchedule(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* SwitchSchedule_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/SynchronousMachine.cpp b/CGMES_2.4.13_18DEC2013/SynchronousMachine.cpp deleted file mode 100644 index f3286ef02..000000000 --- a/CGMES_2.4.13_18DEC2013/SynchronousMachine.cpp +++ /dev/null @@ -1,381 +0,0 @@ -#include -#include "RotatingMachine.hpp" -#include "SynchronousMachine.hpp" - -#include "SynchronousMachineOperatingMode.hpp" -#include "ReactiveCapabilityCurve.hpp" -#include "Boolean.hpp" -#include "Resistance.hpp" -#include "Reactance.hpp" -#include "CurrentFlow.hpp" -#include "ReactivePower.hpp" -#include "ReactivePower.hpp" -#include "Simple_Float.hpp" -#include "PerCent.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Integer.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "ShortCircuitRotorKind.hpp" -#include "SynchronousMachineKind.hpp" -#include "PerCent.hpp" -#include "Resistance.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "SynchronousMachineDynamics.hpp" - -using namespace CIMPP; - -SynchronousMachine::SynchronousMachine(): InitialReactiveCapabilityCurve(nullptr), SynchronousMachineDynamics(nullptr) {}; - -SynchronousMachine::~SynchronousMachine() {}; - - - -bool assign_ReactiveCapabilityCurve_InitiallyUsedBySynchronousMachines(BaseClass*, BaseClass*); -bool assign_SynchronousMachine_InitialReactiveCapabilityCurve(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(SynchronousMachine* element = dynamic_cast(BaseClass_ptr1)) { - element->InitialReactiveCapabilityCurve = dynamic_cast(BaseClass_ptr2); - if(element->InitialReactiveCapabilityCurve != nullptr) - return assign_ReactiveCapabilityCurve_InitiallyUsedBySynchronousMachines(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - - - - - - - - - - - - - - - - - - - -bool assign_SynchronousMachine_SynchronousMachineDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(SynchronousMachine* element = dynamic_cast(BaseClass_ptr1)) { - element->SynchronousMachineDynamics = dynamic_cast(BaseClass_ptr2); - if(element->SynchronousMachineDynamics != nullptr) - return true; - } - return false; -} - - -bool assign_SynchronousMachine_operatingMode(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SynchronousMachine* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->operatingMode; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -bool assign_SynchronousMachine_earthing(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SynchronousMachine* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->earthing; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_SynchronousMachine_earthingStarPointR(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SynchronousMachine* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->earthingStarPointR; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_SynchronousMachine_earthingStarPointX(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SynchronousMachine* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->earthingStarPointX; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_SynchronousMachine_ikk(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SynchronousMachine* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ikk; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_SynchronousMachine_maxQ(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SynchronousMachine* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->maxQ; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_SynchronousMachine_minQ(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SynchronousMachine* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->minQ; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_SynchronousMachine_mu(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SynchronousMachine* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->mu; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_SynchronousMachine_qPercent(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SynchronousMachine* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->qPercent; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_SynchronousMachine_r0(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SynchronousMachine* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->r0; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_SynchronousMachine_r2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SynchronousMachine* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->r2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_SynchronousMachine_referencePriority(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SynchronousMachine* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->referencePriority; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_SynchronousMachine_satDirectSubtransX(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SynchronousMachine* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->satDirectSubtransX; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_SynchronousMachine_satDirectSyncX(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SynchronousMachine* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->satDirectSyncX; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_SynchronousMachine_satDirectTransX(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SynchronousMachine* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->satDirectTransX; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_SynchronousMachine_shortCircuitRotorType(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SynchronousMachine* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->shortCircuitRotorType; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_SynchronousMachine_type(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SynchronousMachine* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->type; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_SynchronousMachine_voltageRegulationRange(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SynchronousMachine* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->voltageRegulationRange; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_SynchronousMachine_r(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SynchronousMachine* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->r; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_SynchronousMachine_x0(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SynchronousMachine* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->x0; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_SynchronousMachine_x2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SynchronousMachine* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->x2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -namespace CIMPP { - BaseClass* SynchronousMachine_factory() { - return new SynchronousMachine; - } -} - -void SynchronousMachine::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:SynchronousMachine"), &SynchronousMachine_factory)); -} - -void SynchronousMachine::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:SynchronousMachine.operatingMode"), &assign_SynchronousMachine_operatingMode)); - assign_map.insert(std::make_pair(std::string("cim:SynchronousMachine.earthing"), &assign_SynchronousMachine_earthing)); - assign_map.insert(std::make_pair(std::string("cim:SynchronousMachine.earthingStarPointR"), &assign_SynchronousMachine_earthingStarPointR)); - assign_map.insert(std::make_pair(std::string("cim:SynchronousMachine.earthingStarPointX"), &assign_SynchronousMachine_earthingStarPointX)); - assign_map.insert(std::make_pair(std::string("cim:SynchronousMachine.ikk"), &assign_SynchronousMachine_ikk)); - assign_map.insert(std::make_pair(std::string("cim:SynchronousMachine.maxQ"), &assign_SynchronousMachine_maxQ)); - assign_map.insert(std::make_pair(std::string("cim:SynchronousMachine.minQ"), &assign_SynchronousMachine_minQ)); - assign_map.insert(std::make_pair(std::string("cim:SynchronousMachine.mu"), &assign_SynchronousMachine_mu)); - assign_map.insert(std::make_pair(std::string("cim:SynchronousMachine.qPercent"), &assign_SynchronousMachine_qPercent)); - assign_map.insert(std::make_pair(std::string("cim:SynchronousMachine.r0"), &assign_SynchronousMachine_r0)); - assign_map.insert(std::make_pair(std::string("cim:SynchronousMachine.r2"), &assign_SynchronousMachine_r2)); - assign_map.insert(std::make_pair(std::string("cim:SynchronousMachine.referencePriority"), &assign_SynchronousMachine_referencePriority)); - assign_map.insert(std::make_pair(std::string("cim:SynchronousMachine.satDirectSubtransX"), &assign_SynchronousMachine_satDirectSubtransX)); - assign_map.insert(std::make_pair(std::string("cim:SynchronousMachine.satDirectSyncX"), &assign_SynchronousMachine_satDirectSyncX)); - assign_map.insert(std::make_pair(std::string("cim:SynchronousMachine.satDirectTransX"), &assign_SynchronousMachine_satDirectTransX)); - assign_map.insert(std::make_pair(std::string("cim:SynchronousMachine.shortCircuitRotorType"), &assign_SynchronousMachine_shortCircuitRotorType)); - assign_map.insert(std::make_pair(std::string("cim:SynchronousMachine.type"), &assign_SynchronousMachine_type)); - assign_map.insert(std::make_pair(std::string("cim:SynchronousMachine.voltageRegulationRange"), &assign_SynchronousMachine_voltageRegulationRange)); - assign_map.insert(std::make_pair(std::string("cim:SynchronousMachine.r"), &assign_SynchronousMachine_r)); - assign_map.insert(std::make_pair(std::string("cim:SynchronousMachine.x0"), &assign_SynchronousMachine_x0)); - assign_map.insert(std::make_pair(std::string("cim:SynchronousMachine.x2"), &assign_SynchronousMachine_x2)); - } - -void SynchronousMachine::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:SynchronousMachine.InitialReactiveCapabilityCurve"), &assign_SynchronousMachine_InitialReactiveCapabilityCurve)); - assign_map.insert(std::make_pair(std::string("cim:SynchronousMachine.SynchronousMachineDynamics"), &assign_SynchronousMachine_SynchronousMachineDynamics)); -} - -const char SynchronousMachine::debugName[] = "SynchronousMachine"; -const char* SynchronousMachine::debugString() -{ - return SynchronousMachine::debugName; -} - -const BaseClassDefiner SynchronousMachine::declare() -{ - return BaseClassDefiner(SynchronousMachine::addConstructToMap, SynchronousMachine::addPrimitiveAssignFnsToMap, SynchronousMachine::addClassAssignFnsToMap, SynchronousMachine::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/SynchronousMachine.hpp b/CGMES_2.4.13_18DEC2013/SynchronousMachine.hpp deleted file mode 100644 index 85f37e5f0..000000000 --- a/CGMES_2.4.13_18DEC2013/SynchronousMachine.hpp +++ /dev/null @@ -1,75 +0,0 @@ -#ifndef SynchronousMachine_H -#define SynchronousMachine_H - -#include "RotatingMachine.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "SynchronousMachineOperatingMode.hpp" -#include "Boolean.hpp" -#include "Resistance.hpp" -#include "Reactance.hpp" -#include "CurrentFlow.hpp" -#include "ReactivePower.hpp" -#include "Simple_Float.hpp" -#include "PerCent.hpp" -#include "PU.hpp" -#include "Integer.hpp" -#include "ShortCircuitRotorKind.hpp" -#include "SynchronousMachineKind.hpp" - -namespace CIMPP { - - -class ReactiveCapabilityCurve; -class SynchronousMachineDynamics; - /* - An electromechanical device that operates with shaft rotating synchronously with the network. It is a single machine operating either as a generator or synchronous condenser or pump. - */ - class SynchronousMachine: public RotatingMachine - { - - public: - CIMPP::SynchronousMachineOperatingMode operatingMode; /* Current mode of operation. Default: 0 */ - CIMPP::ReactiveCapabilityCurve* InitialReactiveCapabilityCurve; /* Synchronous machines using this curve as default. Default: 0 */ - CIMPP::Boolean earthing; /* Indicates whether or not the generator is earthed. Used for short circuit data exchange according to IEC 60909 Default: false */ - CIMPP::Resistance earthingStarPointR; /* Generator star point earthing resistance (Re). Used for short circuit data exchange according to IEC 60909 Default: nullptr */ - CIMPP::Reactance earthingStarPointX; /* Generator star point earthing reactance (Xe). Used for short circuit data exchange according to IEC 60909 Default: nullptr */ - CIMPP::CurrentFlow ikk; /* Steady-state short-circuit current (in A for the profile) of generator with compound excitation during 3-phase short circuit. - Ikk=0: Generator with no compound excitation. - Ikk?0: Generator with compound excitation. Ikk is used to calculate the minimum steady-state short-circuit current for generators with compound excitation (Section 4.6.1.2 in the IEC 60909-0) Used only for single fed short circuit on a generator. (Section 4.3.4.2. in the IEC 60909-0) Default: nullptr */ - CIMPP::ReactivePower maxQ; /* Maximum reactive power limit. This is the maximum (nameplate) limit for the unit. Default: nullptr */ - CIMPP::ReactivePower minQ; /* Minimum reactive power limit for the unit. Default: nullptr */ - CIMPP::Simple_Float mu; /* Factor to calculate the breaking current (Section 4.5.2.1 in the IEC 60909-0). Used only for single fed short circuit on a generator (Section 4.3.4.2. in the IEC 60909-0). Default: nullptr */ - CIMPP::PerCent qPercent; /* Percent of the coordinated reactive control that comes from this machine. Default: nullptr */ - CIMPP::PU r0; /* Zero sequence resistance of the synchronous machine. Default: nullptr */ - CIMPP::PU r2; /* Negative sequence resistance. Default: nullptr */ - CIMPP::Integer referencePriority; /* Priority of unit for use as powerflow voltage phase angle reference bus selection. 0 = don t care (default) 1 = highest priority. 2 is less than 1 and so on. Default: 0 */ - CIMPP::PU satDirectSubtransX; /* Direct-axis subtransient reactance saturated, also known as Xd`sat. Default: nullptr */ - CIMPP::PU satDirectSyncX; /* Direct-axes saturated synchronous reactance (xdsat); reciprocal of short-circuit ration. Used for short circuit data exchange, only for single fed short circuit on a generator. (Section 4.3.4.2. in the IEC 60909-0). Default: nullptr */ - CIMPP::PU satDirectTransX; /* Saturated Direct-axis transient reactance. The attribute is primarily used for short circuit calculations according to ANSI. Default: nullptr */ - CIMPP::ShortCircuitRotorKind shortCircuitRotorType; /* Type of rotor, used by short circuit applications, only for single fed short circuit according to IEC 60909. Default: 0 */ - CIMPP::SynchronousMachineKind type; /* Modes that this synchronous machine can operate in. Default: 0 */ - CIMPP::PerCent voltageRegulationRange; /* Range of generator voltage regulation (PG in the IEC 60909-0) used for calculation of the impedance correction factor KG defined in IEC 60909-0 This attribute is used to describe the operating voltage of the generating unit. Default: nullptr */ - CIMPP::Resistance r; /* Equivalent resistance (RG) of generator. RG is considered for the calculation of all currents, except for the calculation of the peak current ip. Used for short circuit data exchange according to IEC 60909 Default: nullptr */ - CIMPP::PU x0; /* Zero sequence reactance of the synchronous machine. Default: nullptr */ - CIMPP::PU x2; /* Negative sequence reactance. Default: nullptr */ - CIMPP::SynchronousMachineDynamics* SynchronousMachineDynamics; /* Synchronous machine dynamics model used to describe dynamic behavior of this synchronous machine. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - SynchronousMachine(); - virtual ~SynchronousMachine(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* SynchronousMachine_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/SynchronousMachineDetailed.cpp b/CGMES_2.4.13_18DEC2013/SynchronousMachineDetailed.cpp deleted file mode 100644 index f9d3a71c3..000000000 --- a/CGMES_2.4.13_18DEC2013/SynchronousMachineDetailed.cpp +++ /dev/null @@ -1,116 +0,0 @@ -#include -#include "SynchronousMachineDynamics.hpp" -#include "SynchronousMachineDetailed.hpp" - -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "IfdBaseKind.hpp" -#include "CurrentFlow.hpp" - -using namespace CIMPP; - -SynchronousMachineDetailed::SynchronousMachineDetailed() {}; - -SynchronousMachineDetailed::~SynchronousMachineDetailed() {}; - - - - - - - - -bool assign_SynchronousMachineDetailed_saturationFactorQAxis(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SynchronousMachineDetailed* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->saturationFactorQAxis; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_SynchronousMachineDetailed_saturationFactor120QAxis(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SynchronousMachineDetailed* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->saturationFactor120QAxis; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_SynchronousMachineDetailed_efdBaseRatio(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SynchronousMachineDetailed* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->efdBaseRatio; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_SynchronousMachineDetailed_ifdBaseType(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SynchronousMachineDetailed* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ifdBaseType; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_SynchronousMachineDetailed_ifdBaseValue(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SynchronousMachineDetailed* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ifdBaseValue; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* SynchronousMachineDetailed_factory() { - return new SynchronousMachineDetailed; - } -} - -void SynchronousMachineDetailed::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:SynchronousMachineDetailed"), &SynchronousMachineDetailed_factory)); -} - -void SynchronousMachineDetailed::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:SynchronousMachineDetailed.saturationFactorQAxis"), &assign_SynchronousMachineDetailed_saturationFactorQAxis)); - assign_map.insert(std::make_pair(std::string("cim:SynchronousMachineDetailed.saturationFactor120QAxis"), &assign_SynchronousMachineDetailed_saturationFactor120QAxis)); - assign_map.insert(std::make_pair(std::string("cim:SynchronousMachineDetailed.efdBaseRatio"), &assign_SynchronousMachineDetailed_efdBaseRatio)); - assign_map.insert(std::make_pair(std::string("cim:SynchronousMachineDetailed.ifdBaseType"), &assign_SynchronousMachineDetailed_ifdBaseType)); - assign_map.insert(std::make_pair(std::string("cim:SynchronousMachineDetailed.ifdBaseValue"), &assign_SynchronousMachineDetailed_ifdBaseValue)); -} - -void SynchronousMachineDetailed::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char SynchronousMachineDetailed::debugName[] = "SynchronousMachineDetailed"; -const char* SynchronousMachineDetailed::debugString() -{ - return SynchronousMachineDetailed::debugName; -} - -const BaseClassDefiner SynchronousMachineDetailed::declare() -{ - return BaseClassDefiner(SynchronousMachineDetailed::addConstructToMap, SynchronousMachineDetailed::addPrimitiveAssignFnsToMap, SynchronousMachineDetailed::addClassAssignFnsToMap, SynchronousMachineDetailed::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/SynchronousMachineDetailed.hpp b/CGMES_2.4.13_18DEC2013/SynchronousMachineDetailed.hpp deleted file mode 100644 index cabf4cb8b..000000000 --- a/CGMES_2.4.13_18DEC2013/SynchronousMachineDetailed.hpp +++ /dev/null @@ -1,46 +0,0 @@ -#ifndef SynchronousMachineDetailed_H -#define SynchronousMachineDetailed_H - -#include "SynchronousMachineDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Simple_Float.hpp" -#include "IfdBaseKind.hpp" -#include "CurrentFlow.hpp" - -namespace CIMPP { - - - /* - All synchronous machine detailed types use a subset of the same data parameters and input/output variables. The several variations differ in the following ways: It is not necessary for each simulation tool to have separate models for each of the model types. The same model can often be used for several types by alternative logic within the model. Also, differences in saturation representation may not result in significant model performance differences so model substitutions are often acceptable. - */ - class SynchronousMachineDetailed: public SynchronousMachineDynamics - { - - public: - CIMPP::Simple_Float saturationFactorQAxis; /* Q-axis saturation factor at rated terminal voltage (S1q) (>= 0). Typical Value = 0.02. Default: nullptr */ - CIMPP::Simple_Float saturationFactor120QAxis; /* Q-axis saturation factor at 120% of rated terminal voltage (S12q) (>=S1q). Typical Value = 0.12. Default: nullptr */ - CIMPP::Simple_Float efdBaseRatio; /* Ratio of Efd bases of exciter and generator models. Typical Value = 1. Default: nullptr */ - CIMPP::IfdBaseKind ifdBaseType; /* Excitation base system mode. Typical Value = ifag. Default: 0 */ - CIMPP::CurrentFlow ifdBaseValue; /* Ifd base current if .ifdBaseType = other. Not needed if .ifdBaseType not = other. Unit = A. Typical Value = 0. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - SynchronousMachineDetailed(); - virtual ~SynchronousMachineDetailed(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* SynchronousMachineDetailed_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/SynchronousMachineDynamics.cpp b/CGMES_2.4.13_18DEC2013/SynchronousMachineDynamics.cpp deleted file mode 100644 index f6d915cfd..000000000 --- a/CGMES_2.4.13_18DEC2013/SynchronousMachineDynamics.cpp +++ /dev/null @@ -1,104 +0,0 @@ -#include -#include "RotatingMachineDynamics.hpp" -#include "SynchronousMachineDynamics.hpp" - -#include "SynchronousMachine.hpp" -#include "TurbineGovernorDynamics.hpp" -#include "ExcitationSystemDynamics.hpp" -#include "MechanicalLoadDynamics.hpp" -#include "GenICompensationForGenJ.hpp" - -using namespace CIMPP; - -SynchronousMachineDynamics::SynchronousMachineDynamics(): SynchronousMachine(nullptr), ExcitationSystemDynamics(nullptr), MechanicalLoadDynamics(nullptr) {}; - -SynchronousMachineDynamics::~SynchronousMachineDynamics() {}; - - -bool assign_SynchronousMachine_SynchronousMachineDynamics(BaseClass*, BaseClass*); -bool assign_SynchronousMachineDynamics_SynchronousMachine(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(SynchronousMachineDynamics* element = dynamic_cast(BaseClass_ptr1)) { - element->SynchronousMachine = dynamic_cast(BaseClass_ptr2); - if(element->SynchronousMachine != nullptr) - return assign_SynchronousMachine_SynchronousMachineDynamics(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_SynchronousMachineDynamics_TurbineGovernorDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(SynchronousMachineDynamics* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->TurbineGovernorDynamics.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_SynchronousMachineDynamics_ExcitationSystemDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(SynchronousMachineDynamics* element = dynamic_cast(BaseClass_ptr1)) { - element->ExcitationSystemDynamics = dynamic_cast(BaseClass_ptr2); - if(element->ExcitationSystemDynamics != nullptr) - return true; - } - return false; -} - -bool assign_SynchronousMachineDynamics_MechanicalLoadDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(SynchronousMachineDynamics* element = dynamic_cast(BaseClass_ptr1)) { - element->MechanicalLoadDynamics = dynamic_cast(BaseClass_ptr2); - if(element->MechanicalLoadDynamics != nullptr) - return true; - } - return false; -} - -bool assign_SynchronousMachineDynamics_GenICompensationForGenJ(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(SynchronousMachineDynamics* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->GenICompensationForGenJ.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - - - - - - -namespace CIMPP { - BaseClass* SynchronousMachineDynamics_factory() { - return new SynchronousMachineDynamics; - } -} - -void SynchronousMachineDynamics::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:SynchronousMachineDynamics"), &SynchronousMachineDynamics_factory)); -} - -void SynchronousMachineDynamics::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void SynchronousMachineDynamics::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:SynchronousMachineDynamics.SynchronousMachine"), &assign_SynchronousMachineDynamics_SynchronousMachine)); - assign_map.insert(std::make_pair(std::string("cim:SynchronousMachineDynamics.TurbineGovernorDynamics"), &assign_SynchronousMachineDynamics_TurbineGovernorDynamics)); - assign_map.insert(std::make_pair(std::string("cim:SynchronousMachineDynamics.ExcitationSystemDynamics"), &assign_SynchronousMachineDynamics_ExcitationSystemDynamics)); - assign_map.insert(std::make_pair(std::string("cim:SynchronousMachineDynamics.MechanicalLoadDynamics"), &assign_SynchronousMachineDynamics_MechanicalLoadDynamics)); - assign_map.insert(std::make_pair(std::string("cim:SynchronousMachineDynamics.GenICompensationForGenJ"), &assign_SynchronousMachineDynamics_GenICompensationForGenJ)); -} - -const char SynchronousMachineDynamics::debugName[] = "SynchronousMachineDynamics"; -const char* SynchronousMachineDynamics::debugString() -{ - return SynchronousMachineDynamics::debugName; -} - -const BaseClassDefiner SynchronousMachineDynamics::declare() -{ - return BaseClassDefiner(SynchronousMachineDynamics::addConstructToMap, SynchronousMachineDynamics::addPrimitiveAssignFnsToMap, SynchronousMachineDynamics::addClassAssignFnsToMap, SynchronousMachineDynamics::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/SynchronousMachineDynamics.hpp b/CGMES_2.4.13_18DEC2013/SynchronousMachineDynamics.hpp deleted file mode 100644 index e51934ac7..000000000 --- a/CGMES_2.4.13_18DEC2013/SynchronousMachineDynamics.hpp +++ /dev/null @@ -1,48 +0,0 @@ -#ifndef SynchronousMachineDynamics_H -#define SynchronousMachineDynamics_H - -#include "RotatingMachineDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class SynchronousMachine; -class TurbineGovernorDynamics; -class ExcitationSystemDynamics; -class MechanicalLoadDynamics; -class GenICompensationForGenJ; - /* - Synchronous machine whose behaviour is described by reference to a standard model expressed in one of the following forms: - */ - class SynchronousMachineDynamics: public RotatingMachineDynamics - { - - public: - CIMPP::SynchronousMachine* SynchronousMachine; /* Synchronous machine to which synchronous machine dynamics model applies. Default: 0 */ - std::list TurbineGovernorDynamics; /* Synchronous machine model with which this turbine-governor model is associated. Default: 0 */ - CIMPP::ExcitationSystemDynamics* ExcitationSystemDynamics; /* Excitation system model associated with this synchronous machine model. Default: 0 */ - CIMPP::MechanicalLoadDynamics* MechanicalLoadDynamics; /* Mechanical load model associated with this synchronous machine model. Default: 0 */ - std::list GenICompensationForGenJ; /* Compensation of voltage compensator`s generator for current flow out of this generator. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - SynchronousMachineDynamics(); - virtual ~SynchronousMachineDynamics(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* SynchronousMachineDynamics_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/SynchronousMachineEquivalentCircuit.cpp b/CGMES_2.4.13_18DEC2013/SynchronousMachineEquivalentCircuit.cpp deleted file mode 100644 index 32f5cf134..000000000 --- a/CGMES_2.4.13_18DEC2013/SynchronousMachineEquivalentCircuit.cpp +++ /dev/null @@ -1,206 +0,0 @@ -#include -#include "SynchronousMachineDetailed.hpp" -#include "SynchronousMachineEquivalentCircuit.hpp" - -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -SynchronousMachineEquivalentCircuit::SynchronousMachineEquivalentCircuit() {}; - -SynchronousMachineEquivalentCircuit::~SynchronousMachineEquivalentCircuit() {}; - - - - - - - - - - - - - - -bool assign_SynchronousMachineEquivalentCircuit_xad(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SynchronousMachineEquivalentCircuit* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->xad; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_SynchronousMachineEquivalentCircuit_rfd(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SynchronousMachineEquivalentCircuit* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->rfd; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_SynchronousMachineEquivalentCircuit_xfd(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SynchronousMachineEquivalentCircuit* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->xfd; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_SynchronousMachineEquivalentCircuit_r1d(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SynchronousMachineEquivalentCircuit* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->r1d; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_SynchronousMachineEquivalentCircuit_x1d(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SynchronousMachineEquivalentCircuit* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->x1d; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_SynchronousMachineEquivalentCircuit_xf1d(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SynchronousMachineEquivalentCircuit* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->xf1d; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_SynchronousMachineEquivalentCircuit_xaq(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SynchronousMachineEquivalentCircuit* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->xaq; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_SynchronousMachineEquivalentCircuit_r1q(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SynchronousMachineEquivalentCircuit* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->r1q; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_SynchronousMachineEquivalentCircuit_x1q(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SynchronousMachineEquivalentCircuit* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->x1q; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_SynchronousMachineEquivalentCircuit_r2q(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SynchronousMachineEquivalentCircuit* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->r2q; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_SynchronousMachineEquivalentCircuit_x2q(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SynchronousMachineEquivalentCircuit* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->x2q; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* SynchronousMachineEquivalentCircuit_factory() { - return new SynchronousMachineEquivalentCircuit; - } -} - -void SynchronousMachineEquivalentCircuit::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:SynchronousMachineEquivalentCircuit"), &SynchronousMachineEquivalentCircuit_factory)); -} - -void SynchronousMachineEquivalentCircuit::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:SynchronousMachineEquivalentCircuit.xad"), &assign_SynchronousMachineEquivalentCircuit_xad)); - assign_map.insert(std::make_pair(std::string("cim:SynchronousMachineEquivalentCircuit.rfd"), &assign_SynchronousMachineEquivalentCircuit_rfd)); - assign_map.insert(std::make_pair(std::string("cim:SynchronousMachineEquivalentCircuit.xfd"), &assign_SynchronousMachineEquivalentCircuit_xfd)); - assign_map.insert(std::make_pair(std::string("cim:SynchronousMachineEquivalentCircuit.r1d"), &assign_SynchronousMachineEquivalentCircuit_r1d)); - assign_map.insert(std::make_pair(std::string("cim:SynchronousMachineEquivalentCircuit.x1d"), &assign_SynchronousMachineEquivalentCircuit_x1d)); - assign_map.insert(std::make_pair(std::string("cim:SynchronousMachineEquivalentCircuit.xf1d"), &assign_SynchronousMachineEquivalentCircuit_xf1d)); - assign_map.insert(std::make_pair(std::string("cim:SynchronousMachineEquivalentCircuit.xaq"), &assign_SynchronousMachineEquivalentCircuit_xaq)); - assign_map.insert(std::make_pair(std::string("cim:SynchronousMachineEquivalentCircuit.r1q"), &assign_SynchronousMachineEquivalentCircuit_r1q)); - assign_map.insert(std::make_pair(std::string("cim:SynchronousMachineEquivalentCircuit.x1q"), &assign_SynchronousMachineEquivalentCircuit_x1q)); - assign_map.insert(std::make_pair(std::string("cim:SynchronousMachineEquivalentCircuit.r2q"), &assign_SynchronousMachineEquivalentCircuit_r2q)); - assign_map.insert(std::make_pair(std::string("cim:SynchronousMachineEquivalentCircuit.x2q"), &assign_SynchronousMachineEquivalentCircuit_x2q)); -} - -void SynchronousMachineEquivalentCircuit::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char SynchronousMachineEquivalentCircuit::debugName[] = "SynchronousMachineEquivalentCircuit"; -const char* SynchronousMachineEquivalentCircuit::debugString() -{ - return SynchronousMachineEquivalentCircuit::debugName; -} - -const BaseClassDefiner SynchronousMachineEquivalentCircuit::declare() -{ - return BaseClassDefiner(SynchronousMachineEquivalentCircuit::addConstructToMap, SynchronousMachineEquivalentCircuit::addPrimitiveAssignFnsToMap, SynchronousMachineEquivalentCircuit::addClassAssignFnsToMap, SynchronousMachineEquivalentCircuit::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/SynchronousMachineEquivalentCircuit.hpp b/CGMES_2.4.13_18DEC2013/SynchronousMachineEquivalentCircuit.hpp deleted file mode 100644 index 202d73266..000000000 --- a/CGMES_2.4.13_18DEC2013/SynchronousMachineEquivalentCircuit.hpp +++ /dev/null @@ -1,50 +0,0 @@ -#ifndef SynchronousMachineEquivalentCircuit_H -#define SynchronousMachineEquivalentCircuit_H - -#include "SynchronousMachineDetailed.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" - -namespace CIMPP { - - - /* - The electrical equations for all variations of the synchronous models are based on the SynchronousEquivalentCircuit diagram for the direct and quadrature axes. = + = + * / ( + ) = + * * / ( * + * + * ) = + = + * / (+ ) = + ** / ( * + * + * ) = ( + ) / ( * ) = ( * + * + * ) / ( * * ( + ) = ( + ) / ( * ) = ( * + * + * )/ ( * * ( + ) Same equations using CIM attributes from SynchronousMachineTimeConstantReactance class on left of = sign and SynchronousMachineEquivalentCircuit class on right (except as noted): xDirectSync = xad + RotatingMachineDynamics.statorLeakageReactance xDirectTrans = RotatingMachineDynamics.statorLeakageReactance + xad * xfd / (xad + xfd) xDirectSubtrans = RotatingMachineDynamics.statorLeakageReactance + xad * xfd * x1d / (xad * xfd + xad * x1d + xfd * x1d) xQuadSync = xaq + RotatingMachineDynamics.statorLeakageReactance xQuadTrans = RotatingMachineDynamics.statorLeakageReactance + xaq * x1q / (xaq+ x1q) xQuadSubtrans = RotatingMachineDynamics.statorLeakageReactance + xaq * x1q* x2q / (xaq * x1q + xaq * x2q + x1q * x2q) tpdo = (xad + xfd) / (2*pi*nominal frequency * rfd) tppdo = (xad * xfd + xad * x1d + xfd * x1d) / (2*pi*nominal frequency * r1d * (xad + xfd) tpqo = (xaq + x1q) / (2*pi*nominal frequency * r1q) tppqo = (xaq * x1q + xaq * x2q + x1q * x2q)/ (2*pi*nominal frequency * r2q * (xaq + x1q). Are only valid for a simplified model where "Canay" reactance is zero. - */ - class SynchronousMachineEquivalentCircuit: public SynchronousMachineDetailed - { - - public: - CIMPP::PU xad; /* D-axis mutual reactance. Default: nullptr */ - CIMPP::PU rfd; /* Field winding resistance. Default: nullptr */ - CIMPP::PU xfd; /* Field winding leakage reactance. Default: nullptr */ - CIMPP::PU r1d; /* D-axis damper 1 winding resistance. Default: nullptr */ - CIMPP::PU x1d; /* D-axis damper 1 winding leakage reactance. Default: nullptr */ - CIMPP::PU xf1d; /* Differential mutual (`Canay`) reactance. Default: nullptr */ - CIMPP::PU xaq; /* Q-axis mutual reactance. Default: nullptr */ - CIMPP::PU r1q; /* Q-axis damper 1 winding resistance. Default: nullptr */ - CIMPP::PU x1q; /* Q-axis damper 1 winding leakage reactance. Default: nullptr */ - CIMPP::PU r2q; /* Q-axis damper 2 winding resistance. Default: nullptr */ - CIMPP::PU x2q; /* Q-axis damper 2 winding leakage reactance. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - SynchronousMachineEquivalentCircuit(); - virtual ~SynchronousMachineEquivalentCircuit(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* SynchronousMachineEquivalentCircuit_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/SynchronousMachineKind.cpp b/CGMES_2.4.13_18DEC2013/SynchronousMachineKind.cpp deleted file mode 100644 index cdd209bb7..000000000 --- a/CGMES_2.4.13_18DEC2013/SynchronousMachineKind.cpp +++ /dev/null @@ -1,62 +0,0 @@ -#include -#include -#include "SynchronousMachineKind.hpp" - -using namespace CIMPP; - -namespace CIMPP { - std::istream& operator>>(std::istream& lop, CIMPP::SynchronousMachineKind& rop) - { - std::string EnumSymbol; - lop >> EnumSymbol; - - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "SynchronousMachineKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "generator") - { - rop = SynchronousMachineKind::generator; - return lop; - } - if(EnumSymbol == "condenser") - { - rop = SynchronousMachineKind::condenser; - return lop; - } - if(EnumSymbol == "generatorOrCondenser") - { - rop = SynchronousMachineKind::generatorOrCondenser; - return lop; - } - if(EnumSymbol == "motor") - { - rop = SynchronousMachineKind::motor; - return lop; - } - if(EnumSymbol == "generatorOrMotor") - { - rop = SynchronousMachineKind::generatorOrMotor; - return lop; - } - if(EnumSymbol == "motorOrCondenser") - { - rop = SynchronousMachineKind::motorOrCondenser; - return lop; - } - if(EnumSymbol == "generatorOrCondenserOrMotor") - { - rop = SynchronousMachineKind::generatorOrCondenserOrMotor; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; - } -} - diff --git a/CGMES_2.4.13_18DEC2013/SynchronousMachineKind.hpp b/CGMES_2.4.13_18DEC2013/SynchronousMachineKind.hpp deleted file mode 100644 index 9bb36f126..000000000 --- a/CGMES_2.4.13_18DEC2013/SynchronousMachineKind.hpp +++ /dev/null @@ -1,41 +0,0 @@ -#ifndef SynchronousMachineKind_H -#define SynchronousMachineKind_H - -namespace CIMPP { - /* - Synchronous machine type. - */ - enum class SynchronousMachineKind - { - /** - * - */ - generator, - /** - * - */ - condenser, - /** - * - */ - generatorOrCondenser, - /** - * - */ - motor, - /** - * - */ - generatorOrMotor, - /** - * - */ - motorOrCondenser, - /** - * - */ - generatorOrCondenserOrMotor, - }; - std::istream& operator>>(std::istream& lop, CIMPP::SynchronousMachineKind& rop); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/SynchronousMachineModelKind.cpp b/CGMES_2.4.13_18DEC2013/SynchronousMachineModelKind.cpp deleted file mode 100644 index 69c97d45d..000000000 --- a/CGMES_2.4.13_18DEC2013/SynchronousMachineModelKind.cpp +++ /dev/null @@ -1,52 +0,0 @@ -#include -#include -#include "SynchronousMachineModelKind.hpp" - -using namespace CIMPP; - -namespace CIMPP { - std::istream& operator>>(std::istream& lop, CIMPP::SynchronousMachineModelKind& rop) - { - std::string EnumSymbol; - lop >> EnumSymbol; - - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "SynchronousMachineModelKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "subtransient") - { - rop = SynchronousMachineModelKind::subtransient; - return lop; - } - if(EnumSymbol == "subtransientTypeF") - { - rop = SynchronousMachineModelKind::subtransientTypeF; - return lop; - } - if(EnumSymbol == "subtransientTypeJ") - { - rop = SynchronousMachineModelKind::subtransientTypeJ; - return lop; - } - if(EnumSymbol == "subtransientSimplified") - { - rop = SynchronousMachineModelKind::subtransientSimplified; - return lop; - } - if(EnumSymbol == "subtransientSimplifiedDirectAxis") - { - rop = SynchronousMachineModelKind::subtransientSimplifiedDirectAxis; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; - } -} - diff --git a/CGMES_2.4.13_18DEC2013/SynchronousMachineModelKind.hpp b/CGMES_2.4.13_18DEC2013/SynchronousMachineModelKind.hpp deleted file mode 100644 index 0d7526111..000000000 --- a/CGMES_2.4.13_18DEC2013/SynchronousMachineModelKind.hpp +++ /dev/null @@ -1,33 +0,0 @@ -#ifndef SynchronousMachineModelKind_H -#define SynchronousMachineModelKind_H - -namespace CIMPP { - /* - Type of synchronous machine model used in Dynamic simulation applications. - */ - enum class SynchronousMachineModelKind - { - /** - * Subtransient synchronous machine model. - */ - subtransient, - /** - * WECC Type F variant of subtransient synchronous machine model. - */ - subtransientTypeF, - /** - * WECC Type J variant of subtransient synchronous machine model. - */ - subtransientTypeJ, - /** - * Simplified version of subtransient synchronous machine model where magnetic coupling between the direct and quadrature axes is ignored. - */ - subtransientSimplified, - /** - * Simplified version of a subtransient synchronous machine model with no damper circuit on d-axis. - */ - subtransientSimplifiedDirectAxis, - }; - std::istream& operator>>(std::istream& lop, CIMPP::SynchronousMachineModelKind& rop); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/SynchronousMachineOperatingMode.cpp b/CGMES_2.4.13_18DEC2013/SynchronousMachineOperatingMode.cpp deleted file mode 100644 index 17134a897..000000000 --- a/CGMES_2.4.13_18DEC2013/SynchronousMachineOperatingMode.cpp +++ /dev/null @@ -1,42 +0,0 @@ -#include -#include -#include "SynchronousMachineOperatingMode.hpp" - -using namespace CIMPP; - -namespace CIMPP { - std::istream& operator>>(std::istream& lop, CIMPP::SynchronousMachineOperatingMode& rop) - { - std::string EnumSymbol; - lop >> EnumSymbol; - - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "SynchronousMachineOperatingMode") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "generator") - { - rop = SynchronousMachineOperatingMode::generator; - return lop; - } - if(EnumSymbol == "condenser") - { - rop = SynchronousMachineOperatingMode::condenser; - return lop; - } - if(EnumSymbol == "motor") - { - rop = SynchronousMachineOperatingMode::motor; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; - } -} - diff --git a/CGMES_2.4.13_18DEC2013/SynchronousMachineOperatingMode.hpp b/CGMES_2.4.13_18DEC2013/SynchronousMachineOperatingMode.hpp deleted file mode 100644 index abbfd44cf..000000000 --- a/CGMES_2.4.13_18DEC2013/SynchronousMachineOperatingMode.hpp +++ /dev/null @@ -1,25 +0,0 @@ -#ifndef SynchronousMachineOperatingMode_H -#define SynchronousMachineOperatingMode_H - -namespace CIMPP { - /* - Synchronous machine operating mode. - */ - enum class SynchronousMachineOperatingMode - { - /** - * - */ - generator, - /** - * - */ - condenser, - /** - * - */ - motor, - }; - std::istream& operator>>(std::istream& lop, CIMPP::SynchronousMachineOperatingMode& rop); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/SynchronousMachineSimplified.cpp b/CGMES_2.4.13_18DEC2013/SynchronousMachineSimplified.cpp deleted file mode 100644 index 5def0becb..000000000 --- a/CGMES_2.4.13_18DEC2013/SynchronousMachineSimplified.cpp +++ /dev/null @@ -1,41 +0,0 @@ -#include -#include "SynchronousMachineDynamics.hpp" -#include "SynchronousMachineSimplified.hpp" - - -using namespace CIMPP; - -SynchronousMachineSimplified::SynchronousMachineSimplified() {}; - -SynchronousMachineSimplified::~SynchronousMachineSimplified() {}; - - - -namespace CIMPP { - BaseClass* SynchronousMachineSimplified_factory() { - return new SynchronousMachineSimplified; - } -} - -void SynchronousMachineSimplified::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:SynchronousMachineSimplified"), &SynchronousMachineSimplified_factory)); -} - -void SynchronousMachineSimplified::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { -} - -void SynchronousMachineSimplified::addClassAssignFnsToMap(std::unordered_map& assign_map) { -} - -const char SynchronousMachineSimplified::debugName[] = "SynchronousMachineSimplified"; -const char* SynchronousMachineSimplified::debugString() -{ - return SynchronousMachineSimplified::debugName; -} - -const BaseClassDefiner SynchronousMachineSimplified::declare() -{ - return BaseClassDefiner(SynchronousMachineSimplified::addConstructToMap, SynchronousMachineSimplified::addPrimitiveAssignFnsToMap, SynchronousMachineSimplified::addClassAssignFnsToMap, SynchronousMachineSimplified::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/SynchronousMachineSimplified.hpp b/CGMES_2.4.13_18DEC2013/SynchronousMachineSimplified.hpp deleted file mode 100644 index 8f216ce1c..000000000 --- a/CGMES_2.4.13_18DEC2013/SynchronousMachineSimplified.hpp +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef SynchronousMachineSimplified_H -#define SynchronousMachineSimplified_H - -#include "SynchronousMachineDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - - /* - The simplified model represents a synchronous generator as a constant internal voltage behind an impedance ( + ) as shown in the Simplified diagram. Since internal voltage is held constant, there is no input and any excitation system model will be ignored. There is also no output. This model should not be used for representing a real generator except, perhaps, small generators whose response is insignificant. The parameters used for the Simplified model include: - */ - class SynchronousMachineSimplified: public SynchronousMachineDynamics - { - - public: - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - SynchronousMachineSimplified(); - virtual ~SynchronousMachineSimplified(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* SynchronousMachineSimplified_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/SynchronousMachineTimeConstantReactance.cpp b/CGMES_2.4.13_18DEC2013/SynchronousMachineTimeConstantReactance.cpp deleted file mode 100644 index 4ac4d088b..000000000 --- a/CGMES_2.4.13_18DEC2013/SynchronousMachineTimeConstantReactance.cpp +++ /dev/null @@ -1,251 +0,0 @@ -#include -#include "SynchronousMachineDetailed.hpp" -#include "SynchronousMachineTimeConstantReactance.hpp" - -#include "RotorKind.hpp" -#include "SynchronousMachineModelKind.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" - -using namespace CIMPP; - -SynchronousMachineTimeConstantReactance::SynchronousMachineTimeConstantReactance() {}; - -SynchronousMachineTimeConstantReactance::~SynchronousMachineTimeConstantReactance() {}; - - - - - - - - - - - - - - - - - -bool assign_SynchronousMachineTimeConstantReactance_rotorType(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SynchronousMachineTimeConstantReactance* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->rotorType; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_SynchronousMachineTimeConstantReactance_modelType(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SynchronousMachineTimeConstantReactance* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->modelType; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_SynchronousMachineTimeConstantReactance_ks(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SynchronousMachineTimeConstantReactance* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ks; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_SynchronousMachineTimeConstantReactance_xDirectSync(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SynchronousMachineTimeConstantReactance* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->xDirectSync; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_SynchronousMachineTimeConstantReactance_xDirectTrans(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SynchronousMachineTimeConstantReactance* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->xDirectTrans; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_SynchronousMachineTimeConstantReactance_xDirectSubtrans(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SynchronousMachineTimeConstantReactance* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->xDirectSubtrans; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_SynchronousMachineTimeConstantReactance_xQuadSync(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SynchronousMachineTimeConstantReactance* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->xQuadSync; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_SynchronousMachineTimeConstantReactance_xQuadTrans(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SynchronousMachineTimeConstantReactance* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->xQuadTrans; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_SynchronousMachineTimeConstantReactance_xQuadSubtrans(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SynchronousMachineTimeConstantReactance* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->xQuadSubtrans; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_SynchronousMachineTimeConstantReactance_tpdo(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SynchronousMachineTimeConstantReactance* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tpdo; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_SynchronousMachineTimeConstantReactance_tppdo(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SynchronousMachineTimeConstantReactance* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tppdo; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_SynchronousMachineTimeConstantReactance_tpqo(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SynchronousMachineTimeConstantReactance* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tpqo; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_SynchronousMachineTimeConstantReactance_tppqo(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SynchronousMachineTimeConstantReactance* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tppqo; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_SynchronousMachineTimeConstantReactance_tc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SynchronousMachineTimeConstantReactance* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* SynchronousMachineTimeConstantReactance_factory() { - return new SynchronousMachineTimeConstantReactance; - } -} - -void SynchronousMachineTimeConstantReactance::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:SynchronousMachineTimeConstantReactance"), &SynchronousMachineTimeConstantReactance_factory)); -} - -void SynchronousMachineTimeConstantReactance::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:SynchronousMachineTimeConstantReactance.rotorType"), &assign_SynchronousMachineTimeConstantReactance_rotorType)); - assign_map.insert(std::make_pair(std::string("cim:SynchronousMachineTimeConstantReactance.modelType"), &assign_SynchronousMachineTimeConstantReactance_modelType)); - assign_map.insert(std::make_pair(std::string("cim:SynchronousMachineTimeConstantReactance.ks"), &assign_SynchronousMachineTimeConstantReactance_ks)); - assign_map.insert(std::make_pair(std::string("cim:SynchronousMachineTimeConstantReactance.xDirectSync"), &assign_SynchronousMachineTimeConstantReactance_xDirectSync)); - assign_map.insert(std::make_pair(std::string("cim:SynchronousMachineTimeConstantReactance.xDirectTrans"), &assign_SynchronousMachineTimeConstantReactance_xDirectTrans)); - assign_map.insert(std::make_pair(std::string("cim:SynchronousMachineTimeConstantReactance.xDirectSubtrans"), &assign_SynchronousMachineTimeConstantReactance_xDirectSubtrans)); - assign_map.insert(std::make_pair(std::string("cim:SynchronousMachineTimeConstantReactance.xQuadSync"), &assign_SynchronousMachineTimeConstantReactance_xQuadSync)); - assign_map.insert(std::make_pair(std::string("cim:SynchronousMachineTimeConstantReactance.xQuadTrans"), &assign_SynchronousMachineTimeConstantReactance_xQuadTrans)); - assign_map.insert(std::make_pair(std::string("cim:SynchronousMachineTimeConstantReactance.xQuadSubtrans"), &assign_SynchronousMachineTimeConstantReactance_xQuadSubtrans)); - assign_map.insert(std::make_pair(std::string("cim:SynchronousMachineTimeConstantReactance.tpdo"), &assign_SynchronousMachineTimeConstantReactance_tpdo)); - assign_map.insert(std::make_pair(std::string("cim:SynchronousMachineTimeConstantReactance.tppdo"), &assign_SynchronousMachineTimeConstantReactance_tppdo)); - assign_map.insert(std::make_pair(std::string("cim:SynchronousMachineTimeConstantReactance.tpqo"), &assign_SynchronousMachineTimeConstantReactance_tpqo)); - assign_map.insert(std::make_pair(std::string("cim:SynchronousMachineTimeConstantReactance.tppqo"), &assign_SynchronousMachineTimeConstantReactance_tppqo)); - assign_map.insert(std::make_pair(std::string("cim:SynchronousMachineTimeConstantReactance.tc"), &assign_SynchronousMachineTimeConstantReactance_tc)); -} - -void SynchronousMachineTimeConstantReactance::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char SynchronousMachineTimeConstantReactance::debugName[] = "SynchronousMachineTimeConstantReactance"; -const char* SynchronousMachineTimeConstantReactance::debugString() -{ - return SynchronousMachineTimeConstantReactance::debugName; -} - -const BaseClassDefiner SynchronousMachineTimeConstantReactance::declare() -{ - return BaseClassDefiner(SynchronousMachineTimeConstantReactance::addConstructToMap, SynchronousMachineTimeConstantReactance::addPrimitiveAssignFnsToMap, SynchronousMachineTimeConstantReactance::addClassAssignFnsToMap, SynchronousMachineTimeConstantReactance::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/SynchronousMachineTimeConstantReactance.hpp b/CGMES_2.4.13_18DEC2013/SynchronousMachineTimeConstantReactance.hpp deleted file mode 100644 index c783655c5..000000000 --- a/CGMES_2.4.13_18DEC2013/SynchronousMachineTimeConstantReactance.hpp +++ /dev/null @@ -1,57 +0,0 @@ -#ifndef SynchronousMachineTimeConstantReactance_H -#define SynchronousMachineTimeConstantReactance_H - -#include "SynchronousMachineDetailed.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "RotorKind.hpp" -#include "SynchronousMachineModelKind.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "Seconds.hpp" - -namespace CIMPP { - - - /* - Synchronous machine detailed modelling types are defined by the combination of the attributes SynchronousMachineTimeConstantReactance.modelType and SynchronousMachineTimeConstantReactance.rotorType. The parameters used for models expressed in time constant reactance form include: - */ - class SynchronousMachineTimeConstantReactance: public SynchronousMachineDetailed - { - - public: - CIMPP::RotorKind rotorType; /* Type of rotor on physical machine. Default: 0 */ - CIMPP::SynchronousMachineModelKind modelType; /* Type of synchronous machine model used in Dynamic simulation applications. Default: 0 */ - CIMPP::Simple_Float ks; /* Saturation loading correction factor (Ks) (>= 0). Used only by Type J model. Typical Value = 0. Default: nullptr */ - CIMPP::PU xDirectSync; /* Direct-axis synchronous reactance (Xd) (>= X`d). The quotient of a sustained value of that AC component of armature voltage that is produced by the total direct-axis flux due to direct-axis armature current and the value of the AC component of this current, the machine running at rated speed. Typical Value = 1.8. Default: nullptr */ - CIMPP::PU xDirectTrans; /* Direct-axis transient reactance (unsaturated) (X`d) (> =X``d). Typical Value = 0.5. Default: nullptr */ - CIMPP::PU xDirectSubtrans; /* Direct-axis subtransient reactance (unsaturated) (X``d) (> Xl). Typical Value = 0.2. Default: nullptr */ - CIMPP::PU xQuadSync; /* Quadrature-axis synchronous reactance (Xq) (> =X`q). The ratio of the component of reactive armature voltage, due to the quadrature-axis component of armature current, to this component of current, under steady state conditions and at rated frequency. Typical Value = 1.6. Default: nullptr */ - CIMPP::PU xQuadTrans; /* Quadrature-axis transient reactance (X`q) (> =X``q). Typical Value = 0.3. Default: nullptr */ - CIMPP::PU xQuadSubtrans; /* Quadrature-axis subtransient reactance (X``q) (> Xl). Typical Value = 0.2. Default: nullptr */ - CIMPP::Seconds tpdo; /* Direct-axis transient rotor time constant (T`do) (> T``do). Typical Value = 5. Default: nullptr */ - CIMPP::Seconds tppdo; /* Direct-axis subtransient rotor time constant (T``do) (> 0). Typical Value = 0.03. Default: nullptr */ - CIMPP::Seconds tpqo; /* Quadrature-axis transient rotor time constant (T`qo) (> T``qo). Typical Value = 0.5. Default: nullptr */ - CIMPP::Seconds tppqo; /* Quadrature-axis subtransient rotor time constant (T``qo) (> 0). Typical Value = 0.03. Default: nullptr */ - CIMPP::Seconds tc; /* Damping time constant for `Canay` reactance. Typical Value = 0. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - SynchronousMachineTimeConstantReactance(); - virtual ~SynchronousMachineTimeConstantReactance(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* SynchronousMachineTimeConstantReactance_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/SynchronousMachineUserDefined.cpp b/CGMES_2.4.13_18DEC2013/SynchronousMachineUserDefined.cpp deleted file mode 100644 index 0fde574f7..000000000 --- a/CGMES_2.4.13_18DEC2013/SynchronousMachineUserDefined.cpp +++ /dev/null @@ -1,69 +0,0 @@ -#include -#include "SynchronousMachineDynamics.hpp" -#include "SynchronousMachineUserDefined.hpp" - -#include "Boolean.hpp" -#include "ProprietaryParameterDynamics.hpp" - -using namespace CIMPP; - -SynchronousMachineUserDefined::SynchronousMachineUserDefined() {}; - -SynchronousMachineUserDefined::~SynchronousMachineUserDefined() {}; - - - -bool assign_SynchronousMachineUserDefined_ProprietaryParameterDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(SynchronousMachineUserDefined* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->ProprietaryParameterDynamics.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - -bool assign_SynchronousMachineUserDefined_proprietary(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(SynchronousMachineUserDefined* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->proprietary; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -namespace CIMPP { - BaseClass* SynchronousMachineUserDefined_factory() { - return new SynchronousMachineUserDefined; - } -} - -void SynchronousMachineUserDefined::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:SynchronousMachineUserDefined"), &SynchronousMachineUserDefined_factory)); -} - -void SynchronousMachineUserDefined::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:SynchronousMachineUserDefined.proprietary"), &assign_SynchronousMachineUserDefined_proprietary)); - } - -void SynchronousMachineUserDefined::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:SynchronousMachineUserDefined.ProprietaryParameterDynamics"), &assign_SynchronousMachineUserDefined_ProprietaryParameterDynamics)); -} - -const char SynchronousMachineUserDefined::debugName[] = "SynchronousMachineUserDefined"; -const char* SynchronousMachineUserDefined::debugString() -{ - return SynchronousMachineUserDefined::debugName; -} - -const BaseClassDefiner SynchronousMachineUserDefined::declare() -{ - return BaseClassDefiner(SynchronousMachineUserDefined::addConstructToMap, SynchronousMachineUserDefined::addPrimitiveAssignFnsToMap, SynchronousMachineUserDefined::addClassAssignFnsToMap, SynchronousMachineUserDefined::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/SynchronousMachineUserDefined.hpp b/CGMES_2.4.13_18DEC2013/SynchronousMachineUserDefined.hpp deleted file mode 100644 index 9d3cf5a0d..000000000 --- a/CGMES_2.4.13_18DEC2013/SynchronousMachineUserDefined.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef SynchronousMachineUserDefined_H -#define SynchronousMachineUserDefined_H - -#include "SynchronousMachineDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Boolean.hpp" - -namespace CIMPP { - - -class ProprietaryParameterDynamics; - /* - Synchronous machine whose dynamic behaviour is described by a user-defined model. - */ - class SynchronousMachineUserDefined: public SynchronousMachineDynamics - { - - public: - CIMPP::Boolean proprietary; /* Behaviour is based on proprietary model as opposed to detailed model. true = user-defined model is proprietary with behaviour mutually understood by sending and receiving applications and parameters passed as general attributes false = user-defined model is explicitly defined in terms of control blocks and their input and output signals. Default: false */ - std::list ProprietaryParameterDynamics; /* Parameter of this proprietary user-defined model. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - SynchronousMachineUserDefined(); - virtual ~SynchronousMachineUserDefined(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* SynchronousMachineUserDefined_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/TapChanger.cpp b/CGMES_2.4.13_18DEC2013/TapChanger.cpp deleted file mode 100644 index a66eb07d8..000000000 --- a/CGMES_2.4.13_18DEC2013/TapChanger.cpp +++ /dev/null @@ -1,199 +0,0 @@ -#include -#include "PowerSystemResource.hpp" -#include "TapChanger.hpp" - -#include "Boolean.hpp" -#include "Simple_Float.hpp" -#include "Integer.hpp" -#include "Integer.hpp" -#include "Boolean.hpp" -#include "Integer.hpp" -#include "Voltage.hpp" -#include "Integer.hpp" -#include "TapChangerControl.hpp" -#include "TapSchedule.hpp" -#include "SvTapStep.hpp" - -using namespace CIMPP; - -TapChanger::TapChanger(): TapChangerControl(nullptr), SvTapStep(nullptr) {}; - -TapChanger::~TapChanger() {}; - - - - - - - - - - -bool assign_TapChangerControl_TapChanger(BaseClass*, BaseClass*); -bool assign_TapChanger_TapChangerControl(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(TapChanger* element = dynamic_cast(BaseClass_ptr1)) { - element->TapChangerControl = dynamic_cast(BaseClass_ptr2); - if(element->TapChangerControl != nullptr) - return assign_TapChangerControl_TapChanger(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_TapChanger_TapSchedules(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(TapChanger* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->TapSchedules.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_TapChanger_SvTapStep(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(TapChanger* element = dynamic_cast(BaseClass_ptr1)) { - element->SvTapStep = dynamic_cast(BaseClass_ptr2); - if(element->SvTapStep != nullptr) - return true; - } - return false; -} - - -bool assign_TapChanger_controlEnabled(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(TapChanger* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->controlEnabled; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_TapChanger_step(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(TapChanger* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->step; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_TapChanger_highStep(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(TapChanger* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->highStep; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_TapChanger_lowStep(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(TapChanger* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->lowStep; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_TapChanger_ltcFlag(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(TapChanger* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ltcFlag; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_TapChanger_neutralStep(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(TapChanger* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->neutralStep; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_TapChanger_neutralU(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(TapChanger* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->neutralU; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_TapChanger_normalStep(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(TapChanger* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->normalStep; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - - - -namespace CIMPP { - BaseClass* TapChanger_factory() { - return new TapChanger; - } -} - -void TapChanger::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:TapChanger"), &TapChanger_factory)); -} - -void TapChanger::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:TapChanger.controlEnabled"), &assign_TapChanger_controlEnabled)); - assign_map.insert(std::make_pair(std::string("cim:TapChanger.step"), &assign_TapChanger_step)); - assign_map.insert(std::make_pair(std::string("cim:TapChanger.highStep"), &assign_TapChanger_highStep)); - assign_map.insert(std::make_pair(std::string("cim:TapChanger.lowStep"), &assign_TapChanger_lowStep)); - assign_map.insert(std::make_pair(std::string("cim:TapChanger.ltcFlag"), &assign_TapChanger_ltcFlag)); - assign_map.insert(std::make_pair(std::string("cim:TapChanger.neutralStep"), &assign_TapChanger_neutralStep)); - assign_map.insert(std::make_pair(std::string("cim:TapChanger.neutralU"), &assign_TapChanger_neutralU)); - assign_map.insert(std::make_pair(std::string("cim:TapChanger.normalStep"), &assign_TapChanger_normalStep)); - } - -void TapChanger::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:TapChanger.TapChangerControl"), &assign_TapChanger_TapChangerControl)); - assign_map.insert(std::make_pair(std::string("cim:TapChanger.TapSchedules"), &assign_TapChanger_TapSchedules)); - assign_map.insert(std::make_pair(std::string("cim:TapChanger.SvTapStep"), &assign_TapChanger_SvTapStep)); -} - -const char TapChanger::debugName[] = "TapChanger"; -const char* TapChanger::debugString() -{ - return TapChanger::debugName; -} - -const BaseClassDefiner TapChanger::declare() -{ - return BaseClassDefiner(TapChanger::addConstructToMap, TapChanger::addPrimitiveAssignFnsToMap, TapChanger::addClassAssignFnsToMap, TapChanger::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/TapChanger.hpp b/CGMES_2.4.13_18DEC2013/TapChanger.hpp deleted file mode 100644 index 031a9597e..000000000 --- a/CGMES_2.4.13_18DEC2013/TapChanger.hpp +++ /dev/null @@ -1,56 +0,0 @@ -#ifndef TapChanger_H -#define TapChanger_H - -#include "PowerSystemResource.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Boolean.hpp" -#include "Simple_Float.hpp" -#include "Integer.hpp" -#include "Voltage.hpp" - -namespace CIMPP { - - -class TapChangerControl; -class TapSchedule; -class SvTapStep; - /* - Mechanism for changing transformer winding tap positions. - */ - class TapChanger: public PowerSystemResource - { - - public: - CIMPP::Boolean controlEnabled; /* Specifies the regulation status of the equipment. True is regulating, false is not regulating. Default: false */ - CIMPP::Simple_Float step; /* Tap changer position. Starting step for a steady state solution. Non integer values are allowed to support continuous tap variables. The reasons for continuous value are to support study cases where no discrete tap changers has yet been designed, a solutions where a narrow voltage band force the tap step to oscillate or accommodate for a continuous solution as input. The attribute shall be equal or greater than lowStep and equal or less than highStep. Default: nullptr */ - CIMPP::Integer highStep; /* Highest possible tap step position, advance from neutral. The attribute shall be greater than lowStep. Default: 0 */ - CIMPP::Integer lowStep; /* Lowest possible tap step position, retard from neutral Default: 0 */ - CIMPP::Boolean ltcFlag; /* Specifies whether or not a TapChanger has load tap changing capabilities. Default: false */ - CIMPP::Integer neutralStep; /* The neutral tap step position for this winding. The attribute shall be equal or greater than lowStep and equal or less than highStep. Default: 0 */ - CIMPP::Voltage neutralU; /* Voltage at which the winding operates at the neutral tap setting. Default: nullptr */ - CIMPP::Integer normalStep; /* The tap step position used in `normal` network operation for this winding. For a `Fixed` tap changer indicates the current physical tap setting. The attribute shall be equal or greater than lowStep and equal or less than highStep. Default: 0 */ - CIMPP::TapChangerControl* TapChangerControl; /* The tap changers that participates in this regulating tap control scheme. Default: 0 */ - std::list TapSchedules; /* A TapSchedule is associated with a TapChanger. Default: 0 */ - CIMPP::SvTapStep* SvTapStep; /* The tap step state associated with the tap changer. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - TapChanger(); - virtual ~TapChanger(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* TapChanger_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/TapChangerControl.cpp b/CGMES_2.4.13_18DEC2013/TapChangerControl.cpp deleted file mode 100644 index 3f5295e99..000000000 --- a/CGMES_2.4.13_18DEC2013/TapChangerControl.cpp +++ /dev/null @@ -1,54 +0,0 @@ -#include -#include "RegulatingControl.hpp" -#include "TapChangerControl.hpp" - -#include "TapChanger.hpp" - -using namespace CIMPP; - -TapChangerControl::TapChangerControl() {}; - -TapChangerControl::~TapChangerControl() {}; - - -bool assign_TapChangerControl_TapChanger(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(TapChangerControl* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->TapChanger.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - - -namespace CIMPP { - BaseClass* TapChangerControl_factory() { - return new TapChangerControl; - } -} - -void TapChangerControl::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:TapChangerControl"), &TapChangerControl_factory)); -} - -void TapChangerControl::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void TapChangerControl::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:TapChangerControl.TapChanger"), &assign_TapChangerControl_TapChanger)); -} - -const char TapChangerControl::debugName[] = "TapChangerControl"; -const char* TapChangerControl::debugString() -{ - return TapChangerControl::debugName; -} - -const BaseClassDefiner TapChangerControl::declare() -{ - return BaseClassDefiner(TapChangerControl::addConstructToMap, TapChangerControl::addPrimitiveAssignFnsToMap, TapChangerControl::addClassAssignFnsToMap, TapChangerControl::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/TapChangerControl.hpp b/CGMES_2.4.13_18DEC2013/TapChangerControl.hpp deleted file mode 100644 index e9821b381..000000000 --- a/CGMES_2.4.13_18DEC2013/TapChangerControl.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef TapChangerControl_H -#define TapChangerControl_H - -#include "RegulatingControl.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class TapChanger; - /* - Describes behavior specific to tap changers, e.g. how the voltage at the end of a line varies with the load level and compensation of the voltage drop by tap adjustment. - */ - class TapChangerControl: public RegulatingControl - { - - public: - std::list TapChanger; /* The regulating control scheme in which this tap changer participates. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - TapChangerControl(); - virtual ~TapChangerControl(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* TapChangerControl_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/TapChangerTablePoint.cpp b/CGMES_2.4.13_18DEC2013/TapChangerTablePoint.cpp deleted file mode 100644 index 07ea24148..000000000 --- a/CGMES_2.4.13_18DEC2013/TapChangerTablePoint.cpp +++ /dev/null @@ -1,131 +0,0 @@ -#include -#include "BaseClass.hpp" -#include "TapChangerTablePoint.hpp" - -#include "PerCent.hpp" -#include "PerCent.hpp" -#include "PerCent.hpp" -#include "Simple_Float.hpp" -#include "Integer.hpp" -#include "PerCent.hpp" - -using namespace CIMPP; - -TapChangerTablePoint::TapChangerTablePoint() {}; - -TapChangerTablePoint::~TapChangerTablePoint() {}; - - - - - - - - - -bool assign_TapChangerTablePoint_b(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(TapChangerTablePoint* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->b; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_TapChangerTablePoint_g(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(TapChangerTablePoint* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->g; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_TapChangerTablePoint_r(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(TapChangerTablePoint* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->r; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_TapChangerTablePoint_ratio(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(TapChangerTablePoint* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ratio; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_TapChangerTablePoint_step(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(TapChangerTablePoint* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->step; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_TapChangerTablePoint_x(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(TapChangerTablePoint* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->x; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* TapChangerTablePoint_factory() { - return new TapChangerTablePoint; - } -} - -void TapChangerTablePoint::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:TapChangerTablePoint"), &TapChangerTablePoint_factory)); -} - -void TapChangerTablePoint::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:TapChangerTablePoint.b"), &assign_TapChangerTablePoint_b)); - assign_map.insert(std::make_pair(std::string("cim:TapChangerTablePoint.g"), &assign_TapChangerTablePoint_g)); - assign_map.insert(std::make_pair(std::string("cim:TapChangerTablePoint.r"), &assign_TapChangerTablePoint_r)); - assign_map.insert(std::make_pair(std::string("cim:TapChangerTablePoint.ratio"), &assign_TapChangerTablePoint_ratio)); - assign_map.insert(std::make_pair(std::string("cim:TapChangerTablePoint.step"), &assign_TapChangerTablePoint_step)); - assign_map.insert(std::make_pair(std::string("cim:TapChangerTablePoint.x"), &assign_TapChangerTablePoint_x)); -} - -void TapChangerTablePoint::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char TapChangerTablePoint::debugName[] = "TapChangerTablePoint"; -const char* TapChangerTablePoint::debugString() -{ - return TapChangerTablePoint::debugName; -} - -const BaseClassDefiner TapChangerTablePoint::declare() -{ - return BaseClassDefiner(TapChangerTablePoint::addConstructToMap, TapChangerTablePoint::addPrimitiveAssignFnsToMap, TapChangerTablePoint::addClassAssignFnsToMap, TapChangerTablePoint::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/TapChangerTablePoint.hpp b/CGMES_2.4.13_18DEC2013/TapChangerTablePoint.hpp deleted file mode 100644 index ad798ee16..000000000 --- a/CGMES_2.4.13_18DEC2013/TapChangerTablePoint.hpp +++ /dev/null @@ -1,47 +0,0 @@ -#ifndef TapChangerTablePoint_H -#define TapChangerTablePoint_H - -#include "BaseClass.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PerCent.hpp" -#include "Simple_Float.hpp" -#include "Integer.hpp" - -namespace CIMPP { - - - /* - - */ - class TapChangerTablePoint: public BaseClass - { - - public: - CIMPP::PerCent b; /* The magnetizing branch susceptance deviation in percent of nominal value. The actual susceptance is calculated as follows: calculated magnetizing susceptance = b(nominal) * (1 + b(from this class)/100). The b(nominal) is defined as the static magnetizing susceptance on the associated power transformer end or ends. This model assumes the star impedance (pi model) form. Default: nullptr */ - CIMPP::PerCent g; /* The magnetizing branch conductance deviation in percent of nominal value. The actual conductance is calculated as follows: calculated magnetizing conductance = g(nominal) * (1 + g(from this class)/100). The g(nominal) is defined as the static magnetizing conductance on the associated power transformer end or ends. This model assumes the star impedance (pi model) form. Default: nullptr */ - CIMPP::PerCent r; /* The resistance deviation in percent of nominal value. The actual reactance is calculated as follows: calculated resistance = r(nominal) * (1 + r(from this class)/100). The r(nominal) is defined as the static resistance on the associated power transformer end or ends. This model assumes the star impedance (pi model) form. Default: nullptr */ - CIMPP::Simple_Float ratio; /* The voltage ratio in per unit. Hence this is a value close to one. Default: nullptr */ - CIMPP::Integer step; /* The tap step. Default: 0 */ - CIMPP::PerCent x; /* The series reactance deviation in percent of nominal value. The actual reactance is calculated as follows: calculated reactance = x(nominal) * (1 + x(from this class)/100). The x(nominal) is defined as the static series reactance on the associated power transformer end or ends. This model assumes the star impedance (pi model) form. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - TapChangerTablePoint(); - virtual ~TapChangerTablePoint(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* TapChangerTablePoint_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/TapSchedule.cpp b/CGMES_2.4.13_18DEC2013/TapSchedule.cpp deleted file mode 100644 index 231c62bb5..000000000 --- a/CGMES_2.4.13_18DEC2013/TapSchedule.cpp +++ /dev/null @@ -1,54 +0,0 @@ -#include -#include "SeasonDayTypeSchedule.hpp" -#include "TapSchedule.hpp" - -#include "TapChanger.hpp" - -using namespace CIMPP; - -TapSchedule::TapSchedule(): TapChanger(nullptr) {}; - -TapSchedule::~TapSchedule() {}; - - -bool assign_TapChanger_TapSchedules(BaseClass*, BaseClass*); -bool assign_TapSchedule_TapChanger(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(TapSchedule* element = dynamic_cast(BaseClass_ptr1)) { - element->TapChanger = dynamic_cast(BaseClass_ptr2); - if(element->TapChanger != nullptr) - return assign_TapChanger_TapSchedules(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - -namespace CIMPP { - BaseClass* TapSchedule_factory() { - return new TapSchedule; - } -} - -void TapSchedule::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:TapSchedule"), &TapSchedule_factory)); -} - -void TapSchedule::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void TapSchedule::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:TapSchedule.TapChanger"), &assign_TapSchedule_TapChanger)); -} - -const char TapSchedule::debugName[] = "TapSchedule"; -const char* TapSchedule::debugString() -{ - return TapSchedule::debugName; -} - -const BaseClassDefiner TapSchedule::declare() -{ - return BaseClassDefiner(TapSchedule::addConstructToMap, TapSchedule::addPrimitiveAssignFnsToMap, TapSchedule::addClassAssignFnsToMap, TapSchedule::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/TapSchedule.hpp b/CGMES_2.4.13_18DEC2013/TapSchedule.hpp deleted file mode 100644 index 2249aa7a5..000000000 --- a/CGMES_2.4.13_18DEC2013/TapSchedule.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef TapSchedule_H -#define TapSchedule_H - -#include "SeasonDayTypeSchedule.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class TapChanger; - /* - A pre-established pattern over time for a tap step. - */ - class TapSchedule: public SeasonDayTypeSchedule - { - - public: - CIMPP::TapChanger* TapChanger; /* A TapChanger can have TapSchedules. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - TapSchedule(); - virtual ~TapSchedule(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* TapSchedule_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/Task.cpp b/CGMES_2.4.13_18DEC2013/Task.cpp deleted file mode 100644 index 47f50c291..000000000 --- a/CGMES_2.4.13_18DEC2013/Task.cpp +++ /dev/null @@ -1,59 +0,0 @@ -#include - -#include "Folders.hpp" -#include "CIMClassList.hpp" -#include "Task.hpp" - -using namespace CIMPP; - -typedef bool (*task_function)(BaseClass*, BaseClass*); -static std::unordered_map initialize(); -std::unordered_map Task::dynamic_switch = initialize(); - -Task::Task() {} - -Task::Task(BaseClass* CIMObj, const std::string CIMAttrName, const std::string Value) - : _CIMObj(CIMObj), _CIMAttrName(CIMAttrName), _Value(Value) {} - -Task::~Task() {} - -void Task::print() -{ - if(IdentifiedObject* IdObj = dynamic_cast(_CIMObj)) - std::cout << _CIMAttrName << " '" << IdObj->name << "' = '" << _Value << "'" << std::endl; - else - std::cout << _CIMAttrName << " = '" << _Value << "'" << std::endl; - -} - -bool Task::resolve(std::unordered_map *RDFMap) -{ - std::unordered_map::iterator it_id = RDFMap->find(_Value); - if(it_id == RDFMap->end()) { - std::cerr << "Couldn't find " << _CIMAttrName << " with value: " << _Value << " in RDFMap." << std::endl; - return false; - } - - std::unordered_map::iterator it_func = dynamic_switch.find(_CIMAttrName); - if(it_func == dynamic_switch.end()) { - std::cerr << "Couldn't find " << _CIMAttrName << " in dynamic_switch map." << std::endl; - return false; - } - - if((*it_func->second)(_CIMObj, it_id->second)) - return true; - else - return (*it_func->second)(it_id->second, _CIMObj); -} - -static std::unordered_map initialize() -{ - std::unordered_map object_map; - for (const BaseClassDefiner& CIMClass : CIMClassList) { - CIMClass.addClassAssignFnsToMap(object_map); - } - - return object_map; -} - - diff --git a/CGMES_2.4.13_18DEC2013/Task.hpp b/CGMES_2.4.13_18DEC2013/Task.hpp deleted file mode 100644 index 2dd484a3f..000000000 --- a/CGMES_2.4.13_18DEC2013/Task.hpp +++ /dev/null @@ -1,22 +0,0 @@ -#ifndef TASK_HPP -#define TASK_HPP - -#include -#include -#include "BaseClass.hpp" - -class Task -{ -public: - Task(); - Task(BaseClass* CIMObj, const std::string CIMAttrName, const std::string Value); - ~Task(); - bool resolve(std::unordered_map *RDFMap); - void print(); -private: - BaseClass* _CIMObj; - std::string _CIMAttrName; - std::string _Value; - static std::unordered_map dynamic_switch; -}; -#endif // TASK_HPP diff --git a/CGMES_2.4.13_18DEC2013/Temperature.cpp b/CGMES_2.4.13_18DEC2013/Temperature.cpp deleted file mode 100644 index 7b29f89d5..000000000 --- a/CGMES_2.4.13_18DEC2013/Temperature.cpp +++ /dev/null @@ -1,70 +0,0 @@ -#include "Temperature.hpp" -#include "../src/CIMExceptions.hpp" - -using namespace CIMPP; - -Temperature::Temperature() {} - -Temperature::~Temperature(){} - -Temperature::Temperature(long double value) : value(value), initialized(true) {} - -void Temperature::addConstructToMap(std::unordered_map& factory_map) {} - -void Temperature::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) {} - -void Temperature::addClassAssignFnsToMap(std::unordered_map& assign_map) {} - -const char Temperature::debugName[] = "Temperature"; -const char* Temperature::debugString() { - return Temperature::debugName; -} - - -const BaseClassDefiner Temperature::declare() { - return BaseClassDefiner(Temperature::addConstructToMap, Temperature::addPrimitiveAssignFnsToMap, Temperature::addClassAssignFnsToMap, Temperature::debugName); -} - -namespace CIMPP { - Temperature& Temperature::operator=(long double &rop) { - value = rop; - initialized = true; - return *this; - } - - Temperature& Temperature::operator-=(const Temperature& rhs) { - value -= rhs.value; - return *this; - } - - Temperature& Temperature::operator*=(const Temperature& rhs) { - value *= rhs.value; - return *this; - } - - Temperature& Temperature::operator/=(const Temperature& rhs) { - value /= rhs.value; - return *this; - } - - Temperature& Temperature::operator+=(const Temperature& rhs) { - value += rhs.value; - return *this; - } - - Temperature::operator long double() { - if(!initialized) - { - throw new ReadingUninitializedField(); - } - return value; - } - - std::istream& operator>>(std::istream& lop, Temperature& rop) { - std::string tmp; - lop >> tmp; - rop.value = stold(tmp); - rop.initialized = true; - return lop; - } -} diff --git a/CGMES_2.4.13_18DEC2013/Temperature.hpp b/CGMES_2.4.13_18DEC2013/Temperature.hpp deleted file mode 100644 index e15440197..000000000 --- a/CGMES_2.4.13_18DEC2013/Temperature.hpp +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef Temperature_H -#define Temperature_H - -#include -#include - -#include "BaseClass.hpp" - -namespace CIMPP -{ - class Temperature : public BaseClass - { - - public: - Temperature(); - virtual ~Temperature(); - Temperature(long double value); - static const BaseClassDefiner declare(); - Temperature& operator=(long double &rop); - Temperature& operator+=(const Temperature& rhs); - Temperature& operator-=(const Temperature& rhs); - Temperature& operator*=(const Temperature& rhs); - Temperature& operator/=(const Temperature& rhs); - friend std::istream& operator>>(std::istream& lop, Temperature& rop); - operator long double(); - - long double value = 0.0; - bool initialized = false; - - static const char debugName[]; - virtual const char* debugString(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - }; -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/Terminal.cpp b/CGMES_2.4.13_18DEC2013/Terminal.cpp deleted file mode 100644 index 71370f5dc..000000000 --- a/CGMES_2.4.13_18DEC2013/Terminal.cpp +++ /dev/null @@ -1,196 +0,0 @@ -#include -#include "ACDCTerminal.hpp" -#include "Terminal.hpp" - -#include "TopologicalNode.hpp" -#include "ConductingEquipment.hpp" -#include "ACDCConverter.hpp" -#include "ConnectivityNode.hpp" -#include "PhaseCode.hpp" -#include "MutualCoupling.hpp" -#include "MutualCoupling.hpp" -#include "RegulatingControl.hpp" -#include "TieFlow.hpp" -#include "TransformerEnd.hpp" -#include "SvPowerFlow.hpp" -#include "RemoteInputSignal.hpp" - -using namespace CIMPP; - -Terminal::Terminal(): TopologicalNode(nullptr), ConductingEquipment(nullptr), ConnectivityNode(nullptr), RegulatingControl(nullptr), TieFlow(nullptr), SvPowerFlow(nullptr) {}; - -Terminal::~Terminal() {}; - - -bool assign_TopologicalNode_Terminal(BaseClass*, BaseClass*); -bool assign_Terminal_TopologicalNode(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(Terminal* element = dynamic_cast(BaseClass_ptr1)) { - element->TopologicalNode = dynamic_cast(BaseClass_ptr2); - if(element->TopologicalNode != nullptr) - return assign_TopologicalNode_Terminal(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_ConductingEquipment_Terminals(BaseClass*, BaseClass*); -bool assign_Terminal_ConductingEquipment(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(Terminal* element = dynamic_cast(BaseClass_ptr1)) { - element->ConductingEquipment = dynamic_cast(BaseClass_ptr2); - if(element->ConductingEquipment != nullptr) - return assign_ConductingEquipment_Terminals(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_Terminal_ConverterDCSides(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(Terminal* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->ConverterDCSides.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_ConnectivityNode_Terminals(BaseClass*, BaseClass*); -bool assign_Terminal_ConnectivityNode(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(Terminal* element = dynamic_cast(BaseClass_ptr1)) { - element->ConnectivityNode = dynamic_cast(BaseClass_ptr2); - if(element->ConnectivityNode != nullptr) - return assign_ConnectivityNode_Terminals(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - -bool assign_Terminal_HasFirstMutualCoupling(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(Terminal* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->HasFirstMutualCoupling.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_Terminal_HasSecondMutualCoupling(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(Terminal* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->HasSecondMutualCoupling.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_Terminal_RegulatingControl(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(Terminal* element = dynamic_cast(BaseClass_ptr1)) { - element->RegulatingControl = dynamic_cast(BaseClass_ptr2); - if(element->RegulatingControl != nullptr) - return true; - } - return false; -} - -bool assign_Terminal_TieFlow(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(Terminal* element = dynamic_cast(BaseClass_ptr1)) { - element->TieFlow = dynamic_cast(BaseClass_ptr2); - if(element->TieFlow != nullptr) - return true; - } - return false; -} - -bool assign_Terminal_TransformerEnd(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(Terminal* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->TransformerEnd.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_Terminal_SvPowerFlow(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(Terminal* element = dynamic_cast(BaseClass_ptr1)) { - element->SvPowerFlow = dynamic_cast(BaseClass_ptr2); - if(element->SvPowerFlow != nullptr) - return true; - } - return false; -} - -bool assign_Terminal_RemoteInputSignal(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(Terminal* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->RemoteInputSignal.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - - - - - -bool assign_Terminal_phases(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(Terminal* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->phases; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - - - - - - - -namespace CIMPP { - BaseClass* Terminal_factory() { - return new Terminal; - } -} - -void Terminal::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:Terminal"), &Terminal_factory)); -} - -void Terminal::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:Terminal.phases"), &assign_Terminal_phases)); - } - -void Terminal::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:Terminal.TopologicalNode"), &assign_Terminal_TopologicalNode)); - assign_map.insert(std::make_pair(std::string("cim:Terminal.ConductingEquipment"), &assign_Terminal_ConductingEquipment)); - assign_map.insert(std::make_pair(std::string("cim:Terminal.ConverterDCSides"), &assign_Terminal_ConverterDCSides)); - assign_map.insert(std::make_pair(std::string("cim:Terminal.ConnectivityNode"), &assign_Terminal_ConnectivityNode)); - assign_map.insert(std::make_pair(std::string("cim:Terminal.HasFirstMutualCoupling"), &assign_Terminal_HasFirstMutualCoupling)); - assign_map.insert(std::make_pair(std::string("cim:Terminal.HasSecondMutualCoupling"), &assign_Terminal_HasSecondMutualCoupling)); - assign_map.insert(std::make_pair(std::string("cim:Terminal.RegulatingControl"), &assign_Terminal_RegulatingControl)); - assign_map.insert(std::make_pair(std::string("cim:Terminal.TieFlow"), &assign_Terminal_TieFlow)); - assign_map.insert(std::make_pair(std::string("cim:Terminal.TransformerEnd"), &assign_Terminal_TransformerEnd)); - assign_map.insert(std::make_pair(std::string("cim:Terminal.SvPowerFlow"), &assign_Terminal_SvPowerFlow)); - assign_map.insert(std::make_pair(std::string("cim:Terminal.RemoteInputSignal"), &assign_Terminal_RemoteInputSignal)); -} - -const char Terminal::debugName[] = "Terminal"; -const char* Terminal::debugString() -{ - return Terminal::debugName; -} - -const BaseClassDefiner Terminal::declare() -{ - return BaseClassDefiner(Terminal::addConstructToMap, Terminal::addPrimitiveAssignFnsToMap, Terminal::addClassAssignFnsToMap, Terminal::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/Terminal.hpp b/CGMES_2.4.13_18DEC2013/Terminal.hpp deleted file mode 100644 index d06f80e41..000000000 --- a/CGMES_2.4.13_18DEC2013/Terminal.hpp +++ /dev/null @@ -1,61 +0,0 @@ -#ifndef Terminal_H -#define Terminal_H - -#include "ACDCTerminal.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PhaseCode.hpp" - -namespace CIMPP { - - -class TopologicalNode; -class ConductingEquipment; -class ACDCConverter; -class ConnectivityNode; -class MutualCoupling; -class RegulatingControl; -class TieFlow; -class TransformerEnd; -class SvPowerFlow; -class RemoteInputSignal; - /* - An AC electrical connection point to a piece of conducting equipment. Terminals are connected at physical connection points called connectivity nodes. - */ - class Terminal: public ACDCTerminal - { - - public: - CIMPP::TopologicalNode* TopologicalNode; /* The terminals associated with the topological node. This can be used as an alternative to the connectivity node path to terminal, thus making it unneccesary to model connectivity nodes in some cases. Note that if connectivity nodes are in the model, this association would probably not be used as an input specification. Default: 0 */ - CIMPP::ConductingEquipment* ConductingEquipment; /* The conducting equipment of the terminal. Conducting equipment have terminals that may be connected to other conducting equipment terminals via connectivity nodes or topological nodes. Default: 0 */ - std::list ConverterDCSides; /* Point of common coupling terminal for this converter DC side. It is typically the terminal on the power transformer (or switch) closest to the AC network. The power flow measurement must be the sum of all flows into the transformer. Default: 0 */ - CIMPP::ConnectivityNode* ConnectivityNode; /* Terminals interconnected with zero impedance at a this connectivity node. Default: 0 */ - CIMPP::PhaseCode phases; /* Represents the normal network phasing condition. If the attribute is missing three phases (ABC or ABCN) shall be assumed. Default: 0 */ - std::list HasFirstMutualCoupling; /* Mutual couplings associated with the branch as the first branch. Default: 0 */ - std::list HasSecondMutualCoupling; /* Mutual couplings with the branch associated as the first branch. Default: 0 */ - CIMPP::RegulatingControl* RegulatingControl; /* The terminal associated with this regulating control. The terminal is associated instead of a node, since the terminal could connect into either a topological node (bus in bus-branch model) or a connectivity node (detailed switch model). Sometimes it is useful to model regulation at a terminal of a bus bar object since the bus bar can be present in both a bus-branch model or a model with switch detail. Default: 0 */ - CIMPP::TieFlow* TieFlow; /* The control area tie flows to which this terminal associates. Default: 0 */ - std::list TransformerEnd; /* All transformer ends connected at this terminal. Default: 0 */ - CIMPP::SvPowerFlow* SvPowerFlow; /* The power flow state variable associated with the terminal. Default: 0 */ - std::list RemoteInputSignal; /* Input signal coming from this terminal. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - Terminal(); - virtual ~Terminal(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* Terminal_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/TextDiagramObject.cpp b/CGMES_2.4.13_18DEC2013/TextDiagramObject.cpp deleted file mode 100644 index f8486b0ce..000000000 --- a/CGMES_2.4.13_18DEC2013/TextDiagramObject.cpp +++ /dev/null @@ -1,55 +0,0 @@ -#include -#include "DiagramObject.hpp" -#include "TextDiagramObject.hpp" - -#include "String.hpp" - -using namespace CIMPP; - -TextDiagramObject::TextDiagramObject() {}; - -TextDiagramObject::~TextDiagramObject() {}; - - - - -bool assign_TextDiagramObject_text(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(TextDiagramObject* element = dynamic_cast(BaseClass_ptr1)) { - element->text = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -namespace CIMPP { - BaseClass* TextDiagramObject_factory() { - return new TextDiagramObject; - } -} - -void TextDiagramObject::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:TextDiagramObject"), &TextDiagramObject_factory)); -} - -void TextDiagramObject::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:TextDiagramObject.text"), &assign_TextDiagramObject_text)); -} - -void TextDiagramObject::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char TextDiagramObject::debugName[] = "TextDiagramObject"; -const char* TextDiagramObject::debugString() -{ - return TextDiagramObject::debugName; -} - -const BaseClassDefiner TextDiagramObject::declare() -{ - return BaseClassDefiner(TextDiagramObject::addConstructToMap, TextDiagramObject::addPrimitiveAssignFnsToMap, TextDiagramObject::addClassAssignFnsToMap, TextDiagramObject::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/TextDiagramObject.hpp b/CGMES_2.4.13_18DEC2013/TextDiagramObject.hpp deleted file mode 100644 index 2e7c4c272..000000000 --- a/CGMES_2.4.13_18DEC2013/TextDiagramObject.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef TextDiagramObject_H -#define TextDiagramObject_H - -#include "DiagramObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "String.hpp" - -namespace CIMPP { - - - /* - A diagram object for placing free-text or text derived from an associated domain object. - */ - class TextDiagramObject: public DiagramObject - { - - public: - CIMPP::String text; /* The text that is displayed by this text diagram object. Default: '' */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - TextDiagramObject(); - virtual ~TextDiagramObject(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* TextDiagramObject_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ThermalGeneratingUnit.cpp b/CGMES_2.4.13_18DEC2013/ThermalGeneratingUnit.cpp deleted file mode 100644 index b99b3b9f5..000000000 --- a/CGMES_2.4.13_18DEC2013/ThermalGeneratingUnit.cpp +++ /dev/null @@ -1,54 +0,0 @@ -#include -#include "GeneratingUnit.hpp" -#include "ThermalGeneratingUnit.hpp" - -#include "FossilFuel.hpp" - -using namespace CIMPP; - -ThermalGeneratingUnit::ThermalGeneratingUnit() {}; - -ThermalGeneratingUnit::~ThermalGeneratingUnit() {}; - - -bool assign_ThermalGeneratingUnit_FossilFuels(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ThermalGeneratingUnit* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->FossilFuels.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - - -namespace CIMPP { - BaseClass* ThermalGeneratingUnit_factory() { - return new ThermalGeneratingUnit; - } -} - -void ThermalGeneratingUnit::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ThermalGeneratingUnit"), &ThermalGeneratingUnit_factory)); -} - -void ThermalGeneratingUnit::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void ThermalGeneratingUnit::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ThermalGeneratingUnit.FossilFuels"), &assign_ThermalGeneratingUnit_FossilFuels)); -} - -const char ThermalGeneratingUnit::debugName[] = "ThermalGeneratingUnit"; -const char* ThermalGeneratingUnit::debugString() -{ - return ThermalGeneratingUnit::debugName; -} - -const BaseClassDefiner ThermalGeneratingUnit::declare() -{ - return BaseClassDefiner(ThermalGeneratingUnit::addConstructToMap, ThermalGeneratingUnit::addPrimitiveAssignFnsToMap, ThermalGeneratingUnit::addClassAssignFnsToMap, ThermalGeneratingUnit::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ThermalGeneratingUnit.hpp b/CGMES_2.4.13_18DEC2013/ThermalGeneratingUnit.hpp deleted file mode 100644 index db6b51ce3..000000000 --- a/CGMES_2.4.13_18DEC2013/ThermalGeneratingUnit.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef ThermalGeneratingUnit_H -#define ThermalGeneratingUnit_H - -#include "GeneratingUnit.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class FossilFuel; - /* - A generating unit whose prime mover could be a steam turbine, combustion turbine, or diesel engine. - */ - class ThermalGeneratingUnit: public GeneratingUnit - { - - public: - std::list FossilFuels; /* A thermal generating unit may have one or more fossil fuels. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ThermalGeneratingUnit(); - virtual ~ThermalGeneratingUnit(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ThermalGeneratingUnit_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/TieFlow.cpp b/CGMES_2.4.13_18DEC2013/TieFlow.cpp deleted file mode 100644 index e7e5bc532..000000000 --- a/CGMES_2.4.13_18DEC2013/TieFlow.cpp +++ /dev/null @@ -1,82 +0,0 @@ -#include -#include "BaseClass.hpp" -#include "TieFlow.hpp" - -#include "Terminal.hpp" -#include "ControlArea.hpp" -#include "Boolean.hpp" - -using namespace CIMPP; - -TieFlow::TieFlow(): Terminal(nullptr), ControlArea(nullptr) {}; - -TieFlow::~TieFlow() {}; - - -bool assign_Terminal_TieFlow(BaseClass*, BaseClass*); -bool assign_TieFlow_Terminal(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(TieFlow* element = dynamic_cast(BaseClass_ptr1)) { - element->Terminal = dynamic_cast(BaseClass_ptr2); - if(element->Terminal != nullptr) - return assign_Terminal_TieFlow(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_ControlArea_TieFlow(BaseClass*, BaseClass*); -bool assign_TieFlow_ControlArea(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(TieFlow* element = dynamic_cast(BaseClass_ptr1)) { - element->ControlArea = dynamic_cast(BaseClass_ptr2); - if(element->ControlArea != nullptr) - return assign_ControlArea_TieFlow(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - - - -bool assign_TieFlow_positiveFlowIn(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(TieFlow* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->positiveFlowIn; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* TieFlow_factory() { - return new TieFlow; - } -} - -void TieFlow::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:TieFlow"), &TieFlow_factory)); -} - -void TieFlow::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:TieFlow.positiveFlowIn"), &assign_TieFlow_positiveFlowIn)); -} - -void TieFlow::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:TieFlow.Terminal"), &assign_TieFlow_Terminal)); - assign_map.insert(std::make_pair(std::string("cim:TieFlow.ControlArea"), &assign_TieFlow_ControlArea)); - } - -const char TieFlow::debugName[] = "TieFlow"; -const char* TieFlow::debugString() -{ - return TieFlow::debugName; -} - -const BaseClassDefiner TieFlow::declare() -{ - return BaseClassDefiner(TieFlow::addConstructToMap, TieFlow::addPrimitiveAssignFnsToMap, TieFlow::addClassAssignFnsToMap, TieFlow::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/TieFlow.hpp b/CGMES_2.4.13_18DEC2013/TieFlow.hpp deleted file mode 100644 index e9f044a7c..000000000 --- a/CGMES_2.4.13_18DEC2013/TieFlow.hpp +++ /dev/null @@ -1,44 +0,0 @@ -#ifndef TieFlow_H -#define TieFlow_H - -#include "BaseClass.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Boolean.hpp" - -namespace CIMPP { - - -class Terminal; -class ControlArea; - /* - A flow specification in terms of location and direction for a control area. - */ - class TieFlow: public BaseClass - { - - public: - CIMPP::Terminal* Terminal; /* The terminal to which this tie flow belongs. Default: 0 */ - CIMPP::ControlArea* ControlArea; /* The control area of the tie flows. Default: 0 */ - CIMPP::Boolean positiveFlowIn; /* True if the flow into the terminal (load convention) is also flow into the control area. For example, this attribute should be true if using the tie line terminal further away from the control area. For example to represent a tie to a shunt component (like a load or generator) in another area, this is the near end of a branch and this attribute would be specified as false. Default: false */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - TieFlow(); - virtual ~TieFlow(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* TieFlow_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/TopologicalIsland.cpp b/CGMES_2.4.13_18DEC2013/TopologicalIsland.cpp deleted file mode 100644 index baf70c708..000000000 --- a/CGMES_2.4.13_18DEC2013/TopologicalIsland.cpp +++ /dev/null @@ -1,67 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "TopologicalIsland.hpp" - -#include "TopologicalNode.hpp" -#include "TopologicalNode.hpp" - -using namespace CIMPP; - -TopologicalIsland::TopologicalIsland(): AngleRefTopologicalNode(nullptr) {}; - -TopologicalIsland::~TopologicalIsland() {}; - - -bool assign_TopologicalNode_AngleRefTopologicalIsland(BaseClass*, BaseClass*); -bool assign_TopologicalIsland_AngleRefTopologicalNode(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(TopologicalIsland* element = dynamic_cast(BaseClass_ptr1)) { - element->AngleRefTopologicalNode = dynamic_cast(BaseClass_ptr2); - if(element->AngleRefTopologicalNode != nullptr) - return assign_TopologicalNode_AngleRefTopologicalIsland(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_TopologicalIsland_TopologicalNodes(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(TopologicalIsland* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->TopologicalNodes.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - - - -namespace CIMPP { - BaseClass* TopologicalIsland_factory() { - return new TopologicalIsland; - } -} - -void TopologicalIsland::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:TopologicalIsland"), &TopologicalIsland_factory)); -} - -void TopologicalIsland::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void TopologicalIsland::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:TopologicalIsland.AngleRefTopologicalNode"), &assign_TopologicalIsland_AngleRefTopologicalNode)); - assign_map.insert(std::make_pair(std::string("cim:TopologicalIsland.TopologicalNodes"), &assign_TopologicalIsland_TopologicalNodes)); -} - -const char TopologicalIsland::debugName[] = "TopologicalIsland"; -const char* TopologicalIsland::debugString() -{ - return TopologicalIsland::debugName; -} - -const BaseClassDefiner TopologicalIsland::declare() -{ - return BaseClassDefiner(TopologicalIsland::addConstructToMap, TopologicalIsland::addPrimitiveAssignFnsToMap, TopologicalIsland::addClassAssignFnsToMap, TopologicalIsland::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/TopologicalIsland.hpp b/CGMES_2.4.13_18DEC2013/TopologicalIsland.hpp deleted file mode 100644 index 74cbc0821..000000000 --- a/CGMES_2.4.13_18DEC2013/TopologicalIsland.hpp +++ /dev/null @@ -1,41 +0,0 @@ -#ifndef TopologicalIsland_H -#define TopologicalIsland_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class TopologicalNode; - /* - An electrically connected subset of the network. Topological islands can change as the current network state changes: e.g. due to - disconnect switches or breakers change state in a SCADA/EMS - manual creation, change or deletion of topological nodes in a planning tool. - */ - class TopologicalIsland: public IdentifiedObject - { - - public: - CIMPP::TopologicalNode* AngleRefTopologicalNode; /* The angle reference for the island. Normally there is one TopologicalNode that is selected as the angle reference for each island. Other reference schemes exist, so the association is typically optional. Default: 0 */ - std::list TopologicalNodes; /* A topological node belongs to a topological island. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - TopologicalIsland(); - virtual ~TopologicalIsland(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* TopologicalIsland_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/TopologicalNode.cpp b/CGMES_2.4.13_18DEC2013/TopologicalNode.cpp deleted file mode 100644 index 7de2de9f0..000000000 --- a/CGMES_2.4.13_18DEC2013/TopologicalNode.cpp +++ /dev/null @@ -1,253 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "TopologicalNode.hpp" - -#include "BaseVoltage.hpp" -#include "ConnectivityNode.hpp" -#include "ConnectivityNodeContainer.hpp" -#include "ReportingGroup.hpp" -#include "Terminal.hpp" -#include "Boolean.hpp" -#include "String.hpp" -#include "String.hpp" -#include "String.hpp" -#include "String.hpp" -#include "String.hpp" -#include "String.hpp" -#include "SvInjection.hpp" -#include "SvVoltage.hpp" -#include "TopologicalIsland.hpp" -#include "TopologicalIsland.hpp" - -using namespace CIMPP; - -TopologicalNode::TopologicalNode(): BaseVoltage(nullptr), ConnectivityNodeContainer(nullptr), ReportingGroup(nullptr), SvInjection(nullptr), SvVoltage(nullptr), AngleRefTopologicalIsland(nullptr), TopologicalIsland(nullptr) {}; - -TopologicalNode::~TopologicalNode() {}; - - -bool assign_BaseVoltage_TopologicalNode(BaseClass*, BaseClass*); -bool assign_TopologicalNode_BaseVoltage(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(TopologicalNode* element = dynamic_cast(BaseClass_ptr1)) { - element->BaseVoltage = dynamic_cast(BaseClass_ptr2); - if(element->BaseVoltage != nullptr) - return assign_BaseVoltage_TopologicalNode(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_TopologicalNode_ConnectivityNodes(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(TopologicalNode* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->ConnectivityNodes.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_ConnectivityNodeContainer_TopologicalNode(BaseClass*, BaseClass*); -bool assign_TopologicalNode_ConnectivityNodeContainer(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(TopologicalNode* element = dynamic_cast(BaseClass_ptr1)) { - element->ConnectivityNodeContainer = dynamic_cast(BaseClass_ptr2); - if(element->ConnectivityNodeContainer != nullptr) - return assign_ConnectivityNodeContainer_TopologicalNode(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_ReportingGroup_TopologicalNode(BaseClass*, BaseClass*); -bool assign_TopologicalNode_ReportingGroup(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(TopologicalNode* element = dynamic_cast(BaseClass_ptr1)) { - element->ReportingGroup = dynamic_cast(BaseClass_ptr2); - if(element->ReportingGroup != nullptr) - return assign_ReportingGroup_TopologicalNode(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_TopologicalNode_Terminal(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(TopologicalNode* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->Terminal.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - - - - - - - -bool assign_TopologicalNode_SvInjection(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(TopologicalNode* element = dynamic_cast(BaseClass_ptr1)) { - element->SvInjection = dynamic_cast(BaseClass_ptr2); - if(element->SvInjection != nullptr) - return true; - } - return false; -} - -bool assign_TopologicalNode_SvVoltage(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(TopologicalNode* element = dynamic_cast(BaseClass_ptr1)) { - element->SvVoltage = dynamic_cast(BaseClass_ptr2); - if(element->SvVoltage != nullptr) - return true; - } - return false; -} - -bool assign_TopologicalNode_AngleRefTopologicalIsland(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(TopologicalNode* element = dynamic_cast(BaseClass_ptr1)) { - element->AngleRefTopologicalIsland = dynamic_cast(BaseClass_ptr2); - if(element->AngleRefTopologicalIsland != nullptr) - return true; - } - return false; -} - -bool assign_TopologicalNode_TopologicalIsland(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(TopologicalNode* element = dynamic_cast(BaseClass_ptr1)) { - element->TopologicalIsland = dynamic_cast(BaseClass_ptr2); - if(element->TopologicalIsland != nullptr) - return true; - } - return false; -} - - - - - - - -bool assign_TopologicalNode_boundaryPoint(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(TopologicalNode* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->boundaryPoint; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_TopologicalNode_fromEndIsoCode(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(TopologicalNode* element = dynamic_cast(BaseClass_ptr1)) { - element->fromEndIsoCode = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_TopologicalNode_fromEndName(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(TopologicalNode* element = dynamic_cast(BaseClass_ptr1)) { - element->fromEndName = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_TopologicalNode_fromEndNameTso(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(TopologicalNode* element = dynamic_cast(BaseClass_ptr1)) { - element->fromEndNameTso = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_TopologicalNode_toEndIsoCode(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(TopologicalNode* element = dynamic_cast(BaseClass_ptr1)) { - element->toEndIsoCode = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_TopologicalNode_toEndName(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(TopologicalNode* element = dynamic_cast(BaseClass_ptr1)) { - element->toEndName = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_TopologicalNode_toEndNameTso(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(TopologicalNode* element = dynamic_cast(BaseClass_ptr1)) { - element->toEndNameTso = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - - - - - -namespace CIMPP { - BaseClass* TopologicalNode_factory() { - return new TopologicalNode; - } -} - -void TopologicalNode::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:TopologicalNode"), &TopologicalNode_factory)); -} - -void TopologicalNode::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:TopologicalNode.boundaryPoint"), &assign_TopologicalNode_boundaryPoint)); - assign_map.insert(std::make_pair(std::string("cim:TopologicalNode.fromEndIsoCode"), &assign_TopologicalNode_fromEndIsoCode)); - assign_map.insert(std::make_pair(std::string("cim:TopologicalNode.fromEndName"), &assign_TopologicalNode_fromEndName)); - assign_map.insert(std::make_pair(std::string("cim:TopologicalNode.fromEndNameTso"), &assign_TopologicalNode_fromEndNameTso)); - assign_map.insert(std::make_pair(std::string("cim:TopologicalNode.toEndIsoCode"), &assign_TopologicalNode_toEndIsoCode)); - assign_map.insert(std::make_pair(std::string("cim:TopologicalNode.toEndName"), &assign_TopologicalNode_toEndName)); - assign_map.insert(std::make_pair(std::string("cim:TopologicalNode.toEndNameTso"), &assign_TopologicalNode_toEndNameTso)); - } - -void TopologicalNode::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:TopologicalNode.BaseVoltage"), &assign_TopologicalNode_BaseVoltage)); - assign_map.insert(std::make_pair(std::string("cim:TopologicalNode.ConnectivityNodes"), &assign_TopologicalNode_ConnectivityNodes)); - assign_map.insert(std::make_pair(std::string("cim:TopologicalNode.ConnectivityNodeContainer"), &assign_TopologicalNode_ConnectivityNodeContainer)); - assign_map.insert(std::make_pair(std::string("cim:TopologicalNode.ReportingGroup"), &assign_TopologicalNode_ReportingGroup)); - assign_map.insert(std::make_pair(std::string("cim:TopologicalNode.Terminal"), &assign_TopologicalNode_Terminal)); - assign_map.insert(std::make_pair(std::string("cim:TopologicalNode.SvInjection"), &assign_TopologicalNode_SvInjection)); - assign_map.insert(std::make_pair(std::string("cim:TopologicalNode.SvVoltage"), &assign_TopologicalNode_SvVoltage)); - assign_map.insert(std::make_pair(std::string("cim:TopologicalNode.AngleRefTopologicalIsland"), &assign_TopologicalNode_AngleRefTopologicalIsland)); - assign_map.insert(std::make_pair(std::string("cim:TopologicalNode.TopologicalIsland"), &assign_TopologicalNode_TopologicalIsland)); -} - -const char TopologicalNode::debugName[] = "TopologicalNode"; -const char* TopologicalNode::debugString() -{ - return TopologicalNode::debugName; -} - -const BaseClassDefiner TopologicalNode::declare() -{ - return BaseClassDefiner(TopologicalNode::addConstructToMap, TopologicalNode::addPrimitiveAssignFnsToMap, TopologicalNode::addClassAssignFnsToMap, TopologicalNode::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/TopologicalNode.hpp b/CGMES_2.4.13_18DEC2013/TopologicalNode.hpp deleted file mode 100644 index b3a67dd6d..000000000 --- a/CGMES_2.4.13_18DEC2013/TopologicalNode.hpp +++ /dev/null @@ -1,64 +0,0 @@ -#ifndef TopologicalNode_H -#define TopologicalNode_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Boolean.hpp" -#include "String.hpp" - -namespace CIMPP { - - -class BaseVoltage; -class ConnectivityNode; -class ConnectivityNodeContainer; -class ReportingGroup; -class Terminal; -class SvInjection; -class SvVoltage; -class TopologicalIsland; - /* - For a detailed substation model a topological node is a set of connectivity nodes that, in the current network state, are connected together through any type of closed switches, including jumpers. Topological nodes change as the current network state changes (i.e., switches, breakers, etc. change state). For a planning model, switch statuses are not used to form topological nodes. Instead they are manually created or deleted in a model builder tool. Topological nodes maintained this way are also called "busses". - */ - class TopologicalNode: public IdentifiedObject - { - - public: - CIMPP::BaseVoltage* BaseVoltage; /* The base voltage of the topologocial node. Default: 0 */ - std::list ConnectivityNodes; /* The topological node to which this connectivity node is assigned. May depend on the current state of switches in the network. Default: 0 */ - CIMPP::ConnectivityNodeContainer* ConnectivityNodeContainer; /* The connectivity node container to which the toplogical node belongs. Default: 0 */ - CIMPP::ReportingGroup* ReportingGroup; /* The topological nodes that belong to the reporting group. Default: 0 */ - std::list Terminal; /* The topological node associated with the terminal. This can be used as an alternative to the connectivity node path to topological node, thus making it unneccesary to model connectivity nodes in some cases. Note that the if connectivity nodes are in the model, this association would probably not be used as an input specification. Default: 0 */ - CIMPP::Boolean boundaryPoint; /* Identifies if a node is a BoundaryPoint. If boundaryPoint=true the ConnectivityNode or the TopologicalNode represents a BoundaryPoint. Default: false */ - CIMPP::String fromEndIsoCode; /* The attribute is used for an exchange of the ISO code of the region to which the `From` side of the Boundary point belongs to or it is connected to. The ISO code is two characters country code as defined by ISO 3166 (). The length of the string is 2 characters maximum. The attribute is a required for the Boundary Model Authority Set where this attribute is used only for the TopologicalNode in the Boundary Topology profile and ConnectivityNode in the Boundary Equipment profile. Default: '' */ - CIMPP::String fromEndName; /* The attribute is used for an exchange of a human readable name with length of the string 32 characters maximum. The attribute covers two cases: The attribute is required for the Boundary Model Authority Set where it is used only for the TopologicalNode in the Boundary Topology profile and ConnectivityNode in the Boundary Equipment profile. Default: '' */ - CIMPP::String fromEndNameTso; /* The attribute is used for an exchange of the name of the TSO to which the `From` side of the Boundary point belongs to or it is connected to. The length of the string is 32 characters maximum. The attribute is required for the Boundary Model Authority Set where it is used only for the TopologicalNode in the Boundary Topology profile and ConnectivityNode in the Boundary Equipment profile. Default: '' */ - CIMPP::String toEndIsoCode; /* The attribute is used for an exchange of the ISO code of the region to which the `To` side of the Boundary point belongs to or it is connected to. The ISO code is two characters country code as defined by ISO 3166 (). The length of the string is 2 characters maximum. The attribute is a required for the Boundary Model Authority Set where this attribute is used only for the TopologicalNode in the Boundary Topology profile and ConnectivityNode in the Boundary Equipment profile. Default: '' */ - CIMPP::String toEndName; /* The attribute is used for an exchange of a human readable name with length of the string 32 characters maximum. The attribute covers two cases: The attribute is required for the Boundary Model Authority Set where it is used only for the TopologicalNode in the Boundary Topology profile and ConnectivityNode in the Boundary Equipment profile. Default: '' */ - CIMPP::String toEndNameTso; /* The attribute is used for an exchange of the name of the TSO to which the `To` side of the Boundary point belongs to or it is connected to. The length of the string is 32 characters maximum. The attribute is required for the Boundary Model Authority Set where it is used only for the TopologicalNode in the Boundary Topology profile and ConnectivityNode in the Boundary Equipment profile. Default: '' */ - CIMPP::SvInjection* SvInjection; /* The topological node associated with the flow injection state variable. Default: 0 */ - CIMPP::SvVoltage* SvVoltage; /* The topological node associated with the voltage state. Default: 0 */ - CIMPP::TopologicalIsland* AngleRefTopologicalIsland; /* The island for which the node is an angle reference. Normally there is one angle reference node for each island. Default: 0 */ - CIMPP::TopologicalIsland* TopologicalIsland; /* A topological node belongs to a topological island. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - TopologicalNode(); - virtual ~TopologicalNode(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* TopologicalNode_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/TopologyBoundaryVersion.cpp b/CGMES_2.4.13_18DEC2013/TopologyBoundaryVersion.cpp deleted file mode 100644 index 5ceb28277..000000000 --- a/CGMES_2.4.13_18DEC2013/TopologyBoundaryVersion.cpp +++ /dev/null @@ -1,179 +0,0 @@ -#include -#include "BaseClass.hpp" -#include "TopologyBoundaryVersion.hpp" - -#include "String.hpp" -#include "String.hpp" -#include "Date.hpp" -#include "String.hpp" -#include "String.hpp" -#include "String.hpp" -#include "String.hpp" -#include "String.hpp" -#include "String.hpp" -#include "String.hpp" - -using namespace CIMPP; - -TopologyBoundaryVersion::TopologyBoundaryVersion(): date(nullptr) {}; - -TopologyBoundaryVersion::~TopologyBoundaryVersion() {}; - - - - -bool assign_TopologyBoundaryVersion_date(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(TopologyBoundaryVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->date = dynamic_cast(BaseClass_ptr2); - if(element->date != nullptr) - return true; - } - return false; -} - - - - - - - - - -bool assign_TopologyBoundaryVersion_baseUML(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(TopologyBoundaryVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->baseUML = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_TopologyBoundaryVersion_baseURI(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(TopologyBoundaryVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->baseURI = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - - -bool assign_TopologyBoundaryVersion_differenceModelURI(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(TopologyBoundaryVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->differenceModelURI = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_TopologyBoundaryVersion_entsoeUML(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(TopologyBoundaryVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->entsoeUML = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_TopologyBoundaryVersion_entsoeURI(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(TopologyBoundaryVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->entsoeURI = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_TopologyBoundaryVersion_modelDescriptionURI(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(TopologyBoundaryVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->modelDescriptionURI = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_TopologyBoundaryVersion_namespaceRDF(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(TopologyBoundaryVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->namespaceRDF = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_TopologyBoundaryVersion_namespaceUML(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(TopologyBoundaryVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->namespaceUML = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_TopologyBoundaryVersion_shortName(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(TopologyBoundaryVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->shortName = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -namespace CIMPP { - BaseClass* TopologyBoundaryVersion_factory() { - return new TopologyBoundaryVersion; - } -} - -void TopologyBoundaryVersion::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:TopologyBoundaryVersion"), &TopologyBoundaryVersion_factory)); -} - -void TopologyBoundaryVersion::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:TopologyBoundaryVersion.baseUML"), &assign_TopologyBoundaryVersion_baseUML)); - assign_map.insert(std::make_pair(std::string("cim:TopologyBoundaryVersion.baseURI"), &assign_TopologyBoundaryVersion_baseURI)); - assign_map.insert(std::make_pair(std::string("cim:TopologyBoundaryVersion.differenceModelURI"), &assign_TopologyBoundaryVersion_differenceModelURI)); - assign_map.insert(std::make_pair(std::string("cim:TopologyBoundaryVersion.entsoeUML"), &assign_TopologyBoundaryVersion_entsoeUML)); - assign_map.insert(std::make_pair(std::string("cim:TopologyBoundaryVersion.entsoeURI"), &assign_TopologyBoundaryVersion_entsoeURI)); - assign_map.insert(std::make_pair(std::string("cim:TopologyBoundaryVersion.modelDescriptionURI"), &assign_TopologyBoundaryVersion_modelDescriptionURI)); - assign_map.insert(std::make_pair(std::string("cim:TopologyBoundaryVersion.namespaceRDF"), &assign_TopologyBoundaryVersion_namespaceRDF)); - assign_map.insert(std::make_pair(std::string("cim:TopologyBoundaryVersion.namespaceUML"), &assign_TopologyBoundaryVersion_namespaceUML)); - assign_map.insert(std::make_pair(std::string("cim:TopologyBoundaryVersion.shortName"), &assign_TopologyBoundaryVersion_shortName)); -} - -void TopologyBoundaryVersion::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:TopologyBoundaryVersion.date"), &assign_TopologyBoundaryVersion_date)); - } - -const char TopologyBoundaryVersion::debugName[] = "TopologyBoundaryVersion"; -const char* TopologyBoundaryVersion::debugString() -{ - return TopologyBoundaryVersion::debugName; -} - -const BaseClassDefiner TopologyBoundaryVersion::declare() -{ - return BaseClassDefiner(TopologyBoundaryVersion::addConstructToMap, TopologyBoundaryVersion::addPrimitiveAssignFnsToMap, TopologyBoundaryVersion::addClassAssignFnsToMap, TopologyBoundaryVersion::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/TopologyBoundaryVersion.hpp b/CGMES_2.4.13_18DEC2013/TopologyBoundaryVersion.hpp deleted file mode 100644 index 2dee1c50c..000000000 --- a/CGMES_2.4.13_18DEC2013/TopologyBoundaryVersion.hpp +++ /dev/null @@ -1,50 +0,0 @@ -#ifndef TopologyBoundaryVersion_H -#define TopologyBoundaryVersion_H - -#include "BaseClass.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "String.hpp" - -namespace CIMPP { - - -class Date; - /* - Version details. - */ - class TopologyBoundaryVersion: public BaseClass - { - - public: - CIMPP::String baseUML; /* Base UML provided by CIM model manager. Default: '' */ - CIMPP::String baseURI; /* Profile URI used in the Model Exchange header and defined in IEC standards. It uniquely identifies the Profile and its version. It is given for information only and to identify the closest IEC profile to which this CGMES profile is based on. Default: '' */ - CIMPP::Date* date; /* Profile creation date Form is YYYY-MM-DD for example for January 5, 2009 it is 2009-01-05. Default: '' */ - CIMPP::String differenceModelURI; /* Difference model URI defined by IEC 61970-552. Default: '' */ - CIMPP::String entsoeUML; /* UML provided by ENTSO-E. Default: '' */ - CIMPP::String entsoeURI; /* Profile URI defined by ENTSO-E and used in the Model Exchange header. It uniquely identifies the Profile and its version. The last two elements in the URI (http://entsoe.eu/CIM/TopologyBoundary/yy/zzz) indicate major and minor versions where: - yy - indicates a major version; - zzz - indicates a minor version. Default: '' */ - CIMPP::String modelDescriptionURI; /* Model Description URI defined by IEC 61970-552. Default: '' */ - CIMPP::String namespaceRDF; /* RDF namespace. Default: '' */ - CIMPP::String namespaceUML; /* CIM UML namespace. Default: '' */ - CIMPP::String shortName; /* The short name of the profile used in profile documentation. Default: '' */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - TopologyBoundaryVersion(); - virtual ~TopologyBoundaryVersion(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* TopologyBoundaryVersion_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/TopologyVersion.cpp b/CGMES_2.4.13_18DEC2013/TopologyVersion.cpp deleted file mode 100644 index cc87973a1..000000000 --- a/CGMES_2.4.13_18DEC2013/TopologyVersion.cpp +++ /dev/null @@ -1,179 +0,0 @@ -#include -#include "BaseClass.hpp" -#include "TopologyVersion.hpp" - -#include "String.hpp" -#include "String.hpp" -#include "Date.hpp" -#include "String.hpp" -#include "String.hpp" -#include "String.hpp" -#include "String.hpp" -#include "String.hpp" -#include "String.hpp" -#include "String.hpp" - -using namespace CIMPP; - -TopologyVersion::TopologyVersion(): date(nullptr) {}; - -TopologyVersion::~TopologyVersion() {}; - - - - -bool assign_TopologyVersion_date(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(TopologyVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->date = dynamic_cast(BaseClass_ptr2); - if(element->date != nullptr) - return true; - } - return false; -} - - - - - - - - - -bool assign_TopologyVersion_baseUML(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(TopologyVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->baseUML = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_TopologyVersion_baseURI(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(TopologyVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->baseURI = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - - -bool assign_TopologyVersion_differenceModelURI(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(TopologyVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->differenceModelURI = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_TopologyVersion_entsoeUML(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(TopologyVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->entsoeUML = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_TopologyVersion_entsoeURI(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(TopologyVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->entsoeURI = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_TopologyVersion_modelDescriptionURI(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(TopologyVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->modelDescriptionURI = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_TopologyVersion_namespaceRDF(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(TopologyVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->namespaceRDF = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_TopologyVersion_namespaceUML(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(TopologyVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->namespaceUML = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -bool assign_TopologyVersion_shortName(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(TopologyVersion* element = dynamic_cast(BaseClass_ptr1)) { - element->shortName = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - return false; -} - -namespace CIMPP { - BaseClass* TopologyVersion_factory() { - return new TopologyVersion; - } -} - -void TopologyVersion::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:TopologyVersion"), &TopologyVersion_factory)); -} - -void TopologyVersion::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:TopologyVersion.baseUML"), &assign_TopologyVersion_baseUML)); - assign_map.insert(std::make_pair(std::string("cim:TopologyVersion.baseURI"), &assign_TopologyVersion_baseURI)); - assign_map.insert(std::make_pair(std::string("cim:TopologyVersion.differenceModelURI"), &assign_TopologyVersion_differenceModelURI)); - assign_map.insert(std::make_pair(std::string("cim:TopologyVersion.entsoeUML"), &assign_TopologyVersion_entsoeUML)); - assign_map.insert(std::make_pair(std::string("cim:TopologyVersion.entsoeURI"), &assign_TopologyVersion_entsoeURI)); - assign_map.insert(std::make_pair(std::string("cim:TopologyVersion.modelDescriptionURI"), &assign_TopologyVersion_modelDescriptionURI)); - assign_map.insert(std::make_pair(std::string("cim:TopologyVersion.namespaceRDF"), &assign_TopologyVersion_namespaceRDF)); - assign_map.insert(std::make_pair(std::string("cim:TopologyVersion.namespaceUML"), &assign_TopologyVersion_namespaceUML)); - assign_map.insert(std::make_pair(std::string("cim:TopologyVersion.shortName"), &assign_TopologyVersion_shortName)); -} - -void TopologyVersion::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:TopologyVersion.date"), &assign_TopologyVersion_date)); - } - -const char TopologyVersion::debugName[] = "TopologyVersion"; -const char* TopologyVersion::debugString() -{ - return TopologyVersion::debugName; -} - -const BaseClassDefiner TopologyVersion::declare() -{ - return BaseClassDefiner(TopologyVersion::addConstructToMap, TopologyVersion::addPrimitiveAssignFnsToMap, TopologyVersion::addClassAssignFnsToMap, TopologyVersion::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/TopologyVersion.hpp b/CGMES_2.4.13_18DEC2013/TopologyVersion.hpp deleted file mode 100644 index 179768214..000000000 --- a/CGMES_2.4.13_18DEC2013/TopologyVersion.hpp +++ /dev/null @@ -1,50 +0,0 @@ -#ifndef TopologyVersion_H -#define TopologyVersion_H - -#include "BaseClass.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "String.hpp" - -namespace CIMPP { - - -class Date; - /* - Version details. - */ - class TopologyVersion: public BaseClass - { - - public: - CIMPP::String baseUML; /* Base UML provided by CIM model manager. Default: '' */ - CIMPP::String baseURI; /* Profile URI used in the Model Exchange header and defined in IEC standards. It uniquely identifies the Profile and its version. It is given for information only and to identify the closest IEC profile to which this CGMES profile is based on. Default: '' */ - CIMPP::Date* date; /* Profile creation date Form is YYYY-MM-DD for example for January 5, 2009 it is 2009-01-05. Default: '' */ - CIMPP::String differenceModelURI; /* Difference model URI defined by IEC 61970-552. Default: '' */ - CIMPP::String entsoeUML; /* UML provided by ENTSO-E. Default: '' */ - CIMPP::String entsoeURI; /* Profile URI defined by ENTSO-E and used in the Model Exchange header. It uniquely identifies the Profile and its version. The last two elements in the URI (http://entsoe.eu/CIM/Topology/yy/zzz) indicate major and minor versions where: - yy - indicates a major version; - zzz - indicates a minor version. Default: '' */ - CIMPP::String modelDescriptionURI; /* Model Description URI defined by IEC 61970-552. Default: '' */ - CIMPP::String namespaceRDF; /* RDF namespace. Default: '' */ - CIMPP::String namespaceUML; /* CIM UML namespace. Default: '' */ - CIMPP::String shortName; /* The short name of the profile used in profile documentation. Default: '' */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - TopologyVersion(); - virtual ~TopologyVersion(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* TopologyVersion_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/TransformerControlMode.cpp b/CGMES_2.4.13_18DEC2013/TransformerControlMode.cpp deleted file mode 100644 index 8b62218ec..000000000 --- a/CGMES_2.4.13_18DEC2013/TransformerControlMode.cpp +++ /dev/null @@ -1,37 +0,0 @@ -#include -#include -#include "TransformerControlMode.hpp" - -using namespace CIMPP; - -namespace CIMPP { - std::istream& operator>>(std::istream& lop, CIMPP::TransformerControlMode& rop) - { - std::string EnumSymbol; - lop >> EnumSymbol; - - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "TransformerControlMode") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "volt") - { - rop = TransformerControlMode::volt; - return lop; - } - if(EnumSymbol == "reactive") - { - rop = TransformerControlMode::reactive; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; - } -} - diff --git a/CGMES_2.4.13_18DEC2013/TransformerControlMode.hpp b/CGMES_2.4.13_18DEC2013/TransformerControlMode.hpp deleted file mode 100644 index 934a803c8..000000000 --- a/CGMES_2.4.13_18DEC2013/TransformerControlMode.hpp +++ /dev/null @@ -1,21 +0,0 @@ -#ifndef TransformerControlMode_H -#define TransformerControlMode_H - -namespace CIMPP { - /* - Control modes for a transformer. - */ - enum class TransformerControlMode - { - /** - * Voltage control - */ - volt, - /** - * Reactive power flow control - */ - reactive, - }; - std::istream& operator>>(std::istream& lop, CIMPP::TransformerControlMode& rop); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/TransformerEnd.cpp b/CGMES_2.4.13_18DEC2013/TransformerEnd.cpp deleted file mode 100644 index 9cdd77bf2..000000000 --- a/CGMES_2.4.13_18DEC2013/TransformerEnd.cpp +++ /dev/null @@ -1,151 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "TransformerEnd.hpp" - -#include "BaseVoltage.hpp" -#include "Terminal.hpp" -#include "PhaseTapChanger.hpp" -#include "RatioTapChanger.hpp" -#include "Resistance.hpp" -#include "Integer.hpp" -#include "Boolean.hpp" -#include "Reactance.hpp" - -using namespace CIMPP; - -TransformerEnd::TransformerEnd(): BaseVoltage(nullptr), Terminal(nullptr), PhaseTapChanger(nullptr), RatioTapChanger(nullptr) {}; - -TransformerEnd::~TransformerEnd() {}; - - -bool assign_BaseVoltage_TransformerEnds(BaseClass*, BaseClass*); -bool assign_TransformerEnd_BaseVoltage(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(TransformerEnd* element = dynamic_cast(BaseClass_ptr1)) { - element->BaseVoltage = dynamic_cast(BaseClass_ptr2); - if(element->BaseVoltage != nullptr) - return assign_BaseVoltage_TransformerEnds(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_Terminal_TransformerEnd(BaseClass*, BaseClass*); -bool assign_TransformerEnd_Terminal(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(TransformerEnd* element = dynamic_cast(BaseClass_ptr1)) { - element->Terminal = dynamic_cast(BaseClass_ptr2); - if(element->Terminal != nullptr) - return assign_Terminal_TransformerEnd(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_TransformerEnd_PhaseTapChanger(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(TransformerEnd* element = dynamic_cast(BaseClass_ptr1)) { - element->PhaseTapChanger = dynamic_cast(BaseClass_ptr2); - if(element->PhaseTapChanger != nullptr) - return true; - } - return false; -} - -bool assign_TransformerEnd_RatioTapChanger(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(TransformerEnd* element = dynamic_cast(BaseClass_ptr1)) { - element->RatioTapChanger = dynamic_cast(BaseClass_ptr2); - if(element->RatioTapChanger != nullptr) - return true; - } - return false; -} - - - - - - - - - - -bool assign_TransformerEnd_rground(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(TransformerEnd* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->rground; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_TransformerEnd_endNumber(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(TransformerEnd* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->endNumber; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_TransformerEnd_grounded(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(TransformerEnd* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->grounded; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_TransformerEnd_xground(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(TransformerEnd* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->xground; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* TransformerEnd_factory() { - return new TransformerEnd; - } -} - -void TransformerEnd::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:TransformerEnd"), &TransformerEnd_factory)); -} - -void TransformerEnd::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:TransformerEnd.rground"), &assign_TransformerEnd_rground)); - assign_map.insert(std::make_pair(std::string("cim:TransformerEnd.endNumber"), &assign_TransformerEnd_endNumber)); - assign_map.insert(std::make_pair(std::string("cim:TransformerEnd.grounded"), &assign_TransformerEnd_grounded)); - assign_map.insert(std::make_pair(std::string("cim:TransformerEnd.xground"), &assign_TransformerEnd_xground)); -} - -void TransformerEnd::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:TransformerEnd.BaseVoltage"), &assign_TransformerEnd_BaseVoltage)); - assign_map.insert(std::make_pair(std::string("cim:TransformerEnd.Terminal"), &assign_TransformerEnd_Terminal)); - assign_map.insert(std::make_pair(std::string("cim:TransformerEnd.PhaseTapChanger"), &assign_TransformerEnd_PhaseTapChanger)); - assign_map.insert(std::make_pair(std::string("cim:TransformerEnd.RatioTapChanger"), &assign_TransformerEnd_RatioTapChanger)); - } - -const char TransformerEnd::debugName[] = "TransformerEnd"; -const char* TransformerEnd::debugString() -{ - return TransformerEnd::debugName; -} - -const BaseClassDefiner TransformerEnd::declare() -{ - return BaseClassDefiner(TransformerEnd::addConstructToMap, TransformerEnd::addPrimitiveAssignFnsToMap, TransformerEnd::addClassAssignFnsToMap, TransformerEnd::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/TransformerEnd.hpp b/CGMES_2.4.13_18DEC2013/TransformerEnd.hpp deleted file mode 100644 index 6914f7d0b..000000000 --- a/CGMES_2.4.13_18DEC2013/TransformerEnd.hpp +++ /dev/null @@ -1,54 +0,0 @@ -#ifndef TransformerEnd_H -#define TransformerEnd_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Resistance.hpp" -#include "Integer.hpp" -#include "Boolean.hpp" -#include "Reactance.hpp" - -namespace CIMPP { - - -class BaseVoltage; -class Terminal; -class PhaseTapChanger; -class RatioTapChanger; - /* - A conducting connection point of a power transformer. It corresponds to a physical transformer winding terminal. In earlier CIM versions, the TransformerWinding class served a similar purpose, but this class is more flexible because it associates to terminal but is not a specialization of ConductingEquipment. - */ - class TransformerEnd: public IdentifiedObject - { - - public: - CIMPP::BaseVoltage* BaseVoltage; /* Base voltage of the transformer end. This is essential for PU calculation. Default: 0 */ - CIMPP::Terminal* Terminal; /* Terminal of the power transformer to which this transformer end belongs. Default: 0 */ - CIMPP::PhaseTapChanger* PhaseTapChanger; /* Transformer end to which this phase tap changer belongs. Default: 0 */ - CIMPP::RatioTapChanger* RatioTapChanger; /* Transformer end to which this ratio tap changer belongs. Default: 0 */ - CIMPP::Resistance rground; /* (for Yn and Zn connections) Resistance part of neutral impedance where `grounded` is true. Default: nullptr */ - CIMPP::Integer endNumber; /* Number for this transformer end, corresponding to the end`s order in the power transformer vector group or phase angle clock number. Highest voltage winding should be 1. Each end within a power transformer should have a unique subsequent end number. Note the transformer end number need not match the terminal sequence number. Default: 0 */ - CIMPP::Boolean grounded; /* (for Yn and Zn connections) True if the neutral is solidly grounded. Default: false */ - CIMPP::Reactance xground; /* (for Yn and Zn connections) Reactive part of neutral impedance where `grounded` is true. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - TransformerEnd(); - virtual ~TransformerEnd(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* TransformerEnd_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/TurbLCFB1.cpp b/CGMES_2.4.13_18DEC2013/TurbLCFB1.cpp deleted file mode 100644 index ea541863b..000000000 --- a/CGMES_2.4.13_18DEC2013/TurbLCFB1.cpp +++ /dev/null @@ -1,221 +0,0 @@ -#include -#include "TurbineLoadControllerDynamics.hpp" -#include "TurbLCFB1.hpp" - -#include "ActivePower.hpp" -#include "Boolean.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Boolean.hpp" -#include "Boolean.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "ActivePower.hpp" - -using namespace CIMPP; - -TurbLCFB1::TurbLCFB1() {}; - -TurbLCFB1::~TurbLCFB1() {}; - - - - - - - - - - - - - - - -bool assign_TurbLCFB1_mwbase(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(TurbLCFB1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->mwbase; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_TurbLCFB1_speedReferenceGovernor(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(TurbLCFB1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->speedReferenceGovernor; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_TurbLCFB1_db(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(TurbLCFB1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->db; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_TurbLCFB1_emax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(TurbLCFB1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->emax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_TurbLCFB1_fb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(TurbLCFB1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->fb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_TurbLCFB1_kp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(TurbLCFB1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_TurbLCFB1_ki(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(TurbLCFB1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ki; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_TurbLCFB1_fbf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(TurbLCFB1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->fbf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_TurbLCFB1_pbf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(TurbLCFB1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pbf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_TurbLCFB1_tpelec(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(TurbLCFB1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tpelec; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_TurbLCFB1_irmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(TurbLCFB1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->irmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_TurbLCFB1_pmwset(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(TurbLCFB1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pmwset; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* TurbLCFB1_factory() { - return new TurbLCFB1; - } -} - -void TurbLCFB1::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:TurbLCFB1"), &TurbLCFB1_factory)); -} - -void TurbLCFB1::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:TurbLCFB1.mwbase"), &assign_TurbLCFB1_mwbase)); - assign_map.insert(std::make_pair(std::string("cim:TurbLCFB1.speedReferenceGovernor"), &assign_TurbLCFB1_speedReferenceGovernor)); - assign_map.insert(std::make_pair(std::string("cim:TurbLCFB1.db"), &assign_TurbLCFB1_db)); - assign_map.insert(std::make_pair(std::string("cim:TurbLCFB1.emax"), &assign_TurbLCFB1_emax)); - assign_map.insert(std::make_pair(std::string("cim:TurbLCFB1.fb"), &assign_TurbLCFB1_fb)); - assign_map.insert(std::make_pair(std::string("cim:TurbLCFB1.kp"), &assign_TurbLCFB1_kp)); - assign_map.insert(std::make_pair(std::string("cim:TurbLCFB1.ki"), &assign_TurbLCFB1_ki)); - assign_map.insert(std::make_pair(std::string("cim:TurbLCFB1.fbf"), &assign_TurbLCFB1_fbf)); - assign_map.insert(std::make_pair(std::string("cim:TurbLCFB1.pbf"), &assign_TurbLCFB1_pbf)); - assign_map.insert(std::make_pair(std::string("cim:TurbLCFB1.tpelec"), &assign_TurbLCFB1_tpelec)); - assign_map.insert(std::make_pair(std::string("cim:TurbLCFB1.irmax"), &assign_TurbLCFB1_irmax)); - assign_map.insert(std::make_pair(std::string("cim:TurbLCFB1.pmwset"), &assign_TurbLCFB1_pmwset)); -} - -void TurbLCFB1::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char TurbLCFB1::debugName[] = "TurbLCFB1"; -const char* TurbLCFB1::debugString() -{ - return TurbLCFB1::debugName; -} - -const BaseClassDefiner TurbLCFB1::declare() -{ - return BaseClassDefiner(TurbLCFB1::addConstructToMap, TurbLCFB1::addPrimitiveAssignFnsToMap, TurbLCFB1::addClassAssignFnsToMap, TurbLCFB1::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/TurbLCFB1.hpp b/CGMES_2.4.13_18DEC2013/TurbLCFB1.hpp deleted file mode 100644 index ab3d7a698..000000000 --- a/CGMES_2.4.13_18DEC2013/TurbLCFB1.hpp +++ /dev/null @@ -1,54 +0,0 @@ -#ifndef TurbLCFB1_H -#define TurbLCFB1_H - -#include "TurbineLoadControllerDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "ActivePower.hpp" -#include "Boolean.hpp" -#include "PU.hpp" -#include "Seconds.hpp" - -namespace CIMPP { - - - /* - Turbine Load Controller model developed in the WECC. This model represents a supervisory turbine load controller that acts to maintain turbine power at a set value by continuous adjustment of the turbine governor speed-load reference. This model is intended to represent slow reset 'outer loop' controllers managing the action of the turbine governor. - */ - class TurbLCFB1: public TurbineLoadControllerDynamics - { - - public: - CIMPP::ActivePower mwbase; /* Base for power values (MWbase) (>0). Unit = MW. Default: nullptr */ - CIMPP::Boolean speedReferenceGovernor; /* Type of turbine governor reference (Type). true = speed reference governor false = load reference governor. Typical Value = true. Default: false */ - CIMPP::PU db; /* Controller dead band (db). Typical Value = 0. Default: nullptr */ - CIMPP::PU emax; /* Maximum control error (Emax) (note 4). Typical Value = 0.02. Default: nullptr */ - CIMPP::PU fb; /* Frequency bias gain (Fb). Typical Value = 0. Default: nullptr */ - CIMPP::PU kp; /* Proportional gain (Kp). Typical Value = 0. Default: nullptr */ - CIMPP::PU ki; /* Integral gain (Ki). Typical Value = 0. Default: nullptr */ - CIMPP::Boolean fbf; /* Frequency bias flag (Fbf). true = enable frequency bias false = disable frequency bias. Typical Value = false. Default: false */ - CIMPP::Boolean pbf; /* Power controller flag (Pbf). true = enable load controller false = disable load controller. Typical Value = false. Default: false */ - CIMPP::Seconds tpelec; /* Power transducer time constant (Tpelec). Typical Value = 0. Default: nullptr */ - CIMPP::PU irmax; /* Maximum turbine speed/load reference bias (Irmax) (note 3). Typical Value = 0. Default: nullptr */ - CIMPP::ActivePower pmwset; /* Power controller setpoint (Pmwset) (note 1). Unit = MW. Typical Value = 0. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - TurbLCFB1(); - virtual ~TurbLCFB1(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* TurbLCFB1_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/TurbineGovernorDynamics.cpp b/CGMES_2.4.13_18DEC2013/TurbineGovernorDynamics.cpp deleted file mode 100644 index b40191d87..000000000 --- a/CGMES_2.4.13_18DEC2013/TurbineGovernorDynamics.cpp +++ /dev/null @@ -1,79 +0,0 @@ -#include -#include "DynamicsFunctionBlock.hpp" -#include "TurbineGovernorDynamics.hpp" - -#include "SynchronousMachineDynamics.hpp" -#include "AsynchronousMachineDynamics.hpp" -#include "TurbineLoadControllerDynamics.hpp" - -using namespace CIMPP; - -TurbineGovernorDynamics::TurbineGovernorDynamics(): AsynchronousMachineDynamics(nullptr), TurbineLoadControllerDynamics(nullptr) {}; - -TurbineGovernorDynamics::~TurbineGovernorDynamics() {}; - - -bool assign_TurbineGovernorDynamics_SynchronousMachineDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(TurbineGovernorDynamics* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->SynchronousMachineDynamics.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_AsynchronousMachineDynamics_TurbineGovernorDynamics(BaseClass*, BaseClass*); -bool assign_TurbineGovernorDynamics_AsynchronousMachineDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(TurbineGovernorDynamics* element = dynamic_cast(BaseClass_ptr1)) { - element->AsynchronousMachineDynamics = dynamic_cast(BaseClass_ptr2); - if(element->AsynchronousMachineDynamics != nullptr) - return assign_AsynchronousMachineDynamics_TurbineGovernorDynamics(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_TurbineGovernorDynamics_TurbineLoadControllerDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(TurbineGovernorDynamics* element = dynamic_cast(BaseClass_ptr1)) { - element->TurbineLoadControllerDynamics = dynamic_cast(BaseClass_ptr2); - if(element->TurbineLoadControllerDynamics != nullptr) - return true; - } - return false; -} - - - - - -namespace CIMPP { - BaseClass* TurbineGovernorDynamics_factory() { - return new TurbineGovernorDynamics; - } -} - -void TurbineGovernorDynamics::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:TurbineGovernorDynamics"), &TurbineGovernorDynamics_factory)); -} - -void TurbineGovernorDynamics::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void TurbineGovernorDynamics::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:TurbineGovernorDynamics.SynchronousMachineDynamics"), &assign_TurbineGovernorDynamics_SynchronousMachineDynamics)); - assign_map.insert(std::make_pair(std::string("cim:TurbineGovernorDynamics.AsynchronousMachineDynamics"), &assign_TurbineGovernorDynamics_AsynchronousMachineDynamics)); - assign_map.insert(std::make_pair(std::string("cim:TurbineGovernorDynamics.TurbineLoadControllerDynamics"), &assign_TurbineGovernorDynamics_TurbineLoadControllerDynamics)); -} - -const char TurbineGovernorDynamics::debugName[] = "TurbineGovernorDynamics"; -const char* TurbineGovernorDynamics::debugString() -{ - return TurbineGovernorDynamics::debugName; -} - -const BaseClassDefiner TurbineGovernorDynamics::declare() -{ - return BaseClassDefiner(TurbineGovernorDynamics::addConstructToMap, TurbineGovernorDynamics::addPrimitiveAssignFnsToMap, TurbineGovernorDynamics::addClassAssignFnsToMap, TurbineGovernorDynamics::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/TurbineGovernorDynamics.hpp b/CGMES_2.4.13_18DEC2013/TurbineGovernorDynamics.hpp deleted file mode 100644 index 900acdd9c..000000000 --- a/CGMES_2.4.13_18DEC2013/TurbineGovernorDynamics.hpp +++ /dev/null @@ -1,44 +0,0 @@ -#ifndef TurbineGovernorDynamics_H -#define TurbineGovernorDynamics_H - -#include "DynamicsFunctionBlock.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class SynchronousMachineDynamics; -class AsynchronousMachineDynamics; -class TurbineLoadControllerDynamics; - /* - Turbine-governor function block whose behavior is described by reference to a standard model - */ - class TurbineGovernorDynamics: public DynamicsFunctionBlock - { - - public: - std::list SynchronousMachineDynamics; /* Turbine-governor model associated with this synchronous machine model. Default: 0 */ - CIMPP::AsynchronousMachineDynamics* AsynchronousMachineDynamics; /* Asynchronous machine model with which this turbine-governor model is associated. Default: 0 */ - CIMPP::TurbineLoadControllerDynamics* TurbineLoadControllerDynamics; /* Turbine load controller providing input to this turbine-governor. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - TurbineGovernorDynamics(); - virtual ~TurbineGovernorDynamics(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* TurbineGovernorDynamics_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/TurbineGovernorUserDefined.cpp b/CGMES_2.4.13_18DEC2013/TurbineGovernorUserDefined.cpp deleted file mode 100644 index dd1ca842b..000000000 --- a/CGMES_2.4.13_18DEC2013/TurbineGovernorUserDefined.cpp +++ /dev/null @@ -1,69 +0,0 @@ -#include -#include "TurbineGovernorDynamics.hpp" -#include "TurbineGovernorUserDefined.hpp" - -#include "Boolean.hpp" -#include "ProprietaryParameterDynamics.hpp" - -using namespace CIMPP; - -TurbineGovernorUserDefined::TurbineGovernorUserDefined() {}; - -TurbineGovernorUserDefined::~TurbineGovernorUserDefined() {}; - - - -bool assign_TurbineGovernorUserDefined_ProprietaryParameterDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(TurbineGovernorUserDefined* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->ProprietaryParameterDynamics.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - -bool assign_TurbineGovernorUserDefined_proprietary(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(TurbineGovernorUserDefined* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->proprietary; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -namespace CIMPP { - BaseClass* TurbineGovernorUserDefined_factory() { - return new TurbineGovernorUserDefined; - } -} - -void TurbineGovernorUserDefined::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:TurbineGovernorUserDefined"), &TurbineGovernorUserDefined_factory)); -} - -void TurbineGovernorUserDefined::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:TurbineGovernorUserDefined.proprietary"), &assign_TurbineGovernorUserDefined_proprietary)); - } - -void TurbineGovernorUserDefined::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:TurbineGovernorUserDefined.ProprietaryParameterDynamics"), &assign_TurbineGovernorUserDefined_ProprietaryParameterDynamics)); -} - -const char TurbineGovernorUserDefined::debugName[] = "TurbineGovernorUserDefined"; -const char* TurbineGovernorUserDefined::debugString() -{ - return TurbineGovernorUserDefined::debugName; -} - -const BaseClassDefiner TurbineGovernorUserDefined::declare() -{ - return BaseClassDefiner(TurbineGovernorUserDefined::addConstructToMap, TurbineGovernorUserDefined::addPrimitiveAssignFnsToMap, TurbineGovernorUserDefined::addClassAssignFnsToMap, TurbineGovernorUserDefined::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/TurbineGovernorUserDefined.hpp b/CGMES_2.4.13_18DEC2013/TurbineGovernorUserDefined.hpp deleted file mode 100644 index cf430d55a..000000000 --- a/CGMES_2.4.13_18DEC2013/TurbineGovernorUserDefined.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef TurbineGovernorUserDefined_H -#define TurbineGovernorUserDefined_H - -#include "TurbineGovernorDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Boolean.hpp" - -namespace CIMPP { - - -class ProprietaryParameterDynamics; - /* - Turbine-governor function block whose dynamic behaviour is described by - */ - class TurbineGovernorUserDefined: public TurbineGovernorDynamics - { - - public: - CIMPP::Boolean proprietary; /* Behaviour is based on proprietary model as opposed to detailed model. true = user-defined model is proprietary with behaviour mutually understood by sending and receiving applications and parameters passed as general attributes false = user-defined model is explicitly defined in terms of control blocks and their input and output signals. Default: false */ - std::list ProprietaryParameterDynamics; /* Parameter of this proprietary user-defined model. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - TurbineGovernorUserDefined(); - virtual ~TurbineGovernorUserDefined(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* TurbineGovernorUserDefined_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/TurbineLoadControllerDynamics.cpp b/CGMES_2.4.13_18DEC2013/TurbineLoadControllerDynamics.cpp deleted file mode 100644 index c87fef90e..000000000 --- a/CGMES_2.4.13_18DEC2013/TurbineLoadControllerDynamics.cpp +++ /dev/null @@ -1,54 +0,0 @@ -#include -#include "DynamicsFunctionBlock.hpp" -#include "TurbineLoadControllerDynamics.hpp" - -#include "TurbineGovernorDynamics.hpp" - -using namespace CIMPP; - -TurbineLoadControllerDynamics::TurbineLoadControllerDynamics(): TurbineGovernorDynamics(nullptr) {}; - -TurbineLoadControllerDynamics::~TurbineLoadControllerDynamics() {}; - - -bool assign_TurbineGovernorDynamics_TurbineLoadControllerDynamics(BaseClass*, BaseClass*); -bool assign_TurbineLoadControllerDynamics_TurbineGovernorDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(TurbineLoadControllerDynamics* element = dynamic_cast(BaseClass_ptr1)) { - element->TurbineGovernorDynamics = dynamic_cast(BaseClass_ptr2); - if(element->TurbineGovernorDynamics != nullptr) - return assign_TurbineGovernorDynamics_TurbineLoadControllerDynamics(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - -namespace CIMPP { - BaseClass* TurbineLoadControllerDynamics_factory() { - return new TurbineLoadControllerDynamics; - } -} - -void TurbineLoadControllerDynamics::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:TurbineLoadControllerDynamics"), &TurbineLoadControllerDynamics_factory)); -} - -void TurbineLoadControllerDynamics::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void TurbineLoadControllerDynamics::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:TurbineLoadControllerDynamics.TurbineGovernorDynamics"), &assign_TurbineLoadControllerDynamics_TurbineGovernorDynamics)); -} - -const char TurbineLoadControllerDynamics::debugName[] = "TurbineLoadControllerDynamics"; -const char* TurbineLoadControllerDynamics::debugString() -{ - return TurbineLoadControllerDynamics::debugName; -} - -const BaseClassDefiner TurbineLoadControllerDynamics::declare() -{ - return BaseClassDefiner(TurbineLoadControllerDynamics::addConstructToMap, TurbineLoadControllerDynamics::addPrimitiveAssignFnsToMap, TurbineLoadControllerDynamics::addClassAssignFnsToMap, TurbineLoadControllerDynamics::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/TurbineLoadControllerDynamics.hpp b/CGMES_2.4.13_18DEC2013/TurbineLoadControllerDynamics.hpp deleted file mode 100644 index f7ce321c2..000000000 --- a/CGMES_2.4.13_18DEC2013/TurbineLoadControllerDynamics.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef TurbineLoadControllerDynamics_H -#define TurbineLoadControllerDynamics_H - -#include "DynamicsFunctionBlock.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class TurbineGovernorDynamics; - /* - Turbine load controller function block whose behavior is described by reference to a standard model - */ - class TurbineLoadControllerDynamics: public DynamicsFunctionBlock - { - - public: - CIMPP::TurbineGovernorDynamics* TurbineGovernorDynamics; /* Turbine-governor controlled by this turbine load controller. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - TurbineLoadControllerDynamics(); - virtual ~TurbineLoadControllerDynamics(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* TurbineLoadControllerDynamics_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/TurbineLoadControllerUserDefined.cpp b/CGMES_2.4.13_18DEC2013/TurbineLoadControllerUserDefined.cpp deleted file mode 100644 index b2e2a832e..000000000 --- a/CGMES_2.4.13_18DEC2013/TurbineLoadControllerUserDefined.cpp +++ /dev/null @@ -1,69 +0,0 @@ -#include -#include "TurbineLoadControllerDynamics.hpp" -#include "TurbineLoadControllerUserDefined.hpp" - -#include "Boolean.hpp" -#include "ProprietaryParameterDynamics.hpp" - -using namespace CIMPP; - -TurbineLoadControllerUserDefined::TurbineLoadControllerUserDefined() {}; - -TurbineLoadControllerUserDefined::~TurbineLoadControllerUserDefined() {}; - - - -bool assign_TurbineLoadControllerUserDefined_ProprietaryParameterDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(TurbineLoadControllerUserDefined* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->ProprietaryParameterDynamics.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - -bool assign_TurbineLoadControllerUserDefined_proprietary(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(TurbineLoadControllerUserDefined* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->proprietary; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -namespace CIMPP { - BaseClass* TurbineLoadControllerUserDefined_factory() { - return new TurbineLoadControllerUserDefined; - } -} - -void TurbineLoadControllerUserDefined::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:TurbineLoadControllerUserDefined"), &TurbineLoadControllerUserDefined_factory)); -} - -void TurbineLoadControllerUserDefined::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:TurbineLoadControllerUserDefined.proprietary"), &assign_TurbineLoadControllerUserDefined_proprietary)); - } - -void TurbineLoadControllerUserDefined::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:TurbineLoadControllerUserDefined.ProprietaryParameterDynamics"), &assign_TurbineLoadControllerUserDefined_ProprietaryParameterDynamics)); -} - -const char TurbineLoadControllerUserDefined::debugName[] = "TurbineLoadControllerUserDefined"; -const char* TurbineLoadControllerUserDefined::debugString() -{ - return TurbineLoadControllerUserDefined::debugName; -} - -const BaseClassDefiner TurbineLoadControllerUserDefined::declare() -{ - return BaseClassDefiner(TurbineLoadControllerUserDefined::addConstructToMap, TurbineLoadControllerUserDefined::addPrimitiveAssignFnsToMap, TurbineLoadControllerUserDefined::addClassAssignFnsToMap, TurbineLoadControllerUserDefined::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/TurbineLoadControllerUserDefined.hpp b/CGMES_2.4.13_18DEC2013/TurbineLoadControllerUserDefined.hpp deleted file mode 100644 index 45616aba3..000000000 --- a/CGMES_2.4.13_18DEC2013/TurbineLoadControllerUserDefined.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef TurbineLoadControllerUserDefined_H -#define TurbineLoadControllerUserDefined_H - -#include "TurbineLoadControllerDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Boolean.hpp" - -namespace CIMPP { - - -class ProprietaryParameterDynamics; - /* - Turbine load controller function block whose dynamic behaviour is described by - */ - class TurbineLoadControllerUserDefined: public TurbineLoadControllerDynamics - { - - public: - CIMPP::Boolean proprietary; /* Behaviour is based on proprietary model as opposed to detailed model. true = user-defined model is proprietary with behaviour mutually understood by sending and receiving applications and parameters passed as general attributes false = user-defined model is explicitly defined in terms of control blocks and their input and output signals. Default: false */ - std::list ProprietaryParameterDynamics; /* Parameter of this proprietary user-defined model. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - TurbineLoadControllerUserDefined(); - virtual ~TurbineLoadControllerUserDefined(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* TurbineLoadControllerUserDefined_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/UnderexcLim2Simplified.cpp b/CGMES_2.4.13_18DEC2013/UnderexcLim2Simplified.cpp deleted file mode 100644 index 659682375..000000000 --- a/CGMES_2.4.13_18DEC2013/UnderexcLim2Simplified.cpp +++ /dev/null @@ -1,146 +0,0 @@ -#include -#include "UnderexcitationLimiterDynamics.hpp" -#include "UnderexcLim2Simplified.hpp" - -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -UnderexcLim2Simplified::UnderexcLim2Simplified() {}; - -UnderexcLim2Simplified::~UnderexcLim2Simplified() {}; - - - - - - - - - - -bool assign_UnderexcLim2Simplified_q0(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLim2Simplified* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->q0; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLim2Simplified_q1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLim2Simplified* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->q1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLim2Simplified_p0(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLim2Simplified* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->p0; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLim2Simplified_p1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLim2Simplified* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->p1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLim2Simplified_kui(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLim2Simplified* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kui; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLim2Simplified_vuimin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLim2Simplified* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vuimin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLim2Simplified_vuimax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLim2Simplified* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vuimax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* UnderexcLim2Simplified_factory() { - return new UnderexcLim2Simplified; - } -} - -void UnderexcLim2Simplified::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:UnderexcLim2Simplified"), &UnderexcLim2Simplified_factory)); -} - -void UnderexcLim2Simplified::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:UnderexcLim2Simplified.q0"), &assign_UnderexcLim2Simplified_q0)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLim2Simplified.q1"), &assign_UnderexcLim2Simplified_q1)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLim2Simplified.p0"), &assign_UnderexcLim2Simplified_p0)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLim2Simplified.p1"), &assign_UnderexcLim2Simplified_p1)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLim2Simplified.kui"), &assign_UnderexcLim2Simplified_kui)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLim2Simplified.vuimin"), &assign_UnderexcLim2Simplified_vuimin)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLim2Simplified.vuimax"), &assign_UnderexcLim2Simplified_vuimax)); -} - -void UnderexcLim2Simplified::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char UnderexcLim2Simplified::debugName[] = "UnderexcLim2Simplified"; -const char* UnderexcLim2Simplified::debugString() -{ - return UnderexcLim2Simplified::debugName; -} - -const BaseClassDefiner UnderexcLim2Simplified::declare() -{ - return BaseClassDefiner(UnderexcLim2Simplified::addConstructToMap, UnderexcLim2Simplified::addPrimitiveAssignFnsToMap, UnderexcLim2Simplified::addClassAssignFnsToMap, UnderexcLim2Simplified::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/UnderexcLim2Simplified.hpp b/CGMES_2.4.13_18DEC2013/UnderexcLim2Simplified.hpp deleted file mode 100644 index cd0a3f9ca..000000000 --- a/CGMES_2.4.13_18DEC2013/UnderexcLim2Simplified.hpp +++ /dev/null @@ -1,46 +0,0 @@ -#ifndef UnderexcLim2Simplified_H -#define UnderexcLim2Simplified_H - -#include "UnderexcitationLimiterDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" - -namespace CIMPP { - - - /* - This model can be derived from UnderexcLimIEEE2. The limit characteristic (look -up table) is a single straight-line, the same as UnderexcLimIEEE2 (see Figure 10.4 (p 32), IEEE 421.5-2005 Section 10.2). - */ - class UnderexcLim2Simplified: public UnderexcitationLimiterDynamics - { - - public: - CIMPP::PU q0; /* Segment Q initial point (Q0). Typical Value = -0.31. Default: nullptr */ - CIMPP::PU q1; /* Segment Q end point (Q1). Typical Value = -0.1. Default: nullptr */ - CIMPP::PU p0; /* Segment P initial point (P0). Typical Value = 0. Default: nullptr */ - CIMPP::PU p1; /* Segment P end point (P1). Typical Value = 1. Default: nullptr */ - CIMPP::PU kui; /* Gain Under excitation limiter (Kui). Typical Value = 0.1. Default: nullptr */ - CIMPP::PU vuimin; /* Minimum error signal (V). Typical Value = 0. Default: nullptr */ - CIMPP::PU vuimax; /* Maximum error signal (V). Typical Value = 1. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - UnderexcLim2Simplified(); - virtual ~UnderexcLim2Simplified(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* UnderexcLim2Simplified_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/UnderexcLimIEEE1.cpp b/CGMES_2.4.13_18DEC2013/UnderexcLimIEEE1.cpp deleted file mode 100644 index 713167cb8..000000000 --- a/CGMES_2.4.13_18DEC2013/UnderexcLimIEEE1.cpp +++ /dev/null @@ -1,266 +0,0 @@ -#include -#include "UnderexcitationLimiterDynamics.hpp" -#include "UnderexcLimIEEE1.hpp" - -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -UnderexcLimIEEE1::UnderexcLimIEEE1() {}; - -UnderexcLimIEEE1::~UnderexcLimIEEE1() {}; - - - - - - - - - - - - - - - - - - -bool assign_UnderexcLimIEEE1_kur(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimIEEE1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kur; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimIEEE1_kuc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimIEEE1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kuc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimIEEE1_kuf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimIEEE1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kuf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimIEEE1_vurmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimIEEE1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vurmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimIEEE1_vucmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimIEEE1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vucmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimIEEE1_kui(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimIEEE1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kui; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimIEEE1_kul(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimIEEE1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kul; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimIEEE1_vuimax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimIEEE1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vuimax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimIEEE1_vuimin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimIEEE1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vuimin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimIEEE1_tu1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimIEEE1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tu1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimIEEE1_tu2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimIEEE1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tu2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimIEEE1_tu3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimIEEE1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tu3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimIEEE1_tu4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimIEEE1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tu4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimIEEE1_vulmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimIEEE1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vulmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimIEEE1_vulmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimIEEE1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vulmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* UnderexcLimIEEE1_factory() { - return new UnderexcLimIEEE1; - } -} - -void UnderexcLimIEEE1::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:UnderexcLimIEEE1"), &UnderexcLimIEEE1_factory)); -} - -void UnderexcLimIEEE1::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimIEEE1.kur"), &assign_UnderexcLimIEEE1_kur)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimIEEE1.kuc"), &assign_UnderexcLimIEEE1_kuc)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimIEEE1.kuf"), &assign_UnderexcLimIEEE1_kuf)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimIEEE1.vurmax"), &assign_UnderexcLimIEEE1_vurmax)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimIEEE1.vucmax"), &assign_UnderexcLimIEEE1_vucmax)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimIEEE1.kui"), &assign_UnderexcLimIEEE1_kui)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimIEEE1.kul"), &assign_UnderexcLimIEEE1_kul)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimIEEE1.vuimax"), &assign_UnderexcLimIEEE1_vuimax)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimIEEE1.vuimin"), &assign_UnderexcLimIEEE1_vuimin)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimIEEE1.tu1"), &assign_UnderexcLimIEEE1_tu1)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimIEEE1.tu2"), &assign_UnderexcLimIEEE1_tu2)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimIEEE1.tu3"), &assign_UnderexcLimIEEE1_tu3)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimIEEE1.tu4"), &assign_UnderexcLimIEEE1_tu4)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimIEEE1.vulmax"), &assign_UnderexcLimIEEE1_vulmax)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimIEEE1.vulmin"), &assign_UnderexcLimIEEE1_vulmin)); -} - -void UnderexcLimIEEE1::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char UnderexcLimIEEE1::debugName[] = "UnderexcLimIEEE1"; -const char* UnderexcLimIEEE1::debugString() -{ - return UnderexcLimIEEE1::debugName; -} - -const BaseClassDefiner UnderexcLimIEEE1::declare() -{ - return BaseClassDefiner(UnderexcLimIEEE1::addConstructToMap, UnderexcLimIEEE1::addPrimitiveAssignFnsToMap, UnderexcLimIEEE1::addClassAssignFnsToMap, UnderexcLimIEEE1::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/UnderexcLimIEEE1.hpp b/CGMES_2.4.13_18DEC2013/UnderexcLimIEEE1.hpp deleted file mode 100644 index f8bf85ce3..000000000 --- a/CGMES_2.4.13_18DEC2013/UnderexcLimIEEE1.hpp +++ /dev/null @@ -1,55 +0,0 @@ -#ifndef UnderexcLimIEEE1_H -#define UnderexcLimIEEE1_H - -#include "UnderexcitationLimiterDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "Seconds.hpp" - -namespace CIMPP { - - - /* - The class represents the Type UEL1 model which has a circular limit boundary when plotted in terms of machine reactive power vs. real power output. Reference: IEEE UEL1 421.5-2005 Section 10.1. - */ - class UnderexcLimIEEE1: public UnderexcitationLimiterDynamics - { - - public: - CIMPP::PU kur; /* UEL radius setting (K). Typical Value = 1.95. Default: nullptr */ - CIMPP::PU kuc; /* UEL center setting (K). Typical Value = 1.38. Default: nullptr */ - CIMPP::PU kuf; /* UEL excitation system stabilizer gain (K). Typical Value = 3.3. Default: nullptr */ - CIMPP::PU vurmax; /* UEL maximum limit for radius phasor magnitude (V). Typical Value = 5.8. Default: nullptr */ - CIMPP::PU vucmax; /* UEL maximum limit for operating point phasor magnitude (V). Typical Value = 5.8. Default: nullptr */ - CIMPP::PU kui; /* UEL integral gain (K). Typical Value = 0. Default: nullptr */ - CIMPP::PU kul; /* UEL proportional gain (K). Typical Value = 100. Default: nullptr */ - CIMPP::PU vuimax; /* UEL integrator output maximum limit (V). Default: nullptr */ - CIMPP::PU vuimin; /* UEL integrator output minimum limit (V). Default: nullptr */ - CIMPP::Seconds tu1; /* UEL lead time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tu2; /* UEL lag time constant (T). Typical Value = 0.05. Default: nullptr */ - CIMPP::Seconds tu3; /* UEL lead time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tu4; /* UEL lag time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::PU vulmax; /* UEL output maximum limit (V). Typical Value = 18. Default: nullptr */ - CIMPP::PU vulmin; /* UEL output minimum limit (V). Typical Value = -18. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - UnderexcLimIEEE1(); - virtual ~UnderexcLimIEEE1(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* UnderexcLimIEEE1_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/UnderexcLimIEEE2.cpp b/CGMES_2.4.13_18DEC2013/UnderexcLimIEEE2.cpp deleted file mode 100644 index 3a58421dd..000000000 --- a/CGMES_2.4.13_18DEC2013/UnderexcLimIEEE2.cpp +++ /dev/null @@ -1,641 +0,0 @@ -#include -#include "UnderexcitationLimiterDynamics.hpp" -#include "UnderexcLimIEEE2.hpp" - -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" - -using namespace CIMPP; - -UnderexcLimIEEE2::UnderexcLimIEEE2() {}; - -UnderexcLimIEEE2::~UnderexcLimIEEE2() {}; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -bool assign_UnderexcLimIEEE2_tuv(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tuv; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimIEEE2_tup(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tup; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimIEEE2_tuq(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tuq; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimIEEE2_kui(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kui; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimIEEE2_kul(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kul; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimIEEE2_vuimax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vuimax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimIEEE2_vuimin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vuimin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimIEEE2_kuf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kuf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimIEEE2_kfb(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kfb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimIEEE2_tul(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tul; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimIEEE2_tu1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tu1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimIEEE2_tu2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tu2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimIEEE2_tu3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tu3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimIEEE2_tu4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tu4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimIEEE2_vulmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vulmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimIEEE2_vulmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vulmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimIEEE2_p0(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->p0; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimIEEE2_q0(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->q0; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimIEEE2_p1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->p1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimIEEE2_q1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->q1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimIEEE2_p2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->p2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimIEEE2_q2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->q2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimIEEE2_p3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->p3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimIEEE2_q3(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->q3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimIEEE2_p4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->p4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimIEEE2_q4(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->q4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimIEEE2_p5(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->p5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimIEEE2_q5(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->q5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimIEEE2_p6(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->p6; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimIEEE2_q6(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->q6; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimIEEE2_p7(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->p7; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimIEEE2_q7(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->q7; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimIEEE2_p8(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->p8; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimIEEE2_q8(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->q8; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimIEEE2_p9(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->p9; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimIEEE2_q9(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->q9; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimIEEE2_p10(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->p10; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimIEEE2_q10(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->q10; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimIEEE2_k1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimIEEE2_k2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimIEEE2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* UnderexcLimIEEE2_factory() { - return new UnderexcLimIEEE2; - } -} - -void UnderexcLimIEEE2::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:UnderexcLimIEEE2"), &UnderexcLimIEEE2_factory)); -} - -void UnderexcLimIEEE2::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimIEEE2.tuv"), &assign_UnderexcLimIEEE2_tuv)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimIEEE2.tup"), &assign_UnderexcLimIEEE2_tup)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimIEEE2.tuq"), &assign_UnderexcLimIEEE2_tuq)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimIEEE2.kui"), &assign_UnderexcLimIEEE2_kui)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimIEEE2.kul"), &assign_UnderexcLimIEEE2_kul)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimIEEE2.vuimax"), &assign_UnderexcLimIEEE2_vuimax)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimIEEE2.vuimin"), &assign_UnderexcLimIEEE2_vuimin)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimIEEE2.kuf"), &assign_UnderexcLimIEEE2_kuf)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimIEEE2.kfb"), &assign_UnderexcLimIEEE2_kfb)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimIEEE2.tul"), &assign_UnderexcLimIEEE2_tul)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimIEEE2.tu1"), &assign_UnderexcLimIEEE2_tu1)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimIEEE2.tu2"), &assign_UnderexcLimIEEE2_tu2)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimIEEE2.tu3"), &assign_UnderexcLimIEEE2_tu3)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimIEEE2.tu4"), &assign_UnderexcLimIEEE2_tu4)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimIEEE2.vulmax"), &assign_UnderexcLimIEEE2_vulmax)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimIEEE2.vulmin"), &assign_UnderexcLimIEEE2_vulmin)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimIEEE2.p0"), &assign_UnderexcLimIEEE2_p0)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimIEEE2.q0"), &assign_UnderexcLimIEEE2_q0)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimIEEE2.p1"), &assign_UnderexcLimIEEE2_p1)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimIEEE2.q1"), &assign_UnderexcLimIEEE2_q1)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimIEEE2.p2"), &assign_UnderexcLimIEEE2_p2)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimIEEE2.q2"), &assign_UnderexcLimIEEE2_q2)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimIEEE2.p3"), &assign_UnderexcLimIEEE2_p3)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimIEEE2.q3"), &assign_UnderexcLimIEEE2_q3)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimIEEE2.p4"), &assign_UnderexcLimIEEE2_p4)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimIEEE2.q4"), &assign_UnderexcLimIEEE2_q4)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimIEEE2.p5"), &assign_UnderexcLimIEEE2_p5)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimIEEE2.q5"), &assign_UnderexcLimIEEE2_q5)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimIEEE2.p6"), &assign_UnderexcLimIEEE2_p6)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimIEEE2.q6"), &assign_UnderexcLimIEEE2_q6)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimIEEE2.p7"), &assign_UnderexcLimIEEE2_p7)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimIEEE2.q7"), &assign_UnderexcLimIEEE2_q7)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimIEEE2.p8"), &assign_UnderexcLimIEEE2_p8)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimIEEE2.q8"), &assign_UnderexcLimIEEE2_q8)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimIEEE2.p9"), &assign_UnderexcLimIEEE2_p9)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimIEEE2.q9"), &assign_UnderexcLimIEEE2_q9)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimIEEE2.p10"), &assign_UnderexcLimIEEE2_p10)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimIEEE2.q10"), &assign_UnderexcLimIEEE2_q10)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimIEEE2.k1"), &assign_UnderexcLimIEEE2_k1)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimIEEE2.k2"), &assign_UnderexcLimIEEE2_k2)); -} - -void UnderexcLimIEEE2::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char UnderexcLimIEEE2::debugName[] = "UnderexcLimIEEE2"; -const char* UnderexcLimIEEE2::debugString() -{ - return UnderexcLimIEEE2::debugName; -} - -const BaseClassDefiner UnderexcLimIEEE2::declare() -{ - return BaseClassDefiner(UnderexcLimIEEE2::addConstructToMap, UnderexcLimIEEE2::addPrimitiveAssignFnsToMap, UnderexcLimIEEE2::addClassAssignFnsToMap, UnderexcLimIEEE2::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/UnderexcLimIEEE2.hpp b/CGMES_2.4.13_18DEC2013/UnderexcLimIEEE2.hpp deleted file mode 100644 index 94c021f10..000000000 --- a/CGMES_2.4.13_18DEC2013/UnderexcLimIEEE2.hpp +++ /dev/null @@ -1,81 +0,0 @@ -#ifndef UnderexcLimIEEE2_H -#define UnderexcLimIEEE2_H - -#include "UnderexcitationLimiterDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Seconds.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" - -namespace CIMPP { - - - /* - The class represents the Type UEL2 which has either a straight-line or multi-segment characteristic when plotted in terms of machine reactive power output vs. real power output. Reference: IEEE UEL2 421.5-2005 Section 10.2. (Limit characteristic lookup table shown in Figure 10.4 (p 32) of the standard). - */ - class UnderexcLimIEEE2: public UnderexcitationLimiterDynamics - { - - public: - CIMPP::Seconds tuv; /* Voltage filter time constant (T). Typical Value = 5. Default: nullptr */ - CIMPP::Seconds tup; /* Real power filter time constant (T). Typical Value = 5. Default: nullptr */ - CIMPP::Seconds tuq; /* Reactive power filter time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::PU kui; /* UEL integral gain (K). Typical Value = 0.5. Default: nullptr */ - CIMPP::PU kul; /* UEL proportional gain (K). Typical Value = 0.8. Default: nullptr */ - CIMPP::PU vuimax; /* UEL integrator output maximum limit (V). Typical Value = 0.25. Default: nullptr */ - CIMPP::PU vuimin; /* UEL integrator output minimum limit (V). Typical Value = 0. Default: nullptr */ - CIMPP::PU kuf; /* UEL excitation system stabilizer gain (K). Typical Value = 0. Default: nullptr */ - CIMPP::PU kfb; /* Gain associated with optional integrator feedback input signal to UEL (K). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tul; /* Time constant associated with optional integrator feedback input signal to UEL (T). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tu1; /* UEL lead time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tu2; /* UEL lag time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tu3; /* UEL lead time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::Seconds tu4; /* UEL lag time constant (T). Typical Value = 0. Default: nullptr */ - CIMPP::PU vulmax; /* UEL output maximum limit (V). Typical Value = 0.25. Default: nullptr */ - CIMPP::PU vulmin; /* UEL output minimum limit (V). Typical Value = 0. Default: nullptr */ - CIMPP::PU p0; /* Real power values for endpoints (P). Typical Value = 0. Default: nullptr */ - CIMPP::PU q0; /* Reactive power values for endpoints (Q). Typical Value = -0.31. Default: nullptr */ - CIMPP::PU p1; /* Real power values for endpoints (P). Typical Value = 0.3. Default: nullptr */ - CIMPP::PU q1; /* Reactive power values for endpoints (Q). Typical Value = -0.31. Default: nullptr */ - CIMPP::PU p2; /* Real power values for endpoints (P). Typical Value = 0.6. Default: nullptr */ - CIMPP::PU q2; /* Reactive power values for endpoints (Q). Typical Value = -0.28. Default: nullptr */ - CIMPP::PU p3; /* Real power values for endpoints (P). Typical Value = 0.9. Default: nullptr */ - CIMPP::PU q3; /* Reactive power values for endpoints (Q). Typical Value = -0.21. Default: nullptr */ - CIMPP::PU p4; /* Real power values for endpoints (P). Typical Value = 1.02. Default: nullptr */ - CIMPP::PU q4; /* Reactive power values for endpoints (Q). Typical Value = 0. Default: nullptr */ - CIMPP::PU p5; /* Real power values for endpoints (P). Default: nullptr */ - CIMPP::PU q5; /* Reactive power values for endpoints (Q). Default: nullptr */ - CIMPP::PU p6; /* Real power values for endpoints (P). Default: nullptr */ - CIMPP::PU q6; /* Reactive power values for endpoints (Q). Default: nullptr */ - CIMPP::PU p7; /* Real power values for endpoints (P). Default: nullptr */ - CIMPP::PU q7; /* Reactive power values for endpoints (Q). Default: nullptr */ - CIMPP::PU p8; /* Real power values for endpoints (P). Default: nullptr */ - CIMPP::PU q8; /* Reactive power values for endpoints (Q). Default: nullptr */ - CIMPP::PU p9; /* Real power values for endpoints (P). Default: nullptr */ - CIMPP::PU q9; /* Reactive power values for endpoints (Q). Default: nullptr */ - CIMPP::PU p10; /* Real power values for endpoints (P). Default: nullptr */ - CIMPP::PU q10; /* Reactive power values for endpoints (Q). Default: nullptr */ - CIMPP::Simple_Float k1; /* UEL terminal voltage exponent applied to real power input to UEL limit look-up table (k1). Typical Value = 2. Default: nullptr */ - CIMPP::Simple_Float k2; /* UEL terminal voltage exponent applied to reactive power output from UEL limit look-up table (k2). Typical Value = 2. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - UnderexcLimIEEE2(); - virtual ~UnderexcLimIEEE2(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* UnderexcLimIEEE2_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/UnderexcLimX1.cpp b/CGMES_2.4.13_18DEC2013/UnderexcLimX1.cpp deleted file mode 100644 index 63d2f2f3b..000000000 --- a/CGMES_2.4.13_18DEC2013/UnderexcLimX1.cpp +++ /dev/null @@ -1,131 +0,0 @@ -#include -#include "UnderexcitationLimiterDynamics.hpp" -#include "UnderexcLimX1.hpp" - -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -UnderexcLimX1::UnderexcLimX1() {}; - -UnderexcLimX1::~UnderexcLimX1() {}; - - - - - - - - - -bool assign_UnderexcLimX1_kf2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimX1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kf2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimX1_tf2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimX1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tf2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimX1_km(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimX1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->km; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimX1_tm(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimX1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tm; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimX1_melmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimX1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->melmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimX1_k(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimX1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->k; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* UnderexcLimX1_factory() { - return new UnderexcLimX1; - } -} - -void UnderexcLimX1::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:UnderexcLimX1"), &UnderexcLimX1_factory)); -} - -void UnderexcLimX1::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimX1.kf2"), &assign_UnderexcLimX1_kf2)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimX1.tf2"), &assign_UnderexcLimX1_tf2)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimX1.km"), &assign_UnderexcLimX1_km)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimX1.tm"), &assign_UnderexcLimX1_tm)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimX1.melmax"), &assign_UnderexcLimX1_melmax)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimX1.k"), &assign_UnderexcLimX1_k)); -} - -void UnderexcLimX1::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char UnderexcLimX1::debugName[] = "UnderexcLimX1"; -const char* UnderexcLimX1::debugString() -{ - return UnderexcLimX1::debugName; -} - -const BaseClassDefiner UnderexcLimX1::declare() -{ - return BaseClassDefiner(UnderexcLimX1::addConstructToMap, UnderexcLimX1::addPrimitiveAssignFnsToMap, UnderexcLimX1::addClassAssignFnsToMap, UnderexcLimX1::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/UnderexcLimX1.hpp b/CGMES_2.4.13_18DEC2013/UnderexcLimX1.hpp deleted file mode 100644 index 0a28ebd83..000000000 --- a/CGMES_2.4.13_18DEC2013/UnderexcLimX1.hpp +++ /dev/null @@ -1,46 +0,0 @@ -#ifndef UnderexcLimX1_H -#define UnderexcLimX1_H - -#include "UnderexcitationLimiterDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "Seconds.hpp" - -namespace CIMPP { - - - /* - - */ - class UnderexcLimX1: public UnderexcitationLimiterDynamics - { - - public: - CIMPP::PU kf2; /* Differential gain (Kf2). Default: nullptr */ - CIMPP::Seconds tf2; /* Differential time constant (Tf2) (>0). Default: nullptr */ - CIMPP::PU km; /* Minimum excitation limit gain (Km). Default: nullptr */ - CIMPP::Seconds tm; /* Minimum excitation limit time constant (Tm). Default: nullptr */ - CIMPP::PU melmax; /* Minimum excitation limit value (MELMAX). Default: nullptr */ - CIMPP::PU k; /* Minimum excitation limit slope (K) (>0). Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - UnderexcLimX1(); - virtual ~UnderexcLimX1(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* UnderexcLimX1_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/UnderexcLimX2.cpp b/CGMES_2.4.13_18DEC2013/UnderexcLimX2.cpp deleted file mode 100644 index 0a05e2ee8..000000000 --- a/CGMES_2.4.13_18DEC2013/UnderexcLimX2.cpp +++ /dev/null @@ -1,146 +0,0 @@ -#include -#include "UnderexcitationLimiterDynamics.hpp" -#include "UnderexcLimX2.hpp" - -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -UnderexcLimX2::UnderexcLimX2() {}; - -UnderexcLimX2::~UnderexcLimX2() {}; - - - - - - - - - - -bool assign_UnderexcLimX2_kf2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimX2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kf2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimX2_tf2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimX2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tf2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimX2_km(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimX2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->km; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimX2_tm(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimX2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tm; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimX2_melmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimX2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->melmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimX2_qo(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimX2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->qo; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_UnderexcLimX2_r(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcLimX2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->r; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* UnderexcLimX2_factory() { - return new UnderexcLimX2; - } -} - -void UnderexcLimX2::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:UnderexcLimX2"), &UnderexcLimX2_factory)); -} - -void UnderexcLimX2::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimX2.kf2"), &assign_UnderexcLimX2_kf2)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimX2.tf2"), &assign_UnderexcLimX2_tf2)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimX2.km"), &assign_UnderexcLimX2_km)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimX2.tm"), &assign_UnderexcLimX2_tm)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimX2.melmax"), &assign_UnderexcLimX2_melmax)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimX2.qo"), &assign_UnderexcLimX2_qo)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcLimX2.r"), &assign_UnderexcLimX2_r)); -} - -void UnderexcLimX2::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char UnderexcLimX2::debugName[] = "UnderexcLimX2"; -const char* UnderexcLimX2::debugString() -{ - return UnderexcLimX2::debugName; -} - -const BaseClassDefiner UnderexcLimX2::declare() -{ - return BaseClassDefiner(UnderexcLimX2::addConstructToMap, UnderexcLimX2::addPrimitiveAssignFnsToMap, UnderexcLimX2::addClassAssignFnsToMap, UnderexcLimX2::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/UnderexcLimX2.hpp b/CGMES_2.4.13_18DEC2013/UnderexcLimX2.hpp deleted file mode 100644 index 9dde80c38..000000000 --- a/CGMES_2.4.13_18DEC2013/UnderexcLimX2.hpp +++ /dev/null @@ -1,47 +0,0 @@ -#ifndef UnderexcLimX2_H -#define UnderexcLimX2_H - -#include "UnderexcitationLimiterDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "Seconds.hpp" - -namespace CIMPP { - - - /* - - */ - class UnderexcLimX2: public UnderexcitationLimiterDynamics - { - - public: - CIMPP::PU kf2; /* Differential gain (Kf2). Default: nullptr */ - CIMPP::Seconds tf2; /* Differential time constant (Tf2) (>0). Default: nullptr */ - CIMPP::PU km; /* Minimum excitation limit gain (Km). Default: nullptr */ - CIMPP::Seconds tm; /* Minimum excitation limit time constant (Tm). Default: nullptr */ - CIMPP::PU melmax; /* Minimum excitation limit value (MELMAX). Default: nullptr */ - CIMPP::PU qo; /* Excitation center setting (Qo). Default: nullptr */ - CIMPP::PU r; /* Excitation radius (R). Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - UnderexcLimX2(); - virtual ~UnderexcLimX2(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* UnderexcLimX2_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/UnderexcitationLimiterDynamics.cpp b/CGMES_2.4.13_18DEC2013/UnderexcitationLimiterDynamics.cpp deleted file mode 100644 index b12fed72e..000000000 --- a/CGMES_2.4.13_18DEC2013/UnderexcitationLimiterDynamics.cpp +++ /dev/null @@ -1,66 +0,0 @@ -#include -#include "DynamicsFunctionBlock.hpp" -#include "UnderexcitationLimiterDynamics.hpp" - -#include "RemoteInputSignal.hpp" -#include "ExcitationSystemDynamics.hpp" - -using namespace CIMPP; - -UnderexcitationLimiterDynamics::UnderexcitationLimiterDynamics(): RemoteInputSignal(nullptr), ExcitationSystemDynamics(nullptr) {}; - -UnderexcitationLimiterDynamics::~UnderexcitationLimiterDynamics() {}; - - -bool assign_UnderexcitationLimiterDynamics_RemoteInputSignal(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(UnderexcitationLimiterDynamics* element = dynamic_cast(BaseClass_ptr1)) { - element->RemoteInputSignal = dynamic_cast(BaseClass_ptr2); - if(element->RemoteInputSignal != nullptr) - return true; - } - return false; -} - -bool assign_ExcitationSystemDynamics_UnderexcitationLimiterDynamics(BaseClass*, BaseClass*); -bool assign_UnderexcitationLimiterDynamics_ExcitationSystemDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(UnderexcitationLimiterDynamics* element = dynamic_cast(BaseClass_ptr1)) { - element->ExcitationSystemDynamics = dynamic_cast(BaseClass_ptr2); - if(element->ExcitationSystemDynamics != nullptr) - return assign_ExcitationSystemDynamics_UnderexcitationLimiterDynamics(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - - -namespace CIMPP { - BaseClass* UnderexcitationLimiterDynamics_factory() { - return new UnderexcitationLimiterDynamics; - } -} - -void UnderexcitationLimiterDynamics::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:UnderexcitationLimiterDynamics"), &UnderexcitationLimiterDynamics_factory)); -} - -void UnderexcitationLimiterDynamics::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void UnderexcitationLimiterDynamics::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:UnderexcitationLimiterDynamics.RemoteInputSignal"), &assign_UnderexcitationLimiterDynamics_RemoteInputSignal)); - assign_map.insert(std::make_pair(std::string("cim:UnderexcitationLimiterDynamics.ExcitationSystemDynamics"), &assign_UnderexcitationLimiterDynamics_ExcitationSystemDynamics)); -} - -const char UnderexcitationLimiterDynamics::debugName[] = "UnderexcitationLimiterDynamics"; -const char* UnderexcitationLimiterDynamics::debugString() -{ - return UnderexcitationLimiterDynamics::debugName; -} - -const BaseClassDefiner UnderexcitationLimiterDynamics::declare() -{ - return BaseClassDefiner(UnderexcitationLimiterDynamics::addConstructToMap, UnderexcitationLimiterDynamics::addPrimitiveAssignFnsToMap, UnderexcitationLimiterDynamics::addClassAssignFnsToMap, UnderexcitationLimiterDynamics::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/UnderexcitationLimiterDynamics.hpp b/CGMES_2.4.13_18DEC2013/UnderexcitationLimiterDynamics.hpp deleted file mode 100644 index 1f6b6b2b6..000000000 --- a/CGMES_2.4.13_18DEC2013/UnderexcitationLimiterDynamics.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef UnderexcitationLimiterDynamics_H -#define UnderexcitationLimiterDynamics_H - -#include "DynamicsFunctionBlock.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class RemoteInputSignal; -class ExcitationSystemDynamics; - /* - Underexcitation limiter function block whose behaviour is described by reference to a standard model - */ - class UnderexcitationLimiterDynamics: public DynamicsFunctionBlock - { - - public: - CIMPP::RemoteInputSignal* RemoteInputSignal; /* Remote input signal used by this underexcitation limiter model. Default: 0 */ - CIMPP::ExcitationSystemDynamics* ExcitationSystemDynamics; /* Excitation system model with which this underexcitation limiter model is associated. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - UnderexcitationLimiterDynamics(); - virtual ~UnderexcitationLimiterDynamics(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* UnderexcitationLimiterDynamics_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/UnderexcitationLimiterUserDefined.cpp b/CGMES_2.4.13_18DEC2013/UnderexcitationLimiterUserDefined.cpp deleted file mode 100644 index 83d2787f9..000000000 --- a/CGMES_2.4.13_18DEC2013/UnderexcitationLimiterUserDefined.cpp +++ /dev/null @@ -1,69 +0,0 @@ -#include -#include "UnderexcitationLimiterDynamics.hpp" -#include "UnderexcitationLimiterUserDefined.hpp" - -#include "Boolean.hpp" -#include "ProprietaryParameterDynamics.hpp" - -using namespace CIMPP; - -UnderexcitationLimiterUserDefined::UnderexcitationLimiterUserDefined() {}; - -UnderexcitationLimiterUserDefined::~UnderexcitationLimiterUserDefined() {}; - - - -bool assign_UnderexcitationLimiterUserDefined_ProprietaryParameterDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(UnderexcitationLimiterUserDefined* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->ProprietaryParameterDynamics.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - -bool assign_UnderexcitationLimiterUserDefined_proprietary(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(UnderexcitationLimiterUserDefined* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->proprietary; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -namespace CIMPP { - BaseClass* UnderexcitationLimiterUserDefined_factory() { - return new UnderexcitationLimiterUserDefined; - } -} - -void UnderexcitationLimiterUserDefined::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:UnderexcitationLimiterUserDefined"), &UnderexcitationLimiterUserDefined_factory)); -} - -void UnderexcitationLimiterUserDefined::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:UnderexcitationLimiterUserDefined.proprietary"), &assign_UnderexcitationLimiterUserDefined_proprietary)); - } - -void UnderexcitationLimiterUserDefined::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:UnderexcitationLimiterUserDefined.ProprietaryParameterDynamics"), &assign_UnderexcitationLimiterUserDefined_ProprietaryParameterDynamics)); -} - -const char UnderexcitationLimiterUserDefined::debugName[] = "UnderexcitationLimiterUserDefined"; -const char* UnderexcitationLimiterUserDefined::debugString() -{ - return UnderexcitationLimiterUserDefined::debugName; -} - -const BaseClassDefiner UnderexcitationLimiterUserDefined::declare() -{ - return BaseClassDefiner(UnderexcitationLimiterUserDefined::addConstructToMap, UnderexcitationLimiterUserDefined::addPrimitiveAssignFnsToMap, UnderexcitationLimiterUserDefined::addClassAssignFnsToMap, UnderexcitationLimiterUserDefined::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/UnderexcitationLimiterUserDefined.hpp b/CGMES_2.4.13_18DEC2013/UnderexcitationLimiterUserDefined.hpp deleted file mode 100644 index fda986fbc..000000000 --- a/CGMES_2.4.13_18DEC2013/UnderexcitationLimiterUserDefined.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef UnderexcitationLimiterUserDefined_H -#define UnderexcitationLimiterUserDefined_H - -#include "UnderexcitationLimiterDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Boolean.hpp" - -namespace CIMPP { - - -class ProprietaryParameterDynamics; - /* - Underexcitation limiter function block whose dynamic behaviour is described by - */ - class UnderexcitationLimiterUserDefined: public UnderexcitationLimiterDynamics - { - - public: - CIMPP::Boolean proprietary; /* Behaviour is based on proprietary model as opposed to detailed model. true = user-defined model is proprietary with behaviour mutually understood by sending and receiving applications and parameters passed as general attributes false = user-defined model is explicitly defined in terms of control blocks and their input and output signals. Default: false */ - std::list ProprietaryParameterDynamics; /* Parameter of this proprietary user-defined model. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - UnderexcitationLimiterUserDefined(); - virtual ~UnderexcitationLimiterUserDefined(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* UnderexcitationLimiterUserDefined_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/UnitMultiplier.cpp b/CGMES_2.4.13_18DEC2013/UnitMultiplier.cpp deleted file mode 100644 index 1c4e564c8..000000000 --- a/CGMES_2.4.13_18DEC2013/UnitMultiplier.cpp +++ /dev/null @@ -1,82 +0,0 @@ -#include -#include -#include "UnitMultiplier.hpp" - -using namespace CIMPP; - -namespace CIMPP { - std::istream& operator>>(std::istream& lop, CIMPP::UnitMultiplier& rop) - { - std::string EnumSymbol; - lop >> EnumSymbol; - - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "UnitMultiplier") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "p") - { - rop = UnitMultiplier::p; - return lop; - } - if(EnumSymbol == "n") - { - rop = UnitMultiplier::n; - return lop; - } - if(EnumSymbol == "micro") - { - rop = UnitMultiplier::micro; - return lop; - } - if(EnumSymbol == "m") - { - rop = UnitMultiplier::m; - return lop; - } - if(EnumSymbol == "c") - { - rop = UnitMultiplier::c; - return lop; - } - if(EnumSymbol == "d") - { - rop = UnitMultiplier::d; - return lop; - } - if(EnumSymbol == "k") - { - rop = UnitMultiplier::k; - return lop; - } - if(EnumSymbol == "M") - { - rop = UnitMultiplier::M; - return lop; - } - if(EnumSymbol == "G") - { - rop = UnitMultiplier::G; - return lop; - } - if(EnumSymbol == "T") - { - rop = UnitMultiplier::T; - return lop; - } - if(EnumSymbol == "none") - { - rop = UnitMultiplier::none; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; - } -} - diff --git a/CGMES_2.4.13_18DEC2013/UnitMultiplier.hpp b/CGMES_2.4.13_18DEC2013/UnitMultiplier.hpp deleted file mode 100644 index 8f4273089..000000000 --- a/CGMES_2.4.13_18DEC2013/UnitMultiplier.hpp +++ /dev/null @@ -1,57 +0,0 @@ -#ifndef UnitMultiplier_H -#define UnitMultiplier_H - -namespace CIMPP { - /* - The unit multipliers defined for the CIM. - */ - enum class UnitMultiplier - { - /** - * Pico 10**-12. - */ - p, - /** - * Nano 10**-9. - */ - n, - /** - * Micro 10**-6. - */ - micro, - /** - * Milli 10**-3. - */ - m, - /** - * Centi 10**-2. - */ - c, - /** - * Deci 10**-1. - */ - d, - /** - * Kilo 10**3. - */ - k, - /** - * Mega 10**6. - */ - M, - /** - * Giga 10**9. - */ - G, - /** - * Tera 10**12. - */ - T, - /** - * No multiplier or equivalently multiply by 1. - */ - none, - }; - std::istream& operator>>(std::istream& lop, CIMPP::UnitMultiplier& rop); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/UnitSymbol.cpp b/CGMES_2.4.13_18DEC2013/UnitSymbol.cpp deleted file mode 100644 index 2eafd7cdc..000000000 --- a/CGMES_2.4.13_18DEC2013/UnitSymbol.cpp +++ /dev/null @@ -1,162 +0,0 @@ -#include -#include -#include "UnitSymbol.hpp" - -using namespace CIMPP; - -namespace CIMPP { - std::istream& operator>>(std::istream& lop, CIMPP::UnitSymbol& rop) - { - std::string EnumSymbol; - lop >> EnumSymbol; - - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "UnitSymbol") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "VA") - { - rop = UnitSymbol::VA; - return lop; - } - if(EnumSymbol == "W") - { - rop = UnitSymbol::W; - return lop; - } - if(EnumSymbol == "VAr") - { - rop = UnitSymbol::VAr; - return lop; - } - if(EnumSymbol == "VAh") - { - rop = UnitSymbol::VAh; - return lop; - } - if(EnumSymbol == "Wh") - { - rop = UnitSymbol::Wh; - return lop; - } - if(EnumSymbol == "VArh") - { - rop = UnitSymbol::VArh; - return lop; - } - if(EnumSymbol == "V") - { - rop = UnitSymbol::V; - return lop; - } - if(EnumSymbol == "ohm") - { - rop = UnitSymbol::ohm; - return lop; - } - if(EnumSymbol == "A") - { - rop = UnitSymbol::A; - return lop; - } - if(EnumSymbol == "F") - { - rop = UnitSymbol::F; - return lop; - } - if(EnumSymbol == "H") - { - rop = UnitSymbol::H; - return lop; - } - if(EnumSymbol == "degC") - { - rop = UnitSymbol::degC; - return lop; - } - if(EnumSymbol == "s") - { - rop = UnitSymbol::s; - return lop; - } - if(EnumSymbol == "min") - { - rop = UnitSymbol::min; - return lop; - } - if(EnumSymbol == "h") - { - rop = UnitSymbol::h; - return lop; - } - if(EnumSymbol == "deg") - { - rop = UnitSymbol::deg; - return lop; - } - if(EnumSymbol == "rad") - { - rop = UnitSymbol::rad; - return lop; - } - if(EnumSymbol == "J") - { - rop = UnitSymbol::J; - return lop; - } - if(EnumSymbol == "N") - { - rop = UnitSymbol::N; - return lop; - } - if(EnumSymbol == "S") - { - rop = UnitSymbol::S; - return lop; - } - if(EnumSymbol == "none") - { - rop = UnitSymbol::none; - return lop; - } - if(EnumSymbol == "Hz") - { - rop = UnitSymbol::Hz; - return lop; - } - if(EnumSymbol == "g") - { - rop = UnitSymbol::g; - return lop; - } - if(EnumSymbol == "Pa") - { - rop = UnitSymbol::Pa; - return lop; - } - if(EnumSymbol == "m") - { - rop = UnitSymbol::m; - return lop; - } - if(EnumSymbol == "m2") - { - rop = UnitSymbol::m2; - return lop; - } - if(EnumSymbol == "m3") - { - rop = UnitSymbol::m3; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; - } -} - diff --git a/CGMES_2.4.13_18DEC2013/UnitSymbol.hpp b/CGMES_2.4.13_18DEC2013/UnitSymbol.hpp deleted file mode 100644 index 536d56505..000000000 --- a/CGMES_2.4.13_18DEC2013/UnitSymbol.hpp +++ /dev/null @@ -1,121 +0,0 @@ -#ifndef UnitSymbol_H -#define UnitSymbol_H - -namespace CIMPP { - /* - The units defined for usage in the CIM. - */ - enum class UnitSymbol - { - /** - * Apparent power in volt ampere. - */ - VA, - /** - * Active power in watt. - */ - W, - /** - * Reactive power in volt ampere reactive. - */ - VAr, - /** - * Apparent energy in volt ampere hours. - */ - VAh, - /** - * Real energy in what hours. - */ - Wh, - /** - * Reactive energy in volt ampere reactive hours. - */ - VArh, - /** - * Voltage in volt. - */ - V, - /** - * Resistance in ohm. - */ - ohm, - /** - * Current in ampere. - */ - A, - /** - * Capacitance in farad. - */ - F, - /** - * Inductance in henry. - */ - H, - /** - * Relative temperature in degrees Celsius. In the SI unit system the symbol is [SYMBOL REMOVED]C. Electric charge is measured in coulomb that has the unit symbol C. To distinguish degree Celsius form coulomb the symbol used in the UML is degC. Reason for not using [SYMBOL REMOVED]C is the special character [SYMBOL REMOVED] is difficult to manage in software. - */ - degC, - /** - * Time in seconds. - */ - s, - /** - * Time in minutes. - */ - min, - /** - * Time in hours. - */ - h, - /** - * Plane angle in degrees. - */ - deg, - /** - * Plane angle in radians. - */ - rad, - /** - * Energy in joule. - */ - J, - /** - * Force in newton. - */ - N, - /** - * Conductance in siemens. - */ - S, - /** - * Dimension less quantity, e.g. count, per unit, etc. - */ - none, - /** - * Frequency in hertz. - */ - Hz, - /** - * Mass in gram. - */ - g, - /** - * Pressure in pascal (n/m2). - */ - Pa, - /** - * Length in meter. - */ - m, - /** - * Area in square meters. - */ - m2, - /** - * Volume in cubic meters. - */ - m3, - }; - std::istream& operator>>(std::istream& lop, CIMPP::UnitSymbol& rop); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/UnknownType.cpp b/CGMES_2.4.13_18DEC2013/UnknownType.cpp deleted file mode 100644 index 1518151d5..000000000 --- a/CGMES_2.4.13_18DEC2013/UnknownType.cpp +++ /dev/null @@ -1,136 +0,0 @@ -#include -#include -#include -#include - -#include "BaseClass.hpp" -#include "UnknownType.hpp" - -using namespace CIMPP; - -UnknownType::UnknownType() {}; - -UnknownType::~UnknownType() {}; - -bool seenAttribute(std::string name, std::string value) { - static std::list> seenAttributes; - bool found = false; - for(const std::pair & attribute : seenAttributes) { - if (name == attribute.first && value == attribute.second) { - found = true; - - } - } - if (!found) { - seenAttributes.push_back(std::pair(name, value)); - } - return found; -} - -bool assign_Unknown_Attribute(std::stringstream &buffer, std::string name) { - std::string attribute; - buffer >> attribute; - if(buffer.fail()) { - return false; - } - else if (!seenAttribute(name, attribute)) { - std::cout << "Warning: could not assign attribute with name: " << name << " and value: " << attribute << std::endl; - } - return true; -} - -bool assign_Name_name(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - return assign_Unknown_Attribute(buffer, "cim:Name.name"); -} - -bool assign_NameType_name(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - return assign_Unknown_Attribute(buffer, "cim:NameType.name"); -} - -bool assign_Name_IdentifiedObject(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - return assign_Unknown_Attribute(buffer, "cim:Name.IdentifiedObject"); -} - -bool assign_ACDCTerminal_connected(std::stringstream &buffer, BaseClass* BaseClass_ptr1); -bool assign_ACDCTerminal_sequenceNumber(std::stringstream &buffer, BaseClass* BaseClass_ptr1); - -bool assign_Unknown_Class(std::string type) { - std::cout << "Warning: could not assign class of unrecognised type " << type << "." << std::endl; - return true; -} - -bool assign_Class_NameType_name(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - static bool seen = false; - if (seen){ - return true; - } - else { - seen = true; - return assign_Unknown_Class("cim:NameType.name"); - } -} - -bool assign_Class_Name_NameType(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - static bool seen = false; - if (seen){ - return true; - } - else { - seen = true; - return assign_Unknown_Class("cim:Name.NameType"); - } -} - -bool assign_Class_Name_name(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - static bool seen = false; - if (seen){ - return true; - } - else { - seen = true; - return assign_Unknown_Class("cim:Name.name"); - } -} - -bool assign_Class_Name_IdentifiedObject(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - static bool seen = false; - if (seen){ - return true; - } - else { - seen = true; - return assign_Unknown_Class("cim:Name.IdentifiedObject"); - } -} - -void UnknownType::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:Terminal.sequenceNumber"), &assign_ACDCTerminal_sequenceNumber)); - assign_map.insert(std::make_pair(std::string("cim:Terminal.connected"), &assign_ACDCTerminal_connected)); - assign_map.insert(std::make_pair(std::string("cim:Name.name"), &assign_Name_name)); - assign_map.insert(std::make_pair(std::string("cim:NameType.name"), &assign_NameType_name)); -} - -void UnknownType::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:Name.name"), &assign_Class_Name_name)); - assign_map.insert(std::make_pair(std::string("cim:Name.IdentifiedObject"), &assign_Class_Name_IdentifiedObject)); - assign_map.insert(std::make_pair(std::string("cim:NameType.name"), &assign_Class_NameType_name)); - assign_map.insert(std::make_pair(std::string("cim:Name.NameType"), &assign_Class_Name_NameType)); -} - -namespace CIMPP { - BaseClass* UnknownType_factory() { - return new UnknownType; - } -} - -void UnknownType::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:NameType"), &UnknownType_factory)); - factory_map.insert(std::make_pair(std::string("cim:Name"), &UnknownType_factory)); -} - -const char UnknownType::debugName[] = "UnknownType"; - -const BaseClassDefiner UnknownType::declare() -{ - return BaseClassDefiner(addConstructToMap, addPrimitiveAssignFnsToMap, addClassAssignFnsToMap, debugName); -} diff --git a/CGMES_2.4.13_18DEC2013/UnknownType.hpp b/CGMES_2.4.13_18DEC2013/UnknownType.hpp deleted file mode 100644 index 6cc8acd7e..000000000 --- a/CGMES_2.4.13_18DEC2013/UnknownType.hpp +++ /dev/null @@ -1,24 +0,0 @@ -#ifndef UnknownType_H -#define UnknownType_H -#include -#include -#include -#include "BaseClass.hpp" - - -namespace CIMPP { - - class UnknownType: public BaseClass - { -public: - static const char debugName[]; - UnknownType(); - virtual ~UnknownType(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - }; -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/VAdjIEEE.cpp b/CGMES_2.4.13_18DEC2013/VAdjIEEE.cpp deleted file mode 100644 index 11850a91c..000000000 --- a/CGMES_2.4.13_18DEC2013/VAdjIEEE.cpp +++ /dev/null @@ -1,131 +0,0 @@ -#include -#include "VoltageAdjusterDynamics.hpp" -#include "VAdjIEEE.hpp" - -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" - -using namespace CIMPP; - -VAdjIEEE::VAdjIEEE() {}; - -VAdjIEEE::~VAdjIEEE() {}; - - - - - - - - - -bool assign_VAdjIEEE_vadjf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(VAdjIEEE* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vadjf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_VAdjIEEE_adjslew(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(VAdjIEEE* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->adjslew; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_VAdjIEEE_vadjmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(VAdjIEEE* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vadjmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_VAdjIEEE_vadjmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(VAdjIEEE* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->vadjmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_VAdjIEEE_taon(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(VAdjIEEE* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->taon; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_VAdjIEEE_taoff(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(VAdjIEEE* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->taoff; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* VAdjIEEE_factory() { - return new VAdjIEEE; - } -} - -void VAdjIEEE::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:VAdjIEEE"), &VAdjIEEE_factory)); -} - -void VAdjIEEE::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:VAdjIEEE.vadjf"), &assign_VAdjIEEE_vadjf)); - assign_map.insert(std::make_pair(std::string("cim:VAdjIEEE.adjslew"), &assign_VAdjIEEE_adjslew)); - assign_map.insert(std::make_pair(std::string("cim:VAdjIEEE.vadjmax"), &assign_VAdjIEEE_vadjmax)); - assign_map.insert(std::make_pair(std::string("cim:VAdjIEEE.vadjmin"), &assign_VAdjIEEE_vadjmin)); - assign_map.insert(std::make_pair(std::string("cim:VAdjIEEE.taon"), &assign_VAdjIEEE_taon)); - assign_map.insert(std::make_pair(std::string("cim:VAdjIEEE.taoff"), &assign_VAdjIEEE_taoff)); -} - -void VAdjIEEE::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char VAdjIEEE::debugName[] = "VAdjIEEE"; -const char* VAdjIEEE::debugString() -{ - return VAdjIEEE::debugName; -} - -const BaseClassDefiner VAdjIEEE::declare() -{ - return BaseClassDefiner(VAdjIEEE::addConstructToMap, VAdjIEEE::addPrimitiveAssignFnsToMap, VAdjIEEE::addClassAssignFnsToMap, VAdjIEEE::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/VAdjIEEE.hpp b/CGMES_2.4.13_18DEC2013/VAdjIEEE.hpp deleted file mode 100644 index 29e19347e..000000000 --- a/CGMES_2.4.13_18DEC2013/VAdjIEEE.hpp +++ /dev/null @@ -1,47 +0,0 @@ -#ifndef VAdjIEEE_H -#define VAdjIEEE_H - -#include "VoltageAdjusterDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "Seconds.hpp" - -namespace CIMPP { - - - /* - The class represents IEEE Voltage Adjuster which is used to represent the voltage adjuster in either a power factor or var control system. Reference: IEEE Standard 421.5-2005 Section 11.1. - */ - class VAdjIEEE: public VoltageAdjusterDynamics - { - - public: - CIMPP::Simple_Float vadjf; /* Set high to provide a continuous raise or lower (). Default: nullptr */ - CIMPP::Simple_Float adjslew; /* Rate at which output of adjuster changes (). Unit = sec./PU. Typical Value = 300. Default: nullptr */ - CIMPP::PU vadjmax; /* Maximum output of the adjuster (). Typical Value = 1.1. Default: nullptr */ - CIMPP::PU vadjmin; /* Minimum output of the adjuster (). Typical Value = 0.9. Default: nullptr */ - CIMPP::Seconds taon; /* Time that adjuster pulses are on (). Typical Value = 0.1. Default: nullptr */ - CIMPP::Seconds taoff; /* Time that adjuster pulses are off (). Typical Value = 0.5. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - VAdjIEEE(); - virtual ~VAdjIEEE(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* VAdjIEEE_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/VCompIEEEType1.cpp b/CGMES_2.4.13_18DEC2013/VCompIEEEType1.cpp deleted file mode 100644 index ca9a4e20d..000000000 --- a/CGMES_2.4.13_18DEC2013/VCompIEEEType1.cpp +++ /dev/null @@ -1,86 +0,0 @@ -#include -#include "VoltageCompensatorDynamics.hpp" -#include "VCompIEEEType1.hpp" - -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" - -using namespace CIMPP; - -VCompIEEEType1::VCompIEEEType1() {}; - -VCompIEEEType1::~VCompIEEEType1() {}; - - - - - - -bool assign_VCompIEEEType1_rc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(VCompIEEEType1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->rc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_VCompIEEEType1_xc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(VCompIEEEType1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->xc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_VCompIEEEType1_tr(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(VCompIEEEType1* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tr; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* VCompIEEEType1_factory() { - return new VCompIEEEType1; - } -} - -void VCompIEEEType1::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:VCompIEEEType1"), &VCompIEEEType1_factory)); -} - -void VCompIEEEType1::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:VCompIEEEType1.rc"), &assign_VCompIEEEType1_rc)); - assign_map.insert(std::make_pair(std::string("cim:VCompIEEEType1.xc"), &assign_VCompIEEEType1_xc)); - assign_map.insert(std::make_pair(std::string("cim:VCompIEEEType1.tr"), &assign_VCompIEEEType1_tr)); -} - -void VCompIEEEType1::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char VCompIEEEType1::debugName[] = "VCompIEEEType1"; -const char* VCompIEEEType1::debugString() -{ - return VCompIEEEType1::debugName; -} - -const BaseClassDefiner VCompIEEEType1::declare() -{ - return BaseClassDefiner(VCompIEEEType1::addConstructToMap, VCompIEEEType1::addPrimitiveAssignFnsToMap, VCompIEEEType1::addClassAssignFnsToMap, VCompIEEEType1::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/VCompIEEEType1.hpp b/CGMES_2.4.13_18DEC2013/VCompIEEEType1.hpp deleted file mode 100644 index dba5bc5ba..000000000 --- a/CGMES_2.4.13_18DEC2013/VCompIEEEType1.hpp +++ /dev/null @@ -1,43 +0,0 @@ -#ifndef VCompIEEEType1_H -#define VCompIEEEType1_H - -#include "VoltageCompensatorDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "Seconds.hpp" - -namespace CIMPP { - - - /* - Reference: IEEE Standard 421.5-2005 Section 4. - */ - class VCompIEEEType1: public VoltageCompensatorDynamics - { - - public: - CIMPP::PU rc; /* Default: nullptr */ - CIMPP::PU xc; /* Default: nullptr */ - CIMPP::Seconds tr; /* Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - VCompIEEEType1(); - virtual ~VCompIEEEType1(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* VCompIEEEType1_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/VCompIEEEType2.cpp b/CGMES_2.4.13_18DEC2013/VCompIEEEType2.cpp deleted file mode 100644 index 14daa99b2..000000000 --- a/CGMES_2.4.13_18DEC2013/VCompIEEEType2.cpp +++ /dev/null @@ -1,68 +0,0 @@ -#include -#include "VoltageCompensatorDynamics.hpp" -#include "VCompIEEEType2.hpp" - -#include "Seconds.hpp" -#include "GenICompensationForGenJ.hpp" - -using namespace CIMPP; - -VCompIEEEType2::VCompIEEEType2(): GenICompensationForGenJ(nullptr) {}; - -VCompIEEEType2::~VCompIEEEType2() {}; - - - -bool assign_VCompIEEEType2_GenICompensationForGenJ(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(VCompIEEEType2* element = dynamic_cast(BaseClass_ptr1)) { - element->GenICompensationForGenJ = dynamic_cast(BaseClass_ptr2); - if(element->GenICompensationForGenJ != nullptr) - return true; - } - return false; -} - - -bool assign_VCompIEEEType2_tr(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(VCompIEEEType2* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tr; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -namespace CIMPP { - BaseClass* VCompIEEEType2_factory() { - return new VCompIEEEType2; - } -} - -void VCompIEEEType2::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:VCompIEEEType2"), &VCompIEEEType2_factory)); -} - -void VCompIEEEType2::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:VCompIEEEType2.tr"), &assign_VCompIEEEType2_tr)); - } - -void VCompIEEEType2::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:VCompIEEEType2.GenICompensationForGenJ"), &assign_VCompIEEEType2_GenICompensationForGenJ)); -} - -const char VCompIEEEType2::debugName[] = "VCompIEEEType2"; -const char* VCompIEEEType2::debugString() -{ - return VCompIEEEType2::debugName; -} - -const BaseClassDefiner VCompIEEEType2::declare() -{ - return BaseClassDefiner(VCompIEEEType2::addConstructToMap, VCompIEEEType2::addPrimitiveAssignFnsToMap, VCompIEEEType2::addClassAssignFnsToMap, VCompIEEEType2::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/VCompIEEEType2.hpp b/CGMES_2.4.13_18DEC2013/VCompIEEEType2.hpp deleted file mode 100644 index 14dd6d973..000000000 --- a/CGMES_2.4.13_18DEC2013/VCompIEEEType2.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef VCompIEEEType2_H -#define VCompIEEEType2_H - -#include "VoltageCompensatorDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Seconds.hpp" - -namespace CIMPP { - - -class GenICompensationForGenJ; - /* - - */ - class VCompIEEEType2: public VoltageCompensatorDynamics - { - - public: - CIMPP::Seconds tr; /* Default: nullptr */ - CIMPP::GenICompensationForGenJ* GenICompensationForGenJ; /* Compensation of this voltage compensator`s generator for current flow out of another generator. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - VCompIEEEType2(); - virtual ~VCompIEEEType2(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* VCompIEEEType2_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/Validity.cpp b/CGMES_2.4.13_18DEC2013/Validity.cpp deleted file mode 100644 index be115cd76..000000000 --- a/CGMES_2.4.13_18DEC2013/Validity.cpp +++ /dev/null @@ -1,42 +0,0 @@ -#include -#include -#include "Validity.hpp" - -using namespace CIMPP; - -namespace CIMPP { - std::istream& operator>>(std::istream& lop, CIMPP::Validity& rop) - { - std::string EnumSymbol; - lop >> EnumSymbol; - - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "Validity") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "GOOD") - { - rop = Validity::GOOD; - return lop; - } - if(EnumSymbol == "QUESTIONABLE") - { - rop = Validity::QUESTIONABLE; - return lop; - } - if(EnumSymbol == "INVALID") - { - rop = Validity::INVALID; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; - } -} - diff --git a/CGMES_2.4.13_18DEC2013/Validity.hpp b/CGMES_2.4.13_18DEC2013/Validity.hpp deleted file mode 100644 index 5c66bbbc6..000000000 --- a/CGMES_2.4.13_18DEC2013/Validity.hpp +++ /dev/null @@ -1,25 +0,0 @@ -#ifndef Validity_H -#define Validity_H - -namespace CIMPP { - /* - Validity for MeasurementValue. - */ - enum class Validity - { - /** - * The value is marked good if no abnormal condition of the acquisition function or the information source is detected. - */ - GOOD, - /** - * The value is marked questionable if a supervision function detects an abnormal behaviour, however the value could still be valid. The client is responsible for determining whether or not values marked "questionable" should be used. - */ - QUESTIONABLE, - /** - * The value is marked invalid when a supervision function recognises abnormal conditions of the acquisition function or the information source (missing or non-operating updating devices). The value is not defined under this condition. The mark invalid is used to indicate to the client that the value may be incorrect and shall not be used. - */ - INVALID, - }; - std::istream& operator>>(std::istream& lop, CIMPP::Validity& rop); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ValueAliasSet.cpp b/CGMES_2.4.13_18DEC2013/ValueAliasSet.cpp deleted file mode 100644 index 0829d94cf..000000000 --- a/CGMES_2.4.13_18DEC2013/ValueAliasSet.cpp +++ /dev/null @@ -1,93 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "ValueAliasSet.hpp" - -#include "Command.hpp" -#include "Discrete.hpp" -#include "RaiseLowerCommand.hpp" -#include "ValueToAlias.hpp" - -using namespace CIMPP; - -ValueAliasSet::ValueAliasSet() {}; - -ValueAliasSet::~ValueAliasSet() {}; - - -bool assign_ValueAliasSet_Commands(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ValueAliasSet* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->Commands.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_ValueAliasSet_Discretes(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ValueAliasSet* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->Discretes.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_ValueAliasSet_RaiseLowerCommands(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ValueAliasSet* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->RaiseLowerCommands.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_ValueAliasSet_Values(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ValueAliasSet* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->Values.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - - - - - -namespace CIMPP { - BaseClass* ValueAliasSet_factory() { - return new ValueAliasSet; - } -} - -void ValueAliasSet::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ValueAliasSet"), &ValueAliasSet_factory)); -} - -void ValueAliasSet::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void ValueAliasSet::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ValueAliasSet.Commands"), &assign_ValueAliasSet_Commands)); - assign_map.insert(std::make_pair(std::string("cim:ValueAliasSet.Discretes"), &assign_ValueAliasSet_Discretes)); - assign_map.insert(std::make_pair(std::string("cim:ValueAliasSet.RaiseLowerCommands"), &assign_ValueAliasSet_RaiseLowerCommands)); - assign_map.insert(std::make_pair(std::string("cim:ValueAliasSet.Values"), &assign_ValueAliasSet_Values)); -} - -const char ValueAliasSet::debugName[] = "ValueAliasSet"; -const char* ValueAliasSet::debugString() -{ - return ValueAliasSet::debugName; -} - -const BaseClassDefiner ValueAliasSet::declare() -{ - return BaseClassDefiner(ValueAliasSet::addConstructToMap, ValueAliasSet::addPrimitiveAssignFnsToMap, ValueAliasSet::addClassAssignFnsToMap, ValueAliasSet::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ValueAliasSet.hpp b/CGMES_2.4.13_18DEC2013/ValueAliasSet.hpp deleted file mode 100644 index f0cafcbee..000000000 --- a/CGMES_2.4.13_18DEC2013/ValueAliasSet.hpp +++ /dev/null @@ -1,46 +0,0 @@ -#ifndef ValueAliasSet_H -#define ValueAliasSet_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class Command; -class Discrete; -class RaiseLowerCommand; -class ValueToAlias; - /* - Describes the translation of a set of values into a name and is intendend to facilitate cusom translations. Each ValueAliasSet has a name, description etc. A specific Measurement may represent a discrete state like Open, Closed, Intermediate etc. This requires a translation from the MeasurementValue.value number to a string, e.g. 0->"Invalid", 1->"Open", 2->"Closed", 3->"Intermediate". Each ValueToAlias member in ValueAliasSet.Value describe a mapping for one particular value to a name. - */ - class ValueAliasSet: public IdentifiedObject - { - - public: - std::list Commands; /* The Commands using the set for translation. Default: 0 */ - std::list Discretes; /* The Measurements using the set for translation. Default: 0 */ - std::list RaiseLowerCommands; /* The Commands using the set for translation. Default: 0 */ - std::list Values; /* The ValueAliasSet having the ValueToAlias mappings. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ValueAliasSet(); - virtual ~ValueAliasSet(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ValueAliasSet_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/ValueToAlias.cpp b/CGMES_2.4.13_18DEC2013/ValueToAlias.cpp deleted file mode 100644 index a5e24988e..000000000 --- a/CGMES_2.4.13_18DEC2013/ValueToAlias.cpp +++ /dev/null @@ -1,69 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "ValueToAlias.hpp" - -#include "ValueAliasSet.hpp" -#include "Integer.hpp" - -using namespace CIMPP; - -ValueToAlias::ValueToAlias(): ValueAliasSet(nullptr) {}; - -ValueToAlias::~ValueToAlias() {}; - - -bool assign_ValueAliasSet_Values(BaseClass*, BaseClass*); -bool assign_ValueToAlias_ValueAliasSet(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(ValueToAlias* element = dynamic_cast(BaseClass_ptr1)) { - element->ValueAliasSet = dynamic_cast(BaseClass_ptr2); - if(element->ValueAliasSet != nullptr) - return assign_ValueAliasSet_Values(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - - -bool assign_ValueToAlias_value(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(ValueToAlias* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* ValueToAlias_factory() { - return new ValueToAlias; - } -} - -void ValueToAlias::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:ValueToAlias"), &ValueToAlias_factory)); -} - -void ValueToAlias::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ValueToAlias.value"), &assign_ValueToAlias_value)); -} - -void ValueToAlias::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:ValueToAlias.ValueAliasSet"), &assign_ValueToAlias_ValueAliasSet)); - } - -const char ValueToAlias::debugName[] = "ValueToAlias"; -const char* ValueToAlias::debugString() -{ - return ValueToAlias::debugName; -} - -const BaseClassDefiner ValueToAlias::declare() -{ - return BaseClassDefiner(ValueToAlias::addConstructToMap, ValueToAlias::addPrimitiveAssignFnsToMap, ValueToAlias::addClassAssignFnsToMap, ValueToAlias::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/ValueToAlias.hpp b/CGMES_2.4.13_18DEC2013/ValueToAlias.hpp deleted file mode 100644 index fcdd8316a..000000000 --- a/CGMES_2.4.13_18DEC2013/ValueToAlias.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef ValueToAlias_H -#define ValueToAlias_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Integer.hpp" - -namespace CIMPP { - - -class ValueAliasSet; - /* - Describes the translation of one particular value into a name, e.g. 1 as "Open". - */ - class ValueToAlias: public IdentifiedObject - { - - public: - CIMPP::ValueAliasSet* ValueAliasSet; /* The ValueToAlias mappings included in the set. Default: 0 */ - CIMPP::Integer value; /* The value that is mapped. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - ValueToAlias(); - virtual ~ValueToAlias(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* ValueToAlias_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/VisibilityLayer.cpp b/CGMES_2.4.13_18DEC2013/VisibilityLayer.cpp deleted file mode 100644 index cc031b8ae..000000000 --- a/CGMES_2.4.13_18DEC2013/VisibilityLayer.cpp +++ /dev/null @@ -1,69 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "VisibilityLayer.hpp" - -#include "DiagramObject.hpp" -#include "Integer.hpp" - -using namespace CIMPP; - -VisibilityLayer::VisibilityLayer() {}; - -VisibilityLayer::~VisibilityLayer() {}; - - -bool assign_VisibilityLayer_VisibleObjects(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(VisibilityLayer* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->VisibleObjects.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - - - -bool assign_VisibilityLayer_drawingOrder(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(VisibilityLayer* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->drawingOrder; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* VisibilityLayer_factory() { - return new VisibilityLayer; - } -} - -void VisibilityLayer::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:VisibilityLayer"), &VisibilityLayer_factory)); -} - -void VisibilityLayer::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:VisibilityLayer.drawingOrder"), &assign_VisibilityLayer_drawingOrder)); -} - -void VisibilityLayer::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:VisibilityLayer.VisibleObjects"), &assign_VisibilityLayer_VisibleObjects)); - } - -const char VisibilityLayer::debugName[] = "VisibilityLayer"; -const char* VisibilityLayer::debugString() -{ - return VisibilityLayer::debugName; -} - -const BaseClassDefiner VisibilityLayer::declare() -{ - return BaseClassDefiner(VisibilityLayer::addConstructToMap, VisibilityLayer::addPrimitiveAssignFnsToMap, VisibilityLayer::addClassAssignFnsToMap, VisibilityLayer::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/VisibilityLayer.hpp b/CGMES_2.4.13_18DEC2013/VisibilityLayer.hpp deleted file mode 100644 index 97805d650..000000000 --- a/CGMES_2.4.13_18DEC2013/VisibilityLayer.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef VisibilityLayer_H -#define VisibilityLayer_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Integer.hpp" - -namespace CIMPP { - - -class DiagramObject; - /* - Layers are typically used for grouping diagram objects according to themes and scales. Themes are used to display or hide certain information (e.g., lakes, borders), while scales are used for hiding or displaying information depending on the current zoom level (hide text when it is too small to be read, or when it exceeds the screen size). This is also called de-cluttering. CIM based graphics exchange will support an m:n relationship between diagram objects and layers. It will be the task of the importing system to convert an m:n case into an appropriate 1:n representation if the importing system does not support m:n. - */ - class VisibilityLayer: public IdentifiedObject - { - - public: - std::list VisibleObjects; /* A visibility layer can contain one or more diagram objects. Default: 0 */ - CIMPP::Integer drawingOrder; /* The drawing order for this layer. The higher the number, the later the layer and the objects within it are rendered. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - VisibilityLayer(); - virtual ~VisibilityLayer(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* VisibilityLayer_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/Voltage.cpp b/CGMES_2.4.13_18DEC2013/Voltage.cpp deleted file mode 100644 index 7675f6208..000000000 --- a/CGMES_2.4.13_18DEC2013/Voltage.cpp +++ /dev/null @@ -1,70 +0,0 @@ -#include "Voltage.hpp" -#include "../src/CIMExceptions.hpp" - -using namespace CIMPP; - -Voltage::Voltage() {} - -Voltage::~Voltage(){} - -Voltage::Voltage(long double value) : value(value), initialized(true) {} - -void Voltage::addConstructToMap(std::unordered_map& factory_map) {} - -void Voltage::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) {} - -void Voltage::addClassAssignFnsToMap(std::unordered_map& assign_map) {} - -const char Voltage::debugName[] = "Voltage"; -const char* Voltage::debugString() { - return Voltage::debugName; -} - - -const BaseClassDefiner Voltage::declare() { - return BaseClassDefiner(Voltage::addConstructToMap, Voltage::addPrimitiveAssignFnsToMap, Voltage::addClassAssignFnsToMap, Voltage::debugName); -} - -namespace CIMPP { - Voltage& Voltage::operator=(long double &rop) { - value = rop; - initialized = true; - return *this; - } - - Voltage& Voltage::operator-=(const Voltage& rhs) { - value -= rhs.value; - return *this; - } - - Voltage& Voltage::operator*=(const Voltage& rhs) { - value *= rhs.value; - return *this; - } - - Voltage& Voltage::operator/=(const Voltage& rhs) { - value /= rhs.value; - return *this; - } - - Voltage& Voltage::operator+=(const Voltage& rhs) { - value += rhs.value; - return *this; - } - - Voltage::operator long double() { - if(!initialized) - { - throw new ReadingUninitializedField(); - } - return value; - } - - std::istream& operator>>(std::istream& lop, Voltage& rop) { - std::string tmp; - lop >> tmp; - rop.value = stold(tmp); - rop.initialized = true; - return lop; - } -} diff --git a/CGMES_2.4.13_18DEC2013/Voltage.hpp b/CGMES_2.4.13_18DEC2013/Voltage.hpp deleted file mode 100644 index ffef540d3..000000000 --- a/CGMES_2.4.13_18DEC2013/Voltage.hpp +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef Voltage_H -#define Voltage_H - -#include -#include - -#include "BaseClass.hpp" - -namespace CIMPP -{ - class Voltage : public BaseClass - { - - public: - Voltage(); - virtual ~Voltage(); - Voltage(long double value); - static const BaseClassDefiner declare(); - Voltage& operator=(long double &rop); - Voltage& operator+=(const Voltage& rhs); - Voltage& operator-=(const Voltage& rhs); - Voltage& operator*=(const Voltage& rhs); - Voltage& operator/=(const Voltage& rhs); - friend std::istream& operator>>(std::istream& lop, Voltage& rop); - operator long double(); - - long double value = 0.0; - bool initialized = false; - - static const char debugName[]; - virtual const char* debugString(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - }; -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/VoltageAdjusterDynamics.cpp b/CGMES_2.4.13_18DEC2013/VoltageAdjusterDynamics.cpp deleted file mode 100644 index 5e9077a68..000000000 --- a/CGMES_2.4.13_18DEC2013/VoltageAdjusterDynamics.cpp +++ /dev/null @@ -1,54 +0,0 @@ -#include -#include "DynamicsFunctionBlock.hpp" -#include "VoltageAdjusterDynamics.hpp" - -#include "PFVArControllerType1Dynamics.hpp" - -using namespace CIMPP; - -VoltageAdjusterDynamics::VoltageAdjusterDynamics(): PFVArControllerType1Dynamics(nullptr) {}; - -VoltageAdjusterDynamics::~VoltageAdjusterDynamics() {}; - - -bool assign_PFVArControllerType1Dynamics_VoltageAdjusterDynamics(BaseClass*, BaseClass*); -bool assign_VoltageAdjusterDynamics_PFVArControllerType1Dynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(VoltageAdjusterDynamics* element = dynamic_cast(BaseClass_ptr1)) { - element->PFVArControllerType1Dynamics = dynamic_cast(BaseClass_ptr2); - if(element->PFVArControllerType1Dynamics != nullptr) - return assign_PFVArControllerType1Dynamics_VoltageAdjusterDynamics(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - -namespace CIMPP { - BaseClass* VoltageAdjusterDynamics_factory() { - return new VoltageAdjusterDynamics; - } -} - -void VoltageAdjusterDynamics::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:VoltageAdjusterDynamics"), &VoltageAdjusterDynamics_factory)); -} - -void VoltageAdjusterDynamics::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void VoltageAdjusterDynamics::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:VoltageAdjusterDynamics.PFVArControllerType1Dynamics"), &assign_VoltageAdjusterDynamics_PFVArControllerType1Dynamics)); -} - -const char VoltageAdjusterDynamics::debugName[] = "VoltageAdjusterDynamics"; -const char* VoltageAdjusterDynamics::debugString() -{ - return VoltageAdjusterDynamics::debugName; -} - -const BaseClassDefiner VoltageAdjusterDynamics::declare() -{ - return BaseClassDefiner(VoltageAdjusterDynamics::addConstructToMap, VoltageAdjusterDynamics::addPrimitiveAssignFnsToMap, VoltageAdjusterDynamics::addClassAssignFnsToMap, VoltageAdjusterDynamics::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/VoltageAdjusterDynamics.hpp b/CGMES_2.4.13_18DEC2013/VoltageAdjusterDynamics.hpp deleted file mode 100644 index 9786dd22c..000000000 --- a/CGMES_2.4.13_18DEC2013/VoltageAdjusterDynamics.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef VoltageAdjusterDynamics_H -#define VoltageAdjusterDynamics_H - -#include "DynamicsFunctionBlock.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class PFVArControllerType1Dynamics; - /* - Voltage adjuster function block whose behaviour is described by reference to a standard model - */ - class VoltageAdjusterDynamics: public DynamicsFunctionBlock - { - - public: - CIMPP::PFVArControllerType1Dynamics* PFVArControllerType1Dynamics; /* Power Factor or VAr controller Type I model with which this voltage adjuster is associated. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - VoltageAdjusterDynamics(); - virtual ~VoltageAdjusterDynamics(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* VoltageAdjusterDynamics_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/VoltageAdjusterUserDefined.cpp b/CGMES_2.4.13_18DEC2013/VoltageAdjusterUserDefined.cpp deleted file mode 100644 index 74edd01de..000000000 --- a/CGMES_2.4.13_18DEC2013/VoltageAdjusterUserDefined.cpp +++ /dev/null @@ -1,69 +0,0 @@ -#include -#include "VoltageAdjusterDynamics.hpp" -#include "VoltageAdjusterUserDefined.hpp" - -#include "Boolean.hpp" -#include "ProprietaryParameterDynamics.hpp" - -using namespace CIMPP; - -VoltageAdjusterUserDefined::VoltageAdjusterUserDefined() {}; - -VoltageAdjusterUserDefined::~VoltageAdjusterUserDefined() {}; - - - -bool assign_VoltageAdjusterUserDefined_ProprietaryParameterDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(VoltageAdjusterUserDefined* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->ProprietaryParameterDynamics.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - -bool assign_VoltageAdjusterUserDefined_proprietary(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(VoltageAdjusterUserDefined* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->proprietary; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -namespace CIMPP { - BaseClass* VoltageAdjusterUserDefined_factory() { - return new VoltageAdjusterUserDefined; - } -} - -void VoltageAdjusterUserDefined::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:VoltageAdjusterUserDefined"), &VoltageAdjusterUserDefined_factory)); -} - -void VoltageAdjusterUserDefined::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:VoltageAdjusterUserDefined.proprietary"), &assign_VoltageAdjusterUserDefined_proprietary)); - } - -void VoltageAdjusterUserDefined::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:VoltageAdjusterUserDefined.ProprietaryParameterDynamics"), &assign_VoltageAdjusterUserDefined_ProprietaryParameterDynamics)); -} - -const char VoltageAdjusterUserDefined::debugName[] = "VoltageAdjusterUserDefined"; -const char* VoltageAdjusterUserDefined::debugString() -{ - return VoltageAdjusterUserDefined::debugName; -} - -const BaseClassDefiner VoltageAdjusterUserDefined::declare() -{ - return BaseClassDefiner(VoltageAdjusterUserDefined::addConstructToMap, VoltageAdjusterUserDefined::addPrimitiveAssignFnsToMap, VoltageAdjusterUserDefined::addClassAssignFnsToMap, VoltageAdjusterUserDefined::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/VoltageAdjusterUserDefined.hpp b/CGMES_2.4.13_18DEC2013/VoltageAdjusterUserDefined.hpp deleted file mode 100644 index 34cc6a4dd..000000000 --- a/CGMES_2.4.13_18DEC2013/VoltageAdjusterUserDefined.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef VoltageAdjusterUserDefined_H -#define VoltageAdjusterUserDefined_H - -#include "VoltageAdjusterDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Boolean.hpp" - -namespace CIMPP { - - -class ProprietaryParameterDynamics; - /* - function block whose dynamic behaviour is described by - */ - class VoltageAdjusterUserDefined: public VoltageAdjusterDynamics - { - - public: - CIMPP::Boolean proprietary; /* Behaviour is based on proprietary model as opposed to detailed model. true = user-defined model is proprietary with behaviour mutually understood by sending and receiving applications and parameters passed as general attributes false = user-defined model is explicitly defined in terms of control blocks and their input and output signals. Default: false */ - std::list ProprietaryParameterDynamics; /* Parameter of this proprietary user-defined model. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - VoltageAdjusterUserDefined(); - virtual ~VoltageAdjusterUserDefined(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* VoltageAdjusterUserDefined_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/VoltageCompensatorDynamics.cpp b/CGMES_2.4.13_18DEC2013/VoltageCompensatorDynamics.cpp deleted file mode 100644 index f17bd2e98..000000000 --- a/CGMES_2.4.13_18DEC2013/VoltageCompensatorDynamics.cpp +++ /dev/null @@ -1,66 +0,0 @@ -#include -#include "DynamicsFunctionBlock.hpp" -#include "VoltageCompensatorDynamics.hpp" - -#include "RemoteInputSignal.hpp" -#include "ExcitationSystemDynamics.hpp" - -using namespace CIMPP; - -VoltageCompensatorDynamics::VoltageCompensatorDynamics(): RemoteInputSignal(nullptr), ExcitationSystemDynamics(nullptr) {}; - -VoltageCompensatorDynamics::~VoltageCompensatorDynamics() {}; - - -bool assign_VoltageCompensatorDynamics_RemoteInputSignal(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(VoltageCompensatorDynamics* element = dynamic_cast(BaseClass_ptr1)) { - element->RemoteInputSignal = dynamic_cast(BaseClass_ptr2); - if(element->RemoteInputSignal != nullptr) - return true; - } - return false; -} - -bool assign_ExcitationSystemDynamics_VoltageCompensatorDynamics(BaseClass*, BaseClass*); -bool assign_VoltageCompensatorDynamics_ExcitationSystemDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(VoltageCompensatorDynamics* element = dynamic_cast(BaseClass_ptr1)) { - element->ExcitationSystemDynamics = dynamic_cast(BaseClass_ptr2); - if(element->ExcitationSystemDynamics != nullptr) - return assign_ExcitationSystemDynamics_VoltageCompensatorDynamics(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - - -namespace CIMPP { - BaseClass* VoltageCompensatorDynamics_factory() { - return new VoltageCompensatorDynamics; - } -} - -void VoltageCompensatorDynamics::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:VoltageCompensatorDynamics"), &VoltageCompensatorDynamics_factory)); -} - -void VoltageCompensatorDynamics::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void VoltageCompensatorDynamics::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:VoltageCompensatorDynamics.RemoteInputSignal"), &assign_VoltageCompensatorDynamics_RemoteInputSignal)); - assign_map.insert(std::make_pair(std::string("cim:VoltageCompensatorDynamics.ExcitationSystemDynamics"), &assign_VoltageCompensatorDynamics_ExcitationSystemDynamics)); -} - -const char VoltageCompensatorDynamics::debugName[] = "VoltageCompensatorDynamics"; -const char* VoltageCompensatorDynamics::debugString() -{ - return VoltageCompensatorDynamics::debugName; -} - -const BaseClassDefiner VoltageCompensatorDynamics::declare() -{ - return BaseClassDefiner(VoltageCompensatorDynamics::addConstructToMap, VoltageCompensatorDynamics::addPrimitiveAssignFnsToMap, VoltageCompensatorDynamics::addClassAssignFnsToMap, VoltageCompensatorDynamics::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/VoltageCompensatorDynamics.hpp b/CGMES_2.4.13_18DEC2013/VoltageCompensatorDynamics.hpp deleted file mode 100644 index 2d280101e..000000000 --- a/CGMES_2.4.13_18DEC2013/VoltageCompensatorDynamics.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef VoltageCompensatorDynamics_H -#define VoltageCompensatorDynamics_H - -#include "DynamicsFunctionBlock.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class RemoteInputSignal; -class ExcitationSystemDynamics; - /* - Voltage compensator function block whose behaviour is described by reference to a standard model - */ - class VoltageCompensatorDynamics: public DynamicsFunctionBlock - { - - public: - CIMPP::RemoteInputSignal* RemoteInputSignal; /* Remote input signal used by this voltage compensator model. Default: 0 */ - CIMPP::ExcitationSystemDynamics* ExcitationSystemDynamics; /* Excitation system model with which this voltage compensator is associated. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - VoltageCompensatorDynamics(); - virtual ~VoltageCompensatorDynamics(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* VoltageCompensatorDynamics_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/VoltageCompensatorUserDefined.cpp b/CGMES_2.4.13_18DEC2013/VoltageCompensatorUserDefined.cpp deleted file mode 100644 index c7b3db0b1..000000000 --- a/CGMES_2.4.13_18DEC2013/VoltageCompensatorUserDefined.cpp +++ /dev/null @@ -1,69 +0,0 @@ -#include -#include "VoltageCompensatorDynamics.hpp" -#include "VoltageCompensatorUserDefined.hpp" - -#include "Boolean.hpp" -#include "ProprietaryParameterDynamics.hpp" - -using namespace CIMPP; - -VoltageCompensatorUserDefined::VoltageCompensatorUserDefined() {}; - -VoltageCompensatorUserDefined::~VoltageCompensatorUserDefined() {}; - - - -bool assign_VoltageCompensatorUserDefined_ProprietaryParameterDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(VoltageCompensatorUserDefined* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->ProprietaryParameterDynamics.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - -bool assign_VoltageCompensatorUserDefined_proprietary(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(VoltageCompensatorUserDefined* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->proprietary; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -namespace CIMPP { - BaseClass* VoltageCompensatorUserDefined_factory() { - return new VoltageCompensatorUserDefined; - } -} - -void VoltageCompensatorUserDefined::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:VoltageCompensatorUserDefined"), &VoltageCompensatorUserDefined_factory)); -} - -void VoltageCompensatorUserDefined::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:VoltageCompensatorUserDefined.proprietary"), &assign_VoltageCompensatorUserDefined_proprietary)); - } - -void VoltageCompensatorUserDefined::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:VoltageCompensatorUserDefined.ProprietaryParameterDynamics"), &assign_VoltageCompensatorUserDefined_ProprietaryParameterDynamics)); -} - -const char VoltageCompensatorUserDefined::debugName[] = "VoltageCompensatorUserDefined"; -const char* VoltageCompensatorUserDefined::debugString() -{ - return VoltageCompensatorUserDefined::debugName; -} - -const BaseClassDefiner VoltageCompensatorUserDefined::declare() -{ - return BaseClassDefiner(VoltageCompensatorUserDefined::addConstructToMap, VoltageCompensatorUserDefined::addPrimitiveAssignFnsToMap, VoltageCompensatorUserDefined::addClassAssignFnsToMap, VoltageCompensatorUserDefined::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/VoltageCompensatorUserDefined.hpp b/CGMES_2.4.13_18DEC2013/VoltageCompensatorUserDefined.hpp deleted file mode 100644 index 99718ea81..000000000 --- a/CGMES_2.4.13_18DEC2013/VoltageCompensatorUserDefined.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef VoltageCompensatorUserDefined_H -#define VoltageCompensatorUserDefined_H - -#include "VoltageCompensatorDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Boolean.hpp" - -namespace CIMPP { - - -class ProprietaryParameterDynamics; - /* - Voltage compensator function block whose dynamic behaviour is described by - */ - class VoltageCompensatorUserDefined: public VoltageCompensatorDynamics - { - - public: - CIMPP::Boolean proprietary; /* Behaviour is based on proprietary model as opposed to detailed model. true = user-defined model is proprietary with behaviour mutually understood by sending and receiving applications and parameters passed as general attributes false = user-defined model is explicitly defined in terms of control blocks and their input and output signals. Default: false */ - std::list ProprietaryParameterDynamics; /* Parameter of this proprietary user-defined model. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - VoltageCompensatorUserDefined(); - virtual ~VoltageCompensatorUserDefined(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* VoltageCompensatorUserDefined_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/VoltageLevel.cpp b/CGMES_2.4.13_18DEC2013/VoltageLevel.cpp deleted file mode 100644 index 41ade7612..000000000 --- a/CGMES_2.4.13_18DEC2013/VoltageLevel.cpp +++ /dev/null @@ -1,110 +0,0 @@ -#include -#include "EquipmentContainer.hpp" -#include "VoltageLevel.hpp" - -#include "BaseVoltage.hpp" -#include "Bay.hpp" -#include "Substation.hpp" -#include "Voltage.hpp" -#include "Voltage.hpp" - -using namespace CIMPP; - -VoltageLevel::VoltageLevel(): BaseVoltage(nullptr), Substation(nullptr) {}; - -VoltageLevel::~VoltageLevel() {}; - - -bool assign_BaseVoltage_VoltageLevel(BaseClass*, BaseClass*); -bool assign_VoltageLevel_BaseVoltage(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(VoltageLevel* element = dynamic_cast(BaseClass_ptr1)) { - element->BaseVoltage = dynamic_cast(BaseClass_ptr2); - if(element->BaseVoltage != nullptr) - return assign_BaseVoltage_VoltageLevel(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_VoltageLevel_Bays(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(VoltageLevel* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->Bays.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_Substation_VoltageLevels(BaseClass*, BaseClass*); -bool assign_VoltageLevel_Substation(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(VoltageLevel* element = dynamic_cast(BaseClass_ptr1)) { - element->Substation = dynamic_cast(BaseClass_ptr2); - if(element->Substation != nullptr) - return assign_Substation_VoltageLevels(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - - - - - -bool assign_VoltageLevel_highVoltageLimit(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(VoltageLevel* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->highVoltageLimit; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_VoltageLevel_lowVoltageLimit(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(VoltageLevel* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->lowVoltageLimit; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* VoltageLevel_factory() { - return new VoltageLevel; - } -} - -void VoltageLevel::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:VoltageLevel"), &VoltageLevel_factory)); -} - -void VoltageLevel::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:VoltageLevel.highVoltageLimit"), &assign_VoltageLevel_highVoltageLimit)); - assign_map.insert(std::make_pair(std::string("cim:VoltageLevel.lowVoltageLimit"), &assign_VoltageLevel_lowVoltageLimit)); -} - -void VoltageLevel::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:VoltageLevel.BaseVoltage"), &assign_VoltageLevel_BaseVoltage)); - assign_map.insert(std::make_pair(std::string("cim:VoltageLevel.Bays"), &assign_VoltageLevel_Bays)); - assign_map.insert(std::make_pair(std::string("cim:VoltageLevel.Substation"), &assign_VoltageLevel_Substation)); - } - -const char VoltageLevel::debugName[] = "VoltageLevel"; -const char* VoltageLevel::debugString() -{ - return VoltageLevel::debugName; -} - -const BaseClassDefiner VoltageLevel::declare() -{ - return BaseClassDefiner(VoltageLevel::addConstructToMap, VoltageLevel::addPrimitiveAssignFnsToMap, VoltageLevel::addClassAssignFnsToMap, VoltageLevel::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/VoltageLevel.hpp b/CGMES_2.4.13_18DEC2013/VoltageLevel.hpp deleted file mode 100644 index af4d45e8d..000000000 --- a/CGMES_2.4.13_18DEC2013/VoltageLevel.hpp +++ /dev/null @@ -1,47 +0,0 @@ -#ifndef VoltageLevel_H -#define VoltageLevel_H - -#include "EquipmentContainer.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Voltage.hpp" - -namespace CIMPP { - - -class BaseVoltage; -class Bay; -class Substation; - /* - A collection of equipment at one common system voltage forming a switchgear. The equipment typically consist of breakers, busbars, instrumentation, control, regulation and protection devices as well as assemblies of all these. - */ - class VoltageLevel: public EquipmentContainer - { - - public: - CIMPP::BaseVoltage* BaseVoltage; /* The base voltage used for all equipment within the voltage level. Default: 0 */ - std::list Bays; /* The bays within this voltage level. Default: 0 */ - CIMPP::Substation* Substation; /* The substation of the voltage level. Default: 0 */ - CIMPP::Voltage highVoltageLimit; /* The bus bar`s high voltage limit Default: nullptr */ - CIMPP::Voltage lowVoltageLimit; /* The bus bar`s low voltage limit Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - VoltageLevel(); - virtual ~VoltageLevel(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* VoltageLevel_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/VoltageLimit.cpp b/CGMES_2.4.13_18DEC2013/VoltageLimit.cpp deleted file mode 100644 index fdc3a7ba8..000000000 --- a/CGMES_2.4.13_18DEC2013/VoltageLimit.cpp +++ /dev/null @@ -1,56 +0,0 @@ -#include -#include "OperationalLimit.hpp" -#include "VoltageLimit.hpp" - -#include "Voltage.hpp" - -using namespace CIMPP; - -VoltageLimit::VoltageLimit() {}; - -VoltageLimit::~VoltageLimit() {}; - - - - -bool assign_VoltageLimit_value(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(VoltageLimit* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* VoltageLimit_factory() { - return new VoltageLimit; - } -} - -void VoltageLimit::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:VoltageLimit"), &VoltageLimit_factory)); -} - -void VoltageLimit::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:VoltageLimit.value"), &assign_VoltageLimit_value)); -} - -void VoltageLimit::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char VoltageLimit::debugName[] = "VoltageLimit"; -const char* VoltageLimit::debugString() -{ - return VoltageLimit::debugName; -} - -const BaseClassDefiner VoltageLimit::declare() -{ - return BaseClassDefiner(VoltageLimit::addConstructToMap, VoltageLimit::addPrimitiveAssignFnsToMap, VoltageLimit::addClassAssignFnsToMap, VoltageLimit::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/VoltageLimit.hpp b/CGMES_2.4.13_18DEC2013/VoltageLimit.hpp deleted file mode 100644 index 7814a40b1..000000000 --- a/CGMES_2.4.13_18DEC2013/VoltageLimit.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef VoltageLimit_H -#define VoltageLimit_H - -#include "OperationalLimit.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Voltage.hpp" - -namespace CIMPP { - - - /* - Operational limit applied to voltage. - */ - class VoltageLimit: public OperationalLimit - { - - public: - CIMPP::Voltage value; /* Limit on voltage. High or low limit nature of the limit depends upon the properties of the operational limit type. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - VoltageLimit(); - virtual ~VoltageLimit(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* VoltageLimit_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/VoltagePerReactivePower.cpp b/CGMES_2.4.13_18DEC2013/VoltagePerReactivePower.cpp deleted file mode 100644 index 119b3c228..000000000 --- a/CGMES_2.4.13_18DEC2013/VoltagePerReactivePower.cpp +++ /dev/null @@ -1,113 +0,0 @@ -#include -#include "BaseClass.hpp" -#include "VoltagePerReactivePower.hpp" - -#include "Float.hpp" -#include "UnitSymbol.hpp" -#include "UnitMultiplier.hpp" -#include "UnitMultiplier.hpp" -#include "UnitSymbol.hpp" - -using namespace CIMPP; - -VoltagePerReactivePower::VoltagePerReactivePower(): value(nullptr) {}; - -VoltagePerReactivePower::~VoltagePerReactivePower() {}; - - -bool assign_VoltagePerReactivePower_value(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(VoltagePerReactivePower* element = dynamic_cast(BaseClass_ptr1)) { - element->value = dynamic_cast(BaseClass_ptr2); - if(element->value != nullptr) - return true; - } - return false; -} - - - - - - - -bool assign_VoltagePerReactivePower_unit(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(VoltagePerReactivePower* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->unit; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_VoltagePerReactivePower_denominatorMultiplier(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(VoltagePerReactivePower* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->denominatorMultiplier; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_VoltagePerReactivePower_multiplier(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(VoltagePerReactivePower* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->multiplier; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_VoltagePerReactivePower_denominatorUnit(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(VoltagePerReactivePower* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->denominatorUnit; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* VoltagePerReactivePower_factory() { - return new VoltagePerReactivePower; - } -} - -void VoltagePerReactivePower::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:VoltagePerReactivePower"), &VoltagePerReactivePower_factory)); -} - -void VoltagePerReactivePower::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:VoltagePerReactivePower.unit"), &assign_VoltagePerReactivePower_unit)); - assign_map.insert(std::make_pair(std::string("cim:VoltagePerReactivePower.denominatorMultiplier"), &assign_VoltagePerReactivePower_denominatorMultiplier)); - assign_map.insert(std::make_pair(std::string("cim:VoltagePerReactivePower.multiplier"), &assign_VoltagePerReactivePower_multiplier)); - assign_map.insert(std::make_pair(std::string("cim:VoltagePerReactivePower.denominatorUnit"), &assign_VoltagePerReactivePower_denominatorUnit)); -} - -void VoltagePerReactivePower::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:VoltagePerReactivePower.value"), &assign_VoltagePerReactivePower_value)); - } - -const char VoltagePerReactivePower::debugName[] = "VoltagePerReactivePower"; -const char* VoltagePerReactivePower::debugString() -{ - return VoltagePerReactivePower::debugName; -} - -const BaseClassDefiner VoltagePerReactivePower::declare() -{ - return BaseClassDefiner(VoltagePerReactivePower::addConstructToMap, VoltagePerReactivePower::addPrimitiveAssignFnsToMap, VoltagePerReactivePower::addClassAssignFnsToMap, VoltagePerReactivePower::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/VoltagePerReactivePower.hpp b/CGMES_2.4.13_18DEC2013/VoltagePerReactivePower.hpp deleted file mode 100644 index bb831cfc9..000000000 --- a/CGMES_2.4.13_18DEC2013/VoltagePerReactivePower.hpp +++ /dev/null @@ -1,46 +0,0 @@ -#ifndef VoltagePerReactivePower_H -#define VoltagePerReactivePower_H - -#include "BaseClass.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "UnitSymbol.hpp" -#include "UnitMultiplier.hpp" - -namespace CIMPP { - - -class Float; - /* - Voltage variation with reactive power. - */ - class VoltagePerReactivePower: public BaseClass - { - - public: - CIMPP::Float* value; /* Default: nullptr */ - CIMPP::UnitSymbol unit; /* Default: 0 */ - CIMPP::UnitMultiplier denominatorMultiplier; /* Default: 0 */ - CIMPP::UnitMultiplier multiplier; /* Default: 0 */ - CIMPP::UnitSymbol denominatorUnit; /* Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - VoltagePerReactivePower(); - virtual ~VoltagePerReactivePower(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* VoltagePerReactivePower_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/VolumeFlowRate.cpp b/CGMES_2.4.13_18DEC2013/VolumeFlowRate.cpp deleted file mode 100644 index e46015960..000000000 --- a/CGMES_2.4.13_18DEC2013/VolumeFlowRate.cpp +++ /dev/null @@ -1,113 +0,0 @@ -#include -#include "BaseClass.hpp" -#include "VolumeFlowRate.hpp" - -#include "UnitMultiplier.hpp" -#include "UnitSymbol.hpp" -#include "UnitMultiplier.hpp" -#include "UnitSymbol.hpp" -#include "Float.hpp" - -using namespace CIMPP; - -VolumeFlowRate::VolumeFlowRate(): value(nullptr) {}; - -VolumeFlowRate::~VolumeFlowRate() {}; - - - - - - -bool assign_VolumeFlowRate_value(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(VolumeFlowRate* element = dynamic_cast(BaseClass_ptr1)) { - element->value = dynamic_cast(BaseClass_ptr2); - if(element->value != nullptr) - return true; - } - return false; -} - - -bool assign_VolumeFlowRate_denominatorMultiplier(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(VolumeFlowRate* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->denominatorMultiplier; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_VolumeFlowRate_denominatorUnit(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(VolumeFlowRate* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->denominatorUnit; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_VolumeFlowRate_multiplier(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(VolumeFlowRate* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->multiplier; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_VolumeFlowRate_unit(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(VolumeFlowRate* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->unit; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -namespace CIMPP { - BaseClass* VolumeFlowRate_factory() { - return new VolumeFlowRate; - } -} - -void VolumeFlowRate::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:VolumeFlowRate"), &VolumeFlowRate_factory)); -} - -void VolumeFlowRate::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:VolumeFlowRate.denominatorMultiplier"), &assign_VolumeFlowRate_denominatorMultiplier)); - assign_map.insert(std::make_pair(std::string("cim:VolumeFlowRate.denominatorUnit"), &assign_VolumeFlowRate_denominatorUnit)); - assign_map.insert(std::make_pair(std::string("cim:VolumeFlowRate.multiplier"), &assign_VolumeFlowRate_multiplier)); - assign_map.insert(std::make_pair(std::string("cim:VolumeFlowRate.unit"), &assign_VolumeFlowRate_unit)); - } - -void VolumeFlowRate::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:VolumeFlowRate.value"), &assign_VolumeFlowRate_value)); -} - -const char VolumeFlowRate::debugName[] = "VolumeFlowRate"; -const char* VolumeFlowRate::debugString() -{ - return VolumeFlowRate::debugName; -} - -const BaseClassDefiner VolumeFlowRate::declare() -{ - return BaseClassDefiner(VolumeFlowRate::addConstructToMap, VolumeFlowRate::addPrimitiveAssignFnsToMap, VolumeFlowRate::addClassAssignFnsToMap, VolumeFlowRate::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/VolumeFlowRate.hpp b/CGMES_2.4.13_18DEC2013/VolumeFlowRate.hpp deleted file mode 100644 index db8b06c43..000000000 --- a/CGMES_2.4.13_18DEC2013/VolumeFlowRate.hpp +++ /dev/null @@ -1,46 +0,0 @@ -#ifndef VolumeFlowRate_H -#define VolumeFlowRate_H - -#include "BaseClass.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "UnitMultiplier.hpp" -#include "UnitSymbol.hpp" - -namespace CIMPP { - - -class Float; - /* - Volume per time. - */ - class VolumeFlowRate: public BaseClass - { - - public: - CIMPP::UnitMultiplier denominatorMultiplier; /* Default: 0 */ - CIMPP::UnitSymbol denominatorUnit; /* Default: 0 */ - CIMPP::UnitMultiplier multiplier; /* Default: 0 */ - CIMPP::UnitSymbol unit; /* Default: 0 */ - CIMPP::Float* value; /* Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - VolumeFlowRate(); - virtual ~VolumeFlowRate(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* VolumeFlowRate_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/VsCapabilityCurve.cpp b/CGMES_2.4.13_18DEC2013/VsCapabilityCurve.cpp deleted file mode 100644 index e6ccbe7d3..000000000 --- a/CGMES_2.4.13_18DEC2013/VsCapabilityCurve.cpp +++ /dev/null @@ -1,54 +0,0 @@ -#include -#include "Curve.hpp" -#include "VsCapabilityCurve.hpp" - -#include "VsConverter.hpp" - -using namespace CIMPP; - -VsCapabilityCurve::VsCapabilityCurve() {}; - -VsCapabilityCurve::~VsCapabilityCurve() {}; - - -bool assign_VsCapabilityCurve_VsConverterDCSides(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(VsCapabilityCurve* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->VsConverterDCSides.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - - -namespace CIMPP { - BaseClass* VsCapabilityCurve_factory() { - return new VsCapabilityCurve; - } -} - -void VsCapabilityCurve::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:VsCapabilityCurve"), &VsCapabilityCurve_factory)); -} - -void VsCapabilityCurve::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void VsCapabilityCurve::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:VsCapabilityCurve.VsConverterDCSides"), &assign_VsCapabilityCurve_VsConverterDCSides)); -} - -const char VsCapabilityCurve::debugName[] = "VsCapabilityCurve"; -const char* VsCapabilityCurve::debugString() -{ - return VsCapabilityCurve::debugName; -} - -const BaseClassDefiner VsCapabilityCurve::declare() -{ - return BaseClassDefiner(VsCapabilityCurve::addConstructToMap, VsCapabilityCurve::addPrimitiveAssignFnsToMap, VsCapabilityCurve::addClassAssignFnsToMap, VsCapabilityCurve::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/VsCapabilityCurve.hpp b/CGMES_2.4.13_18DEC2013/VsCapabilityCurve.hpp deleted file mode 100644 index c05a8641c..000000000 --- a/CGMES_2.4.13_18DEC2013/VsCapabilityCurve.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef VsCapabilityCurve_H -#define VsCapabilityCurve_H - -#include "Curve.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class VsConverter; - /* - The P-Q capability curve for a voltage source converter, with P on x-axis and Qmin and Qmax on y1-axis and y2-axis. - */ - class VsCapabilityCurve: public Curve - { - - public: - std::list VsConverterDCSides; /* Capability curve of this converter. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - VsCapabilityCurve(); - virtual ~VsCapabilityCurve(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* VsCapabilityCurve_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/VsConverter.cpp b/CGMES_2.4.13_18DEC2013/VsConverter.cpp deleted file mode 100644 index 4f19dde65..000000000 --- a/CGMES_2.4.13_18DEC2013/VsConverter.cpp +++ /dev/null @@ -1,219 +0,0 @@ -#include -#include "ACDCConverter.hpp" -#include "VsConverter.hpp" - -#include "PU.hpp" -#include "Resistance.hpp" -#include "VsPpccControlKind.hpp" -#include "VsQpccControlKind.hpp" -#include "PerCent.hpp" -#include "ReactivePower.hpp" -#include "Voltage.hpp" -#include "VsCapabilityCurve.hpp" -#include "Simple_Float.hpp" -#include "CurrentFlow.hpp" -#include "AngleDegrees.hpp" -#include "Voltage.hpp" - -using namespace CIMPP; - -VsConverter::VsConverter(): CapabilityCurve(nullptr) {}; - -VsConverter::~VsConverter() {}; - - - - - - - - - -bool assign_VsCapabilityCurve_VsConverterDCSides(BaseClass*, BaseClass*); -bool assign_VsConverter_CapabilityCurve(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(VsConverter* element = dynamic_cast(BaseClass_ptr1)) { - element->CapabilityCurve = dynamic_cast(BaseClass_ptr2); - if(element->CapabilityCurve != nullptr) - return assign_VsCapabilityCurve_VsConverterDCSides(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - - - - -bool assign_VsConverter_droop(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(VsConverter* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->droop; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_VsConverter_droopCompensation(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(VsConverter* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->droopCompensation; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_VsConverter_pPccControl(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(VsConverter* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pPccControl; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_VsConverter_qPccControl(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(VsConverter* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->qPccControl; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_VsConverter_qShare(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(VsConverter* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->qShare; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_VsConverter_targetQpcc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(VsConverter* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->targetQpcc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_VsConverter_targetUpcc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(VsConverter* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->targetUpcc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -bool assign_VsConverter_maxModulationIndex(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(VsConverter* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->maxModulationIndex; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_VsConverter_maxValveCurrent(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(VsConverter* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->maxValveCurrent; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_VsConverter_delta(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(VsConverter* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->delta; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_VsConverter_uf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(VsConverter* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->uf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* VsConverter_factory() { - return new VsConverter; - } -} - -void VsConverter::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:VsConverter"), &VsConverter_factory)); -} - -void VsConverter::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:VsConverter.droop"), &assign_VsConverter_droop)); - assign_map.insert(std::make_pair(std::string("cim:VsConverter.droopCompensation"), &assign_VsConverter_droopCompensation)); - assign_map.insert(std::make_pair(std::string("cim:VsConverter.pPccControl"), &assign_VsConverter_pPccControl)); - assign_map.insert(std::make_pair(std::string("cim:VsConverter.qPccControl"), &assign_VsConverter_qPccControl)); - assign_map.insert(std::make_pair(std::string("cim:VsConverter.qShare"), &assign_VsConverter_qShare)); - assign_map.insert(std::make_pair(std::string("cim:VsConverter.targetQpcc"), &assign_VsConverter_targetQpcc)); - assign_map.insert(std::make_pair(std::string("cim:VsConverter.targetUpcc"), &assign_VsConverter_targetUpcc)); - assign_map.insert(std::make_pair(std::string("cim:VsConverter.maxModulationIndex"), &assign_VsConverter_maxModulationIndex)); - assign_map.insert(std::make_pair(std::string("cim:VsConverter.maxValveCurrent"), &assign_VsConverter_maxValveCurrent)); - assign_map.insert(std::make_pair(std::string("cim:VsConverter.delta"), &assign_VsConverter_delta)); - assign_map.insert(std::make_pair(std::string("cim:VsConverter.uf"), &assign_VsConverter_uf)); -} - -void VsConverter::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:VsConverter.CapabilityCurve"), &assign_VsConverter_CapabilityCurve)); - } - -const char VsConverter::debugName[] = "VsConverter"; -const char* VsConverter::debugString() -{ - return VsConverter::debugName; -} - -const BaseClassDefiner VsConverter::declare() -{ - return BaseClassDefiner(VsConverter::addConstructToMap, VsConverter::addPrimitiveAssignFnsToMap, VsConverter::addClassAssignFnsToMap, VsConverter::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/VsConverter.hpp b/CGMES_2.4.13_18DEC2013/VsConverter.hpp deleted file mode 100644 index 20b640442..000000000 --- a/CGMES_2.4.13_18DEC2013/VsConverter.hpp +++ /dev/null @@ -1,61 +0,0 @@ -#ifndef VsConverter_H -#define VsConverter_H - -#include "ACDCConverter.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "Resistance.hpp" -#include "VsPpccControlKind.hpp" -#include "VsQpccControlKind.hpp" -#include "PerCent.hpp" -#include "ReactivePower.hpp" -#include "Voltage.hpp" -#include "Simple_Float.hpp" -#include "CurrentFlow.hpp" -#include "AngleDegrees.hpp" - -namespace CIMPP { - - -class VsCapabilityCurve; - /* - DC side of the voltage source converter (VSC). - */ - class VsConverter: public ACDCConverter - { - - public: - CIMPP::PU droop; /* Droop constant; pu value is obtained as D [kV^2 / MW] x Sb / Ubdc^2. Default: nullptr */ - CIMPP::Resistance droopCompensation; /* Compensation (resistance) constant. Used to compensate for voltage drop when controlling voltage at a distant bus. Default: nullptr */ - CIMPP::VsPpccControlKind pPccControl; /* Kind of control of real power and/or DC voltage. Default: 0 */ - CIMPP::VsQpccControlKind qPccControl; /* Default: 0 */ - CIMPP::PerCent qShare; /* Reactive power sharing factor among parallel converters on Uac control. Default: nullptr */ - CIMPP::ReactivePower targetQpcc; /* Reactive power injection target in AC grid, at point of common coupling. Default: nullptr */ - CIMPP::Voltage targetUpcc; /* Voltage target in AC grid, at point of common coupling. Default: nullptr */ - CIMPP::VsCapabilityCurve* CapabilityCurve; /* All converters with this capability curve. Default: 0 */ - CIMPP::Simple_Float maxModulationIndex; /* The max quotient between the AC converter voltage (Uc) and DC voltage (Ud). A factor typically less than 1. VSC configuration data used in power flow. Default: nullptr */ - CIMPP::CurrentFlow maxValveCurrent; /* The maximum current through a valve. This current limit is the basis for calculating the capability diagram. VSC configuration data. Default: nullptr */ - CIMPP::AngleDegrees delta; /* Angle between uf and uc. Converter state variable used in power flow. Default: nullptr */ - CIMPP::Voltage uf; /* Filter bus voltage. Converter state variable, result from power flow. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - VsConverter(); - virtual ~VsConverter(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* VsConverter_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/VsPpccControlKind.cpp b/CGMES_2.4.13_18DEC2013/VsPpccControlKind.cpp deleted file mode 100644 index 981bf6ba8..000000000 --- a/CGMES_2.4.13_18DEC2013/VsPpccControlKind.cpp +++ /dev/null @@ -1,52 +0,0 @@ -#include -#include -#include "VsPpccControlKind.hpp" - -using namespace CIMPP; - -namespace CIMPP { - std::istream& operator>>(std::istream& lop, CIMPP::VsPpccControlKind& rop) - { - std::string EnumSymbol; - lop >> EnumSymbol; - - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "VsPpccControlKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "pPcc") - { - rop = VsPpccControlKind::pPcc; - return lop; - } - if(EnumSymbol == "udc") - { - rop = VsPpccControlKind::udc; - return lop; - } - if(EnumSymbol == "pPccAndUdcDroop") - { - rop = VsPpccControlKind::pPccAndUdcDroop; - return lop; - } - if(EnumSymbol == "pPccAndUdcDroopWithCompensation") - { - rop = VsPpccControlKind::pPccAndUdcDroopWithCompensation; - return lop; - } - if(EnumSymbol == "pPccAndUdcDroopPilot") - { - rop = VsPpccControlKind::pPccAndUdcDroopPilot; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; - } -} - diff --git a/CGMES_2.4.13_18DEC2013/VsPpccControlKind.hpp b/CGMES_2.4.13_18DEC2013/VsPpccControlKind.hpp deleted file mode 100644 index 2ee70f715..000000000 --- a/CGMES_2.4.13_18DEC2013/VsPpccControlKind.hpp +++ /dev/null @@ -1,33 +0,0 @@ -#ifndef VsPpccControlKind_H -#define VsPpccControlKind_H - -namespace CIMPP { - /* - Types applicable to the control of real power and/or DC voltage by voltage source converter. - */ - enum class VsPpccControlKind - { - /** - * Control variable (target) is real power at PCC bus. - */ - pPcc, - /** - * Control variable (target) is DC voltage and real power at PCC bus is derived. - */ - udc, - /** - * Control variables (targets) are both active power at point of common coupling and local DC voltage, with the droop. - */ - pPccAndUdcDroop, - /** - * Control variables (targets) are both active power at point of common coupling and compensated DC voltage, with the droop; compensation factor is the resistance, as an approximation of the DC voltage of a common (real or virtual) node in the DC network. - */ - pPccAndUdcDroopWithCompensation, - /** - * Control variables (targets) are both active power at point of common coupling and the pilot DC voltage, with the droop. - */ - pPccAndUdcDroopPilot, - }; - std::istream& operator>>(std::istream& lop, CIMPP::VsPpccControlKind& rop); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/VsQpccControlKind.cpp b/CGMES_2.4.13_18DEC2013/VsQpccControlKind.cpp deleted file mode 100644 index d279d97e2..000000000 --- a/CGMES_2.4.13_18DEC2013/VsQpccControlKind.cpp +++ /dev/null @@ -1,42 +0,0 @@ -#include -#include -#include "VsQpccControlKind.hpp" - -using namespace CIMPP; - -namespace CIMPP { - std::istream& operator>>(std::istream& lop, CIMPP::VsQpccControlKind& rop) - { - std::string EnumSymbol; - lop >> EnumSymbol; - - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "VsQpccControlKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "reactivePcc") - { - rop = VsQpccControlKind::reactivePcc; - return lop; - } - if(EnumSymbol == "voltagePcc") - { - rop = VsQpccControlKind::voltagePcc; - return lop; - } - if(EnumSymbol == "powerFactorPcc") - { - rop = VsQpccControlKind::powerFactorPcc; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; - } -} - diff --git a/CGMES_2.4.13_18DEC2013/VsQpccControlKind.hpp b/CGMES_2.4.13_18DEC2013/VsQpccControlKind.hpp deleted file mode 100644 index d3f545d91..000000000 --- a/CGMES_2.4.13_18DEC2013/VsQpccControlKind.hpp +++ /dev/null @@ -1,25 +0,0 @@ -#ifndef VsQpccControlKind_H -#define VsQpccControlKind_H - -namespace CIMPP { - /* - - */ - enum class VsQpccControlKind - { - /** - * - */ - reactivePcc, - /** - * - */ - voltagePcc, - /** - * - */ - powerFactorPcc, - }; - std::istream& operator>>(std::istream& lop, CIMPP::VsQpccControlKind& rop); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/WindAeroConstIEC.cpp b/CGMES_2.4.13_18DEC2013/WindAeroConstIEC.cpp deleted file mode 100644 index 15045d5a6..000000000 --- a/CGMES_2.4.13_18DEC2013/WindAeroConstIEC.cpp +++ /dev/null @@ -1,53 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "WindAeroConstIEC.hpp" - -#include "WindGenTurbineType1IEC.hpp" - -using namespace CIMPP; - -WindAeroConstIEC::WindAeroConstIEC(): WindGenTurbineType1IEC(nullptr) {}; - -WindAeroConstIEC::~WindAeroConstIEC() {}; - - -bool assign_WindAeroConstIEC_WindGenTurbineType1IEC(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(WindAeroConstIEC* element = dynamic_cast(BaseClass_ptr1)) { - element->WindGenTurbineType1IEC = dynamic_cast(BaseClass_ptr2); - if(element->WindGenTurbineType1IEC != nullptr) - return true; - } - return false; -} - - - -namespace CIMPP { - BaseClass* WindAeroConstIEC_factory() { - return new WindAeroConstIEC; - } -} - -void WindAeroConstIEC::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:WindAeroConstIEC"), &WindAeroConstIEC_factory)); -} - -void WindAeroConstIEC::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void WindAeroConstIEC::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:WindAeroConstIEC.WindGenTurbineType1IEC"), &assign_WindAeroConstIEC_WindGenTurbineType1IEC)); -} - -const char WindAeroConstIEC::debugName[] = "WindAeroConstIEC"; -const char* WindAeroConstIEC::debugString() -{ - return WindAeroConstIEC::debugName; -} - -const BaseClassDefiner WindAeroConstIEC::declare() -{ - return BaseClassDefiner(WindAeroConstIEC::addConstructToMap, WindAeroConstIEC::addPrimitiveAssignFnsToMap, WindAeroConstIEC::addClassAssignFnsToMap, WindAeroConstIEC::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/WindAeroConstIEC.hpp b/CGMES_2.4.13_18DEC2013/WindAeroConstIEC.hpp deleted file mode 100644 index 9538d248c..000000000 --- a/CGMES_2.4.13_18DEC2013/WindAeroConstIEC.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef WindAeroConstIEC_H -#define WindAeroConstIEC_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class WindGenTurbineType1IEC; - /* - The constant aerodynamic torque model assumes that the aerodynamic torque is constant. Reference: IEC Standard 61400-27-1 Section 6.6.1.1. - */ - class WindAeroConstIEC: public IdentifiedObject - { - - public: - CIMPP::WindGenTurbineType1IEC* WindGenTurbineType1IEC; /* Wind turbine type 1 model with which this wind aerodynamic model is associated. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - WindAeroConstIEC(); - virtual ~WindAeroConstIEC(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* WindAeroConstIEC_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/WindAeroLinearIEC.cpp b/CGMES_2.4.13_18DEC2013/WindAeroLinearIEC.cpp deleted file mode 100644 index a54aa0e59..000000000 --- a/CGMES_2.4.13_18DEC2013/WindAeroLinearIEC.cpp +++ /dev/null @@ -1,128 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "WindAeroLinearIEC.hpp" - -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "AngleDegrees.hpp" -#include "WindGenTurbineType3IEC.hpp" - -using namespace CIMPP; - -WindAeroLinearIEC::WindAeroLinearIEC(): WindGenTurbineType3IEC(nullptr) {}; - -WindAeroLinearIEC::~WindAeroLinearIEC() {}; - - - - - - - -bool assign_WindAeroLinearIEC_WindGenTurbineType3IEC(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(WindAeroLinearIEC* element = dynamic_cast(BaseClass_ptr1)) { - element->WindGenTurbineType3IEC = dynamic_cast(BaseClass_ptr2); - if(element->WindGenTurbineType3IEC != nullptr) - return true; - } - return false; -} - - -bool assign_WindAeroLinearIEC_dpomega(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindAeroLinearIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->dpomega; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindAeroLinearIEC_dptheta(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindAeroLinearIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->dptheta; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindAeroLinearIEC_omegazero(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindAeroLinearIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->omegazero; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindAeroLinearIEC_pavail(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindAeroLinearIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pavail; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindAeroLinearIEC_thetazero(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindAeroLinearIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->thetazero; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -namespace CIMPP { - BaseClass* WindAeroLinearIEC_factory() { - return new WindAeroLinearIEC; - } -} - -void WindAeroLinearIEC::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:WindAeroLinearIEC"), &WindAeroLinearIEC_factory)); -} - -void WindAeroLinearIEC::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:WindAeroLinearIEC.dpomega"), &assign_WindAeroLinearIEC_dpomega)); - assign_map.insert(std::make_pair(std::string("cim:WindAeroLinearIEC.dptheta"), &assign_WindAeroLinearIEC_dptheta)); - assign_map.insert(std::make_pair(std::string("cim:WindAeroLinearIEC.omegazero"), &assign_WindAeroLinearIEC_omegazero)); - assign_map.insert(std::make_pair(std::string("cim:WindAeroLinearIEC.pavail"), &assign_WindAeroLinearIEC_pavail)); - assign_map.insert(std::make_pair(std::string("cim:WindAeroLinearIEC.thetazero"), &assign_WindAeroLinearIEC_thetazero)); - } - -void WindAeroLinearIEC::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:WindAeroLinearIEC.WindGenTurbineType3IEC"), &assign_WindAeroLinearIEC_WindGenTurbineType3IEC)); -} - -const char WindAeroLinearIEC::debugName[] = "WindAeroLinearIEC"; -const char* WindAeroLinearIEC::debugString() -{ - return WindAeroLinearIEC::debugName; -} - -const BaseClassDefiner WindAeroLinearIEC::declare() -{ - return BaseClassDefiner(WindAeroLinearIEC::addConstructToMap, WindAeroLinearIEC::addPrimitiveAssignFnsToMap, WindAeroLinearIEC::addClassAssignFnsToMap, WindAeroLinearIEC::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/WindAeroLinearIEC.hpp b/CGMES_2.4.13_18DEC2013/WindAeroLinearIEC.hpp deleted file mode 100644 index 6b15e7e05..000000000 --- a/CGMES_2.4.13_18DEC2013/WindAeroLinearIEC.hpp +++ /dev/null @@ -1,47 +0,0 @@ -#ifndef WindAeroLinearIEC_H -#define WindAeroLinearIEC_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "AngleDegrees.hpp" - -namespace CIMPP { - - -class WindGenTurbineType3IEC; - /* - The linearised aerodynamic model. Reference: IEC Standard 614000-27-1 Section 6.6.1.2. - */ - class WindAeroLinearIEC: public IdentifiedObject - { - - public: - CIMPP::PU dpomega; /* Partial derivative of aerodynamic power with respect to changes in WTR speed (). It is case dependent parameter. Default: nullptr */ - CIMPP::PU dptheta; /* Partial derivative of aerodynamic power with respect to changes in pitch angle (). It is case dependent parameter. Default: nullptr */ - CIMPP::PU omegazero; /* Rotor speed if the wind turbine is not derated (). It is case dependent parameter. Default: nullptr */ - CIMPP::PU pavail; /* Available aerodynamic power (). It is case dependent parameter. Default: nullptr */ - CIMPP::AngleDegrees thetazero; /* Pitch angle if the wind turbine is not derated (). It is case dependent parameter. Default: nullptr */ - CIMPP::WindGenTurbineType3IEC* WindGenTurbineType3IEC; /* Wind generator type 3 model with which this wind aerodynamic model is associated. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - WindAeroLinearIEC(); - virtual ~WindAeroLinearIEC(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* WindAeroLinearIEC_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/WindContCurrLimIEC.cpp b/CGMES_2.4.13_18DEC2013/WindContCurrLimIEC.cpp deleted file mode 100644 index 7498409c3..000000000 --- a/CGMES_2.4.13_18DEC2013/WindContCurrLimIEC.cpp +++ /dev/null @@ -1,141 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "WindContCurrLimIEC.hpp" - -#include "PU.hpp" -#include "PU.hpp" -#include "Boolean.hpp" -#include "Boolean.hpp" -#include "Seconds.hpp" -#include "WindTurbineType3or4IEC.hpp" -#include "WindDynamicsLookupTable.hpp" - -using namespace CIMPP; - -WindContCurrLimIEC::WindContCurrLimIEC(): WindTurbineType3or4IEC(nullptr) {}; - -WindContCurrLimIEC::~WindContCurrLimIEC() {}; - - - - - - - -bool assign_WindContCurrLimIEC_WindTurbineType3or4IEC(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(WindContCurrLimIEC* element = dynamic_cast(BaseClass_ptr1)) { - element->WindTurbineType3or4IEC = dynamic_cast(BaseClass_ptr2); - if(element->WindTurbineType3or4IEC != nullptr) - return true; - } - return false; -} - -bool assign_WindContCurrLimIEC_WindDynamicsLookupTable(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(WindContCurrLimIEC* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->WindDynamicsLookupTable.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - -bool assign_WindContCurrLimIEC_imax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContCurrLimIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->imax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContCurrLimIEC_imaxdip(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContCurrLimIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->imaxdip; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContCurrLimIEC_mdfslim(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContCurrLimIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->mdfslim; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContCurrLimIEC_mqpri(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContCurrLimIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->mqpri; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContCurrLimIEC_tufilt(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContCurrLimIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tufilt; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - - -namespace CIMPP { - BaseClass* WindContCurrLimIEC_factory() { - return new WindContCurrLimIEC; - } -} - -void WindContCurrLimIEC::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:WindContCurrLimIEC"), &WindContCurrLimIEC_factory)); -} - -void WindContCurrLimIEC::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:WindContCurrLimIEC.imax"), &assign_WindContCurrLimIEC_imax)); - assign_map.insert(std::make_pair(std::string("cim:WindContCurrLimIEC.imaxdip"), &assign_WindContCurrLimIEC_imaxdip)); - assign_map.insert(std::make_pair(std::string("cim:WindContCurrLimIEC.mdfslim"), &assign_WindContCurrLimIEC_mdfslim)); - assign_map.insert(std::make_pair(std::string("cim:WindContCurrLimIEC.mqpri"), &assign_WindContCurrLimIEC_mqpri)); - assign_map.insert(std::make_pair(std::string("cim:WindContCurrLimIEC.tufilt"), &assign_WindContCurrLimIEC_tufilt)); - } - -void WindContCurrLimIEC::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:WindContCurrLimIEC.WindTurbineType3or4IEC"), &assign_WindContCurrLimIEC_WindTurbineType3or4IEC)); - assign_map.insert(std::make_pair(std::string("cim:WindContCurrLimIEC.WindDynamicsLookupTable"), &assign_WindContCurrLimIEC_WindDynamicsLookupTable)); -} - -const char WindContCurrLimIEC::debugName[] = "WindContCurrLimIEC"; -const char* WindContCurrLimIEC::debugString() -{ - return WindContCurrLimIEC::debugName; -} - -const BaseClassDefiner WindContCurrLimIEC::declare() -{ - return BaseClassDefiner(WindContCurrLimIEC::addConstructToMap, WindContCurrLimIEC::addPrimitiveAssignFnsToMap, WindContCurrLimIEC::addClassAssignFnsToMap, WindContCurrLimIEC::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/WindContCurrLimIEC.hpp b/CGMES_2.4.13_18DEC2013/WindContCurrLimIEC.hpp deleted file mode 100644 index 6d75b61e8..000000000 --- a/CGMES_2.4.13_18DEC2013/WindContCurrLimIEC.hpp +++ /dev/null @@ -1,50 +0,0 @@ -#ifndef WindContCurrLimIEC_H -#define WindContCurrLimIEC_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "Boolean.hpp" -#include "Seconds.hpp" - -namespace CIMPP { - - -class WindTurbineType3or4IEC; -class WindDynamicsLookupTable; - /* - Current limitation model. The current limitation model combines the physical limits. Reference: IEC Standard 61400-27-1 Section 6.6.5.7. - */ - class WindContCurrLimIEC: public IdentifiedObject - { - - public: - CIMPP::PU imax; /* Maximum continuous current at the wind turbine terminals (). It is type dependent parameter. Default: nullptr */ - CIMPP::PU imaxdip; /* Maximum current during voltage dip at the wind turbine terminals (). It is project dependent parameter. Default: nullptr */ - CIMPP::Boolean mdfslim; /* Limitation of type 3 stator current (): - false=0: total current limitation, - true=1: stator current limitation). It is type dependent parameter. Default: false */ - CIMPP::Boolean mqpri; /* Prioritisation of q control during LVRT (): - true = 1: reactive power priority, - false = 0: active power priority. It is project dependent parameter. Default: false */ - CIMPP::Seconds tufilt; /* Voltage measurement filter time constant (). It is type dependent parameter. Default: nullptr */ - CIMPP::WindTurbineType3or4IEC* WindTurbineType3or4IEC; /* Wind turbine type 3 or 4 model with which this wind control current limitation model is associated. Default: 0 */ - std::list WindDynamicsLookupTable; /* The current control limitation model with which this wind dynamics lookup table is associated. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - WindContCurrLimIEC(); - virtual ~WindContCurrLimIEC(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* WindContCurrLimIEC_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/WindContPType3IEC.cpp b/CGMES_2.4.13_18DEC2013/WindContPType3IEC.cpp deleted file mode 100644 index 97dc2c67c..000000000 --- a/CGMES_2.4.13_18DEC2013/WindContPType3IEC.cpp +++ /dev/null @@ -1,380 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "WindContPType3IEC.hpp" - -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Boolean.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "WindGenTurbineType3IEC.hpp" -#include "WindDynamicsLookupTable.hpp" - -using namespace CIMPP; - -WindContPType3IEC::WindContPType3IEC(): WindGenTurbineType3IEC(nullptr), WindDynamicsLookupTable(nullptr) {}; - -WindContPType3IEC::~WindContPType3IEC() {}; - - - - - - - - - - - - - - - - - - - - - - - -bool assign_WindContPType3IEC_WindGenTurbineType3IEC(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(WindContPType3IEC* element = dynamic_cast(BaseClass_ptr1)) { - element->WindGenTurbineType3IEC = dynamic_cast(BaseClass_ptr2); - if(element->WindGenTurbineType3IEC != nullptr) - return true; - } - return false; -} - -bool assign_WindContPType3IEC_WindDynamicsLookupTable(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(WindContPType3IEC* element = dynamic_cast(BaseClass_ptr1)) { - element->WindDynamicsLookupTable = dynamic_cast(BaseClass_ptr2); - if(element->WindDynamicsLookupTable != nullptr) - return true; - } - return false; -} - - -bool assign_WindContPType3IEC_dpmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContPType3IEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->dpmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContPType3IEC_dtrisemaxlvrt(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContPType3IEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->dtrisemaxlvrt; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContPType3IEC_kdtd(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContPType3IEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kdtd; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContPType3IEC_kip(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContPType3IEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kip; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContPType3IEC_kpp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContPType3IEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kpp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContPType3IEC_mplvrt(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContPType3IEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->mplvrt; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContPType3IEC_omegaoffset(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContPType3IEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->omegaoffset; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContPType3IEC_pdtdmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContPType3IEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pdtdmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContPType3IEC_rramp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContPType3IEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->rramp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContPType3IEC_tdvs(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContPType3IEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tdvs; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContPType3IEC_temin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContPType3IEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->temin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContPType3IEC_tomegafilt(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContPType3IEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tomegafilt; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContPType3IEC_tpfilt(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContPType3IEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tpfilt; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContPType3IEC_tpord(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContPType3IEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tpord; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContPType3IEC_tufilt(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContPType3IEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tufilt; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContPType3IEC_tuscale(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContPType3IEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tuscale; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContPType3IEC_twref(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContPType3IEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->twref; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContPType3IEC_udvs(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContPType3IEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->udvs; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContPType3IEC_updip(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContPType3IEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->updip; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContPType3IEC_wdtd(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContPType3IEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->wdtd; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContPType3IEC_zeta(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContPType3IEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->zeta; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - - -namespace CIMPP { - BaseClass* WindContPType3IEC_factory() { - return new WindContPType3IEC; - } -} - -void WindContPType3IEC::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:WindContPType3IEC"), &WindContPType3IEC_factory)); -} - -void WindContPType3IEC::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:WindContPType3IEC.dpmax"), &assign_WindContPType3IEC_dpmax)); - assign_map.insert(std::make_pair(std::string("cim:WindContPType3IEC.dtrisemaxlvrt"), &assign_WindContPType3IEC_dtrisemaxlvrt)); - assign_map.insert(std::make_pair(std::string("cim:WindContPType3IEC.kdtd"), &assign_WindContPType3IEC_kdtd)); - assign_map.insert(std::make_pair(std::string("cim:WindContPType3IEC.kip"), &assign_WindContPType3IEC_kip)); - assign_map.insert(std::make_pair(std::string("cim:WindContPType3IEC.kpp"), &assign_WindContPType3IEC_kpp)); - assign_map.insert(std::make_pair(std::string("cim:WindContPType3IEC.mplvrt"), &assign_WindContPType3IEC_mplvrt)); - assign_map.insert(std::make_pair(std::string("cim:WindContPType3IEC.omegaoffset"), &assign_WindContPType3IEC_omegaoffset)); - assign_map.insert(std::make_pair(std::string("cim:WindContPType3IEC.pdtdmax"), &assign_WindContPType3IEC_pdtdmax)); - assign_map.insert(std::make_pair(std::string("cim:WindContPType3IEC.rramp"), &assign_WindContPType3IEC_rramp)); - assign_map.insert(std::make_pair(std::string("cim:WindContPType3IEC.tdvs"), &assign_WindContPType3IEC_tdvs)); - assign_map.insert(std::make_pair(std::string("cim:WindContPType3IEC.temin"), &assign_WindContPType3IEC_temin)); - assign_map.insert(std::make_pair(std::string("cim:WindContPType3IEC.tomegafilt"), &assign_WindContPType3IEC_tomegafilt)); - assign_map.insert(std::make_pair(std::string("cim:WindContPType3IEC.tpfilt"), &assign_WindContPType3IEC_tpfilt)); - assign_map.insert(std::make_pair(std::string("cim:WindContPType3IEC.tpord"), &assign_WindContPType3IEC_tpord)); - assign_map.insert(std::make_pair(std::string("cim:WindContPType3IEC.tufilt"), &assign_WindContPType3IEC_tufilt)); - assign_map.insert(std::make_pair(std::string("cim:WindContPType3IEC.tuscale"), &assign_WindContPType3IEC_tuscale)); - assign_map.insert(std::make_pair(std::string("cim:WindContPType3IEC.twref"), &assign_WindContPType3IEC_twref)); - assign_map.insert(std::make_pair(std::string("cim:WindContPType3IEC.udvs"), &assign_WindContPType3IEC_udvs)); - assign_map.insert(std::make_pair(std::string("cim:WindContPType3IEC.updip"), &assign_WindContPType3IEC_updip)); - assign_map.insert(std::make_pair(std::string("cim:WindContPType3IEC.wdtd"), &assign_WindContPType3IEC_wdtd)); - assign_map.insert(std::make_pair(std::string("cim:WindContPType3IEC.zeta"), &assign_WindContPType3IEC_zeta)); - } - -void WindContPType3IEC::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:WindContPType3IEC.WindGenTurbineType3IEC"), &assign_WindContPType3IEC_WindGenTurbineType3IEC)); - assign_map.insert(std::make_pair(std::string("cim:WindContPType3IEC.WindDynamicsLookupTable"), &assign_WindContPType3IEC_WindDynamicsLookupTable)); -} - -const char WindContPType3IEC::debugName[] = "WindContPType3IEC"; -const char* WindContPType3IEC::debugString() -{ - return WindContPType3IEC::debugName; -} - -const BaseClassDefiner WindContPType3IEC::declare() -{ - return BaseClassDefiner(WindContPType3IEC::addConstructToMap, WindContPType3IEC::addPrimitiveAssignFnsToMap, WindContPType3IEC::addClassAssignFnsToMap, WindContPType3IEC::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/WindContPType3IEC.hpp b/CGMES_2.4.13_18DEC2013/WindContPType3IEC.hpp deleted file mode 100644 index 938abe5d2..000000000 --- a/CGMES_2.4.13_18DEC2013/WindContPType3IEC.hpp +++ /dev/null @@ -1,67 +0,0 @@ -#ifndef WindContPType3IEC_H -#define WindContPType3IEC_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "Boolean.hpp" -#include "Seconds.hpp" -#include "Simple_Float.hpp" - -namespace CIMPP { - - -class WindGenTurbineType3IEC; -class WindDynamicsLookupTable; - /* - P control model Type 3. Reference: IEC Standard 61400-27-1 Section 6.6.5.3. - */ - class WindContPType3IEC: public IdentifiedObject - { - - public: - CIMPP::PU dpmax; /* Maximum wind turbine power ramp rate (). It is project dependent parameter. Default: nullptr */ - CIMPP::PU dtrisemaxlvrt; /* Limitation of torque rise rate during LVRT for S (d). It is project dependent parameter. Default: nullptr */ - CIMPP::PU kdtd; /* Gain for active drive train damping (). It is type dependent parameter. Default: nullptr */ - CIMPP::PU kip; /* PI controller integration parameter (). It is type dependent parameter. Default: nullptr */ - CIMPP::PU kpp; /* PI controller proportional gain (). It is type dependent parameter. Default: nullptr */ - CIMPP::Boolean mplvrt; /* Enable LVRT power control mode (M true = 1: voltage control false = 0: reactive power control. It is project dependent parameter. Default: false */ - CIMPP::PU omegaoffset; /* Offset to reference value that limits controller action during rotor speed changes (omega). It is case dependent parameter. Default: nullptr */ - CIMPP::PU pdtdmax; /* Maximum active drive train damping power (). It is type dependent parameter. Default: nullptr */ - CIMPP::PU rramp; /* Ramp limitation of torque, required in some grid codes (). It is project dependent parameter. Default: nullptr */ - CIMPP::Seconds tdvs; /* Timedelay after deep voltage sags (T). It is project dependent parameter. Default: nullptr */ - CIMPP::PU temin; /* Minimum electrical generator torque (). It is type dependent parameter. Default: nullptr */ - CIMPP::Seconds tomegafilt; /* Filter time constant for generator speed measurement (). It is type dependent parameter. Default: nullptr */ - CIMPP::Seconds tpfilt; /* Filter time constant for power measurement (). It is type dependent parameter. Default: nullptr */ - CIMPP::PU tpord; /* Time constant in power order lag (). It is type dependent parameter. Default: nullptr */ - CIMPP::Seconds tufilt; /* Filter time constant for voltage measurement (). It is type dependent parameter. Default: nullptr */ - CIMPP::PU tuscale; /* Voltage scaling factor of reset-torque (T). It is project dependent parameter. Default: nullptr */ - CIMPP::Seconds twref; /* Time constant in speed reference filter (). It is type dependent parameter. Default: nullptr */ - CIMPP::PU udvs; /* Voltage limit for hold LVRT status after deep voltage sags (). It is project dependent parameter. Default: nullptr */ - CIMPP::PU updip; /* Voltage dip threshold for P-control (). Part of turbine control, often different (e.g 0.8) from converter thresholds. It is project dependent parameter. Default: nullptr */ - CIMPP::PU wdtd; /* Active drive train damping frequency (omega). It can be calculated from two mass model parameters. It is type dependent parameter. Default: nullptr */ - CIMPP::Simple_Float zeta; /* Coefficient for active drive train damping (zeta). It is type dependent parameter. Default: nullptr */ - CIMPP::WindGenTurbineType3IEC* WindGenTurbineType3IEC; /* Wind turbine type 3 model with which this Wind control P type 3 model is associated. Default: 0 */ - CIMPP::WindDynamicsLookupTable* WindDynamicsLookupTable; /* The P control type 3 model with which this wind dynamics lookup table is associated. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - WindContPType3IEC(); - virtual ~WindContPType3IEC(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* WindContPType3IEC_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/WindContPType4aIEC.cpp b/CGMES_2.4.13_18DEC2013/WindContPType4aIEC.cpp deleted file mode 100644 index 451eeb6f5..000000000 --- a/CGMES_2.4.13_18DEC2013/WindContPType4aIEC.cpp +++ /dev/null @@ -1,98 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "WindContPType4aIEC.hpp" - -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "WindTurbineType4aIEC.hpp" - -using namespace CIMPP; - -WindContPType4aIEC::WindContPType4aIEC(): WindTurbineType4aIEC(nullptr) {}; - -WindContPType4aIEC::~WindContPType4aIEC() {}; - - - - - -bool assign_WindContPType4aIEC_WindTurbineType4aIEC(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(WindContPType4aIEC* element = dynamic_cast(BaseClass_ptr1)) { - element->WindTurbineType4aIEC = dynamic_cast(BaseClass_ptr2); - if(element->WindTurbineType4aIEC != nullptr) - return true; - } - return false; -} - - -bool assign_WindContPType4aIEC_dpmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContPType4aIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->dpmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContPType4aIEC_tpord(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContPType4aIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tpord; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContPType4aIEC_tufilt(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContPType4aIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tufilt; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -namespace CIMPP { - BaseClass* WindContPType4aIEC_factory() { - return new WindContPType4aIEC; - } -} - -void WindContPType4aIEC::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:WindContPType4aIEC"), &WindContPType4aIEC_factory)); -} - -void WindContPType4aIEC::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:WindContPType4aIEC.dpmax"), &assign_WindContPType4aIEC_dpmax)); - assign_map.insert(std::make_pair(std::string("cim:WindContPType4aIEC.tpord"), &assign_WindContPType4aIEC_tpord)); - assign_map.insert(std::make_pair(std::string("cim:WindContPType4aIEC.tufilt"), &assign_WindContPType4aIEC_tufilt)); - } - -void WindContPType4aIEC::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:WindContPType4aIEC.WindTurbineType4aIEC"), &assign_WindContPType4aIEC_WindTurbineType4aIEC)); -} - -const char WindContPType4aIEC::debugName[] = "WindContPType4aIEC"; -const char* WindContPType4aIEC::debugString() -{ - return WindContPType4aIEC::debugName; -} - -const BaseClassDefiner WindContPType4aIEC::declare() -{ - return BaseClassDefiner(WindContPType4aIEC::addConstructToMap, WindContPType4aIEC::addPrimitiveAssignFnsToMap, WindContPType4aIEC::addClassAssignFnsToMap, WindContPType4aIEC::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/WindContPType4aIEC.hpp b/CGMES_2.4.13_18DEC2013/WindContPType4aIEC.hpp deleted file mode 100644 index 6bea47516..000000000 --- a/CGMES_2.4.13_18DEC2013/WindContPType4aIEC.hpp +++ /dev/null @@ -1,45 +0,0 @@ -#ifndef WindContPType4aIEC_H -#define WindContPType4aIEC_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "Seconds.hpp" - -namespace CIMPP { - - -class WindTurbineType4aIEC; - /* - P control model Type 4A. Reference: IEC Standard 61400-27-1 Section 6.6.5.4. - */ - class WindContPType4aIEC: public IdentifiedObject - { - - public: - CIMPP::PU dpmax; /* Maximum wind turbine power ramp rate (). It is project dependent parameter. Default: nullptr */ - CIMPP::Seconds tpord; /* Time constant in power order lag (). It is type dependent parameter. Default: nullptr */ - CIMPP::Seconds tufilt; /* Voltage measurement filter time constant (). It is type dependent parameter. Default: nullptr */ - CIMPP::WindTurbineType4aIEC* WindTurbineType4aIEC; /* Wind turbine type 4A model with which this wind control P type 4A model is associated. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - WindContPType4aIEC(); - virtual ~WindContPType4aIEC(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* WindContPType4aIEC_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/WindContPType4bIEC.cpp b/CGMES_2.4.13_18DEC2013/WindContPType4bIEC.cpp deleted file mode 100644 index 099407b5b..000000000 --- a/CGMES_2.4.13_18DEC2013/WindContPType4bIEC.cpp +++ /dev/null @@ -1,113 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "WindContPType4bIEC.hpp" - -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "WindTurbineType4bIEC.hpp" - -using namespace CIMPP; - -WindContPType4bIEC::WindContPType4bIEC(): WindTurbineType4bIEC(nullptr) {}; - -WindContPType4bIEC::~WindContPType4bIEC() {}; - - - - - - -bool assign_WindContPType4bIEC_WindTurbineType4bIEC(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(WindContPType4bIEC* element = dynamic_cast(BaseClass_ptr1)) { - element->WindTurbineType4bIEC = dynamic_cast(BaseClass_ptr2); - if(element->WindTurbineType4bIEC != nullptr) - return true; - } - return false; -} - - -bool assign_WindContPType4bIEC_dpmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContPType4bIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->dpmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContPType4bIEC_tpaero(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContPType4bIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tpaero; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContPType4bIEC_tpord(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContPType4bIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tpord; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContPType4bIEC_tufilt(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContPType4bIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tufilt; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -namespace CIMPP { - BaseClass* WindContPType4bIEC_factory() { - return new WindContPType4bIEC; - } -} - -void WindContPType4bIEC::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:WindContPType4bIEC"), &WindContPType4bIEC_factory)); -} - -void WindContPType4bIEC::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:WindContPType4bIEC.dpmax"), &assign_WindContPType4bIEC_dpmax)); - assign_map.insert(std::make_pair(std::string("cim:WindContPType4bIEC.tpaero"), &assign_WindContPType4bIEC_tpaero)); - assign_map.insert(std::make_pair(std::string("cim:WindContPType4bIEC.tpord"), &assign_WindContPType4bIEC_tpord)); - assign_map.insert(std::make_pair(std::string("cim:WindContPType4bIEC.tufilt"), &assign_WindContPType4bIEC_tufilt)); - } - -void WindContPType4bIEC::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:WindContPType4bIEC.WindTurbineType4bIEC"), &assign_WindContPType4bIEC_WindTurbineType4bIEC)); -} - -const char WindContPType4bIEC::debugName[] = "WindContPType4bIEC"; -const char* WindContPType4bIEC::debugString() -{ - return WindContPType4bIEC::debugName; -} - -const BaseClassDefiner WindContPType4bIEC::declare() -{ - return BaseClassDefiner(WindContPType4bIEC::addConstructToMap, WindContPType4bIEC::addPrimitiveAssignFnsToMap, WindContPType4bIEC::addClassAssignFnsToMap, WindContPType4bIEC::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/WindContPType4bIEC.hpp b/CGMES_2.4.13_18DEC2013/WindContPType4bIEC.hpp deleted file mode 100644 index 586daf965..000000000 --- a/CGMES_2.4.13_18DEC2013/WindContPType4bIEC.hpp +++ /dev/null @@ -1,46 +0,0 @@ -#ifndef WindContPType4bIEC_H -#define WindContPType4bIEC_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "Seconds.hpp" - -namespace CIMPP { - - -class WindTurbineType4bIEC; - /* - P control model Type 4B. Reference: IEC Standard 61400-27-1 Section 6.6.5.5. - */ - class WindContPType4bIEC: public IdentifiedObject - { - - public: - CIMPP::PU dpmax; /* Maximum wind turbine power ramp rate (). It is project dependent parameter. Default: nullptr */ - CIMPP::Seconds tpaero; /* Time constant in aerodynamic power response (). It is type dependent parameter. Default: nullptr */ - CIMPP::Seconds tpord; /* Time constant in power order lag (). It is type dependent parameter. Default: nullptr */ - CIMPP::Seconds tufilt; /* Voltage measurement filter time constant (). It is type dependent parameter. Default: nullptr */ - CIMPP::WindTurbineType4bIEC* WindTurbineType4bIEC; /* Wind turbine type 4B model with which this wind control P type 4B model is associated. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - WindContPType4bIEC(); - virtual ~WindContPType4bIEC(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* WindContPType4bIEC_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/WindContPitchAngleIEC.cpp b/CGMES_2.4.13_18DEC2013/WindContPitchAngleIEC.cpp deleted file mode 100644 index 0e74abd50..000000000 --- a/CGMES_2.4.13_18DEC2013/WindContPitchAngleIEC.cpp +++ /dev/null @@ -1,203 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "WindContPitchAngleIEC.hpp" - -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "AngleDegrees.hpp" -#include "AngleDegrees.hpp" -#include "Seconds.hpp" -#include "WindGenTurbineType3IEC.hpp" - -using namespace CIMPP; - -WindContPitchAngleIEC::WindContPitchAngleIEC(): WindGenTurbineType3IEC(nullptr) {}; - -WindContPitchAngleIEC::~WindContPitchAngleIEC() {}; - - - - - - - - - - - - -bool assign_WindContPitchAngleIEC_WindGenTurbineType3IEC(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(WindContPitchAngleIEC* element = dynamic_cast(BaseClass_ptr1)) { - element->WindGenTurbineType3IEC = dynamic_cast(BaseClass_ptr2); - if(element->WindGenTurbineType3IEC != nullptr) - return true; - } - return false; -} - - -bool assign_WindContPitchAngleIEC_dthetamax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContPitchAngleIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->dthetamax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContPitchAngleIEC_dthetamin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContPitchAngleIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->dthetamin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContPitchAngleIEC_kic(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContPitchAngleIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kic; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContPitchAngleIEC_kiomega(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContPitchAngleIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kiomega; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContPitchAngleIEC_kpc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContPitchAngleIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kpc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContPitchAngleIEC_kpomega(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContPitchAngleIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kpomega; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContPitchAngleIEC_kpx(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContPitchAngleIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kpx; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContPitchAngleIEC_thetamax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContPitchAngleIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->thetamax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContPitchAngleIEC_thetamin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContPitchAngleIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->thetamin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContPitchAngleIEC_ttheta(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContPitchAngleIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->ttheta; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -namespace CIMPP { - BaseClass* WindContPitchAngleIEC_factory() { - return new WindContPitchAngleIEC; - } -} - -void WindContPitchAngleIEC::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:WindContPitchAngleIEC"), &WindContPitchAngleIEC_factory)); -} - -void WindContPitchAngleIEC::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:WindContPitchAngleIEC.dthetamax"), &assign_WindContPitchAngleIEC_dthetamax)); - assign_map.insert(std::make_pair(std::string("cim:WindContPitchAngleIEC.dthetamin"), &assign_WindContPitchAngleIEC_dthetamin)); - assign_map.insert(std::make_pair(std::string("cim:WindContPitchAngleIEC.kic"), &assign_WindContPitchAngleIEC_kic)); - assign_map.insert(std::make_pair(std::string("cim:WindContPitchAngleIEC.kiomega"), &assign_WindContPitchAngleIEC_kiomega)); - assign_map.insert(std::make_pair(std::string("cim:WindContPitchAngleIEC.kpc"), &assign_WindContPitchAngleIEC_kpc)); - assign_map.insert(std::make_pair(std::string("cim:WindContPitchAngleIEC.kpomega"), &assign_WindContPitchAngleIEC_kpomega)); - assign_map.insert(std::make_pair(std::string("cim:WindContPitchAngleIEC.kpx"), &assign_WindContPitchAngleIEC_kpx)); - assign_map.insert(std::make_pair(std::string("cim:WindContPitchAngleIEC.thetamax"), &assign_WindContPitchAngleIEC_thetamax)); - assign_map.insert(std::make_pair(std::string("cim:WindContPitchAngleIEC.thetamin"), &assign_WindContPitchAngleIEC_thetamin)); - assign_map.insert(std::make_pair(std::string("cim:WindContPitchAngleIEC.ttheta"), &assign_WindContPitchAngleIEC_ttheta)); - } - -void WindContPitchAngleIEC::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:WindContPitchAngleIEC.WindGenTurbineType3IEC"), &assign_WindContPitchAngleIEC_WindGenTurbineType3IEC)); -} - -const char WindContPitchAngleIEC::debugName[] = "WindContPitchAngleIEC"; -const char* WindContPitchAngleIEC::debugString() -{ - return WindContPitchAngleIEC::debugName; -} - -const BaseClassDefiner WindContPitchAngleIEC::declare() -{ - return BaseClassDefiner(WindContPitchAngleIEC::addConstructToMap, WindContPitchAngleIEC::addPrimitiveAssignFnsToMap, WindContPitchAngleIEC::addClassAssignFnsToMap, WindContPitchAngleIEC::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/WindContPitchAngleIEC.hpp b/CGMES_2.4.13_18DEC2013/WindContPitchAngleIEC.hpp deleted file mode 100644 index dbd8fb229..000000000 --- a/CGMES_2.4.13_18DEC2013/WindContPitchAngleIEC.hpp +++ /dev/null @@ -1,54 +0,0 @@ -#ifndef WindContPitchAngleIEC_H -#define WindContPitchAngleIEC_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "AngleDegrees.hpp" -#include "Seconds.hpp" - -namespace CIMPP { - - -class WindGenTurbineType3IEC; - /* - Pitch angle control model. Reference: IEC Standard 61400-27-1 Section 6.6.5.8. - */ - class WindContPitchAngleIEC: public IdentifiedObject - { - - public: - CIMPP::Simple_Float dthetamax; /* Maximum pitch positive ramp rate (d). It is type dependent parameter. Unit = degrees/sec. Default: nullptr */ - CIMPP::Simple_Float dthetamin; /* Maximum pitch negative ramp rate (d). It is type dependent parameter. Unit = degrees/sec. Default: nullptr */ - CIMPP::PU kic; /* Power PI controller integration gain (). It is type dependent parameter. Default: nullptr */ - CIMPP::PU kiomega; /* Speed PI controller integration gain (). It is type dependent parameter. Default: nullptr */ - CIMPP::PU kpc; /* Power PI controller proportional gain (). It is type dependent parameter. Default: nullptr */ - CIMPP::PU kpomega; /* Speed PI controller proportional gain (). It is type dependent parameter. Default: nullptr */ - CIMPP::PU kpx; /* Pitch cross coupling gain (K). It is type dependent parameter. Default: nullptr */ - CIMPP::AngleDegrees thetamax; /* Maximum pitch angle (). It is type dependent parameter. Default: nullptr */ - CIMPP::AngleDegrees thetamin; /* Minimum pitch angle (). It is type dependent parameter. Default: nullptr */ - CIMPP::Seconds ttheta; /* Pitch time constant (t). It is type dependent parameter. Default: nullptr */ - CIMPP::WindGenTurbineType3IEC* WindGenTurbineType3IEC; /* Wind turbine type 3 model with which this pitch control model is associated. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - WindContPitchAngleIEC(); - virtual ~WindContPitchAngleIEC(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* WindContPitchAngleIEC_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/WindContQIEC.cpp b/CGMES_2.4.13_18DEC2013/WindContQIEC.cpp deleted file mode 100644 index 8c85dc09e..000000000 --- a/CGMES_2.4.13_18DEC2013/WindContQIEC.cpp +++ /dev/null @@ -1,443 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "WindContQIEC.hpp" - -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "WindLVRTQcontrolModesKind.hpp" -#include "WindQcontrolModesKind.hpp" -#include "PU.hpp" -#include "WindTurbineType3or4IEC.hpp" - -using namespace CIMPP; - -WindContQIEC::WindContQIEC(): WindTurbineType3or4IEC(nullptr) {}; - -WindContQIEC::~WindContQIEC() {}; - - - - - - - - - - - - - - - - - - - - - - - - - - - - -bool assign_WindContQIEC_WindTurbineType3or4IEC(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(WindContQIEC* element = dynamic_cast(BaseClass_ptr1)) { - element->WindTurbineType3or4IEC = dynamic_cast(BaseClass_ptr2); - if(element->WindTurbineType3or4IEC != nullptr) - return true; - } - return false; -} - - -bool assign_WindContQIEC_iqh1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContQIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->iqh1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContQIEC_iqmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContQIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->iqmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContQIEC_iqmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContQIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->iqmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContQIEC_iqpost(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContQIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->iqpost; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContQIEC_kiq(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContQIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kiq; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContQIEC_kiu(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContQIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kiu; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContQIEC_kpq(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContQIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kpq; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContQIEC_kpu(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContQIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kpu; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContQIEC_kqv(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContQIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kqv; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContQIEC_qmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContQIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->qmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContQIEC_qmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContQIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->qmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContQIEC_rdroop(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContQIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->rdroop; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContQIEC_tiq(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContQIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tiq; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContQIEC_tpfilt(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContQIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tpfilt; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContQIEC_tpost(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContQIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tpost; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContQIEC_tqord(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContQIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tqord; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContQIEC_tufilt(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContQIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tufilt; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContQIEC_udb1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContQIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->udb1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContQIEC_udb2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContQIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->udb2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContQIEC_umax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContQIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->umax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContQIEC_umin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContQIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->umin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContQIEC_uqdip(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContQIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->uqdip; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContQIEC_uref0(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContQIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->uref0; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContQIEC_windLVRTQcontrolModesType(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContQIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->windLVRTQcontrolModesType; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContQIEC_windQcontrolModesType(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContQIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->windQcontrolModesType; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContQIEC_xdroop(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContQIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->xdroop; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -namespace CIMPP { - BaseClass* WindContQIEC_factory() { - return new WindContQIEC; - } -} - -void WindContQIEC::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:WindContQIEC"), &WindContQIEC_factory)); -} - -void WindContQIEC::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:WindContQIEC.iqh1"), &assign_WindContQIEC_iqh1)); - assign_map.insert(std::make_pair(std::string("cim:WindContQIEC.iqmax"), &assign_WindContQIEC_iqmax)); - assign_map.insert(std::make_pair(std::string("cim:WindContQIEC.iqmin"), &assign_WindContQIEC_iqmin)); - assign_map.insert(std::make_pair(std::string("cim:WindContQIEC.iqpost"), &assign_WindContQIEC_iqpost)); - assign_map.insert(std::make_pair(std::string("cim:WindContQIEC.kiq"), &assign_WindContQIEC_kiq)); - assign_map.insert(std::make_pair(std::string("cim:WindContQIEC.kiu"), &assign_WindContQIEC_kiu)); - assign_map.insert(std::make_pair(std::string("cim:WindContQIEC.kpq"), &assign_WindContQIEC_kpq)); - assign_map.insert(std::make_pair(std::string("cim:WindContQIEC.kpu"), &assign_WindContQIEC_kpu)); - assign_map.insert(std::make_pair(std::string("cim:WindContQIEC.kqv"), &assign_WindContQIEC_kqv)); - assign_map.insert(std::make_pair(std::string("cim:WindContQIEC.qmax"), &assign_WindContQIEC_qmax)); - assign_map.insert(std::make_pair(std::string("cim:WindContQIEC.qmin"), &assign_WindContQIEC_qmin)); - assign_map.insert(std::make_pair(std::string("cim:WindContQIEC.rdroop"), &assign_WindContQIEC_rdroop)); - assign_map.insert(std::make_pair(std::string("cim:WindContQIEC.tiq"), &assign_WindContQIEC_tiq)); - assign_map.insert(std::make_pair(std::string("cim:WindContQIEC.tpfilt"), &assign_WindContQIEC_tpfilt)); - assign_map.insert(std::make_pair(std::string("cim:WindContQIEC.tpost"), &assign_WindContQIEC_tpost)); - assign_map.insert(std::make_pair(std::string("cim:WindContQIEC.tqord"), &assign_WindContQIEC_tqord)); - assign_map.insert(std::make_pair(std::string("cim:WindContQIEC.tufilt"), &assign_WindContQIEC_tufilt)); - assign_map.insert(std::make_pair(std::string("cim:WindContQIEC.udb1"), &assign_WindContQIEC_udb1)); - assign_map.insert(std::make_pair(std::string("cim:WindContQIEC.udb2"), &assign_WindContQIEC_udb2)); - assign_map.insert(std::make_pair(std::string("cim:WindContQIEC.umax"), &assign_WindContQIEC_umax)); - assign_map.insert(std::make_pair(std::string("cim:WindContQIEC.umin"), &assign_WindContQIEC_umin)); - assign_map.insert(std::make_pair(std::string("cim:WindContQIEC.uqdip"), &assign_WindContQIEC_uqdip)); - assign_map.insert(std::make_pair(std::string("cim:WindContQIEC.uref0"), &assign_WindContQIEC_uref0)); - assign_map.insert(std::make_pair(std::string("cim:WindContQIEC.windLVRTQcontrolModesType"), &assign_WindContQIEC_windLVRTQcontrolModesType)); - assign_map.insert(std::make_pair(std::string("cim:WindContQIEC.windQcontrolModesType"), &assign_WindContQIEC_windQcontrolModesType)); - assign_map.insert(std::make_pair(std::string("cim:WindContQIEC.xdroop"), &assign_WindContQIEC_xdroop)); - } - -void WindContQIEC::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:WindContQIEC.WindTurbineType3or4IEC"), &assign_WindContQIEC_WindTurbineType3or4IEC)); -} - -const char WindContQIEC::debugName[] = "WindContQIEC"; -const char* WindContQIEC::debugString() -{ - return WindContQIEC::debugName; -} - -const BaseClassDefiner WindContQIEC::declare() -{ - return BaseClassDefiner(WindContQIEC::addConstructToMap, WindContQIEC::addPrimitiveAssignFnsToMap, WindContQIEC::addClassAssignFnsToMap, WindContQIEC::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/WindContQIEC.hpp b/CGMES_2.4.13_18DEC2013/WindContQIEC.hpp deleted file mode 100644 index 36c3bc452..000000000 --- a/CGMES_2.4.13_18DEC2013/WindContQIEC.hpp +++ /dev/null @@ -1,70 +0,0 @@ -#ifndef WindContQIEC_H -#define WindContQIEC_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "Seconds.hpp" -#include "WindLVRTQcontrolModesKind.hpp" -#include "WindQcontrolModesKind.hpp" - -namespace CIMPP { - - -class WindTurbineType3or4IEC; - /* - Q control model. Reference: IEC Standard 61400-27-1 Section 6.6.5.6. - */ - class WindContQIEC: public IdentifiedObject - { - - public: - CIMPP::PU iqh1; /* Maximum reactive current injection during dip (i). It is type dependent parameter. Default: nullptr */ - CIMPP::PU iqmax; /* Maximum reactive current injection (i). It is type dependent parameter. Default: nullptr */ - CIMPP::PU iqmin; /* Minimum reactive current injection (i). It is type dependent parameter. Default: nullptr */ - CIMPP::PU iqpost; /* Post fault reactive current injection (). It is project dependent parameter. Default: nullptr */ - CIMPP::PU kiq; /* Reactive power PI controller integration gain (). It is type dependent parameter. Default: nullptr */ - CIMPP::PU kiu; /* Voltage PI controller integration gain (). It is type dependent parameter. Default: nullptr */ - CIMPP::PU kpq; /* Reactive power PI controller proportional gain (). It is type dependent parameter. Default: nullptr */ - CIMPP::PU kpu; /* Voltage PI controller proportional gain (). It is type dependent parameter. Default: nullptr */ - CIMPP::PU kqv; /* Voltage scaling factor for LVRT current (). It is project dependent parameter. Default: nullptr */ - CIMPP::PU qmax; /* Maximum reactive power (q). It is type dependent parameter. Default: nullptr */ - CIMPP::PU qmin; /* Minimum reactive power (q). It is type dependent parameter. Default: nullptr */ - CIMPP::PU rdroop; /* Resistive component of voltage drop impedance (). It is project dependent parameter. Default: nullptr */ - CIMPP::Seconds tiq; /* Time constant in reactive current lag (T). It is type dependent parameter. Default: nullptr */ - CIMPP::Seconds tpfilt; /* Power measurement filter time constant (). It is type dependent parameter. Default: nullptr */ - CIMPP::Seconds tpost; /* Length of time period where post fault reactive power is injected (). It is project dependent parameter. Default: nullptr */ - CIMPP::Seconds tqord; /* Time constant in reactive power order lag (). It is type dependent parameter. Default: nullptr */ - CIMPP::Seconds tufilt; /* Voltage measurement filter time constant (). It is type dependent parameter. Default: nullptr */ - CIMPP::PU udb1; /* Voltage dead band lower limit (). It is type dependent parameter. Default: nullptr */ - CIMPP::PU udb2; /* Voltage dead band upper limit (). It is type dependent parameter. Default: nullptr */ - CIMPP::PU umax; /* Maximum voltage in voltage PI controller integral term (u). It is type dependent parameter. Default: nullptr */ - CIMPP::PU umin; /* Minimum voltage in voltage PI controller integral term (u). It is type dependent parameter. Default: nullptr */ - CIMPP::PU uqdip; /* Voltage threshold for LVRT detection in q control (). It is type dependent parameter. Default: nullptr */ - CIMPP::PU uref0; /* User defined bias in voltage reference (), used when =. It is case dependent parameter. Default: nullptr */ - CIMPP::WindLVRTQcontrolModesKind windLVRTQcontrolModesType; /* Types of LVRT Q control modes (). It is project dependent parameter. Default: 0 */ - CIMPP::WindQcontrolModesKind windQcontrolModesType; /* Types of general wind turbine Q control modes (). It is project dependent parameter. Default: 0 */ - CIMPP::PU xdroop; /* Inductive component of voltage drop impedance (). It is project dependent parameter. Default: nullptr */ - CIMPP::WindTurbineType3or4IEC* WindTurbineType3or4IEC; /* Wind turbine type 3 or 4 model with which this reactive control mode is associated. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - WindContQIEC(); - virtual ~WindContQIEC(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* WindContQIEC_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/WindContRotorRIEC.cpp b/CGMES_2.4.13_18DEC2013/WindContRotorRIEC.cpp deleted file mode 100644 index 0bd845bc4..000000000 --- a/CGMES_2.4.13_18DEC2013/WindContRotorRIEC.cpp +++ /dev/null @@ -1,186 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "WindContRotorRIEC.hpp" - -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "WindDynamicsLookupTable.hpp" -#include "WindGenTurbineType2IEC.hpp" - -using namespace CIMPP; - -WindContRotorRIEC::WindContRotorRIEC(): WindGenTurbineType2IEC(nullptr) {}; - -WindContRotorRIEC::~WindContRotorRIEC() {}; - - - - - - - - - - -bool assign_WindContRotorRIEC_WindDynamicsLookupTable(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(WindContRotorRIEC* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->WindDynamicsLookupTable.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_WindContRotorRIEC_WindGenTurbineType2IEC(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(WindContRotorRIEC* element = dynamic_cast(BaseClass_ptr1)) { - element->WindGenTurbineType2IEC = dynamic_cast(BaseClass_ptr2); - if(element->WindGenTurbineType2IEC != nullptr) - return true; - } - return false; -} - - -bool assign_WindContRotorRIEC_kirr(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContRotorRIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kirr; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContRotorRIEC_komegafilt(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContRotorRIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->komegafilt; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContRotorRIEC_kpfilt(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContRotorRIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kpfilt; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContRotorRIEC_kprr(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContRotorRIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kprr; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContRotorRIEC_rmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContRotorRIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->rmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContRotorRIEC_rmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContRotorRIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->rmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContRotorRIEC_tomegafilt(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContRotorRIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tomegafilt; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindContRotorRIEC_tpfilt(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindContRotorRIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tpfilt; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - - -namespace CIMPP { - BaseClass* WindContRotorRIEC_factory() { - return new WindContRotorRIEC; - } -} - -void WindContRotorRIEC::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:WindContRotorRIEC"), &WindContRotorRIEC_factory)); -} - -void WindContRotorRIEC::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:WindContRotorRIEC.kirr"), &assign_WindContRotorRIEC_kirr)); - assign_map.insert(std::make_pair(std::string("cim:WindContRotorRIEC.komegafilt"), &assign_WindContRotorRIEC_komegafilt)); - assign_map.insert(std::make_pair(std::string("cim:WindContRotorRIEC.kpfilt"), &assign_WindContRotorRIEC_kpfilt)); - assign_map.insert(std::make_pair(std::string("cim:WindContRotorRIEC.kprr"), &assign_WindContRotorRIEC_kprr)); - assign_map.insert(std::make_pair(std::string("cim:WindContRotorRIEC.rmax"), &assign_WindContRotorRIEC_rmax)); - assign_map.insert(std::make_pair(std::string("cim:WindContRotorRIEC.rmin"), &assign_WindContRotorRIEC_rmin)); - assign_map.insert(std::make_pair(std::string("cim:WindContRotorRIEC.tomegafilt"), &assign_WindContRotorRIEC_tomegafilt)); - assign_map.insert(std::make_pair(std::string("cim:WindContRotorRIEC.tpfilt"), &assign_WindContRotorRIEC_tpfilt)); - } - -void WindContRotorRIEC::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:WindContRotorRIEC.WindDynamicsLookupTable"), &assign_WindContRotorRIEC_WindDynamicsLookupTable)); - assign_map.insert(std::make_pair(std::string("cim:WindContRotorRIEC.WindGenTurbineType2IEC"), &assign_WindContRotorRIEC_WindGenTurbineType2IEC)); -} - -const char WindContRotorRIEC::debugName[] = "WindContRotorRIEC"; -const char* WindContRotorRIEC::debugString() -{ - return WindContRotorRIEC::debugName; -} - -const BaseClassDefiner WindContRotorRIEC::declare() -{ - return BaseClassDefiner(WindContRotorRIEC::addConstructToMap, WindContRotorRIEC::addPrimitiveAssignFnsToMap, WindContRotorRIEC::addClassAssignFnsToMap, WindContRotorRIEC::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/WindContRotorRIEC.hpp b/CGMES_2.4.13_18DEC2013/WindContRotorRIEC.hpp deleted file mode 100644 index 33d92613b..000000000 --- a/CGMES_2.4.13_18DEC2013/WindContRotorRIEC.hpp +++ /dev/null @@ -1,53 +0,0 @@ -#ifndef WindContRotorRIEC_H -#define WindContRotorRIEC_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "Seconds.hpp" - -namespace CIMPP { - - -class WindDynamicsLookupTable; -class WindGenTurbineType2IEC; - /* - Rotor resistance control model. Reference: IEC Standard 61400-27-1 Section 6.6.5.2. - */ - class WindContRotorRIEC: public IdentifiedObject - { - - public: - CIMPP::PU kirr; /* Integral gain in rotor resistance PI controller (). It is type dependent parameter. Default: nullptr */ - CIMPP::Simple_Float komegafilt; /* Filter gain for generator speed measurement (K). It is type dependent parameter. Default: nullptr */ - CIMPP::Simple_Float kpfilt; /* Filter gain for power measurement (). It is type dependent parameter. Default: nullptr */ - CIMPP::PU kprr; /* Proportional gain in rotor resistance PI controller (). It is type dependent parameter. Default: nullptr */ - CIMPP::PU rmax; /* Maximum rotor resistance (). It is type dependent parameter. Default: nullptr */ - CIMPP::PU rmin; /* Minimum rotor resistance (). It is type dependent parameter. Default: nullptr */ - CIMPP::Seconds tomegafilt; /* Filter time constant for generator speed measurement (). It is type dependent parameter. Default: nullptr */ - CIMPP::Seconds tpfilt; /* Filter time constant for power measurement (). It is type dependent parameter. Default: nullptr */ - std::list WindDynamicsLookupTable; /* The wind dynamics lookup table associated with this rotor resistance control model. Default: 0 */ - CIMPP::WindGenTurbineType2IEC* WindGenTurbineType2IEC; /* Wind turbine type 2 model with whitch this wind control rotor resistance model is associated. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - WindContRotorRIEC(); - virtual ~WindContRotorRIEC(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* WindContRotorRIEC_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/WindDynamicsLookupTable.cpp b/CGMES_2.4.13_18DEC2013/WindDynamicsLookupTable.cpp deleted file mode 100644 index 26c365097..000000000 --- a/CGMES_2.4.13_18DEC2013/WindDynamicsLookupTable.cpp +++ /dev/null @@ -1,153 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "WindDynamicsLookupTable.hpp" - -#include "WindContCurrLimIEC.hpp" -#include "WindContPType3IEC.hpp" -#include "WindContRotorRIEC.hpp" -#include "Simple_Float.hpp" -#include "WindLookupTableFunctionKind.hpp" -#include "Simple_Float.hpp" -#include "Integer.hpp" -#include "WindPlantFreqPcontrolIEC.hpp" - -using namespace CIMPP; - -WindDynamicsLookupTable::WindDynamicsLookupTable(): WindContCurrLimIEC(nullptr), WindContPType3IEC(nullptr), WindContRotorRIEC(nullptr), WindPlantFreqPcontrolIEC(nullptr) {}; - -WindDynamicsLookupTable::~WindDynamicsLookupTable() {}; - - -bool assign_WindContCurrLimIEC_WindDynamicsLookupTable(BaseClass*, BaseClass*); -bool assign_WindDynamicsLookupTable_WindContCurrLimIEC(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(WindDynamicsLookupTable* element = dynamic_cast(BaseClass_ptr1)) { - element->WindContCurrLimIEC = dynamic_cast(BaseClass_ptr2); - if(element->WindContCurrLimIEC != nullptr) - return assign_WindContCurrLimIEC_WindDynamicsLookupTable(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_WindContPType3IEC_WindDynamicsLookupTable(BaseClass*, BaseClass*); -bool assign_WindDynamicsLookupTable_WindContPType3IEC(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(WindDynamicsLookupTable* element = dynamic_cast(BaseClass_ptr1)) { - element->WindContPType3IEC = dynamic_cast(BaseClass_ptr2); - if(element->WindContPType3IEC != nullptr) - return assign_WindContPType3IEC_WindDynamicsLookupTable(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_WindContRotorRIEC_WindDynamicsLookupTable(BaseClass*, BaseClass*); -bool assign_WindDynamicsLookupTable_WindContRotorRIEC(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(WindDynamicsLookupTable* element = dynamic_cast(BaseClass_ptr1)) { - element->WindContRotorRIEC = dynamic_cast(BaseClass_ptr2); - if(element->WindContRotorRIEC != nullptr) - return assign_WindContRotorRIEC_WindDynamicsLookupTable(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - - - -bool assign_WindPlantFreqPcontrolIEC_WindDynamicsLookupTable(BaseClass*, BaseClass*); -bool assign_WindDynamicsLookupTable_WindPlantFreqPcontrolIEC(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(WindDynamicsLookupTable* element = dynamic_cast(BaseClass_ptr1)) { - element->WindPlantFreqPcontrolIEC = dynamic_cast(BaseClass_ptr2); - if(element->WindPlantFreqPcontrolIEC != nullptr) - return assign_WindPlantFreqPcontrolIEC_WindDynamicsLookupTable(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - - - -bool assign_WindDynamicsLookupTable_input(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindDynamicsLookupTable* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->input; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindDynamicsLookupTable_lookupTableFunctionType(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindDynamicsLookupTable* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->lookupTableFunctionType; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindDynamicsLookupTable_output(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindDynamicsLookupTable* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->output; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindDynamicsLookupTable_sequence(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindDynamicsLookupTable* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->sequence; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -namespace CIMPP { - BaseClass* WindDynamicsLookupTable_factory() { - return new WindDynamicsLookupTable; - } -} - -void WindDynamicsLookupTable::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:WindDynamicsLookupTable"), &WindDynamicsLookupTable_factory)); -} - -void WindDynamicsLookupTable::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:WindDynamicsLookupTable.input"), &assign_WindDynamicsLookupTable_input)); - assign_map.insert(std::make_pair(std::string("cim:WindDynamicsLookupTable.lookupTableFunctionType"), &assign_WindDynamicsLookupTable_lookupTableFunctionType)); - assign_map.insert(std::make_pair(std::string("cim:WindDynamicsLookupTable.output"), &assign_WindDynamicsLookupTable_output)); - assign_map.insert(std::make_pair(std::string("cim:WindDynamicsLookupTable.sequence"), &assign_WindDynamicsLookupTable_sequence)); - } - -void WindDynamicsLookupTable::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:WindDynamicsLookupTable.WindContCurrLimIEC"), &assign_WindDynamicsLookupTable_WindContCurrLimIEC)); - assign_map.insert(std::make_pair(std::string("cim:WindDynamicsLookupTable.WindContPType3IEC"), &assign_WindDynamicsLookupTable_WindContPType3IEC)); - assign_map.insert(std::make_pair(std::string("cim:WindDynamicsLookupTable.WindContRotorRIEC"), &assign_WindDynamicsLookupTable_WindContRotorRIEC)); - assign_map.insert(std::make_pair(std::string("cim:WindDynamicsLookupTable.WindPlantFreqPcontrolIEC"), &assign_WindDynamicsLookupTable_WindPlantFreqPcontrolIEC)); -} - -const char WindDynamicsLookupTable::debugName[] = "WindDynamicsLookupTable"; -const char* WindDynamicsLookupTable::debugString() -{ - return WindDynamicsLookupTable::debugName; -} - -const BaseClassDefiner WindDynamicsLookupTable::declare() -{ - return BaseClassDefiner(WindDynamicsLookupTable::addConstructToMap, WindDynamicsLookupTable::addPrimitiveAssignFnsToMap, WindDynamicsLookupTable::addClassAssignFnsToMap, WindDynamicsLookupTable::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/WindDynamicsLookupTable.hpp b/CGMES_2.4.13_18DEC2013/WindDynamicsLookupTable.hpp deleted file mode 100644 index a2de32ef2..000000000 --- a/CGMES_2.4.13_18DEC2013/WindDynamicsLookupTable.hpp +++ /dev/null @@ -1,53 +0,0 @@ -#ifndef WindDynamicsLookupTable_H -#define WindDynamicsLookupTable_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Simple_Float.hpp" -#include "WindLookupTableFunctionKind.hpp" -#include "Integer.hpp" - -namespace CIMPP { - - -class WindContCurrLimIEC; -class WindContPType3IEC; -class WindContRotorRIEC; -class WindPlantFreqPcontrolIEC; - /* - The class models a look up table for the purpose of wind standard models. - */ - class WindDynamicsLookupTable: public IdentifiedObject - { - - public: - CIMPP::WindContCurrLimIEC* WindContCurrLimIEC; /* The wind dynamics lookup table associated with this current control limitation model. Default: 0 */ - CIMPP::WindContPType3IEC* WindContPType3IEC; /* The wind dynamics lookup table associated with this P control type 3 model. Default: 0 */ - CIMPP::WindContRotorRIEC* WindContRotorRIEC; /* The rotor resistance control model with which this wind dynamics lookup table is associated. Default: 0 */ - CIMPP::Simple_Float input; /* Input value (x) for the lookup table function. Default: nullptr */ - CIMPP::WindLookupTableFunctionKind lookupTableFunctionType; /* Type of the lookup table function. Default: 0 */ - CIMPP::Simple_Float output; /* Output value (y) for the lookup table function. Default: nullptr */ - CIMPP::Integer sequence; /* Sequence numbers of the pairs of the input (x) and the output (y) of the lookup table function. Default: 0 */ - CIMPP::WindPlantFreqPcontrolIEC* WindPlantFreqPcontrolIEC; /* The wind dynamics lookup table associated with this frequency and active power wind plant model. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - WindDynamicsLookupTable(); - virtual ~WindDynamicsLookupTable(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* WindDynamicsLookupTable_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/WindGenTurbineType1IEC.cpp b/CGMES_2.4.13_18DEC2013/WindGenTurbineType1IEC.cpp deleted file mode 100644 index 90be7036b..000000000 --- a/CGMES_2.4.13_18DEC2013/WindGenTurbineType1IEC.cpp +++ /dev/null @@ -1,54 +0,0 @@ -#include -#include "WindTurbineType1or2IEC.hpp" -#include "WindGenTurbineType1IEC.hpp" - -#include "WindAeroConstIEC.hpp" - -using namespace CIMPP; - -WindGenTurbineType1IEC::WindGenTurbineType1IEC(): WindAeroConstIEC(nullptr) {}; - -WindGenTurbineType1IEC::~WindGenTurbineType1IEC() {}; - - -bool assign_WindAeroConstIEC_WindGenTurbineType1IEC(BaseClass*, BaseClass*); -bool assign_WindGenTurbineType1IEC_WindAeroConstIEC(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(WindGenTurbineType1IEC* element = dynamic_cast(BaseClass_ptr1)) { - element->WindAeroConstIEC = dynamic_cast(BaseClass_ptr2); - if(element->WindAeroConstIEC != nullptr) - return assign_WindAeroConstIEC_WindGenTurbineType1IEC(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - -namespace CIMPP { - BaseClass* WindGenTurbineType1IEC_factory() { - return new WindGenTurbineType1IEC; - } -} - -void WindGenTurbineType1IEC::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:WindGenTurbineType1IEC"), &WindGenTurbineType1IEC_factory)); -} - -void WindGenTurbineType1IEC::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void WindGenTurbineType1IEC::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:WindGenTurbineType1IEC.WindAeroConstIEC"), &assign_WindGenTurbineType1IEC_WindAeroConstIEC)); -} - -const char WindGenTurbineType1IEC::debugName[] = "WindGenTurbineType1IEC"; -const char* WindGenTurbineType1IEC::debugString() -{ - return WindGenTurbineType1IEC::debugName; -} - -const BaseClassDefiner WindGenTurbineType1IEC::declare() -{ - return BaseClassDefiner(WindGenTurbineType1IEC::addConstructToMap, WindGenTurbineType1IEC::addPrimitiveAssignFnsToMap, WindGenTurbineType1IEC::addClassAssignFnsToMap, WindGenTurbineType1IEC::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/WindGenTurbineType1IEC.hpp b/CGMES_2.4.13_18DEC2013/WindGenTurbineType1IEC.hpp deleted file mode 100644 index b1460e321..000000000 --- a/CGMES_2.4.13_18DEC2013/WindGenTurbineType1IEC.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef WindGenTurbineType1IEC_H -#define WindGenTurbineType1IEC_H - -#include "WindTurbineType1or2IEC.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class WindAeroConstIEC; - /* - Wind turbine IEC Type 1. Reference: IEC Standard 61400-27-1, section 6.5.2. - */ - class WindGenTurbineType1IEC: public WindTurbineType1or2IEC - { - - public: - CIMPP::WindAeroConstIEC* WindAeroConstIEC; /* Wind aerodynamic model associated with this wind turbine type 1 model. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - WindGenTurbineType1IEC(); - virtual ~WindGenTurbineType1IEC(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* WindGenTurbineType1IEC_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/WindGenTurbineType2IEC.cpp b/CGMES_2.4.13_18DEC2013/WindGenTurbineType2IEC.cpp deleted file mode 100644 index 4bdcadf22..000000000 --- a/CGMES_2.4.13_18DEC2013/WindGenTurbineType2IEC.cpp +++ /dev/null @@ -1,67 +0,0 @@ -#include -#include "WindTurbineType1or2IEC.hpp" -#include "WindGenTurbineType2IEC.hpp" - -#include "WindContRotorRIEC.hpp" -#include "WindPitchContEmulIEC.hpp" - -using namespace CIMPP; - -WindGenTurbineType2IEC::WindGenTurbineType2IEC(): WindContRotorRIEC(nullptr), WindPitchContEmulIEC(nullptr) {}; - -WindGenTurbineType2IEC::~WindGenTurbineType2IEC() {}; - - -bool assign_WindContRotorRIEC_WindGenTurbineType2IEC(BaseClass*, BaseClass*); -bool assign_WindGenTurbineType2IEC_WindContRotorRIEC(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(WindGenTurbineType2IEC* element = dynamic_cast(BaseClass_ptr1)) { - element->WindContRotorRIEC = dynamic_cast(BaseClass_ptr2); - if(element->WindContRotorRIEC != nullptr) - return assign_WindContRotorRIEC_WindGenTurbineType2IEC(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_WindPitchContEmulIEC_WindGenTurbineType2IEC(BaseClass*, BaseClass*); -bool assign_WindGenTurbineType2IEC_WindPitchContEmulIEC(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(WindGenTurbineType2IEC* element = dynamic_cast(BaseClass_ptr1)) { - element->WindPitchContEmulIEC = dynamic_cast(BaseClass_ptr2); - if(element->WindPitchContEmulIEC != nullptr) - return assign_WindPitchContEmulIEC_WindGenTurbineType2IEC(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - - -namespace CIMPP { - BaseClass* WindGenTurbineType2IEC_factory() { - return new WindGenTurbineType2IEC; - } -} - -void WindGenTurbineType2IEC::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:WindGenTurbineType2IEC"), &WindGenTurbineType2IEC_factory)); -} - -void WindGenTurbineType2IEC::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void WindGenTurbineType2IEC::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:WindGenTurbineType2IEC.WindContRotorRIEC"), &assign_WindGenTurbineType2IEC_WindContRotorRIEC)); - assign_map.insert(std::make_pair(std::string("cim:WindGenTurbineType2IEC.WindPitchContEmulIEC"), &assign_WindGenTurbineType2IEC_WindPitchContEmulIEC)); -} - -const char WindGenTurbineType2IEC::debugName[] = "WindGenTurbineType2IEC"; -const char* WindGenTurbineType2IEC::debugString() -{ - return WindGenTurbineType2IEC::debugName; -} - -const BaseClassDefiner WindGenTurbineType2IEC::declare() -{ - return BaseClassDefiner(WindGenTurbineType2IEC::addConstructToMap, WindGenTurbineType2IEC::addPrimitiveAssignFnsToMap, WindGenTurbineType2IEC::addClassAssignFnsToMap, WindGenTurbineType2IEC::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/WindGenTurbineType2IEC.hpp b/CGMES_2.4.13_18DEC2013/WindGenTurbineType2IEC.hpp deleted file mode 100644 index 89485480a..000000000 --- a/CGMES_2.4.13_18DEC2013/WindGenTurbineType2IEC.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef WindGenTurbineType2IEC_H -#define WindGenTurbineType2IEC_H - -#include "WindTurbineType1or2IEC.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class WindContRotorRIEC; -class WindPitchContEmulIEC; - /* - Wind turbine IEC Type 2. Reference: IEC Standard 61400-27-1, section 6.5.3. - */ - class WindGenTurbineType2IEC: public WindTurbineType1or2IEC - { - - public: - CIMPP::WindContRotorRIEC* WindContRotorRIEC; /* Wind control rotor resistance model associated with wind turbine type 2 model. Default: 0 */ - CIMPP::WindPitchContEmulIEC* WindPitchContEmulIEC; /* Pitch control emulator model associated with this wind turbine type 2 model. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - WindGenTurbineType2IEC(); - virtual ~WindGenTurbineType2IEC(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* WindGenTurbineType2IEC_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/WindGenTurbineType3IEC.cpp b/CGMES_2.4.13_18DEC2013/WindGenTurbineType3IEC.cpp deleted file mode 100644 index bf8cee136..000000000 --- a/CGMES_2.4.13_18DEC2013/WindGenTurbineType3IEC.cpp +++ /dev/null @@ -1,123 +0,0 @@ -#include -#include "WindTurbineType3or4IEC.hpp" -#include "WindGenTurbineType3IEC.hpp" - -#include "WindAeroLinearIEC.hpp" -#include "WindContPitchAngleIEC.hpp" -#include "WindContPType3IEC.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "WindMechIEC.hpp" - -using namespace CIMPP; - -WindGenTurbineType3IEC::WindGenTurbineType3IEC(): WindAeroLinearIEC(nullptr), WindContPitchAngleIEC(nullptr), WindContPType3IEC(nullptr), WindMechIEC(nullptr) {}; - -WindGenTurbineType3IEC::~WindGenTurbineType3IEC() {}; - - -bool assign_WindAeroLinearIEC_WindGenTurbineType3IEC(BaseClass*, BaseClass*); -bool assign_WindGenTurbineType3IEC_WindAeroLinearIEC(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(WindGenTurbineType3IEC* element = dynamic_cast(BaseClass_ptr1)) { - element->WindAeroLinearIEC = dynamic_cast(BaseClass_ptr2); - if(element->WindAeroLinearIEC != nullptr) - return assign_WindAeroLinearIEC_WindGenTurbineType3IEC(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_WindContPitchAngleIEC_WindGenTurbineType3IEC(BaseClass*, BaseClass*); -bool assign_WindGenTurbineType3IEC_WindContPitchAngleIEC(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(WindGenTurbineType3IEC* element = dynamic_cast(BaseClass_ptr1)) { - element->WindContPitchAngleIEC = dynamic_cast(BaseClass_ptr2); - if(element->WindContPitchAngleIEC != nullptr) - return assign_WindContPitchAngleIEC_WindGenTurbineType3IEC(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_WindContPType3IEC_WindGenTurbineType3IEC(BaseClass*, BaseClass*); -bool assign_WindGenTurbineType3IEC_WindContPType3IEC(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(WindGenTurbineType3IEC* element = dynamic_cast(BaseClass_ptr1)) { - element->WindContPType3IEC = dynamic_cast(BaseClass_ptr2); - if(element->WindContPType3IEC != nullptr) - return assign_WindContPType3IEC_WindGenTurbineType3IEC(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - -bool assign_WindMechIEC_WindGenTurbineType3IEC(BaseClass*, BaseClass*); -bool assign_WindGenTurbineType3IEC_WindMechIEC(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(WindGenTurbineType3IEC* element = dynamic_cast(BaseClass_ptr1)) { - element->WindMechIEC = dynamic_cast(BaseClass_ptr2); - if(element->WindMechIEC != nullptr) - return assign_WindMechIEC_WindGenTurbineType3IEC(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - - - -bool assign_WindGenTurbineType3IEC_dipmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindGenTurbineType3IEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->dipmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindGenTurbineType3IEC_diqmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindGenTurbineType3IEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->diqmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -namespace CIMPP { - BaseClass* WindGenTurbineType3IEC_factory() { - return new WindGenTurbineType3IEC; - } -} - -void WindGenTurbineType3IEC::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:WindGenTurbineType3IEC"), &WindGenTurbineType3IEC_factory)); -} - -void WindGenTurbineType3IEC::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:WindGenTurbineType3IEC.dipmax"), &assign_WindGenTurbineType3IEC_dipmax)); - assign_map.insert(std::make_pair(std::string("cim:WindGenTurbineType3IEC.diqmax"), &assign_WindGenTurbineType3IEC_diqmax)); - } - -void WindGenTurbineType3IEC::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:WindGenTurbineType3IEC.WindAeroLinearIEC"), &assign_WindGenTurbineType3IEC_WindAeroLinearIEC)); - assign_map.insert(std::make_pair(std::string("cim:WindGenTurbineType3IEC.WindContPitchAngleIEC"), &assign_WindGenTurbineType3IEC_WindContPitchAngleIEC)); - assign_map.insert(std::make_pair(std::string("cim:WindGenTurbineType3IEC.WindContPType3IEC"), &assign_WindGenTurbineType3IEC_WindContPType3IEC)); - assign_map.insert(std::make_pair(std::string("cim:WindGenTurbineType3IEC.WindMechIEC"), &assign_WindGenTurbineType3IEC_WindMechIEC)); -} - -const char WindGenTurbineType3IEC::debugName[] = "WindGenTurbineType3IEC"; -const char* WindGenTurbineType3IEC::debugString() -{ - return WindGenTurbineType3IEC::debugName; -} - -const BaseClassDefiner WindGenTurbineType3IEC::declare() -{ - return BaseClassDefiner(WindGenTurbineType3IEC::addConstructToMap, WindGenTurbineType3IEC::addPrimitiveAssignFnsToMap, WindGenTurbineType3IEC::addClassAssignFnsToMap, WindGenTurbineType3IEC::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/WindGenTurbineType3IEC.hpp b/CGMES_2.4.13_18DEC2013/WindGenTurbineType3IEC.hpp deleted file mode 100644 index 222fca906..000000000 --- a/CGMES_2.4.13_18DEC2013/WindGenTurbineType3IEC.hpp +++ /dev/null @@ -1,49 +0,0 @@ -#ifndef WindGenTurbineType3IEC_H -#define WindGenTurbineType3IEC_H - -#include "WindTurbineType3or4IEC.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" - -namespace CIMPP { - - -class WindAeroLinearIEC; -class WindContPitchAngleIEC; -class WindContPType3IEC; -class WindMechIEC; - /* - Generator model for wind turbines of IEC type 3A and 3B. - */ - class WindGenTurbineType3IEC: public WindTurbineType3or4IEC - { - - public: - CIMPP::WindAeroLinearIEC* WindAeroLinearIEC; /* Wind aerodynamic model associated with this wind generator type 3 model. Default: 0 */ - CIMPP::WindContPitchAngleIEC* WindContPitchAngleIEC; /* Wind control pitch angle model associated with this wind turbine type 3. Default: 0 */ - CIMPP::WindContPType3IEC* WindContPType3IEC; /* Wind control P type 3 model associated with this wind turbine type 3 model. Default: 0 */ - CIMPP::PU dipmax; /* Maximum active current ramp rate (di). It is project dependent parameter. Default: nullptr */ - CIMPP::PU diqmax; /* Maximum reactive current ramp rate (di). It is project dependent parameter. Default: nullptr */ - CIMPP::WindMechIEC* WindMechIEC; /* Wind mechanical model associated with this wind turbine Type 3 model. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - WindGenTurbineType3IEC(); - virtual ~WindGenTurbineType3IEC(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* WindGenTurbineType3IEC_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/WindGenTurbineType3aIEC.cpp b/CGMES_2.4.13_18DEC2013/WindGenTurbineType3aIEC.cpp deleted file mode 100644 index 08ea8a858..000000000 --- a/CGMES_2.4.13_18DEC2013/WindGenTurbineType3aIEC.cpp +++ /dev/null @@ -1,86 +0,0 @@ -#include -#include "WindGenTurbineType3IEC.hpp" -#include "WindGenTurbineType3aIEC.hpp" - -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "Seconds.hpp" - -using namespace CIMPP; - -WindGenTurbineType3aIEC::WindGenTurbineType3aIEC() {}; - -WindGenTurbineType3aIEC::~WindGenTurbineType3aIEC() {}; - - - - - - -bool assign_WindGenTurbineType3aIEC_kpc(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindGenTurbineType3aIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kpc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindGenTurbineType3aIEC_xs(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindGenTurbineType3aIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->xs; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindGenTurbineType3aIEC_tic(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindGenTurbineType3aIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tic; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* WindGenTurbineType3aIEC_factory() { - return new WindGenTurbineType3aIEC; - } -} - -void WindGenTurbineType3aIEC::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:WindGenTurbineType3aIEC"), &WindGenTurbineType3aIEC_factory)); -} - -void WindGenTurbineType3aIEC::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:WindGenTurbineType3aIEC.kpc"), &assign_WindGenTurbineType3aIEC_kpc)); - assign_map.insert(std::make_pair(std::string("cim:WindGenTurbineType3aIEC.xs"), &assign_WindGenTurbineType3aIEC_xs)); - assign_map.insert(std::make_pair(std::string("cim:WindGenTurbineType3aIEC.tic"), &assign_WindGenTurbineType3aIEC_tic)); -} - -void WindGenTurbineType3aIEC::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char WindGenTurbineType3aIEC::debugName[] = "WindGenTurbineType3aIEC"; -const char* WindGenTurbineType3aIEC::debugString() -{ - return WindGenTurbineType3aIEC::debugName; -} - -const BaseClassDefiner WindGenTurbineType3aIEC::declare() -{ - return BaseClassDefiner(WindGenTurbineType3aIEC::addConstructToMap, WindGenTurbineType3aIEC::addPrimitiveAssignFnsToMap, WindGenTurbineType3aIEC::addClassAssignFnsToMap, WindGenTurbineType3aIEC::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/WindGenTurbineType3aIEC.hpp b/CGMES_2.4.13_18DEC2013/WindGenTurbineType3aIEC.hpp deleted file mode 100644 index d48b002c6..000000000 --- a/CGMES_2.4.13_18DEC2013/WindGenTurbineType3aIEC.hpp +++ /dev/null @@ -1,44 +0,0 @@ -#ifndef WindGenTurbineType3aIEC_H -#define WindGenTurbineType3aIEC_H - -#include "WindGenTurbineType3IEC.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "Seconds.hpp" - -namespace CIMPP { - - - /* - IEC Type 3A generator set model. Reference: IEC Standard 61400-27-1 Section 6.6.3.2. - */ - class WindGenTurbineType3aIEC: public WindGenTurbineType3IEC - { - - public: - CIMPP::Simple_Float kpc; /* Current PI controller proportional gain (K). It is type dependent parameter. Default: nullptr */ - CIMPP::PU xs; /* Electromagnetic transient reactance (x). It is type dependent parameter. Default: nullptr */ - CIMPP::Seconds tic; /* Current PI controller integration time constant (T). It is type dependent parameter. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - WindGenTurbineType3aIEC(); - virtual ~WindGenTurbineType3aIEC(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* WindGenTurbineType3aIEC_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/WindGenTurbineType3bIEC.cpp b/CGMES_2.4.13_18DEC2013/WindGenTurbineType3bIEC.cpp deleted file mode 100644 index 9421974c8..000000000 --- a/CGMES_2.4.13_18DEC2013/WindGenTurbineType3bIEC.cpp +++ /dev/null @@ -1,116 +0,0 @@ -#include -#include "WindGenTurbineType3IEC.hpp" -#include "WindGenTurbineType3bIEC.hpp" - -#include "Simple_Float.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Boolean.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -WindGenTurbineType3bIEC::WindGenTurbineType3bIEC() {}; - -WindGenTurbineType3bIEC::~WindGenTurbineType3bIEC() {}; - - - - - - - - -bool assign_WindGenTurbineType3bIEC_fducw(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindGenTurbineType3bIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->fducw; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindGenTurbineType3bIEC_tg(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindGenTurbineType3bIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tg; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindGenTurbineType3bIEC_two(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindGenTurbineType3bIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->two; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindGenTurbineType3bIEC_mwtcwp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindGenTurbineType3bIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->mwtcwp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindGenTurbineType3bIEC_xs(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindGenTurbineType3bIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->xs; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* WindGenTurbineType3bIEC_factory() { - return new WindGenTurbineType3bIEC; - } -} - -void WindGenTurbineType3bIEC::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:WindGenTurbineType3bIEC"), &WindGenTurbineType3bIEC_factory)); -} - -void WindGenTurbineType3bIEC::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:WindGenTurbineType3bIEC.fducw"), &assign_WindGenTurbineType3bIEC_fducw)); - assign_map.insert(std::make_pair(std::string("cim:WindGenTurbineType3bIEC.tg"), &assign_WindGenTurbineType3bIEC_tg)); - assign_map.insert(std::make_pair(std::string("cim:WindGenTurbineType3bIEC.two"), &assign_WindGenTurbineType3bIEC_two)); - assign_map.insert(std::make_pair(std::string("cim:WindGenTurbineType3bIEC.mwtcwp"), &assign_WindGenTurbineType3bIEC_mwtcwp)); - assign_map.insert(std::make_pair(std::string("cim:WindGenTurbineType3bIEC.xs"), &assign_WindGenTurbineType3bIEC_xs)); -} - -void WindGenTurbineType3bIEC::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char WindGenTurbineType3bIEC::debugName[] = "WindGenTurbineType3bIEC"; -const char* WindGenTurbineType3bIEC::debugString() -{ - return WindGenTurbineType3bIEC::debugName; -} - -const BaseClassDefiner WindGenTurbineType3bIEC::declare() -{ - return BaseClassDefiner(WindGenTurbineType3bIEC::addConstructToMap, WindGenTurbineType3bIEC::addPrimitiveAssignFnsToMap, WindGenTurbineType3bIEC::addClassAssignFnsToMap, WindGenTurbineType3bIEC::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/WindGenTurbineType3bIEC.hpp b/CGMES_2.4.13_18DEC2013/WindGenTurbineType3bIEC.hpp deleted file mode 100644 index cf278976c..000000000 --- a/CGMES_2.4.13_18DEC2013/WindGenTurbineType3bIEC.hpp +++ /dev/null @@ -1,47 +0,0 @@ -#ifndef WindGenTurbineType3bIEC_H -#define WindGenTurbineType3bIEC_H - -#include "WindGenTurbineType3IEC.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Simple_Float.hpp" -#include "Seconds.hpp" -#include "Boolean.hpp" -#include "PU.hpp" - -namespace CIMPP { - - - /* - IEC Type 3B generator set model. Reference: IEC Standard 61400-27-1 Section 6.6.3.3. - */ - class WindGenTurbineType3bIEC: public WindGenTurbineType3IEC - { - - public: - CIMPP::Simple_Float fducw; /* Crowbar duration versus voltage variation look-up table (f()). It is case dependent parameter. Default: nullptr */ - CIMPP::Seconds tg; /* Current generation Time constant (). It is type dependent parameter. Default: nullptr */ - CIMPP::Seconds two; /* Time constant for crowbar washout filter (). It is case dependent parameter. Default: nullptr */ - CIMPP::Boolean mwtcwp; /* Crowbar control mode (). The parameter is case dependent parameter. Default: false */ - CIMPP::PU xs; /* Electromagnetic transient reactance (x). It is type dependent parameter. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - WindGenTurbineType3bIEC(); - virtual ~WindGenTurbineType3bIEC(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* WindGenTurbineType3bIEC_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/WindGenType4IEC.cpp b/CGMES_2.4.13_18DEC2013/WindGenType4IEC.cpp deleted file mode 100644 index caa28226c..000000000 --- a/CGMES_2.4.13_18DEC2013/WindGenType4IEC.cpp +++ /dev/null @@ -1,101 +0,0 @@ -#include -#include "WindTurbineType3or4IEC.hpp" -#include "WindGenType4IEC.hpp" - -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" - -using namespace CIMPP; - -WindGenType4IEC::WindGenType4IEC() {}; - -WindGenType4IEC::~WindGenType4IEC() {}; - - - - - - - -bool assign_WindGenType4IEC_dipmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindGenType4IEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->dipmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindGenType4IEC_diqmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindGenType4IEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->diqmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindGenType4IEC_diqmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindGenType4IEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->diqmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindGenType4IEC_tg(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindGenType4IEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tg; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* WindGenType4IEC_factory() { - return new WindGenType4IEC; - } -} - -void WindGenType4IEC::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:WindGenType4IEC"), &WindGenType4IEC_factory)); -} - -void WindGenType4IEC::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:WindGenType4IEC.dipmax"), &assign_WindGenType4IEC_dipmax)); - assign_map.insert(std::make_pair(std::string("cim:WindGenType4IEC.diqmin"), &assign_WindGenType4IEC_diqmin)); - assign_map.insert(std::make_pair(std::string("cim:WindGenType4IEC.diqmax"), &assign_WindGenType4IEC_diqmax)); - assign_map.insert(std::make_pair(std::string("cim:WindGenType4IEC.tg"), &assign_WindGenType4IEC_tg)); -} - -void WindGenType4IEC::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char WindGenType4IEC::debugName[] = "WindGenType4IEC"; -const char* WindGenType4IEC::debugString() -{ - return WindGenType4IEC::debugName; -} - -const BaseClassDefiner WindGenType4IEC::declare() -{ - return BaseClassDefiner(WindGenType4IEC::addConstructToMap, WindGenType4IEC::addPrimitiveAssignFnsToMap, WindGenType4IEC::addClassAssignFnsToMap, WindGenType4IEC::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/WindGenType4IEC.hpp b/CGMES_2.4.13_18DEC2013/WindGenType4IEC.hpp deleted file mode 100644 index 8c926e691..000000000 --- a/CGMES_2.4.13_18DEC2013/WindGenType4IEC.hpp +++ /dev/null @@ -1,44 +0,0 @@ -#ifndef WindGenType4IEC_H -#define WindGenType4IEC_H - -#include "WindTurbineType3or4IEC.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "Seconds.hpp" - -namespace CIMPP { - - - /* - IEC Type 4 generator set model. Reference: IEC Standard 61400-27-1 Section 6.6.3.4. - */ - class WindGenType4IEC: public WindTurbineType3or4IEC - { - - public: - CIMPP::PU dipmax; /* Maximum active current ramp rate (di). It is project dependent parameter. Default: nullptr */ - CIMPP::PU diqmin; /* Minimum reactive current ramp rate (d). It is case dependent parameter. Default: nullptr */ - CIMPP::PU diqmax; /* Maximum reactive current ramp rate (di). It is project dependent parameter. Default: nullptr */ - CIMPP::Seconds tg; /* Time constant (T). It is type dependent parameter. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - WindGenType4IEC(); - virtual ~WindGenType4IEC(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* WindGenType4IEC_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/WindGenUnitKind.cpp b/CGMES_2.4.13_18DEC2013/WindGenUnitKind.cpp deleted file mode 100644 index 097470d2e..000000000 --- a/CGMES_2.4.13_18DEC2013/WindGenUnitKind.cpp +++ /dev/null @@ -1,37 +0,0 @@ -#include -#include -#include "WindGenUnitKind.hpp" - -using namespace CIMPP; - -namespace CIMPP { - std::istream& operator>>(std::istream& lop, CIMPP::WindGenUnitKind& rop) - { - std::string EnumSymbol; - lop >> EnumSymbol; - - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "WindGenUnitKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "offshore") - { - rop = WindGenUnitKind::offshore; - return lop; - } - if(EnumSymbol == "onshore") - { - rop = WindGenUnitKind::onshore; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; - } -} - diff --git a/CGMES_2.4.13_18DEC2013/WindGenUnitKind.hpp b/CGMES_2.4.13_18DEC2013/WindGenUnitKind.hpp deleted file mode 100644 index a05e1b754..000000000 --- a/CGMES_2.4.13_18DEC2013/WindGenUnitKind.hpp +++ /dev/null @@ -1,21 +0,0 @@ -#ifndef WindGenUnitKind_H -#define WindGenUnitKind_H - -namespace CIMPP { - /* - Kind of wind generating unit. - */ - enum class WindGenUnitKind - { - /** - * The wind generating unit is located offshore. - */ - offshore, - /** - * The wind generating unit is located onshore. - */ - onshore, - }; - std::istream& operator>>(std::istream& lop, CIMPP::WindGenUnitKind& rop); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/WindGeneratingUnit.cpp b/CGMES_2.4.13_18DEC2013/WindGeneratingUnit.cpp deleted file mode 100644 index c3728f0bf..000000000 --- a/CGMES_2.4.13_18DEC2013/WindGeneratingUnit.cpp +++ /dev/null @@ -1,56 +0,0 @@ -#include -#include "GeneratingUnit.hpp" -#include "WindGeneratingUnit.hpp" - -#include "WindGenUnitKind.hpp" - -using namespace CIMPP; - -WindGeneratingUnit::WindGeneratingUnit() {}; - -WindGeneratingUnit::~WindGeneratingUnit() {}; - - - - -bool assign_WindGeneratingUnit_windGenUnitType(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindGeneratingUnit* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->windGenUnitType; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* WindGeneratingUnit_factory() { - return new WindGeneratingUnit; - } -} - -void WindGeneratingUnit::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:WindGeneratingUnit"), &WindGeneratingUnit_factory)); -} - -void WindGeneratingUnit::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:WindGeneratingUnit.windGenUnitType"), &assign_WindGeneratingUnit_windGenUnitType)); -} - -void WindGeneratingUnit::addClassAssignFnsToMap(std::unordered_map& assign_map) { - } - -const char WindGeneratingUnit::debugName[] = "WindGeneratingUnit"; -const char* WindGeneratingUnit::debugString() -{ - return WindGeneratingUnit::debugName; -} - -const BaseClassDefiner WindGeneratingUnit::declare() -{ - return BaseClassDefiner(WindGeneratingUnit::addConstructToMap, WindGeneratingUnit::addPrimitiveAssignFnsToMap, WindGeneratingUnit::addClassAssignFnsToMap, WindGeneratingUnit::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/WindGeneratingUnit.hpp b/CGMES_2.4.13_18DEC2013/WindGeneratingUnit.hpp deleted file mode 100644 index caa29762f..000000000 --- a/CGMES_2.4.13_18DEC2013/WindGeneratingUnit.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef WindGeneratingUnit_H -#define WindGeneratingUnit_H - -#include "GeneratingUnit.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "WindGenUnitKind.hpp" - -namespace CIMPP { - - - /* - A wind driven generating unit. May be used to represent a single turbine or an aggregation. - */ - class WindGeneratingUnit: public GeneratingUnit - { - - public: - CIMPP::WindGenUnitKind windGenUnitType; /* The kind of wind generating unit Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - WindGeneratingUnit(); - virtual ~WindGeneratingUnit(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* WindGeneratingUnit_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/WindLVRTQcontrolModesKind.cpp b/CGMES_2.4.13_18DEC2013/WindLVRTQcontrolModesKind.cpp deleted file mode 100644 index eb9d181ef..000000000 --- a/CGMES_2.4.13_18DEC2013/WindLVRTQcontrolModesKind.cpp +++ /dev/null @@ -1,42 +0,0 @@ -#include -#include -#include "WindLVRTQcontrolModesKind.hpp" - -using namespace CIMPP; - -namespace CIMPP { - std::istream& operator>>(std::istream& lop, CIMPP::WindLVRTQcontrolModesKind& rop) - { - std::string EnumSymbol; - lop >> EnumSymbol; - - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "WindLVRTQcontrolModesKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "mode1") - { - rop = WindLVRTQcontrolModesKind::mode1; - return lop; - } - if(EnumSymbol == "mode2") - { - rop = WindLVRTQcontrolModesKind::mode2; - return lop; - } - if(EnumSymbol == "mode3") - { - rop = WindLVRTQcontrolModesKind::mode3; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; - } -} - diff --git a/CGMES_2.4.13_18DEC2013/WindLVRTQcontrolModesKind.hpp b/CGMES_2.4.13_18DEC2013/WindLVRTQcontrolModesKind.hpp deleted file mode 100644 index 59fb40515..000000000 --- a/CGMES_2.4.13_18DEC2013/WindLVRTQcontrolModesKind.hpp +++ /dev/null @@ -1,25 +0,0 @@ -#ifndef WindLVRTQcontrolModesKind_H -#define WindLVRTQcontrolModesKind_H - -namespace CIMPP { - /* - LVRT Q control modes . - */ - enum class WindLVRTQcontrolModesKind - { - /** - * Voltage dependent reactive current injection (). - */ - mode1, - /** - * Reactive current injection controlled as the pre-fault value plus an additional voltage dependent reactive current injection (). - */ - mode2, - /** - * Reactive current injection controlled as the pre-fault value plus an additional voltage dependent reactive current injection during fault, and as the pre-fault value plus an additional constant reactive current injection post fault (). - */ - mode3, - }; - std::istream& operator>>(std::istream& lop, CIMPP::WindLVRTQcontrolModesKind& rop); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/WindLookupTableFunctionKind.cpp b/CGMES_2.4.13_18DEC2013/WindLookupTableFunctionKind.cpp deleted file mode 100644 index 3ccd6b9ee..000000000 --- a/CGMES_2.4.13_18DEC2013/WindLookupTableFunctionKind.cpp +++ /dev/null @@ -1,52 +0,0 @@ -#include -#include -#include "WindLookupTableFunctionKind.hpp" - -using namespace CIMPP; - -namespace CIMPP { - std::istream& operator>>(std::istream& lop, CIMPP::WindLookupTableFunctionKind& rop) - { - std::string EnumSymbol; - lop >> EnumSymbol; - - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "WindLookupTableFunctionKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "fpslip") - { - rop = WindLookupTableFunctionKind::fpslip; - return lop; - } - if(EnumSymbol == "fpomega") - { - rop = WindLookupTableFunctionKind::fpomega; - return lop; - } - if(EnumSymbol == "ipvdl") - { - rop = WindLookupTableFunctionKind::ipvdl; - return lop; - } - if(EnumSymbol == "iqvdl") - { - rop = WindLookupTableFunctionKind::iqvdl; - return lop; - } - if(EnumSymbol == "fdpf") - { - rop = WindLookupTableFunctionKind::fdpf; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; - } -} - diff --git a/CGMES_2.4.13_18DEC2013/WindLookupTableFunctionKind.hpp b/CGMES_2.4.13_18DEC2013/WindLookupTableFunctionKind.hpp deleted file mode 100644 index 415886431..000000000 --- a/CGMES_2.4.13_18DEC2013/WindLookupTableFunctionKind.hpp +++ /dev/null @@ -1,33 +0,0 @@ -#ifndef WindLookupTableFunctionKind_H -#define WindLookupTableFunctionKind_H - -namespace CIMPP { - /* - Function of the lookup table. - */ - enum class WindLookupTableFunctionKind - { - /** - * Power versus slip lookup table (f()). It is used for rotor resistance control model, IEC 61400-27-1, section 6.6.5.2. - */ - fpslip, - /** - * Power vs. speed lookup table (f()). It is used for P control model type 3, IEC 61400-27-1, section 6.6.5.3. - */ - fpomega, - /** - * Lookup table for voltage dependency of active current limits (i()). It is used for current limitation model, IEC 61400-27-1, section 6.6.5.7. - */ - ipvdl, - /** - * Lookup table for voltage dependency of reactive current limits (i()). It is used for current limitation model, IEC 61400-27-1, section 6.6.5.7. - */ - iqvdl, - /** - * Power vs. frequency lookup table (()). It is used for wind power plant frequency and active power control model, IEC 61400-27-1, Annex E. - */ - fdpf, - }; - std::istream& operator>>(std::istream& lop, CIMPP::WindLookupTableFunctionKind& rop); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/WindMechIEC.cpp b/CGMES_2.4.13_18DEC2013/WindMechIEC.cpp deleted file mode 100644 index 8340c48f5..000000000 --- a/CGMES_2.4.13_18DEC2013/WindMechIEC.cpp +++ /dev/null @@ -1,137 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "WindMechIEC.hpp" - -#include "WindGenTurbineType3IEC.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "WindTurbineType4bIEC.hpp" -#include "WindTurbineType1or2IEC.hpp" - -using namespace CIMPP; - -WindMechIEC::WindMechIEC(): WindGenTurbineType3IEC(nullptr), WindTurbineType4bIEC(nullptr), WindTurbineType1or2IEC(nullptr) {}; - -WindMechIEC::~WindMechIEC() {}; - - -bool assign_WindMechIEC_WindGenTurbineType3IEC(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(WindMechIEC* element = dynamic_cast(BaseClass_ptr1)) { - element->WindGenTurbineType3IEC = dynamic_cast(BaseClass_ptr2); - if(element->WindGenTurbineType3IEC != nullptr) - return true; - } - return false; -} - - - - - -bool assign_WindMechIEC_WindTurbineType4bIEC(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(WindMechIEC* element = dynamic_cast(BaseClass_ptr1)) { - element->WindTurbineType4bIEC = dynamic_cast(BaseClass_ptr2); - if(element->WindTurbineType4bIEC != nullptr) - return true; - } - return false; -} - -bool assign_WindMechIEC_WindTurbineType1or2IEC(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(WindMechIEC* element = dynamic_cast(BaseClass_ptr1)) { - element->WindTurbineType1or2IEC = dynamic_cast(BaseClass_ptr2); - if(element->WindTurbineType1or2IEC != nullptr) - return true; - } - return false; -} - - - -bool assign_WindMechIEC_cdrt(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindMechIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->cdrt; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindMechIEC_hgen(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindMechIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->hgen; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindMechIEC_hwtr(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindMechIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->hwtr; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindMechIEC_kdrt(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindMechIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kdrt; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - - -namespace CIMPP { - BaseClass* WindMechIEC_factory() { - return new WindMechIEC; - } -} - -void WindMechIEC::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:WindMechIEC"), &WindMechIEC_factory)); -} - -void WindMechIEC::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:WindMechIEC.cdrt"), &assign_WindMechIEC_cdrt)); - assign_map.insert(std::make_pair(std::string("cim:WindMechIEC.hgen"), &assign_WindMechIEC_hgen)); - assign_map.insert(std::make_pair(std::string("cim:WindMechIEC.hwtr"), &assign_WindMechIEC_hwtr)); - assign_map.insert(std::make_pair(std::string("cim:WindMechIEC.kdrt"), &assign_WindMechIEC_kdrt)); - } - -void WindMechIEC::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:WindMechIEC.WindGenTurbineType3IEC"), &assign_WindMechIEC_WindGenTurbineType3IEC)); - assign_map.insert(std::make_pair(std::string("cim:WindMechIEC.WindTurbineType4bIEC"), &assign_WindMechIEC_WindTurbineType4bIEC)); - assign_map.insert(std::make_pair(std::string("cim:WindMechIEC.WindTurbineType1or2IEC"), &assign_WindMechIEC_WindTurbineType1or2IEC)); -} - -const char WindMechIEC::debugName[] = "WindMechIEC"; -const char* WindMechIEC::debugString() -{ - return WindMechIEC::debugName; -} - -const BaseClassDefiner WindMechIEC::declare() -{ - return BaseClassDefiner(WindMechIEC::addConstructToMap, WindMechIEC::addPrimitiveAssignFnsToMap, WindMechIEC::addClassAssignFnsToMap, WindMechIEC::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/WindMechIEC.hpp b/CGMES_2.4.13_18DEC2013/WindMechIEC.hpp deleted file mode 100644 index d64412485..000000000 --- a/CGMES_2.4.13_18DEC2013/WindMechIEC.hpp +++ /dev/null @@ -1,50 +0,0 @@ -#ifndef WindMechIEC_H -#define WindMechIEC_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "Seconds.hpp" - -namespace CIMPP { - - -class WindGenTurbineType3IEC; -class WindTurbineType4bIEC; -class WindTurbineType1or2IEC; - /* - Two mass model. Reference: IEC Standard 61400-27-1 Section 6.6.2.1. - */ - class WindMechIEC: public IdentifiedObject - { - - public: - CIMPP::WindGenTurbineType3IEC* WindGenTurbineType3IEC; /* Wind turbine Type 3 model with which this wind mechanical model is associated. Default: 0 */ - CIMPP::PU cdrt; /* Drive train damping (. It is type dependent parameter. Default: nullptr */ - CIMPP::Seconds hgen; /* Inertia constant of generator (). It is type dependent parameter. Default: nullptr */ - CIMPP::Seconds hwtr; /* Inertia constant of wind turbine rotor (). It is type dependent parameter. Default: nullptr */ - CIMPP::PU kdrt; /* Drive train stiffness (). It is type dependent parameter. Default: nullptr */ - CIMPP::WindTurbineType4bIEC* WindTurbineType4bIEC; /* Wind turbine type 4B model with which this wind mechanical model is associated. Default: 0 */ - CIMPP::WindTurbineType1or2IEC* WindTurbineType1or2IEC; /* Wind generator type 1 or 2 model with which this wind mechanical model is associated. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - WindMechIEC(); - virtual ~WindMechIEC(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* WindMechIEC_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/WindPitchContEmulIEC.cpp b/CGMES_2.4.13_18DEC2013/WindPitchContEmulIEC.cpp deleted file mode 100644 index 333eb56b9..000000000 --- a/CGMES_2.4.13_18DEC2013/WindPitchContEmulIEC.cpp +++ /dev/null @@ -1,203 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "WindPitchContEmulIEC.hpp" - -#include "WindGenTurbineType2IEC.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" - -using namespace CIMPP; - -WindPitchContEmulIEC::WindPitchContEmulIEC(): WindGenTurbineType2IEC(nullptr) {}; - -WindPitchContEmulIEC::~WindPitchContEmulIEC() {}; - - -bool assign_WindPitchContEmulIEC_WindGenTurbineType2IEC(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(WindPitchContEmulIEC* element = dynamic_cast(BaseClass_ptr1)) { - element->WindGenTurbineType2IEC = dynamic_cast(BaseClass_ptr2); - if(element->WindGenTurbineType2IEC != nullptr) - return true; - } - return false; -} - - - - - - - - - - - - - -bool assign_WindPitchContEmulIEC_kdroop(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindPitchContEmulIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kdroop; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindPitchContEmulIEC_kipce(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindPitchContEmulIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kipce; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindPitchContEmulIEC_komegaaero(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindPitchContEmulIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->komegaaero; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindPitchContEmulIEC_kppce(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindPitchContEmulIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kppce; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindPitchContEmulIEC_omegaref(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindPitchContEmulIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->omegaref; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindPitchContEmulIEC_pimax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindPitchContEmulIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pimax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindPitchContEmulIEC_pimin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindPitchContEmulIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->pimin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindPitchContEmulIEC_t1(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindPitchContEmulIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindPitchContEmulIEC_t2(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindPitchContEmulIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->t2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindPitchContEmulIEC_tpe(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindPitchContEmulIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tpe; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* WindPitchContEmulIEC_factory() { - return new WindPitchContEmulIEC; - } -} - -void WindPitchContEmulIEC::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:WindPitchContEmulIEC"), &WindPitchContEmulIEC_factory)); -} - -void WindPitchContEmulIEC::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:WindPitchContEmulIEC.kdroop"), &assign_WindPitchContEmulIEC_kdroop)); - assign_map.insert(std::make_pair(std::string("cim:WindPitchContEmulIEC.kipce"), &assign_WindPitchContEmulIEC_kipce)); - assign_map.insert(std::make_pair(std::string("cim:WindPitchContEmulIEC.komegaaero"), &assign_WindPitchContEmulIEC_komegaaero)); - assign_map.insert(std::make_pair(std::string("cim:WindPitchContEmulIEC.kppce"), &assign_WindPitchContEmulIEC_kppce)); - assign_map.insert(std::make_pair(std::string("cim:WindPitchContEmulIEC.omegaref"), &assign_WindPitchContEmulIEC_omegaref)); - assign_map.insert(std::make_pair(std::string("cim:WindPitchContEmulIEC.pimax"), &assign_WindPitchContEmulIEC_pimax)); - assign_map.insert(std::make_pair(std::string("cim:WindPitchContEmulIEC.pimin"), &assign_WindPitchContEmulIEC_pimin)); - assign_map.insert(std::make_pair(std::string("cim:WindPitchContEmulIEC.t1"), &assign_WindPitchContEmulIEC_t1)); - assign_map.insert(std::make_pair(std::string("cim:WindPitchContEmulIEC.t2"), &assign_WindPitchContEmulIEC_t2)); - assign_map.insert(std::make_pair(std::string("cim:WindPitchContEmulIEC.tpe"), &assign_WindPitchContEmulIEC_tpe)); -} - -void WindPitchContEmulIEC::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:WindPitchContEmulIEC.WindGenTurbineType2IEC"), &assign_WindPitchContEmulIEC_WindGenTurbineType2IEC)); - } - -const char WindPitchContEmulIEC::debugName[] = "WindPitchContEmulIEC"; -const char* WindPitchContEmulIEC::debugString() -{ - return WindPitchContEmulIEC::debugName; -} - -const BaseClassDefiner WindPitchContEmulIEC::declare() -{ - return BaseClassDefiner(WindPitchContEmulIEC::addConstructToMap, WindPitchContEmulIEC::addPrimitiveAssignFnsToMap, WindPitchContEmulIEC::addClassAssignFnsToMap, WindPitchContEmulIEC::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/WindPitchContEmulIEC.hpp b/CGMES_2.4.13_18DEC2013/WindPitchContEmulIEC.hpp deleted file mode 100644 index aa4b94b58..000000000 --- a/CGMES_2.4.13_18DEC2013/WindPitchContEmulIEC.hpp +++ /dev/null @@ -1,53 +0,0 @@ -#ifndef WindPitchContEmulIEC_H -#define WindPitchContEmulIEC_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "Seconds.hpp" - -namespace CIMPP { - - -class WindGenTurbineType2IEC; - /* - Pitch control emulator model. Reference: IEC Standard 61400-27-1 Section 6.6.5.1. - */ - class WindPitchContEmulIEC: public IdentifiedObject - { - - public: - CIMPP::WindGenTurbineType2IEC* WindGenTurbineType2IEC; /* Wind turbine type 2 model with which this Pitch control emulator model is associated. Default: 0 */ - CIMPP::Simple_Float kdroop; /* Power error gain (). It is case dependent parameter. Default: nullptr */ - CIMPP::Simple_Float kipce; /* Pitch control emulator integral constant (). It is type dependent parameter. Default: nullptr */ - CIMPP::PU komegaaero; /* Aerodynamic power change vs. omegachange (). It is case dependent parameter. Default: nullptr */ - CIMPP::Simple_Float kppce; /* Pitch control emulator proportional constant (). It is type dependent parameter. Default: nullptr */ - CIMPP::PU omegaref; /* Rotor speed in initial steady state (omega). It is case dependent parameter. Default: nullptr */ - CIMPP::PU pimax; /* Maximum steady state power (). It is case dependent parameter. Default: nullptr */ - CIMPP::PU pimin; /* Minimum steady state power (). It is case dependent parameter. Default: nullptr */ - CIMPP::Seconds t1; /* First time constant in pitch control lag (). It is type dependent parameter. Default: nullptr */ - CIMPP::Seconds t2; /* Second time constant in pitch control lag (). It is type dependent parameter. Default: nullptr */ - CIMPP::Seconds tpe; /* Time constant in generator air gap power lag (). It is type dependent parameter. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - WindPitchContEmulIEC(); - virtual ~WindPitchContEmulIEC(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* WindPitchContEmulIEC_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/WindPlantDynamics.cpp b/CGMES_2.4.13_18DEC2013/WindPlantDynamics.cpp deleted file mode 100644 index dc3d72c03..000000000 --- a/CGMES_2.4.13_18DEC2013/WindPlantDynamics.cpp +++ /dev/null @@ -1,67 +0,0 @@ -#include -#include "DynamicsFunctionBlock.hpp" -#include "WindPlantDynamics.hpp" - -#include "RemoteInputSignal.hpp" -#include "WindTurbineType3or4Dynamics.hpp" - -using namespace CIMPP; - -WindPlantDynamics::WindPlantDynamics(): RemoteInputSignal(nullptr) {}; - -WindPlantDynamics::~WindPlantDynamics() {}; - - -bool assign_RemoteInputSignal_WindPlantDynamics(BaseClass*, BaseClass*); -bool assign_WindPlantDynamics_RemoteInputSignal(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(WindPlantDynamics* element = dynamic_cast(BaseClass_ptr1)) { - element->RemoteInputSignal = dynamic_cast(BaseClass_ptr2); - if(element->RemoteInputSignal != nullptr) - return assign_RemoteInputSignal_WindPlantDynamics(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_WindPlantDynamics_WindTurbineType3or4Dynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(WindPlantDynamics* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->WindTurbineType3or4Dynamics.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - - - -namespace CIMPP { - BaseClass* WindPlantDynamics_factory() { - return new WindPlantDynamics; - } -} - -void WindPlantDynamics::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:WindPlantDynamics"), &WindPlantDynamics_factory)); -} - -void WindPlantDynamics::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void WindPlantDynamics::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:WindPlantDynamics.RemoteInputSignal"), &assign_WindPlantDynamics_RemoteInputSignal)); - assign_map.insert(std::make_pair(std::string("cim:WindPlantDynamics.WindTurbineType3or4Dynamics"), &assign_WindPlantDynamics_WindTurbineType3or4Dynamics)); -} - -const char WindPlantDynamics::debugName[] = "WindPlantDynamics"; -const char* WindPlantDynamics::debugString() -{ - return WindPlantDynamics::debugName; -} - -const BaseClassDefiner WindPlantDynamics::declare() -{ - return BaseClassDefiner(WindPlantDynamics::addConstructToMap, WindPlantDynamics::addPrimitiveAssignFnsToMap, WindPlantDynamics::addClassAssignFnsToMap, WindPlantDynamics::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/WindPlantDynamics.hpp b/CGMES_2.4.13_18DEC2013/WindPlantDynamics.hpp deleted file mode 100644 index c8106fb45..000000000 --- a/CGMES_2.4.13_18DEC2013/WindPlantDynamics.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef WindPlantDynamics_H -#define WindPlantDynamics_H - -#include "DynamicsFunctionBlock.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class RemoteInputSignal; -class WindTurbineType3or4Dynamics; - /* - Parent class supporting relationships to wind turbines Type 3 and 4 and wind plant IEC and user defined wind plants including their control models. - */ - class WindPlantDynamics: public DynamicsFunctionBlock - { - - public: - CIMPP::RemoteInputSignal* RemoteInputSignal; /* The wind plant using the remote signal. Default: 0 */ - std::list WindTurbineType3or4Dynamics; /* The wind turbine type 3 or 4 associated with this wind plant. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - WindPlantDynamics(); - virtual ~WindPlantDynamics(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* WindPlantDynamics_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/WindPlantFreqPcontrolIEC.cpp b/CGMES_2.4.13_18DEC2013/WindPlantFreqPcontrolIEC.cpp deleted file mode 100644 index acc30e152..000000000 --- a/CGMES_2.4.13_18DEC2013/WindPlantFreqPcontrolIEC.cpp +++ /dev/null @@ -1,216 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "WindPlantFreqPcontrolIEC.hpp" - -#include "WindDynamicsLookupTable.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "WindPlantIEC.hpp" - -using namespace CIMPP; - -WindPlantFreqPcontrolIEC::WindPlantFreqPcontrolIEC(): WindPlantIEC(nullptr) {}; - -WindPlantFreqPcontrolIEC::~WindPlantFreqPcontrolIEC() {}; - - -bool assign_WindPlantFreqPcontrolIEC_WindDynamicsLookupTable(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(WindPlantFreqPcontrolIEC* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->WindDynamicsLookupTable.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - - - - - - - - - - -bool assign_WindPlantFreqPcontrolIEC_WindPlantIEC(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(WindPlantFreqPcontrolIEC* element = dynamic_cast(BaseClass_ptr1)) { - element->WindPlantIEC = dynamic_cast(BaseClass_ptr2); - if(element->WindPlantIEC != nullptr) - return true; - } - return false; -} - - - -bool assign_WindPlantFreqPcontrolIEC_dprefmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindPlantFreqPcontrolIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->dprefmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindPlantFreqPcontrolIEC_dprefmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindPlantFreqPcontrolIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->dprefmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindPlantFreqPcontrolIEC_kiwpp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindPlantFreqPcontrolIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kiwpp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindPlantFreqPcontrolIEC_kpwpp(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindPlantFreqPcontrolIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kpwpp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindPlantFreqPcontrolIEC_prefmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindPlantFreqPcontrolIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->prefmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindPlantFreqPcontrolIEC_prefmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindPlantFreqPcontrolIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->prefmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindPlantFreqPcontrolIEC_tpft(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindPlantFreqPcontrolIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tpft; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindPlantFreqPcontrolIEC_tpfv(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindPlantFreqPcontrolIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tpfv; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindPlantFreqPcontrolIEC_twpffilt(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindPlantFreqPcontrolIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->twpffilt; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindPlantFreqPcontrolIEC_twppfilt(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindPlantFreqPcontrolIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->twppfilt; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -namespace CIMPP { - BaseClass* WindPlantFreqPcontrolIEC_factory() { - return new WindPlantFreqPcontrolIEC; - } -} - -void WindPlantFreqPcontrolIEC::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:WindPlantFreqPcontrolIEC"), &WindPlantFreqPcontrolIEC_factory)); -} - -void WindPlantFreqPcontrolIEC::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:WindPlantFreqPcontrolIEC.dprefmax"), &assign_WindPlantFreqPcontrolIEC_dprefmax)); - assign_map.insert(std::make_pair(std::string("cim:WindPlantFreqPcontrolIEC.dprefmin"), &assign_WindPlantFreqPcontrolIEC_dprefmin)); - assign_map.insert(std::make_pair(std::string("cim:WindPlantFreqPcontrolIEC.kiwpp"), &assign_WindPlantFreqPcontrolIEC_kiwpp)); - assign_map.insert(std::make_pair(std::string("cim:WindPlantFreqPcontrolIEC.kpwpp"), &assign_WindPlantFreqPcontrolIEC_kpwpp)); - assign_map.insert(std::make_pair(std::string("cim:WindPlantFreqPcontrolIEC.prefmax"), &assign_WindPlantFreqPcontrolIEC_prefmax)); - assign_map.insert(std::make_pair(std::string("cim:WindPlantFreqPcontrolIEC.prefmin"), &assign_WindPlantFreqPcontrolIEC_prefmin)); - assign_map.insert(std::make_pair(std::string("cim:WindPlantFreqPcontrolIEC.tpft"), &assign_WindPlantFreqPcontrolIEC_tpft)); - assign_map.insert(std::make_pair(std::string("cim:WindPlantFreqPcontrolIEC.tpfv"), &assign_WindPlantFreqPcontrolIEC_tpfv)); - assign_map.insert(std::make_pair(std::string("cim:WindPlantFreqPcontrolIEC.twpffilt"), &assign_WindPlantFreqPcontrolIEC_twpffilt)); - assign_map.insert(std::make_pair(std::string("cim:WindPlantFreqPcontrolIEC.twppfilt"), &assign_WindPlantFreqPcontrolIEC_twppfilt)); - } - -void WindPlantFreqPcontrolIEC::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:WindPlantFreqPcontrolIEC.WindDynamicsLookupTable"), &assign_WindPlantFreqPcontrolIEC_WindDynamicsLookupTable)); - assign_map.insert(std::make_pair(std::string("cim:WindPlantFreqPcontrolIEC.WindPlantIEC"), &assign_WindPlantFreqPcontrolIEC_WindPlantIEC)); -} - -const char WindPlantFreqPcontrolIEC::debugName[] = "WindPlantFreqPcontrolIEC"; -const char* WindPlantFreqPcontrolIEC::debugString() -{ - return WindPlantFreqPcontrolIEC::debugName; -} - -const BaseClassDefiner WindPlantFreqPcontrolIEC::declare() -{ - return BaseClassDefiner(WindPlantFreqPcontrolIEC::addConstructToMap, WindPlantFreqPcontrolIEC::addPrimitiveAssignFnsToMap, WindPlantFreqPcontrolIEC::addClassAssignFnsToMap, WindPlantFreqPcontrolIEC::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/WindPlantFreqPcontrolIEC.hpp b/CGMES_2.4.13_18DEC2013/WindPlantFreqPcontrolIEC.hpp deleted file mode 100644 index a9dece8c9..000000000 --- a/CGMES_2.4.13_18DEC2013/WindPlantFreqPcontrolIEC.hpp +++ /dev/null @@ -1,55 +0,0 @@ -#ifndef WindPlantFreqPcontrolIEC_H -#define WindPlantFreqPcontrolIEC_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "Simple_Float.hpp" -#include "Seconds.hpp" - -namespace CIMPP { - - -class WindDynamicsLookupTable; -class WindPlantIEC; - /* - Frequency and active power controller model. Reference: IEC Standard 61400-27-1 Annex E. - */ - class WindPlantFreqPcontrolIEC: public IdentifiedObject - { - - public: - std::list WindDynamicsLookupTable; /* The frequency and active power wind plant control model with which this wind dynamics lookup table is associated. Default: 0 */ - CIMPP::PU dprefmax; /* Maximum ramp rate of request from the plant controller to the wind turbines (). It is project dependent parameter. Default: nullptr */ - CIMPP::PU dprefmin; /* Minimum (negative) ramp rate of request from the plant controller to the wind turbines (). It is project dependent parameter. Default: nullptr */ - CIMPP::Simple_Float kiwpp; /* Plant P controller integral gain (). It is type dependent parameter. Default: nullptr */ - CIMPP::Simple_Float kpwpp; /* Plant P controller proportional gain (). It is type dependent parameter. Default: nullptr */ - CIMPP::PU prefmax; /* Maximum request from the plant controller to the wind turbines (). It is type dependent parameter. Default: nullptr */ - CIMPP::PU prefmin; /* Minimum request from the plant controller to the wind turbines (). It is type dependent parameter. Default: nullptr */ - CIMPP::Seconds tpft; /* Lead time constant in reference value transfer function (). It is type dependent parameter. Default: nullptr */ - CIMPP::Seconds tpfv; /* Lag time constant in reference value transfer function (). It is type dependent parameter. Default: nullptr */ - CIMPP::Seconds twpffilt; /* Filter time constant for frequency measurement (). It is type dependent parameter. Default: nullptr */ - CIMPP::Seconds twppfilt; /* Filter time constant for active power measurement (). It is type dependent parameter. Default: nullptr */ - CIMPP::WindPlantIEC* WindPlantIEC; /* Wind plant model with which this wind plant frequency and active power control is associated. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - WindPlantFreqPcontrolIEC(); - virtual ~WindPlantFreqPcontrolIEC(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* WindPlantFreqPcontrolIEC_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/WindPlantIEC.cpp b/CGMES_2.4.13_18DEC2013/WindPlantIEC.cpp deleted file mode 100644 index 15cb96b46..000000000 --- a/CGMES_2.4.13_18DEC2013/WindPlantIEC.cpp +++ /dev/null @@ -1,67 +0,0 @@ -#include -#include "WindPlantDynamics.hpp" -#include "WindPlantIEC.hpp" - -#include "WindPlantFreqPcontrolIEC.hpp" -#include "WindPlantReactiveControlIEC.hpp" - -using namespace CIMPP; - -WindPlantIEC::WindPlantIEC(): WindPlantFreqPcontrolIEC(nullptr), WindPlantReactiveControlIEC(nullptr) {}; - -WindPlantIEC::~WindPlantIEC() {}; - - -bool assign_WindPlantFreqPcontrolIEC_WindPlantIEC(BaseClass*, BaseClass*); -bool assign_WindPlantIEC_WindPlantFreqPcontrolIEC(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(WindPlantIEC* element = dynamic_cast(BaseClass_ptr1)) { - element->WindPlantFreqPcontrolIEC = dynamic_cast(BaseClass_ptr2); - if(element->WindPlantFreqPcontrolIEC != nullptr) - return assign_WindPlantFreqPcontrolIEC_WindPlantIEC(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_WindPlantReactiveControlIEC_WindPlantIEC(BaseClass*, BaseClass*); -bool assign_WindPlantIEC_WindPlantReactiveControlIEC(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(WindPlantIEC* element = dynamic_cast(BaseClass_ptr1)) { - element->WindPlantReactiveControlIEC = dynamic_cast(BaseClass_ptr2); - if(element->WindPlantReactiveControlIEC != nullptr) - return assign_WindPlantReactiveControlIEC_WindPlantIEC(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - - -namespace CIMPP { - BaseClass* WindPlantIEC_factory() { - return new WindPlantIEC; - } -} - -void WindPlantIEC::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:WindPlantIEC"), &WindPlantIEC_factory)); -} - -void WindPlantIEC::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void WindPlantIEC::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:WindPlantIEC.WindPlantFreqPcontrolIEC"), &assign_WindPlantIEC_WindPlantFreqPcontrolIEC)); - assign_map.insert(std::make_pair(std::string("cim:WindPlantIEC.WindPlantReactiveControlIEC"), &assign_WindPlantIEC_WindPlantReactiveControlIEC)); -} - -const char WindPlantIEC::debugName[] = "WindPlantIEC"; -const char* WindPlantIEC::debugString() -{ - return WindPlantIEC::debugName; -} - -const BaseClassDefiner WindPlantIEC::declare() -{ - return BaseClassDefiner(WindPlantIEC::addConstructToMap, WindPlantIEC::addPrimitiveAssignFnsToMap, WindPlantIEC::addClassAssignFnsToMap, WindPlantIEC::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/WindPlantIEC.hpp b/CGMES_2.4.13_18DEC2013/WindPlantIEC.hpp deleted file mode 100644 index b72e8a539..000000000 --- a/CGMES_2.4.13_18DEC2013/WindPlantIEC.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef WindPlantIEC_H -#define WindPlantIEC_H - -#include "WindPlantDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class WindPlantFreqPcontrolIEC; -class WindPlantReactiveControlIEC; - /* - Simplified IEC type plant level model. Reference: IEC 61400-27-1, AnnexE. - */ - class WindPlantIEC: public WindPlantDynamics - { - - public: - CIMPP::WindPlantFreqPcontrolIEC* WindPlantFreqPcontrolIEC; /* Wind plant frequency and active power control model associated with this wind plant. Default: 0 */ - CIMPP::WindPlantReactiveControlIEC* WindPlantReactiveControlIEC; /* Wind plant reactive control model associated with this wind plant. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - WindPlantIEC(); - virtual ~WindPlantIEC(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* WindPlantIEC_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/WindPlantReactiveControlIEC.cpp b/CGMES_2.4.13_18DEC2013/WindPlantReactiveControlIEC.cpp deleted file mode 100644 index 2ac16c68e..000000000 --- a/CGMES_2.4.13_18DEC2013/WindPlantReactiveControlIEC.cpp +++ /dev/null @@ -1,248 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "WindPlantReactiveControlIEC.hpp" - -#include "WindPlantIEC.hpp" -#include "Simple_Float.hpp" -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "Boolean.hpp" -#include "Boolean.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "PU.hpp" - -using namespace CIMPP; - -WindPlantReactiveControlIEC::WindPlantReactiveControlIEC(): WindPlantIEC(nullptr) {}; - -WindPlantReactiveControlIEC::~WindPlantReactiveControlIEC() {}; - - -bool assign_WindPlantReactiveControlIEC_WindPlantIEC(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(WindPlantReactiveControlIEC* element = dynamic_cast(BaseClass_ptr1)) { - element->WindPlantIEC = dynamic_cast(BaseClass_ptr2); - if(element->WindPlantIEC != nullptr) - return true; - } - return false; -} - - - - - - - - - - - - - - - - -bool assign_WindPlantReactiveControlIEC_kiwpx(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindPlantReactiveControlIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kiwpx; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindPlantReactiveControlIEC_kpwpx(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindPlantReactiveControlIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kpwpx; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindPlantReactiveControlIEC_kwpqu(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindPlantReactiveControlIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->kwpqu; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindPlantReactiveControlIEC_mwppf(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindPlantReactiveControlIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->mwppf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindPlantReactiveControlIEC_mwpu(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindPlantReactiveControlIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->mwpu; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindPlantReactiveControlIEC_twppfilt(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindPlantReactiveControlIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->twppfilt; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindPlantReactiveControlIEC_twpqfilt(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindPlantReactiveControlIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->twpqfilt; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindPlantReactiveControlIEC_twpufilt(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindPlantReactiveControlIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->twpufilt; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindPlantReactiveControlIEC_txft(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindPlantReactiveControlIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->txft; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindPlantReactiveControlIEC_txfv(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindPlantReactiveControlIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->txfv; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindPlantReactiveControlIEC_uwpqdip(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindPlantReactiveControlIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->uwpqdip; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindPlantReactiveControlIEC_xrefmax(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindPlantReactiveControlIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->xrefmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindPlantReactiveControlIEC_xrefmin(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindPlantReactiveControlIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->xrefmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -namespace CIMPP { - BaseClass* WindPlantReactiveControlIEC_factory() { - return new WindPlantReactiveControlIEC; - } -} - -void WindPlantReactiveControlIEC::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:WindPlantReactiveControlIEC"), &WindPlantReactiveControlIEC_factory)); -} - -void WindPlantReactiveControlIEC::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:WindPlantReactiveControlIEC.kiwpx"), &assign_WindPlantReactiveControlIEC_kiwpx)); - assign_map.insert(std::make_pair(std::string("cim:WindPlantReactiveControlIEC.kpwpx"), &assign_WindPlantReactiveControlIEC_kpwpx)); - assign_map.insert(std::make_pair(std::string("cim:WindPlantReactiveControlIEC.kwpqu"), &assign_WindPlantReactiveControlIEC_kwpqu)); - assign_map.insert(std::make_pair(std::string("cim:WindPlantReactiveControlIEC.mwppf"), &assign_WindPlantReactiveControlIEC_mwppf)); - assign_map.insert(std::make_pair(std::string("cim:WindPlantReactiveControlIEC.mwpu"), &assign_WindPlantReactiveControlIEC_mwpu)); - assign_map.insert(std::make_pair(std::string("cim:WindPlantReactiveControlIEC.twppfilt"), &assign_WindPlantReactiveControlIEC_twppfilt)); - assign_map.insert(std::make_pair(std::string("cim:WindPlantReactiveControlIEC.twpqfilt"), &assign_WindPlantReactiveControlIEC_twpqfilt)); - assign_map.insert(std::make_pair(std::string("cim:WindPlantReactiveControlIEC.twpufilt"), &assign_WindPlantReactiveControlIEC_twpufilt)); - assign_map.insert(std::make_pair(std::string("cim:WindPlantReactiveControlIEC.txft"), &assign_WindPlantReactiveControlIEC_txft)); - assign_map.insert(std::make_pair(std::string("cim:WindPlantReactiveControlIEC.txfv"), &assign_WindPlantReactiveControlIEC_txfv)); - assign_map.insert(std::make_pair(std::string("cim:WindPlantReactiveControlIEC.uwpqdip"), &assign_WindPlantReactiveControlIEC_uwpqdip)); - assign_map.insert(std::make_pair(std::string("cim:WindPlantReactiveControlIEC.xrefmax"), &assign_WindPlantReactiveControlIEC_xrefmax)); - assign_map.insert(std::make_pair(std::string("cim:WindPlantReactiveControlIEC.xrefmin"), &assign_WindPlantReactiveControlIEC_xrefmin)); -} - -void WindPlantReactiveControlIEC::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:WindPlantReactiveControlIEC.WindPlantIEC"), &assign_WindPlantReactiveControlIEC_WindPlantIEC)); - } - -const char WindPlantReactiveControlIEC::debugName[] = "WindPlantReactiveControlIEC"; -const char* WindPlantReactiveControlIEC::debugString() -{ - return WindPlantReactiveControlIEC::debugName; -} - -const BaseClassDefiner WindPlantReactiveControlIEC::declare() -{ - return BaseClassDefiner(WindPlantReactiveControlIEC::addConstructToMap, WindPlantReactiveControlIEC::addPrimitiveAssignFnsToMap, WindPlantReactiveControlIEC::addClassAssignFnsToMap, WindPlantReactiveControlIEC::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/WindPlantReactiveControlIEC.hpp b/CGMES_2.4.13_18DEC2013/WindPlantReactiveControlIEC.hpp deleted file mode 100644 index 5ed10385c..000000000 --- a/CGMES_2.4.13_18DEC2013/WindPlantReactiveControlIEC.hpp +++ /dev/null @@ -1,57 +0,0 @@ -#ifndef WindPlantReactiveControlIEC_H -#define WindPlantReactiveControlIEC_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Simple_Float.hpp" -#include "PU.hpp" -#include "Boolean.hpp" -#include "Seconds.hpp" - -namespace CIMPP { - - -class WindPlantIEC; - /* - Simplified plant voltage and reactive power control model for use with type 3 and type 4 wind turbine models. Reference: IEC Standard 61400-27-1 Annex E. - */ - class WindPlantReactiveControlIEC: public IdentifiedObject - { - - public: - CIMPP::WindPlantIEC* WindPlantIEC; /* Wind plant model with which this wind reactive control is associated. Default: 0 */ - CIMPP::Simple_Float kiwpx; /* Plant Q controller integral gain (). It is type dependent parameter. Default: nullptr */ - CIMPP::Simple_Float kpwpx; /* Plant Q controller proportional gain (). It is type dependent parameter. Default: nullptr */ - CIMPP::PU kwpqu; /* Plant voltage control droop (). It is project dependent parameter. Default: nullptr */ - CIMPP::Boolean mwppf; /* Power factor control modes selector (). Used only if mwpu is set to false. true = 1: power factor control false = 0: reactive power control. It is project dependent parameter. Default: false */ - CIMPP::Boolean mwpu; /* Reactive power control modes selector (). true = 1: voltage control false = 0: reactive power control. It is project dependent parameter. Default: false */ - CIMPP::Seconds twppfilt; /* Filter time constant for active power measurement (). It is type dependent parameter. Default: nullptr */ - CIMPP::Seconds twpqfilt; /* Filter time constant for reactive power measurement (). It is type dependent parameter. Default: nullptr */ - CIMPP::Seconds twpufilt; /* Filter time constant for voltage measurement (). It is type dependent parameter. Default: nullptr */ - CIMPP::Seconds txft; /* Lead time constant in reference value transfer function (). It is type dependent parameter. Default: nullptr */ - CIMPP::Seconds txfv; /* Lag time constant in reference value transfer function (). It is type dependent parameter. Default: nullptr */ - CIMPP::PU uwpqdip; /* Voltage threshold for LVRT detection in q control (). It is type dependent parameter. Default: nullptr */ - CIMPP::PU xrefmax; /* Maximum ( or delta ) request from the plant controller (). It is project dependent parameter. Default: nullptr */ - CIMPP::PU xrefmin; /* Minimum ( or delta) request from the plant controller (). It is project dependent parameter. Default: nullptr */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - WindPlantReactiveControlIEC(); - virtual ~WindPlantReactiveControlIEC(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* WindPlantReactiveControlIEC_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/WindPlantUserDefined.cpp b/CGMES_2.4.13_18DEC2013/WindPlantUserDefined.cpp deleted file mode 100644 index ad5a9c42f..000000000 --- a/CGMES_2.4.13_18DEC2013/WindPlantUserDefined.cpp +++ /dev/null @@ -1,69 +0,0 @@ -#include -#include "WindPlantDynamics.hpp" -#include "WindPlantUserDefined.hpp" - -#include "Boolean.hpp" -#include "ProprietaryParameterDynamics.hpp" - -using namespace CIMPP; - -WindPlantUserDefined::WindPlantUserDefined() {}; - -WindPlantUserDefined::~WindPlantUserDefined() {}; - - - -bool assign_WindPlantUserDefined_ProprietaryParameterDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(WindPlantUserDefined* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->ProprietaryParameterDynamics.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - -bool assign_WindPlantUserDefined_proprietary(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindPlantUserDefined* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->proprietary; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -namespace CIMPP { - BaseClass* WindPlantUserDefined_factory() { - return new WindPlantUserDefined; - } -} - -void WindPlantUserDefined::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:WindPlantUserDefined"), &WindPlantUserDefined_factory)); -} - -void WindPlantUserDefined::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:WindPlantUserDefined.proprietary"), &assign_WindPlantUserDefined_proprietary)); - } - -void WindPlantUserDefined::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:WindPlantUserDefined.ProprietaryParameterDynamics"), &assign_WindPlantUserDefined_ProprietaryParameterDynamics)); -} - -const char WindPlantUserDefined::debugName[] = "WindPlantUserDefined"; -const char* WindPlantUserDefined::debugString() -{ - return WindPlantUserDefined::debugName; -} - -const BaseClassDefiner WindPlantUserDefined::declare() -{ - return BaseClassDefiner(WindPlantUserDefined::addConstructToMap, WindPlantUserDefined::addPrimitiveAssignFnsToMap, WindPlantUserDefined::addClassAssignFnsToMap, WindPlantUserDefined::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/WindPlantUserDefined.hpp b/CGMES_2.4.13_18DEC2013/WindPlantUserDefined.hpp deleted file mode 100644 index 679f975f9..000000000 --- a/CGMES_2.4.13_18DEC2013/WindPlantUserDefined.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef WindPlantUserDefined_H -#define WindPlantUserDefined_H - -#include "WindPlantDynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Boolean.hpp" - -namespace CIMPP { - - -class ProprietaryParameterDynamics; - /* - Wind plant function block whose dynamic behaviour is described by - */ - class WindPlantUserDefined: public WindPlantDynamics - { - - public: - CIMPP::Boolean proprietary; /* Behaviour is based on proprietary model as opposed to detailed model. true = user-defined model is proprietary with behaviour mutually understood by sending and receiving applications and parameters passed as general attributes false = user-defined model is explicitly defined in terms of control blocks and their input and output signals. Default: false */ - std::list ProprietaryParameterDynamics; /* Parameter of this proprietary user-defined model. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - WindPlantUserDefined(); - virtual ~WindPlantUserDefined(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* WindPlantUserDefined_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/WindProtectionIEC.cpp b/CGMES_2.4.13_18DEC2013/WindProtectionIEC.cpp deleted file mode 100644 index 9a38edbfb..000000000 --- a/CGMES_2.4.13_18DEC2013/WindProtectionIEC.cpp +++ /dev/null @@ -1,185 +0,0 @@ -#include -#include "IdentifiedObject.hpp" -#include "WindProtectionIEC.hpp" - -#include "PU.hpp" -#include "PU.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "Seconds.hpp" -#include "PU.hpp" -#include "PU.hpp" -#include "WindTurbineType3or4IEC.hpp" -#include "WindTurbineType1or2IEC.hpp" - -using namespace CIMPP; - -WindProtectionIEC::WindProtectionIEC(): WindTurbineType3or4IEC(nullptr), WindTurbineType1or2IEC(nullptr) {}; - -WindProtectionIEC::~WindProtectionIEC() {}; - - - - - - - - - - -bool assign_WindProtectionIEC_WindTurbineType3or4IEC(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(WindProtectionIEC* element = dynamic_cast(BaseClass_ptr1)) { - element->WindTurbineType3or4IEC = dynamic_cast(BaseClass_ptr2); - if(element->WindTurbineType3or4IEC != nullptr) - return true; - } - return false; -} - -bool assign_WindProtectionIEC_WindTurbineType1or2IEC(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(WindProtectionIEC* element = dynamic_cast(BaseClass_ptr1)) { - element->WindTurbineType1or2IEC = dynamic_cast(BaseClass_ptr2); - if(element->WindTurbineType1or2IEC != nullptr) - return true; - } - return false; -} - - -bool assign_WindProtectionIEC_fover(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindProtectionIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->fover; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindProtectionIEC_funder(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindProtectionIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->funder; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindProtectionIEC_tfover(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindProtectionIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tfover; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindProtectionIEC_tfunder(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindProtectionIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tfunder; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindProtectionIEC_tuover(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindProtectionIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tuover; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindProtectionIEC_tuunder(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindProtectionIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->tuunder; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindProtectionIEC_uover(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindProtectionIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->uover; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -bool assign_WindProtectionIEC_uunder(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindProtectionIEC* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->uunder; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - - -namespace CIMPP { - BaseClass* WindProtectionIEC_factory() { - return new WindProtectionIEC; - } -} - -void WindProtectionIEC::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:WindProtectionIEC"), &WindProtectionIEC_factory)); -} - -void WindProtectionIEC::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:WindProtectionIEC.fover"), &assign_WindProtectionIEC_fover)); - assign_map.insert(std::make_pair(std::string("cim:WindProtectionIEC.funder"), &assign_WindProtectionIEC_funder)); - assign_map.insert(std::make_pair(std::string("cim:WindProtectionIEC.tfover"), &assign_WindProtectionIEC_tfover)); - assign_map.insert(std::make_pair(std::string("cim:WindProtectionIEC.tfunder"), &assign_WindProtectionIEC_tfunder)); - assign_map.insert(std::make_pair(std::string("cim:WindProtectionIEC.tuover"), &assign_WindProtectionIEC_tuover)); - assign_map.insert(std::make_pair(std::string("cim:WindProtectionIEC.tuunder"), &assign_WindProtectionIEC_tuunder)); - assign_map.insert(std::make_pair(std::string("cim:WindProtectionIEC.uover"), &assign_WindProtectionIEC_uover)); - assign_map.insert(std::make_pair(std::string("cim:WindProtectionIEC.uunder"), &assign_WindProtectionIEC_uunder)); - } - -void WindProtectionIEC::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:WindProtectionIEC.WindTurbineType3or4IEC"), &assign_WindProtectionIEC_WindTurbineType3or4IEC)); - assign_map.insert(std::make_pair(std::string("cim:WindProtectionIEC.WindTurbineType1or2IEC"), &assign_WindProtectionIEC_WindTurbineType1or2IEC)); -} - -const char WindProtectionIEC::debugName[] = "WindProtectionIEC"; -const char* WindProtectionIEC::debugString() -{ - return WindProtectionIEC::debugName; -} - -const BaseClassDefiner WindProtectionIEC::declare() -{ - return BaseClassDefiner(WindProtectionIEC::addConstructToMap, WindProtectionIEC::addPrimitiveAssignFnsToMap, WindProtectionIEC::addClassAssignFnsToMap, WindProtectionIEC::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/WindProtectionIEC.hpp b/CGMES_2.4.13_18DEC2013/WindProtectionIEC.hpp deleted file mode 100644 index a56220bee..000000000 --- a/CGMES_2.4.13_18DEC2013/WindProtectionIEC.hpp +++ /dev/null @@ -1,52 +0,0 @@ -#ifndef WindProtectionIEC_H -#define WindProtectionIEC_H - -#include "IdentifiedObject.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "PU.hpp" -#include "Seconds.hpp" - -namespace CIMPP { - - -class WindTurbineType3or4IEC; -class WindTurbineType1or2IEC; - /* - The grid protection model includes protection against over and under voltage, and against over and under frequency. Reference: IEC Standard 614000-27-1 Section 6.6.6. - */ - class WindProtectionIEC: public IdentifiedObject - { - - public: - CIMPP::PU fover; /* Set of wind turbine over frequency protection levels (). It is project dependent parameter. Default: nullptr */ - CIMPP::PU funder; /* Set of wind turbine under frequency protection levels (). It is project dependent parameter. Default: nullptr */ - CIMPP::Seconds tfover; /* Set of corresponding wind turbine over frequency protection disconnection times (). It is project dependent parameter. Default: nullptr */ - CIMPP::Seconds tfunder; /* Set of corresponding wind turbine under frequency protection disconnection times (). It is project dependent parameter. Default: nullptr */ - CIMPP::Seconds tuover; /* Set of corresponding wind turbine over voltage protection disconnection times (). It is project dependent parameter. Default: nullptr */ - CIMPP::Seconds tuunder; /* Set of corresponding wind turbine under voltage protection disconnection times (). It is project dependent parameter. Default: nullptr */ - CIMPP::PU uover; /* Set of wind turbine over voltage protection levels (). It is project dependent parameter. Default: nullptr */ - CIMPP::PU uunder; /* Set of wind turbine under voltage protection levels (). It is project dependent parameter. Default: nullptr */ - CIMPP::WindTurbineType3or4IEC* WindTurbineType3or4IEC; /* Wind generator type 3 or 4 model with which this wind turbine protection model is associated. Default: 0 */ - CIMPP::WindTurbineType1or2IEC* WindTurbineType1or2IEC; /* Wind generator type 1 or 2 model with which this wind turbine protection model is associated. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - WindProtectionIEC(); - virtual ~WindProtectionIEC(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* WindProtectionIEC_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/WindQcontrolModesKind.cpp b/CGMES_2.4.13_18DEC2013/WindQcontrolModesKind.cpp deleted file mode 100644 index b45e7cd66..000000000 --- a/CGMES_2.4.13_18DEC2013/WindQcontrolModesKind.cpp +++ /dev/null @@ -1,47 +0,0 @@ -#include -#include -#include "WindQcontrolModesKind.hpp" - -using namespace CIMPP; - -namespace CIMPP { - std::istream& operator>>(std::istream& lop, CIMPP::WindQcontrolModesKind& rop) - { - std::string EnumSymbol; - lop >> EnumSymbol; - - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "WindQcontrolModesKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "voltage") - { - rop = WindQcontrolModesKind::voltage; - return lop; - } - if(EnumSymbol == "reactivePower") - { - rop = WindQcontrolModesKind::reactivePower; - return lop; - } - if(EnumSymbol == "openLoopReactivePower") - { - rop = WindQcontrolModesKind::openLoopReactivePower; - return lop; - } - if(EnumSymbol == "powerFactor") - { - rop = WindQcontrolModesKind::powerFactor; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; - } -} - diff --git a/CGMES_2.4.13_18DEC2013/WindQcontrolModesKind.hpp b/CGMES_2.4.13_18DEC2013/WindQcontrolModesKind.hpp deleted file mode 100644 index c74042607..000000000 --- a/CGMES_2.4.13_18DEC2013/WindQcontrolModesKind.hpp +++ /dev/null @@ -1,29 +0,0 @@ -#ifndef WindQcontrolModesKind_H -#define WindQcontrolModesKind_H - -namespace CIMPP { - /* - General wind turbine Q control modes . - */ - enum class WindQcontrolModesKind - { - /** - * Voltage control (). - */ - voltage, - /** - * Reactive power control (). - */ - reactivePower, - /** - * Open loop reactive power control (only used with closed loop at plant level) (). - */ - openLoopReactivePower, - /** - * Power factor control (). - */ - powerFactor, - }; - std::istream& operator>>(std::istream& lop, CIMPP::WindQcontrolModesKind& rop); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/WindTurbineType1or2Dynamics.cpp b/CGMES_2.4.13_18DEC2013/WindTurbineType1or2Dynamics.cpp deleted file mode 100644 index 21a534207..000000000 --- a/CGMES_2.4.13_18DEC2013/WindTurbineType1or2Dynamics.cpp +++ /dev/null @@ -1,67 +0,0 @@ -#include -#include "DynamicsFunctionBlock.hpp" -#include "WindTurbineType1or2Dynamics.hpp" - -#include "RemoteInputSignal.hpp" -#include "AsynchronousMachineDynamics.hpp" - -using namespace CIMPP; - -WindTurbineType1or2Dynamics::WindTurbineType1or2Dynamics(): RemoteInputSignal(nullptr), AsynchronousMachineDynamics(nullptr) {}; - -WindTurbineType1or2Dynamics::~WindTurbineType1or2Dynamics() {}; - - -bool assign_RemoteInputSignal_WindTurbineType1or2Dynamics(BaseClass*, BaseClass*); -bool assign_WindTurbineType1or2Dynamics_RemoteInputSignal(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(WindTurbineType1or2Dynamics* element = dynamic_cast(BaseClass_ptr1)) { - element->RemoteInputSignal = dynamic_cast(BaseClass_ptr2); - if(element->RemoteInputSignal != nullptr) - return assign_RemoteInputSignal_WindTurbineType1or2Dynamics(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_AsynchronousMachineDynamics_WindTurbineType1or2Dynamics(BaseClass*, BaseClass*); -bool assign_WindTurbineType1or2Dynamics_AsynchronousMachineDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(WindTurbineType1or2Dynamics* element = dynamic_cast(BaseClass_ptr1)) { - element->AsynchronousMachineDynamics = dynamic_cast(BaseClass_ptr2); - if(element->AsynchronousMachineDynamics != nullptr) - return assign_AsynchronousMachineDynamics_WindTurbineType1or2Dynamics(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - - -namespace CIMPP { - BaseClass* WindTurbineType1or2Dynamics_factory() { - return new WindTurbineType1or2Dynamics; - } -} - -void WindTurbineType1or2Dynamics::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:WindTurbineType1or2Dynamics"), &WindTurbineType1or2Dynamics_factory)); -} - -void WindTurbineType1or2Dynamics::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void WindTurbineType1or2Dynamics::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:WindTurbineType1or2Dynamics.RemoteInputSignal"), &assign_WindTurbineType1or2Dynamics_RemoteInputSignal)); - assign_map.insert(std::make_pair(std::string("cim:WindTurbineType1or2Dynamics.AsynchronousMachineDynamics"), &assign_WindTurbineType1or2Dynamics_AsynchronousMachineDynamics)); -} - -const char WindTurbineType1or2Dynamics::debugName[] = "WindTurbineType1or2Dynamics"; -const char* WindTurbineType1or2Dynamics::debugString() -{ - return WindTurbineType1or2Dynamics::debugName; -} - -const BaseClassDefiner WindTurbineType1or2Dynamics::declare() -{ - return BaseClassDefiner(WindTurbineType1or2Dynamics::addConstructToMap, WindTurbineType1or2Dynamics::addPrimitiveAssignFnsToMap, WindTurbineType1or2Dynamics::addClassAssignFnsToMap, WindTurbineType1or2Dynamics::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/WindTurbineType1or2Dynamics.hpp b/CGMES_2.4.13_18DEC2013/WindTurbineType1or2Dynamics.hpp deleted file mode 100644 index 2d7b85a52..000000000 --- a/CGMES_2.4.13_18DEC2013/WindTurbineType1or2Dynamics.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef WindTurbineType1or2Dynamics_H -#define WindTurbineType1or2Dynamics_H - -#include "DynamicsFunctionBlock.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class RemoteInputSignal; -class AsynchronousMachineDynamics; - /* - Parent class supporting relationships to wind turbines Type 1 and 2 and their control models. - */ - class WindTurbineType1or2Dynamics: public DynamicsFunctionBlock - { - - public: - CIMPP::RemoteInputSignal* RemoteInputSignal; /* Remote input signal used by this wind generator Type 1 or Type 2 model. Default: 0 */ - CIMPP::AsynchronousMachineDynamics* AsynchronousMachineDynamics; /* Asynchronous machine model with which this wind generator type 1 or 2 model is associated. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - WindTurbineType1or2Dynamics(); - virtual ~WindTurbineType1or2Dynamics(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* WindTurbineType1or2Dynamics_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/WindTurbineType1or2IEC.cpp b/CGMES_2.4.13_18DEC2013/WindTurbineType1or2IEC.cpp deleted file mode 100644 index 69e37a1c6..000000000 --- a/CGMES_2.4.13_18DEC2013/WindTurbineType1or2IEC.cpp +++ /dev/null @@ -1,67 +0,0 @@ -#include -#include "WindTurbineType1or2Dynamics.hpp" -#include "WindTurbineType1or2IEC.hpp" - -#include "WindMechIEC.hpp" -#include "WindProtectionIEC.hpp" - -using namespace CIMPP; - -WindTurbineType1or2IEC::WindTurbineType1or2IEC(): WindMechIEC(nullptr), WindProtectionIEC(nullptr) {}; - -WindTurbineType1or2IEC::~WindTurbineType1or2IEC() {}; - - -bool assign_WindMechIEC_WindTurbineType1or2IEC(BaseClass*, BaseClass*); -bool assign_WindTurbineType1or2IEC_WindMechIEC(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(WindTurbineType1or2IEC* element = dynamic_cast(BaseClass_ptr1)) { - element->WindMechIEC = dynamic_cast(BaseClass_ptr2); - if(element->WindMechIEC != nullptr) - return assign_WindMechIEC_WindTurbineType1or2IEC(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_WindProtectionIEC_WindTurbineType1or2IEC(BaseClass*, BaseClass*); -bool assign_WindTurbineType1or2IEC_WindProtectionIEC(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(WindTurbineType1or2IEC* element = dynamic_cast(BaseClass_ptr1)) { - element->WindProtectionIEC = dynamic_cast(BaseClass_ptr2); - if(element->WindProtectionIEC != nullptr) - return assign_WindProtectionIEC_WindTurbineType1or2IEC(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - - -namespace CIMPP { - BaseClass* WindTurbineType1or2IEC_factory() { - return new WindTurbineType1or2IEC; - } -} - -void WindTurbineType1or2IEC::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:WindTurbineType1or2IEC"), &WindTurbineType1or2IEC_factory)); -} - -void WindTurbineType1or2IEC::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void WindTurbineType1or2IEC::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:WindTurbineType1or2IEC.WindMechIEC"), &assign_WindTurbineType1or2IEC_WindMechIEC)); - assign_map.insert(std::make_pair(std::string("cim:WindTurbineType1or2IEC.WindProtectionIEC"), &assign_WindTurbineType1or2IEC_WindProtectionIEC)); -} - -const char WindTurbineType1or2IEC::debugName[] = "WindTurbineType1or2IEC"; -const char* WindTurbineType1or2IEC::debugString() -{ - return WindTurbineType1or2IEC::debugName; -} - -const BaseClassDefiner WindTurbineType1or2IEC::declare() -{ - return BaseClassDefiner(WindTurbineType1or2IEC::addConstructToMap, WindTurbineType1or2IEC::addPrimitiveAssignFnsToMap, WindTurbineType1or2IEC::addClassAssignFnsToMap, WindTurbineType1or2IEC::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/WindTurbineType1or2IEC.hpp b/CGMES_2.4.13_18DEC2013/WindTurbineType1or2IEC.hpp deleted file mode 100644 index ec4ea8b84..000000000 --- a/CGMES_2.4.13_18DEC2013/WindTurbineType1or2IEC.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef WindTurbineType1or2IEC_H -#define WindTurbineType1or2IEC_H - -#include "WindTurbineType1or2Dynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class WindMechIEC; -class WindProtectionIEC; - /* - Generator model for wind turbine of IEC Type 1 or Type 2 is a standard asynchronous generator model. Reference: IEC Standard 614000-27-1 Section 6.6.3.1. - */ - class WindTurbineType1or2IEC: public WindTurbineType1or2Dynamics - { - - public: - CIMPP::WindMechIEC* WindMechIEC; /* Wind mechanical model associated with this wind generator type 1 or 2 model. Default: 0 */ - CIMPP::WindProtectionIEC* WindProtectionIEC; /* Wind turbune protection model associated with this wind generator type 1 or 2 model. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - WindTurbineType1or2IEC(); - virtual ~WindTurbineType1or2IEC(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* WindTurbineType1or2IEC_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/WindTurbineType3or4Dynamics.cpp b/CGMES_2.4.13_18DEC2013/WindTurbineType3or4Dynamics.cpp deleted file mode 100644 index 408a19da5..000000000 --- a/CGMES_2.4.13_18DEC2013/WindTurbineType3or4Dynamics.cpp +++ /dev/null @@ -1,80 +0,0 @@ -#include -#include "DynamicsFunctionBlock.hpp" -#include "WindTurbineType3or4Dynamics.hpp" - -#include "EnergySource.hpp" -#include "RemoteInputSignal.hpp" -#include "WindPlantDynamics.hpp" - -using namespace CIMPP; - -WindTurbineType3or4Dynamics::WindTurbineType3or4Dynamics(): EnergySource(nullptr), RemoteInputSignal(nullptr), WindPlantDynamics(nullptr) {}; - -WindTurbineType3or4Dynamics::~WindTurbineType3or4Dynamics() {}; - - -bool assign_EnergySource_WindTurbineType3or4Dynamics(BaseClass*, BaseClass*); -bool assign_WindTurbineType3or4Dynamics_EnergySource(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(WindTurbineType3or4Dynamics* element = dynamic_cast(BaseClass_ptr1)) { - element->EnergySource = dynamic_cast(BaseClass_ptr2); - if(element->EnergySource != nullptr) - return assign_EnergySource_WindTurbineType3or4Dynamics(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_RemoteInputSignal_WindTurbineType3or4Dynamics(BaseClass*, BaseClass*); -bool assign_WindTurbineType3or4Dynamics_RemoteInputSignal(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(WindTurbineType3or4Dynamics* element = dynamic_cast(BaseClass_ptr1)) { - element->RemoteInputSignal = dynamic_cast(BaseClass_ptr2); - if(element->RemoteInputSignal != nullptr) - return assign_RemoteInputSignal_WindTurbineType3or4Dynamics(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_WindPlantDynamics_WindTurbineType3or4Dynamics(BaseClass*, BaseClass*); -bool assign_WindTurbineType3or4Dynamics_WindPlantDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(WindTurbineType3or4Dynamics* element = dynamic_cast(BaseClass_ptr1)) { - element->WindPlantDynamics = dynamic_cast(BaseClass_ptr2); - if(element->WindPlantDynamics != nullptr) - return assign_WindPlantDynamics_WindTurbineType3or4Dynamics(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - - - -namespace CIMPP { - BaseClass* WindTurbineType3or4Dynamics_factory() { - return new WindTurbineType3or4Dynamics; - } -} - -void WindTurbineType3or4Dynamics::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:WindTurbineType3or4Dynamics"), &WindTurbineType3or4Dynamics_factory)); -} - -void WindTurbineType3or4Dynamics::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void WindTurbineType3or4Dynamics::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:WindTurbineType3or4Dynamics.EnergySource"), &assign_WindTurbineType3or4Dynamics_EnergySource)); - assign_map.insert(std::make_pair(std::string("cim:WindTurbineType3or4Dynamics.RemoteInputSignal"), &assign_WindTurbineType3or4Dynamics_RemoteInputSignal)); - assign_map.insert(std::make_pair(std::string("cim:WindTurbineType3or4Dynamics.WindPlantDynamics"), &assign_WindTurbineType3or4Dynamics_WindPlantDynamics)); -} - -const char WindTurbineType3or4Dynamics::debugName[] = "WindTurbineType3or4Dynamics"; -const char* WindTurbineType3or4Dynamics::debugString() -{ - return WindTurbineType3or4Dynamics::debugName; -} - -const BaseClassDefiner WindTurbineType3or4Dynamics::declare() -{ - return BaseClassDefiner(WindTurbineType3or4Dynamics::addConstructToMap, WindTurbineType3or4Dynamics::addPrimitiveAssignFnsToMap, WindTurbineType3or4Dynamics::addClassAssignFnsToMap, WindTurbineType3or4Dynamics::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/WindTurbineType3or4Dynamics.hpp b/CGMES_2.4.13_18DEC2013/WindTurbineType3or4Dynamics.hpp deleted file mode 100644 index e06840403..000000000 --- a/CGMES_2.4.13_18DEC2013/WindTurbineType3or4Dynamics.hpp +++ /dev/null @@ -1,44 +0,0 @@ -#ifndef WindTurbineType3or4Dynamics_H -#define WindTurbineType3or4Dynamics_H - -#include "DynamicsFunctionBlock.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class EnergySource; -class RemoteInputSignal; -class WindPlantDynamics; - /* - Parent class supporting relationships to wind turbines Type 3 and 4 and wind plant including their control models. - */ - class WindTurbineType3or4Dynamics: public DynamicsFunctionBlock - { - - public: - CIMPP::EnergySource* EnergySource; /* Energy Source (current source) with which this wind Type 3 or 4 dynamics model is asoociated. Default: 0 */ - CIMPP::RemoteInputSignal* RemoteInputSignal; /* Wind turbine Type 3 or 4 models using this remote input signal. Default: 0 */ - CIMPP::WindPlantDynamics* WindPlantDynamics; /* The wind plant with which the wind turbines type 3 or 4 are associated. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - WindTurbineType3or4Dynamics(); - virtual ~WindTurbineType3or4Dynamics(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* WindTurbineType3or4Dynamics_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/WindTurbineType3or4IEC.cpp b/CGMES_2.4.13_18DEC2013/WindTurbineType3or4IEC.cpp deleted file mode 100644 index 3bb18fb7b..000000000 --- a/CGMES_2.4.13_18DEC2013/WindTurbineType3or4IEC.cpp +++ /dev/null @@ -1,80 +0,0 @@ -#include -#include "WindTurbineType3or4Dynamics.hpp" -#include "WindTurbineType3or4IEC.hpp" - -#include "WindContCurrLimIEC.hpp" -#include "WindContQIEC.hpp" -#include "WindProtectionIEC.hpp" - -using namespace CIMPP; - -WindTurbineType3or4IEC::WindTurbineType3or4IEC(): WindContCurrLimIEC(nullptr), WIndContQIEC(nullptr), WindProtectionIEC(nullptr) {}; - -WindTurbineType3or4IEC::~WindTurbineType3or4IEC() {}; - - -bool assign_WindContCurrLimIEC_WindTurbineType3or4IEC(BaseClass*, BaseClass*); -bool assign_WindTurbineType3or4IEC_WindContCurrLimIEC(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(WindTurbineType3or4IEC* element = dynamic_cast(BaseClass_ptr1)) { - element->WindContCurrLimIEC = dynamic_cast(BaseClass_ptr2); - if(element->WindContCurrLimIEC != nullptr) - return assign_WindContCurrLimIEC_WindTurbineType3or4IEC(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_WindContQIEC_WindTurbineType3or4IEC(BaseClass*, BaseClass*); -bool assign_WindTurbineType3or4IEC_WIndContQIEC(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(WindTurbineType3or4IEC* element = dynamic_cast(BaseClass_ptr1)) { - element->WIndContQIEC = dynamic_cast(BaseClass_ptr2); - if(element->WIndContQIEC != nullptr) - return assign_WindContQIEC_WindTurbineType3or4IEC(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_WindProtectionIEC_WindTurbineType3or4IEC(BaseClass*, BaseClass*); -bool assign_WindTurbineType3or4IEC_WindProtectionIEC(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(WindTurbineType3or4IEC* element = dynamic_cast(BaseClass_ptr1)) { - element->WindProtectionIEC = dynamic_cast(BaseClass_ptr2); - if(element->WindProtectionIEC != nullptr) - return assign_WindProtectionIEC_WindTurbineType3or4IEC(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - - - -namespace CIMPP { - BaseClass* WindTurbineType3or4IEC_factory() { - return new WindTurbineType3or4IEC; - } -} - -void WindTurbineType3or4IEC::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:WindTurbineType3or4IEC"), &WindTurbineType3or4IEC_factory)); -} - -void WindTurbineType3or4IEC::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void WindTurbineType3or4IEC::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:WindTurbineType3or4IEC.WindContCurrLimIEC"), &assign_WindTurbineType3or4IEC_WindContCurrLimIEC)); - assign_map.insert(std::make_pair(std::string("cim:WindTurbineType3or4IEC.WIndContQIEC"), &assign_WindTurbineType3or4IEC_WIndContQIEC)); - assign_map.insert(std::make_pair(std::string("cim:WindTurbineType3or4IEC.WindProtectionIEC"), &assign_WindTurbineType3or4IEC_WindProtectionIEC)); -} - -const char WindTurbineType3or4IEC::debugName[] = "WindTurbineType3or4IEC"; -const char* WindTurbineType3or4IEC::debugString() -{ - return WindTurbineType3or4IEC::debugName; -} - -const BaseClassDefiner WindTurbineType3or4IEC::declare() -{ - return BaseClassDefiner(WindTurbineType3or4IEC::addConstructToMap, WindTurbineType3or4IEC::addPrimitiveAssignFnsToMap, WindTurbineType3or4IEC::addClassAssignFnsToMap, WindTurbineType3or4IEC::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/WindTurbineType3or4IEC.hpp b/CGMES_2.4.13_18DEC2013/WindTurbineType3or4IEC.hpp deleted file mode 100644 index 5334a32ce..000000000 --- a/CGMES_2.4.13_18DEC2013/WindTurbineType3or4IEC.hpp +++ /dev/null @@ -1,44 +0,0 @@ -#ifndef WindTurbineType3or4IEC_H -#define WindTurbineType3or4IEC_H - -#include "WindTurbineType3or4Dynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class WindContCurrLimIEC; -class WindContQIEC; -class WindProtectionIEC; - /* - Parent class supporting relationships to IEC wind turbines Type 3 and 4 and wind plant including their control models. - */ - class WindTurbineType3or4IEC: public WindTurbineType3or4Dynamics - { - - public: - CIMPP::WindContCurrLimIEC* WindContCurrLimIEC; /* Wind control current limitation model associated with this wind turbine type 3 or 4 model. Default: 0 */ - CIMPP::WindContQIEC* WIndContQIEC; /* Wind control Q model associated with this wind turbine type 3 or 4 model. Default: 0 */ - CIMPP::WindProtectionIEC* WindProtectionIEC; /* Wind turbune protection model associated with this wind generator type 3 or 4 model. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - WindTurbineType3or4IEC(); - virtual ~WindTurbineType3or4IEC(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* WindTurbineType3or4IEC_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/WindTurbineType4aIEC.cpp b/CGMES_2.4.13_18DEC2013/WindTurbineType4aIEC.cpp deleted file mode 100644 index 901bcea9a..000000000 --- a/CGMES_2.4.13_18DEC2013/WindTurbineType4aIEC.cpp +++ /dev/null @@ -1,54 +0,0 @@ -#include -#include "WindGenType4IEC.hpp" -#include "WindTurbineType4aIEC.hpp" - -#include "WindContPType4aIEC.hpp" - -using namespace CIMPP; - -WindTurbineType4aIEC::WindTurbineType4aIEC(): WindContPType4aIEC(nullptr) {}; - -WindTurbineType4aIEC::~WindTurbineType4aIEC() {}; - - -bool assign_WindContPType4aIEC_WindTurbineType4aIEC(BaseClass*, BaseClass*); -bool assign_WindTurbineType4aIEC_WindContPType4aIEC(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(WindTurbineType4aIEC* element = dynamic_cast(BaseClass_ptr1)) { - element->WindContPType4aIEC = dynamic_cast(BaseClass_ptr2); - if(element->WindContPType4aIEC != nullptr) - return assign_WindContPType4aIEC_WindTurbineType4aIEC(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - -namespace CIMPP { - BaseClass* WindTurbineType4aIEC_factory() { - return new WindTurbineType4aIEC; - } -} - -void WindTurbineType4aIEC::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:WindTurbineType4aIEC"), &WindTurbineType4aIEC_factory)); -} - -void WindTurbineType4aIEC::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void WindTurbineType4aIEC::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:WindTurbineType4aIEC.WindContPType4aIEC"), &assign_WindTurbineType4aIEC_WindContPType4aIEC)); -} - -const char WindTurbineType4aIEC::debugName[] = "WindTurbineType4aIEC"; -const char* WindTurbineType4aIEC::debugString() -{ - return WindTurbineType4aIEC::debugName; -} - -const BaseClassDefiner WindTurbineType4aIEC::declare() -{ - return BaseClassDefiner(WindTurbineType4aIEC::addConstructToMap, WindTurbineType4aIEC::addPrimitiveAssignFnsToMap, WindTurbineType4aIEC::addClassAssignFnsToMap, WindTurbineType4aIEC::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/WindTurbineType4aIEC.hpp b/CGMES_2.4.13_18DEC2013/WindTurbineType4aIEC.hpp deleted file mode 100644 index e60180f30..000000000 --- a/CGMES_2.4.13_18DEC2013/WindTurbineType4aIEC.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#ifndef WindTurbineType4aIEC_H -#define WindTurbineType4aIEC_H - -#include "WindGenType4IEC.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class WindContPType4aIEC; - /* - Wind turbine IEC Type 4A. Reference: IEC Standard 61400-27-1, section 6.5.5.2. - */ - class WindTurbineType4aIEC: public WindGenType4IEC - { - - public: - CIMPP::WindContPType4aIEC* WindContPType4aIEC; /* Wind control P type 4A model associated with this wind turbine type 4A model. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - WindTurbineType4aIEC(); - virtual ~WindTurbineType4aIEC(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* WindTurbineType4aIEC_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/WindTurbineType4bIEC.cpp b/CGMES_2.4.13_18DEC2013/WindTurbineType4bIEC.cpp deleted file mode 100644 index e04f05b99..000000000 --- a/CGMES_2.4.13_18DEC2013/WindTurbineType4bIEC.cpp +++ /dev/null @@ -1,67 +0,0 @@ -#include -#include "WindGenType4IEC.hpp" -#include "WindTurbineType4bIEC.hpp" - -#include "WindContPType4bIEC.hpp" -#include "WindMechIEC.hpp" - -using namespace CIMPP; - -WindTurbineType4bIEC::WindTurbineType4bIEC(): WindContPType4bIEC(nullptr), WindMechIEC(nullptr) {}; - -WindTurbineType4bIEC::~WindTurbineType4bIEC() {}; - - -bool assign_WindContPType4bIEC_WindTurbineType4bIEC(BaseClass*, BaseClass*); -bool assign_WindTurbineType4bIEC_WindContPType4bIEC(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(WindTurbineType4bIEC* element = dynamic_cast(BaseClass_ptr1)) { - element->WindContPType4bIEC = dynamic_cast(BaseClass_ptr2); - if(element->WindContPType4bIEC != nullptr) - return assign_WindContPType4bIEC_WindTurbineType4bIEC(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - -bool assign_WindMechIEC_WindTurbineType4bIEC(BaseClass*, BaseClass*); -bool assign_WindTurbineType4bIEC_WindMechIEC(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(WindTurbineType4bIEC* element = dynamic_cast(BaseClass_ptr1)) { - element->WindMechIEC = dynamic_cast(BaseClass_ptr2); - if(element->WindMechIEC != nullptr) - return assign_WindMechIEC_WindTurbineType4bIEC(BaseClass_ptr2, BaseClass_ptr1); - } - return false; -} - - - - -namespace CIMPP { - BaseClass* WindTurbineType4bIEC_factory() { - return new WindTurbineType4bIEC; - } -} - -void WindTurbineType4bIEC::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:WindTurbineType4bIEC"), &WindTurbineType4bIEC_factory)); -} - -void WindTurbineType4bIEC::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - } - -void WindTurbineType4bIEC::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:WindTurbineType4bIEC.WindContPType4bIEC"), &assign_WindTurbineType4bIEC_WindContPType4bIEC)); - assign_map.insert(std::make_pair(std::string("cim:WindTurbineType4bIEC.WindMechIEC"), &assign_WindTurbineType4bIEC_WindMechIEC)); -} - -const char WindTurbineType4bIEC::debugName[] = "WindTurbineType4bIEC"; -const char* WindTurbineType4bIEC::debugString() -{ - return WindTurbineType4bIEC::debugName; -} - -const BaseClassDefiner WindTurbineType4bIEC::declare() -{ - return BaseClassDefiner(WindTurbineType4bIEC::addConstructToMap, WindTurbineType4bIEC::addPrimitiveAssignFnsToMap, WindTurbineType4bIEC::addClassAssignFnsToMap, WindTurbineType4bIEC::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/WindTurbineType4bIEC.hpp b/CGMES_2.4.13_18DEC2013/WindTurbineType4bIEC.hpp deleted file mode 100644 index 77ce794fb..000000000 --- a/CGMES_2.4.13_18DEC2013/WindTurbineType4bIEC.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef WindTurbineType4bIEC_H -#define WindTurbineType4bIEC_H - -#include "WindGenType4IEC.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - - -namespace CIMPP { - - -class WindContPType4bIEC; -class WindMechIEC; - /* - Wind turbine IEC Type 4A. Reference: IEC Standard 61400-27-1, section 6.5.5.3. - */ - class WindTurbineType4bIEC: public WindGenType4IEC - { - - public: - CIMPP::WindContPType4bIEC* WindContPType4bIEC; /* Wind control P type 4B model associated with this wind turbine type 4B model. Default: 0 */ - CIMPP::WindMechIEC* WindMechIEC; /* Wind mechanical model associated with this wind turbine Type 4B model. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - WindTurbineType4bIEC(); - virtual ~WindTurbineType4bIEC(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* WindTurbineType4bIEC_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/WindType1or2UserDefined.cpp b/CGMES_2.4.13_18DEC2013/WindType1or2UserDefined.cpp deleted file mode 100644 index 830489779..000000000 --- a/CGMES_2.4.13_18DEC2013/WindType1or2UserDefined.cpp +++ /dev/null @@ -1,69 +0,0 @@ -#include -#include "WindTurbineType1or2Dynamics.hpp" -#include "WindType1or2UserDefined.hpp" - -#include "Boolean.hpp" -#include "ProprietaryParameterDynamics.hpp" - -using namespace CIMPP; - -WindType1or2UserDefined::WindType1or2UserDefined() {}; - -WindType1or2UserDefined::~WindType1or2UserDefined() {}; - - - -bool assign_WindType1or2UserDefined_ProprietaryParameterDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(WindType1or2UserDefined* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->ProprietaryParameterDynamics.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - -bool assign_WindType1or2UserDefined_proprietary(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindType1or2UserDefined* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->proprietary; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -namespace CIMPP { - BaseClass* WindType1or2UserDefined_factory() { - return new WindType1or2UserDefined; - } -} - -void WindType1or2UserDefined::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:WindType1or2UserDefined"), &WindType1or2UserDefined_factory)); -} - -void WindType1or2UserDefined::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:WindType1or2UserDefined.proprietary"), &assign_WindType1or2UserDefined_proprietary)); - } - -void WindType1or2UserDefined::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:WindType1or2UserDefined.ProprietaryParameterDynamics"), &assign_WindType1or2UserDefined_ProprietaryParameterDynamics)); -} - -const char WindType1or2UserDefined::debugName[] = "WindType1or2UserDefined"; -const char* WindType1or2UserDefined::debugString() -{ - return WindType1or2UserDefined::debugName; -} - -const BaseClassDefiner WindType1or2UserDefined::declare() -{ - return BaseClassDefiner(WindType1or2UserDefined::addConstructToMap, WindType1or2UserDefined::addPrimitiveAssignFnsToMap, WindType1or2UserDefined::addClassAssignFnsToMap, WindType1or2UserDefined::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/WindType1or2UserDefined.hpp b/CGMES_2.4.13_18DEC2013/WindType1or2UserDefined.hpp deleted file mode 100644 index 5acd4b697..000000000 --- a/CGMES_2.4.13_18DEC2013/WindType1or2UserDefined.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef WindType1or2UserDefined_H -#define WindType1or2UserDefined_H - -#include "WindTurbineType1or2Dynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Boolean.hpp" - -namespace CIMPP { - - -class ProprietaryParameterDynamics; - /* - Wind Type 1 or Type 2 function block whose dynamic behaviour is described by - */ - class WindType1or2UserDefined: public WindTurbineType1or2Dynamics - { - - public: - CIMPP::Boolean proprietary; /* Behaviour is based on proprietary model as opposed to detailed model. true = user-defined model is proprietary with behaviour mutually understood by sending and receiving applications and parameters passed as general attributes false = user-defined model is explicitly defined in terms of control blocks and their input and output signals. Default: false */ - std::list ProprietaryParameterDynamics; /* Parameter of this proprietary user-defined model. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - WindType1or2UserDefined(); - virtual ~WindType1or2UserDefined(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* WindType1or2UserDefined_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/WindType3or4UserDefined.cpp b/CGMES_2.4.13_18DEC2013/WindType3or4UserDefined.cpp deleted file mode 100644 index 7c3abd134..000000000 --- a/CGMES_2.4.13_18DEC2013/WindType3or4UserDefined.cpp +++ /dev/null @@ -1,69 +0,0 @@ -#include -#include "WindTurbineType3or4Dynamics.hpp" -#include "WindType3or4UserDefined.hpp" - -#include "Boolean.hpp" -#include "ProprietaryParameterDynamics.hpp" - -using namespace CIMPP; - -WindType3or4UserDefined::WindType3or4UserDefined() {}; - -WindType3or4UserDefined::~WindType3or4UserDefined() {}; - - - -bool assign_WindType3or4UserDefined_ProprietaryParameterDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) { - if(WindType3or4UserDefined* element = dynamic_cast(BaseClass_ptr1)) { - if(dynamic_cast(BaseClass_ptr2) != nullptr) { - element->ProprietaryParameterDynamics.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - -bool assign_WindType3or4UserDefined_proprietary(std::stringstream &buffer, BaseClass* BaseClass_ptr1) { - if(WindType3or4UserDefined* element = dynamic_cast(BaseClass_ptr1)) { - buffer >> element->proprietary; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -namespace CIMPP { - BaseClass* WindType3or4UserDefined_factory() { - return new WindType3or4UserDefined; - } -} - -void WindType3or4UserDefined::addConstructToMap(std::unordered_map& factory_map) { - factory_map.insert(std::make_pair(std::string("cim:WindType3or4UserDefined"), &WindType3or4UserDefined_factory)); -} - -void WindType3or4UserDefined::addPrimitiveAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:WindType3or4UserDefined.proprietary"), &assign_WindType3or4UserDefined_proprietary)); - } - -void WindType3or4UserDefined::addClassAssignFnsToMap(std::unordered_map& assign_map) { - assign_map.insert(std::make_pair(std::string("cim:WindType3or4UserDefined.ProprietaryParameterDynamics"), &assign_WindType3or4UserDefined_ProprietaryParameterDynamics)); -} - -const char WindType3or4UserDefined::debugName[] = "WindType3or4UserDefined"; -const char* WindType3or4UserDefined::debugString() -{ - return WindType3or4UserDefined::debugName; -} - -const BaseClassDefiner WindType3or4UserDefined::declare() -{ - return BaseClassDefiner(WindType3or4UserDefined::addConstructToMap, WindType3or4UserDefined::addPrimitiveAssignFnsToMap, WindType3or4UserDefined::addClassAssignFnsToMap, WindType3or4UserDefined::debugName); -} - - diff --git a/CGMES_2.4.13_18DEC2013/WindType3or4UserDefined.hpp b/CGMES_2.4.13_18DEC2013/WindType3or4UserDefined.hpp deleted file mode 100644 index 48b9d891e..000000000 --- a/CGMES_2.4.13_18DEC2013/WindType3or4UserDefined.hpp +++ /dev/null @@ -1,42 +0,0 @@ -#ifndef WindType3or4UserDefined_H -#define WindType3or4UserDefined_H - -#include "WindTurbineType3or4Dynamics.hpp" -#include -#include "Boolean.hpp" -#include "Float.hpp" - - -#include "Boolean.hpp" - -namespace CIMPP { - - -class ProprietaryParameterDynamics; - /* - Wind Type 3 or Type 4 function block whose dynamic behaviour is described by - */ - class WindType3or4UserDefined: public WindTurbineType3or4Dynamics - { - - public: - CIMPP::Boolean proprietary; /* Behaviour is based on proprietary model as opposed to detailed model. true = user-defined model is proprietary with behaviour mutually understood by sending and receiving applications and parameters passed as general attributes false = user-defined model is explicitly defined in terms of control blocks and their input and output signals. Default: false */ - std::list ProprietaryParameterDynamics; /* Parameter of this proprietary user-defined model. Default: 0 */ - - static const char debugName[]; - virtual const char* debugString(); - - /* constructor initialising all attributes to null */ - WindType3or4UserDefined(); - virtual ~WindType3or4UserDefined(); - - static void addConstructToMap(std::unordered_map& factory_map); - static void addPrimitiveAssignFnsToMap(std::unordered_map&); - static void addClassAssignFnsToMap(std::unordered_map&); - static const BaseClassDefiner declare(); - - }; - - BaseClass* WindType3or4UserDefined_factory(); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/WindingConnection.cpp b/CGMES_2.4.13_18DEC2013/WindingConnection.cpp deleted file mode 100644 index 680cd9da2..000000000 --- a/CGMES_2.4.13_18DEC2013/WindingConnection.cpp +++ /dev/null @@ -1,62 +0,0 @@ -#include -#include -#include "WindingConnection.hpp" - -using namespace CIMPP; - -namespace CIMPP { - std::istream& operator>>(std::istream& lop, CIMPP::WindingConnection& rop) - { - std::string EnumSymbol; - lop >> EnumSymbol; - - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "WindingConnection") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "D") - { - rop = WindingConnection::D; - return lop; - } - if(EnumSymbol == "Y") - { - rop = WindingConnection::Y; - return lop; - } - if(EnumSymbol == "Z") - { - rop = WindingConnection::Z; - return lop; - } - if(EnumSymbol == "Yn") - { - rop = WindingConnection::Yn; - return lop; - } - if(EnumSymbol == "Zn") - { - rop = WindingConnection::Zn; - return lop; - } - if(EnumSymbol == "A") - { - rop = WindingConnection::A; - return lop; - } - if(EnumSymbol == "I") - { - rop = WindingConnection::I; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; - } -} - diff --git a/CGMES_2.4.13_18DEC2013/WindingConnection.hpp b/CGMES_2.4.13_18DEC2013/WindingConnection.hpp deleted file mode 100644 index ba7c40617..000000000 --- a/CGMES_2.4.13_18DEC2013/WindingConnection.hpp +++ /dev/null @@ -1,41 +0,0 @@ -#ifndef WindingConnection_H -#define WindingConnection_H - -namespace CIMPP { - /* - Winding connection type. - */ - enum class WindingConnection - { - /** - * Delta - */ - D, - /** - * Wye - */ - Y, - /** - * ZigZag - */ - Z, - /** - * Wye, with neutral brought out for grounding. - */ - Yn, - /** - * ZigZag, with neutral brought out for grounding. - */ - Zn, - /** - * Autotransformer common winding - */ - A, - /** - * Independent winding, for single-phase connections - */ - I, - }; - std::istream& operator>>(std::istream& lop, CIMPP::WindingConnection& rop); -} -#endif diff --git a/CGMES_2.4.13_18DEC2013/assignments.cpp b/CGMES_2.4.13_18DEC2013/assignments.cpp deleted file mode 100644 index 887a72dea..000000000 --- a/CGMES_2.4.13_18DEC2013/assignments.cpp +++ /dev/null @@ -1,41 +0,0 @@ -#include -#include -#include - -#include "Folders.hpp" -#include "CIMClassList.hpp" -#include "assignments.hpp" -#include -#include "BaseClass.hpp" - -using namespace CIMPP; - -static std::unordered_map dynamic_switch_factory(); -static std::unordered_map dynamic_switch = dynamic_switch_factory(); - -bool assign(BaseClass* CIMObj, const std::string& CIMAttrName, const std::string& Value) -{ - std::unordered_map::iterator prim_it = dynamic_switch.find(CIMAttrName); - if(prim_it != dynamic_switch.end()) { - std::stringstream str; - str << Value; - return (*prim_it->second)(str, CIMObj); - } - -#ifdef DEBUG - std::cerr << "Couldn't assign attribute with value: " << Value << " to " << CIMAttrName << " in object of type " << CIMObj->debugString() << std::endl; -#endif - return false; -} - -std::unordered_map dynamic_switch_factory() -{ - std::unordered_map assign_map; - for (const BaseClassDefiner& CIMClass : CIMClassList) - { - CIMClass.addPrimitiveAssignFnsToMap(assign_map); - } - - return assign_map; -} - diff --git a/CGMES_2.4.13_18DEC2013/assignments.hpp b/CGMES_2.4.13_18DEC2013/assignments.hpp deleted file mode 100644 index 1492ee219..000000000 --- a/CGMES_2.4.13_18DEC2013/assignments.hpp +++ /dev/null @@ -1,11 +0,0 @@ -#ifndef ASSIGN_HPP -#define ASSIGN_HPP - -#include -#include "BaseClass.hpp" - -using namespace CIMPP; - -bool assign(BaseClass* CIMObj, const std::string& CIMAttrName, const std::string& Value); - -#endif // ASSIGN_HPP diff --git a/CMakeLists.txt b/CMakeLists.txt index c3fd15c63..4d5baf008 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,11 +10,6 @@ if(USE_CIM_VERSION STREQUAL "CGMES_2.4.15_27JAN2020") elseif(USE_CIM_VERSION STREQUAL "CGMES_2.4.15_16FEB2016") set(CGMES_BUILD ON) set(CIM_NAME "CGMES 2_4_15 16_02_2016") -elseif(USE_CIM_VERSION STREQUAL "CGMES_2.4.13_18DEC2013") - set(CGMES_BUILD ON) - set(CIM_NAME "CGMES 2_4_13 18_12_2013") -elseif(USE_CIM_VERSION STREQUAL "IEC61970_17v07") - set(CIM_NAME "IEC61970 17v07") elseif(USE_CIM_VERSION STREQUAL "IEC61970_17v23") set(CIM_NAME "IEC61970 17v23") elseif(USE_CIM_VERSION STREQUAL "IEC61970_17v23_IEC61968_13v11") diff --git a/IEC61970_17v07/BaseClass.h b/IEC61970_17v07/BaseClass.h deleted file mode 100644 index d54a29ced..000000000 --- a/IEC61970_17v07/BaseClass.h +++ /dev/null @@ -1,14 +0,0 @@ -#ifndef BASECLASS_H -#define BASECLASS_H - -// Base Class for CIM - -class BaseClass -{ -public: - BaseClass(){}; - virtual ~BaseClass(){}; -}; - -#endif // BASECLASS_H - diff --git a/IEC61970_17v07/CIMFactory.cpp b/IEC61970_17v07/CIMFactory.cpp deleted file mode 100644 index 31e630765..000000000 --- a/IEC61970_17v07/CIMFactory.cpp +++ /dev/null @@ -1,3539 +0,0 @@ -#include "CIMFactory.hpp" -#include "Folders.hpp" - -static std::unordered_map initialize(); -std::unordered_map CIMFactory::factory_map = initialize(); - -BaseClass* CIMFactory::CreateNew(const std::string& name) -{ - std::unordered_map::iterator it = factory_map.find(name); - if(it != factory_map.end()) - return (*it->second)(); - else - return nullptr; -} - -bool CIMFactory::IsCIMClass(const std::string& name) -{ - std::unordered_map::iterator it = factory_map.find(name); - if(it == factory_map.end()) - return false; - else - return true; -} - - -// cim:IEC61970CIMVersion -BaseClass* IEC61970CIMVersion_factory() -{ - return new IEC61970::IEC61970CIMVersion; -} - -// cim:RegularTimePoint -BaseClass* RegularTimePoint_factory() -{ - return new IEC61970::Base::Core::RegularTimePoint; -} - -// cim:IdentifiedObject -BaseClass* IdentifiedObject_factory() -{ - return new IEC61970::Base::Core::IdentifiedObject; -} - -// cim:BasicIntervalSchedule -BaseClass* BasicIntervalSchedule_factory() -{ - return new IEC61970::Base::Core::BasicIntervalSchedule; -} - -// cim:RegularIntervalSchedule -BaseClass* RegularIntervalSchedule_factory() -{ - return new IEC61970::Base::Core::RegularIntervalSchedule; -} - -// cim:HydroPumpOpSchedule -BaseClass* HydroPumpOpSchedule_factory() -{ - return new IEC61970::Base::Generation::Production::HydroPumpOpSchedule; -} - -// cim:Control -BaseClass* Control_factory() -{ - return new IEC61970::Base::Meas::Control; -} - -// cim:ACDCTerminal -BaseClass* ACDCTerminal_factory() -{ - return new IEC61970::Base::Core::ACDCTerminal; -} - -// cim:Measurement -BaseClass* Measurement_factory() -{ - return new IEC61970::Base::Meas::Measurement; -} - -// cim:PSRType -BaseClass* PSRType_factory() -{ - return new IEC61970::Base::Core::PSRType; -} - -// cim:PowerSystemResource -BaseClass* PowerSystemResource_factory() -{ - return new IEC61970::Base::Core::PowerSystemResource; -} - -// cim:Equipment -BaseClass* Equipment_factory() -{ - return new IEC61970::Base::Core::Equipment; -} - -// cim:HydroPump -BaseClass* HydroPump_factory() -{ - return new IEC61970::Base::Generation::Production::HydroPump; -} - -// cim:RegulatingControl -BaseClass* RegulatingControl_factory() -{ - return new IEC61970::Base::Wires::RegulatingControl; -} - -// cim:ConductingEquipment -BaseClass* ConductingEquipment_factory() -{ - return new IEC61970::Base::Core::ConductingEquipment; -} - -// cim:RegulatingCondEq -BaseClass* RegulatingCondEq_factory() -{ - return new IEC61970::Base::Wires::RegulatingCondEq; -} - -// cim:RotatingMachine -BaseClass* RotatingMachine_factory() -{ - return new IEC61970::Base::Wires::RotatingMachine; -} - -// cim:AsynchronousMachine -BaseClass* AsynchronousMachine_factory() -{ - return new IEC61970::Base::Wires::AsynchronousMachine; -} - -// cim:DynamicsFunctionBlock -BaseClass* DynamicsFunctionBlock_factory() -{ - return new IEC61970::Dynamics::StandardModels::DynamicsFunctionBlock; -} - -// cim:RotatingMachineDynamics -BaseClass* RotatingMachineDynamics_factory() -{ - return new IEC61970::Dynamics::StandardModels::RotatingMachineDynamics; -} - -// cim:AsynchronousMachineDynamics -BaseClass* AsynchronousMachineDynamics_factory() -{ - return new IEC61970::Dynamics::StandardModels::AsynchronousMachineDynamics::AsynchronousMachineDynamics; -} - -// cim:TurbineGovernorDynamics -BaseClass* TurbineGovernorDynamics_factory() -{ - return new IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::TurbineGovernorDynamics; -} - -// cim:TurbineGovernorUserDefined -BaseClass* TurbineGovernorUserDefined_factory() -{ - return new IEC61970::Dynamics::UserDefinedModels::TurbineGovernorUserDefined; -} - -// cim:SynchronousMachine -BaseClass* SynchronousMachine_factory() -{ - return new IEC61970::Base::Wires::SynchronousMachine; -} - -// cim:SynchronousMachineDynamics -BaseClass* SynchronousMachineDynamics_factory() -{ - return new IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::SynchronousMachineDynamics; -} - -// cim:ExcitationSystemDynamics -BaseClass* ExcitationSystemDynamics_factory() -{ - return new IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics; -} - -// cim:ConnectivityNodeContainer -BaseClass* ConnectivityNodeContainer_factory() -{ - return new IEC61970::Base::Core::ConnectivityNodeContainer; -} - -// cim:ConnectivityNode -BaseClass* ConnectivityNode_factory() -{ - return new IEC61970::Base::Core::ConnectivityNode; -} - -// cim:Terminal -BaseClass* Terminal_factory() -{ - return new IEC61970::Base::Core::Terminal; -} - -// cim:RemoteInputSignal -BaseClass* RemoteInputSignal_factory() -{ - return new IEC61970::Dynamics::StandardInterconnections::RemoteInputSignal; -} - -// cim:PFVArControllerType1Dynamics -BaseClass* PFVArControllerType1Dynamics_factory() -{ - return new IEC61970::Dynamics::StandardModels::PFVArControllerType1Dynamics::PFVArControllerType1Dynamics; -} - -// cim:VoltageAdjusterDynamics -BaseClass* VoltageAdjusterDynamics_factory() -{ - return new IEC61970::Dynamics::StandardModels::VoltageAdjusterDynamics::VoltageAdjusterDynamics; -} - -// cim:VoltageAdjusterUserDefined -BaseClass* VoltageAdjusterUserDefined_factory() -{ - return new IEC61970::Dynamics::UserDefinedModels::VoltageAdjusterUserDefined; -} - -// cim:AsynchronousMachineUserDefined -BaseClass* AsynchronousMachineUserDefined_factory() -{ - return new IEC61970::Dynamics::UserDefinedModels::AsynchronousMachineUserDefined; -} - -// cim:UnderexcitationLimiterDynamics -BaseClass* UnderexcitationLimiterDynamics_factory() -{ - return new IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcitationLimiterDynamics; -} - -// cim:UnderexcitationLimiterUserDefined -BaseClass* UnderexcitationLimiterUserDefined_factory() -{ - return new IEC61970::Dynamics::UserDefinedModels::UnderexcitationLimiterUserDefined; -} - -// cim:VoltageCompensatorDynamics -BaseClass* VoltageCompensatorDynamics_factory() -{ - return new IEC61970::Dynamics::StandardModels::VoltageCompensatorDynamics::VoltageCompensatorDynamics; -} - -// cim:VoltageCompensatorUserDefined -BaseClass* VoltageCompensatorUserDefined_factory() -{ - return new IEC61970::Dynamics::UserDefinedModels::VoltageCompensatorUserDefined; -} - -// cim:PFVArControllerType1UserDefined -BaseClass* PFVArControllerType1UserDefined_factory() -{ - return new IEC61970::Dynamics::UserDefinedModels::PFVArControllerType1UserDefined; -} - -// cim:OverexcitationLimiterDynamics -BaseClass* OverexcitationLimiterDynamics_factory() -{ - return new IEC61970::Dynamics::StandardModels::OverexcitationLimiterDynamics::OverexcitationLimiterDynamics; -} - -// cim:OverexcitationLimiterUserDefined -BaseClass* OverexcitationLimiterUserDefined_factory() -{ - return new IEC61970::Dynamics::UserDefinedModels::OverexcitationLimiterUserDefined; -} - -// cim:PowerSystemStabilizerDynamics -BaseClass* PowerSystemStabilizerDynamics_factory() -{ - return new IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PowerSystemStabilizerDynamics; -} - -// cim:PowerSystemStabilizerUserDefined -BaseClass* PowerSystemStabilizerUserDefined_factory() -{ - return new IEC61970::Dynamics::UserDefinedModels::PowerSystemStabilizerUserDefined; -} - -// cim:DiscontinuousExcitationControlDynamics -BaseClass* DiscontinuousExcitationControlDynamics_factory() -{ - return new IEC61970::Dynamics::StandardModels::DiscontinuousExcitationControlDynamics::DiscontinuousExcitationControlDynamics; -} - -// cim:DiscontinuousExcitationControlUserDefined -BaseClass* DiscontinuousExcitationControlUserDefined_factory() -{ - return new IEC61970::Dynamics::UserDefinedModels::DiscontinuousExcitationControlUserDefined; -} - -// cim:PFVArControllerType2Dynamics -BaseClass* PFVArControllerType2Dynamics_factory() -{ - return new IEC61970::Dynamics::StandardModels::PFVArControllerType2Dynamics::PFVArControllerType2Dynamics; -} - -// cim:PFVArControllerType2UserDefined -BaseClass* PFVArControllerType2UserDefined_factory() -{ - return new IEC61970::Dynamics::UserDefinedModels::PFVArControllerType2UserDefined; -} - -// cim:MechanicalLoadDynamics -BaseClass* MechanicalLoadDynamics_factory() -{ - return new IEC61970::Dynamics::StandardModels::MechanicalLoadDynamics::MechanicalLoadDynamics; -} - -// cim:MechanicalLoadUserDefined -BaseClass* MechanicalLoadUserDefined_factory() -{ - return new IEC61970::Dynamics::UserDefinedModels::MechanicalLoadUserDefined; -} - -// cim:SynchronousMachineUserDefined -BaseClass* SynchronousMachineUserDefined_factory() -{ - return new IEC61970::Dynamics::UserDefinedModels::SynchronousMachineUserDefined; -} - -// cim:LoadResponseCharacteristic -BaseClass* LoadResponseCharacteristic_factory() -{ - return new IEC61970::Base::LoadModel::LoadResponseCharacteristic; -} - -// cim:EnergyConsumerPhase -BaseClass* EnergyConsumerPhase_factory() -{ - return new IEC61970::Base::Wires::EnergyConsumerPhase; -} - -// cim:EnergyConsumer -BaseClass* EnergyConsumer_factory() -{ - return new IEC61970::Base::Wires::EnergyConsumer; -} - -// cim:LoadDynamics -BaseClass* LoadDynamics_factory() -{ - return new IEC61970::Dynamics::StandardModels::LoadDynamics::LoadDynamics; -} - -// cim:LoadUserDefined -BaseClass* LoadUserDefined_factory() -{ - return new IEC61970::Dynamics::UserDefinedModels::LoadUserDefined; -} - -// cim:TurbineLoadControllerDynamics -BaseClass* TurbineLoadControllerDynamics_factory() -{ - return new IEC61970::Dynamics::StandardModels::TurbineLoadControllerDynamics::TurbineLoadControllerDynamics; -} - -// cim:TurbineLoadControllerUserDefined -BaseClass* TurbineLoadControllerUserDefined_factory() -{ - return new IEC61970::Dynamics::UserDefinedModels::TurbineLoadControllerUserDefined; -} - -// cim:ExcitationSystemUserDefined -BaseClass* ExcitationSystemUserDefined_factory() -{ - return new IEC61970::Dynamics::UserDefinedModels::ExcitationSystemUserDefined; -} - -// cim:ProprietaryParameterDynamics -BaseClass* ProprietaryParameterDynamics_factory() -{ - return new IEC61970::Dynamics::UserDefinedModels::ProprietaryParameterDynamics; -} - -// cim:NonRotatingEnergy -BaseClass* NonRotatingEnergy_factory() -{ - return new IEC61970::Base::Wires::NonRotatingEnergy; -} - -// cim:WindTurbineType3or4 -BaseClass* WindTurbineType3or4_factory() -{ - return new IEC61970::Base::Wires::WindTurbineType3or4; -} - -// cim:WindTurbineType3or4Dynamics -BaseClass* WindTurbineType3or4Dynamics_factory() -{ - return new IEC61970::Dynamics::StandardModels::WindDynamics::WindTurbineType3or4Dynamics; -} - -// cim:WindPlantDynamics -BaseClass* WindPlantDynamics_factory() -{ - return new IEC61970::Dynamics::StandardModels::WindDynamics::WindPlantDynamics; -} - -// cim:WindPlantUserDefined -BaseClass* WindPlantUserDefined_factory() -{ - return new IEC61970::Dynamics::UserDefinedModels::WindPlantUserDefined; -} - -// cim:WindType3or4UserDefined -BaseClass* WindType3or4UserDefined_factory() -{ - return new IEC61970::Dynamics::UserDefinedModels::WindType3or4UserDefined; -} - -// cim:WindTurbineType1or2Dynamics -BaseClass* WindTurbineType1or2Dynamics_factory() -{ - return new IEC61970::Dynamics::StandardModels::WindDynamics::WindTurbineType1or2Dynamics; -} - -// cim:WindType1or2UserDefined -BaseClass* WindType1or2UserDefined_factory() -{ - return new IEC61970::Dynamics::UserDefinedModels::WindType1or2UserDefined; -} - -// cim:WindTurbineType1or2IEC -BaseClass* WindTurbineType1or2IEC_factory() -{ - return new IEC61970::Dynamics::StandardModels::WindDynamics::WindTurbineType1or2IEC; -} - -// cim:WindGenTurbineType2IEC -BaseClass* WindGenTurbineType2IEC_factory() -{ - return new IEC61970::Dynamics::StandardModels::WindDynamics::WindGenTurbineType2IEC; -} - -// cim:WindContRotorRIEC -BaseClass* WindContRotorRIEC_factory() -{ - return new IEC61970::Dynamics::StandardModels::WindDynamics::WindContRotorRIEC; -} - -// cim:WindTurbineType3or4IEC -BaseClass* WindTurbineType3or4IEC_factory() -{ - return new IEC61970::Dynamics::StandardModels::WindDynamics::WindTurbineType3or4IEC; -} - -// cim:WindContCurrLimIEC -BaseClass* WindContCurrLimIEC_factory() -{ - return new IEC61970::Dynamics::StandardModels::WindDynamics::WindContCurrLimIEC; -} - -// cim:WindPlantReactiveControlIEC -BaseClass* WindPlantReactiveControlIEC_factory() -{ - return new IEC61970::Dynamics::StandardModels::WindDynamics::WindPlantReactiveControlIEC; -} - -// cim:WindPlantIEC -BaseClass* WindPlantIEC_factory() -{ - return new IEC61970::Dynamics::StandardModels::WindDynamics::WindPlantIEC; -} - -// cim:WindPlantFreqPcontrolIEC -BaseClass* WindPlantFreqPcontrolIEC_factory() -{ - return new IEC61970::Dynamics::StandardModels::WindDynamics::WindPlantFreqPcontrolIEC; -} - -// cim:WindGenTurbineType3IEC -BaseClass* WindGenTurbineType3IEC_factory() -{ - return new IEC61970::Dynamics::StandardModels::WindDynamics::WindGenTurbineType3IEC; -} - -// cim:WindContPType3IEC -BaseClass* WindContPType3IEC_factory() -{ - return new IEC61970::Dynamics::StandardModels::WindDynamics::WindContPType3IEC; -} - -// cim:WindDynamicsLookupTable -BaseClass* WindDynamicsLookupTable_factory() -{ - return new IEC61970::Dynamics::StandardModels::WindDynamics::WindDynamicsLookupTable; -} - -// cim:WindAeroLinearIEC -BaseClass* WindAeroLinearIEC_factory() -{ - return new IEC61970::Dynamics::StandardModels::WindDynamics::WindAeroLinearIEC; -} - -// cim:WindGenType4IEC -BaseClass* WindGenType4IEC_factory() -{ - return new IEC61970::Dynamics::StandardModels::WindDynamics::WindGenType4IEC; -} - -// cim:WindTurbineType4aIEC -BaseClass* WindTurbineType4aIEC_factory() -{ - return new IEC61970::Dynamics::StandardModels::WindDynamics::WindTurbineType4aIEC; -} - -// cim:WindContPType4aIEC -BaseClass* WindContPType4aIEC_factory() -{ - return new IEC61970::Dynamics::StandardModels::WindDynamics::WindContPType4aIEC; -} - -// cim:WindTurbineType4bIEC -BaseClass* WindTurbineType4bIEC_factory() -{ - return new IEC61970::Dynamics::StandardModels::WindDynamics::WindTurbineType4bIEC; -} - -// cim:WindMechIEC -BaseClass* WindMechIEC_factory() -{ - return new IEC61970::Dynamics::StandardModels::WindDynamics::WindMechIEC; -} - -// cim:WindGenTurbineType3bIEC -BaseClass* WindGenTurbineType3bIEC_factory() -{ - return new IEC61970::Dynamics::StandardModels::WindDynamics::WindGenTurbineType3bIEC; -} - -// cim:WindGenTurbineType3aIEC -BaseClass* WindGenTurbineType3aIEC_factory() -{ - return new IEC61970::Dynamics::StandardModels::WindDynamics::WindGenTurbineType3aIEC; -} - -// cim:WindPitchContEmulIEC -BaseClass* WindPitchContEmulIEC_factory() -{ - return new IEC61970::Dynamics::StandardModels::WindDynamics::WindPitchContEmulIEC; -} - -// cim:WindContPitchAngleIEC -BaseClass* WindContPitchAngleIEC_factory() -{ - return new IEC61970::Dynamics::StandardModels::WindDynamics::WindContPitchAngleIEC; -} - -// cim:WindContQIEC -BaseClass* WindContQIEC_factory() -{ - return new IEC61970::Dynamics::StandardModels::WindDynamics::WindContQIEC; -} - -// cim:WindGenTurbineType1IEC -BaseClass* WindGenTurbineType1IEC_factory() -{ - return new IEC61970::Dynamics::StandardModels::WindDynamics::WindGenTurbineType1IEC; -} - -// cim:WindContPType4bIEC -BaseClass* WindContPType4bIEC_factory() -{ - return new IEC61970::Dynamics::StandardModels::WindDynamics::WindContPType4bIEC; -} - -// cim:WindAeroConstIEC -BaseClass* WindAeroConstIEC_factory() -{ - return new IEC61970::Dynamics::StandardModels::WindDynamics::WindAeroConstIEC; -} - -// cim:WindProtectionIEC -BaseClass* WindProtectionIEC_factory() -{ - return new IEC61970::Dynamics::StandardModels::WindDynamics::WindProtectionIEC; -} - -// cim:Pss1A -BaseClass* Pss1A_factory() -{ - return new IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss1A; -} - -// cim:PssSK -BaseClass* PssSK_factory() -{ - return new IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssSK; -} - -// cim:PssPTIST3 -BaseClass* PssPTIST3_factory() -{ - return new IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssPTIST3; -} - -// cim:PssIEEE4B -BaseClass* PssIEEE4B_factory() -{ - return new IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B; -} - -// cim:PssPTIST1 -BaseClass* PssPTIST1_factory() -{ - return new IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssPTIST1; -} - -// cim:Pss2B -BaseClass* Pss2B_factory() -{ - return new IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss2B; -} - -// cim:PssIEEE3B -BaseClass* PssIEEE3B_factory() -{ - return new IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE3B; -} - -// cim:Pss2ST -BaseClass* Pss2ST_factory() -{ - return new IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss2ST; -} - -// cim:PssWECC -BaseClass* PssWECC_factory() -{ - return new IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssWECC; -} - -// cim:PssELIN2 -BaseClass* PssELIN2_factory() -{ - return new IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssELIN2; -} - -// cim:Pss1 -BaseClass* Pss1_factory() -{ - return new IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss1; -} - -// cim:PssIEEE2B -BaseClass* PssIEEE2B_factory() -{ - return new IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE2B; -} - -// cim:Pss5 -BaseClass* Pss5_factory() -{ - return new IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss5; -} - -// cim:PssSB4 -BaseClass* PssSB4_factory() -{ - return new IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssSB4; -} - -// cim:PssSH -BaseClass* PssSH_factory() -{ - return new IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssSH; -} - -// cim:PssIEEE1A -BaseClass* PssIEEE1A_factory() -{ - return new IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE1A; -} - -// cim:ExcREXS -BaseClass* ExcREXS_factory() -{ - return new IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcREXS; -} - -// cim:ExcIEEEAC1A -BaseClass* ExcIEEEAC1A_factory() -{ - return new IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC1A; -} - -// cim:ExcIEEEAC7B -BaseClass* ExcIEEEAC7B_factory() -{ - return new IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC7B; -} - -// cim:ExcIEEEST2A -BaseClass* ExcIEEEST2A_factory() -{ - return new IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST2A; -} - -// cim:ExcIEEEAC5A -BaseClass* ExcIEEEAC5A_factory() -{ - return new IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC5A; -} - -// cim:ExcAVR3 -BaseClass* ExcAVR3_factory() -{ - return new IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR3; -} - -// cim:ExcST4B -BaseClass* ExcST4B_factory() -{ - return new IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST4B; -} - -// cim:ExcST7B -BaseClass* ExcST7B_factory() -{ - return new IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST7B; -} - -// cim:ExcIEEEDC1A -BaseClass* ExcIEEEDC1A_factory() -{ - return new IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC1A; -} - -// cim:ExcIEEEAC4A -BaseClass* ExcIEEEAC4A_factory() -{ - return new IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC4A; -} - -// cim:ExcIEEEST4B -BaseClass* ExcIEEEST4B_factory() -{ - return new IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST4B; -} - -// cim:ExcIEEEAC2A -BaseClass* ExcIEEEAC2A_factory() -{ - return new IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC2A; -} - -// cim:ExcBBC -BaseClass* ExcBBC_factory() -{ - return new IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcBBC; -} - -// cim:ExcAVR2 -BaseClass* ExcAVR2_factory() -{ - return new IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR2; -} - -// cim:ExcAC5A -BaseClass* ExcAC5A_factory() -{ - return new IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC5A; -} - -// cim:ExcAVR5 -BaseClass* ExcAVR5_factory() -{ - return new IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR5; -} - -// cim:ExcHU -BaseClass* ExcHU_factory() -{ - return new IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcHU; -} - -// cim:ExcANS -BaseClass* ExcANS_factory() -{ - return new IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcANS; -} - -// cim:ExcIEEEST3A -BaseClass* ExcIEEEST3A_factory() -{ - return new IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST3A; -} - -// cim:ExcAC4A -BaseClass* ExcAC4A_factory() -{ - return new IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC4A; -} - -// cim:ExcDC3A1 -BaseClass* ExcDC3A1_factory() -{ - return new IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC3A1; -} - -// cim:ExcAC1A -BaseClass* ExcAC1A_factory() -{ - return new IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC1A; -} - -// cim:ExcDC3A -BaseClass* ExcDC3A_factory() -{ - return new IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC3A; -} - -// cim:ExcAC3A -BaseClass* ExcAC3A_factory() -{ - return new IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC3A; -} - -// cim:ExcIEEEDC2A -BaseClass* ExcIEEEDC2A_factory() -{ - return new IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC2A; -} - -// cim:ExcST2A -BaseClass* ExcST2A_factory() -{ - return new IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST2A; -} - -// cim:ExcCZ -BaseClass* ExcCZ_factory() -{ - return new IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcCZ; -} - -// cim:ExcIEEEST1A -BaseClass* ExcIEEEST1A_factory() -{ - return new IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST1A; -} - -// cim:ExcAC2A -BaseClass* ExcAC2A_factory() -{ - return new IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC2A; -} - -// cim:ExcIEEEAC8B -BaseClass* ExcIEEEAC8B_factory() -{ - return new IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC8B; -} - -// cim:ExcELIN1 -BaseClass* ExcELIN1_factory() -{ - return new IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcELIN1; -} - -// cim:ExcDC1A -BaseClass* ExcDC1A_factory() -{ - return new IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC1A; -} - -// cim:ExcSCRX -BaseClass* ExcSCRX_factory() -{ - return new IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcSCRX; -} - -// cim:ExcIEEEDC3A -BaseClass* ExcIEEEDC3A_factory() -{ - return new IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC3A; -} - -// cim:ExcIEEEAC6A -BaseClass* ExcIEEEAC6A_factory() -{ - return new IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC6A; -} - -// cim:ExcELIN2 -BaseClass* ExcELIN2_factory() -{ - return new IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcELIN2; -} - -// cim:ExcSK -BaseClass* ExcSK_factory() -{ - return new IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcSK; -} - -// cim:ExcIEEEST7B -BaseClass* ExcIEEEST7B_factory() -{ - return new IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST7B; -} - -// cim:ExcST1A -BaseClass* ExcST1A_factory() -{ - return new IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST1A; -} - -// cim:ExcIEEEST6B -BaseClass* ExcIEEEST6B_factory() -{ - return new IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST6B; -} - -// cim:ExcDC2A -BaseClass* ExcDC2A_factory() -{ - return new IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC2A; -} - -// cim:ExcOEX3T -BaseClass* ExcOEX3T_factory() -{ - return new IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcOEX3T; -} - -// cim:ExcIEEEST5B -BaseClass* ExcIEEEST5B_factory() -{ - return new IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST5B; -} - -// cim:ExcAVR4 -BaseClass* ExcAVR4_factory() -{ - return new IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR4; -} - -// cim:ExcSEXS -BaseClass* ExcSEXS_factory() -{ - return new IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcSEXS; -} - -// cim:ExcIEEEDC4B -BaseClass* ExcIEEEDC4B_factory() -{ - return new IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC4B; -} - -// cim:ExcAVR7 -BaseClass* ExcAVR7_factory() -{ - return new IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR7; -} - -// cim:ExcPIC -BaseClass* ExcPIC_factory() -{ - return new IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcPIC; -} - -// cim:ExcST6B -BaseClass* ExcST6B_factory() -{ - return new IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST6B; -} - -// cim:ExcIEEEAC3A -BaseClass* ExcIEEEAC3A_factory() -{ - return new IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC3A; -} - -// cim:ExcAVR1 -BaseClass* ExcAVR1_factory() -{ - return new IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR1; -} - -// cim:ExcST3A -BaseClass* ExcST3A_factory() -{ - return new IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST3A; -} - -// cim:ExcAC8B -BaseClass* ExcAC8B_factory() -{ - return new IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC8B; -} - -// cim:ExcAC6A -BaseClass* ExcAC6A_factory() -{ - return new IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC6A; -} - -// cim:MechLoad1 -BaseClass* MechLoad1_factory() -{ - return new IEC61970::Dynamics::StandardModels::MechanicalLoadDynamics::MechLoad1; -} - -// cim:PFVArType1IEEEPFController -BaseClass* PFVArType1IEEEPFController_factory() -{ - return new IEC61970::Dynamics::StandardModels::PFVArControllerType1Dynamics::PFVArType1IEEEPFController; -} - -// cim:PFVArType1IEEEVArController -BaseClass* PFVArType1IEEEVArController_factory() -{ - return new IEC61970::Dynamics::StandardModels::PFVArControllerType1Dynamics::PFVArType1IEEEVArController; -} - -// cim:AsynchronousMachineTimeConstantReactance -BaseClass* AsynchronousMachineTimeConstantReactance_factory() -{ - return new IEC61970::Dynamics::StandardModels::AsynchronousMachineDynamics::AsynchronousMachineTimeConstantReactance; -} - -// cim:AsynchronousMachineEquivalentCircuit -BaseClass* AsynchronousMachineEquivalentCircuit_factory() -{ - return new IEC61970::Dynamics::StandardModels::AsynchronousMachineDynamics::AsynchronousMachineEquivalentCircuit; -} - -// cim:DiscExcContIEEEDEC3A -BaseClass* DiscExcContIEEEDEC3A_factory() -{ - return new IEC61970::Dynamics::StandardModels::DiscontinuousExcitationControlDynamics::DiscExcContIEEEDEC3A; -} - -// cim:DiscExcContIEEEDEC2A -BaseClass* DiscExcContIEEEDEC2A_factory() -{ - return new IEC61970::Dynamics::StandardModels::DiscontinuousExcitationControlDynamics::DiscExcContIEEEDEC2A; -} - -// cim:DiscExcContIEEEDEC1A -BaseClass* DiscExcContIEEEDEC1A_factory() -{ - return new IEC61970::Dynamics::StandardModels::DiscontinuousExcitationControlDynamics::DiscExcContIEEEDEC1A; -} - -// cim:GovSteamSGO -BaseClass* GovSteamSGO_factory() -{ - return new IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamSGO; -} - -// cim:GovSteam1 -BaseClass* GovSteam1_factory() -{ - return new IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteam1; -} - -// cim:GovSteamEU -BaseClass* GovSteamEU_factory() -{ - return new IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamEU; -} - -// cim:GovHydroPID2 -BaseClass* GovHydroPID2_factory() -{ - return new IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPID2; -} - -// cim:GovHydroWPID -BaseClass* GovHydroWPID_factory() -{ - return new IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWPID; -} - -// cim:GovGAST4 -BaseClass* GovGAST4_factory() -{ - return new IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST4; -} - -// cim:GovHydro4 -BaseClass* GovHydro4_factory() -{ - return new IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro4; -} - -// cim:GovHydroWEH -BaseClass* GovHydroWEH_factory() -{ - return new IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWEH; -} - -// cim:GovSteamIEEE1 -BaseClass* GovSteamIEEE1_factory() -{ - return new IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamIEEE1; -} - -// cim:GovHydro3 -BaseClass* GovHydro3_factory() -{ - return new IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro3; -} - -// cim:GovGAST -BaseClass* GovGAST_factory() -{ - return new IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST; -} - -// cim:GovGAST3 -BaseClass* GovGAST3_factory() -{ - return new IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST3; -} - -// cim:GovSteam2 -BaseClass* GovSteam2_factory() -{ - return new IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteam2; -} - -// cim:GovSteamFV4 -BaseClass* GovSteamFV4_factory() -{ - return new IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV4; -} - -// cim:GovGAST1 -BaseClass* GovGAST1_factory() -{ - return new IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST1; -} - -// cim:GovSteamFV3 -BaseClass* GovSteamFV3_factory() -{ - return new IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV3; -} - -// cim:GovHydro1 -BaseClass* GovHydro1_factory() -{ - return new IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro1; -} - -// cim:GovHydro2 -BaseClass* GovHydro2_factory() -{ - return new IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro2; -} - -// cim:GovCT1 -BaseClass* GovCT1_factory() -{ - return new IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT1; -} - -// cim:GovHydroIEEE0 -BaseClass* GovHydroIEEE0_factory() -{ - return new IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroIEEE0; -} - -// cim:GovSteam0 -BaseClass* GovSteam0_factory() -{ - return new IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteam0; -} - -// cim:GovSteamFV2 -BaseClass* GovSteamFV2_factory() -{ - return new IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV2; -} - -// cim:GovSteamCC -BaseClass* GovSteamCC_factory() -{ - return new IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamCC; -} - -// cim:GovGAST2 -BaseClass* GovGAST2_factory() -{ - return new IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST2; -} - -// cim:GovCT2 -BaseClass* GovCT2_factory() -{ - return new IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT2; -} - -// cim:GovHydroPelton -BaseClass* GovHydroPelton_factory() -{ - return new IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPelton; -} - -// cim:GovHydroFrancis -BaseClass* GovHydroFrancis_factory() -{ - return new IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroFrancis; -} - -// cim:GovHydroR -BaseClass* GovHydroR_factory() -{ - return new IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroR; -} - -// cim:GovGASTWD -BaseClass* GovGASTWD_factory() -{ - return new IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGASTWD; -} - -// cim:GovHydroPID -BaseClass* GovHydroPID_factory() -{ - return new IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPID; -} - -// cim:GovHydroIEEE2 -BaseClass* GovHydroIEEE2_factory() -{ - return new IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroIEEE2; -} - -// cim:GovHydroDD -BaseClass* GovHydroDD_factory() -{ - return new IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroDD; -} - -// cim:VCompIEEEType2 -BaseClass* VCompIEEEType2_factory() -{ - return new IEC61970::Dynamics::StandardModels::VoltageCompensatorDynamics::VCompIEEEType2; -} - -// cim:GenICompensationForGenJ -BaseClass* GenICompensationForGenJ_factory() -{ - return new IEC61970::Dynamics::StandardModels::VoltageCompensatorDynamics::GenICompensationForGenJ; -} - -// cim:VCompIEEEType1 -BaseClass* VCompIEEEType1_factory() -{ - return new IEC61970::Dynamics::StandardModels::VoltageCompensatorDynamics::VCompIEEEType1; -} - -// cim:LoadAggregate -BaseClass* LoadAggregate_factory() -{ - return new IEC61970::Dynamics::StandardModels::LoadDynamics::LoadAggregate; -} - -// cim:LoadMotor -BaseClass* LoadMotor_factory() -{ - return new IEC61970::Dynamics::StandardModels::LoadDynamics::LoadMotor; -} - -// cim:LoadGenericNonLinear -BaseClass* LoadGenericNonLinear_factory() -{ - return new IEC61970::Dynamics::StandardModels::LoadDynamics::LoadGenericNonLinear; -} - -// cim:LoadComposite -BaseClass* LoadComposite_factory() -{ - return new IEC61970::Dynamics::StandardModels::LoadDynamics::LoadComposite; -} - -// cim:LoadStatic -BaseClass* LoadStatic_factory() -{ - return new IEC61970::Dynamics::StandardModels::LoadDynamics::LoadStatic; -} - -// cim:TurbLCFB1 -BaseClass* TurbLCFB1_factory() -{ - return new IEC61970::Dynamics::StandardModels::TurbineLoadControllerDynamics::TurbLCFB1; -} - -// cim:OverexcLim2 -BaseClass* OverexcLim2_factory() -{ - return new IEC61970::Dynamics::StandardModels::OverexcitationLimiterDynamics::OverexcLim2; -} - -// cim:OverexcLimX2 -BaseClass* OverexcLimX2_factory() -{ - return new IEC61970::Dynamics::StandardModels::OverexcitationLimiterDynamics::OverexcLimX2; -} - -// cim:OverexcLimIEEE -BaseClass* OverexcLimIEEE_factory() -{ - return new IEC61970::Dynamics::StandardModels::OverexcitationLimiterDynamics::OverexcLimIEEE; -} - -// cim:OverexcLimX1 -BaseClass* OverexcLimX1_factory() -{ - return new IEC61970::Dynamics::StandardModels::OverexcitationLimiterDynamics::OverexcLimX1; -} - -// cim:SynchronousMachineDetailed -BaseClass* SynchronousMachineDetailed_factory() -{ - return new IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::SynchronousMachineDetailed; -} - -// cim:SynchronousMachineTimeConstantReactance -BaseClass* SynchronousMachineTimeConstantReactance_factory() -{ - return new IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::SynchronousMachineTimeConstantReactance; -} - -// cim:SynchronousMachineSimplified -BaseClass* SynchronousMachineSimplified_factory() -{ - return new IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::SynchronousMachineSimplified; -} - -// cim:SynchronousMachineEquivalentCircuit -BaseClass* SynchronousMachineEquivalentCircuit_factory() -{ - return new IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::SynchronousMachineEquivalentCircuit; -} - -// cim:VAdjIEEE -BaseClass* VAdjIEEE_factory() -{ - return new IEC61970::Dynamics::StandardModels::VoltageAdjusterDynamics::VAdjIEEE; -} - -// cim:PFVArType2IEEEPFController -BaseClass* PFVArType2IEEEPFController_factory() -{ - return new IEC61970::Dynamics::StandardModels::PFVArControllerType2Dynamics::PFVArType2IEEEPFController; -} - -// cim:PFVArType2Common1 -BaseClass* PFVArType2Common1_factory() -{ - return new IEC61970::Dynamics::StandardModels::PFVArControllerType2Dynamics::PFVArType2Common1; -} - -// cim:PFVArType2IEEEVArController -BaseClass* PFVArType2IEEEVArController_factory() -{ - return new IEC61970::Dynamics::StandardModels::PFVArControllerType2Dynamics::PFVArType2IEEEVArController; -} - -// cim:UnderexcLim2Simplified -BaseClass* UnderexcLim2Simplified_factory() -{ - return new IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLim2Simplified; -} - -// cim:UnderexcLimIEEE2 -BaseClass* UnderexcLimIEEE2_factory() -{ - return new IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimIEEE2; -} - -// cim:UnderexcLimIEEE1 -BaseClass* UnderexcLimIEEE1_factory() -{ - return new IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimIEEE1; -} - -// cim:UnderexcLimX2 -BaseClass* UnderexcLimX2_factory() -{ - return new IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimX2; -} - -// cim:UnderexcLimX1 -BaseClass* UnderexcLimX1_factory() -{ - return new IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimX1; -} - -// cim:EquivalentEquipment -BaseClass* EquivalentEquipment_factory() -{ - return new IEC61970::Base::Equivalents::EquivalentEquipment; -} - -// cim:EquivalentNetwork -BaseClass* EquivalentNetwork_factory() -{ - return new IEC61970::Base::Equivalents::EquivalentNetwork; -} - -// cim:EquivalentShunt -BaseClass* EquivalentShunt_factory() -{ - return new IEC61970::Base::Equivalents::EquivalentShunt; -} - -// cim:EquivalentBranch -BaseClass* EquivalentBranch_factory() -{ - return new IEC61970::Base::Equivalents::EquivalentBranch; -} - -// cim:EquivalentInjection -BaseClass* EquivalentInjection_factory() -{ - return new IEC61970::Base::Equivalents::EquivalentInjection; -} - -// cim:OperationalLimitType -BaseClass* OperationalLimitType_factory() -{ - return new IEC61970::Base::OperationalLimits::OperationalLimitType; -} - -// cim:OperationalLimit -BaseClass* OperationalLimit_factory() -{ - return new IEC61970::Base::OperationalLimits::OperationalLimit; -} - -// cim:ActivePowerLimit -BaseClass* ActivePowerLimit_factory() -{ - return new IEC61970::Base::OperationalLimits::ActivePowerLimit; -} - -// cim:OperationalLimitSet -BaseClass* OperationalLimitSet_factory() -{ - return new IEC61970::Base::OperationalLimits::OperationalLimitSet; -} - -// cim:VoltageLimit -BaseClass* VoltageLimit_factory() -{ - return new IEC61970::Base::OperationalLimits::VoltageLimit; -} - -// cim:CurrentLimit -BaseClass* CurrentLimit_factory() -{ - return new IEC61970::Base::OperationalLimits::CurrentLimit; -} - -// cim:BranchGroupTerminal -BaseClass* BranchGroupTerminal_factory() -{ - return new IEC61970::Base::OperationalLimits::BranchGroupTerminal; -} - -// cim:BranchGroup -BaseClass* BranchGroup_factory() -{ - return new IEC61970::Base::OperationalLimits::BranchGroup; -} - -// cim:ApparentPowerLimit -BaseClass* ApparentPowerLimit_factory() -{ - return new IEC61970::Base::OperationalLimits::ApparentPowerLimit; -} - -// cim:ReportingGroup -BaseClass* ReportingGroup_factory() -{ - return new IEC61970::Base::Core::ReportingGroup; -} - -// cim:BusNameMarker -BaseClass* BusNameMarker_factory() -{ - return new IEC61970::Base::Topology::BusNameMarker; -} - -// cim:BaseVoltage -BaseClass* BaseVoltage_factory() -{ - return new IEC61970::Base::Core::BaseVoltage; -} - -// cim:TopologicalNode -BaseClass* TopologicalNode_factory() -{ - return new IEC61970::Base::Topology::TopologicalNode; -} - -// cim:TopologicalIsland -BaseClass* TopologicalIsland_factory() -{ - return new IEC61970::Base::Topology::TopologicalIsland; -} - -// cim:DCTopologicalNode -BaseClass* DCTopologicalNode_factory() -{ - return new IEC61970::Base::Topology::DCTopologicalNode; -} - -// cim:MonthDayInterval -BaseClass* MonthDayInterval_factory() -{ - return new IEC61970::Base::Domain::MonthDayInterval; -} - -// cim:TimeInterval -BaseClass* TimeInterval_factory() -{ - return new IEC61970::Base::Domain::TimeInterval; -} - -// cim:DateInterval -BaseClass* DateInterval_factory() -{ - return new IEC61970::Base::Domain::DateInterval; -} - -// cim:DateTimeInterval -BaseClass* DateTimeInterval_factory() -{ - return new IEC61970::Base::Domain::DateTimeInterval; -} - -// cim:RemotePoint -BaseClass* RemotePoint_factory() -{ - return new IEC61970::Base::SCADA::RemotePoint; -} - -// cim:RemoteUnit -BaseClass* RemoteUnit_factory() -{ - return new IEC61970::Base::SCADA::RemoteUnit; -} - -// cim:CommunicationLink -BaseClass* CommunicationLink_factory() -{ - return new IEC61970::Base::SCADA::CommunicationLink; -} - -// cim:RemoteControl -BaseClass* RemoteControl_factory() -{ - return new IEC61970::Base::SCADA::RemoteControl; -} - -// cim:RemoteSource -BaseClass* RemoteSource_factory() -{ - return new IEC61970::Base::SCADA::RemoteSource; -} - -// cim:AuxiliaryEquipment -BaseClass* AuxiliaryEquipment_factory() -{ - return new IEC61970::Base::AuxiliaryEquipment::AuxiliaryEquipment; -} - -// cim:FaultIndicator -BaseClass* FaultIndicator_factory() -{ - return new IEC61970::Base::AuxiliaryEquipment::FaultIndicator; -} - -// cim:FlowSensor -BaseClass* FlowSensor_factory() -{ - return new IEC61970::Base::AuxiliaryEquipment::FlowSensor; -} - -// cim:Sensor -BaseClass* Sensor_factory() -{ - return new IEC61970::Base::AuxiliaryEquipment::Sensor; -} - -// cim:PotentialTransformer -BaseClass* PotentialTransformer_factory() -{ - return new IEC61970::Base::AuxiliaryEquipment::PotentialTransformer; -} - -// cim:WaveTrap -BaseClass* WaveTrap_factory() -{ - return new IEC61970::Base::AuxiliaryEquipment::WaveTrap; -} - -// cim:SurgeArrester -BaseClass* SurgeArrester_factory() -{ - return new IEC61970::Base::AuxiliaryEquipment::SurgeArrester; -} - -// cim:PostLineSensor -BaseClass* PostLineSensor_factory() -{ - return new IEC61970::Base::AuxiliaryEquipment::PostLineSensor; -} - -// cim:CurrentTransformer -BaseClass* CurrentTransformer_factory() -{ - return new IEC61970::Base::AuxiliaryEquipment::CurrentTransformer; -} - -// cim:CurveData -BaseClass* CurveData_factory() -{ - return new IEC61970::Base::Core::CurveData; -} - -// cim:EquipmentContainer -BaseClass* EquipmentContainer_factory() -{ - return new IEC61970::Base::Core::EquipmentContainer; -} - -// cim:Line -BaseClass* Line_factory() -{ - return new IEC61970::Base::Wires::Line; -} - -// cim:Bay -BaseClass* Bay_factory() -{ - return new IEC61970::Base::Core::Bay; -} - -// cim:VoltageLevel -BaseClass* VoltageLevel_factory() -{ - return new IEC61970::Base::Core::VoltageLevel; -} - -// cim:DCEquipmentContainer -BaseClass* DCEquipmentContainer_factory() -{ - return new IEC61970::Base::DC::DCEquipmentContainer; -} - -// cim:DCConverterUnit -BaseClass* DCConverterUnit_factory() -{ - return new IEC61970::Base::DC::DCConverterUnit; -} - -// cim:Substation -BaseClass* Substation_factory() -{ - return new IEC61970::Base::Core::Substation; -} - -// cim:SubGeographicalRegion -BaseClass* SubGeographicalRegion_factory() -{ - return new IEC61970::Base::Core::SubGeographicalRegion; -} - -// cim:OperatingParticipant -BaseClass* OperatingParticipant_factory() -{ - return new IEC61970::Base::Core::OperatingParticipant; -} - -// cim:OperatingShare -BaseClass* OperatingShare_factory() -{ - return new IEC61970::Base::Core::OperatingShare; -} - -// cim:Curve -BaseClass* Curve_factory() -{ - return new IEC61970::Base::Core::Curve; -} - -// cim:BaseFrequency -BaseClass* BaseFrequency_factory() -{ - return new IEC61970::Base::Core::BaseFrequency; -} - -// cim:ReportingSuperGroup -BaseClass* ReportingSuperGroup_factory() -{ - return new IEC61970::Base::Core::ReportingSuperGroup; -} - -// cim:NameTypeAuthority -BaseClass* NameTypeAuthority_factory() -{ - return new IEC61970::Base::Core::NameTypeAuthority; -} - -// cim:NameType -BaseClass* NameType_factory() -{ - return new IEC61970::Base::Core::NameType; -} - -// cim:Name -BaseClass* Name_factory() -{ - return new IEC61970::Base::Core::Name; -} - -// cim:IrregularTimePoint -BaseClass* IrregularTimePoint_factory() -{ - return new IEC61970::Base::Core::IrregularTimePoint; -} - -// cim:IrregularIntervalSchedule -BaseClass* IrregularIntervalSchedule_factory() -{ - return new IEC61970::Base::Core::IrregularIntervalSchedule; -} - -// cim:BasePower -BaseClass* BasePower_factory() -{ - return new IEC61970::Base::Core::BasePower; -} - -// cim:GeographicalRegion -BaseClass* GeographicalRegion_factory() -{ - return new IEC61970::Base::Core::GeographicalRegion; -} - -// cim:DiagramObjectStyle -BaseClass* DiagramObjectStyle_factory() -{ - return new IEC61970::Base::DiagramLayout::DiagramObjectStyle; -} - -// cim:Diagram -BaseClass* Diagram_factory() -{ - return new IEC61970::Base::DiagramLayout::Diagram; -} - -// cim:VisibilityLayer -BaseClass* VisibilityLayer_factory() -{ - return new IEC61970::Base::DiagramLayout::VisibilityLayer; -} - -// cim:DiagramObjectGluePoint -BaseClass* DiagramObjectGluePoint_factory() -{ - return new IEC61970::Base::DiagramLayout::DiagramObjectGluePoint; -} - -// cim:DiagramObjectPoint -BaseClass* DiagramObjectPoint_factory() -{ - return new IEC61970::Base::DiagramLayout::DiagramObjectPoint; -} - -// cim:DiagramObject -BaseClass* DiagramObject_factory() -{ - return new IEC61970::Base::DiagramLayout::DiagramObject; -} - -// cim:TextDiagramObject -BaseClass* TextDiagramObject_factory() -{ - return new IEC61970::Base::DiagramLayout::TextDiagramObject; -} - -// cim:DiagramStyle -BaseClass* DiagramStyle_factory() -{ - return new IEC61970::Base::DiagramLayout::DiagramStyle; -} - -// cim:StationSupply -BaseClass* StationSupply_factory() -{ - return new IEC61970::Base::LoadModel::StationSupply; -} - -// cim:NonConformLoad -BaseClass* NonConformLoad_factory() -{ - return new IEC61970::Base::LoadModel::NonConformLoad; -} - -// cim:LoadGroup -BaseClass* LoadGroup_factory() -{ - return new IEC61970::Base::LoadModel::LoadGroup; -} - -// cim:SeasonDayTypeSchedule -BaseClass* SeasonDayTypeSchedule_factory() -{ - return new IEC61970::Base::LoadModel::SeasonDayTypeSchedule; -} - -// cim:NonConformLoadSchedule -BaseClass* NonConformLoadSchedule_factory() -{ - return new IEC61970::Base::LoadModel::NonConformLoadSchedule; -} - -// cim:NonConformLoadGroup -BaseClass* NonConformLoadGroup_factory() -{ - return new IEC61970::Base::LoadModel::NonConformLoadGroup; -} - -// cim:DayType -BaseClass* DayType_factory() -{ - return new IEC61970::Base::LoadModel::DayType; -} - -// cim:EnergyArea -BaseClass* EnergyArea_factory() -{ - return new IEC61970::Base::LoadModel::EnergyArea; -} - -// cim:SubLoadArea -BaseClass* SubLoadArea_factory() -{ - return new IEC61970::Base::LoadModel::SubLoadArea; -} - -// cim:LoadArea -BaseClass* LoadArea_factory() -{ - return new IEC61970::Base::LoadModel::LoadArea; -} - -// cim:PowerCutZone -BaseClass* PowerCutZone_factory() -{ - return new IEC61970::Base::LoadModel::PowerCutZone; -} - -// cim:ConformLoad -BaseClass* ConformLoad_factory() -{ - return new IEC61970::Base::LoadModel::ConformLoad; -} - -// cim:Season -BaseClass* Season_factory() -{ - return new IEC61970::Base::LoadModel::Season; -} - -// cim:ConformLoadSchedule -BaseClass* ConformLoadSchedule_factory() -{ - return new IEC61970::Base::LoadModel::ConformLoadSchedule; -} - -// cim:ConformLoadGroup -BaseClass* ConformLoadGroup_factory() -{ - return new IEC61970::Base::LoadModel::ConformLoadGroup; -} - -// cim:ShuntCompensatorPhase -BaseClass* ShuntCompensatorPhase_factory() -{ - return new IEC61970::Base::Wires::ShuntCompensatorPhase; -} - -// cim:ShuntCompensator -BaseClass* ShuntCompensator_factory() -{ - return new IEC61970::Base::Wires::ShuntCompensator; -} - -// cim:LinearShuntCompensator -BaseClass* LinearShuntCompensator_factory() -{ - return new IEC61970::Base::Wires::LinearShuntCompensator; -} - -// cim:TapChangerControl -BaseClass* TapChangerControl_factory() -{ - return new IEC61970::Base::Wires::TapChangerControl; -} - -// cim:TapChanger -BaseClass* TapChanger_factory() -{ - return new IEC61970::Base::Wires::TapChanger; -} - -// cim:PhaseTapChanger -BaseClass* PhaseTapChanger_factory() -{ - return new IEC61970::Base::Wires::PhaseTapChanger; -} - -// cim:Conductor -BaseClass* Conductor_factory() -{ - return new IEC61970::Base::Wires::Conductor; -} - -// cim:Clamp -BaseClass* Clamp_factory() -{ - return new IEC61970::Base::Wires::Clamp; -} - -// cim:ACLineSegment -BaseClass* ACLineSegment_factory() -{ - return new IEC61970::Base::Wires::ACLineSegment; -} - -// cim:PerLengthLineParameter -BaseClass* PerLengthLineParameter_factory() -{ - return new IEC61970::Base::Wires::PerLengthLineParameter; -} - -// cim:PerLengthImpedance -BaseClass* PerLengthImpedance_factory() -{ - return new IEC61970::Base::Wires::PerLengthImpedance; -} - -// cim:LinearShuntCompensatorPhase -BaseClass* LinearShuntCompensatorPhase_factory() -{ - return new IEC61970::Base::Wires::LinearShuntCompensatorPhase; -} - -// cim:MutualCoupling -BaseClass* MutualCoupling_factory() -{ - return new IEC61970::Base::Wires::MutualCoupling; -} - -// cim:StaticVarCompensator -BaseClass* StaticVarCompensator_factory() -{ - return new IEC61970::Base::Wires::StaticVarCompensator; -} - -// cim:Ground -BaseClass* Ground_factory() -{ - return new IEC61970::Base::Wires::Ground; -} - -// cim:PhaseImpedanceData -BaseClass* PhaseImpedanceData_factory() -{ - return new IEC61970::Base::Wires::PhaseImpedanceData; -} - -// cim:PerLengthPhaseImpedance -BaseClass* PerLengthPhaseImpedance_factory() -{ - return new IEC61970::Base::Wires::PerLengthPhaseImpedance; -} - -// cim:Plant -BaseClass* Plant_factory() -{ - return new IEC61970::Base::Wires::Plant; -} - -// cim:ReactiveCapabilityCurve -BaseClass* ReactiveCapabilityCurve_factory() -{ - return new IEC61970::Base::Wires::ReactiveCapabilityCurve; -} - -// cim:PhaseTapChangerNonLinear -BaseClass* PhaseTapChangerNonLinear_factory() -{ - return new IEC61970::Base::Wires::PhaseTapChangerNonLinear; -} - -// cim:EarthFaultCompensator -BaseClass* EarthFaultCompensator_factory() -{ - return new IEC61970::Base::Wires::EarthFaultCompensator; -} - -// cim:PetersenCoil -BaseClass* PetersenCoil_factory() -{ - return new IEC61970::Base::Wires::PetersenCoil; -} - -// cim:PhaseTapChangerLinear -BaseClass* PhaseTapChangerLinear_factory() -{ - return new IEC61970::Base::Wires::PhaseTapChangerLinear; -} - -// cim:ACLineSegmentPhase -BaseClass* ACLineSegmentPhase_factory() -{ - return new IEC61970::Base::Wires::ACLineSegmentPhase; -} - -// cim:EnergySource -BaseClass* EnergySource_factory() -{ - return new IEC61970::Base::Wires::EnergySource; -} - -// cim:NonlinearShuntCompensatorPoint -BaseClass* NonlinearShuntCompensatorPoint_factory() -{ - return new IEC61970::Base::Wires::NonlinearShuntCompensatorPoint; -} - -// cim:NonlinearShuntCompensator -BaseClass* NonlinearShuntCompensator_factory() -{ - return new IEC61970::Base::Wires::NonlinearShuntCompensator; -} - -// cim:TransformerStarImpedance -BaseClass* TransformerStarImpedance_factory() -{ - return new IEC61970::Base::Wires::TransformerStarImpedance; -} - -// cim:RatioTapChangerTable -BaseClass* RatioTapChangerTable_factory() -{ - return new IEC61970::Base::Wires::RatioTapChangerTable; -} - -// cim:RatioTapChanger -BaseClass* RatioTapChanger_factory() -{ - return new IEC61970::Base::Wires::RatioTapChanger; -} - -// cim:TransformerEnd -BaseClass* TransformerEnd_factory() -{ - return new IEC61970::Base::Wires::TransformerEnd; -} - -// cim:PowerTransformerEnd -BaseClass* PowerTransformerEnd_factory() -{ - return new IEC61970::Base::Wires::PowerTransformerEnd; -} - -// cim:ExternalNetworkInjection -BaseClass* ExternalNetworkInjection_factory() -{ - return new IEC61970::Base::Wires::ExternalNetworkInjection; -} - -// cim:VoltageControlZone -BaseClass* VoltageControlZone_factory() -{ - return new IEC61970::Base::Wires::VoltageControlZone; -} - -// cim:RegulationSchedule -BaseClass* RegulationSchedule_factory() -{ - return new IEC61970::Base::Wires::RegulationSchedule; -} - -// cim:TapChangerTablePoint -BaseClass* TapChangerTablePoint_factory() -{ - return new IEC61970::Base::Wires::TapChangerTablePoint; -} - -// cim:RatioTapChangerTablePoint -BaseClass* RatioTapChangerTablePoint_factory() -{ - return new IEC61970::Base::Wires::RatioTapChangerTablePoint; -} - -// cim:TransformerCoreAdmittance -BaseClass* TransformerCoreAdmittance_factory() -{ - return new IEC61970::Base::Wires::TransformerCoreAdmittance; -} - -// cim:PerLengthSequenceImpedance -BaseClass* PerLengthSequenceImpedance_factory() -{ - return new IEC61970::Base::Wires::PerLengthSequenceImpedance; -} - -// cim:SwitchPhase -BaseClass* SwitchPhase_factory() -{ - return new IEC61970::Base::Wires::SwitchPhase; -} - -// cim:TapSchedule -BaseClass* TapSchedule_factory() -{ - return new IEC61970::Base::Wires::TapSchedule; -} - -// cim:SwitchSchedule -BaseClass* SwitchSchedule_factory() -{ - return new IEC61970::Base::Wires::SwitchSchedule; -} - -// cim:Switch -BaseClass* Switch_factory() -{ - return new IEC61970::Base::Wires::Switch; -} - -// cim:RecloseSequence -BaseClass* RecloseSequence_factory() -{ - return new IEC61970::Base::Protection::RecloseSequence; -} - -// cim:ProtectedSwitch -BaseClass* ProtectedSwitch_factory() -{ - return new IEC61970::Base::Wires::ProtectedSwitch; -} - -// cim:TransformerMeshImpedance -BaseClass* TransformerMeshImpedance_factory() -{ - return new IEC61970::Base::Wires::TransformerMeshImpedance; -} - -// cim:Connector -BaseClass* Connector_factory() -{ - return new IEC61970::Base::Wires::Connector; -} - -// cim:EnergySourcePhase -BaseClass* EnergySourcePhase_factory() -{ - return new IEC61970::Base::Wires::EnergySourcePhase; -} - -// cim:Breaker -BaseClass* Breaker_factory() -{ - return new IEC61970::Base::Wires::Breaker; -} - -// cim:Disconnector -BaseClass* Disconnector_factory() -{ - return new IEC61970::Base::Wires::Disconnector; -} - -// cim:CompositeSwitch -BaseClass* CompositeSwitch_factory() -{ - return new IEC61970::Base::Wires::CompositeSwitch; -} - -// cim:PowerTransformer -BaseClass* PowerTransformer_factory() -{ - return new IEC61970::Base::Wires::PowerTransformer; -} - -// cim:Cut -BaseClass* Cut_factory() -{ - return new IEC61970::Base::Wires::Cut; -} - -// cim:NonlinearShuntCompensatorPhasePoint -BaseClass* NonlinearShuntCompensatorPhasePoint_factory() -{ - return new IEC61970::Base::Wires::NonlinearShuntCompensatorPhasePoint; -} - -// cim:NonlinearShuntCompensatorPhase -BaseClass* NonlinearShuntCompensatorPhase_factory() -{ - return new IEC61970::Base::Wires::NonlinearShuntCompensatorPhase; -} - -// cim:PhaseTapChangerSymmetrical -BaseClass* PhaseTapChangerSymmetrical_factory() -{ - return new IEC61970::Base::Wires::PhaseTapChangerSymmetrical; -} - -// cim:PhaseTapChangerTabular -BaseClass* PhaseTapChangerTabular_factory() -{ - return new IEC61970::Base::Wires::PhaseTapChangerTabular; -} - -// cim:PhaseTapChangerTable -BaseClass* PhaseTapChangerTable_factory() -{ - return new IEC61970::Base::Wires::PhaseTapChangerTable; -} - -// cim:PhaseTapChangerTablePoint -BaseClass* PhaseTapChangerTablePoint_factory() -{ - return new IEC61970::Base::Wires::PhaseTapChangerTablePoint; -} - -// cim:GroundDisconnector -BaseClass* GroundDisconnector_factory() -{ - return new IEC61970::Base::Wires::GroundDisconnector; -} - -// cim:LoadBreakSwitch -BaseClass* LoadBreakSwitch_factory() -{ - return new IEC61970::Base::Wires::LoadBreakSwitch; -} - -// cim:FrequencyConverter -BaseClass* FrequencyConverter_factory() -{ - return new IEC61970::Base::Wires::FrequencyConverter; -} - -// cim:Jumper -BaseClass* Jumper_factory() -{ - return new IEC61970::Base::Wires::Jumper; -} - -// cim:TransformerTank -BaseClass* TransformerTank_factory() -{ - return new IEC61970::Base::Wires::TransformerTank; -} - -// cim:GroundingImpedance -BaseClass* GroundingImpedance_factory() -{ - return new IEC61970::Base::Wires::GroundingImpedance; -} - -// cim:SeriesCompensator -BaseClass* SeriesCompensator_factory() -{ - return new IEC61970::Base::Wires::SeriesCompensator; -} - -// cim:Sectionaliser -BaseClass* Sectionaliser_factory() -{ - return new IEC61970::Base::Wires::Sectionaliser; -} - -// cim:Junction -BaseClass* Junction_factory() -{ - return new IEC61970::Base::Wires::Junction; -} - -// cim:Recloser -BaseClass* Recloser_factory() -{ - return new IEC61970::Base::Wires::Recloser; -} - -// cim:Fuse -BaseClass* Fuse_factory() -{ - return new IEC61970::Base::Wires::Fuse; -} - -// cim:PhaseTapChangerAsymmetrical -BaseClass* PhaseTapChangerAsymmetrical_factory() -{ - return new IEC61970::Base::Wires::PhaseTapChangerAsymmetrical; -} - -// cim:BusbarSection -BaseClass* BusbarSection_factory() -{ - return new IEC61970::Base::Wires::BusbarSection; -} - -// cim:TransformerTankEnd -BaseClass* TransformerTankEnd_factory() -{ - return new IEC61970::Base::Wires::TransformerTankEnd; -} - -// cim:Quality61850 -BaseClass* Quality61850_factory() -{ - return new IEC61970::Base::Meas::Quality61850; -} - -// cim:MeasurementValueQuality -BaseClass* MeasurementValueQuality_factory() -{ - return new IEC61970::Base::Meas::MeasurementValueQuality; -} - -// cim:MeasurementValue -BaseClass* MeasurementValue_factory() -{ - return new IEC61970::Base::Meas::MeasurementValue; -} - -// cim:AccumulatorValue -BaseClass* AccumulatorValue_factory() -{ - return new IEC61970::Base::Meas::AccumulatorValue; -} - -// cim:AccumulatorReset -BaseClass* AccumulatorReset_factory() -{ - return new IEC61970::Base::Meas::AccumulatorReset; -} - -// cim:AnalogControl -BaseClass* AnalogControl_factory() -{ - return new IEC61970::Base::Meas::AnalogControl; -} - -// cim:ValueToAlias -BaseClass* ValueToAlias_factory() -{ - return new IEC61970::Base::Meas::ValueToAlias; -} - -// cim:ValueAliasSet -BaseClass* ValueAliasSet_factory() -{ - return new IEC61970::Base::Meas::ValueAliasSet; -} - -// cim:RaiseLowerCommand -BaseClass* RaiseLowerCommand_factory() -{ - return new IEC61970::Base::Meas::RaiseLowerCommand; -} - -// cim:Limit -BaseClass* Limit_factory() -{ - return new IEC61970::Base::Meas::Limit; -} - -// cim:AccumulatorLimit -BaseClass* AccumulatorLimit_factory() -{ - return new IEC61970::Base::Meas::AccumulatorLimit; -} - -// cim:LimitSet -BaseClass* LimitSet_factory() -{ - return new IEC61970::Base::Meas::LimitSet; -} - -// cim:AccumulatorLimitSet -BaseClass* AccumulatorLimitSet_factory() -{ - return new IEC61970::Base::Meas::AccumulatorLimitSet; -} - -// cim:AnalogLimit -BaseClass* AnalogLimit_factory() -{ - return new IEC61970::Base::Meas::AnalogLimit; -} - -// cim:AnalogValue -BaseClass* AnalogValue_factory() -{ - return new IEC61970::Base::Meas::AnalogValue; -} - -// cim:Command -BaseClass* Command_factory() -{ - return new IEC61970::Base::Meas::Command; -} - -// cim:DiscreteCommand -BaseClass* DiscreteCommand_factory() -{ - return new IEC61970::Base::Meas::DiscreteCommand; -} - -// cim:StringMeasurement -BaseClass* StringMeasurement_factory() -{ - return new IEC61970::Base::Meas::StringMeasurement; -} - -// cim:StringMeasurementValue -BaseClass* StringMeasurementValue_factory() -{ - return new IEC61970::Base::Meas::StringMeasurementValue; -} - -// cim:AnalogLimitSet -BaseClass* AnalogLimitSet_factory() -{ - return new IEC61970::Base::Meas::AnalogLimitSet; -} - -// cim:MeasurementValueSource -BaseClass* MeasurementValueSource_factory() -{ - return new IEC61970::Base::Meas::MeasurementValueSource; -} - -// cim:DiscreteValue -BaseClass* DiscreteValue_factory() -{ - return new IEC61970::Base::Meas::DiscreteValue; -} - -// cim:Accumulator -BaseClass* Accumulator_factory() -{ - return new IEC61970::Base::Meas::Accumulator; -} - -// cim:Analog -BaseClass* Analog_factory() -{ - return new IEC61970::Base::Meas::Analog; -} - -// cim:Discrete -BaseClass* Discrete_factory() -{ - return new IEC61970::Base::Meas::Discrete; -} - -// cim:SetPoint -BaseClass* SetPoint_factory() -{ - return new IEC61970::Base::Meas::SetPoint; -} - -// cim:StateVariable -BaseClass* StateVariable_factory() -{ - return new IEC61970::Base::StateVariables::StateVariable; -} - -// cim:SvTapStep -BaseClass* SvTapStep_factory() -{ - return new IEC61970::Base::StateVariables::SvTapStep; -} - -// cim:SvVoltage -BaseClass* SvVoltage_factory() -{ - return new IEC61970::Base::StateVariables::SvVoltage; -} - -// cim:SvShuntCompensatorSections -BaseClass* SvShuntCompensatorSections_factory() -{ - return new IEC61970::Base::StateVariables::SvShuntCompensatorSections; -} - -// cim:SvStatus -BaseClass* SvStatus_factory() -{ - return new IEC61970::Base::StateVariables::SvStatus; -} - -// cim:SvPowerFlow -BaseClass* SvPowerFlow_factory() -{ - return new IEC61970::Base::StateVariables::SvPowerFlow; -} - -// cim:SvInjection -BaseClass* SvInjection_factory() -{ - return new IEC61970::Base::StateVariables::SvInjection; -} - -// cim:FuelAllocationSchedule -BaseClass* FuelAllocationSchedule_factory() -{ - return new IEC61970::Base::Generation::Production::FuelAllocationSchedule; -} - -// cim:HeatInputCurve -BaseClass* HeatInputCurve_factory() -{ - return new IEC61970::Base::Generation::Production::HeatInputCurve; -} - -// cim:TailbayLossCurve -BaseClass* TailbayLossCurve_factory() -{ - return new IEC61970::Base::Generation::Production::TailbayLossCurve; -} - -// cim:GrossToNetActivePowerCurve -BaseClass* GrossToNetActivePowerCurve_factory() -{ - return new IEC61970::Base::Generation::Production::GrossToNetActivePowerCurve; -} - -// cim:EmissionCurve -BaseClass* EmissionCurve_factory() -{ - return new IEC61970::Base::Generation::Production::EmissionCurve; -} - -// cim:GenUnitOpSchedule -BaseClass* GenUnitOpSchedule_factory() -{ - return new IEC61970::Base::Generation::Production::GenUnitOpSchedule; -} - -// cim:GenUnitOpCostCurve -BaseClass* GenUnitOpCostCurve_factory() -{ - return new IEC61970::Base::Generation::Production::GenUnitOpCostCurve; -} - -// cim:GeneratingUnit -BaseClass* GeneratingUnit_factory() -{ - return new IEC61970::Base::Generation::Production::GeneratingUnit; -} - -// cim:SolarGeneratingUnit -BaseClass* SolarGeneratingUnit_factory() -{ - return new IEC61970::Base::Generation::Production::SolarGeneratingUnit; -} - -// cim:IncrementalHeatRateCurve -BaseClass* IncrementalHeatRateCurve_factory() -{ - return new IEC61970::Base::Generation::Production::IncrementalHeatRateCurve; -} - -// cim:StartIgnFuelCurve -BaseClass* StartIgnFuelCurve_factory() -{ - return new IEC61970::Base::Generation::Production::StartIgnFuelCurve; -} - -// cim:InflowForecast -BaseClass* InflowForecast_factory() -{ - return new IEC61970::Base::Generation::Production::InflowForecast; -} - -// cim:EmissionAccount -BaseClass* EmissionAccount_factory() -{ - return new IEC61970::Base::Generation::Production::EmissionAccount; -} - -// cim:HydroGeneratingEfficiencyCurve -BaseClass* HydroGeneratingEfficiencyCurve_factory() -{ - return new IEC61970::Base::Generation::Production::HydroGeneratingEfficiencyCurve; -} - -// cim:PenstockLossCurve -BaseClass* PenstockLossCurve_factory() -{ - return new IEC61970::Base::Generation::Production::PenstockLossCurve; -} - -// cim:HydroGeneratingUnit -BaseClass* HydroGeneratingUnit_factory() -{ - return new IEC61970::Base::Generation::Production::HydroGeneratingUnit; -} - -// cim:HeatRateCurve -BaseClass* HeatRateCurve_factory() -{ - return new IEC61970::Base::Generation::Production::HeatRateCurve; -} - -// cim:StartRampCurve -BaseClass* StartRampCurve_factory() -{ - return new IEC61970::Base::Generation::Production::StartRampCurve; -} - -// cim:StartMainFuelCurve -BaseClass* StartMainFuelCurve_factory() -{ - return new IEC61970::Base::Generation::Production::StartMainFuelCurve; -} - -// cim:StartupModel -BaseClass* StartupModel_factory() -{ - return new IEC61970::Base::Generation::Production::StartupModel; -} - -// cim:ShutdownCurve -BaseClass* ShutdownCurve_factory() -{ - return new IEC61970::Base::Generation::Production::ShutdownCurve; -} - -// cim:ThermalGeneratingUnit -BaseClass* ThermalGeneratingUnit_factory() -{ - return new IEC61970::Base::Generation::Production::ThermalGeneratingUnit; -} - -// cim:AirCompressor -BaseClass* AirCompressor_factory() -{ - return new IEC61970::Base::Generation::Production::AirCompressor; -} - -// cim:CAESPlant -BaseClass* CAESPlant_factory() -{ - return new IEC61970::Base::Generation::Production::CAESPlant; -} - -// cim:LevelVsVolumeCurve -BaseClass* LevelVsVolumeCurve_factory() -{ - return new IEC61970::Base::Generation::Production::LevelVsVolumeCurve; -} - -// cim:TargetLevelSchedule -BaseClass* TargetLevelSchedule_factory() -{ - return new IEC61970::Base::Generation::Production::TargetLevelSchedule; -} - -// cim:Reservoir -BaseClass* Reservoir_factory() -{ - return new IEC61970::Base::Generation::Production::Reservoir; -} - -// cim:HydroPowerPlant -BaseClass* HydroPowerPlant_factory() -{ - return new IEC61970::Base::Generation::Production::HydroPowerPlant; -} - -// cim:WindGeneratingUnit -BaseClass* WindGeneratingUnit_factory() -{ - return new IEC61970::Base::Generation::Production::WindGeneratingUnit; -} - -// cim:FossilFuel -BaseClass* FossilFuel_factory() -{ - return new IEC61970::Base::Generation::Production::FossilFuel; -} - -// cim:SteamSendoutSchedule -BaseClass* SteamSendoutSchedule_factory() -{ - return new IEC61970::Base::Generation::Production::SteamSendoutSchedule; -} - -// cim:CogenerationPlant -BaseClass* CogenerationPlant_factory() -{ - return new IEC61970::Base::Generation::Production::CogenerationPlant; -} - -// cim:NuclearGeneratingUnit -BaseClass* NuclearGeneratingUnit_factory() -{ - return new IEC61970::Base::Generation::Production::NuclearGeneratingUnit; -} - -// cim:CombinedCyclePlant -BaseClass* CombinedCyclePlant_factory() -{ - return new IEC61970::Base::Generation::Production::CombinedCyclePlant; -} - -// cim:PrimeMover -BaseClass* PrimeMover_factory() -{ - return new IEC61970::Base::Generation::GenerationTrainingSimulation::PrimeMover; -} - -// cim:SteamTurbine -BaseClass* SteamTurbine_factory() -{ - return new IEC61970::Base::Generation::GenerationTrainingSimulation::SteamTurbine; -} - -// cim:SteamSupply -BaseClass* SteamSupply_factory() -{ - return new IEC61970::Base::Generation::GenerationTrainingSimulation::SteamSupply; -} - -// cim:HydroTurbine -BaseClass* HydroTurbine_factory() -{ - return new IEC61970::Base::Generation::GenerationTrainingSimulation::HydroTurbine; -} - -// cim:CTTempActivePowerCurve -BaseClass* CTTempActivePowerCurve_factory() -{ - return new IEC61970::Base::Generation::GenerationTrainingSimulation::CTTempActivePowerCurve; -} - -// cim:CombustionTurbine -BaseClass* CombustionTurbine_factory() -{ - return new IEC61970::Base::Generation::GenerationTrainingSimulation::CombustionTurbine; -} - -// cim:PWRSteamSupply -BaseClass* PWRSteamSupply_factory() -{ - return new IEC61970::Base::Generation::GenerationTrainingSimulation::PWRSteamSupply; -} - -// cim:FossilSteamSupply -BaseClass* FossilSteamSupply_factory() -{ - return new IEC61970::Base::Generation::GenerationTrainingSimulation::FossilSteamSupply; -} - -// cim:HeatRecoveryBoiler -BaseClass* HeatRecoveryBoiler_factory() -{ - return new IEC61970::Base::Generation::GenerationTrainingSimulation::HeatRecoveryBoiler; -} - -// cim:Supercritical -BaseClass* Supercritical_factory() -{ - return new IEC61970::Base::Generation::GenerationTrainingSimulation::Supercritical; -} - -// cim:Subcritical -BaseClass* Subcritical_factory() -{ - return new IEC61970::Base::Generation::GenerationTrainingSimulation::Subcritical; -} - -// cim:BWRSteamSupply -BaseClass* BWRSteamSupply_factory() -{ - return new IEC61970::Base::Generation::GenerationTrainingSimulation::BWRSteamSupply; -} - -// cim:DrumBoiler -BaseClass* DrumBoiler_factory() -{ - return new IEC61970::Base::Generation::GenerationTrainingSimulation::DrumBoiler; -} - -// cim:ProtectionEquipment -BaseClass* ProtectionEquipment_factory() -{ - return new IEC61970::Base::Protection::ProtectionEquipment; -} - -// cim:CurrentRelay -BaseClass* CurrentRelay_factory() -{ - return new IEC61970::Base::Protection::CurrentRelay; -} - -// cim:SynchrocheckRelay -BaseClass* SynchrocheckRelay_factory() -{ - return new IEC61970::Base::Protection::SynchrocheckRelay; -} - -// cim:ContingencyElement -BaseClass* ContingencyElement_factory() -{ - return new IEC61970::Base::Contingency::ContingencyElement; -} - -// cim:Contingency -BaseClass* Contingency_factory() -{ - return new IEC61970::Base::Contingency::Contingency; -} - -// cim:ContingencyEquipment -BaseClass* ContingencyEquipment_factory() -{ - return new IEC61970::Base::Contingency::ContingencyEquipment; -} - -// cim:AltTieMeas -BaseClass* AltTieMeas_factory() -{ - return new IEC61970::Base::ControlArea::AltTieMeas; -} - -// cim:TieFlow -BaseClass* TieFlow_factory() -{ - return new IEC61970::Base::ControlArea::TieFlow; -} - -// cim:AltGeneratingUnitMeas -BaseClass* AltGeneratingUnitMeas_factory() -{ - return new IEC61970::Base::ControlArea::AltGeneratingUnitMeas; -} - -// cim:ControlAreaGeneratingUnit -BaseClass* ControlAreaGeneratingUnit_factory() -{ - return new IEC61970::Base::ControlArea::ControlAreaGeneratingUnit; -} - -// cim:ControlArea -BaseClass* ControlArea_factory() -{ - return new IEC61970::Base::ControlArea::ControlArea; -} - -// cim:DCBaseTerminal -BaseClass* DCBaseTerminal_factory() -{ - return new IEC61970::Base::DC::DCBaseTerminal; -} - -// cim:DCTerminal -BaseClass* DCTerminal_factory() -{ - return new IEC61970::Base::DC::DCTerminal; -} - -// cim:DCConductingEquipment -BaseClass* DCConductingEquipment_factory() -{ - return new IEC61970::Base::DC::DCConductingEquipment; -} - -// cim:DCSeriesDevice -BaseClass* DCSeriesDevice_factory() -{ - return new IEC61970::Base::DC::DCSeriesDevice; -} - -// cim:DCSwitch -BaseClass* DCSwitch_factory() -{ - return new IEC61970::Base::DC::DCSwitch; -} - -// cim:DCDisconnector -BaseClass* DCDisconnector_factory() -{ - return new IEC61970::Base::DC::DCDisconnector; -} - -// cim:DCLineSegment -BaseClass* DCLineSegment_factory() -{ - return new IEC61970::Base::DC::DCLineSegment; -} - -// cim:PerLengthDCLineParameter -BaseClass* PerLengthDCLineParameter_factory() -{ - return new IEC61970::Base::DC::PerLengthDCLineParameter; -} - -// cim:ACDCConverter -BaseClass* ACDCConverter_factory() -{ - return new IEC61970::Base::DC::ACDCConverter; -} - -// cim:VsCapabilityCurve -BaseClass* VsCapabilityCurve_factory() -{ - return new IEC61970::Base::DC::VsCapabilityCurve; -} - -// cim:VsConverter -BaseClass* VsConverter_factory() -{ - return new IEC61970::Base::DC::VsConverter; -} - -// cim:DCGround -BaseClass* DCGround_factory() -{ - return new IEC61970::Base::DC::DCGround; -} - -// cim:DCShunt -BaseClass* DCShunt_factory() -{ - return new IEC61970::Base::DC::DCShunt; -} - -// cim:ACDCConverterDCTerminal -BaseClass* ACDCConverterDCTerminal_factory() -{ - return new IEC61970::Base::DC::ACDCConverterDCTerminal; -} - -// cim:DCLine -BaseClass* DCLine_factory() -{ - return new IEC61970::Base::DC::DCLine; -} - -// cim:DCChopper -BaseClass* DCChopper_factory() -{ - return new IEC61970::Base::DC::DCChopper; -} - -// cim:DCNode -BaseClass* DCNode_factory() -{ - return new IEC61970::Base::DC::DCNode; -} - -// cim:CsConverter -BaseClass* CsConverter_factory() -{ - return new IEC61970::Base::DC::CsConverter; -} - -// cim:DCBusbar -BaseClass* DCBusbar_factory() -{ - return new IEC61970::Base::DC::DCBusbar; -} - -// cim:DCBreaker -BaseClass* DCBreaker_factory() -{ - return new IEC61970::Base::DC::DCBreaker; -} - -// cim:DCTopologicalIsland -BaseClass* DCTopologicalIsland_factory() -{ - return new IEC61970::Base::DC::DCTopologicalIsland; -} - -// cim:FaultImpedance -BaseClass* FaultImpedance_factory() -{ - return new IEC61970::Base::Faults::FaultImpedance; -} - -// cim:FaultCauseType -BaseClass* FaultCauseType_factory() -{ - return new IEC61970::Base::Faults::FaultCauseType; -} - -// cim:Fault -BaseClass* Fault_factory() -{ - return new IEC61970::Base::Faults::Fault; -} - -// cim:LineFault -BaseClass* LineFault_factory() -{ - return new IEC61970::Base::Faults::LineFault; -} - -// cim:EquipmentFault -BaseClass* EquipmentFault_factory() -{ - return new IEC61970::Base::Faults::EquipmentFault; -} - -static std::unordered_map initialize() -{ - std::unordered_map map; - - map.insert(std::make_pair("cim:IEC61970CIMVersion", &IEC61970CIMVersion_factory)); - map.insert(std::make_pair("cim:RegularTimePoint", &RegularTimePoint_factory)); - map.insert(std::make_pair("cim:IdentifiedObject", &IdentifiedObject_factory)); - map.insert(std::make_pair("cim:BasicIntervalSchedule", &BasicIntervalSchedule_factory)); - map.insert(std::make_pair("cim:RegularIntervalSchedule", &RegularIntervalSchedule_factory)); - map.insert(std::make_pair("cim:HydroPumpOpSchedule", &HydroPumpOpSchedule_factory)); - map.insert(std::make_pair("cim:Control", &Control_factory)); - map.insert(std::make_pair("cim:ACDCTerminal", &ACDCTerminal_factory)); - map.insert(std::make_pair("cim:Measurement", &Measurement_factory)); - map.insert(std::make_pair("cim:PSRType", &PSRType_factory)); - map.insert(std::make_pair("cim:PowerSystemResource", &PowerSystemResource_factory)); - map.insert(std::make_pair("cim:Equipment", &Equipment_factory)); - map.insert(std::make_pair("cim:HydroPump", &HydroPump_factory)); - map.insert(std::make_pair("cim:RegulatingControl", &RegulatingControl_factory)); - map.insert(std::make_pair("cim:ConductingEquipment", &ConductingEquipment_factory)); - map.insert(std::make_pair("cim:RegulatingCondEq", &RegulatingCondEq_factory)); - map.insert(std::make_pair("cim:RotatingMachine", &RotatingMachine_factory)); - map.insert(std::make_pair("cim:AsynchronousMachine", &AsynchronousMachine_factory)); - map.insert(std::make_pair("cim:DynamicsFunctionBlock", &DynamicsFunctionBlock_factory)); - map.insert(std::make_pair("cim:RotatingMachineDynamics", &RotatingMachineDynamics_factory)); - map.insert(std::make_pair("cim:AsynchronousMachineDynamics", &AsynchronousMachineDynamics_factory)); - map.insert(std::make_pair("cim:TurbineGovernorDynamics", &TurbineGovernorDynamics_factory)); - map.insert(std::make_pair("cim:TurbineGovernorUserDefined", &TurbineGovernorUserDefined_factory)); - map.insert(std::make_pair("cim:SynchronousMachine", &SynchronousMachine_factory)); - map.insert(std::make_pair("cim:SynchronousMachineDynamics", &SynchronousMachineDynamics_factory)); - map.insert(std::make_pair("cim:ExcitationSystemDynamics", &ExcitationSystemDynamics_factory)); - map.insert(std::make_pair("cim:ConnectivityNodeContainer", &ConnectivityNodeContainer_factory)); - map.insert(std::make_pair("cim:ConnectivityNode", &ConnectivityNode_factory)); - map.insert(std::make_pair("cim:Terminal", &Terminal_factory)); - map.insert(std::make_pair("cim:RemoteInputSignal", &RemoteInputSignal_factory)); - map.insert(std::make_pair("cim:PFVArControllerType1Dynamics", &PFVArControllerType1Dynamics_factory)); - map.insert(std::make_pair("cim:VoltageAdjusterDynamics", &VoltageAdjusterDynamics_factory)); - map.insert(std::make_pair("cim:VoltageAdjusterUserDefined", &VoltageAdjusterUserDefined_factory)); - map.insert(std::make_pair("cim:AsynchronousMachineUserDefined", &AsynchronousMachineUserDefined_factory)); - map.insert(std::make_pair("cim:UnderexcitationLimiterDynamics", &UnderexcitationLimiterDynamics_factory)); - map.insert(std::make_pair("cim:UnderexcitationLimiterUserDefined", &UnderexcitationLimiterUserDefined_factory)); - map.insert(std::make_pair("cim:VoltageCompensatorDynamics", &VoltageCompensatorDynamics_factory)); - map.insert(std::make_pair("cim:VoltageCompensatorUserDefined", &VoltageCompensatorUserDefined_factory)); - map.insert(std::make_pair("cim:PFVArControllerType1UserDefined", &PFVArControllerType1UserDefined_factory)); - map.insert(std::make_pair("cim:OverexcitationLimiterDynamics", &OverexcitationLimiterDynamics_factory)); - map.insert(std::make_pair("cim:OverexcitationLimiterUserDefined", &OverexcitationLimiterUserDefined_factory)); - map.insert(std::make_pair("cim:PowerSystemStabilizerDynamics", &PowerSystemStabilizerDynamics_factory)); - map.insert(std::make_pair("cim:PowerSystemStabilizerUserDefined", &PowerSystemStabilizerUserDefined_factory)); - map.insert(std::make_pair("cim:DiscontinuousExcitationControlDynamics", &DiscontinuousExcitationControlDynamics_factory)); - map.insert(std::make_pair("cim:DiscontinuousExcitationControlUserDefined", &DiscontinuousExcitationControlUserDefined_factory)); - map.insert(std::make_pair("cim:PFVArControllerType2Dynamics", &PFVArControllerType2Dynamics_factory)); - map.insert(std::make_pair("cim:PFVArControllerType2UserDefined", &PFVArControllerType2UserDefined_factory)); - map.insert(std::make_pair("cim:MechanicalLoadDynamics", &MechanicalLoadDynamics_factory)); - map.insert(std::make_pair("cim:MechanicalLoadUserDefined", &MechanicalLoadUserDefined_factory)); - map.insert(std::make_pair("cim:SynchronousMachineUserDefined", &SynchronousMachineUserDefined_factory)); - map.insert(std::make_pair("cim:LoadResponseCharacteristic", &LoadResponseCharacteristic_factory)); - map.insert(std::make_pair("cim:EnergyConsumerPhase", &EnergyConsumerPhase_factory)); - map.insert(std::make_pair("cim:EnergyConsumer", &EnergyConsumer_factory)); - map.insert(std::make_pair("cim:LoadDynamics", &LoadDynamics_factory)); - map.insert(std::make_pair("cim:LoadUserDefined", &LoadUserDefined_factory)); - map.insert(std::make_pair("cim:TurbineLoadControllerDynamics", &TurbineLoadControllerDynamics_factory)); - map.insert(std::make_pair("cim:TurbineLoadControllerUserDefined", &TurbineLoadControllerUserDefined_factory)); - map.insert(std::make_pair("cim:ExcitationSystemUserDefined", &ExcitationSystemUserDefined_factory)); - map.insert(std::make_pair("cim:ProprietaryParameterDynamics", &ProprietaryParameterDynamics_factory)); - map.insert(std::make_pair("cim:NonRotatingEnergy", &NonRotatingEnergy_factory)); - map.insert(std::make_pair("cim:WindTurbineType3or4", &WindTurbineType3or4_factory)); - map.insert(std::make_pair("cim:WindTurbineType3or4Dynamics", &WindTurbineType3or4Dynamics_factory)); - map.insert(std::make_pair("cim:WindPlantDynamics", &WindPlantDynamics_factory)); - map.insert(std::make_pair("cim:WindPlantUserDefined", &WindPlantUserDefined_factory)); - map.insert(std::make_pair("cim:WindType3or4UserDefined", &WindType3or4UserDefined_factory)); - map.insert(std::make_pair("cim:WindTurbineType1or2Dynamics", &WindTurbineType1or2Dynamics_factory)); - map.insert(std::make_pair("cim:WindType1or2UserDefined", &WindType1or2UserDefined_factory)); - map.insert(std::make_pair("cim:WindTurbineType1or2IEC", &WindTurbineType1or2IEC_factory)); - map.insert(std::make_pair("cim:WindGenTurbineType2IEC", &WindGenTurbineType2IEC_factory)); - map.insert(std::make_pair("cim:WindContRotorRIEC", &WindContRotorRIEC_factory)); - map.insert(std::make_pair("cim:WindTurbineType3or4IEC", &WindTurbineType3or4IEC_factory)); - map.insert(std::make_pair("cim:WindContCurrLimIEC", &WindContCurrLimIEC_factory)); - map.insert(std::make_pair("cim:WindPlantReactiveControlIEC", &WindPlantReactiveControlIEC_factory)); - map.insert(std::make_pair("cim:WindPlantIEC", &WindPlantIEC_factory)); - map.insert(std::make_pair("cim:WindPlantFreqPcontrolIEC", &WindPlantFreqPcontrolIEC_factory)); - map.insert(std::make_pair("cim:WindGenTurbineType3IEC", &WindGenTurbineType3IEC_factory)); - map.insert(std::make_pair("cim:WindContPType3IEC", &WindContPType3IEC_factory)); - map.insert(std::make_pair("cim:WindDynamicsLookupTable", &WindDynamicsLookupTable_factory)); - map.insert(std::make_pair("cim:WindAeroLinearIEC", &WindAeroLinearIEC_factory)); - map.insert(std::make_pair("cim:WindGenType4IEC", &WindGenType4IEC_factory)); - map.insert(std::make_pair("cim:WindTurbineType4aIEC", &WindTurbineType4aIEC_factory)); - map.insert(std::make_pair("cim:WindContPType4aIEC", &WindContPType4aIEC_factory)); - map.insert(std::make_pair("cim:WindTurbineType4bIEC", &WindTurbineType4bIEC_factory)); - map.insert(std::make_pair("cim:WindMechIEC", &WindMechIEC_factory)); - map.insert(std::make_pair("cim:WindGenTurbineType3bIEC", &WindGenTurbineType3bIEC_factory)); - map.insert(std::make_pair("cim:WindGenTurbineType3aIEC", &WindGenTurbineType3aIEC_factory)); - map.insert(std::make_pair("cim:WindPitchContEmulIEC", &WindPitchContEmulIEC_factory)); - map.insert(std::make_pair("cim:WindContPitchAngleIEC", &WindContPitchAngleIEC_factory)); - map.insert(std::make_pair("cim:WindContQIEC", &WindContQIEC_factory)); - map.insert(std::make_pair("cim:WindGenTurbineType1IEC", &WindGenTurbineType1IEC_factory)); - map.insert(std::make_pair("cim:WindContPType4bIEC", &WindContPType4bIEC_factory)); - map.insert(std::make_pair("cim:WindAeroConstIEC", &WindAeroConstIEC_factory)); - map.insert(std::make_pair("cim:WindProtectionIEC", &WindProtectionIEC_factory)); - map.insert(std::make_pair("cim:Pss1A", &Pss1A_factory)); - map.insert(std::make_pair("cim:PssSK", &PssSK_factory)); - map.insert(std::make_pair("cim:PssPTIST3", &PssPTIST3_factory)); - map.insert(std::make_pair("cim:PssIEEE4B", &PssIEEE4B_factory)); - map.insert(std::make_pair("cim:PssPTIST1", &PssPTIST1_factory)); - map.insert(std::make_pair("cim:Pss2B", &Pss2B_factory)); - map.insert(std::make_pair("cim:PssIEEE3B", &PssIEEE3B_factory)); - map.insert(std::make_pair("cim:Pss2ST", &Pss2ST_factory)); - map.insert(std::make_pair("cim:PssWECC", &PssWECC_factory)); - map.insert(std::make_pair("cim:PssELIN2", &PssELIN2_factory)); - map.insert(std::make_pair("cim:Pss1", &Pss1_factory)); - map.insert(std::make_pair("cim:PssIEEE2B", &PssIEEE2B_factory)); - map.insert(std::make_pair("cim:Pss5", &Pss5_factory)); - map.insert(std::make_pair("cim:PssSB4", &PssSB4_factory)); - map.insert(std::make_pair("cim:PssSH", &PssSH_factory)); - map.insert(std::make_pair("cim:PssIEEE1A", &PssIEEE1A_factory)); - map.insert(std::make_pair("cim:ExcREXS", &ExcREXS_factory)); - map.insert(std::make_pair("cim:ExcIEEEAC1A", &ExcIEEEAC1A_factory)); - map.insert(std::make_pair("cim:ExcIEEEAC7B", &ExcIEEEAC7B_factory)); - map.insert(std::make_pair("cim:ExcIEEEST2A", &ExcIEEEST2A_factory)); - map.insert(std::make_pair("cim:ExcIEEEAC5A", &ExcIEEEAC5A_factory)); - map.insert(std::make_pair("cim:ExcAVR3", &ExcAVR3_factory)); - map.insert(std::make_pair("cim:ExcST4B", &ExcST4B_factory)); - map.insert(std::make_pair("cim:ExcST7B", &ExcST7B_factory)); - map.insert(std::make_pair("cim:ExcIEEEDC1A", &ExcIEEEDC1A_factory)); - map.insert(std::make_pair("cim:ExcIEEEAC4A", &ExcIEEEAC4A_factory)); - map.insert(std::make_pair("cim:ExcIEEEST4B", &ExcIEEEST4B_factory)); - map.insert(std::make_pair("cim:ExcIEEEAC2A", &ExcIEEEAC2A_factory)); - map.insert(std::make_pair("cim:ExcBBC", &ExcBBC_factory)); - map.insert(std::make_pair("cim:ExcAVR2", &ExcAVR2_factory)); - map.insert(std::make_pair("cim:ExcAC5A", &ExcAC5A_factory)); - map.insert(std::make_pair("cim:ExcAVR5", &ExcAVR5_factory)); - map.insert(std::make_pair("cim:ExcHU", &ExcHU_factory)); - map.insert(std::make_pair("cim:ExcANS", &ExcANS_factory)); - map.insert(std::make_pair("cim:ExcIEEEST3A", &ExcIEEEST3A_factory)); - map.insert(std::make_pair("cim:ExcAC4A", &ExcAC4A_factory)); - map.insert(std::make_pair("cim:ExcDC3A1", &ExcDC3A1_factory)); - map.insert(std::make_pair("cim:ExcAC1A", &ExcAC1A_factory)); - map.insert(std::make_pair("cim:ExcDC3A", &ExcDC3A_factory)); - map.insert(std::make_pair("cim:ExcAC3A", &ExcAC3A_factory)); - map.insert(std::make_pair("cim:ExcIEEEDC2A", &ExcIEEEDC2A_factory)); - map.insert(std::make_pair("cim:ExcST2A", &ExcST2A_factory)); - map.insert(std::make_pair("cim:ExcCZ", &ExcCZ_factory)); - map.insert(std::make_pair("cim:ExcIEEEST1A", &ExcIEEEST1A_factory)); - map.insert(std::make_pair("cim:ExcAC2A", &ExcAC2A_factory)); - map.insert(std::make_pair("cim:ExcIEEEAC8B", &ExcIEEEAC8B_factory)); - map.insert(std::make_pair("cim:ExcELIN1", &ExcELIN1_factory)); - map.insert(std::make_pair("cim:ExcDC1A", &ExcDC1A_factory)); - map.insert(std::make_pair("cim:ExcSCRX", &ExcSCRX_factory)); - map.insert(std::make_pair("cim:ExcIEEEDC3A", &ExcIEEEDC3A_factory)); - map.insert(std::make_pair("cim:ExcIEEEAC6A", &ExcIEEEAC6A_factory)); - map.insert(std::make_pair("cim:ExcELIN2", &ExcELIN2_factory)); - map.insert(std::make_pair("cim:ExcSK", &ExcSK_factory)); - map.insert(std::make_pair("cim:ExcIEEEST7B", &ExcIEEEST7B_factory)); - map.insert(std::make_pair("cim:ExcST1A", &ExcST1A_factory)); - map.insert(std::make_pair("cim:ExcIEEEST6B", &ExcIEEEST6B_factory)); - map.insert(std::make_pair("cim:ExcDC2A", &ExcDC2A_factory)); - map.insert(std::make_pair("cim:ExcOEX3T", &ExcOEX3T_factory)); - map.insert(std::make_pair("cim:ExcIEEEST5B", &ExcIEEEST5B_factory)); - map.insert(std::make_pair("cim:ExcAVR4", &ExcAVR4_factory)); - map.insert(std::make_pair("cim:ExcSEXS", &ExcSEXS_factory)); - map.insert(std::make_pair("cim:ExcIEEEDC4B", &ExcIEEEDC4B_factory)); - map.insert(std::make_pair("cim:ExcAVR7", &ExcAVR7_factory)); - map.insert(std::make_pair("cim:ExcPIC", &ExcPIC_factory)); - map.insert(std::make_pair("cim:ExcST6B", &ExcST6B_factory)); - map.insert(std::make_pair("cim:ExcIEEEAC3A", &ExcIEEEAC3A_factory)); - map.insert(std::make_pair("cim:ExcAVR1", &ExcAVR1_factory)); - map.insert(std::make_pair("cim:ExcST3A", &ExcST3A_factory)); - map.insert(std::make_pair("cim:ExcAC8B", &ExcAC8B_factory)); - map.insert(std::make_pair("cim:ExcAC6A", &ExcAC6A_factory)); - map.insert(std::make_pair("cim:MechLoad1", &MechLoad1_factory)); - map.insert(std::make_pair("cim:PFVArType1IEEEPFController", &PFVArType1IEEEPFController_factory)); - map.insert(std::make_pair("cim:PFVArType1IEEEVArController", &PFVArType1IEEEVArController_factory)); - map.insert(std::make_pair("cim:AsynchronousMachineTimeConstantReactance", &AsynchronousMachineTimeConstantReactance_factory)); - map.insert(std::make_pair("cim:AsynchronousMachineEquivalentCircuit", &AsynchronousMachineEquivalentCircuit_factory)); - map.insert(std::make_pair("cim:DiscExcContIEEEDEC3A", &DiscExcContIEEEDEC3A_factory)); - map.insert(std::make_pair("cim:DiscExcContIEEEDEC2A", &DiscExcContIEEEDEC2A_factory)); - map.insert(std::make_pair("cim:DiscExcContIEEEDEC1A", &DiscExcContIEEEDEC1A_factory)); - map.insert(std::make_pair("cim:GovSteamSGO", &GovSteamSGO_factory)); - map.insert(std::make_pair("cim:GovSteam1", &GovSteam1_factory)); - map.insert(std::make_pair("cim:GovSteamEU", &GovSteamEU_factory)); - map.insert(std::make_pair("cim:GovHydroPID2", &GovHydroPID2_factory)); - map.insert(std::make_pair("cim:GovHydroWPID", &GovHydroWPID_factory)); - map.insert(std::make_pair("cim:GovGAST4", &GovGAST4_factory)); - map.insert(std::make_pair("cim:GovHydro4", &GovHydro4_factory)); - map.insert(std::make_pair("cim:GovHydroWEH", &GovHydroWEH_factory)); - map.insert(std::make_pair("cim:GovSteamIEEE1", &GovSteamIEEE1_factory)); - map.insert(std::make_pair("cim:GovHydro3", &GovHydro3_factory)); - map.insert(std::make_pair("cim:GovGAST", &GovGAST_factory)); - map.insert(std::make_pair("cim:GovGAST3", &GovGAST3_factory)); - map.insert(std::make_pair("cim:GovSteam2", &GovSteam2_factory)); - map.insert(std::make_pair("cim:GovSteamFV4", &GovSteamFV4_factory)); - map.insert(std::make_pair("cim:GovGAST1", &GovGAST1_factory)); - map.insert(std::make_pair("cim:GovSteamFV3", &GovSteamFV3_factory)); - map.insert(std::make_pair("cim:GovHydro1", &GovHydro1_factory)); - map.insert(std::make_pair("cim:GovHydro2", &GovHydro2_factory)); - map.insert(std::make_pair("cim:GovCT1", &GovCT1_factory)); - map.insert(std::make_pair("cim:GovHydroIEEE0", &GovHydroIEEE0_factory)); - map.insert(std::make_pair("cim:GovSteam0", &GovSteam0_factory)); - map.insert(std::make_pair("cim:GovSteamFV2", &GovSteamFV2_factory)); - map.insert(std::make_pair("cim:GovSteamCC", &GovSteamCC_factory)); - map.insert(std::make_pair("cim:GovGAST2", &GovGAST2_factory)); - map.insert(std::make_pair("cim:GovCT2", &GovCT2_factory)); - map.insert(std::make_pair("cim:GovHydroPelton", &GovHydroPelton_factory)); - map.insert(std::make_pair("cim:GovHydroFrancis", &GovHydroFrancis_factory)); - map.insert(std::make_pair("cim:GovHydroR", &GovHydroR_factory)); - map.insert(std::make_pair("cim:GovGASTWD", &GovGASTWD_factory)); - map.insert(std::make_pair("cim:GovHydroPID", &GovHydroPID_factory)); - map.insert(std::make_pair("cim:GovHydroIEEE2", &GovHydroIEEE2_factory)); - map.insert(std::make_pair("cim:GovHydroDD", &GovHydroDD_factory)); - map.insert(std::make_pair("cim:VCompIEEEType2", &VCompIEEEType2_factory)); - map.insert(std::make_pair("cim:GenICompensationForGenJ", &GenICompensationForGenJ_factory)); - map.insert(std::make_pair("cim:VCompIEEEType1", &VCompIEEEType1_factory)); - map.insert(std::make_pair("cim:LoadAggregate", &LoadAggregate_factory)); - map.insert(std::make_pair("cim:LoadMotor", &LoadMotor_factory)); - map.insert(std::make_pair("cim:LoadGenericNonLinear", &LoadGenericNonLinear_factory)); - map.insert(std::make_pair("cim:LoadComposite", &LoadComposite_factory)); - map.insert(std::make_pair("cim:LoadStatic", &LoadStatic_factory)); - map.insert(std::make_pair("cim:TurbLCFB1", &TurbLCFB1_factory)); - map.insert(std::make_pair("cim:OverexcLim2", &OverexcLim2_factory)); - map.insert(std::make_pair("cim:OverexcLimX2", &OverexcLimX2_factory)); - map.insert(std::make_pair("cim:OverexcLimIEEE", &OverexcLimIEEE_factory)); - map.insert(std::make_pair("cim:OverexcLimX1", &OverexcLimX1_factory)); - map.insert(std::make_pair("cim:SynchronousMachineDetailed", &SynchronousMachineDetailed_factory)); - map.insert(std::make_pair("cim:SynchronousMachineTimeConstantReactance", &SynchronousMachineTimeConstantReactance_factory)); - map.insert(std::make_pair("cim:SynchronousMachineSimplified", &SynchronousMachineSimplified_factory)); - map.insert(std::make_pair("cim:SynchronousMachineEquivalentCircuit", &SynchronousMachineEquivalentCircuit_factory)); - map.insert(std::make_pair("cim:VAdjIEEE", &VAdjIEEE_factory)); - map.insert(std::make_pair("cim:PFVArType2IEEEPFController", &PFVArType2IEEEPFController_factory)); - map.insert(std::make_pair("cim:PFVArType2Common1", &PFVArType2Common1_factory)); - map.insert(std::make_pair("cim:PFVArType2IEEEVArController", &PFVArType2IEEEVArController_factory)); - map.insert(std::make_pair("cim:UnderexcLim2Simplified", &UnderexcLim2Simplified_factory)); - map.insert(std::make_pair("cim:UnderexcLimIEEE2", &UnderexcLimIEEE2_factory)); - map.insert(std::make_pair("cim:UnderexcLimIEEE1", &UnderexcLimIEEE1_factory)); - map.insert(std::make_pair("cim:UnderexcLimX2", &UnderexcLimX2_factory)); - map.insert(std::make_pair("cim:UnderexcLimX1", &UnderexcLimX1_factory)); - map.insert(std::make_pair("cim:EquivalentEquipment", &EquivalentEquipment_factory)); - map.insert(std::make_pair("cim:EquivalentNetwork", &EquivalentNetwork_factory)); - map.insert(std::make_pair("cim:EquivalentShunt", &EquivalentShunt_factory)); - map.insert(std::make_pair("cim:EquivalentBranch", &EquivalentBranch_factory)); - map.insert(std::make_pair("cim:EquivalentInjection", &EquivalentInjection_factory)); - map.insert(std::make_pair("cim:OperationalLimitType", &OperationalLimitType_factory)); - map.insert(std::make_pair("cim:OperationalLimit", &OperationalLimit_factory)); - map.insert(std::make_pair("cim:ActivePowerLimit", &ActivePowerLimit_factory)); - map.insert(std::make_pair("cim:OperationalLimitSet", &OperationalLimitSet_factory)); - map.insert(std::make_pair("cim:VoltageLimit", &VoltageLimit_factory)); - map.insert(std::make_pair("cim:CurrentLimit", &CurrentLimit_factory)); - map.insert(std::make_pair("cim:BranchGroupTerminal", &BranchGroupTerminal_factory)); - map.insert(std::make_pair("cim:BranchGroup", &BranchGroup_factory)); - map.insert(std::make_pair("cim:ApparentPowerLimit", &ApparentPowerLimit_factory)); - map.insert(std::make_pair("cim:ReportingGroup", &ReportingGroup_factory)); - map.insert(std::make_pair("cim:BusNameMarker", &BusNameMarker_factory)); - map.insert(std::make_pair("cim:BaseVoltage", &BaseVoltage_factory)); - map.insert(std::make_pair("cim:TopologicalNode", &TopologicalNode_factory)); - map.insert(std::make_pair("cim:TopologicalIsland", &TopologicalIsland_factory)); - map.insert(std::make_pair("cim:DCTopologicalNode", &DCTopologicalNode_factory)); - map.insert(std::make_pair("cim:MonthDayInterval", &MonthDayInterval_factory)); - map.insert(std::make_pair("cim:TimeInterval", &TimeInterval_factory)); - map.insert(std::make_pair("cim:DateInterval", &DateInterval_factory)); - map.insert(std::make_pair("cim:DateTimeInterval", &DateTimeInterval_factory)); - map.insert(std::make_pair("cim:RemotePoint", &RemotePoint_factory)); - map.insert(std::make_pair("cim:RemoteUnit", &RemoteUnit_factory)); - map.insert(std::make_pair("cim:CommunicationLink", &CommunicationLink_factory)); - map.insert(std::make_pair("cim:RemoteControl", &RemoteControl_factory)); - map.insert(std::make_pair("cim:RemoteSource", &RemoteSource_factory)); - map.insert(std::make_pair("cim:AuxiliaryEquipment", &AuxiliaryEquipment_factory)); - map.insert(std::make_pair("cim:FaultIndicator", &FaultIndicator_factory)); - map.insert(std::make_pair("cim:FlowSensor", &FlowSensor_factory)); - map.insert(std::make_pair("cim:Sensor", &Sensor_factory)); - map.insert(std::make_pair("cim:PotentialTransformer", &PotentialTransformer_factory)); - map.insert(std::make_pair("cim:WaveTrap", &WaveTrap_factory)); - map.insert(std::make_pair("cim:SurgeArrester", &SurgeArrester_factory)); - map.insert(std::make_pair("cim:PostLineSensor", &PostLineSensor_factory)); - map.insert(std::make_pair("cim:CurrentTransformer", &CurrentTransformer_factory)); - map.insert(std::make_pair("cim:CurveData", &CurveData_factory)); - map.insert(std::make_pair("cim:EquipmentContainer", &EquipmentContainer_factory)); - map.insert(std::make_pair("cim:Line", &Line_factory)); - map.insert(std::make_pair("cim:Bay", &Bay_factory)); - map.insert(std::make_pair("cim:VoltageLevel", &VoltageLevel_factory)); - map.insert(std::make_pair("cim:DCEquipmentContainer", &DCEquipmentContainer_factory)); - map.insert(std::make_pair("cim:DCConverterUnit", &DCConverterUnit_factory)); - map.insert(std::make_pair("cim:Substation", &Substation_factory)); - map.insert(std::make_pair("cim:SubGeographicalRegion", &SubGeographicalRegion_factory)); - map.insert(std::make_pair("cim:OperatingParticipant", &OperatingParticipant_factory)); - map.insert(std::make_pair("cim:OperatingShare", &OperatingShare_factory)); - map.insert(std::make_pair("cim:Curve", &Curve_factory)); - map.insert(std::make_pair("cim:BaseFrequency", &BaseFrequency_factory)); - map.insert(std::make_pair("cim:ReportingSuperGroup", &ReportingSuperGroup_factory)); - map.insert(std::make_pair("cim:NameTypeAuthority", &NameTypeAuthority_factory)); - map.insert(std::make_pair("cim:NameType", &NameType_factory)); - map.insert(std::make_pair("cim:Name", &Name_factory)); - map.insert(std::make_pair("cim:IrregularTimePoint", &IrregularTimePoint_factory)); - map.insert(std::make_pair("cim:IrregularIntervalSchedule", &IrregularIntervalSchedule_factory)); - map.insert(std::make_pair("cim:BasePower", &BasePower_factory)); - map.insert(std::make_pair("cim:GeographicalRegion", &GeographicalRegion_factory)); - map.insert(std::make_pair("cim:DiagramObjectStyle", &DiagramObjectStyle_factory)); - map.insert(std::make_pair("cim:Diagram", &Diagram_factory)); - map.insert(std::make_pair("cim:VisibilityLayer", &VisibilityLayer_factory)); - map.insert(std::make_pair("cim:DiagramObjectGluePoint", &DiagramObjectGluePoint_factory)); - map.insert(std::make_pair("cim:DiagramObjectPoint", &DiagramObjectPoint_factory)); - map.insert(std::make_pair("cim:DiagramObject", &DiagramObject_factory)); - map.insert(std::make_pair("cim:TextDiagramObject", &TextDiagramObject_factory)); - map.insert(std::make_pair("cim:DiagramStyle", &DiagramStyle_factory)); - map.insert(std::make_pair("cim:StationSupply", &StationSupply_factory)); - map.insert(std::make_pair("cim:NonConformLoad", &NonConformLoad_factory)); - map.insert(std::make_pair("cim:LoadGroup", &LoadGroup_factory)); - map.insert(std::make_pair("cim:SeasonDayTypeSchedule", &SeasonDayTypeSchedule_factory)); - map.insert(std::make_pair("cim:NonConformLoadSchedule", &NonConformLoadSchedule_factory)); - map.insert(std::make_pair("cim:NonConformLoadGroup", &NonConformLoadGroup_factory)); - map.insert(std::make_pair("cim:DayType", &DayType_factory)); - map.insert(std::make_pair("cim:EnergyArea", &EnergyArea_factory)); - map.insert(std::make_pair("cim:SubLoadArea", &SubLoadArea_factory)); - map.insert(std::make_pair("cim:LoadArea", &LoadArea_factory)); - map.insert(std::make_pair("cim:PowerCutZone", &PowerCutZone_factory)); - map.insert(std::make_pair("cim:ConformLoad", &ConformLoad_factory)); - map.insert(std::make_pair("cim:Season", &Season_factory)); - map.insert(std::make_pair("cim:ConformLoadSchedule", &ConformLoadSchedule_factory)); - map.insert(std::make_pair("cim:ConformLoadGroup", &ConformLoadGroup_factory)); - map.insert(std::make_pair("cim:ShuntCompensatorPhase", &ShuntCompensatorPhase_factory)); - map.insert(std::make_pair("cim:ShuntCompensator", &ShuntCompensator_factory)); - map.insert(std::make_pair("cim:LinearShuntCompensator", &LinearShuntCompensator_factory)); - map.insert(std::make_pair("cim:TapChangerControl", &TapChangerControl_factory)); - map.insert(std::make_pair("cim:TapChanger", &TapChanger_factory)); - map.insert(std::make_pair("cim:PhaseTapChanger", &PhaseTapChanger_factory)); - map.insert(std::make_pair("cim:Conductor", &Conductor_factory)); - map.insert(std::make_pair("cim:Clamp", &Clamp_factory)); - map.insert(std::make_pair("cim:ACLineSegment", &ACLineSegment_factory)); - map.insert(std::make_pair("cim:PerLengthLineParameter", &PerLengthLineParameter_factory)); - map.insert(std::make_pair("cim:PerLengthImpedance", &PerLengthImpedance_factory)); - map.insert(std::make_pair("cim:LinearShuntCompensatorPhase", &LinearShuntCompensatorPhase_factory)); - map.insert(std::make_pair("cim:MutualCoupling", &MutualCoupling_factory)); - map.insert(std::make_pair("cim:StaticVarCompensator", &StaticVarCompensator_factory)); - map.insert(std::make_pair("cim:Ground", &Ground_factory)); - map.insert(std::make_pair("cim:PhaseImpedanceData", &PhaseImpedanceData_factory)); - map.insert(std::make_pair("cim:PerLengthPhaseImpedance", &PerLengthPhaseImpedance_factory)); - map.insert(std::make_pair("cim:Plant", &Plant_factory)); - map.insert(std::make_pair("cim:ReactiveCapabilityCurve", &ReactiveCapabilityCurve_factory)); - map.insert(std::make_pair("cim:PhaseTapChangerNonLinear", &PhaseTapChangerNonLinear_factory)); - map.insert(std::make_pair("cim:EarthFaultCompensator", &EarthFaultCompensator_factory)); - map.insert(std::make_pair("cim:PetersenCoil", &PetersenCoil_factory)); - map.insert(std::make_pair("cim:PhaseTapChangerLinear", &PhaseTapChangerLinear_factory)); - map.insert(std::make_pair("cim:ACLineSegmentPhase", &ACLineSegmentPhase_factory)); - map.insert(std::make_pair("cim:EnergySource", &EnergySource_factory)); - map.insert(std::make_pair("cim:NonlinearShuntCompensatorPoint", &NonlinearShuntCompensatorPoint_factory)); - map.insert(std::make_pair("cim:NonlinearShuntCompensator", &NonlinearShuntCompensator_factory)); - map.insert(std::make_pair("cim:TransformerStarImpedance", &TransformerStarImpedance_factory)); - map.insert(std::make_pair("cim:RatioTapChangerTable", &RatioTapChangerTable_factory)); - map.insert(std::make_pair("cim:RatioTapChanger", &RatioTapChanger_factory)); - map.insert(std::make_pair("cim:TransformerEnd", &TransformerEnd_factory)); - map.insert(std::make_pair("cim:PowerTransformerEnd", &PowerTransformerEnd_factory)); - map.insert(std::make_pair("cim:ExternalNetworkInjection", &ExternalNetworkInjection_factory)); - map.insert(std::make_pair("cim:VoltageControlZone", &VoltageControlZone_factory)); - map.insert(std::make_pair("cim:RegulationSchedule", &RegulationSchedule_factory)); - map.insert(std::make_pair("cim:TapChangerTablePoint", &TapChangerTablePoint_factory)); - map.insert(std::make_pair("cim:RatioTapChangerTablePoint", &RatioTapChangerTablePoint_factory)); - map.insert(std::make_pair("cim:TransformerCoreAdmittance", &TransformerCoreAdmittance_factory)); - map.insert(std::make_pair("cim:PerLengthSequenceImpedance", &PerLengthSequenceImpedance_factory)); - map.insert(std::make_pair("cim:SwitchPhase", &SwitchPhase_factory)); - map.insert(std::make_pair("cim:TapSchedule", &TapSchedule_factory)); - map.insert(std::make_pair("cim:SwitchSchedule", &SwitchSchedule_factory)); - map.insert(std::make_pair("cim:Switch", &Switch_factory)); - map.insert(std::make_pair("cim:RecloseSequence", &RecloseSequence_factory)); - map.insert(std::make_pair("cim:ProtectedSwitch", &ProtectedSwitch_factory)); - map.insert(std::make_pair("cim:TransformerMeshImpedance", &TransformerMeshImpedance_factory)); - map.insert(std::make_pair("cim:Connector", &Connector_factory)); - map.insert(std::make_pair("cim:EnergySourcePhase", &EnergySourcePhase_factory)); - map.insert(std::make_pair("cim:Breaker", &Breaker_factory)); - map.insert(std::make_pair("cim:Disconnector", &Disconnector_factory)); - map.insert(std::make_pair("cim:CompositeSwitch", &CompositeSwitch_factory)); - map.insert(std::make_pair("cim:PowerTransformer", &PowerTransformer_factory)); - map.insert(std::make_pair("cim:Cut", &Cut_factory)); - map.insert(std::make_pair("cim:NonlinearShuntCompensatorPhasePoint", &NonlinearShuntCompensatorPhasePoint_factory)); - map.insert(std::make_pair("cim:NonlinearShuntCompensatorPhase", &NonlinearShuntCompensatorPhase_factory)); - map.insert(std::make_pair("cim:PhaseTapChangerSymmetrical", &PhaseTapChangerSymmetrical_factory)); - map.insert(std::make_pair("cim:PhaseTapChangerTabular", &PhaseTapChangerTabular_factory)); - map.insert(std::make_pair("cim:PhaseTapChangerTable", &PhaseTapChangerTable_factory)); - map.insert(std::make_pair("cim:PhaseTapChangerTablePoint", &PhaseTapChangerTablePoint_factory)); - map.insert(std::make_pair("cim:GroundDisconnector", &GroundDisconnector_factory)); - map.insert(std::make_pair("cim:LoadBreakSwitch", &LoadBreakSwitch_factory)); - map.insert(std::make_pair("cim:FrequencyConverter", &FrequencyConverter_factory)); - map.insert(std::make_pair("cim:Jumper", &Jumper_factory)); - map.insert(std::make_pair("cim:TransformerTank", &TransformerTank_factory)); - map.insert(std::make_pair("cim:GroundingImpedance", &GroundingImpedance_factory)); - map.insert(std::make_pair("cim:SeriesCompensator", &SeriesCompensator_factory)); - map.insert(std::make_pair("cim:Sectionaliser", &Sectionaliser_factory)); - map.insert(std::make_pair("cim:Junction", &Junction_factory)); - map.insert(std::make_pair("cim:Recloser", &Recloser_factory)); - map.insert(std::make_pair("cim:Fuse", &Fuse_factory)); - map.insert(std::make_pair("cim:PhaseTapChangerAsymmetrical", &PhaseTapChangerAsymmetrical_factory)); - map.insert(std::make_pair("cim:BusbarSection", &BusbarSection_factory)); - map.insert(std::make_pair("cim:TransformerTankEnd", &TransformerTankEnd_factory)); - map.insert(std::make_pair("cim:Quality61850", &Quality61850_factory)); - map.insert(std::make_pair("cim:MeasurementValueQuality", &MeasurementValueQuality_factory)); - map.insert(std::make_pair("cim:MeasurementValue", &MeasurementValue_factory)); - map.insert(std::make_pair("cim:AccumulatorValue", &AccumulatorValue_factory)); - map.insert(std::make_pair("cim:AccumulatorReset", &AccumulatorReset_factory)); - map.insert(std::make_pair("cim:AnalogControl", &AnalogControl_factory)); - map.insert(std::make_pair("cim:ValueToAlias", &ValueToAlias_factory)); - map.insert(std::make_pair("cim:ValueAliasSet", &ValueAliasSet_factory)); - map.insert(std::make_pair("cim:RaiseLowerCommand", &RaiseLowerCommand_factory)); - map.insert(std::make_pair("cim:Limit", &Limit_factory)); - map.insert(std::make_pair("cim:AccumulatorLimit", &AccumulatorLimit_factory)); - map.insert(std::make_pair("cim:LimitSet", &LimitSet_factory)); - map.insert(std::make_pair("cim:AccumulatorLimitSet", &AccumulatorLimitSet_factory)); - map.insert(std::make_pair("cim:AnalogLimit", &AnalogLimit_factory)); - map.insert(std::make_pair("cim:AnalogValue", &AnalogValue_factory)); - map.insert(std::make_pair("cim:Command", &Command_factory)); - map.insert(std::make_pair("cim:DiscreteCommand", &DiscreteCommand_factory)); - map.insert(std::make_pair("cim:StringMeasurement", &StringMeasurement_factory)); - map.insert(std::make_pair("cim:StringMeasurementValue", &StringMeasurementValue_factory)); - map.insert(std::make_pair("cim:AnalogLimitSet", &AnalogLimitSet_factory)); - map.insert(std::make_pair("cim:MeasurementValueSource", &MeasurementValueSource_factory)); - map.insert(std::make_pair("cim:DiscreteValue", &DiscreteValue_factory)); - map.insert(std::make_pair("cim:Accumulator", &Accumulator_factory)); - map.insert(std::make_pair("cim:Analog", &Analog_factory)); - map.insert(std::make_pair("cim:Discrete", &Discrete_factory)); - map.insert(std::make_pair("cim:SetPoint", &SetPoint_factory)); - map.insert(std::make_pair("cim:StateVariable", &StateVariable_factory)); - map.insert(std::make_pair("cim:SvTapStep", &SvTapStep_factory)); - map.insert(std::make_pair("cim:SvVoltage", &SvVoltage_factory)); - map.insert(std::make_pair("cim:SvShuntCompensatorSections", &SvShuntCompensatorSections_factory)); - map.insert(std::make_pair("cim:SvStatus", &SvStatus_factory)); - map.insert(std::make_pair("cim:SvPowerFlow", &SvPowerFlow_factory)); - map.insert(std::make_pair("cim:SvInjection", &SvInjection_factory)); - map.insert(std::make_pair("cim:FuelAllocationSchedule", &FuelAllocationSchedule_factory)); - map.insert(std::make_pair("cim:HeatInputCurve", &HeatInputCurve_factory)); - map.insert(std::make_pair("cim:TailbayLossCurve", &TailbayLossCurve_factory)); - map.insert(std::make_pair("cim:GrossToNetActivePowerCurve", &GrossToNetActivePowerCurve_factory)); - map.insert(std::make_pair("cim:EmissionCurve", &EmissionCurve_factory)); - map.insert(std::make_pair("cim:GenUnitOpSchedule", &GenUnitOpSchedule_factory)); - map.insert(std::make_pair("cim:GenUnitOpCostCurve", &GenUnitOpCostCurve_factory)); - map.insert(std::make_pair("cim:GeneratingUnit", &GeneratingUnit_factory)); - map.insert(std::make_pair("cim:SolarGeneratingUnit", &SolarGeneratingUnit_factory)); - map.insert(std::make_pair("cim:IncrementalHeatRateCurve", &IncrementalHeatRateCurve_factory)); - map.insert(std::make_pair("cim:StartIgnFuelCurve", &StartIgnFuelCurve_factory)); - map.insert(std::make_pair("cim:InflowForecast", &InflowForecast_factory)); - map.insert(std::make_pair("cim:EmissionAccount", &EmissionAccount_factory)); - map.insert(std::make_pair("cim:HydroGeneratingEfficiencyCurve", &HydroGeneratingEfficiencyCurve_factory)); - map.insert(std::make_pair("cim:PenstockLossCurve", &PenstockLossCurve_factory)); - map.insert(std::make_pair("cim:HydroGeneratingUnit", &HydroGeneratingUnit_factory)); - map.insert(std::make_pair("cim:HeatRateCurve", &HeatRateCurve_factory)); - map.insert(std::make_pair("cim:StartRampCurve", &StartRampCurve_factory)); - map.insert(std::make_pair("cim:StartMainFuelCurve", &StartMainFuelCurve_factory)); - map.insert(std::make_pair("cim:StartupModel", &StartupModel_factory)); - map.insert(std::make_pair("cim:ShutdownCurve", &ShutdownCurve_factory)); - map.insert(std::make_pair("cim:ThermalGeneratingUnit", &ThermalGeneratingUnit_factory)); - map.insert(std::make_pair("cim:AirCompressor", &AirCompressor_factory)); - map.insert(std::make_pair("cim:CAESPlant", &CAESPlant_factory)); - map.insert(std::make_pair("cim:LevelVsVolumeCurve", &LevelVsVolumeCurve_factory)); - map.insert(std::make_pair("cim:TargetLevelSchedule", &TargetLevelSchedule_factory)); - map.insert(std::make_pair("cim:Reservoir", &Reservoir_factory)); - map.insert(std::make_pair("cim:HydroPowerPlant", &HydroPowerPlant_factory)); - map.insert(std::make_pair("cim:WindGeneratingUnit", &WindGeneratingUnit_factory)); - map.insert(std::make_pair("cim:FossilFuel", &FossilFuel_factory)); - map.insert(std::make_pair("cim:SteamSendoutSchedule", &SteamSendoutSchedule_factory)); - map.insert(std::make_pair("cim:CogenerationPlant", &CogenerationPlant_factory)); - map.insert(std::make_pair("cim:NuclearGeneratingUnit", &NuclearGeneratingUnit_factory)); - map.insert(std::make_pair("cim:CombinedCyclePlant", &CombinedCyclePlant_factory)); - map.insert(std::make_pair("cim:PrimeMover", &PrimeMover_factory)); - map.insert(std::make_pair("cim:SteamTurbine", &SteamTurbine_factory)); - map.insert(std::make_pair("cim:SteamSupply", &SteamSupply_factory)); - map.insert(std::make_pair("cim:HydroTurbine", &HydroTurbine_factory)); - map.insert(std::make_pair("cim:CTTempActivePowerCurve", &CTTempActivePowerCurve_factory)); - map.insert(std::make_pair("cim:CombustionTurbine", &CombustionTurbine_factory)); - map.insert(std::make_pair("cim:PWRSteamSupply", &PWRSteamSupply_factory)); - map.insert(std::make_pair("cim:FossilSteamSupply", &FossilSteamSupply_factory)); - map.insert(std::make_pair("cim:HeatRecoveryBoiler", &HeatRecoveryBoiler_factory)); - map.insert(std::make_pair("cim:Supercritical", &Supercritical_factory)); - map.insert(std::make_pair("cim:Subcritical", &Subcritical_factory)); - map.insert(std::make_pair("cim:BWRSteamSupply", &BWRSteamSupply_factory)); - map.insert(std::make_pair("cim:DrumBoiler", &DrumBoiler_factory)); - map.insert(std::make_pair("cim:ProtectionEquipment", &ProtectionEquipment_factory)); - map.insert(std::make_pair("cim:CurrentRelay", &CurrentRelay_factory)); - map.insert(std::make_pair("cim:SynchrocheckRelay", &SynchrocheckRelay_factory)); - map.insert(std::make_pair("cim:ContingencyElement", &ContingencyElement_factory)); - map.insert(std::make_pair("cim:Contingency", &Contingency_factory)); - map.insert(std::make_pair("cim:ContingencyEquipment", &ContingencyEquipment_factory)); - map.insert(std::make_pair("cim:AltTieMeas", &AltTieMeas_factory)); - map.insert(std::make_pair("cim:TieFlow", &TieFlow_factory)); - map.insert(std::make_pair("cim:AltGeneratingUnitMeas", &AltGeneratingUnitMeas_factory)); - map.insert(std::make_pair("cim:ControlAreaGeneratingUnit", &ControlAreaGeneratingUnit_factory)); - map.insert(std::make_pair("cim:ControlArea", &ControlArea_factory)); - map.insert(std::make_pair("cim:DCBaseTerminal", &DCBaseTerminal_factory)); - map.insert(std::make_pair("cim:DCTerminal", &DCTerminal_factory)); - map.insert(std::make_pair("cim:DCConductingEquipment", &DCConductingEquipment_factory)); - map.insert(std::make_pair("cim:DCSeriesDevice", &DCSeriesDevice_factory)); - map.insert(std::make_pair("cim:DCSwitch", &DCSwitch_factory)); - map.insert(std::make_pair("cim:DCDisconnector", &DCDisconnector_factory)); - map.insert(std::make_pair("cim:DCLineSegment", &DCLineSegment_factory)); - map.insert(std::make_pair("cim:PerLengthDCLineParameter", &PerLengthDCLineParameter_factory)); - map.insert(std::make_pair("cim:ACDCConverter", &ACDCConverter_factory)); - map.insert(std::make_pair("cim:VsCapabilityCurve", &VsCapabilityCurve_factory)); - map.insert(std::make_pair("cim:VsConverter", &VsConverter_factory)); - map.insert(std::make_pair("cim:DCGround", &DCGround_factory)); - map.insert(std::make_pair("cim:DCShunt", &DCShunt_factory)); - map.insert(std::make_pair("cim:ACDCConverterDCTerminal", &ACDCConverterDCTerminal_factory)); - map.insert(std::make_pair("cim:DCLine", &DCLine_factory)); - map.insert(std::make_pair("cim:DCChopper", &DCChopper_factory)); - map.insert(std::make_pair("cim:DCNode", &DCNode_factory)); - map.insert(std::make_pair("cim:CsConverter", &CsConverter_factory)); - map.insert(std::make_pair("cim:DCBusbar", &DCBusbar_factory)); - map.insert(std::make_pair("cim:DCBreaker", &DCBreaker_factory)); - map.insert(std::make_pair("cim:DCTopologicalIsland", &DCTopologicalIsland_factory)); - map.insert(std::make_pair("cim:FaultImpedance", &FaultImpedance_factory)); - map.insert(std::make_pair("cim:FaultCauseType", &FaultCauseType_factory)); - map.insert(std::make_pair("cim:Fault", &Fault_factory)); - map.insert(std::make_pair("cim:LineFault", &LineFault_factory)); - map.insert(std::make_pair("cim:EquipmentFault", &EquipmentFault_factory)); - - return map; -} diff --git a/IEC61970_17v07/CIMFactory.hpp b/IEC61970_17v07/CIMFactory.hpp deleted file mode 100644 index 3146441a2..000000000 --- a/IEC61970_17v07/CIMFactory.hpp +++ /dev/null @@ -1,19 +0,0 @@ -#ifndef CIMFACTORY_HPP -#define CIMFACTORY_HPP - -#include -#include -#include "BaseClass.h" - -class CIMFactory -{ -public: - CIMFactory(); - static BaseClass* CreateNew(const std::string& name); - static bool IsCIMClass(const std::string& name); - -private: - static std::unordered_map factory_map; -}; - -#endif // CIMFACTORY_HPP diff --git a/IEC61970_17v07/CIMNamespaces.hpp b/IEC61970_17v07/CIMNamespaces.hpp deleted file mode 100644 index e8256776d..000000000 --- a/IEC61970_17v07/CIMNamespaces.hpp +++ /dev/null @@ -1,71 +0,0 @@ -#ifndef CIM_NAMESPACE_HPP -#define CIM_NAMESPACE_HPP - -#include "IEC61970/Base/Domain/UnitMultiplier.h" - -namespace IEC61970 { - class IEC61970CIMVersion; - namespace Base { - namespace Core { - class BaseVoltage; - class ConductingEquipment; - class IdentifiedObject; - class Terminal; - } - namespace Equivalents { - class EquivalentShunt; - } - namespace Generation { - namespace Production { - class GeneratingUnit; - } - } - namespace StateVariables { - class SvVoltage; - class SvPowerFlow; - class SvTapStep; - } - namespace Topology { - class TopologicalNode; - } - namespace Wires { - class ACLineSegment; - class PowerTransformer; - class SynchronousMachine; - class EnergyConsumer; - class ExternalNetworkInjection; - class PowerTransformerEnd; - } - } - namespace Dynamics { - namespace StandardModels { - namespace SynchronousMachineDynamics { - class SynchronousMachineTimeConstantReactance; - } - } - } -} - -namespace CIMPP { - using IEC61970::IEC61970CIMVersion; - using IEC61970::Base::Core::BaseVoltage; - using IEC61970::Base::Core::ConductingEquipment; - using IEC61970::Base::Core::IdentifiedObject; - using IEC61970::Base::Core::Terminal; - using IEC61970::Base::Domain::UnitMultiplier; - using IEC61970::Base::Equivalents::EquivalentShunt; - using IEC61970::Base::Generation::Production::GeneratingUnit; - using IEC61970::Base::StateVariables::SvVoltage; - using IEC61970::Base::StateVariables::SvPowerFlow; - using IEC61970::Base::StateVariables::SvTapStep; - using IEC61970::Base::Topology::TopologicalNode; - using IEC61970::Base::Wires::ACLineSegment; - using IEC61970::Base::Wires::EnergyConsumer; - using IEC61970::Base::Wires::ExternalNetworkInjection; - using IEC61970::Base::Wires::PowerTransformer; - using IEC61970::Base::Wires::PowerTransformerEnd; - using IEC61970::Base::Wires::SynchronousMachine; - using IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::SynchronousMachineTimeConstantReactance; -} - -#endif diff --git a/IEC61970_17v07/Folders.hpp b/IEC61970_17v07/Folders.hpp deleted file mode 100644 index ee9cdc7ee..000000000 --- a/IEC61970_17v07/Folders.hpp +++ /dev/null @@ -1,2 +0,0 @@ - -#include "IEC61970.hpp" diff --git a/IEC61970_17v07/IEC61970.hpp b/IEC61970_17v07/IEC61970.hpp deleted file mode 100644 index 360f9340c..000000000 --- a/IEC61970_17v07/IEC61970.hpp +++ /dev/null @@ -1,629 +0,0 @@ -#include "IEC61970/IEC61970CIMVersion.h" -#include "IEC61970/Dynamics/UserDefinedModels/WindPlantUserDefined.h" -#include "IEC61970/Dynamics/UserDefinedModels/UnderexcitationLimiterUserDefined.h" -#include "IEC61970/Dynamics/UserDefinedModels/ProprietaryParameterDynamics.h" -#include "IEC61970/Dynamics/UserDefinedModels/SynchronousMachineUserDefined.h" -#include "IEC61970/Dynamics/UserDefinedModels/PowerSystemStabilizerUserDefined.h" -#include "IEC61970/Dynamics/UserDefinedModels/VoltageAdjusterUserDefined.h" -#include "IEC61970/Dynamics/UserDefinedModels/MechanicalLoadUserDefined.h" -#include "IEC61970/Dynamics/UserDefinedModels/PFVArControllerType1UserDefined.h" -#include "IEC61970/Dynamics/UserDefinedModels/WindType3or4UserDefined.h" -#include "IEC61970/Dynamics/UserDefinedModels/WindType1or2UserDefined.h" -#include "IEC61970/Dynamics/UserDefinedModels/TurbineGovernorUserDefined.h" -#include "IEC61970/Dynamics/UserDefinedModels/LoadUserDefined.h" -#include "IEC61970/Dynamics/UserDefinedModels/AsynchronousMachineUserDefined.h" -#include "IEC61970/Dynamics/UserDefinedModels/DiscontinuousExcitationControlUserDefined.h" -#include "IEC61970/Dynamics/UserDefinedModels/VoltageCompensatorUserDefined.h" -#include "IEC61970/Dynamics/UserDefinedModels/ExcitationSystemUserDefined.h" -#include "IEC61970/Dynamics/UserDefinedModels/OverexcitationLimiterUserDefined.h" -#include "IEC61970/Dynamics/UserDefinedModels/TurbineLoadControllerUserDefined.h" -#include "IEC61970/Dynamics/UserDefinedModels/PFVArControllerType2UserDefined.h" -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindDynamicsLookupTable.h" -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindAeroLinearIEC.h" -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindGenTurbineType2IEC.h" -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindTurbineType1or2Dynamics.h" -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindTurbineType3or4Dynamics.h" -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindLookupTableFunctionKind.h" -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindGenType4IEC.h" -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindLVRTQcontrolModesKind.h" -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindContPType4aIEC.h" -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindMechIEC.h" -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindGenTurbineType3bIEC.h" -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindGenTurbineType3aIEC.h" -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindContCurrLimIEC.h" -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindTurbineType3or4IEC.h" -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindPlantIEC.h" -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindPitchContEmulIEC.h" -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindPlantFreqPcontrolIEC.h" -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindContPitchAngleIEC.h" -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindQcontrolModesKind.h" -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindGenTurbineType3IEC.h" -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindPlantDynamics.h" -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindContQIEC.h" -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindGenTurbineType1IEC.h" -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindContPType4bIEC.h" -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindTurbineType1or2IEC.h" -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindContRotorRIEC.h" -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindAeroConstIEC.h" -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindContPType3IEC.h" -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindTurbineType4aIEC.h" -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindProtectionIEC.h" -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindPlantReactiveControlIEC.h" -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindTurbineType4bIEC.h" -#include "IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/Pss1A.h" -#include "IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssSK.h" -#include "IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssPTIST3.h" -#include "IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssIEEE4B.h" -#include "IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssPTIST1.h" -#include "IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/Pss2B.h" -#include "IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssIEEE3B.h" -#include "IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/InputSignalKind.h" -#include "IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/Pss2ST.h" -#include "IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssWECC.h" -#include "IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssELIN2.h" -#include "IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/Pss1.h" -#include "IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssIEEE2B.h" -#include "IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/Pss5.h" -#include "IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssSB4.h" -#include "IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PowerSystemStabilizerDynamics.h" -#include "IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssSH.h" -#include "IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssIEEE1A.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcREXS.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEAC1A.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEAC7B.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEST2A.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEAC5A.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAVR3.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcST4B.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcST7B.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEDC1A.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEAC4A.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEST4B.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEAC2A.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcBBC.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAVR2.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcST7BUELselectorKind.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAC5A.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAVR5.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcHU.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcANS.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEST3A.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAC4A.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcDC3A1.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAC1A.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcREXSFeedbackSignalKind.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcDC3A.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAC3A.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEDC2A.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcST2A.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcCZ.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcST6BOELselectorKind.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEST1A.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAC2A.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEAC8B.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcELIN1.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcDC1A.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcSCRX.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEDC3A.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEAC6A.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcELIN2.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcSK.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEST7B.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcST1A.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEST6B.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcDC2A.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcST7BOELselectorKind.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcOEX3T.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEST1AUELselectorKind.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEST5B.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAVR4.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcSEXS.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEDC4B.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAVR7.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcPIC.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcST6B.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEAC3A.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAVR1.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcST3A.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAC8B.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAC6A.h" -#include "IEC61970/Dynamics/StandardModels/RotatingMachineDynamics.h" -#include "IEC61970/Dynamics/StandardModels/MechanicalLoadDynamics/MechLoad1.h" -#include "IEC61970/Dynamics/StandardModels/MechanicalLoadDynamics/MechanicalLoadDynamics.h" -#include "IEC61970/Dynamics/StandardModels/PFVArControllerType1Dynamics/PFVArControllerType1Dynamics.h" -#include "IEC61970/Dynamics/StandardModels/PFVArControllerType1Dynamics/PFVArType1IEEEPFController.h" -#include "IEC61970/Dynamics/StandardModels/PFVArControllerType1Dynamics/PFVArType1IEEEVArController.h" -#include "IEC61970/Dynamics/StandardModels/AsynchronousMachineDynamics/AsynchronousMachineTimeConstantReactance.h" -#include "IEC61970/Dynamics/StandardModels/AsynchronousMachineDynamics/AsynchronousMachineDynamics.h" -#include "IEC61970/Dynamics/StandardModels/AsynchronousMachineDynamics/AsynchronousMachineEquivalentCircuit.h" -#include "IEC61970/Dynamics/StandardModels/DiscontinuousExcitationControlDynamics/DiscontinuousExcitationControlDynamics.h" -#include "IEC61970/Dynamics/StandardModels/DiscontinuousExcitationControlDynamics/DiscExcContIEEEDEC3A.h" -#include "IEC61970/Dynamics/StandardModels/DiscontinuousExcitationControlDynamics/DiscExcContIEEEDEC2A.h" -#include "IEC61970/Dynamics/StandardModels/DiscontinuousExcitationControlDynamics/DiscExcContIEEEDEC1A.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteamSGO.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteam1.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteamEU.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroPID2.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroWPID.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovGAST4.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydro4.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroWEH.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteamIEEE1.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/TurbineGovernorDynamics.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydro3.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovGAST.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovGAST3.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteam2.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteamFV4.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovGAST1.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteamFV3.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydro1.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/DroopSignalFeedbackKind.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydro2.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovCT1.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroIEEE0.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteam0.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteamFV2.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteamCC.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovGAST2.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovCT2.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroPelton.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroFrancis.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroR.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/FrancisGovernorControlKind.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovGASTWD.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroPID.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroIEEE2.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroDD.h" -#include "IEC61970/Dynamics/StandardModels/VoltageCompensatorDynamics/GenICompensationForGenJ.h" -#include "IEC61970/Dynamics/StandardModels/VoltageCompensatorDynamics/VCompIEEEType1.h" -#include "IEC61970/Dynamics/StandardModels/VoltageCompensatorDynamics/VoltageCompensatorDynamics.h" -#include "IEC61970/Dynamics/StandardModels/VoltageCompensatorDynamics/VCompIEEEType2.h" -#include "IEC61970/Dynamics/StandardModels/LoadDynamics/LoadAggregate.h" -#include "IEC61970/Dynamics/StandardModels/LoadDynamics/StaticLoadModelKind.h" -#include "IEC61970/Dynamics/StandardModels/LoadDynamics/LoadDynamics.h" -#include "IEC61970/Dynamics/StandardModels/LoadDynamics/LoadMotor.h" -#include "IEC61970/Dynamics/StandardModels/LoadDynamics/LoadGenericNonLinear.h" -#include "IEC61970/Dynamics/StandardModels/LoadDynamics/LoadComposite.h" -#include "IEC61970/Dynamics/StandardModels/LoadDynamics/GenericNonLinearLoadModelKind.h" -#include "IEC61970/Dynamics/StandardModels/LoadDynamics/LoadStatic.h" -#include "IEC61970/Dynamics/StandardModels/TurbineLoadControllerDynamics/TurbLCFB1.h" -#include "IEC61970/Dynamics/StandardModels/TurbineLoadControllerDynamics/TurbineLoadControllerDynamics.h" -#include "IEC61970/Dynamics/StandardModels/OverexcitationLimiterDynamics/OverexcLim2.h" -#include "IEC61970/Dynamics/StandardModels/OverexcitationLimiterDynamics/OverexcitationLimiterDynamics.h" -#include "IEC61970/Dynamics/StandardModels/OverexcitationLimiterDynamics/OverexcLimX2.h" -#include "IEC61970/Dynamics/StandardModels/OverexcitationLimiterDynamics/OverexcLimIEEE.h" -#include "IEC61970/Dynamics/StandardModels/OverexcitationLimiterDynamics/OverexcLimX1.h" -#include "IEC61970/Dynamics/StandardModels/SynchronousMachineDynamics/SynchronousMachineTimeConstantReactance.h" -#include "IEC61970/Dynamics/StandardModels/SynchronousMachineDynamics/SynchronousMachineSimplified.h" -#include "IEC61970/Dynamics/StandardModels/SynchronousMachineDynamics/IfdBaseKind.h" -#include "IEC61970/Dynamics/StandardModels/SynchronousMachineDynamics/SynchronousMachineEquivalentCircuit.h" -#include "IEC61970/Dynamics/StandardModels/SynchronousMachineDynamics/SynchronousMachineModelKind.h" -#include "IEC61970/Dynamics/StandardModels/SynchronousMachineDynamics/RotorKind.h" -#include "IEC61970/Dynamics/StandardModels/SynchronousMachineDynamics/SynchronousMachineDynamics.h" -#include "IEC61970/Dynamics/StandardModels/SynchronousMachineDynamics/SynchronousMachineDetailed.h" -#include "IEC61970/Dynamics/StandardModels/VoltageAdjusterDynamics/VAdjIEEE.h" -#include "IEC61970/Dynamics/StandardModels/VoltageAdjusterDynamics/VoltageAdjusterDynamics.h" -#include "IEC61970/Dynamics/StandardModels/PFVArControllerType2Dynamics/PFVArType2IEEEPFController.h" -#include "IEC61970/Dynamics/StandardModels/PFVArControllerType2Dynamics/PFVArType2Common1.h" -#include "IEC61970/Dynamics/StandardModels/PFVArControllerType2Dynamics/PFVArType2IEEEVArController.h" -#include "IEC61970/Dynamics/StandardModels/PFVArControllerType2Dynamics/PFVArControllerType2Dynamics.h" -#include "IEC61970/Dynamics/StandardModels/UnderexcitationLimiterDynamics/UnderexcLim2Simplified.h" -#include "IEC61970/Dynamics/StandardModels/UnderexcitationLimiterDynamics/UnderexcitationLimiterDynamics.h" -#include "IEC61970/Dynamics/StandardModels/UnderexcitationLimiterDynamics/UnderexcLimIEEE2.h" -#include "IEC61970/Dynamics/StandardModels/UnderexcitationLimiterDynamics/UnderexcLimIEEE1.h" -#include "IEC61970/Dynamics/StandardModels/UnderexcitationLimiterDynamics/UnderexcLimX2.h" -#include "IEC61970/Dynamics/StandardModels/UnderexcitationLimiterDynamics/UnderexcLimX1.h" -#include "IEC61970/Dynamics/StandardModels/DynamicsFunctionBlock.h" -#include "IEC61970/Dynamics/StandardInterconnections/RemoteInputSignal.h" -#include "IEC61970/Dynamics/StandardInterconnections/RemoteSignalKind.h" -#include "IEC61970/Base/Equivalents/EquivalentNetwork.h" -#include "IEC61970/Base/Equivalents/EquivalentShunt.h" -#include "IEC61970/Base/Equivalents/EquivalentEquipment.h" -#include "IEC61970/Base/Equivalents/EquivalentBranch.h" -#include "IEC61970/Base/Equivalents/EquivalentInjection.h" -#include "IEC61970/Base/OperationalLimits/OperationalLimitType.h" -#include "IEC61970/Base/OperationalLimits/OperationalLimit.h" -#include "IEC61970/Base/OperationalLimits/ActivePowerLimit.h" -#include "IEC61970/Base/OperationalLimits/OperationalLimitSet.h" -#include "IEC61970/Base/OperationalLimits/VoltageLimit.h" -#include "IEC61970/Base/OperationalLimits/CurrentLimit.h" -#include "IEC61970/Base/OperationalLimits/BranchGroupTerminal.h" -#include "IEC61970/Base/OperationalLimits/BranchGroup.h" -#include "IEC61970/Base/OperationalLimits/OperationalLimitDirectionKind.h" -#include "IEC61970/Base/OperationalLimits/ApparentPowerLimit.h" -#include "IEC61970/Base/Topology/BusNameMarker.h" -#include "IEC61970/Base/Topology/TopologicalIsland.h" -#include "IEC61970/Base/Topology/DCTopologicalNode.h" -#include "IEC61970/Base/Topology/TopologicalNode.h" -#include "IEC61970/Base/Domain/Impedance.h" -#include "IEC61970/Base/Domain/InductancePerLength.h" -#include "IEC61970/Base/Domain/String.h" -#include "IEC61970/Base/Domain/StringQuantity.h" -#include "IEC61970/Base/Domain/Decimal.h" -#include "IEC61970/Base/Domain/Currency.h" -#include "IEC61970/Base/Domain/WaterLevel.h" -#include "IEC61970/Base/Domain/VoltagePerReactivePower.h" -#include "IEC61970/Base/Domain/Displacement.h" -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Domain/IntegerQuantity.h" -#include "IEC61970/Base/Domain/Susceptance.h" -#include "IEC61970/Base/Domain/AngleDegrees.h" -#include "IEC61970/Base/Domain/CostRate.h" -#include "IEC61970/Base/Domain/MonthDayInterval.h" -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/Length.h" -#include "IEC61970/Base/Domain/CurrentFlow.h" -#include "IEC61970/Base/Domain/DateTime.h" -#include "IEC61970/Base/Domain/MonthDay.h" -#include "IEC61970/Base/Domain/Volume.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/Reactance.h" -#include "IEC61970/Base/Domain/Weight.h" -#include "IEC61970/Base/Domain/Conductance.h" -#include "IEC61970/Base/Domain/Duration.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Domain/CapacitancePerLength.h" -#include "IEC61970/Base/Domain/ActivePower.h" -#include "IEC61970/Base/Domain/CostPerVolume.h" -#include "IEC61970/Base/Domain/Date.h" -#include "IEC61970/Base/Domain/ConductancePerLength.h" -#include "IEC61970/Base/Domain/Pressure.h" -#include "IEC61970/Base/Domain/SusceptancePerLength.h" -#include "IEC61970/Base/Domain/ReactancePerLength.h" -#include "IEC61970/Base/Domain/ActivePowerChangeRate.h" -#include "IEC61970/Base/Domain/Voltage.h" -#include "IEC61970/Base/Domain/DecimalQuantity.h" -#include "IEC61970/Base/Domain/ActivePowerPerCurrentFlow.h" -#include "IEC61970/Base/Domain/KiloActivePower.h" -#include "IEC61970/Base/Domain/ResistancePerLength.h" -#include "IEC61970/Base/Domain/ActivePowerPerFrequency.h" -#include "IEC61970/Base/Domain/Capacitance.h" -#include "IEC61970/Base/Domain/Resistance.h" -#include "IEC61970/Base/Domain/UnitSymbol.h" -#include "IEC61970/Base/Domain/Minutes.h" -#include "IEC61970/Base/Domain/RotationSpeed.h" -#include "IEC61970/Base/Domain/Integer.h" -#include "IEC61970/Base/Domain/Inductance.h" -#include "IEC61970/Base/Domain/Money.h" -#include "IEC61970/Base/Domain/CostPerEnergyUnit.h" -#include "IEC61970/Base/Domain/TimeInterval.h" -#include "IEC61970/Base/Domain/Temperature.h" -#include "IEC61970/Base/Domain/AngleRadians.h" -#include "IEC61970/Base/Domain/VolumeFlowRate.h" -#include "IEC61970/Base/Domain/DateInterval.h" -#include "IEC61970/Base/Domain/ReactivePower.h" -#include "IEC61970/Base/Domain/Damping.h" -#include "IEC61970/Base/Domain/PerCent.h" -#include "IEC61970/Base/Domain/Speed.h" -#include "IEC61970/Base/Domain/DateTimeInterval.h" -#include "IEC61970/Base/Domain/FloatQuantity.h" -#include "IEC61970/Base/Domain/Admittance.h" -#include "IEC61970/Base/Domain/Hours.h" -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Area.h" -#include "IEC61970/Base/Domain/RealEnergy.h" -#include "IEC61970/Base/Domain/Time.h" -#include "IEC61970/Base/Domain/Frequency.h" -#include "IEC61970/Base/Domain/ApparentPower.h" -#include "IEC61970/Base/SCADA/CommunicationLink.h" -#include "IEC61970/Base/SCADA/RemoteUnit.h" -#include "IEC61970/Base/SCADA/RemoteControl.h" -#include "IEC61970/Base/SCADA/RemoteSource.h" -#include "IEC61970/Base/SCADA/RemotePoint.h" -#include "IEC61970/Base/SCADA/RemoteUnitType.h" -#include "IEC61970/Base/SCADA/Source.h" -#include "IEC61970/Base/AuxiliaryEquipment/FaultIndicator.h" -#include "IEC61970/Base/AuxiliaryEquipment/FlowSensor.h" -#include "IEC61970/Base/AuxiliaryEquipment/PotentialTransformer.h" -#include "IEC61970/Base/AuxiliaryEquipment/WaveTrap.h" -#include "IEC61970/Base/AuxiliaryEquipment/PotentialTransformerKind.h" -#include "IEC61970/Base/AuxiliaryEquipment/SurgeArrester.h" -#include "IEC61970/Base/AuxiliaryEquipment/PostLineSensor.h" -#include "IEC61970/Base/AuxiliaryEquipment/CurrentTransformer.h" -#include "IEC61970/Base/AuxiliaryEquipment/Sensor.h" -#include "IEC61970/Base/AuxiliaryEquipment/AuxiliaryEquipment.h" -#include "IEC61970/Base/Core/CurveData.h" -#include "IEC61970/Base/Core/SubGeographicalRegion.h" -#include "IEC61970/Base/Core/Equipment.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" -#include "IEC61970/Base/Core/OperatingShare.h" -#include "IEC61970/Base/Core/ConnectivityNode.h" -#include "IEC61970/Base/Core/VoltageLevel.h" -#include "IEC61970/Base/Core/Curve.h" -#include "IEC61970/Base/Core/BaseFrequency.h" -#include "IEC61970/Base/Core/ReportingSuperGroup.h" -#include "IEC61970/Base/Core/ReportingGroup.h" -#include "IEC61970/Base/Core/RegularIntervalSchedule.h" -#include "IEC61970/Base/Core/Name.h" -#include "IEC61970/Base/Core/BreakerConfiguration.h" -#include "IEC61970/Base/Core/Terminal.h" -#include "IEC61970/Base/Core/OperatingParticipant.h" -#include "IEC61970/Base/Core/CurveStyle.h" -#include "IEC61970/Base/Core/NameTypeAuthority.h" -#include "IEC61970/Base/Core/Substation.h" -#include "IEC61970/Base/Core/ACDCTerminal.h" -#include "IEC61970/Base/Core/BusbarConfiguration.h" -#include "IEC61970/Base/Core/ConductingEquipment.h" -#include "IEC61970/Base/Core/IrregularIntervalSchedule.h" -#include "IEC61970/Base/Core/PowerSystemResource.h" -#include "IEC61970/Base/Core/BaseVoltage.h" -#include "IEC61970/Base/Core/Bay.h" -#include "IEC61970/Base/Core/NameType.h" -#include "IEC61970/Base/Core/PSRType.h" -#include "IEC61970/Base/Core/PhaseCode.h" -#include "IEC61970/Base/Core/EquipmentContainer.h" -#include "IEC61970/Base/Core/BasicIntervalSchedule.h" -#include "IEC61970/Base/Core/RegularTimePoint.h" -#include "IEC61970/Base/Core/ConnectivityNodeContainer.h" -#include "IEC61970/Base/Core/IrregularTimePoint.h" -#include "IEC61970/Base/Core/BasePower.h" -#include "IEC61970/Base/Core/GeographicalRegion.h" -#include "IEC61970/Base/DiagramLayout/DiagramObjectStyle.h" -#include "IEC61970/Base/DiagramLayout/TextDiagramObject.h" -#include "IEC61970/Base/DiagramLayout/OrientationKind.h" -#include "IEC61970/Base/DiagramLayout/DiagramObjectPoint.h" -#include "IEC61970/Base/DiagramLayout/VisibilityLayer.h" -#include "IEC61970/Base/DiagramLayout/DiagramObject.h" -#include "IEC61970/Base/DiagramLayout/DiagramStyle.h" -#include "IEC61970/Base/DiagramLayout/DiagramObjectGluePoint.h" -#include "IEC61970/Base/DiagramLayout/Diagram.h" -#include "IEC61970/Base/LoadModel/StationSupply.h" -#include "IEC61970/Base/LoadModel/NonConformLoadGroup.h" -#include "IEC61970/Base/LoadModel/SeasonDayTypeSchedule.h" -#include "IEC61970/Base/LoadModel/DayType.h" -#include "IEC61970/Base/LoadModel/NonConformLoad.h" -#include "IEC61970/Base/LoadModel/LoadGroup.h" -#include "IEC61970/Base/LoadModel/LoadArea.h" -#include "IEC61970/Base/LoadModel/NonConformLoadSchedule.h" -#include "IEC61970/Base/LoadModel/PowerCutZone.h" -#include "IEC61970/Base/LoadModel/ConformLoad.h" -#include "IEC61970/Base/LoadModel/SubLoadArea.h" -#include "IEC61970/Base/LoadModel/Season.h" -#include "IEC61970/Base/LoadModel/EnergyArea.h" -#include "IEC61970/Base/LoadModel/LoadResponseCharacteristic.h" -#include "IEC61970/Base/LoadModel/ConformLoadSchedule.h" -#include "IEC61970/Base/LoadModel/ConformLoadGroup.h" -#include "IEC61970/Base/Wires/AsynchronousMachine.h" -#include "IEC61970/Base/Wires/NonRotatingEnergy.h" -#include "IEC61970/Base/Wires/LinearShuntCompensator.h" -#include "IEC61970/Base/Wires/PhaseTapChanger.h" -#include "IEC61970/Base/Wires/WindTurbineType3or4.h" -#include "IEC61970/Base/Wires/SVCControlMode.h" -#include "IEC61970/Base/Wires/PerLengthImpedance.h" -#include "IEC61970/Base/Wires/LinearShuntCompensatorPhase.h" -#include "IEC61970/Base/Wires/MutualCoupling.h" -#include "IEC61970/Base/Wires/ACLineSegment.h" -#include "IEC61970/Base/Wires/StaticVarCompensator.h" -#include "IEC61970/Base/Wires/Ground.h" -#include "IEC61970/Base/Wires/PerLengthPhaseImpedance.h" -#include "IEC61970/Base/Wires/Plant.h" -#include "IEC61970/Base/Wires/ReactiveCapabilityCurve.h" -#include "IEC61970/Base/Wires/EnergyConsumer.h" -#include "IEC61970/Base/Wires/PerLengthLineParameter.h" -#include "IEC61970/Base/Wires/TapChanger.h" -#include "IEC61970/Base/Wires/PhaseTapChangerNonLinear.h" -#include "IEC61970/Base/Wires/SynchronousMachineOperatingMode.h" -#include "IEC61970/Base/Wires/RegulatingControlModeKind.h" -#include "IEC61970/Base/Wires/TapChangerControl.h" -#include "IEC61970/Base/Wires/PetersenCoil.h" -#include "IEC61970/Base/Wires/WindingConnection.h" -#include "IEC61970/Base/Wires/ShortCircuitRotorKind.h" -#include "IEC61970/Base/Wires/PhaseTapChangerLinear.h" -#include "IEC61970/Base/Wires/PetersenCoilModeKind.h" -#include "IEC61970/Base/Wires/SynchronousMachine.h" -#include "IEC61970/Base/Wires/ACLineSegmentPhase.h" -#include "IEC61970/Base/Wires/CoolantType.h" -#include "IEC61970/Base/Wires/EnergySource.h" -#include "IEC61970/Base/Wires/NonlinearShuntCompensator.h" -#include "IEC61970/Base/Wires/PowerTransformerEnd.h" -#include "IEC61970/Base/Wires/SynchronousMachineKind.h" -#include "IEC61970/Base/Wires/ExternalNetworkInjection.h" -#include "IEC61970/Base/Wires/Line.h" -#include "IEC61970/Base/Wires/RegulationSchedule.h" -#include "IEC61970/Base/Wires/ShuntCompensator.h" -#include "IEC61970/Base/Wires/RatioTapChangerTablePoint.h" -#include "IEC61970/Base/Wires/Clamp.h" -#include "IEC61970/Base/Wires/NonlinearShuntCompensatorPoint.h" -#include "IEC61970/Base/Wires/TransformerCoreAdmittance.h" -#include "IEC61970/Base/Wires/PerLengthSequenceImpedance.h" -#include "IEC61970/Base/Wires/SwitchPhase.h" -#include "IEC61970/Base/Wires/TapChangerTablePoint.h" -#include "IEC61970/Base/Wires/TapSchedule.h" -#include "IEC61970/Base/Wires/Switch.h" -#include "IEC61970/Base/Wires/RegulatingCondEq.h" -#include "IEC61970/Base/Wires/ProtectedSwitch.h" -#include "IEC61970/Base/Wires/TransformerMeshImpedance.h" -#include "IEC61970/Base/Wires/Connector.h" -#include "IEC61970/Base/Wires/EnergySourcePhase.h" -#include "IEC61970/Base/Wires/Breaker.h" -#include "IEC61970/Base/Wires/Disconnector.h" -#include "IEC61970/Base/Wires/AsynchronousMachineKind.h" -#include "IEC61970/Base/Wires/CompositeSwitch.h" -#include "IEC61970/Base/Wires/PowerTransformer.h" -#include "IEC61970/Base/Wires/PhaseImpedanceData.h" -#include "IEC61970/Base/Wires/Cut.h" -#include "IEC61970/Base/Wires/NonlinearShuntCompensatorPhase.h" -#include "IEC61970/Base/Wires/PhaseTapChangerSymmetrical.h" -#include "IEC61970/Base/Wires/ShuntCompensatorPhase.h" -#include "IEC61970/Base/Wires/PhaseTapChangerTablePoint.h" -#include "IEC61970/Base/Wires/GroundDisconnector.h" -#include "IEC61970/Base/Wires/LoadBreakSwitch.h" -#include "IEC61970/Base/Wires/VoltageControlZone.h" -#include "IEC61970/Base/Wires/FrequencyConverter.h" -#include "IEC61970/Base/Wires/Jumper.h" -#include "IEC61970/Base/Wires/TransformerTank.h" -#include "IEC61970/Base/Wires/GroundingImpedance.h" -#include "IEC61970/Base/Wires/TransformerControlMode.h" -#include "IEC61970/Base/Wires/SeriesCompensator.h" -#include "IEC61970/Base/Wires/RotatingMachine.h" -#include "IEC61970/Base/Wires/EarthFaultCompensator.h" -#include "IEC61970/Base/Wires/Sectionaliser.h" -#include "IEC61970/Base/Wires/RatioTapChangerTable.h" -#include "IEC61970/Base/Wires/Junction.h" -#include "IEC61970/Base/Wires/TransformerStarImpedance.h" -#include "IEC61970/Base/Wires/PhaseTapChangerTabular.h" -#include "IEC61970/Base/Wires/TransformerEnd.h" -#include "IEC61970/Base/Wires/SinglePhaseKind.h" -#include "IEC61970/Base/Wires/SwitchSchedule.h" -#include "IEC61970/Base/Wires/Recloser.h" -#include "IEC61970/Base/Wires/RatioTapChanger.h" -#include "IEC61970/Base/Wires/PhaseTapChangerTable.h" -#include "IEC61970/Base/Wires/Fuse.h" -#include "IEC61970/Base/Wires/PhaseShuntConnectionKind.h" -#include "IEC61970/Base/Wires/PhaseTapChangerAsymmetrical.h" -#include "IEC61970/Base/Wires/NonlinearShuntCompensatorPhasePoint.h" -#include "IEC61970/Base/Wires/BusbarSection.h" -#include "IEC61970/Base/Wires/Conductor.h" -#include "IEC61970/Base/Wires/TransformerTankEnd.h" -#include "IEC61970/Base/Wires/RegulatingControl.h" -#include "IEC61970/Base/Wires/EnergyConsumerPhase.h" -#include "IEC61970/Base/Meas/AccumulatorReset.h" -#include "IEC61970/Base/Meas/AnalogControl.h" -#include "IEC61970/Base/Meas/RaiseLowerCommand.h" -#include "IEC61970/Base/Meas/AccumulatorLimitSet.h" -#include "IEC61970/Base/Meas/AnalogLimit.h" -#include "IEC61970/Base/Meas/AnalogValue.h" -#include "IEC61970/Base/Meas/LimitSet.h" -#include "IEC61970/Base/Meas/Limit.h" -#include "IEC61970/Base/Meas/MeasurementValueQuality.h" -#include "IEC61970/Base/Meas/MeasurementValue.h" -#include "IEC61970/Base/Meas/DiscreteCommand.h" -#include "IEC61970/Base/Meas/StringMeasurementValue.h" -#include "IEC61970/Base/Meas/Quality61850.h" -#include "IEC61970/Base/Meas/Control.h" -#include "IEC61970/Base/Meas/AnalogLimitSet.h" -#include "IEC61970/Base/Meas/AccumulatorLimit.h" -#include "IEC61970/Base/Meas/ValueToAlias.h" -#include "IEC61970/Base/Meas/MeasurementValueSource.h" -#include "IEC61970/Base/Meas/Command.h" -#include "IEC61970/Base/Meas/DiscreteValue.h" -#include "IEC61970/Base/Meas/ValueAliasSet.h" -#include "IEC61970/Base/Meas/Accumulator.h" -#include "IEC61970/Base/Meas/Measurement.h" -#include "IEC61970/Base/Meas/StringMeasurement.h" -#include "IEC61970/Base/Meas/Analog.h" -#include "IEC61970/Base/Meas/Discrete.h" -#include "IEC61970/Base/Meas/Validity.h" -#include "IEC61970/Base/Meas/AccumulatorValue.h" -#include "IEC61970/Base/Meas/SetPoint.h" -#include "IEC61970/Base/StateVariables/SvTapStep.h" -#include "IEC61970/Base/StateVariables/SvVoltage.h" -#include "IEC61970/Base/StateVariables/SvShuntCompensatorSections.h" -#include "IEC61970/Base/StateVariables/StateVariable.h" -#include "IEC61970/Base/StateVariables/SvStatus.h" -#include "IEC61970/Base/StateVariables/SvPowerFlow.h" -#include "IEC61970/Base/StateVariables/SvInjection.h" -#include "IEC61970/Base/Generation/Production/FuelAllocationSchedule.h" -#include "IEC61970/Base/Generation/Production/HeatRate.h" -#include "IEC61970/Base/Generation/Production/HeatInputCurve.h" -#include "IEC61970/Base/Generation/Production/TailbayLossCurve.h" -#include "IEC61970/Base/Generation/Production/GrossToNetActivePowerCurve.h" -#include "IEC61970/Base/Generation/Production/CostPerHeatUnit.h" -#include "IEC61970/Base/Generation/Production/EmissionCurve.h" -#include "IEC61970/Base/Generation/Production/SolarGeneratingUnit.h" -#include "IEC61970/Base/Generation/Production/IncrementalHeatRateCurve.h" -#include "IEC61970/Base/Generation/Production/StartIgnFuelCurve.h" -#include "IEC61970/Base/Generation/Production/InflowForecast.h" -#include "IEC61970/Base/Generation/Production/HydroPlantStorageKind.h" -#include "IEC61970/Base/Generation/Production/EmissionAccount.h" -#include "IEC61970/Base/Generation/Production/HydroGeneratingUnit.h" -#include "IEC61970/Base/Generation/Production/GeneratorControlMode.h" -#include "IEC61970/Base/Generation/Production/CAESPlant.h" -#include "IEC61970/Base/Generation/Production/ThermalGeneratingUnit.h" -#include "IEC61970/Base/Generation/Production/HydroEnergyConversionKind.h" -#include "IEC61970/Base/Generation/Production/ShutdownCurve.h" -#include "IEC61970/Base/Generation/Production/HydroPowerPlant.h" -#include "IEC61970/Base/Generation/Production/GenUnitOpCostCurve.h" -#include "IEC61970/Base/Generation/Production/WindGeneratingUnit.h" -#include "IEC61970/Base/Generation/Production/HydroGeneratingEfficiencyCurve.h" -#include "IEC61970/Base/Generation/Production/FossilFuel.h" -#include "IEC61970/Base/Generation/Production/StartupModel.h" -#include "IEC61970/Base/Generation/Production/CogenerationPlant.h" -#include "IEC61970/Base/Generation/Production/Classification.h" -#include "IEC61970/Base/Generation/Production/FuelType.h" -#include "IEC61970/Base/Generation/Production/HeatRateCurve.h" -#include "IEC61970/Base/Generation/Production/GenUnitOpSchedule.h" -#include "IEC61970/Base/Generation/Production/GeneratingUnit.h" -#include "IEC61970/Base/Generation/Production/LevelVsVolumeCurve.h" -#include "IEC61970/Base/Generation/Production/TargetLevelSchedule.h" -#include "IEC61970/Base/Generation/Production/NuclearGeneratingUnit.h" -#include "IEC61970/Base/Generation/Production/EmissionType.h" -#include "IEC61970/Base/Generation/Production/StartMainFuelCurve.h" -#include "IEC61970/Base/Generation/Production/EmissionValueSource.h" -#include "IEC61970/Base/Generation/Production/WindGenUnitKind.h" -#include "IEC61970/Base/Generation/Production/AirCompressor.h" -#include "IEC61970/Base/Generation/Production/StartRampCurve.h" -#include "IEC61970/Base/Generation/Production/GeneratorControlSource.h" -#include "IEC61970/Base/Generation/Production/Reservoir.h" -#include "IEC61970/Base/Generation/Production/SteamSendoutSchedule.h" -#include "IEC61970/Base/Generation/Production/HydroPumpOpSchedule.h" -#include "IEC61970/Base/Generation/Production/CombinedCyclePlant.h" -#include "IEC61970/Base/Generation/Production/Emission.h" -#include "IEC61970/Base/Generation/Production/HydroPump.h" -#include "IEC61970/Base/Generation/Production/PenstockLossCurve.h" -#include "IEC61970/Base/Generation/GenerationTrainingSimulation/PrimeMover.h" -#include "IEC61970/Base/Generation/GenerationTrainingSimulation/SteamSupply.h" -#include "IEC61970/Base/Generation/GenerationTrainingSimulation/HydroTurbine.h" -#include "IEC61970/Base/Generation/GenerationTrainingSimulation/CombustionTurbine.h" -#include "IEC61970/Base/Generation/GenerationTrainingSimulation/CTTempActivePowerCurve.h" -#include "IEC61970/Base/Generation/GenerationTrainingSimulation/PWRSteamSupply.h" -#include "IEC61970/Base/Generation/GenerationTrainingSimulation/HeatRecoveryBoiler.h" -#include "IEC61970/Base/Generation/GenerationTrainingSimulation/Supercritical.h" -#include "IEC61970/Base/Generation/GenerationTrainingSimulation/BoilerControlMode.h" -#include "IEC61970/Base/Generation/GenerationTrainingSimulation/TurbineType.h" -#include "IEC61970/Base/Generation/GenerationTrainingSimulation/SteamTurbine.h" -#include "IEC61970/Base/Generation/GenerationTrainingSimulation/FossilSteamSupply.h" -#include "IEC61970/Base/Generation/GenerationTrainingSimulation/Subcritical.h" -#include "IEC61970/Base/Generation/GenerationTrainingSimulation/BWRSteamSupply.h" -#include "IEC61970/Base/Generation/GenerationTrainingSimulation/DrumBoiler.h" -#include "IEC61970/Base/Protection/CurrentRelay.h" -#include "IEC61970/Base/Protection/SynchrocheckRelay.h" -#include "IEC61970/Base/Protection/ProtectionEquipment.h" -#include "IEC61970/Base/Protection/RecloseSequence.h" -#include "IEC61970/Base/Contingency/Contingency.h" -#include "IEC61970/Base/Contingency/ContingencyEquipment.h" -#include "IEC61970/Base/Contingency/ContingencyElement.h" -#include "IEC61970/Base/Contingency/ContingencyEquipmentStatusKind.h" -#include "IEC61970/Base/ControlArea/ControlAreaTypeKind.h" -#include "IEC61970/Base/ControlArea/TieFlow.h" -#include "IEC61970/Base/ControlArea/ControlAreaGeneratingUnit.h" -#include "IEC61970/Base/ControlArea/AltGeneratingUnitMeas.h" -#include "IEC61970/Base/ControlArea/AltTieMeas.h" -#include "IEC61970/Base/ControlArea/ControlArea.h" -#include "IEC61970/Base/DC/DCTerminal.h" -#include "IEC61970/Base/DC/DCSeriesDevice.h" -#include "IEC61970/Base/DC/DCDisconnector.h" -#include "IEC61970/Base/DC/CsPpccControlKind.h" -#include "IEC61970/Base/DC/PerLengthDCLineParameter.h" -#include "IEC61970/Base/DC/VsConverter.h" -#include "IEC61970/Base/DC/DCSwitch.h" -#include "IEC61970/Base/DC/DCPolarityKind.h" -#include "IEC61970/Base/DC/DCGround.h" -#include "IEC61970/Base/DC/DCShunt.h" -#include "IEC61970/Base/DC/ACDCConverterDCTerminal.h" -#include "IEC61970/Base/DC/DCLine.h" -#include "IEC61970/Base/DC/DCConverterUnit.h" -#include "IEC61970/Base/DC/DCChopper.h" -#include "IEC61970/Base/DC/ACDCConverter.h" -#include "IEC61970/Base/DC/DCNode.h" -#include "IEC61970/Base/DC/CsConverter.h" -#include "IEC61970/Base/DC/VsCapabilityCurve.h" -#include "IEC61970/Base/DC/VsQpccControlKind.h" -#include "IEC61970/Base/DC/DCLineSegment.h" -#include "IEC61970/Base/DC/DCBusbar.h" -#include "IEC61970/Base/DC/VsPpccControlKind.h" -#include "IEC61970/Base/DC/DCConductingEquipment.h" -#include "IEC61970/Base/DC/DCEquipmentContainer.h" -#include "IEC61970/Base/DC/DCBreaker.h" -#include "IEC61970/Base/DC/DCConverterOperatingModeKind.h" -#include "IEC61970/Base/DC/CsOperatingModeKind.h" -#include "IEC61970/Base/DC/DCBaseTerminal.h" -#include "IEC61970/Base/DC/DCTopologicalIsland.h" -#include "IEC61970/Base/Faults/LineFault.h" -#include "IEC61970/Base/Faults/FaultCauseType.h" -#include "IEC61970/Base/Faults/Fault.h" -#include "IEC61970/Base/Faults/FaultImpedance.h" -#include "IEC61970/Base/Faults/PhaseConnectedFaultKind.h" -#include "IEC61970/Base/Faults/EquipmentFault.h" diff --git a/IEC61970_17v07/IEC61970/Base/AuxiliaryEquipment/AuxiliaryEquipment.cpp b/IEC61970_17v07/IEC61970/Base/AuxiliaryEquipment/AuxiliaryEquipment.cpp deleted file mode 100644 index 67feb6ecd..000000000 --- a/IEC61970_17v07/IEC61970/Base/AuxiliaryEquipment/AuxiliaryEquipment.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// AuxiliaryEquipment.cpp -// Implementation of the Class AuxiliaryEquipment -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#include "AuxiliaryEquipment.h" - -using IEC61970::Base::AuxiliaryEquipment::AuxiliaryEquipment; - - -AuxiliaryEquipment::AuxiliaryEquipment() - : Terminal(nullptr) -{ - -} - - - -AuxiliaryEquipment::~AuxiliaryEquipment(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/AuxiliaryEquipment/AuxiliaryEquipment.h b/IEC61970_17v07/IEC61970/Base/AuxiliaryEquipment/AuxiliaryEquipment.h deleted file mode 100644 index 4d91d96fc..000000000 --- a/IEC61970_17v07/IEC61970/Base/AuxiliaryEquipment/AuxiliaryEquipment.h +++ /dev/null @@ -1,43 +0,0 @@ -/////////////////////////////////////////////////////////// -// AuxiliaryEquipment.h -// Implementation of the Class AuxiliaryEquipment -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#ifndef AUXILIARYEQUIPMENT_H -#define AUXILIARYEQUIPMENT_H - -#include "IEC61970/Base/Core/Equipment.h" -#include "IEC61970/Base/Core/Terminal.h" - -namespace IEC61970 -{ - namespace Base - { - namespace AuxiliaryEquipment - { - /** - * AuxiliaryEquipment describe equipment that is not performing any primary - * functions but support for the equipment performing the primary function. - * AuxiliaryEquipment is attached to primary eqipment via an association with - * Terminal. - */ - class AuxiliaryEquipment : public IEC61970::Base::Core::Equipment - { - - public: - AuxiliaryEquipment(); - virtual ~AuxiliaryEquipment(); - /** - * The Terminal at the equipment where the AuxiliaryEquipment is attached. - */ - IEC61970::Base::Core::Terminal *Terminal; - - }; - - } - - } - -} -#endif // AUXILIARYEQUIPMENT_H diff --git a/IEC61970_17v07/IEC61970/Base/AuxiliaryEquipment/CurrentTransformer.cpp b/IEC61970_17v07/IEC61970/Base/AuxiliaryEquipment/CurrentTransformer.cpp deleted file mode 100644 index 9e5e84fae..000000000 --- a/IEC61970_17v07/IEC61970/Base/AuxiliaryEquipment/CurrentTransformer.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// CurrentTransformer.cpp -// Implementation of the Class CurrentTransformer -/////////////////////////////////////////////////////////// - -#include "CurrentTransformer.h" - -using IEC61970::Base::AuxiliaryEquipment::CurrentTransformer; - - -CurrentTransformer::CurrentTransformer(){ - -} - - - -CurrentTransformer::~CurrentTransformer(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/AuxiliaryEquipment/CurrentTransformer.h b/IEC61970_17v07/IEC61970/Base/AuxiliaryEquipment/CurrentTransformer.h deleted file mode 100644 index 83eea08a7..000000000 --- a/IEC61970_17v07/IEC61970/Base/AuxiliaryEquipment/CurrentTransformer.h +++ /dev/null @@ -1,61 +0,0 @@ -/////////////////////////////////////////////////////////// -// CurrentTransformer.h -// Implementation of the Class CurrentTransformer -/////////////////////////////////////////////////////////// - -#ifndef CURRENTTRANSFORMER_H -#define CURRENTTRANSFORMER_H - -#include "IEC61970/Base/Domain/String.h" -#include "IEC61970/Base/Domain/PerCent.h" -#include "IEC61970/Base/Domain/ActivePower.h" -#include "IEC61970/Base/AuxiliaryEquipment/Sensor.h" - -namespace IEC61970 -{ - namespace Base - { - namespace AuxiliaryEquipment - { - /** - * Instrument transformer used to measure electrical qualities of the circuit that - * is being protected and/or monitored. Typically used as current transducer for - * the purpose of metering or protection. A typical secondary current rating would - * be 5A. - */ - class CurrentTransformer : public IEC61970::Base::AuxiliaryEquipment::Sensor - { - - public: - CurrentTransformer(); - virtual ~CurrentTransformer(); - /** - * CT accuracy classification. - */ - IEC61970::Base::Domain::String accuracyClass; - /** - * Percent of rated current for which the CT remains accurate within specified - * limits. - */ - IEC61970::Base::Domain::PerCent accuracyLimit; - /** - * Power burden of the CT core. - */ - IEC61970::Base::Domain::ActivePower coreBurden; - /** - * CT classification; i.e. class 10P. - */ - IEC61970::Base::Domain::String ctClass; - /** - * Intended usage of the CT; i.e. metering, protection. - */ - IEC61970::Base::Domain::String usage; - - }; - - } - - } - -} -#endif // CURRENTTRANSFORMER_H diff --git a/IEC61970_17v07/IEC61970/Base/AuxiliaryEquipment/FaultIndicator.cpp b/IEC61970_17v07/IEC61970/Base/AuxiliaryEquipment/FaultIndicator.cpp deleted file mode 100644 index de3bb4a54..000000000 --- a/IEC61970_17v07/IEC61970/Base/AuxiliaryEquipment/FaultIndicator.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// FaultIndicator.cpp -// Implementation of the Class FaultIndicator -/////////////////////////////////////////////////////////// - -#include "FaultIndicator.h" - -using IEC61970::Base::AuxiliaryEquipment::FaultIndicator; - - -FaultIndicator::FaultIndicator(){ - -} - - - -FaultIndicator::~FaultIndicator(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/AuxiliaryEquipment/FaultIndicator.h b/IEC61970_17v07/IEC61970/Base/AuxiliaryEquipment/FaultIndicator.h deleted file mode 100644 index 8c9cecf61..000000000 --- a/IEC61970_17v07/IEC61970/Base/AuxiliaryEquipment/FaultIndicator.h +++ /dev/null @@ -1,39 +0,0 @@ -/////////////////////////////////////////////////////////// -// FaultIndicator.h -// Implementation of the Class FaultIndicator -/////////////////////////////////////////////////////////// - -#ifndef FAULTINDICATOR_H -#define FAULTINDICATOR_H - -#include "IEC61970/Base/AuxiliaryEquipment/AuxiliaryEquipment.h" - -namespace IEC61970 -{ - namespace Base - { - namespace AuxiliaryEquipment - { - /** - * A FaultIndicator is typically only an indicator (which may or may not be - * remotely monitored), and not a piece of equipment that actually initiates a - * protection event. It is used for FLISR (Fault Location, Isolation and - * Restoration) purposes, assisting with the dispatch of crews to "most likely" - * part of the network (i.e. assists with determining circuit section where the - * fault most likely happened). - */ - class FaultIndicator : public IEC61970::Base::AuxiliaryEquipment::AuxiliaryEquipment - { - - public: - FaultIndicator(); - virtual ~FaultIndicator(); - - }; - - } - - } - -} -#endif // FAULTINDICATOR_H diff --git a/IEC61970_17v07/IEC61970/Base/AuxiliaryEquipment/FlowSensor.cpp b/IEC61970_17v07/IEC61970/Base/AuxiliaryEquipment/FlowSensor.cpp deleted file mode 100644 index a2ab5fd01..000000000 --- a/IEC61970_17v07/IEC61970/Base/AuxiliaryEquipment/FlowSensor.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// FlowSensor.cpp -// Implementation of the Class FlowSensor -// Original author: 222206 -/////////////////////////////////////////////////////////// - -#include "FlowSensor.h" - -using IEC61970::Base::AuxiliaryEquipment::FlowSensor; - - -FlowSensor::FlowSensor(){ - -} - - - -FlowSensor::~FlowSensor(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/AuxiliaryEquipment/FlowSensor.h b/IEC61970_17v07/IEC61970/Base/AuxiliaryEquipment/FlowSensor.h deleted file mode 100644 index 07420b5d4..000000000 --- a/IEC61970_17v07/IEC61970/Base/AuxiliaryEquipment/FlowSensor.h +++ /dev/null @@ -1,36 +0,0 @@ -/////////////////////////////////////////////////////////// -// FlowSensor.h -// Implementation of the Class FlowSensor -// Original author: 222206 -/////////////////////////////////////////////////////////// - -#ifndef FLOWSENSOR_H -#define FLOWSENSOR_H - -#include "IEC61970/Base/Core/ConductingEquipment.h" - -namespace IEC61970 -{ - namespace Base - { - namespace AuxiliaryEquipment - { - /** - * Represents a two terminal and power conducting device of negligible impedance - * that senses flow through the device. - */ - class FlowSensor : public IEC61970::Base::Core::ConductingEquipment - { - - public: - FlowSensor(); - virtual ~FlowSensor(); - - }; - - } - - } - -} -#endif // FLOWSENSOR_H diff --git a/IEC61970_17v07/IEC61970/Base/AuxiliaryEquipment/PostLineSensor.cpp b/IEC61970_17v07/IEC61970/Base/AuxiliaryEquipment/PostLineSensor.cpp deleted file mode 100644 index 31068f10d..000000000 --- a/IEC61970_17v07/IEC61970/Base/AuxiliaryEquipment/PostLineSensor.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// PostLineSensor.cpp -// Implementation of the Class PostLineSensor -// Original author: kdemaree -/////////////////////////////////////////////////////////// - -#include "PostLineSensor.h" - -using IEC61970::Base::AuxiliaryEquipment::PostLineSensor; - - -PostLineSensor::PostLineSensor(){ - -} - - - -PostLineSensor::~PostLineSensor(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/AuxiliaryEquipment/PostLineSensor.h b/IEC61970_17v07/IEC61970/Base/AuxiliaryEquipment/PostLineSensor.h deleted file mode 100644 index 0fe56333f..000000000 --- a/IEC61970_17v07/IEC61970/Base/AuxiliaryEquipment/PostLineSensor.h +++ /dev/null @@ -1,36 +0,0 @@ -/////////////////////////////////////////////////////////// -// PostLineSensor.h -// Implementation of the Class PostLineSensor -// Original author: kdemaree -/////////////////////////////////////////////////////////// - -#ifndef POSTLINESENSOR_H -#define POSTLINESENSOR_H - -#include "IEC61970/Base/AuxiliaryEquipment/Sensor.h" - -namespace IEC61970 -{ - namespace Base - { - namespace AuxiliaryEquipment - { - /** - * A sensor used mainly in overhead distribution networks as the source of both - * current and voltage measurements. - */ - class PostLineSensor : public IEC61970::Base::AuxiliaryEquipment::Sensor - { - - public: - PostLineSensor(); - virtual ~PostLineSensor(); - - }; - - } - - } - -} -#endif // POSTLINESENSOR_H diff --git a/IEC61970_17v07/IEC61970/Base/AuxiliaryEquipment/PotentialTransformer.cpp b/IEC61970_17v07/IEC61970/Base/AuxiliaryEquipment/PotentialTransformer.cpp deleted file mode 100644 index 4541b4a87..000000000 --- a/IEC61970_17v07/IEC61970/Base/AuxiliaryEquipment/PotentialTransformer.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// PotentialTransformer.cpp -// Implementation of the Class PotentialTransformer -/////////////////////////////////////////////////////////// - -#include "PotentialTransformer.h" - -using IEC61970::Base::AuxiliaryEquipment::PotentialTransformer; - - -PotentialTransformer::PotentialTransformer(){ - -} - - - -PotentialTransformer::~PotentialTransformer(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/AuxiliaryEquipment/PotentialTransformer.h b/IEC61970_17v07/IEC61970/Base/AuxiliaryEquipment/PotentialTransformer.h deleted file mode 100644 index f61b33e6c..000000000 --- a/IEC61970_17v07/IEC61970/Base/AuxiliaryEquipment/PotentialTransformer.h +++ /dev/null @@ -1,57 +0,0 @@ -/////////////////////////////////////////////////////////// -// PotentialTransformer.h -// Implementation of the Class PotentialTransformer -/////////////////////////////////////////////////////////// - -#ifndef POTENTIALTRANSFORMER_H -#define POTENTIALTRANSFORMER_H - -#include "IEC61970/Base/Domain/String.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/AuxiliaryEquipment/PotentialTransformerKind.h" -#include "IEC61970/Base/AuxiliaryEquipment/Sensor.h" - -namespace IEC61970 -{ - namespace Base - { - namespace AuxiliaryEquipment - { - /** - * Instrument transformer (also known as Voltage Transformer) used to measure - * electrical qualities of the circuit that is being protected and/or monitored. - * Typically used as voltage transducer for the purpose of metering, protection, - * or sometimes auxiliary substation supply. A typical secondary voltage rating - * would be 120V. - */ - class PotentialTransformer : public IEC61970::Base::AuxiliaryEquipment::Sensor - { - - public: - PotentialTransformer(); - virtual ~PotentialTransformer(); - /** - * PT accuracy classification. - */ - IEC61970::Base::Domain::String accuracyClass; - /** - * Nominal ratio between the primary and secondary voltage. - */ - IEC61970::Base::Domain::Float nominalRatio; - /** - * Potential transformer (PT) classification covering burden. - */ - IEC61970::Base::Domain::String ptClass; - /** - * Potential transformer construction type. - */ - IEC61970::Base::AuxiliaryEquipment::PotentialTransformerKind type = IEC61970::Base::AuxiliaryEquipment::PotentialTransformerKind::_undef; - - }; - - } - - } - -} -#endif // POTENTIALTRANSFORMER_H diff --git a/IEC61970_17v07/IEC61970/Base/AuxiliaryEquipment/PotentialTransformerKind.h b/IEC61970_17v07/IEC61970/Base/AuxiliaryEquipment/PotentialTransformerKind.h deleted file mode 100644 index 29ea155e7..000000000 --- a/IEC61970_17v07/IEC61970/Base/AuxiliaryEquipment/PotentialTransformerKind.h +++ /dev/null @@ -1,37 +0,0 @@ -/////////////////////////////////////////////////////////// -// PotentialTransformerKind.h -// Implementation of the Class PotentialTransformerKind -// Original author: kdemaree -/////////////////////////////////////////////////////////// - -#ifndef POTENTIALTRANSFORMERKIND_H -#define POTENTIALTRANSFORMERKIND_H - -namespace IEC61970 -{ - namespace Base - { - namespace AuxiliaryEquipment - { - /** - * The construction kind of the potential transformer. - */ - enum class PotentialTransformerKind - { - /** - * The potential transformer is using induction coils to create secondary voltage. - */ - _undef = -1, inductive, - /** - * The potential transformer is using capacitive coupling to create secondary - * voltage. - */ - capacitiveCoupling - }; - - } - - } - -} -#endif // POTENTIALTRANSFORMERKIND_H diff --git a/IEC61970_17v07/IEC61970/Base/AuxiliaryEquipment/Sensor.cpp b/IEC61970_17v07/IEC61970/Base/AuxiliaryEquipment/Sensor.cpp deleted file mode 100644 index 3f72c4d9e..000000000 --- a/IEC61970_17v07/IEC61970/Base/AuxiliaryEquipment/Sensor.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// Sensor.cpp -// Implementation of the Class Sensor -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#include "Sensor.h" - -using IEC61970::Base::AuxiliaryEquipment::Sensor; - - -Sensor::Sensor(){ - -} - - - -Sensor::~Sensor(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/AuxiliaryEquipment/Sensor.h b/IEC61970_17v07/IEC61970/Base/AuxiliaryEquipment/Sensor.h deleted file mode 100644 index 4864d3aa1..000000000 --- a/IEC61970_17v07/IEC61970/Base/AuxiliaryEquipment/Sensor.h +++ /dev/null @@ -1,36 +0,0 @@ -/////////////////////////////////////////////////////////// -// Sensor.h -// Implementation of the Class Sensor -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#ifndef SENSOR_H -#define SENSOR_H - -#include "IEC61970/Base/AuxiliaryEquipment/AuxiliaryEquipment.h" - -namespace IEC61970 -{ - namespace Base - { - namespace AuxiliaryEquipment - { - /** - * This class describe devices that transform a measured quantity into signals - * that can be presented at displays, used in control or be recorded. - */ - class Sensor : public IEC61970::Base::AuxiliaryEquipment::AuxiliaryEquipment - { - - public: - Sensor(); - virtual ~Sensor(); - - }; - - } - - } - -} -#endif // SENSOR_H diff --git a/IEC61970_17v07/IEC61970/Base/AuxiliaryEquipment/SurgeArrester.cpp b/IEC61970_17v07/IEC61970/Base/AuxiliaryEquipment/SurgeArrester.cpp deleted file mode 100644 index aef3cc1eb..000000000 --- a/IEC61970_17v07/IEC61970/Base/AuxiliaryEquipment/SurgeArrester.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// SurgeArrester.cpp -// Implementation of the Class SurgeArrester -/////////////////////////////////////////////////////////// - -#include "SurgeArrester.h" - -using IEC61970::Base::AuxiliaryEquipment::SurgeArrester; - - -SurgeArrester::SurgeArrester(){ - -} - - - -SurgeArrester::~SurgeArrester(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/AuxiliaryEquipment/SurgeArrester.h b/IEC61970_17v07/IEC61970/Base/AuxiliaryEquipment/SurgeArrester.h deleted file mode 100644 index adb7b4550..000000000 --- a/IEC61970_17v07/IEC61970/Base/AuxiliaryEquipment/SurgeArrester.h +++ /dev/null @@ -1,36 +0,0 @@ -/////////////////////////////////////////////////////////// -// SurgeArrester.h -// Implementation of the Class SurgeArrester -/////////////////////////////////////////////////////////// - -#ifndef SURGEARRESTER_H -#define SURGEARRESTER_H - -#include "IEC61970/Base/AuxiliaryEquipment/AuxiliaryEquipment.h" - -namespace IEC61970 -{ - namespace Base - { - namespace AuxiliaryEquipment - { - /** - * Shunt device, installed on the network, usually in the proximity of electrical - * equipment in order to protect the said equipment against transient voltage - * transients caused by lightning or switching activity. - */ - class SurgeArrester : public IEC61970::Base::AuxiliaryEquipment::AuxiliaryEquipment - { - - public: - SurgeArrester(); - virtual ~SurgeArrester(); - - }; - - } - - } - -} -#endif // SURGEARRESTER_H diff --git a/IEC61970_17v07/IEC61970/Base/AuxiliaryEquipment/WaveTrap.cpp b/IEC61970_17v07/IEC61970/Base/AuxiliaryEquipment/WaveTrap.cpp deleted file mode 100644 index 5406f1c33..000000000 --- a/IEC61970_17v07/IEC61970/Base/AuxiliaryEquipment/WaveTrap.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// WaveTrap.cpp -// Implementation of the Class WaveTrap -// Original author: kdemaree -/////////////////////////////////////////////////////////// - -#include "WaveTrap.h" - -using IEC61970::Base::AuxiliaryEquipment::WaveTrap; - - -WaveTrap::WaveTrap(){ - -} - - - -WaveTrap::~WaveTrap(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/AuxiliaryEquipment/WaveTrap.h b/IEC61970_17v07/IEC61970/Base/AuxiliaryEquipment/WaveTrap.h deleted file mode 100644 index feda98603..000000000 --- a/IEC61970_17v07/IEC61970/Base/AuxiliaryEquipment/WaveTrap.h +++ /dev/null @@ -1,36 +0,0 @@ -/////////////////////////////////////////////////////////// -// WaveTrap.h -// Implementation of the Class WaveTrap -// Original author: kdemaree -/////////////////////////////////////////////////////////// - -#ifndef WAVETRAP_H -#define WAVETRAP_H - -#include "IEC61970/Base/AuxiliaryEquipment/AuxiliaryEquipment.h" - -namespace IEC61970 -{ - namespace Base - { - namespace AuxiliaryEquipment - { - /** - * Line traps are devices that impede high frequency power line carrier signals - * yet present a negligible impedance at the main power frequency. - */ - class WaveTrap : public IEC61970::Base::AuxiliaryEquipment::AuxiliaryEquipment - { - - public: - WaveTrap(); - virtual ~WaveTrap(); - - }; - - } - - } - -} -#endif // WAVETRAP_H diff --git a/IEC61970_17v07/IEC61970/Base/Contingency/Contingency.cpp b/IEC61970_17v07/IEC61970/Base/Contingency/Contingency.cpp deleted file mode 100644 index d7aa5cd81..000000000 --- a/IEC61970_17v07/IEC61970/Base/Contingency/Contingency.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// Contingency.cpp -// Implementation of the Class Contingency -/////////////////////////////////////////////////////////// - -#include "Contingency.h" - -using IEC61970::Base::Contingency::Contingency; - - -Contingency::Contingency(){ - -} - - - -Contingency::~Contingency(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Contingency/Contingency.h b/IEC61970_17v07/IEC61970/Base/Contingency/Contingency.h deleted file mode 100644 index 34422f986..000000000 --- a/IEC61970_17v07/IEC61970/Base/Contingency/Contingency.h +++ /dev/null @@ -1,47 +0,0 @@ -/////////////////////////////////////////////////////////// -// Contingency.h -// Implementation of the Class Contingency -/////////////////////////////////////////////////////////// - -#ifndef CONTINGENCY_H -#define CONTINGENCY_H - -#include - -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Contingency/ContingencyElement.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Contingency - { - /** - * An event threatening system reliability, consisting of one or more contingency - * elements. - */ - class Contingency : public IEC61970::Base::Core::IdentifiedObject - { - - public: - Contingency(); - virtual ~Contingency(); - /** - * Set true if must study this contingency. - */ - IEC61970::Base::Domain::Boolean mustStudy; - /** - * A contingency can have any number of contingency elements. - */ - std::list ContingencyElement; - - }; - - } - - } - -} -#endif // CONTINGENCY_H diff --git a/IEC61970_17v07/IEC61970/Base/Contingency/ContingencyElement.cpp b/IEC61970_17v07/IEC61970/Base/Contingency/ContingencyElement.cpp deleted file mode 100644 index f20aad88f..000000000 --- a/IEC61970_17v07/IEC61970/Base/Contingency/ContingencyElement.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// ContingencyElement.cpp -// Implementation of the Class ContingencyElement -/////////////////////////////////////////////////////////// - -#include "ContingencyElement.h" - -using IEC61970::Base::Contingency::ContingencyElement; - - -ContingencyElement::ContingencyElement(){ - -} - - - -ContingencyElement::~ContingencyElement(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Contingency/ContingencyElement.h b/IEC61970_17v07/IEC61970/Base/Contingency/ContingencyElement.h deleted file mode 100644 index 6b32f56d0..000000000 --- a/IEC61970_17v07/IEC61970/Base/Contingency/ContingencyElement.h +++ /dev/null @@ -1,35 +0,0 @@ -/////////////////////////////////////////////////////////// -// ContingencyElement.h -// Implementation of the Class ContingencyElement -/////////////////////////////////////////////////////////// - -#ifndef CONTINGENCYELEMENT_H -#define CONTINGENCYELEMENT_H - -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Contingency - { - /** - * An element of a system event to be studied by contingency analysis, - * representing a change in status of a single piece of equipment. - */ - class ContingencyElement : public IEC61970::Base::Core::IdentifiedObject - { - - public: - ContingencyElement(); - virtual ~ContingencyElement(); - - }; - - } - - } - -} -#endif // CONTINGENCYELEMENT_H diff --git a/IEC61970_17v07/IEC61970/Base/Contingency/ContingencyEquipment.cpp b/IEC61970_17v07/IEC61970/Base/Contingency/ContingencyEquipment.cpp deleted file mode 100644 index 21ed1ea73..000000000 --- a/IEC61970_17v07/IEC61970/Base/Contingency/ContingencyEquipment.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// ContingencyEquipment.cpp -// Implementation of the Class ContingencyEquipment -// Original author: kdd -/////////////////////////////////////////////////////////// - -#include "ContingencyEquipment.h" - -using IEC61970::Base::Contingency::ContingencyEquipment; - - -ContingencyEquipment::ContingencyEquipment() - : Equipment(nullptr) -{ - -} - - - -ContingencyEquipment::~ContingencyEquipment(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Contingency/ContingencyEquipment.h b/IEC61970_17v07/IEC61970/Base/Contingency/ContingencyEquipment.h deleted file mode 100644 index 3d65c5827..000000000 --- a/IEC61970_17v07/IEC61970/Base/Contingency/ContingencyEquipment.h +++ /dev/null @@ -1,48 +0,0 @@ -/////////////////////////////////////////////////////////// -// ContingencyEquipment.h -// Implementation of the Class ContingencyEquipment -// Original author: kdd -/////////////////////////////////////////////////////////// - -#ifndef CONTINGENCYEQUIPMENT_H -#define CONTINGENCYEQUIPMENT_H - -#include "IEC61970/Base/Contingency/ContingencyEquipmentStatusKind.h" -#include "IEC61970/Base/Contingency/ContingencyElement.h" -#include "IEC61970/Base/Core/Equipment.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Contingency - { - /** - * A equipment to which the in service status is to change such as a power - * transformer or AC line segment. - */ - class ContingencyEquipment : public IEC61970::Base::Contingency::ContingencyElement - { - - public: - ContingencyEquipment(); - virtual ~ContingencyEquipment(); - /** - * The status for the associated equipment when in the contingency state. This - * status is independent of the case to which the contingency is originally - * applied, but defines the equipment status when the contingency is applied. - */ - IEC61970::Base::Contingency::ContingencyEquipmentStatusKind contingentStatus = IEC61970::Base::Contingency::ContingencyEquipmentStatusKind::_undef; - /** - * The single piece of equipment to which to apply the contingency. - */ - IEC61970::Base::Core::Equipment *Equipment; - - }; - - } - - } - -} -#endif // CONTINGENCYEQUIPMENT_H diff --git a/IEC61970_17v07/IEC61970/Base/Contingency/ContingencyEquipmentStatusKind.h b/IEC61970_17v07/IEC61970/Base/Contingency/ContingencyEquipmentStatusKind.h deleted file mode 100644 index 7d686a316..000000000 --- a/IEC61970_17v07/IEC61970/Base/Contingency/ContingencyEquipmentStatusKind.h +++ /dev/null @@ -1,37 +0,0 @@ -/////////////////////////////////////////////////////////// -// ContingencyEquipmentStatusKind.h -// Implementation of the Class ContingencyEquipmentStatusKind -// Original author: kdd -/////////////////////////////////////////////////////////// - -#ifndef CONTINGENCYEQUIPMENTSTATUSKIND_H -#define CONTINGENCYEQUIPMENTSTATUSKIND_H - -namespace IEC61970 -{ - namespace Base - { - namespace Contingency - { - /** - * Indicates the state which the contingency equipment is to be in when the - * contingency is applied. - */ - enum class ContingencyEquipmentStatusKind - { - /** - * The equipment is to be put into service. - */ - _undef = -1, inService, - /** - * The equipment is to be taken out of service. - */ - outOfService - }; - - } - - } - -} -#endif // CONTINGENCYEQUIPMENTSTATUSKIND_H diff --git a/IEC61970_17v07/IEC61970/Base/ControlArea/AltGeneratingUnitMeas.cpp b/IEC61970_17v07/IEC61970/Base/ControlArea/AltGeneratingUnitMeas.cpp deleted file mode 100644 index 9d9c06455..000000000 --- a/IEC61970_17v07/IEC61970/Base/ControlArea/AltGeneratingUnitMeas.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// AltGeneratingUnitMeas.cpp -// Implementation of the Class AltGeneratingUnitMeas -// Original author: kdd -/////////////////////////////////////////////////////////// - -#include "AltGeneratingUnitMeas.h" - -using IEC61970::Base::ControlArea::AltGeneratingUnitMeas; - - -AltGeneratingUnitMeas::AltGeneratingUnitMeas() - : AnalogValue(nullptr) -{ - -} - - - -AltGeneratingUnitMeas::~AltGeneratingUnitMeas(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/ControlArea/AltGeneratingUnitMeas.h b/IEC61970_17v07/IEC61970/Base/ControlArea/AltGeneratingUnitMeas.h deleted file mode 100644 index 422952983..000000000 --- a/IEC61970_17v07/IEC61970/Base/ControlArea/AltGeneratingUnitMeas.h +++ /dev/null @@ -1,46 +0,0 @@ -/////////////////////////////////////////////////////////// -// AltGeneratingUnitMeas.h -// Implementation of the Class AltGeneratingUnitMeas -// Original author: kdd -/////////////////////////////////////////////////////////// - -#ifndef ALTGENERATINGUNITMEAS_H -#define ALTGENERATINGUNITMEAS_H - -#include "IEC61970/Base/Domain/Integer.h" -#include "IEC61970/Base/Meas/AnalogValue.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Base - { - namespace ControlArea - { - /** - * A prioritized measurement to be used for the generating unit in the control - * area specificaiton. - */ - class AltGeneratingUnitMeas : public IEC61970::Base::Core::IdentifiedObject - { - - public: - AltGeneratingUnitMeas(); - virtual ~AltGeneratingUnitMeas(); - /** - * Priority of a measurement usage. Lower numbers have first priority. - */ - IEC61970::Base::Domain::Integer priority; - /** - * The specific analog value used as a source. - */ - IEC61970::Base::Meas::AnalogValue *AnalogValue; - - }; - - } - - } - -} -#endif // ALTGENERATINGUNITMEAS_H diff --git a/IEC61970_17v07/IEC61970/Base/ControlArea/AltTieMeas.cpp b/IEC61970_17v07/IEC61970/Base/ControlArea/AltTieMeas.cpp deleted file mode 100644 index 277f1e2ea..000000000 --- a/IEC61970_17v07/IEC61970/Base/ControlArea/AltTieMeas.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// AltTieMeas.cpp -// Implementation of the Class AltTieMeas -// Original author: kdd -/////////////////////////////////////////////////////////// - -#include "AltTieMeas.h" - -using IEC61970::Base::ControlArea::AltTieMeas; - - -AltTieMeas::AltTieMeas() - : AnalogValue(nullptr) -{ - -} - - - -AltTieMeas::~AltTieMeas(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/ControlArea/AltTieMeas.h b/IEC61970_17v07/IEC61970/Base/ControlArea/AltTieMeas.h deleted file mode 100644 index e8eaf8c11..000000000 --- a/IEC61970_17v07/IEC61970/Base/ControlArea/AltTieMeas.h +++ /dev/null @@ -1,46 +0,0 @@ -/////////////////////////////////////////////////////////// -// AltTieMeas.h -// Implementation of the Class AltTieMeas -// Original author: kdd -/////////////////////////////////////////////////////////// - -#ifndef ALTTIEMEAS_H -#define ALTTIEMEAS_H - -#include "IEC61970/Base/Domain/Integer.h" -#include "IEC61970/Base/Meas/AnalogValue.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Base - { - namespace ControlArea - { - /** - * A prioritized measurement to be used for the tie flow as part of the control - * area specification. - */ - class AltTieMeas : public IEC61970::Base::Core::IdentifiedObject - { - - public: - AltTieMeas(); - virtual ~AltTieMeas(); - /** - * Priority of a measurement usage. Lower numbers have first priority. - */ - IEC61970::Base::Domain::Integer priority; - /** - * The specific analog value used as a source. - */ - IEC61970::Base::Meas::AnalogValue *AnalogValue; - - }; - - } - - } - -} -#endif // ALTTIEMEAS_H diff --git a/IEC61970_17v07/IEC61970/Base/ControlArea/ControlArea.cpp b/IEC61970_17v07/IEC61970/Base/ControlArea/ControlArea.cpp deleted file mode 100644 index 348758e6c..000000000 --- a/IEC61970_17v07/IEC61970/Base/ControlArea/ControlArea.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// ControlArea.cpp -// Implementation of the Class ControlArea -// Original author: kdd -/////////////////////////////////////////////////////////// - -#include "ControlArea.h" - -using IEC61970::Base::ControlArea::ControlArea; - - -ControlArea::ControlArea() - : EnergyArea(nullptr) -{ - -} - - - -ControlArea::~ControlArea(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/ControlArea/ControlArea.h b/IEC61970_17v07/IEC61970/Base/ControlArea/ControlArea.h deleted file mode 100644 index a409dc693..000000000 --- a/IEC61970_17v07/IEC61970/Base/ControlArea/ControlArea.h +++ /dev/null @@ -1,76 +0,0 @@ -/////////////////////////////////////////////////////////// -// ControlArea.h -// Implementation of the Class ControlArea -// Original author: kdd -/////////////////////////////////////////////////////////// - -#ifndef CONTROLAREA_H -#define CONTROLAREA_H - -#include - -#include "IEC61970/Base/Domain/ActivePower.h" -#include "IEC61970/Base/ControlArea/ControlAreaTypeKind.h" -#include "IEC61970/Base/ControlArea/ControlAreaGeneratingUnit.h" -#include "IEC61970/Base/ControlArea/TieFlow.h" -#include "IEC61970/Base/LoadModel/EnergyArea.h" -#include "IEC61970/Base/Core/PowerSystemResource.h" - -namespace IEC61970 -{ - namespace Base - { - namespace ControlArea - { - /** - * A control area is a grouping of generating units and/or loads and a cutset of - * tie lines (as terminals) which may be used for a variety of purposes including - * automatic generation control, powerflow solution area interchange control - * specification, and input to load forecasting. Note that any number of - * overlapping control area specifications can be superimposed on the physical - * model. - */ - class ControlArea : public IEC61970::Base::Core::PowerSystemResource - { - - public: - ControlArea(); - virtual ~ControlArea(); - /** - * The specified positive net interchange into the control area, i.e. positive - * sign means flow in to the area. - */ - IEC61970::Base::Domain::ActivePower netInterchange; - /** - * Active power net interchange tolerance - */ - IEC61970::Base::Domain::ActivePower pTolerance; - /** - * The primary type of control area definition used to determine if this is used - * for automatic generation control, for planning interchange control, or other - * purposes. A control area specified with primary type of automatic generation - * control could still be forecast and used as an interchange area in power flow - * analysis. - */ - IEC61970::Base::ControlArea::ControlAreaTypeKind type = IEC61970::Base::ControlArea::ControlAreaTypeKind::_undef; - /** - * The generating unit specificaitons for the control area. - */ - std::list ControlAreaGeneratingUnit; - /** - * The tie flows associated with the control area. - */ - std::list TieFlow; - /** - * The energy area that is forecast from this control area specification. - */ - IEC61970::Base::LoadModel::EnergyArea *EnergyArea; - - }; - - } - - } - -} -#endif // CONTROLAREA_H diff --git a/IEC61970_17v07/IEC61970/Base/ControlArea/ControlAreaGeneratingUnit.cpp b/IEC61970_17v07/IEC61970/Base/ControlArea/ControlAreaGeneratingUnit.cpp deleted file mode 100644 index 2ccd5c093..000000000 --- a/IEC61970_17v07/IEC61970/Base/ControlArea/ControlAreaGeneratingUnit.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// ControlAreaGeneratingUnit.cpp -// Implementation of the Class ControlAreaGeneratingUnit -// Original author: kdd -/////////////////////////////////////////////////////////// - -#include "ControlAreaGeneratingUnit.h" - -using IEC61970::Base::ControlArea::ControlAreaGeneratingUnit; - - -ControlAreaGeneratingUnit::ControlAreaGeneratingUnit() - : GeneratingUnit(nullptr) -{ - -} - - - -ControlAreaGeneratingUnit::~ControlAreaGeneratingUnit(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/ControlArea/ControlAreaGeneratingUnit.h b/IEC61970_17v07/IEC61970/Base/ControlArea/ControlAreaGeneratingUnit.h deleted file mode 100644 index c3df07964..000000000 --- a/IEC61970_17v07/IEC61970/Base/ControlArea/ControlAreaGeneratingUnit.h +++ /dev/null @@ -1,50 +0,0 @@ -/////////////////////////////////////////////////////////// -// ControlAreaGeneratingUnit.h -// Implementation of the Class ControlAreaGeneratingUnit -// Original author: kdd -/////////////////////////////////////////////////////////// - -#ifndef CONTROLAREAGENERATINGUNIT_H -#define CONTROLAREAGENERATINGUNIT_H - -#include - -#include "IEC61970/Base/ControlArea/AltGeneratingUnitMeas.h" -#include "IEC61970/Base/Generation/Production/GeneratingUnit.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Base - { - namespace ControlArea - { - /** - * A control area generating unit. This class is needed so that alternate control - * area definitions may include the same generating unit. Note only one instance - * within a control area should reference a specific generating unit. - */ - class ControlAreaGeneratingUnit : public IEC61970::Base::Core::IdentifiedObject - { - - public: - ControlAreaGeneratingUnit(); - virtual ~ControlAreaGeneratingUnit(); - /** - * The link to prioritized measurements for this GeneratingUnit. - */ - std::list AltGeneratingUnitMeas; - /** - * The generating unit specified for this control area. Note that a control area - * should include a GeneratingUnit only once. - */ - IEC61970::Base::Generation::Production::GeneratingUnit *GeneratingUnit; - - }; - - } - - } - -} -#endif // CONTROLAREAGENERATINGUNIT_H diff --git a/IEC61970_17v07/IEC61970/Base/ControlArea/ControlAreaTypeKind.h b/IEC61970_17v07/IEC61970/Base/ControlArea/ControlAreaTypeKind.h deleted file mode 100644 index 93480da5f..000000000 --- a/IEC61970_17v07/IEC61970/Base/ControlArea/ControlAreaTypeKind.h +++ /dev/null @@ -1,40 +0,0 @@ -/////////////////////////////////////////////////////////// -// ControlAreaTypeKind.h -// Implementation of the Class ControlAreaTypeKind -// Original author: kdd -/////////////////////////////////////////////////////////// - -#ifndef CONTROLAREATYPEKIND_H -#define CONTROLAREATYPEKIND_H - -namespace IEC61970 -{ - namespace Base - { - namespace ControlArea - { - /** - * The type of control area. - */ - enum class ControlAreaTypeKind - { - /** - * Used for automatic generation control. - */ - _undef = -1, AGC, - /** - * Used for load forecast. - */ - Forecast, - /** - * Used for interchange specification or control. - */ - Interchange - }; - - } - - } - -} -#endif // CONTROLAREATYPEKIND_H diff --git a/IEC61970_17v07/IEC61970/Base/ControlArea/TieFlow.cpp b/IEC61970_17v07/IEC61970/Base/ControlArea/TieFlow.cpp deleted file mode 100644 index 6d763a608..000000000 --- a/IEC61970_17v07/IEC61970/Base/ControlArea/TieFlow.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// TieFlow.cpp -// Implementation of the Class TieFlow -// Original author: kdd -/////////////////////////////////////////////////////////// - -#include "TieFlow.h" - -using IEC61970::Base::ControlArea::TieFlow; - - -TieFlow::TieFlow() - : Terminal(nullptr) -{ - -} - - - -TieFlow::~TieFlow(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/ControlArea/TieFlow.h b/IEC61970_17v07/IEC61970/Base/ControlArea/TieFlow.h deleted file mode 100644 index 8e054ee10..000000000 --- a/IEC61970_17v07/IEC61970/Base/ControlArea/TieFlow.h +++ /dev/null @@ -1,56 +0,0 @@ -/////////////////////////////////////////////////////////// -// TieFlow.h -// Implementation of the Class TieFlow -// Original author: kdd -/////////////////////////////////////////////////////////// - -#ifndef TIEFLOW_H -#define TIEFLOW_H - -#include - -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/ControlArea/AltTieMeas.h" -#include "IEC61970/Base/Core/Terminal.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Base - { - namespace ControlArea - { - /** - * A flow specification in terms of location and direction for a control area. - */ - class TieFlow : public IEC61970::Base::Core::IdentifiedObject - { - - public: - TieFlow(); - virtual ~TieFlow(); - /** - * True if the flow into the terminal (load convention) is also flow into the - * control area. For example, this attribute should be true if using the tie line - * terminal further away from the control area. For example to represent a tie to - * a shunt component (like a load or generator) in another area, this is the near - * end of a branch and this attribute would be specified as false. - */ - IEC61970::Base::Domain::Boolean positiveFlowIn; - /** - * The primary and alternate tie flow measurements associated with the tie flow. - */ - std::list AltTieMeas; - /** - * The terminal to which this tie flow belongs. - */ - IEC61970::Base::Core::Terminal *Terminal; - - }; - - } - - } - -} -#endif // TIEFLOW_H diff --git a/IEC61970_17v07/IEC61970/Base/Core/ACDCTerminal.cpp b/IEC61970_17v07/IEC61970/Base/Core/ACDCTerminal.cpp deleted file mode 100644 index 098f5c334..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/ACDCTerminal.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// ACDCTerminal.cpp -// Implementation of the Class ACDCTerminal -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#include "ACDCTerminal.h" - -using IEC61970::Base::Core::ACDCTerminal; - - -ACDCTerminal::ACDCTerminal(){ - -} - - - -ACDCTerminal::~ACDCTerminal(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Core/ACDCTerminal.h b/IEC61970_17v07/IEC61970/Base/Core/ACDCTerminal.h deleted file mode 100644 index 992b0747f..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/ACDCTerminal.h +++ /dev/null @@ -1,57 +0,0 @@ -/////////////////////////////////////////////////////////// -// ACDCTerminal.h -// Implementation of the Class ACDCTerminal -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#ifndef ACDCTERMINAL_H -#define ACDCTERMINAL_H - -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Domain/Integer.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Core - { - /** - * An electrical connection point (AC or DC) to a piece of conducting equipment. - * Terminals are connected at physical connection points called connectivity nodes. - */ - class ACDCTerminal : public IEC61970::Base::Core::IdentifiedObject - { - - public: - ACDCTerminal(); - virtual ~ACDCTerminal(); - /** - * The connected status is related to a bus-branch model and the topological node - * to terminal relation. True implies the terminal is connected to the related - * topological node and false implies it is not. - * In a bus-branch model, the connected status is used to tell if equipment is - * disconnected without having to change the connectivity described by the - * topological node to terminal relation. A valid case is that conducting - * equipment can be connected in one end and open in the other. In particular for - * an AC line segment, where the reactive line charging can be significant, this - * is a relevant case. - */ - IEC61970::Base::Domain::Boolean connected; - /** - * The orientation of the terminal connections for a multiple terminal conducting - * equipment. The sequence numbering starts with 1 and additional terminals - * should follow in increasing order. The first terminal is the "starting point" - * for a two terminal branch. - */ - IEC61970::Base::Domain::Integer sequenceNumber; - - }; - - } - - } - -} -#endif // ACDCTERMINAL_H diff --git a/IEC61970_17v07/IEC61970/Base/Core/BaseFrequency.cpp b/IEC61970_17v07/IEC61970/Base/Core/BaseFrequency.cpp deleted file mode 100644 index 9ee07c192..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/BaseFrequency.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// BaseFrequency.cpp -// Implementation of the Class BaseFrequency -// Original author: SELAOST1 -/////////////////////////////////////////////////////////// - -#include "BaseFrequency.h" - -using IEC61970::Base::Core::BaseFrequency; - - -BaseFrequency::BaseFrequency(){ - -} - - - -BaseFrequency::~BaseFrequency(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Core/BaseFrequency.h b/IEC61970_17v07/IEC61970/Base/Core/BaseFrequency.h deleted file mode 100644 index 743421a03..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/BaseFrequency.h +++ /dev/null @@ -1,44 +0,0 @@ -/////////////////////////////////////////////////////////// -// BaseFrequency.h -// Implementation of the Class BaseFrequency -// Original author: SELAOST1 -/////////////////////////////////////////////////////////// - -#ifndef BASEFREQUENCY_H -#define BASEFREQUENCY_H - -#include "IEC61970/Base/Domain/Frequency.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Core - { - /** - * The class describe a base frequency for a power system network. In case of - * multiple power networks with different frequencies, e.g. 50 or 60 Hertz each - * network will have it's own base frequency class. Hence it is assumed that power - * system objects having different base frequencies appear in separate documents - * where each document has a single base frequency instance. - */ - class BaseFrequency : public IEC61970::Base::Core::IdentifiedObject - { - - public: - BaseFrequency(); - virtual ~BaseFrequency(); - /** - * The base frequency. - */ - IEC61970::Base::Domain::Frequency frequency; - - }; - - } - - } - -} -#endif // BASEFREQUENCY_H diff --git a/IEC61970_17v07/IEC61970/Base/Core/BasePower.cpp b/IEC61970_17v07/IEC61970/Base/Core/BasePower.cpp deleted file mode 100644 index 7ff6cbf37..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/BasePower.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// BasePower.cpp -// Implementation of the Class BasePower -/////////////////////////////////////////////////////////// - -#include "BasePower.h" - -using IEC61970::Base::Core::BasePower; - - -BasePower::BasePower(){ - -} - - - -BasePower::~BasePower(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Core/BasePower.h b/IEC61970_17v07/IEC61970/Base/Core/BasePower.h deleted file mode 100644 index 21a578749..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/BasePower.h +++ /dev/null @@ -1,39 +0,0 @@ -/////////////////////////////////////////////////////////// -// BasePower.h -// Implementation of the Class BasePower -/////////////////////////////////////////////////////////// - -#ifndef BASEPOWER_H -#define BASEPOWER_H - -#include "IEC61970/Base/Domain/ApparentPower.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Core - { - /** - * The BasePower class defines the base power used in the per unit calculations. - */ - class BasePower : public IEC61970::Base::Core::IdentifiedObject - { - - public: - BasePower(); - virtual ~BasePower(); - /** - * Value used as base power. - */ - IEC61970::Base::Domain::ApparentPower basePower; - - }; - - } - - } - -} -#endif // BASEPOWER_H diff --git a/IEC61970_17v07/IEC61970/Base/Core/BaseVoltage.cpp b/IEC61970_17v07/IEC61970/Base/Core/BaseVoltage.cpp deleted file mode 100644 index 54c5cc523..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/BaseVoltage.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// BaseVoltage.cpp -// Implementation of the Class BaseVoltage -/////////////////////////////////////////////////////////// - -#include "BaseVoltage.h" - -using IEC61970::Base::Core::BaseVoltage; - - -BaseVoltage::BaseVoltage(){ - -} - - - -BaseVoltage::~BaseVoltage(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Core/BaseVoltage.h b/IEC61970_17v07/IEC61970/Base/Core/BaseVoltage.h deleted file mode 100644 index 36369a1b1..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/BaseVoltage.h +++ /dev/null @@ -1,48 +0,0 @@ -/////////////////////////////////////////////////////////// -// BaseVoltage.h -// Implementation of the Class BaseVoltage -/////////////////////////////////////////////////////////// - -#ifndef BASEVOLTAGE_H -#define BASEVOLTAGE_H - -#include - -#include "IEC61970/Base/Domain/Voltage.h" -#include "IEC61970/Base/Core/ConductingEquipment.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Core - { - /** - * Defines a system base voltage which is referenced. - */ - class BaseVoltage : public IEC61970::Base::Core::IdentifiedObject - { - - public: - BaseVoltage(); - virtual ~BaseVoltage(); - /** - * The power system resource's base voltage. - */ - IEC61970::Base::Domain::Voltage nominalVoltage; - /** - * All conducting equipment with this base voltage. Use only when there is no - * voltage level container used and only one base voltage applies. For example, - * not used for transformers. - */ - std::list ConductingEquipment; - - }; - - } - - } - -} -#endif // BASEVOLTAGE_H diff --git a/IEC61970_17v07/IEC61970/Base/Core/BasicIntervalSchedule.cpp b/IEC61970_17v07/IEC61970/Base/Core/BasicIntervalSchedule.cpp deleted file mode 100644 index 807e7218c..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/BasicIntervalSchedule.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// BasicIntervalSchedule.cpp -// Implementation of the Class BasicIntervalSchedule -/////////////////////////////////////////////////////////// - -#include "BasicIntervalSchedule.h" - -using IEC61970::Base::Core::BasicIntervalSchedule; - - -BasicIntervalSchedule::BasicIntervalSchedule(){ - -} - - - -BasicIntervalSchedule::~BasicIntervalSchedule(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Core/BasicIntervalSchedule.h b/IEC61970_17v07/IEC61970/Base/Core/BasicIntervalSchedule.h deleted file mode 100644 index 776a80b1a..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/BasicIntervalSchedule.h +++ /dev/null @@ -1,57 +0,0 @@ -/////////////////////////////////////////////////////////// -// BasicIntervalSchedule.h -// Implementation of the Class BasicIntervalSchedule -/////////////////////////////////////////////////////////// - -#ifndef BASICINTERVALSCHEDULE_H -#define BASICINTERVALSCHEDULE_H - -#include "IEC61970/Base/Domain/DateTime.h" -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/UnitSymbol.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Core - { - /** - * Schedule of values at points in time. - */ - class BasicIntervalSchedule : public IEC61970::Base::Core::IdentifiedObject - { - - public: - BasicIntervalSchedule(); - virtual ~BasicIntervalSchedule(); - /** - * The time for the first time point. - */ - IEC61970::Base::Domain::DateTime startTime; - /** - * Multiplier for value1. - */ - IEC61970::Base::Domain::UnitMultiplier value1Multiplier = IEC61970::Base::Domain::UnitMultiplier::_undef; - /** - * Value1 units of measure. - */ - IEC61970::Base::Domain::UnitSymbol value1Unit = IEC61970::Base::Domain::UnitSymbol::_undef; - /** - * Multiplier for value2. - */ - IEC61970::Base::Domain::UnitMultiplier value2Multiplier = IEC61970::Base::Domain::UnitMultiplier::_undef; - /** - * Value2 units of measure. - */ - IEC61970::Base::Domain::UnitSymbol value2Unit = IEC61970::Base::Domain::UnitSymbol::_undef; - - }; - - } - - } - -} -#endif // BASICINTERVALSCHEDULE_H diff --git a/IEC61970_17v07/IEC61970/Base/Core/Bay.cpp b/IEC61970_17v07/IEC61970/Base/Core/Bay.cpp deleted file mode 100644 index 1883bf786..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/Bay.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// Bay.cpp -// Implementation of the Class Bay -/////////////////////////////////////////////////////////// - -#include "Bay.h" - -using IEC61970::Base::Core::Bay; - - -Bay::Bay(){ - -} - - - -Bay::~Bay(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Core/Bay.h b/IEC61970_17v07/IEC61970/Base/Core/Bay.h deleted file mode 100644 index 0deafb6f2..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/Bay.h +++ /dev/null @@ -1,55 +0,0 @@ -/////////////////////////////////////////////////////////// -// Bay.h -// Implementation of the Class Bay -/////////////////////////////////////////////////////////// - -#ifndef BAY_H -#define BAY_H - -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Core/BreakerConfiguration.h" -#include "IEC61970/Base/Core/BusbarConfiguration.h" -#include "IEC61970/Base/Core/EquipmentContainer.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Core - { - /** - * A collection of power system resources (within a given substation) including - * conducting equipment, protection relays, measurements, and telemetry. A bay - * typically represents a physical grouping related to modularization of equipment. - */ - class Bay : public IEC61970::Base::Core::EquipmentContainer - { - - public: - Bay(); - virtual ~Bay(); - /** - * Indicates the presence/absence of energy measurements. - */ - IEC61970::Base::Domain::Boolean bayEnergyMeasFlag; - /** - * Indicates the presence/absence of active/reactive power measurements. - */ - IEC61970::Base::Domain::Boolean bayPowerMeasFlag; - /** - * Breaker configuration. - */ - IEC61970::Base::Core::BreakerConfiguration breakerConfiguration = IEC61970::Base::Core::BreakerConfiguration::_undef; - /** - * Bus bar configuration. - */ - IEC61970::Base::Core::BusbarConfiguration busBarConfiguration = IEC61970::Base::Core::BusbarConfiguration::_undef; - - }; - - } - - } - -} -#endif // BAY_H diff --git a/IEC61970_17v07/IEC61970/Base/Core/BreakerConfiguration.h b/IEC61970_17v07/IEC61970/Base/Core/BreakerConfiguration.h deleted file mode 100644 index 4a920ce4a..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/BreakerConfiguration.h +++ /dev/null @@ -1,43 +0,0 @@ -/////////////////////////////////////////////////////////// -// BreakerConfiguration.h -// Implementation of the Class BreakerConfiguration -/////////////////////////////////////////////////////////// - -#ifndef BREAKERCONFIGURATION_H -#define BREAKERCONFIGURATION_H - -namespace IEC61970 -{ - namespace Base - { - namespace Core - { - /** - * Switching arrangement for bay. - */ - enum class BreakerConfiguration - { - /** - * Single breaker. - */ - _undef = -1, singleBreaker, - /** - * Breaker and a half. - */ - breakerAndAHalf, - /** - * Double breaker. - */ - doubleBreaker, - /** - * No breaker. - */ - noBreaker - }; - - } - - } - -} -#endif // BREAKERCONFIGURATION_H diff --git a/IEC61970_17v07/IEC61970/Base/Core/BusbarConfiguration.h b/IEC61970_17v07/IEC61970/Base/Core/BusbarConfiguration.h deleted file mode 100644 index 0b965cb21..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/BusbarConfiguration.h +++ /dev/null @@ -1,43 +0,0 @@ -/////////////////////////////////////////////////////////// -// BusbarConfiguration.h -// Implementation of the Class BusbarConfiguration -/////////////////////////////////////////////////////////// - -#ifndef BUSBARCONFIGURATION_H -#define BUSBARCONFIGURATION_H - -namespace IEC61970 -{ - namespace Base - { - namespace Core - { - /** - * Busbar layout for bay. - */ - enum class BusbarConfiguration - { - /** - * Single bus. - */ - _undef = -1, singleBus, - /** - * Double bus. - */ - doubleBus, - /** - * Main bus with transfer bus. - */ - mainWithTransfer, - /** - * Ring bus. - */ - ringBus - }; - - } - - } - -} -#endif // BUSBARCONFIGURATION_H diff --git a/IEC61970_17v07/IEC61970/Base/Core/ConductingEquipment.cpp b/IEC61970_17v07/IEC61970/Base/Core/ConductingEquipment.cpp deleted file mode 100644 index 765305fc3..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/ConductingEquipment.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// ConductingEquipment.cpp -// Implementation of the Class ConductingEquipment -/////////////////////////////////////////////////////////// - -#include "ConductingEquipment.h" - -using IEC61970::Base::Core::ConductingEquipment; - - -ConductingEquipment::ConductingEquipment(){ - -} - - - -ConductingEquipment::~ConductingEquipment(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Core/ConductingEquipment.h b/IEC61970_17v07/IEC61970/Base/Core/ConductingEquipment.h deleted file mode 100644 index 9d5eb23c8..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/ConductingEquipment.h +++ /dev/null @@ -1,35 +0,0 @@ -/////////////////////////////////////////////////////////// -// ConductingEquipment.h -// Implementation of the Class ConductingEquipment -/////////////////////////////////////////////////////////// - -#ifndef CONDUCTINGEQUIPMENT_H -#define CONDUCTINGEQUIPMENT_H - -#include "IEC61970/Base/Core/Equipment.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Core - { - /** - * The parts of the AC power system that are designed to carry current or that are - * conductively connected through terminals. - */ - class ConductingEquipment : public IEC61970::Base::Core::Equipment - { - - public: - ConductingEquipment(); - virtual ~ConductingEquipment(); - - }; - - } - - } - -} -#endif // CONDUCTINGEQUIPMENT_H diff --git a/IEC61970_17v07/IEC61970/Base/Core/ConnectivityNode.cpp b/IEC61970_17v07/IEC61970/Base/Core/ConnectivityNode.cpp deleted file mode 100644 index 9731add25..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/ConnectivityNode.cpp +++ /dev/null @@ -1,21 +0,0 @@ -/////////////////////////////////////////////////////////// -// ConnectivityNode.cpp -// Implementation of the Class ConnectivityNode -/////////////////////////////////////////////////////////// - -#include "ConnectivityNode.h" - -using IEC61970::Base::Core::ConnectivityNode; - - -ConnectivityNode::ConnectivityNode() - : ConnectivityNodeContainer(nullptr) -{ - -} - - - -ConnectivityNode::~ConnectivityNode(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Core/ConnectivityNode.h b/IEC61970_17v07/IEC61970/Base/Core/ConnectivityNode.h deleted file mode 100644 index 5b716d0ef..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/ConnectivityNode.h +++ /dev/null @@ -1,40 +0,0 @@ -/////////////////////////////////////////////////////////// -// ConnectivityNode.h -// Implementation of the Class ConnectivityNode -/////////////////////////////////////////////////////////// - -#ifndef CONNECTIVITYNODE_H -#define CONNECTIVITYNODE_H - -#include "IEC61970/Base/Core/ConnectivityNodeContainer.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Core - { - /** - * Connectivity nodes are points where terminals of AC conducting equipment are - * connected together with zero impedance. - */ - class ConnectivityNode : public IEC61970::Base::Core::IdentifiedObject - { - - public: - ConnectivityNode(); - virtual ~ConnectivityNode(); - /** - * Container of this connectivity node. - */ - IEC61970::Base::Core::ConnectivityNodeContainer *ConnectivityNodeContainer; - - }; - - } - - } - -} -#endif // CONNECTIVITYNODE_H diff --git a/IEC61970_17v07/IEC61970/Base/Core/ConnectivityNodeContainer.cpp b/IEC61970_17v07/IEC61970/Base/Core/ConnectivityNodeContainer.cpp deleted file mode 100644 index 67a4f1d26..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/ConnectivityNodeContainer.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// ConnectivityNodeContainer.cpp -// Implementation of the Class ConnectivityNodeContainer -/////////////////////////////////////////////////////////// - -#include "ConnectivityNodeContainer.h" - -using IEC61970::Base::Core::ConnectivityNodeContainer; - - -ConnectivityNodeContainer::ConnectivityNodeContainer(){ - -} - - - -ConnectivityNodeContainer::~ConnectivityNodeContainer(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Core/ConnectivityNodeContainer.h b/IEC61970_17v07/IEC61970/Base/Core/ConnectivityNodeContainer.h deleted file mode 100644 index 36fef649a..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/ConnectivityNodeContainer.h +++ /dev/null @@ -1,35 +0,0 @@ -/////////////////////////////////////////////////////////// -// ConnectivityNodeContainer.h -// Implementation of the Class ConnectivityNodeContainer -/////////////////////////////////////////////////////////// - -#ifndef CONNECTIVITYNODECONTAINER_H -#define CONNECTIVITYNODECONTAINER_H - -#include "IEC61970/Base/Core/PowerSystemResource.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Core - { - /** - * A base class for all objects that may contain connectivity nodes or topological - * nodes. - */ - class ConnectivityNodeContainer : public IEC61970::Base::Core::PowerSystemResource - { - - public: - ConnectivityNodeContainer(); - virtual ~ConnectivityNodeContainer(); - - }; - - } - - } - -} -#endif // CONNECTIVITYNODECONTAINER_H diff --git a/IEC61970_17v07/IEC61970/Base/Core/Curve.cpp b/IEC61970_17v07/IEC61970/Base/Core/Curve.cpp deleted file mode 100644 index a584dc98f..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/Curve.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// Curve.cpp -// Implementation of the Class Curve -/////////////////////////////////////////////////////////// - -#include "Curve.h" - -using IEC61970::Base::Core::Curve; - - -Curve::Curve(){ - -} - - - -Curve::~Curve(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Core/Curve.h b/IEC61970_17v07/IEC61970/Base/Core/Curve.h deleted file mode 100644 index 820c1204a..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/Curve.h +++ /dev/null @@ -1,81 +0,0 @@ -/////////////////////////////////////////////////////////// -// Curve.h -// Implementation of the Class Curve -/////////////////////////////////////////////////////////// - -#ifndef CURVE_H -#define CURVE_H - -#include - -#include "IEC61970/Base/Core/CurveStyle.h" -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/UnitSymbol.h" -#include "IEC61970/Base/Core/CurveData.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Core - { - /** - * A multi-purpose curve or functional relationship between an independent - * variable (X-axis) and dependent (Y-axis) variables. - */ - class Curve : public IEC61970::Base::Core::IdentifiedObject - { - - public: - Curve(); - virtual ~Curve(); - /** - * The style or shape of the curve. - */ - IEC61970::Base::Core::CurveStyle curveStyle = IEC61970::Base::Core::CurveStyle::_undef; - /** - * Multiplier for X-axis. - */ - IEC61970::Base::Domain::UnitMultiplier xMultiplier = IEC61970::Base::Domain::UnitMultiplier::_undef; - /** - * The X-axis units of measure. - */ - IEC61970::Base::Domain::UnitSymbol xUnit = IEC61970::Base::Domain::UnitSymbol::_undef; - /** - * Multiplier for Y1-axis. - */ - IEC61970::Base::Domain::UnitMultiplier y1Multiplier = IEC61970::Base::Domain::UnitMultiplier::_undef; - /** - * The Y1-axis units of measure. - */ - IEC61970::Base::Domain::UnitSymbol y1Unit = IEC61970::Base::Domain::UnitSymbol::_undef; - /** - * Multiplier for Y2-axis. - */ - IEC61970::Base::Domain::UnitMultiplier y2Multiplier = IEC61970::Base::Domain::UnitMultiplier::_undef; - /** - * The Y2-axis units of measure. - */ - IEC61970::Base::Domain::UnitSymbol y2Unit = IEC61970::Base::Domain::UnitSymbol::_undef; - /** - * Multiplier for Y3-axis. - */ - IEC61970::Base::Domain::UnitMultiplier y3Multiplier = IEC61970::Base::Domain::UnitMultiplier::_undef; - /** - * The Y3-axis units of measure. - */ - IEC61970::Base::Domain::UnitSymbol y3Unit = IEC61970::Base::Domain::UnitSymbol::_undef; - /** - * The point data values that define this curve. - */ - std::list CurveDatas; - - }; - - } - - } - -} -#endif // CURVE_H diff --git a/IEC61970_17v07/IEC61970/Base/Core/CurveData.cpp b/IEC61970_17v07/IEC61970/Base/Core/CurveData.cpp deleted file mode 100644 index d2ddfbe62..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/CurveData.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// CurveData.cpp -// Implementation of the Class CurveData -/////////////////////////////////////////////////////////// - -#include "CurveData.h" - -using IEC61970::Base::Core::CurveData; - - -CurveData::CurveData(){ - -} - - - -CurveData::~CurveData(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Core/CurveData.h b/IEC61970_17v07/IEC61970/Base/Core/CurveData.h deleted file mode 100644 index bb05e3867..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/CurveData.h +++ /dev/null @@ -1,55 +0,0 @@ -/////////////////////////////////////////////////////////// -// CurveData.h -// Implementation of the Class CurveData -/////////////////////////////////////////////////////////// - -#ifndef CURVEDATA_H -#define CURVEDATA_H - -#include "BaseClass.h" -#include "IEC61970/Base/Domain/Float.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Core - { - /** - * Multi-purpose data points for defining a curve. The use of this generic class - * is discouraged if a more specific class can be used to specify the x and y - * axis values along with their specific data types. - */ - class CurveData : public BaseClass - { - - public: - CurveData(); - virtual ~CurveData(); - /** - * The data value of the X-axis variable, depending on the X-axis units. - */ - IEC61970::Base::Domain::Float xvalue; - /** - * The data value of the first Y-axis variable, depending on the Y-axis units. - */ - IEC61970::Base::Domain::Float y1value; - /** - * The data value of the second Y-axis variable (if present), depending on the Y- - * axis units. - */ - IEC61970::Base::Domain::Float y2value; - /** - * The data value of the third Y-axis variable (if present), depending on the Y- - * axis units. - */ - IEC61970::Base::Domain::Float y3value; - - }; - - } - - } - -} -#endif // CURVEDATA_H diff --git a/IEC61970_17v07/IEC61970/Base/Core/CurveStyle.h b/IEC61970_17v07/IEC61970/Base/Core/CurveStyle.h deleted file mode 100644 index 60a243ea6..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/CurveStyle.h +++ /dev/null @@ -1,37 +0,0 @@ -/////////////////////////////////////////////////////////// -// CurveStyle.h -// Implementation of the Class CurveStyle -/////////////////////////////////////////////////////////// - -#ifndef CURVESTYLE_H -#define CURVESTYLE_H - -namespace IEC61970 -{ - namespace Base - { - namespace Core - { - /** - * Style or shape of curve. - */ - enum class CurveStyle - { - /** - * The Y-axis values are assumed constant until the next curve point and prior to - * the first curve point. - */ - _undef = -1, constantYValue, - /** - * The Y-axis values are assumed to be a straight line between values. Also known - * as linear interpolation. - */ - straightLineYValues - }; - - } - - } - -} -#endif // CURVESTYLE_H diff --git a/IEC61970_17v07/IEC61970/Base/Core/Equipment.cpp b/IEC61970_17v07/IEC61970/Base/Core/Equipment.cpp deleted file mode 100644 index bcf59f5ad..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/Equipment.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// Equipment.cpp -// Implementation of the Class Equipment -/////////////////////////////////////////////////////////// - -#include "Equipment.h" - -using IEC61970::Base::Core::Equipment; - - -Equipment::Equipment(){ - -} - - - -Equipment::~Equipment(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Core/Equipment.h b/IEC61970_17v07/IEC61970/Base/Core/Equipment.h deleted file mode 100644 index f9c2e0cbd..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/Equipment.h +++ /dev/null @@ -1,52 +0,0 @@ -/////////////////////////////////////////////////////////// -// Equipment.h -// Implementation of the Class Equipment -/////////////////////////////////////////////////////////// - -#ifndef EQUIPMENT_H -#define EQUIPMENT_H - -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Core/PowerSystemResource.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Core - { - /** - * The parts of a power system that are physical devices, electronic or mechanical. - */ - class Equipment : public IEC61970::Base::Core::PowerSystemResource - { - - public: - Equipment(); - virtual ~Equipment(); - /** - * The single instance of equipment represents multiple pieces of equipment that - * have been modeled together as an aggregate. Examples would be power - * transformers or synchronous machines operating in parallel modeled as a single - * aggregate power transformer or aggregate synchronous machine. This is not to - * be used to indicate equipment that is part of a group of interdependent - * equipment produced by a network production program. - */ - IEC61970::Base::Domain::Boolean aggregate; - /** - * If true, the equipment is in service. - */ - IEC61970::Base::Domain::Boolean inService; - /** - * If true, the equipment is normally in service. - */ - IEC61970::Base::Domain::Boolean normallyInService; - - }; - - } - - } - -} -#endif // EQUIPMENT_H diff --git a/IEC61970_17v07/IEC61970/Base/Core/EquipmentContainer.cpp b/IEC61970_17v07/IEC61970/Base/Core/EquipmentContainer.cpp deleted file mode 100644 index 9f87af2a1..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/EquipmentContainer.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// EquipmentContainer.cpp -// Implementation of the Class EquipmentContainer -/////////////////////////////////////////////////////////// - -#include "EquipmentContainer.h" - -using IEC61970::Base::Core::EquipmentContainer; - - -EquipmentContainer::EquipmentContainer(){ - -} - - - -EquipmentContainer::~EquipmentContainer(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Core/EquipmentContainer.h b/IEC61970_17v07/IEC61970/Base/Core/EquipmentContainer.h deleted file mode 100644 index 012f5efab..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/EquipmentContainer.h +++ /dev/null @@ -1,41 +0,0 @@ -/////////////////////////////////////////////////////////// -// EquipmentContainer.h -// Implementation of the Class EquipmentContainer -/////////////////////////////////////////////////////////// - -#ifndef EQUIPMENTCONTAINER_H -#define EQUIPMENTCONTAINER_H - -#include - -#include "IEC61970/Base/Core/Equipment.h" -#include "IEC61970/Base/Core/ConnectivityNodeContainer.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Core - { - /** - * A modeling construct to provide a root class for containing equipment. - */ - class EquipmentContainer : public IEC61970::Base::Core::ConnectivityNodeContainer - { - - public: - EquipmentContainer(); - virtual ~EquipmentContainer(); - /** - * Contained equipment. - */ - std::list Equipments; - - }; - - } - - } - -} -#endif // EQUIPMENTCONTAINER_H diff --git a/IEC61970_17v07/IEC61970/Base/Core/GeographicalRegion.cpp b/IEC61970_17v07/IEC61970/Base/Core/GeographicalRegion.cpp deleted file mode 100644 index 9d5f1c26b..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/GeographicalRegion.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// GeographicalRegion.cpp -// Implementation of the Class GeographicalRegion -/////////////////////////////////////////////////////////// - -#include "GeographicalRegion.h" - -using IEC61970::Base::Core::GeographicalRegion; - - -GeographicalRegion::GeographicalRegion(){ - -} - - - -GeographicalRegion::~GeographicalRegion(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Core/GeographicalRegion.h b/IEC61970_17v07/IEC61970/Base/Core/GeographicalRegion.h deleted file mode 100644 index d53398016..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/GeographicalRegion.h +++ /dev/null @@ -1,41 +0,0 @@ -/////////////////////////////////////////////////////////// -// GeographicalRegion.h -// Implementation of the Class GeographicalRegion -/////////////////////////////////////////////////////////// - -#ifndef GEOGRAPHICALREGION_H -#define GEOGRAPHICALREGION_H - -#include - -#include "IEC61970/Base/Core/SubGeographicalRegion.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Core - { - /** - * A geographical region of a power system network model. - */ - class GeographicalRegion : public IEC61970::Base::Core::IdentifiedObject - { - - public: - GeographicalRegion(); - virtual ~GeographicalRegion(); - /** - * All sub-geograhpical regions within this geographical region. - */ - std::list Regions; - - }; - - } - - } - -} -#endif // GEOGRAPHICALREGION_H diff --git a/IEC61970_17v07/IEC61970/Base/Core/IdentifiedObject.cpp b/IEC61970_17v07/IEC61970/Base/Core/IdentifiedObject.cpp deleted file mode 100644 index e7cf825dc..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/IdentifiedObject.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// IdentifiedObject.cpp -// Implementation of the Class IdentifiedObject -/////////////////////////////////////////////////////////// - -#include "IdentifiedObject.h" - -using IEC61970::Base::Core::IdentifiedObject; - - -IdentifiedObject::IdentifiedObject(){ - -} - - - -IdentifiedObject::~IdentifiedObject(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Core/IdentifiedObject.h b/IEC61970_17v07/IEC61970/Base/Core/IdentifiedObject.h deleted file mode 100644 index b7af54e88..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/IdentifiedObject.h +++ /dev/null @@ -1,83 +0,0 @@ -/////////////////////////////////////////////////////////// -// IdentifiedObject.h -// Implementation of the Class IdentifiedObject -/////////////////////////////////////////////////////////// - -#ifndef IDENTIFIEDOBJECT_H -#define IDENTIFIEDOBJECT_H - -#include "BaseClass.h" -#include - -#include "IEC61970/Base/Domain/String.h" - -// Forward declaration of DiagramObject -namespace IEC61970 -{ - namespace Base - { - namespace DiagramLayout - { - class DiagramObject; - } - } -} - -namespace IEC61970 -{ - namespace Base - { - namespace Core - { - /** - * This is a root class to provide common identification for all classes needing - * identification and naming attributes. - */ - class IdentifiedObject : public BaseClass - { - - public: - IdentifiedObject(); - virtual ~IdentifiedObject(); - /** - * The aliasName is free text human readable name of the object alternative to - * IdentifiedObject.name. It may be non unique and may not correlate to a naming - * hierarchy. - * The attribute aliasName is retained because of backwards compatibility between - * CIM relases. It is however recommended to replace aliasName with the Name class - * as aliasName is planned for retirement at a future time. - */ - IEC61970::Base::Domain::String aliasName; - /** - * The description is a free human readable text describing or naming the object. - * It may be non unique and may not correlate to a naming hierarchy. - */ - IEC61970::Base::Domain::String description; - /** - * Master resource identifier issued by a model authority. The mRID is unique - * within an exchange context. Global uniqueness is easily achieved by using a - * UUID, as specified in RFC 4122, for the mRID. The use of UUID is strongly - * recommended. - * For CIMXML data files in RDF syntax conforming to IEC 61970-552 Edition 1, the - * mRID is mapped to rdf:ID or rdf:about attributes that identify CIM object - * elements. - */ - IEC61970::Base::Domain::String mRID; - /** - * The name is any free human readable and possibly non unique text naming the - * object. - */ - IEC61970::Base::Domain::String name; - /** - * The diagram objects that are associated with the domain object. - */ - std::list DiagramObjects; - - }; - - } - - } - -} -#endif // IDENTIFIEDOBJECT_H diff --git a/IEC61970_17v07/IEC61970/Base/Core/IrregularIntervalSchedule.cpp b/IEC61970_17v07/IEC61970/Base/Core/IrregularIntervalSchedule.cpp deleted file mode 100644 index fd93fd8c9..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/IrregularIntervalSchedule.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// IrregularIntervalSchedule.cpp -// Implementation of the Class IrregularIntervalSchedule -/////////////////////////////////////////////////////////// - -#include "IrregularIntervalSchedule.h" - -using IEC61970::Base::Core::IrregularIntervalSchedule; - - -IrregularIntervalSchedule::IrregularIntervalSchedule(){ - -} - - - -IrregularIntervalSchedule::~IrregularIntervalSchedule(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Core/IrregularIntervalSchedule.h b/IEC61970_17v07/IEC61970/Base/Core/IrregularIntervalSchedule.h deleted file mode 100644 index ff16d1e52..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/IrregularIntervalSchedule.h +++ /dev/null @@ -1,41 +0,0 @@ -/////////////////////////////////////////////////////////// -// IrregularIntervalSchedule.h -// Implementation of the Class IrregularIntervalSchedule -/////////////////////////////////////////////////////////// - -#ifndef IRREGULARINTERVALSCHEDULE_H -#define IRREGULARINTERVALSCHEDULE_H - -#include - -#include "IEC61970/Base/Core/BasicIntervalSchedule.h" -#include "IEC61970/Base/Core/IrregularTimePoint.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Core - { - /** - * The schedule has time points where the time between them varies. - */ - class IrregularIntervalSchedule : public IEC61970::Base::Core::BasicIntervalSchedule - { - - public: - IrregularIntervalSchedule(); - virtual ~IrregularIntervalSchedule(); - /** - * The point data values that define a curve. - */ - std::list TimePoints; - - }; - - } - - } - -} -#endif // IRREGULARINTERVALSCHEDULE_H diff --git a/IEC61970_17v07/IEC61970/Base/Core/IrregularTimePoint.cpp b/IEC61970_17v07/IEC61970/Base/Core/IrregularTimePoint.cpp deleted file mode 100644 index d2780579e..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/IrregularTimePoint.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// IrregularTimePoint.cpp -// Implementation of the Class IrregularTimePoint -/////////////////////////////////////////////////////////// - -#include "IrregularTimePoint.h" - -using IEC61970::Base::Core::IrregularTimePoint; - - -IrregularTimePoint::IrregularTimePoint(){ - -} - - - -IrregularTimePoint::~IrregularTimePoint(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Core/IrregularTimePoint.h b/IEC61970_17v07/IEC61970/Base/Core/IrregularTimePoint.h deleted file mode 100644 index 9527b3c5d..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/IrregularTimePoint.h +++ /dev/null @@ -1,50 +0,0 @@ -/////////////////////////////////////////////////////////// -// IrregularTimePoint.h -// Implementation of the Class IrregularTimePoint -/////////////////////////////////////////////////////////// - -#ifndef IRREGULARTIMEPOINT_H -#define IRREGULARTIMEPOINT_H - -#include "BaseClass.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Domain/Float.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Core - { - /** - * TimePoints for a schedule where the time between the points varies. - */ - class IrregularTimePoint : public BaseClass - { - - public: - IrregularTimePoint(); - virtual ~IrregularTimePoint(); - /** - * The time is relative to the schedule starting time. - */ - IEC61970::Base::Domain::Seconds time; - /** - * The first value at the time. The meaning of the value is defined by the derived - * type of the associated schedule. - */ - IEC61970::Base::Domain::Float value1; - /** - * The second value at the time. The meaning of the value is defined by the - * derived type of the associated schedule. - */ - IEC61970::Base::Domain::Float value2; - - }; - - } - - } - -} -#endif // IRREGULARTIMEPOINT_H diff --git a/IEC61970_17v07/IEC61970/Base/Core/Name.cpp b/IEC61970_17v07/IEC61970/Base/Core/Name.cpp deleted file mode 100644 index 80dc166a5..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/Name.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// Name.cpp -// Implementation of the Class Name -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#include "Name.h" - -using IEC61970::Base::Core::Name; - - -Name::Name() - : NameType(nullptr), IdentifiedObject(nullptr) -{ - -} - - - -Name::~Name(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Core/Name.h b/IEC61970_17v07/IEC61970/Base/Core/Name.h deleted file mode 100644 index e281df5b7..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/Name.h +++ /dev/null @@ -1,53 +0,0 @@ -/////////////////////////////////////////////////////////// -// Name.h -// Implementation of the Class Name -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#ifndef NAME_H -#define NAME_H - -#include "BaseClass.h" -#include "IEC61970/Base/Domain/String.h" -#include "IEC61970/Base/Core/NameType.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Core - { - /** - * The Name class provides the means to define any number of human readable names - * for an object. A name is not to be used for defining inter-object - * relationships. For inter-object relationships instead use the object - * identification 'mRID'. - */ - class Name : public BaseClass - { - - public: - Name(); - virtual ~Name(); - /** - * Any free text that name the object. - */ - IEC61970::Base::Domain::String name; - /** - * Type of this name. - */ - IEC61970::Base::Core::NameType *NameType; - /** - * Identified object that this name designates. - */ - IEC61970::Base::Core::IdentifiedObject *IdentifiedObject; - - }; - - } - - } - -} -#endif // NAME_H diff --git a/IEC61970_17v07/IEC61970/Base/Core/NameType.cpp b/IEC61970_17v07/IEC61970/Base/Core/NameType.cpp deleted file mode 100644 index 9b4d86232..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/NameType.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// NameType.cpp -// Implementation of the Class NameType -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#include "NameType.h" - -using IEC61970::Base::Core::NameType; - - -NameType::NameType() - : NameTypeAuthority(nullptr) -{ - -} - - - -NameType::~NameType(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Core/NameType.h b/IEC61970_17v07/IEC61970/Base/Core/NameType.h deleted file mode 100644 index 808d1f93f..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/NameType.h +++ /dev/null @@ -1,59 +0,0 @@ -/////////////////////////////////////////////////////////// -// NameType.h -// Implementation of the Class NameType -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#ifndef NAMETYPE_H -#define NAMETYPE_H - -#include "BaseClass.h" -#include "IEC61970/Base/Domain/String.h" -#include "IEC61970/Base/Core/NameTypeAuthority.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Core - { - /** - * Type of name. Possible values for attribute 'name' are implementation dependent - * but standard profiles may specify types. An enterprise may have multiple IT - * systems each having its own local name for the same object, e.g. a planning - * system may have different names from an EMS. An object may also have different - * names within the same IT system, e.g. localName as defined in CIM version 14. - * The definition from CIM14 is: - * The localName is a human readable name of the object. It is a free text name - * local to a node in a naming hierarchy similar to a file directory structure. A - * power system related naming hierarchy may be: Substation, VoltageLevel, - * Equipment etc. Children of the same parent in such a hierarchy have names that - * typically are unique among them. - */ - class NameType : public BaseClass - { - - public: - NameType(); - virtual ~NameType(); - /** - * Description of the name type. - */ - IEC61970::Base::Domain::String description; - /** - * Name of the name type. - */ - IEC61970::Base::Domain::String name; - /** - * Authority responsible for managing names of this type. - */ - IEC61970::Base::Core::NameTypeAuthority *NameTypeAuthority; - - }; - - } - - } - -} -#endif // NAMETYPE_H diff --git a/IEC61970_17v07/IEC61970/Base/Core/NameTypeAuthority.cpp b/IEC61970_17v07/IEC61970/Base/Core/NameTypeAuthority.cpp deleted file mode 100644 index 2c9fb724e..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/NameTypeAuthority.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// NameTypeAuthority.cpp -// Implementation of the Class NameTypeAuthority -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#include "NameTypeAuthority.h" - -using IEC61970::Base::Core::NameTypeAuthority; - - -NameTypeAuthority::NameTypeAuthority(){ - -} - - - -NameTypeAuthority::~NameTypeAuthority(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Core/NameTypeAuthority.h b/IEC61970_17v07/IEC61970/Base/Core/NameTypeAuthority.h deleted file mode 100644 index 639b6f392..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/NameTypeAuthority.h +++ /dev/null @@ -1,45 +0,0 @@ -/////////////////////////////////////////////////////////// -// NameTypeAuthority.h -// Implementation of the Class NameTypeAuthority -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#ifndef NAMETYPEAUTHORITY_H -#define NAMETYPEAUTHORITY_H - -#include "BaseClass.h" -#include "IEC61970/Base/Domain/String.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Core - { - /** - * Authority responsible for creation and management of names of a given type; - * typically an organization or an enterprise system. - */ - class NameTypeAuthority : public BaseClass - { - - public: - NameTypeAuthority(); - virtual ~NameTypeAuthority(); - /** - * Description of the name type authority. - */ - IEC61970::Base::Domain::String description; - /** - * Name of the name type authority. - */ - IEC61970::Base::Domain::String name; - - }; - - } - - } - -} -#endif // NAMETYPEAUTHORITY_H diff --git a/IEC61970_17v07/IEC61970/Base/Core/OperatingParticipant.cpp b/IEC61970_17v07/IEC61970/Base/Core/OperatingParticipant.cpp deleted file mode 100644 index bdf64cf4f..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/OperatingParticipant.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// OperatingParticipant.cpp -// Implementation of the Class OperatingParticipant -// Original author: kdd -/////////////////////////////////////////////////////////// - -#include "OperatingParticipant.h" - -using IEC61970::Base::Core::OperatingParticipant; - - -OperatingParticipant::OperatingParticipant(){ - -} - - - -OperatingParticipant::~OperatingParticipant(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Core/OperatingParticipant.h b/IEC61970_17v07/IEC61970/Base/Core/OperatingParticipant.h deleted file mode 100644 index 35b694b51..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/OperatingParticipant.h +++ /dev/null @@ -1,38 +0,0 @@ -/////////////////////////////////////////////////////////// -// OperatingParticipant.h -// Implementation of the Class OperatingParticipant -// Original author: kdd -/////////////////////////////////////////////////////////// - -#ifndef OPERATINGPARTICIPANT_H -#define OPERATINGPARTICIPANT_H - -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Core - { - /** - * An operator of multiple power system resource objects. Note multple operating - * participants may operate the same power system resource object. This can be - * used for modeling jointly owned units where each owner operates as a - * contractual share. - */ - class OperatingParticipant : public IEC61970::Base::Core::IdentifiedObject - { - - public: - OperatingParticipant(); - virtual ~OperatingParticipant(); - - }; - - } - - } - -} -#endif // OPERATINGPARTICIPANT_H diff --git a/IEC61970_17v07/IEC61970/Base/Core/OperatingShare.cpp b/IEC61970_17v07/IEC61970/Base/Core/OperatingShare.cpp deleted file mode 100644 index e15c95c6b..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/OperatingShare.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// OperatingShare.cpp -// Implementation of the Class OperatingShare -// Original author: kdd -/////////////////////////////////////////////////////////// - -#include "OperatingShare.h" - -using IEC61970::Base::Core::OperatingShare; - - -OperatingShare::OperatingShare() - : OperatingParticipant(nullptr), PowerSystemResource(nullptr) -{ - -} - - - -OperatingShare::~OperatingShare(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Core/OperatingShare.h b/IEC61970_17v07/IEC61970/Base/Core/OperatingShare.h deleted file mode 100644 index 4f4798004..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/OperatingShare.h +++ /dev/null @@ -1,54 +0,0 @@ -/////////////////////////////////////////////////////////// -// OperatingShare.h -// Implementation of the Class OperatingShare -// Original author: kdd -/////////////////////////////////////////////////////////// - -#ifndef OPERATINGSHARE_H -#define OPERATINGSHARE_H - -#include "BaseClass.h" -#include "IEC61970/Base/Domain/PerCent.h" -#include "IEC61970/Base/Core/OperatingParticipant.h" -#include "IEC61970/Base/Core/PowerSystemResource.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Core - { - /** - * Specifies the operations contract relationship between a power system resource - * and a contract participant. - */ - class OperatingShare : public BaseClass - { - - public: - OperatingShare(); - virtual ~OperatingShare(); - /** - * Percentage operational ownership between the pair (power system resource and - * operatging participant) associated with this share. The total percentage - * ownership for a power system resource should add to 100%. - */ - IEC61970::Base::Domain::PerCent percentage; - /** - * The operating participant having this share with the associated power system - * resource. - */ - IEC61970::Base::Core::OperatingParticipant *OperatingParticipant; - /** - * The power system resource to which the share applies. - */ - IEC61970::Base::Core::PowerSystemResource *PowerSystemResource; - - }; - - } - - } - -} -#endif // OPERATINGSHARE_H diff --git a/IEC61970_17v07/IEC61970/Base/Core/PSRType.cpp b/IEC61970_17v07/IEC61970/Base/Core/PSRType.cpp deleted file mode 100644 index a8d3558bf..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/PSRType.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// PSRType.cpp -// Implementation of the Class PSRType -/////////////////////////////////////////////////////////// - -#include "PSRType.h" - -using IEC61970::Base::Core::PSRType; - - -PSRType::PSRType(){ - -} - - - -PSRType::~PSRType(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Core/PSRType.h b/IEC61970_17v07/IEC61970/Base/Core/PSRType.h deleted file mode 100644 index f7587e865..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/PSRType.h +++ /dev/null @@ -1,37 +0,0 @@ -/////////////////////////////////////////////////////////// -// PSRType.h -// Implementation of the Class PSRType -/////////////////////////////////////////////////////////// - -#ifndef PSRTYPE_H -#define PSRTYPE_H - -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Core - { - /** - * Classifying instances of the same class, e.g. overhead and underground - * ACLineSegments. This classification mechanism is intended to provide - * flexibility outside the scope of this standard, i.e. provide customisation that - * is non standard. - */ - class PSRType : public IEC61970::Base::Core::IdentifiedObject - { - - public: - PSRType(); - virtual ~PSRType(); - - }; - - } - - } - -} -#endif // PSRTYPE_H diff --git a/IEC61970_17v07/IEC61970/Base/Core/PhaseCode.h b/IEC61970_17v07/IEC61970/Base/Core/PhaseCode.h deleted file mode 100644 index 62848f09b..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/PhaseCode.h +++ /dev/null @@ -1,140 +0,0 @@ -/////////////////////////////////////////////////////////// -// PhaseCode.h -// Implementation of the Class PhaseCode -/////////////////////////////////////////////////////////// - -#ifndef PHASECODE_H -#define PHASECODE_H - -namespace IEC61970 -{ - namespace Base - { - namespace Core - { - /** - * An unordered enumeration of phase identifiers. Allows designation of phases - * for both transmission and distribution equipment, circuits and loads. The - * enumeration, by itself, does not describe how the phases are connected together - * or connected to ground. Ground is not explicitly denoted as a phase. - * Residential and small commercial loads are often served from single-phase, or - * split-phase, secondary circuits. For example of s12N, phases 1 and 2 refer to - * hot wires that are 180 degrees out of phase, while N refers to the neutral wire. - * Through single-phase transformer connections, these secondary circuits may be - * served from one or two of the primary phases A, B, and C. For three-phase loads, - * use the A, B, C phase codes instead of s12N. - */ - enum class PhaseCode - { - /** - * Phases A, B, C, and N. - */ - _undef = -1, ABCN = 225, - /** - * Phases A, B, and C. - */ - ABC = 224, - /** - * Phases A, B, and neutral. - */ - ABN = 193, - /** - * Phases A, C and neutral. - */ - ACN = 41, - /** - * Phases B, C, and neutral. - */ - BCN = 97, - /** - * Phases A and B. - */ - AB = 132, - /** - * Phases A and C. - */ - AC = 96, - /** - * Phases B and C. - */ - BC = 66, - /** - * Phases A and neutral. - */ - AN = 129, - /** - * Phases B and neutral. - */ - BN = 65, - /** - * Phases C and neutral. - */ - CN = 33, - /** - * Phase A. - */ - A = 128, - /** - * Phase B. - */ - B = 64, - /** - * Phase C. - */ - C = 32, - /** - * Neutral phase. - */ - N = 16, - /** - * Secondary phase 1 and neutral. - */ - s1N = 528, - /** - * Secondary phase 2 and neutral. - */ - s2N = 272, - /** - * Secondary phases 1, 2, and neutral. - */ - s12N = 784, - /** - * Secondary phase 1. - */ - s1 = 512, - /** - * Secondary phase 2. - */ - s2 = 256, - /** - * Secondary phase 1 and 2. - */ - s12 = 768, - /** - * No phases specified. - */ - none = 0, - /** - * Unknown non-neutral phase. - */ - X = 1024, - /** - * Two unknown non-neutral phases. - */ - XY = 3072, - /** - * Unknown non-neutral phase plus neutral. - */ - XN = 1040, - /** - * Two unknown non-neutral phases plus neutral. - */ - XYN = 3088 - }; - - } - - } - -} -#endif // PHASECODE_H diff --git a/IEC61970_17v07/IEC61970/Base/Core/PowerSystemResource.cpp b/IEC61970_17v07/IEC61970/Base/Core/PowerSystemResource.cpp deleted file mode 100644 index a558f6854..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/PowerSystemResource.cpp +++ /dev/null @@ -1,21 +0,0 @@ -/////////////////////////////////////////////////////////// -// PowerSystemResource.cpp -// Implementation of the Class PowerSystemResource -/////////////////////////////////////////////////////////// - -#include "PowerSystemResource.h" - -using IEC61970::Base::Core::PowerSystemResource; - - -PowerSystemResource::PowerSystemResource() - : PSRType(nullptr) -{ - -} - - - -PowerSystemResource::~PowerSystemResource(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Core/PowerSystemResource.h b/IEC61970_17v07/IEC61970/Base/Core/PowerSystemResource.h deleted file mode 100644 index 3ac6ab936..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/PowerSystemResource.h +++ /dev/null @@ -1,55 +0,0 @@ -/////////////////////////////////////////////////////////// -// PowerSystemResource.h -// Implementation of the Class PowerSystemResource -/////////////////////////////////////////////////////////// - -#ifndef POWERSYSTEMRESOURCE_H -#define POWERSYSTEMRESOURCE_H - -#include - -#include "IEC61970/Base/Meas/Control.h" -#include "IEC61970/Base/Meas/Measurement.h" -#include "IEC61970/Base/Core/PSRType.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Core - { - /** - * A power system resource can be an item of equipment such as a switch, an - * equipment container containing many individual items of equipment such as a - * substation, or an organisational entity such as sub-control area. Power system - * resources can have measurements associated. - */ - class PowerSystemResource : public IEC61970::Base::Core::IdentifiedObject - { - - public: - PowerSystemResource(); - virtual ~PowerSystemResource(); - /** - * The controller outputs used to actually govern a regulating device, e.g. the - * magnetization of a synchronous machine or capacitor bank breaker actuator. - */ - std::list Controls; - /** - * The measurements associated with this power system resource. - */ - std::list Measurements; - /** - * Custom classification for this power system resource. - */ - IEC61970::Base::Core::PSRType *PSRType; - - }; - - } - - } - -} -#endif // POWERSYSTEMRESOURCE_H diff --git a/IEC61970_17v07/IEC61970/Base/Core/RegularIntervalSchedule.cpp b/IEC61970_17v07/IEC61970/Base/Core/RegularIntervalSchedule.cpp deleted file mode 100644 index 4dab63f2a..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/RegularIntervalSchedule.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// RegularIntervalSchedule.cpp -// Implementation of the Class RegularIntervalSchedule -/////////////////////////////////////////////////////////// - -#include "RegularIntervalSchedule.h" - -using IEC61970::Base::Core::RegularIntervalSchedule; - - -RegularIntervalSchedule::RegularIntervalSchedule(){ - -} - - - -RegularIntervalSchedule::~RegularIntervalSchedule(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Core/RegularIntervalSchedule.h b/IEC61970_17v07/IEC61970/Base/Core/RegularIntervalSchedule.h deleted file mode 100644 index 290248529..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/RegularIntervalSchedule.h +++ /dev/null @@ -1,51 +0,0 @@ -/////////////////////////////////////////////////////////// -// RegularIntervalSchedule.h -// Implementation of the Class RegularIntervalSchedule -/////////////////////////////////////////////////////////// - -#ifndef REGULARINTERVALSCHEDULE_H -#define REGULARINTERVALSCHEDULE_H - -#include - -#include "IEC61970/Base/Domain/DateTime.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Core/RegularTimePoint.h" -#include "IEC61970/Base/Core/BasicIntervalSchedule.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Core - { - /** - * The schedule has time points where the time between them is constant. - */ - class RegularIntervalSchedule : public IEC61970::Base::Core::BasicIntervalSchedule - { - - public: - RegularIntervalSchedule(); - virtual ~RegularIntervalSchedule(); - /** - * The time for the last time point. - */ - IEC61970::Base::Domain::DateTime endTime; - /** - * The time between each pair of subsequent regular time points in sequence order. - */ - IEC61970::Base::Domain::Seconds timeStep; - /** - * The regular interval time point data values that define this schedule. - */ - std::list TimePoints; - - }; - - } - - } - -} -#endif // REGULARINTERVALSCHEDULE_H diff --git a/IEC61970_17v07/IEC61970/Base/Core/RegularTimePoint.cpp b/IEC61970_17v07/IEC61970/Base/Core/RegularTimePoint.cpp deleted file mode 100644 index 82f17b169..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/RegularTimePoint.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// RegularTimePoint.cpp -// Implementation of the Class RegularTimePoint -/////////////////////////////////////////////////////////// - -#include "RegularTimePoint.h" - -using IEC61970::Base::Core::RegularTimePoint; - - -RegularTimePoint::RegularTimePoint(){ - -} - - - -RegularTimePoint::~RegularTimePoint(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Core/RegularTimePoint.h b/IEC61970_17v07/IEC61970/Base/Core/RegularTimePoint.h deleted file mode 100644 index d5ff3942c..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/RegularTimePoint.h +++ /dev/null @@ -1,55 +0,0 @@ -/////////////////////////////////////////////////////////// -// RegularTimePoint.h -// Implementation of the Class RegularTimePoint -/////////////////////////////////////////////////////////// - -#ifndef REGULARTIMEPOINT_H -#define REGULARTIMEPOINT_H - -#include "BaseClass.h" -#include "IEC61970/Base/Domain/Integer.h" -#include "IEC61970/Base/Domain/Float.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Core - { - /** - * Time point for a schedule where the time between the consecutive points is - * constant. - */ - class RegularTimePoint : public BaseClass - { - - public: - RegularTimePoint(); - virtual ~RegularTimePoint(); - /** - * The position of the regular time point in the sequence. Note that time points - * don't have to be sequential, i.e. time points may be omitted. The actual time - * for a RegularTimePoint is computed by multiplying the associated regular - * interval schedule's time step with the regular time point sequence number and - * adding the associated schedules start time. - */ - IEC61970::Base::Domain::Integer sequenceNumber; - /** - * The first value at the time. The meaning of the value is defined by the derived - * type of the associated schedule. - */ - IEC61970::Base::Domain::Float value1; - /** - * The second value at the time. The meaning of the value is defined by the - * derived type of the associated schedule. - */ - IEC61970::Base::Domain::Float value2; - - }; - - } - - } - -} -#endif // REGULARTIMEPOINT_H diff --git a/IEC61970_17v07/IEC61970/Base/Core/ReportingGroup.cpp b/IEC61970_17v07/IEC61970/Base/Core/ReportingGroup.cpp deleted file mode 100644 index e83eb03be..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/ReportingGroup.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// ReportingGroup.cpp -// Implementation of the Class ReportingGroup -// Original author: kdd -/////////////////////////////////////////////////////////// - -#include "ReportingGroup.h" - -using IEC61970::Base::Core::ReportingGroup; - - -ReportingGroup::ReportingGroup(){ - -} - - - -ReportingGroup::~ReportingGroup(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Core/ReportingGroup.h b/IEC61970_17v07/IEC61970/Base/Core/ReportingGroup.h deleted file mode 100644 index 8cfef4157..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/ReportingGroup.h +++ /dev/null @@ -1,42 +0,0 @@ -/////////////////////////////////////////////////////////// -// ReportingGroup.h -// Implementation of the Class ReportingGroup -// Original author: kdd -/////////////////////////////////////////////////////////// - -#ifndef REPORTINGGROUP_H -#define REPORTINGGROUP_H - -#include - -#include "IEC61970/Base/Core/IdentifiedObject.h" -#include "IEC61970/Base/Core/PowerSystemResource.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Core - { - /** - * A reporting group is used for various ad-hoc groupings used for reporting. - */ - class ReportingGroup : public IEC61970::Base::Core::IdentifiedObject - { - - public: - ReportingGroup(); - virtual ~ReportingGroup(); - /** - * Power system resources which belong to this reporting group. - */ - std::list PowerSystemResource; - - }; - - } - - } - -} -#endif // REPORTINGGROUP_H diff --git a/IEC61970_17v07/IEC61970/Base/Core/ReportingSuperGroup.cpp b/IEC61970_17v07/IEC61970/Base/Core/ReportingSuperGroup.cpp deleted file mode 100644 index 715b80594..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/ReportingSuperGroup.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// ReportingSuperGroup.cpp -// Implementation of the Class ReportingSuperGroup -// Original author: kdd -/////////////////////////////////////////////////////////// - -#include "ReportingSuperGroup.h" - -using IEC61970::Base::Core::ReportingSuperGroup; - - -ReportingSuperGroup::ReportingSuperGroup(){ - -} - - - -ReportingSuperGroup::~ReportingSuperGroup(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Core/ReportingSuperGroup.h b/IEC61970_17v07/IEC61970/Base/Core/ReportingSuperGroup.h deleted file mode 100644 index 85bcbe545..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/ReportingSuperGroup.h +++ /dev/null @@ -1,42 +0,0 @@ -/////////////////////////////////////////////////////////// -// ReportingSuperGroup.h -// Implementation of the Class ReportingSuperGroup -// Original author: kdd -/////////////////////////////////////////////////////////// - -#ifndef REPORTINGSUPERGROUP_H -#define REPORTINGSUPERGROUP_H - -#include - -#include "IEC61970/Base/Core/ReportingGroup.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Core - { - /** - * A reporting super group, groups reporting groups for a higher level report. - */ - class ReportingSuperGroup : public IEC61970::Base::Core::IdentifiedObject - { - - public: - ReportingSuperGroup(); - virtual ~ReportingSuperGroup(); - /** - * Reporting groups that are grouped under this super group. - */ - std::list ReportingGroup; - - }; - - } - - } - -} -#endif // REPORTINGSUPERGROUP_H diff --git a/IEC61970_17v07/IEC61970/Base/Core/SubGeographicalRegion.cpp b/IEC61970_17v07/IEC61970/Base/Core/SubGeographicalRegion.cpp deleted file mode 100644 index 2582d514b..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/SubGeographicalRegion.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// SubGeographicalRegion.cpp -// Implementation of the Class SubGeographicalRegion -/////////////////////////////////////////////////////////// - -#include "SubGeographicalRegion.h" - -using IEC61970::Base::Core::SubGeographicalRegion; - - -SubGeographicalRegion::SubGeographicalRegion(){ - -} - - - -SubGeographicalRegion::~SubGeographicalRegion(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Core/SubGeographicalRegion.h b/IEC61970_17v07/IEC61970/Base/Core/SubGeographicalRegion.h deleted file mode 100644 index cbe46b895..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/SubGeographicalRegion.h +++ /dev/null @@ -1,46 +0,0 @@ -/////////////////////////////////////////////////////////// -// SubGeographicalRegion.h -// Implementation of the Class SubGeographicalRegion -/////////////////////////////////////////////////////////// - -#ifndef SUBGEOGRAPHICALREGION_H -#define SUBGEOGRAPHICALREGION_H - -#include - -#include "IEC61970/Base/Wires/Line.h" -#include "IEC61970/Base/Core/Substation.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Core - { - /** - * A subset of a geographical region of a power system network model. - */ - class SubGeographicalRegion : public IEC61970::Base::Core::IdentifiedObject - { - - public: - SubGeographicalRegion(); - virtual ~SubGeographicalRegion(); - /** - * The lines within the sub-geographical region. - */ - std::list Lines; - /** - * The substations in this sub-geographical region. - */ - std::list Substations; - - }; - - } - - } - -} -#endif // SUBGEOGRAPHICALREGION_H diff --git a/IEC61970_17v07/IEC61970/Base/Core/Substation.cpp b/IEC61970_17v07/IEC61970/Base/Core/Substation.cpp deleted file mode 100644 index f2da120e4..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/Substation.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// Substation.cpp -// Implementation of the Class Substation -/////////////////////////////////////////////////////////// - -#include "Substation.h" - -using IEC61970::Base::Core::Substation; - - -Substation::Substation(){ - -} - - - -Substation::~Substation(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Core/Substation.h b/IEC61970_17v07/IEC61970/Base/Core/Substation.h deleted file mode 100644 index fba3eb7b6..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/Substation.h +++ /dev/null @@ -1,53 +0,0 @@ -/////////////////////////////////////////////////////////// -// Substation.h -// Implementation of the Class Substation -/////////////////////////////////////////////////////////// - -#ifndef SUBSTATION_H -#define SUBSTATION_H - -#include - -#include "IEC61970/Base/Core/EquipmentContainer.h" -#include "IEC61970/Base/Core/VoltageLevel.h" -#include "IEC61970/Base/Core/Bay.h" -#include "IEC61970/Base/DC/DCConverterUnit.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Core - { - /** - * A collection of equipment for purposes other than generation or utilization, - * through which electric energy in bulk is passed for the purposes of switching - * or modifying its characteristics. - */ - class Substation : public IEC61970::Base::Core::EquipmentContainer - { - - public: - Substation(); - virtual ~Substation(); - /** - * The voltage levels within this substation. - */ - std::list VoltageLevels; - /** - * Bays contained in the substation. - */ - std::list Bays; - /** - * The DC converter unit belonging ot the substation. - */ - std::list DCConverterUnit; - - }; - - } - - } - -} -#endif // SUBSTATION_H diff --git a/IEC61970_17v07/IEC61970/Base/Core/Terminal.cpp b/IEC61970_17v07/IEC61970/Base/Core/Terminal.cpp deleted file mode 100644 index 4c44079cd..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/Terminal.cpp +++ /dev/null @@ -1,21 +0,0 @@ -/////////////////////////////////////////////////////////// -// Terminal.cpp -// Implementation of the Class Terminal -/////////////////////////////////////////////////////////// - -#include "Terminal.h" - -using IEC61970::Base::Core::Terminal; - - -Terminal::Terminal() - : ConnectivityNode(nullptr), ConductingEquipment(nullptr) -{ - -} - - - -Terminal::~Terminal(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Core/Terminal.h b/IEC61970_17v07/IEC61970/Base/Core/Terminal.h deleted file mode 100644 index 27f86f095..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/Terminal.h +++ /dev/null @@ -1,60 +0,0 @@ -/////////////////////////////////////////////////////////// -// Terminal.h -// Implementation of the Class Terminal -/////////////////////////////////////////////////////////// - -#ifndef TERMINAL_H -#define TERMINAL_H - -#include - -#include "IEC61970/Base/Core/PhaseCode.h" -#include "IEC61970/Base/Core/ConnectivityNode.h" -#include "IEC61970/Base/Core/ConductingEquipment.h" -#include "IEC61970/Base/Wires/RegulatingControl.h" -#include "IEC61970/Base/Core/ACDCTerminal.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Core - { - /** - * An AC electrical connection point to a piece of conducting equipment. Terminals - * are connected at physical connection points called connectivity nodes. - */ - class Terminal : public IEC61970::Base::Core::ACDCTerminal - { - - public: - Terminal(); - virtual ~Terminal(); - /** - * Represents the normal network phasing condition. - * If the attribute is missing three phases (ABC or ABCN) shall be assumed. - */ - IEC61970::Base::Core::PhaseCode phases = IEC61970::Base::Core::PhaseCode::_undef; - /** - * The connectivity node to which this terminal connects with zero impedance. - */ - IEC61970::Base::Core::ConnectivityNode *ConnectivityNode; - /** - * The conducting equipment of the terminal. Conducting equipment have terminals - * that may be connected to other conducting equipment terminals via connectivity - * nodes or topological nodes. - */ - IEC61970::Base::Core::ConductingEquipment *ConductingEquipment; - /** - * The controls regulating this terminal. - */ - std::list RegulatingControl; - - }; - - } - - } - -} -#endif // TERMINAL_H diff --git a/IEC61970_17v07/IEC61970/Base/Core/VoltageLevel.cpp b/IEC61970_17v07/IEC61970/Base/Core/VoltageLevel.cpp deleted file mode 100644 index e74f74791..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/VoltageLevel.cpp +++ /dev/null @@ -1,21 +0,0 @@ -/////////////////////////////////////////////////////////// -// VoltageLevel.cpp -// Implementation of the Class VoltageLevel -/////////////////////////////////////////////////////////// - -#include "VoltageLevel.h" - -using IEC61970::Base::Core::VoltageLevel; - - -VoltageLevel::VoltageLevel() - : BaseVoltage(nullptr) -{ - -} - - - -VoltageLevel::~VoltageLevel(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Core/VoltageLevel.h b/IEC61970_17v07/IEC61970/Base/Core/VoltageLevel.h deleted file mode 100644 index 238cb3955..000000000 --- a/IEC61970_17v07/IEC61970/Base/Core/VoltageLevel.h +++ /dev/null @@ -1,57 +0,0 @@ -/////////////////////////////////////////////////////////// -// VoltageLevel.h -// Implementation of the Class VoltageLevel -/////////////////////////////////////////////////////////// - -#ifndef VOLTAGELEVEL_H -#define VOLTAGELEVEL_H - -#include - -#include "IEC61970/Base/Domain/Voltage.h" -#include "IEC61970/Base/Core/EquipmentContainer.h" -#include "IEC61970/Base/Core/Bay.h" -#include "IEC61970/Base/Core/BaseVoltage.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Core - { - /** - * A collection of equipment at one common system voltage forming a switchgear. - * The equipment typically consist of breakers, busbars, instrumentation, control, - * regulation and protection devices as well as assemblies of all these. - */ - class VoltageLevel : public IEC61970::Base::Core::EquipmentContainer - { - - public: - VoltageLevel(); - virtual ~VoltageLevel(); - /** - * The bus bar's high voltage limit - */ - IEC61970::Base::Domain::Voltage highVoltageLimit; - /** - * The bus bar's low voltage limit - */ - IEC61970::Base::Domain::Voltage lowVoltageLimit; - /** - * The bays within this voltage level. - */ - std::list Bays; - /** - * The base voltage used for all equipment within the voltage level. - */ - IEC61970::Base::Core::BaseVoltage *BaseVoltage; - - }; - - } - - } - -} -#endif // VOLTAGELEVEL_H diff --git a/IEC61970_17v07/IEC61970/Base/DC/ACDCConverter.cpp b/IEC61970_17v07/IEC61970/Base/DC/ACDCConverter.cpp deleted file mode 100644 index 710a37402..000000000 --- a/IEC61970_17v07/IEC61970/Base/DC/ACDCConverter.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// ACDCConverter.cpp -// Implementation of the Class ACDCConverter -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#include "ACDCConverter.h" - -using IEC61970::Base::DC::ACDCConverter; - - -ACDCConverter::ACDCConverter() - : PccTerminal(nullptr) -{ - -} - - - -ACDCConverter::~ACDCConverter(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/DC/ACDCConverter.h b/IEC61970_17v07/IEC61970/Base/DC/ACDCConverter.h deleted file mode 100644 index b33e6faed..000000000 --- a/IEC61970_17v07/IEC61970/Base/DC/ACDCConverter.h +++ /dev/null @@ -1,141 +0,0 @@ -/////////////////////////////////////////////////////////// -// ACDCConverter.h -// Implementation of the Class ACDCConverter -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#ifndef ACDCCONVERTER_H -#define ACDCCONVERTER_H - -#include "IEC61970/Base/Domain/ApparentPower.h" -#include "IEC61970/Base/Domain/CurrentFlow.h" -#include "IEC61970/Base/Domain/ActivePower.h" -#include "IEC61970/Base/Domain/Voltage.h" -#include "IEC61970/Base/Domain/Integer.h" -#include "IEC61970/Base/Domain/ReactivePower.h" -#include "IEC61970/Base/Domain/Resistance.h" -#include "IEC61970/Base/Domain/ActivePowerPerCurrentFlow.h" -#include "IEC61970/Base/Core/Terminal.h" -#include "IEC61970/Base/Core/ConductingEquipment.h" - -namespace IEC61970 -{ - namespace Base - { - namespace DC - { - /** - * A unit with valves for three phases, together with unit control equipment, - * essential protective and switching devices, DC storage capacitors, phase - * reactors and auxiliaries, if any, used for conversion. - */ - class ACDCConverter : public IEC61970::Base::Core::ConductingEquipment - { - - public: - ACDCConverter(); - virtual ~ACDCConverter(); - /** - * Base apparent power of the converter pole. - */ - IEC61970::Base::Domain::ApparentPower baseS; - /** - * Converter DC current, also called Id. Converter state variable, result from - * power flow. - */ - IEC61970::Base::Domain::CurrentFlow idc; - /** - * Active power loss in pole at no power transfer. Converter configuration data - * used in power flow. - */ - IEC61970::Base::Domain::ActivePower idleLoss; - /** - * The maximum voltage on the DC side at which the converter should operate. - * Converter configuration data used in power flow. - */ - IEC61970::Base::Domain::Voltage maxUdc; - /** - * Min allowed converter DC voltage. Converter configuration data used in power - * flow. - */ - IEC61970::Base::Domain::Voltage minUdc; - /** - * Number of valves in the converter. Used in loss calculations. - */ - IEC61970::Base::Domain::Integer numberOfValves; - /** - * Active power at the point of common coupling. Load sign convention is used, i.e. - * positive sign means flow out from a node. - * Starting value for a steady state solution in the case a simplified power flow - * model is used. - */ - IEC61970::Base::Domain::ActivePower p; - /** - * The active power loss at a DC Pole - * = idleLoss + switchingLoss*|Idc| + resitiveLoss*Idc^2 - * For lossless operation Pdc=Pac - * For rectifier operation with losses Pdc=Pac-lossP - * For inverter operation with losses Pdc=Pac+lossP - * Converter state variable used in power flow. - */ - IEC61970::Base::Domain::ActivePower poleLossP; - /** - * Reactive power at the point of common coupling. Load sign convention is used, i. - * e. positive sign means flow out from a node. - * Starting value for a steady state solution in the case a simplified power flow - * model is used. - */ - IEC61970::Base::Domain::ReactivePower q; - /** - * Rated converter DC voltage, also called UdN. Converter configuration data used - * in power flow. - */ - IEC61970::Base::Domain::Voltage ratedUdc; - /** - * Converter configuration data used in power flow. Refer to poleLossP. - */ - IEC61970::Base::Domain::Resistance resistiveLoss; - /** - * Switching losses, relative to the base apparent power 'baseS'. - * Refer to poleLossP. - */ - IEC61970::Base::Domain::ActivePowerPerCurrentFlow switchingLoss; - /** - * Real power injection target in AC grid, at point of common coupling. - */ - IEC61970::Base::Domain::ActivePower targetPpcc; - /** - * Target value for DC voltage magnitude. - */ - IEC61970::Base::Domain::Voltage targetUdc; - /** - * Line-to-line converter voltage, the voltage at the AC side of the valve. - * Converter state variable, result from power flow. - */ - IEC61970::Base::Domain::Voltage uc; - /** - * Converter voltage at the DC side, also called Ud. Converter state variable, - * result from power flow. - */ - IEC61970::Base::Domain::Voltage udc; - /** - * Valve threshold voltage, also called Uvalve. Forward voltage drop when the - * valve is conducting. Used in loss calculations, i.e. the switchLoss depend on - * numberOfValves * valveU0. - */ - IEC61970::Base::Domain::Voltage valveU0; - /** - * Point of common coupling terminal for this converter DC side. It is typically - * the terminal on the power transformer (or switch) closest to the AC network. - * The power flow measurement must be the sum of all flows into the transformer. - */ - IEC61970::Base::Core::Terminal *PccTerminal; - - }; - - } - - } - -} -#endif // ACDCCONVERTER_H diff --git a/IEC61970_17v07/IEC61970/Base/DC/ACDCConverterDCTerminal.cpp b/IEC61970_17v07/IEC61970/Base/DC/ACDCConverterDCTerminal.cpp deleted file mode 100644 index 97fccaf80..000000000 --- a/IEC61970_17v07/IEC61970/Base/DC/ACDCConverterDCTerminal.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// ACDCConverterDCTerminal.cpp -// Implementation of the Class ACDCConverterDCTerminal -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#include "ACDCConverterDCTerminal.h" - -using IEC61970::Base::DC::ACDCConverterDCTerminal; - - -ACDCConverterDCTerminal::ACDCConverterDCTerminal() - : DCConductingEquipment(nullptr) -{ - -} - - - -ACDCConverterDCTerminal::~ACDCConverterDCTerminal(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/DC/ACDCConverterDCTerminal.h b/IEC61970_17v07/IEC61970/Base/DC/ACDCConverterDCTerminal.h deleted file mode 100644 index a9e7c054e..000000000 --- a/IEC61970_17v07/IEC61970/Base/DC/ACDCConverterDCTerminal.h +++ /dev/null @@ -1,47 +0,0 @@ -/////////////////////////////////////////////////////////// -// ACDCConverterDCTerminal.h -// Implementation of the Class ACDCConverterDCTerminal -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#ifndef ACDCCONVERTERDCTERMINAL_H -#define ACDCCONVERTERDCTERMINAL_H - -#include "IEC61970/Base/DC/DCPolarityKind.h" -#include "IEC61970/Base/DC/DCBaseTerminal.h" -#include "IEC61970/Base/DC/ACDCConverter.h" - -namespace IEC61970 -{ - namespace Base - { - namespace DC - { - /** - * A DC electrical connection point at the AC/DC converter. The AC/DC converter is - * electrically connected also to the AC side. The AC connection is inherited from - * the AC conducting equipment in the same way as any other AC equipment. The - * AC/DC converter DC terminal is separate from generic DC terminal to restrict - * the connection with the AC side to AC/DC converter and so that no other DC - * conducting equipment can be connected to the AC side. - */ - class ACDCConverterDCTerminal : public IEC61970::Base::DC::DCBaseTerminal - { - - public: - ACDCConverterDCTerminal(); - virtual ~ACDCConverterDCTerminal(); - /** - * Represents the normal network polarity condition. - */ - IEC61970::Base::DC::DCPolarityKind polarity = IEC61970::Base::DC::DCPolarityKind::_undef; - IEC61970::Base::DC::ACDCConverter *DCConductingEquipment; - - }; - - } - - } - -} -#endif // ACDCCONVERTERDCTERMINAL_H diff --git a/IEC61970_17v07/IEC61970/Base/DC/CsConverter.cpp b/IEC61970_17v07/IEC61970/Base/DC/CsConverter.cpp deleted file mode 100644 index d86fdfaab..000000000 --- a/IEC61970_17v07/IEC61970/Base/DC/CsConverter.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// CsConverter.cpp -// Implementation of the Class CsConverter -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#include "CsConverter.h" - -using IEC61970::Base::DC::CsConverter; - - -CsConverter::CsConverter(){ - -} - - - -CsConverter::~CsConverter(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/DC/CsConverter.h b/IEC61970_17v07/IEC61970/Base/DC/CsConverter.h deleted file mode 100644 index 5bde3307a..000000000 --- a/IEC61970_17v07/IEC61970/Base/DC/CsConverter.h +++ /dev/null @@ -1,97 +0,0 @@ -/////////////////////////////////////////////////////////// -// CsConverter.h -// Implementation of the Class CsConverter -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#ifndef CSCONVERTER_H -#define CSCONVERTER_H - -#include "IEC61970/Base/Domain/AngleDegrees.h" -#include "IEC61970/Base/Domain/CurrentFlow.h" -#include "IEC61970/Base/DC/CsOperatingModeKind.h" -#include "IEC61970/Base/DC/CsPpccControlKind.h" -#include "IEC61970/Base/DC/ACDCConverter.h" - -namespace IEC61970 -{ - namespace Base - { - namespace DC - { - /** - * DC side of the current source converter (CSC). - */ - class CsConverter : public IEC61970::Base::DC::ACDCConverter - { - - public: - CsConverter(); - virtual ~CsConverter(); - /** - * Firing angle, typical value between 10 and 18 degrees for a rectifier. CSC - * state variable, result from power flow. - */ - IEC61970::Base::Domain::AngleDegrees alpha; - /** - * Extinction angle. CSC state variable, result from power flow. - */ - IEC61970::Base::Domain::AngleDegrees gamma; - /** - * Maximum firing angle. CSC configuration data used in power flow. - */ - IEC61970::Base::Domain::AngleDegrees maxAlpha; - /** - * Maximum extinction angle. CSC configuration data used in power flow. - */ - IEC61970::Base::Domain::AngleDegrees maxGamma; - /** - * The maximum direct current (Id) on the DC side at which the converter should - * operate. Converter configuration data use in power flow. - */ - IEC61970::Base::Domain::CurrentFlow maxIdc; - /** - * Minimum firing angle. CSC configuration data used in power flow. - */ - IEC61970::Base::Domain::AngleDegrees minAlpha; - /** - * Minimum extinction angle. CSC configuration data used in power flow. - */ - IEC61970::Base::Domain::AngleDegrees minGamma; - /** - * The minimum direct current (Id) on the DC side at which the converter should - * operate. CSC configuration data used in power flow. - */ - IEC61970::Base::Domain::CurrentFlow minIdc; - /** - * Indicates whether the DC pole is operating as an inverter or as a rectifier. - * CSC control variable used in power flow. - */ - IEC61970::Base::DC::CsOperatingModeKind operatingMode = IEC61970::Base::DC::CsOperatingModeKind::_undef; - IEC61970::Base::DC::CsPpccControlKind pPccControl = IEC61970::Base::DC::CsPpccControlKind::_undef; - /** - * Rated converter DC current, also called IdN. Converter configuration data used - * in power flow. - */ - IEC61970::Base::Domain::CurrentFlow ratedIdc; - /** - * Target firing angle. CSC control variable used in power flow. - */ - IEC61970::Base::Domain::AngleDegrees targetAlpha; - /** - * Target extinction angle. CSC control variable used in power flow. - */ - IEC61970::Base::Domain::AngleDegrees targetGamma; - /** - * DC current target value. CSC control variable used in power flow. - */ - IEC61970::Base::Domain::CurrentFlow targetIdc; - - }; - - } - - } - -} -#endif // CSCONVERTER_H diff --git a/IEC61970_17v07/IEC61970/Base/DC/CsOperatingModeKind.h b/IEC61970_17v07/IEC61970/Base/DC/CsOperatingModeKind.h deleted file mode 100644 index a44af95c6..000000000 --- a/IEC61970_17v07/IEC61970/Base/DC/CsOperatingModeKind.h +++ /dev/null @@ -1,36 +0,0 @@ -/////////////////////////////////////////////////////////// -// CsOperatingModeKind.h -// Implementation of the Class CsOperatingModeKind -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#ifndef CSOPERATINGMODEKIND_H -#define CSOPERATINGMODEKIND_H - -namespace IEC61970 -{ - namespace Base - { - namespace DC - { - /** - * Operating mode for HVDC line operating as Current Source Converter. - */ - enum class CsOperatingModeKind - { - /** - * Operating as inverter - */ - _undef = -1, inverter, - /** - * Operating as rectifier. - */ - rectifier - }; - - } - - } - -} -#endif // CSOPERATINGMODEKIND_H diff --git a/IEC61970_17v07/IEC61970/Base/DC/CsPpccControlKind.h b/IEC61970_17v07/IEC61970/Base/DC/CsPpccControlKind.h deleted file mode 100644 index 2e673ff0f..000000000 --- a/IEC61970_17v07/IEC61970/Base/DC/CsPpccControlKind.h +++ /dev/null @@ -1,40 +0,0 @@ -/////////////////////////////////////////////////////////// -// CsPpccControlKind.h -// Implementation of the Class CsPpccControlKind -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#ifndef CSPPCCCONTROLKIND_H -#define CSPPCCCONTROLKIND_H - -namespace IEC61970 -{ - namespace Base - { - namespace DC - { - /** - * Active power control modes for HVDC line operating as Current Source Converter. - */ - enum class CsPpccControlKind - { - /** - * Active power control at AC side. - */ - _undef = -1, activePower, - /** - * DC voltage control. - */ - dcVoltage, - /** - * DC current control - */ - dcCurrent - }; - - } - - } - -} -#endif // CSPPCCCONTROLKIND_H diff --git a/IEC61970_17v07/IEC61970/Base/DC/DCBaseTerminal.cpp b/IEC61970_17v07/IEC61970/Base/DC/DCBaseTerminal.cpp deleted file mode 100644 index 4e5625843..000000000 --- a/IEC61970_17v07/IEC61970/Base/DC/DCBaseTerminal.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// DCBaseTerminal.cpp -// Implementation of the Class DCBaseTerminal -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#include "DCBaseTerminal.h" - -using IEC61970::Base::DC::DCBaseTerminal; - - -DCBaseTerminal::DCBaseTerminal() - : DCTopologicalNode(nullptr) -{ - -} - - - -DCBaseTerminal::~DCBaseTerminal(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/DC/DCBaseTerminal.h b/IEC61970_17v07/IEC61970/Base/DC/DCBaseTerminal.h deleted file mode 100644 index cc22d234c..000000000 --- a/IEC61970_17v07/IEC61970/Base/DC/DCBaseTerminal.h +++ /dev/null @@ -1,43 +0,0 @@ -/////////////////////////////////////////////////////////// -// DCBaseTerminal.h -// Implementation of the Class DCBaseTerminal -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#ifndef DCBASETERMINAL_H -#define DCBASETERMINAL_H - -#include "IEC61970/Base/Topology/DCTopologicalNode.h" -#include "IEC61970/Base/Core/ACDCTerminal.h" - -namespace IEC61970 -{ - namespace Base - { - namespace DC - { - /** - * An electrical connection point at a piece of DC conducting equipment. DC - * terminals are connected at one physical DC node that may have multiple DC - * terminals connected. A DC node is similar to an AC connectivity node. The model - * enforces that DC connections are distinct from AC connections. - */ - class DCBaseTerminal : public IEC61970::Base::Core::ACDCTerminal - { - - public: - DCBaseTerminal(); - virtual ~DCBaseTerminal(); - /** - * See association end Terminal.TopologicalNode. - */ - IEC61970::Base::Topology::DCTopologicalNode *DCTopologicalNode; - - }; - - } - - } - -} -#endif // DCBASETERMINAL_H diff --git a/IEC61970_17v07/IEC61970/Base/DC/DCBreaker.cpp b/IEC61970_17v07/IEC61970/Base/DC/DCBreaker.cpp deleted file mode 100644 index 762f002ce..000000000 --- a/IEC61970_17v07/IEC61970/Base/DC/DCBreaker.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// DCBreaker.cpp -// Implementation of the Class DCBreaker -// Original author: SELAOST1 -/////////////////////////////////////////////////////////// - -#include "DCBreaker.h" - -using IEC61970::Base::DC::DCBreaker; - - -DCBreaker::DCBreaker(){ - -} - - - -DCBreaker::~DCBreaker(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/DC/DCBreaker.h b/IEC61970_17v07/IEC61970/Base/DC/DCBreaker.h deleted file mode 100644 index 1f1835cb0..000000000 --- a/IEC61970_17v07/IEC61970/Base/DC/DCBreaker.h +++ /dev/null @@ -1,35 +0,0 @@ -/////////////////////////////////////////////////////////// -// DCBreaker.h -// Implementation of the Class DCBreaker -// Original author: SELAOST1 -/////////////////////////////////////////////////////////// - -#ifndef DCBREAKER_H -#define DCBREAKER_H - -#include "IEC61970/Base/DC/DCSwitch.h" - -namespace IEC61970 -{ - namespace Base - { - namespace DC - { - /** - * A breaker within a DC system. - */ - class DCBreaker : public IEC61970::Base::DC::DCSwitch - { - - public: - DCBreaker(); - virtual ~DCBreaker(); - - }; - - } - - } - -} -#endif // DCBREAKER_H diff --git a/IEC61970_17v07/IEC61970/Base/DC/DCBusbar.cpp b/IEC61970_17v07/IEC61970/Base/DC/DCBusbar.cpp deleted file mode 100644 index 41e991605..000000000 --- a/IEC61970_17v07/IEC61970/Base/DC/DCBusbar.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// DCBusbar.cpp -// Implementation of the Class DCBusbar -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#include "DCBusbar.h" - -using IEC61970::Base::DC::DCBusbar; - - -DCBusbar::DCBusbar(){ - -} - - - -DCBusbar::~DCBusbar(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/DC/DCBusbar.h b/IEC61970_17v07/IEC61970/Base/DC/DCBusbar.h deleted file mode 100644 index 86923c7d8..000000000 --- a/IEC61970_17v07/IEC61970/Base/DC/DCBusbar.h +++ /dev/null @@ -1,35 +0,0 @@ -/////////////////////////////////////////////////////////// -// DCBusbar.h -// Implementation of the Class DCBusbar -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#ifndef DCBUSBAR_H -#define DCBUSBAR_H - -#include "IEC61970/Base/DC/DCConductingEquipment.h" - -namespace IEC61970 -{ - namespace Base - { - namespace DC - { - /** - * A busbar within a DC system. - */ - class DCBusbar : public IEC61970::Base::DC::DCConductingEquipment - { - - public: - DCBusbar(); - virtual ~DCBusbar(); - - }; - - } - - } - -} -#endif // DCBUSBAR_H diff --git a/IEC61970_17v07/IEC61970/Base/DC/DCChopper.cpp b/IEC61970_17v07/IEC61970/Base/DC/DCChopper.cpp deleted file mode 100644 index 3a9fa5e07..000000000 --- a/IEC61970_17v07/IEC61970/Base/DC/DCChopper.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// DCChopper.cpp -// Implementation of the Class DCChopper -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#include "DCChopper.h" - -using IEC61970::Base::DC::DCChopper; - - -DCChopper::DCChopper(){ - -} - - - -DCChopper::~DCChopper(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/DC/DCChopper.h b/IEC61970_17v07/IEC61970/Base/DC/DCChopper.h deleted file mode 100644 index 79c641094..000000000 --- a/IEC61970_17v07/IEC61970/Base/DC/DCChopper.h +++ /dev/null @@ -1,36 +0,0 @@ -/////////////////////////////////////////////////////////// -// DCChopper.h -// Implementation of the Class DCChopper -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#ifndef DCCHOPPER_H -#define DCCHOPPER_H - -#include "IEC61970/Base/DC/DCConductingEquipment.h" - -namespace IEC61970 -{ - namespace Base - { - namespace DC - { - /** - * Low resistance equipment used in the internal DC circuit to balance voltages. - * It has typically positive and negative pole terminals and a ground. - */ - class DCChopper : public IEC61970::Base::DC::DCConductingEquipment - { - - public: - DCChopper(); - virtual ~DCChopper(); - - }; - - } - - } - -} -#endif // DCCHOPPER_H diff --git a/IEC61970_17v07/IEC61970/Base/DC/DCConductingEquipment.cpp b/IEC61970_17v07/IEC61970/Base/DC/DCConductingEquipment.cpp deleted file mode 100644 index ce7305d60..000000000 --- a/IEC61970_17v07/IEC61970/Base/DC/DCConductingEquipment.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// DCConductingEquipment.cpp -// Implementation of the Class DCConductingEquipment -// Original author: SELAOST1 -/////////////////////////////////////////////////////////// - -#include "DCConductingEquipment.h" - -using IEC61970::Base::DC::DCConductingEquipment; - - -DCConductingEquipment::DCConductingEquipment(){ - -} - - - -DCConductingEquipment::~DCConductingEquipment(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/DC/DCConductingEquipment.h b/IEC61970_17v07/IEC61970/Base/DC/DCConductingEquipment.h deleted file mode 100644 index 9c20678b8..000000000 --- a/IEC61970_17v07/IEC61970/Base/DC/DCConductingEquipment.h +++ /dev/null @@ -1,40 +0,0 @@ -/////////////////////////////////////////////////////////// -// DCConductingEquipment.h -// Implementation of the Class DCConductingEquipment -// Original author: SELAOST1 -/////////////////////////////////////////////////////////// - -#ifndef DCCONDUCTINGEQUIPMENT_H -#define DCCONDUCTINGEQUIPMENT_H - -#include - -#include "IEC61970/Base/DC/DCTerminal.h" -#include "IEC61970/Base/Core/Equipment.h" - -namespace IEC61970 -{ - namespace Base - { - namespace DC - { - /** - * The parts of the DC power system that are designed to carry current or that are - * conductively connected through DC terminals. - */ - class DCConductingEquipment : public IEC61970::Base::Core::Equipment - { - - public: - DCConductingEquipment(); - virtual ~DCConductingEquipment(); - std::list DCTerminals; - - }; - - } - - } - -} -#endif // DCCONDUCTINGEQUIPMENT_H diff --git a/IEC61970_17v07/IEC61970/Base/DC/DCConverterOperatingModeKind.h b/IEC61970_17v07/IEC61970/Base/DC/DCConverterOperatingModeKind.h deleted file mode 100644 index c9ebfc6d0..000000000 --- a/IEC61970_17v07/IEC61970/Base/DC/DCConverterOperatingModeKind.h +++ /dev/null @@ -1,40 +0,0 @@ -/////////////////////////////////////////////////////////// -// DCConverterOperatingModeKind.h -// Implementation of the Class DCConverterOperatingModeKind -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#ifndef DCCONVERTEROPERATINGMODEKIND_H -#define DCCONVERTEROPERATINGMODEKIND_H - -namespace IEC61970 -{ - namespace Base - { - namespace DC - { - /** - * The operating mode of an HVDC bipole. - */ - enum class DCConverterOperatingModeKind - { - /** - * Bipolar operation. - */ - _undef = -1, bipolar, - /** - * Monopolar operation with metallic return - */ - monopolarMetallicReturn, - /** - * Monopolar operation with ground return - */ - monopolarGroundReturn - }; - - } - - } - -} -#endif // DCCONVERTEROPERATINGMODEKIND_H diff --git a/IEC61970_17v07/IEC61970/Base/DC/DCConverterUnit.cpp b/IEC61970_17v07/IEC61970/Base/DC/DCConverterUnit.cpp deleted file mode 100644 index da6419969..000000000 --- a/IEC61970_17v07/IEC61970/Base/DC/DCConverterUnit.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// DCConverterUnit.cpp -// Implementation of the Class DCConverterUnit -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#include "DCConverterUnit.h" - -using IEC61970::Base::DC::DCConverterUnit; - - -DCConverterUnit::DCConverterUnit(){ - -} - - - -DCConverterUnit::~DCConverterUnit(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/DC/DCConverterUnit.h b/IEC61970_17v07/IEC61970/Base/DC/DCConverterUnit.h deleted file mode 100644 index 2d1c790c8..000000000 --- a/IEC61970_17v07/IEC61970/Base/DC/DCConverterUnit.h +++ /dev/null @@ -1,41 +0,0 @@ -/////////////////////////////////////////////////////////// -// DCConverterUnit.h -// Implementation of the Class DCConverterUnit -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#ifndef DCCONVERTERUNIT_H -#define DCCONVERTERUNIT_H - -#include "IEC61970/Base/DC/DCConverterOperatingModeKind.h" -#include "IEC61970/Base/DC/DCEquipmentContainer.h" - -namespace IEC61970 -{ - namespace Base - { - namespace DC - { - /** - * Indivisible operative unit comprising all equipment between the point of common - * coupling on the AC side and the point of common coupling – DC side, essentially - * one or more converters, together with one or more converter transformers, - * converter control equipment, essential protective and switching devices and - * auxiliaries, if any, used for conversion. - */ - class DCConverterUnit : public IEC61970::Base::DC::DCEquipmentContainer - { - - public: - DCConverterUnit(); - virtual ~DCConverterUnit(); - IEC61970::Base::DC::DCConverterOperatingModeKind operationMode = IEC61970::Base::DC::DCConverterOperatingModeKind::_undef; - - }; - - } - - } - -} -#endif // DCCONVERTERUNIT_H diff --git a/IEC61970_17v07/IEC61970/Base/DC/DCDisconnector.cpp b/IEC61970_17v07/IEC61970/Base/DC/DCDisconnector.cpp deleted file mode 100644 index 18cf4ec87..000000000 --- a/IEC61970_17v07/IEC61970/Base/DC/DCDisconnector.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// DCDisconnector.cpp -// Implementation of the Class DCDisconnector -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#include "DCDisconnector.h" - -using IEC61970::Base::DC::DCDisconnector; - - -DCDisconnector::DCDisconnector(){ - -} - - - -DCDisconnector::~DCDisconnector(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/DC/DCDisconnector.h b/IEC61970_17v07/IEC61970/Base/DC/DCDisconnector.h deleted file mode 100644 index f5a15c1fe..000000000 --- a/IEC61970_17v07/IEC61970/Base/DC/DCDisconnector.h +++ /dev/null @@ -1,35 +0,0 @@ -/////////////////////////////////////////////////////////// -// DCDisconnector.h -// Implementation of the Class DCDisconnector -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#ifndef DCDISCONNECTOR_H -#define DCDISCONNECTOR_H - -#include "IEC61970/Base/DC/DCSwitch.h" - -namespace IEC61970 -{ - namespace Base - { - namespace DC - { - /** - * A disconnector within a DC system. - */ - class DCDisconnector : public IEC61970::Base::DC::DCSwitch - { - - public: - DCDisconnector(); - virtual ~DCDisconnector(); - - }; - - } - - } - -} -#endif // DCDISCONNECTOR_H diff --git a/IEC61970_17v07/IEC61970/Base/DC/DCEquipmentContainer.cpp b/IEC61970_17v07/IEC61970/Base/DC/DCEquipmentContainer.cpp deleted file mode 100644 index ccab41d56..000000000 --- a/IEC61970_17v07/IEC61970/Base/DC/DCEquipmentContainer.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// DCEquipmentContainer.cpp -// Implementation of the Class DCEquipmentContainer -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#include "DCEquipmentContainer.h" - -using IEC61970::Base::DC::DCEquipmentContainer; - - -DCEquipmentContainer::DCEquipmentContainer(){ - -} - - - -DCEquipmentContainer::~DCEquipmentContainer(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/DC/DCEquipmentContainer.h b/IEC61970_17v07/IEC61970/Base/DC/DCEquipmentContainer.h deleted file mode 100644 index 05bb68bb3..000000000 --- a/IEC61970_17v07/IEC61970/Base/DC/DCEquipmentContainer.h +++ /dev/null @@ -1,41 +0,0 @@ -/////////////////////////////////////////////////////////// -// DCEquipmentContainer.h -// Implementation of the Class DCEquipmentContainer -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#ifndef DCEQUIPMENTCONTAINER_H -#define DCEQUIPMENTCONTAINER_H - -#include - -#include "IEC61970/Base/Topology/DCTopologicalNode.h" -#include "IEC61970/Base/Core/EquipmentContainer.h" - -namespace IEC61970 -{ - namespace Base - { - namespace DC - { - /** - * A modeling construct to provide a root class for containment of DC as well as - * AC equipment. The class differ from the EquipmentContaner for AC in that it may - * also contain DCNodes. Hence it can contain both AC and DC equipment. - */ - class DCEquipmentContainer : public IEC61970::Base::Core::EquipmentContainer - { - - public: - DCEquipmentContainer(); - virtual ~DCEquipmentContainer(); - std::list DCTopologicalNode; - - }; - - } - - } - -} -#endif // DCEQUIPMENTCONTAINER_H diff --git a/IEC61970_17v07/IEC61970/Base/DC/DCGround.cpp b/IEC61970_17v07/IEC61970/Base/DC/DCGround.cpp deleted file mode 100644 index 24c4415d5..000000000 --- a/IEC61970_17v07/IEC61970/Base/DC/DCGround.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// DCGround.cpp -// Implementation of the Class DCGround -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#include "DCGround.h" - -using IEC61970::Base::DC::DCGround; - - -DCGround::DCGround(){ - -} - - - -DCGround::~DCGround(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/DC/DCGround.h b/IEC61970_17v07/IEC61970/Base/DC/DCGround.h deleted file mode 100644 index 61dce6198..000000000 --- a/IEC61970_17v07/IEC61970/Base/DC/DCGround.h +++ /dev/null @@ -1,45 +0,0 @@ -/////////////////////////////////////////////////////////// -// DCGround.h -// Implementation of the Class DCGround -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#ifndef DCGROUND_H -#define DCGROUND_H - -#include "IEC61970/Base/Domain/Inductance.h" -#include "IEC61970/Base/Domain/Resistance.h" -#include "IEC61970/Base/DC/DCConductingEquipment.h" - -namespace IEC61970 -{ - namespace Base - { - namespace DC - { - /** - * A ground within a DC system. - */ - class DCGround : public IEC61970::Base::DC::DCConductingEquipment - { - - public: - DCGround(); - virtual ~DCGround(); - /** - * Inductance to ground. - */ - IEC61970::Base::Domain::Inductance inductance; - /** - * Resistance to ground. - */ - IEC61970::Base::Domain::Resistance r; - - }; - - } - - } - -} -#endif // DCGROUND_H diff --git a/IEC61970_17v07/IEC61970/Base/DC/DCLine.cpp b/IEC61970_17v07/IEC61970/Base/DC/DCLine.cpp deleted file mode 100644 index dbb37adc6..000000000 --- a/IEC61970_17v07/IEC61970/Base/DC/DCLine.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// DCLine.cpp -// Implementation of the Class DCLine -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#include "DCLine.h" - -using IEC61970::Base::DC::DCLine; - - -DCLine::DCLine() - : Region(nullptr) -{ - -} - - - -DCLine::~DCLine(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/DC/DCLine.h b/IEC61970_17v07/IEC61970/Base/DC/DCLine.h deleted file mode 100644 index ca477862a..000000000 --- a/IEC61970_17v07/IEC61970/Base/DC/DCLine.h +++ /dev/null @@ -1,37 +0,0 @@ -/////////////////////////////////////////////////////////// -// DCLine.h -// Implementation of the Class DCLine -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#ifndef DCLINE_H -#define DCLINE_H - -#include "IEC61970/Base/DC/DCEquipmentContainer.h" -#include "IEC61970/Base/Core/SubGeographicalRegion.h" - -namespace IEC61970 -{ - namespace Base - { - namespace DC - { - /** - * Overhead lines and/or cables connecting two or more HVDC substations. - */ - class DCLine : public IEC61970::Base::DC::DCEquipmentContainer - { - - public: - DCLine(); - virtual ~DCLine(); - IEC61970::Base::Core::SubGeographicalRegion *Region; - - }; - - } - - } - -} -#endif // DCLINE_H diff --git a/IEC61970_17v07/IEC61970/Base/DC/DCLineSegment.cpp b/IEC61970_17v07/IEC61970/Base/DC/DCLineSegment.cpp deleted file mode 100644 index e4bf3cbea..000000000 --- a/IEC61970_17v07/IEC61970/Base/DC/DCLineSegment.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// DCLineSegment.cpp -// Implementation of the Class DCLineSegment -/////////////////////////////////////////////////////////// - -#include "DCLineSegment.h" - -using IEC61970::Base::DC::DCLineSegment; - - -DCLineSegment::DCLineSegment(){ - -} - - - -DCLineSegment::~DCLineSegment(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/DC/DCLineSegment.h b/IEC61970_17v07/IEC61970/Base/DC/DCLineSegment.h deleted file mode 100644 index 27af6db56..000000000 --- a/IEC61970_17v07/IEC61970/Base/DC/DCLineSegment.h +++ /dev/null @@ -1,57 +0,0 @@ -/////////////////////////////////////////////////////////// -// DCLineSegment.h -// Implementation of the Class DCLineSegment -/////////////////////////////////////////////////////////// - -#ifndef DCLINESEGMENT_H -#define DCLINESEGMENT_H - -#include "IEC61970/Base/Domain/Capacitance.h" -#include "IEC61970/Base/Domain/Inductance.h" -#include "IEC61970/Base/Domain/Length.h" -#include "IEC61970/Base/Domain/Resistance.h" -#include "IEC61970/Base/DC/DCConductingEquipment.h" - -namespace IEC61970 -{ - namespace Base - { - namespace DC - { - /** - * A wire or combination of wires not insulated from one another, with consistent - * electrical characteristics, used to carry direct current between points in the - * DC region of the power system. - */ - class DCLineSegment : public IEC61970::Base::DC::DCConductingEquipment - { - - public: - DCLineSegment(); - virtual ~DCLineSegment(); - /** - * Capacitance of the DC line segment. Significant for cables only. - */ - IEC61970::Base::Domain::Capacitance capacitance; - /** - * Inductance of the DC line segment. Neglectable compared with DCSeriesDevice - * used for smoothing. - */ - IEC61970::Base::Domain::Inductance inductance; - /** - * Segment length for calculating line section capabilities. - */ - IEC61970::Base::Domain::Length length; - /** - * Resistance of the DC line segment. - */ - IEC61970::Base::Domain::Resistance resistance; - - }; - - } - - } - -} -#endif // DCLINESEGMENT_H diff --git a/IEC61970_17v07/IEC61970/Base/DC/DCNode.cpp b/IEC61970_17v07/IEC61970/Base/DC/DCNode.cpp deleted file mode 100644 index 0d6922e81..000000000 --- a/IEC61970_17v07/IEC61970/Base/DC/DCNode.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// DCNode.cpp -// Implementation of the Class DCNode -// Original author: SELAOST1 -/////////////////////////////////////////////////////////// - -#include "DCNode.h" - -using IEC61970::Base::DC::DCNode; - - -DCNode::DCNode() - : DCTopologicalNode(nullptr), DCEquipmentContainer(nullptr) -{ - -} - - - -DCNode::~DCNode(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/DC/DCNode.h b/IEC61970_17v07/IEC61970/Base/DC/DCNode.h deleted file mode 100644 index 4c31b53b8..000000000 --- a/IEC61970_17v07/IEC61970/Base/DC/DCNode.h +++ /dev/null @@ -1,50 +0,0 @@ -/////////////////////////////////////////////////////////// -// DCNode.h -// Implementation of the Class DCNode -// Original author: SELAOST1 -/////////////////////////////////////////////////////////// - -#ifndef DCNODE_H -#define DCNODE_H - -#include - -#include "IEC61970/Base/DC/DCBaseTerminal.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" -#include "IEC61970/Base/Topology/DCTopologicalNode.h" -#include "IEC61970/Base/DC/DCEquipmentContainer.h" - -namespace IEC61970 -{ - namespace Base - { - namespace DC - { - /** - * DC nodes are points where terminals of DC conducting equipment are connected - * together with zero impedance. - */ - class DCNode : public IEC61970::Base::Core::IdentifiedObject - { - - public: - DCNode(); - virtual ~DCNode(); - std::list DCTerminals; - /** - * See association end ConnectivityNode.TopologicalNode. - */ - IEC61970::Base::Topology::DCTopologicalNode *DCTopologicalNode; - /** - * The DC container for the DC nodes. - */ - IEC61970::Base::DC::DCEquipmentContainer *DCEquipmentContainer; - - }; - - } - - } - -} -#endif // DCNODE_H diff --git a/IEC61970_17v07/IEC61970/Base/DC/DCPolarityKind.h b/IEC61970_17v07/IEC61970/Base/DC/DCPolarityKind.h deleted file mode 100644 index 18f8f4985..000000000 --- a/IEC61970_17v07/IEC61970/Base/DC/DCPolarityKind.h +++ /dev/null @@ -1,40 +0,0 @@ -/////////////////////////////////////////////////////////// -// DCPolarityKind.h -// Implementation of the Class DCPolarityKind -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#ifndef DCPOLARITYKIND_H -#define DCPOLARITYKIND_H - -namespace IEC61970 -{ - namespace Base - { - namespace DC - { - /** - * Polarity for DC circuits. - */ - enum class DCPolarityKind - { - /** - * Positive pole. - */ - _undef = -1, positive, - /** - * Middle pole, potentially grounded. - */ - middle, - /** - * Negative pole. - */ - negative - }; - - } - - } - -} -#endif // DCPOLARITYKIND_H diff --git a/IEC61970_17v07/IEC61970/Base/DC/DCSeriesDevice.cpp b/IEC61970_17v07/IEC61970/Base/DC/DCSeriesDevice.cpp deleted file mode 100644 index f274f4b50..000000000 --- a/IEC61970_17v07/IEC61970/Base/DC/DCSeriesDevice.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// DCSeriesDevice.cpp -// Implementation of the Class DCSeriesDevice -// Original author: SELAOST1 -/////////////////////////////////////////////////////////// - -#include "DCSeriesDevice.h" - -using IEC61970::Base::DC::DCSeriesDevice; - - -DCSeriesDevice::DCSeriesDevice(){ - -} - - - -DCSeriesDevice::~DCSeriesDevice(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/DC/DCSeriesDevice.h b/IEC61970_17v07/IEC61970/Base/DC/DCSeriesDevice.h deleted file mode 100644 index c7c98e52e..000000000 --- a/IEC61970_17v07/IEC61970/Base/DC/DCSeriesDevice.h +++ /dev/null @@ -1,51 +0,0 @@ -/////////////////////////////////////////////////////////// -// DCSeriesDevice.h -// Implementation of the Class DCSeriesDevice -// Original author: SELAOST1 -/////////////////////////////////////////////////////////// - -#ifndef DCSERIESDEVICE_H -#define DCSERIESDEVICE_H - -#include "IEC61970/Base/Domain/Inductance.h" -#include "IEC61970/Base/Domain/Voltage.h" -#include "IEC61970/Base/Domain/Resistance.h" -#include "IEC61970/Base/DC/DCConductingEquipment.h" - -namespace IEC61970 -{ - namespace Base - { - namespace DC - { - /** - * A series device within the DC system, typically a reactor used for filtering or - * smoothing. Needed for transient and short circuit studies. - */ - class DCSeriesDevice : public IEC61970::Base::DC::DCConductingEquipment - { - - public: - DCSeriesDevice(); - virtual ~DCSeriesDevice(); - /** - * Inductance of the device. - */ - IEC61970::Base::Domain::Inductance inductance; - /** - * Rated DC device voltage. Converter configuration data used in power flow. - */ - IEC61970::Base::Domain::Voltage ratedUdc; - /** - * Resistance of the DC device. - */ - IEC61970::Base::Domain::Resistance resistance; - - }; - - } - - } - -} -#endif // DCSERIESDEVICE_H diff --git a/IEC61970_17v07/IEC61970/Base/DC/DCShunt.cpp b/IEC61970_17v07/IEC61970/Base/DC/DCShunt.cpp deleted file mode 100644 index 1e8e549d9..000000000 --- a/IEC61970_17v07/IEC61970/Base/DC/DCShunt.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// DCShunt.cpp -// Implementation of the Class DCShunt -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#include "DCShunt.h" - -using IEC61970::Base::DC::DCShunt; - - -DCShunt::DCShunt(){ - -} - - - -DCShunt::~DCShunt(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/DC/DCShunt.h b/IEC61970_17v07/IEC61970/Base/DC/DCShunt.h deleted file mode 100644 index 483388a7f..000000000 --- a/IEC61970_17v07/IEC61970/Base/DC/DCShunt.h +++ /dev/null @@ -1,51 +0,0 @@ -/////////////////////////////////////////////////////////// -// DCShunt.h -// Implementation of the Class DCShunt -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#ifndef DCSHUNT_H -#define DCSHUNT_H - -#include "IEC61970/Base/Domain/Capacitance.h" -#include "IEC61970/Base/Domain/Voltage.h" -#include "IEC61970/Base/Domain/Resistance.h" -#include "IEC61970/Base/DC/DCConductingEquipment.h" - -namespace IEC61970 -{ - namespace Base - { - namespace DC - { - /** - * A shunt device within the DC system, typically used for filtering. Needed for - * transient and short circuit studies. - */ - class DCShunt : public IEC61970::Base::DC::DCConductingEquipment - { - - public: - DCShunt(); - virtual ~DCShunt(); - /** - * Capacitance of the DC shunt. - */ - IEC61970::Base::Domain::Capacitance capacitance; - /** - * Rated DC device voltage. Converter configuration data used in power flow. - */ - IEC61970::Base::Domain::Voltage ratedUdc; - /** - * Resistance of the DC device. - */ - IEC61970::Base::Domain::Resistance resistance; - - }; - - } - - } - -} -#endif // DCSHUNT_H diff --git a/IEC61970_17v07/IEC61970/Base/DC/DCSwitch.cpp b/IEC61970_17v07/IEC61970/Base/DC/DCSwitch.cpp deleted file mode 100644 index 0f442c306..000000000 --- a/IEC61970_17v07/IEC61970/Base/DC/DCSwitch.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// DCSwitch.cpp -// Implementation of the Class DCSwitch -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#include "DCSwitch.h" - -using IEC61970::Base::DC::DCSwitch; - - -DCSwitch::DCSwitch(){ - -} - - - -DCSwitch::~DCSwitch(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/DC/DCSwitch.h b/IEC61970_17v07/IEC61970/Base/DC/DCSwitch.h deleted file mode 100644 index bb19585ec..000000000 --- a/IEC61970_17v07/IEC61970/Base/DC/DCSwitch.h +++ /dev/null @@ -1,35 +0,0 @@ -/////////////////////////////////////////////////////////// -// DCSwitch.h -// Implementation of the Class DCSwitch -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#ifndef DCSWITCH_H -#define DCSWITCH_H - -#include "IEC61970/Base/DC/DCConductingEquipment.h" - -namespace IEC61970 -{ - namespace Base - { - namespace DC - { - /** - * A switch within the DC system. - */ - class DCSwitch : public IEC61970::Base::DC::DCConductingEquipment - { - - public: - DCSwitch(); - virtual ~DCSwitch(); - - }; - - } - - } - -} -#endif // DCSWITCH_H diff --git a/IEC61970_17v07/IEC61970/Base/DC/DCTerminal.cpp b/IEC61970_17v07/IEC61970/Base/DC/DCTerminal.cpp deleted file mode 100644 index 21826a734..000000000 --- a/IEC61970_17v07/IEC61970/Base/DC/DCTerminal.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// DCTerminal.cpp -// Implementation of the Class DCTerminal -// Original author: SELAOST1 -/////////////////////////////////////////////////////////// - -#include "DCTerminal.h" - -using IEC61970::Base::DC::DCTerminal; - - -DCTerminal::DCTerminal(){ - -} - - - -DCTerminal::~DCTerminal(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/DC/DCTerminal.h b/IEC61970_17v07/IEC61970/Base/DC/DCTerminal.h deleted file mode 100644 index 1656ae956..000000000 --- a/IEC61970_17v07/IEC61970/Base/DC/DCTerminal.h +++ /dev/null @@ -1,35 +0,0 @@ -/////////////////////////////////////////////////////////// -// DCTerminal.h -// Implementation of the Class DCTerminal -// Original author: SELAOST1 -/////////////////////////////////////////////////////////// - -#ifndef DCTERMINAL_H -#define DCTERMINAL_H - -#include "IEC61970/Base/DC/DCBaseTerminal.h" - -namespace IEC61970 -{ - namespace Base - { - namespace DC - { - /** - * An electrical connection point to generic DC conducting equipment. - */ - class DCTerminal : public IEC61970::Base::DC::DCBaseTerminal - { - - public: - DCTerminal(); - virtual ~DCTerminal(); - - }; - - } - - } - -} -#endif // DCTERMINAL_H diff --git a/IEC61970_17v07/IEC61970/Base/DC/DCTopologicalIsland.cpp b/IEC61970_17v07/IEC61970/Base/DC/DCTopologicalIsland.cpp deleted file mode 100644 index 248f94f57..000000000 --- a/IEC61970_17v07/IEC61970/Base/DC/DCTopologicalIsland.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// DCTopologicalIsland.cpp -// Implementation of the Class DCTopologicalIsland -// Original author: SELAOST1 -/////////////////////////////////////////////////////////// - -#include "DCTopologicalIsland.h" - -using IEC61970::Base::DC::DCTopologicalIsland; - - -DCTopologicalIsland::DCTopologicalIsland(){ - -} - - - -DCTopologicalIsland::~DCTopologicalIsland(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/DC/DCTopologicalIsland.h b/IEC61970_17v07/IEC61970/Base/DC/DCTopologicalIsland.h deleted file mode 100644 index 504d16a05..000000000 --- a/IEC61970_17v07/IEC61970/Base/DC/DCTopologicalIsland.h +++ /dev/null @@ -1,42 +0,0 @@ -/////////////////////////////////////////////////////////// -// DCTopologicalIsland.h -// Implementation of the Class DCTopologicalIsland -// Original author: SELAOST1 -/////////////////////////////////////////////////////////// - -#ifndef DCTOPOLOGICALISLAND_H -#define DCTOPOLOGICALISLAND_H - -#include - -#include "IEC61970/Base/Topology/DCTopologicalNode.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Base - { - namespace DC - { - /** - * An electrically connected subset of the network. DC topological islands can - * change as the current network state changes: e.g. due to - * - disconnect switches or breakers change state in a SCADA/EMS - * - manual creation, change or deletion of topological nodes in a planning tool. - */ - class DCTopologicalIsland : public IEC61970::Base::Core::IdentifiedObject - { - - public: - DCTopologicalIsland(); - virtual ~DCTopologicalIsland(); - std::list DCTopologicalNodes; - - }; - - } - - } - -} -#endif // DCTOPOLOGICALISLAND_H diff --git a/IEC61970_17v07/IEC61970/Base/DC/PerLengthDCLineParameter.cpp b/IEC61970_17v07/IEC61970/Base/DC/PerLengthDCLineParameter.cpp deleted file mode 100644 index d68407d81..000000000 --- a/IEC61970_17v07/IEC61970/Base/DC/PerLengthDCLineParameter.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// PerLengthDCLineParameter.cpp -// Implementation of the Class PerLengthDCLineParameter -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#include "PerLengthDCLineParameter.h" - -using IEC61970::Base::DC::PerLengthDCLineParameter; - - -PerLengthDCLineParameter::PerLengthDCLineParameter(){ - -} - - - -PerLengthDCLineParameter::~PerLengthDCLineParameter(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/DC/PerLengthDCLineParameter.h b/IEC61970_17v07/IEC61970/Base/DC/PerLengthDCLineParameter.h deleted file mode 100644 index 177da368e..000000000 --- a/IEC61970_17v07/IEC61970/Base/DC/PerLengthDCLineParameter.h +++ /dev/null @@ -1,55 +0,0 @@ -/////////////////////////////////////////////////////////// -// PerLengthDCLineParameter.h -// Implementation of the Class PerLengthDCLineParameter -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#ifndef PERLENGTHDCLINEPARAMETER_H -#define PERLENGTHDCLINEPARAMETER_H - -#include - -#include "IEC61970/Base/Domain/CapacitancePerLength.h" -#include "IEC61970/Base/Domain/InductancePerLength.h" -#include "IEC61970/Base/Domain/ResistancePerLength.h" -#include "IEC61970/Base/DC/DCLineSegment.h" -#include "IEC61970/Base/Wires/PerLengthLineParameter.h" - -namespace IEC61970 -{ - namespace Base - { - namespace DC - { - class PerLengthDCLineParameter : public IEC61970::Base::Wires::PerLengthLineParameter - { - - public: - PerLengthDCLineParameter(); - virtual ~PerLengthDCLineParameter(); - /** - * Capacitance per unit of length of the DC line segment; significant for cables - * only. - */ - IEC61970::Base::Domain::CapacitancePerLength capacitance; - /** - * Inductance per unit of length of the DC line segment. - */ - IEC61970::Base::Domain::InductancePerLength inductance; - /** - * Resistance per length of the DC line segment. - */ - IEC61970::Base::Domain::ResistancePerLength resistance; - /** - * All line segments described by this set of per-length parameters. - */ - std::list DCLineSegments; - - }; - - } - - } - -} -#endif // PERLENGTHDCLINEPARAMETER_H diff --git a/IEC61970_17v07/IEC61970/Base/DC/VsCapabilityCurve.cpp b/IEC61970_17v07/IEC61970/Base/DC/VsCapabilityCurve.cpp deleted file mode 100644 index 11f2bc054..000000000 --- a/IEC61970_17v07/IEC61970/Base/DC/VsCapabilityCurve.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// VsCapabilityCurve.cpp -// Implementation of the Class VsCapabilityCurve -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#include "VsCapabilityCurve.h" - -using IEC61970::Base::DC::VsCapabilityCurve; - - -VsCapabilityCurve::VsCapabilityCurve(){ - -} - - - -VsCapabilityCurve::~VsCapabilityCurve(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/DC/VsCapabilityCurve.h b/IEC61970_17v07/IEC61970/Base/DC/VsCapabilityCurve.h deleted file mode 100644 index c42accedf..000000000 --- a/IEC61970_17v07/IEC61970/Base/DC/VsCapabilityCurve.h +++ /dev/null @@ -1,36 +0,0 @@ -/////////////////////////////////////////////////////////// -// VsCapabilityCurve.h -// Implementation of the Class VsCapabilityCurve -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#ifndef VSCAPABILITYCURVE_H -#define VSCAPABILITYCURVE_H - -#include "IEC61970/Base/Core/Curve.h" - -namespace IEC61970 -{ - namespace Base - { - namespace DC - { - /** - * The P-Q capability curve for a voltage source converter, with P on x-axis and - * Qmin and Qmax on y1-axis and y2-axis. - */ - class VsCapabilityCurve : public IEC61970::Base::Core::Curve - { - - public: - VsCapabilityCurve(); - virtual ~VsCapabilityCurve(); - - }; - - } - - } - -} -#endif // VSCAPABILITYCURVE_H diff --git a/IEC61970_17v07/IEC61970/Base/DC/VsConverter.cpp b/IEC61970_17v07/IEC61970/Base/DC/VsConverter.cpp deleted file mode 100644 index 97034de04..000000000 --- a/IEC61970_17v07/IEC61970/Base/DC/VsConverter.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// VsConverter.cpp -// Implementation of the Class VsConverter -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#include "VsConverter.h" - -using IEC61970::Base::DC::VsConverter; - - -VsConverter::VsConverter() - : CapabilityCurve(nullptr) -{ - -} - - - -VsConverter::~VsConverter(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/DC/VsConverter.h b/IEC61970_17v07/IEC61970/Base/DC/VsConverter.h deleted file mode 100644 index 55ec41c30..000000000 --- a/IEC61970_17v07/IEC61970/Base/DC/VsConverter.h +++ /dev/null @@ -1,95 +0,0 @@ -/////////////////////////////////////////////////////////// -// VsConverter.h -// Implementation of the Class VsConverter -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#ifndef VSCONVERTER_H -#define VSCONVERTER_H - -#include "IEC61970/Base/Domain/AngleDegrees.h" -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Resistance.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/CurrentFlow.h" -#include "IEC61970/Base/DC/VsPpccControlKind.h" -#include "IEC61970/Base/DC/VsQpccControlKind.h" -#include "IEC61970/Base/Domain/PerCent.h" -#include "IEC61970/Base/Domain/ReactivePower.h" -#include "IEC61970/Base/Domain/Voltage.h" -#include "IEC61970/Base/DC/ACDCConverter.h" -#include "IEC61970/Base/DC/VsCapabilityCurve.h" - -namespace IEC61970 -{ - namespace Base - { - namespace DC - { - /** - * DC side of the voltage source converter (VSC). - */ - class VsConverter : public IEC61970::Base::DC::ACDCConverter - { - - public: - VsConverter(); - virtual ~VsConverter(); - /** - * Angle between uf and uc. Converter state variable used in power flow. - */ - IEC61970::Base::Domain::AngleDegrees delta; - /** - * Droop constant; pu value is obtained as D [kV/MW] x Sb / Ubdc. - */ - IEC61970::Base::Domain::PU droop; - /** - * Compensation constant. Used to compensate for voltage drop when controlling - * voltage at a distant bus. - */ - IEC61970::Base::Domain::Resistance droopCompensation; - /** - * The max quotient between the AC converter voltage (Uc) and DC voltage (Ud). A - * factor typically less than 1. VSC configuration data used in power flow. - */ - IEC61970::Base::Domain::Float maxModulationIndex; - /** - * The maximum current through a valve. This current limit is the basis for - * calculating the capability diagram. VSC configuration data. - */ - IEC61970::Base::Domain::CurrentFlow maxValveCurrent; - /** - * Kind of control of real power and/or DC voltage. - */ - IEC61970::Base::DC::VsPpccControlKind pPccControl = IEC61970::Base::DC::VsPpccControlKind::_undef; - IEC61970::Base::DC::VsQpccControlKind qPccControl = IEC61970::Base::DC::VsQpccControlKind::_undef; - /** - * Reactive power sharing factor among parallel converters on Uac control. - */ - IEC61970::Base::Domain::PerCent qShare; - /** - * Reactive power injection target in AC grid, at point of common coupling. - */ - IEC61970::Base::Domain::ReactivePower targetQpcc; - /** - * Voltage target in AC grid, at point of common coupling. - */ - IEC61970::Base::Domain::Voltage targetUpcc; - /** - * Line-to-line voltage on the valve side of the converter transformer. Converter - * state variable, result from power flow. - */ - IEC61970::Base::Domain::Voltage uf; - /** - * Capability curve of this converter. - */ - IEC61970::Base::DC::VsCapabilityCurve *CapabilityCurve; - - }; - - } - - } - -} -#endif // VSCONVERTER_H diff --git a/IEC61970_17v07/IEC61970/Base/DC/VsPpccControlKind.h b/IEC61970_17v07/IEC61970/Base/DC/VsPpccControlKind.h deleted file mode 100644 index fff0e48cb..000000000 --- a/IEC61970_17v07/IEC61970/Base/DC/VsPpccControlKind.h +++ /dev/null @@ -1,54 +0,0 @@ -/////////////////////////////////////////////////////////// -// VsPpccControlKind.h -// Implementation of the Class VsPpccControlKind -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#ifndef VSPPCCCONTROLKIND_H -#define VSPPCCCONTROLKIND_H - -namespace IEC61970 -{ - namespace Base - { - namespace DC - { - /** - * Types applicable to the control of real power and/or DC voltage by voltage - * source converter. - */ - enum class VsPpccControlKind - { - /** - * Control variable (target) is real power at PCC bus. - */ - _undef = -1, pPcc, - /** - * Control variable (target) is DC voltage and real power at PCC bus is derived. - */ - udc, - /** - * Control variables (targets) are both active power at point of common coupling - * and local DC voltage, with the droop. - */ - pPccAndUdcDroop, - /** - * Control variables (targets) are both active power at point of common coupling - * and compensated DC voltage, with the droop; compensation factor is the - * resistance, as an approximation of the DC voltage of a common (real or virtual) - * node in the DC network. - */ - pPccAndUdcDroopWithCompensation, - /** - * Control variables (targets) are both active power at point of common coupling - * and the pilot DC voltage, with the droop. - */ - pPccAndUdcDroopPilot - }; - - } - - } - -} -#endif // VSPPCCCONTROLKIND_H diff --git a/IEC61970_17v07/IEC61970/Base/DC/VsQpccControlKind.h b/IEC61970_17v07/IEC61970/Base/DC/VsQpccControlKind.h deleted file mode 100644 index 00058bd6f..000000000 --- a/IEC61970_17v07/IEC61970/Base/DC/VsQpccControlKind.h +++ /dev/null @@ -1,28 +0,0 @@ -/////////////////////////////////////////////////////////// -// VsQpccControlKind.h -// Implementation of the Class VsQpccControlKind -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#ifndef VSQPCCCONTROLKIND_H -#define VSQPCCCONTROLKIND_H - -namespace IEC61970 -{ - namespace Base - { - namespace DC - { - enum class VsQpccControlKind - { - _undef = -1, reactivePcc, - voltagePcc, - powerFactorPcc - }; - - } - - } - -} -#endif // VSQPCCCONTROLKIND_H diff --git a/IEC61970_17v07/IEC61970/Base/DiagramLayout/Diagram.cpp b/IEC61970_17v07/IEC61970/Base/DiagramLayout/Diagram.cpp deleted file mode 100644 index 7f7dcc8de..000000000 --- a/IEC61970_17v07/IEC61970/Base/DiagramLayout/Diagram.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// Diagram.cpp -// Implementation of the Class Diagram -// Original author: mcmorran -/////////////////////////////////////////////////////////// - -#include "Diagram.h" - -using IEC61970::Base::DiagramLayout::Diagram; - - -Diagram::Diagram(){ - -} - - - -Diagram::~Diagram(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/DiagramLayout/Diagram.h b/IEC61970_17v07/IEC61970/Base/DiagramLayout/Diagram.h deleted file mode 100644 index 298b246f3..000000000 --- a/IEC61970_17v07/IEC61970/Base/DiagramLayout/Diagram.h +++ /dev/null @@ -1,58 +0,0 @@ -/////////////////////////////////////////////////////////// -// Diagram.h -// Implementation of the Class Diagram -// Original author: mcmorran -/////////////////////////////////////////////////////////// - -#ifndef DIAGRAM_H -#define DIAGRAM_H - -#include "IEC61970/Base/DiagramLayout/OrientationKind.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Base - { - namespace DiagramLayout - { - /** - * The diagram being exchanged. The coordinate system is a standard Cartesian - * coordinate system and the orientation attribute defines the orientation. - */ - class Diagram : public IEC61970::Base::Core::IdentifiedObject - { - - public: - Diagram(); - virtual ~Diagram(); - /** - * Coordinate system orientation of the diagram. - */ - IEC61970::Base::DiagramLayout::OrientationKind orientation = IEC61970::Base::DiagramLayout::OrientationKind::_undef; - /** - * X coordinate of the first corner of the initial view. - */ - IEC61970::Base::Domain::Float x1InitialView; - /** - * X coordinate of the second corner of the initial view. - */ - IEC61970::Base::Domain::Float x2InitialView; - /** - * Y coordinate of the first corner of the initial view. - */ - IEC61970::Base::Domain::Float y1InitialView; - /** - * Y coordinate of the second corner of the initial view. - */ - IEC61970::Base::Domain::Float y2InitialView; - - }; - - } - - } - -} -#endif // DIAGRAM_H diff --git a/IEC61970_17v07/IEC61970/Base/DiagramLayout/DiagramObject.cpp b/IEC61970_17v07/IEC61970/Base/DiagramLayout/DiagramObject.cpp deleted file mode 100644 index 493b2740a..000000000 --- a/IEC61970_17v07/IEC61970/Base/DiagramLayout/DiagramObject.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// DiagramObject.cpp -// Implementation of the Class DiagramObject -// Original author: mcmorran -/////////////////////////////////////////////////////////// - -#include "DiagramObject.h" - -using IEC61970::Base::DiagramLayout::DiagramObject; - - -DiagramObject::DiagramObject() - : Diagram(nullptr), DiagramObjectStyle(nullptr) -{ - -} - - - -DiagramObject::~DiagramObject(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/DiagramLayout/DiagramObject.h b/IEC61970_17v07/IEC61970/Base/DiagramLayout/DiagramObject.h deleted file mode 100644 index bf4577e92..000000000 --- a/IEC61970_17v07/IEC61970/Base/DiagramLayout/DiagramObject.h +++ /dev/null @@ -1,104 +0,0 @@ -/////////////////////////////////////////////////////////// -// DiagramObject.h -// Implementation of the Class DiagramObject -// Original author: mcmorran -/////////////////////////////////////////////////////////// - -#ifndef DIAGRAMOBJECT_H -#define DIAGRAMOBJECT_H - -#include - -#include "IEC61970/Base/Domain/Integer.h" -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/AngleDegrees.h" -#include "IEC61970/Base/DiagramLayout/Diagram.h" -#include "IEC61970/Base/DiagramLayout/VisibilityLayer.h" -#include "IEC61970/Base/DiagramLayout/DiagramObjectPoint.h" -#include "IEC61970/Base/DiagramLayout/DiagramObjectStyle.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Base - { - namespace DiagramLayout - { - /** - * An object that defines one or more points in a given space. This object can be - * associated with anything that specializes IdentifiedObject. For single line - * diagrams such objects typically include such items as analog values, breakers, - * disconnectors, power transformers, and transmission lines. - */ - class DiagramObject : public IEC61970::Base::Core::IdentifiedObject - { - - public: - DiagramObject(); - virtual ~DiagramObject(); - /** - * The drawing order of this element. The higher the number, the later the element - * is drawn in sequence. This is used to ensure that elements that overlap are - * rendered in the correct order. - */ - IEC61970::Base::Domain::Integer drawingOrder; - /** - * Defines whether or not the diagram objects points define the boundaries of a - * polygon or the routing of a polyline. If this value is true then a receiving - * application should consider the first and last points to be connected. - */ - IEC61970::Base::Domain::Boolean isPolygon; - /** - * The offset in the X direction. This is used for defining the offset from centre - * for rendering an icon (the default is that a single point specifies the centre - * of the icon). - * - * The offset is in per-unit with 0 indicating there is no offset from the - * horizontal centre of the icon. -0.5 indicates it is offset by 50% to the left - * and 0.5 indicates an offset of 50% to the right. - */ - IEC61970::Base::Domain::Float offsetX; - /** - * The offset in the Y direction. This is used for defining the offset from centre - * for rendering an icon (the default is that a single point specifies the centre - * of the icon). - * - * The offset is in per-unit with 0 indicating there is no offset from the - * vertical centre of the icon. The offset direction is dependent on the - * orientation of the diagram, with -0.5 and 0.5 indicating an offset of +/- 50% - * on the vertical axis. - */ - IEC61970::Base::Domain::Float offsetY; - /** - * Sets the angle of rotation of the diagram object. Zero degrees is pointing to - * the top of the diagram. Rotation is clockwise. - */ - IEC61970::Base::Domain::AngleDegrees rotation; - /** - * A diagram object is part of a diagram. - */ - IEC61970::Base::DiagramLayout::Diagram *Diagram; - /** - * A diagram object can be part of multiple visibility layers. - */ - std::list VisibilityLayers; - /** - * A diagram object can have 0 or more points to reflect its layout position, - * routing (for polylines) or boundary (for polygons). - */ - std::list DiagramObjectPoints; - /** - * A diagram object has a style associated that provides a reference for the style - * used in the originating system. - */ - IEC61970::Base::DiagramLayout::DiagramObjectStyle *DiagramObjectStyle; - - }; - - } - - } - -} -#endif // DIAGRAMOBJECT_H diff --git a/IEC61970_17v07/IEC61970/Base/DiagramLayout/DiagramObjectGluePoint.cpp b/IEC61970_17v07/IEC61970/Base/DiagramLayout/DiagramObjectGluePoint.cpp deleted file mode 100644 index 917103485..000000000 --- a/IEC61970_17v07/IEC61970/Base/DiagramLayout/DiagramObjectGluePoint.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// DiagramObjectGluePoint.cpp -// Implementation of the Class DiagramObjectGluePoint -// Original author: mcmorran -/////////////////////////////////////////////////////////// - -#include "DiagramObjectGluePoint.h" - -using IEC61970::Base::DiagramLayout::DiagramObjectGluePoint; - - -DiagramObjectGluePoint::DiagramObjectGluePoint(){ - -} - - - -DiagramObjectGluePoint::~DiagramObjectGluePoint(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/DiagramLayout/DiagramObjectGluePoint.h b/IEC61970_17v07/IEC61970/Base/DiagramLayout/DiagramObjectGluePoint.h deleted file mode 100644 index 06c472478..000000000 --- a/IEC61970_17v07/IEC61970/Base/DiagramLayout/DiagramObjectGluePoint.h +++ /dev/null @@ -1,36 +0,0 @@ -/////////////////////////////////////////////////////////// -// DiagramObjectGluePoint.h -// Implementation of the Class DiagramObjectGluePoint -// Original author: mcmorran -/////////////////////////////////////////////////////////// - -#ifndef DIAGRAMOBJECTGLUEPOINT_H -#define DIAGRAMOBJECTGLUEPOINT_H -#include "BaseClass.h" - -namespace IEC61970 -{ - namespace Base - { - namespace DiagramLayout - { - /** - * This is used for grouping diagram object points from different diagram objects - * that are considered to be glued together in a diagram even if they are not at - * the exact same coordinates. - */ - class DiagramObjectGluePoint : public BaseClass - { - - public: - DiagramObjectGluePoint(); - virtual ~DiagramObjectGluePoint(); - - }; - - } - - } - -} -#endif // DIAGRAMOBJECTGLUEPOINT_H diff --git a/IEC61970_17v07/IEC61970/Base/DiagramLayout/DiagramObjectPoint.cpp b/IEC61970_17v07/IEC61970/Base/DiagramLayout/DiagramObjectPoint.cpp deleted file mode 100644 index 47856939e..000000000 --- a/IEC61970_17v07/IEC61970/Base/DiagramLayout/DiagramObjectPoint.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// DiagramObjectPoint.cpp -// Implementation of the Class DiagramObjectPoint -// Original author: mcmorran -/////////////////////////////////////////////////////////// - -#include "DiagramObjectPoint.h" - -using IEC61970::Base::DiagramLayout::DiagramObjectPoint; - - -DiagramObjectPoint::DiagramObjectPoint() - : DiagramObjectGluePoint(nullptr) -{ - -} - - - -DiagramObjectPoint::~DiagramObjectPoint(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/DiagramLayout/DiagramObjectPoint.h b/IEC61970_17v07/IEC61970/Base/DiagramLayout/DiagramObjectPoint.h deleted file mode 100644 index 4bc2dacf6..000000000 --- a/IEC61970_17v07/IEC61970/Base/DiagramLayout/DiagramObjectPoint.h +++ /dev/null @@ -1,61 +0,0 @@ -/////////////////////////////////////////////////////////// -// DiagramObjectPoint.h -// Implementation of the Class DiagramObjectPoint -// Original author: mcmorran -/////////////////////////////////////////////////////////// - -#ifndef DIAGRAMOBJECTPOINT_H -#define DIAGRAMOBJECTPOINT_H - -#include "BaseClass.h" -#include "IEC61970/Base/Domain/Integer.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/DiagramLayout/DiagramObjectGluePoint.h" - -namespace IEC61970 -{ - namespace Base - { - namespace DiagramLayout - { - /** - * A point in a given space defined by 3 coordinates and associated to a diagram - * object. The coordinates may be positive or negative as the origin does not - * have to be in the corner of a diagram. - */ - class DiagramObjectPoint : public BaseClass - { - - public: - DiagramObjectPoint(); - virtual ~DiagramObjectPoint(); - /** - * The sequence position of the point, used for defining the order of points for - * diagram objects acting as a polyline or polygon with more than one point. - */ - IEC61970::Base::Domain::Integer sequenceNumber; - /** - * The X coordinate of this point. - */ - IEC61970::Base::Domain::Float xPosition; - /** - * The Y coordinate of this point. - */ - IEC61970::Base::Domain::Float yPosition; - /** - * The Z coordinate of this point. - */ - IEC61970::Base::Domain::Float zPosition; - /** - * The 'glue' point to which this point is associated. - */ - IEC61970::Base::DiagramLayout::DiagramObjectGluePoint *DiagramObjectGluePoint; - - }; - - } - - } - -} -#endif // DIAGRAMOBJECTPOINT_H diff --git a/IEC61970_17v07/IEC61970/Base/DiagramLayout/DiagramObjectStyle.cpp b/IEC61970_17v07/IEC61970/Base/DiagramLayout/DiagramObjectStyle.cpp deleted file mode 100644 index b7c9c03c4..000000000 --- a/IEC61970_17v07/IEC61970/Base/DiagramLayout/DiagramObjectStyle.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// DiagramObjectStyle.cpp -// Implementation of the Class DiagramObjectStyle -// Original author: mcmorran -/////////////////////////////////////////////////////////// - -#include "DiagramObjectStyle.h" - -using IEC61970::Base::DiagramLayout::DiagramObjectStyle; - - -DiagramObjectStyle::DiagramObjectStyle(){ - -} - - - -DiagramObjectStyle::~DiagramObjectStyle(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/DiagramLayout/DiagramObjectStyle.h b/IEC61970_17v07/IEC61970/Base/DiagramLayout/DiagramObjectStyle.h deleted file mode 100644 index 052a7e560..000000000 --- a/IEC61970_17v07/IEC61970/Base/DiagramLayout/DiagramObjectStyle.h +++ /dev/null @@ -1,37 +0,0 @@ -/////////////////////////////////////////////////////////// -// DiagramObjectStyle.h -// Implementation of the Class DiagramObjectStyle -// Original author: mcmorran -/////////////////////////////////////////////////////////// - -#ifndef DIAGRAMOBJECTSTYLE_H -#define DIAGRAMOBJECTSTYLE_H - -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Base - { - namespace DiagramLayout - { - /** - * A reference to a style used by the originating system for a diagram object. A - * diagram object style describes information such as line thickness, shape such - * as circle or rectangle etc, and color. - */ - class DiagramObjectStyle : public IEC61970::Base::Core::IdentifiedObject - { - - public: - DiagramObjectStyle(); - virtual ~DiagramObjectStyle(); - - }; - - } - - } - -} -#endif // DIAGRAMOBJECTSTYLE_H diff --git a/IEC61970_17v07/IEC61970/Base/DiagramLayout/DiagramStyle.cpp b/IEC61970_17v07/IEC61970/Base/DiagramLayout/DiagramStyle.cpp deleted file mode 100644 index 0a7c6833f..000000000 --- a/IEC61970_17v07/IEC61970/Base/DiagramLayout/DiagramStyle.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// DiagramStyle.cpp -// Implementation of the Class DiagramStyle -// Original author: SELAOST1 -/////////////////////////////////////////////////////////// - -#include "DiagramStyle.h" - -using IEC61970::Base::DiagramLayout::DiagramStyle; - - -DiagramStyle::DiagramStyle(){ - -} - - - -DiagramStyle::~DiagramStyle(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/DiagramLayout/DiagramStyle.h b/IEC61970_17v07/IEC61970/Base/DiagramLayout/DiagramStyle.h deleted file mode 100644 index 9ae089eb3..000000000 --- a/IEC61970_17v07/IEC61970/Base/DiagramLayout/DiagramStyle.h +++ /dev/null @@ -1,44 +0,0 @@ -/////////////////////////////////////////////////////////// -// DiagramStyle.h -// Implementation of the Class DiagramStyle -// Original author: SELAOST1 -/////////////////////////////////////////////////////////// - -#ifndef DIAGRAMSTYLE_H -#define DIAGRAMSTYLE_H - -#include - -#include "IEC61970/Base/Core/IdentifiedObject.h" -#include "IEC61970/Base/DiagramLayout/Diagram.h" - -namespace IEC61970 -{ - namespace Base - { - namespace DiagramLayout - { - /** - * The diagram style refer to a style used by the originating system for a diagram. - * A diagram style describes information such as schematic, geographic, bus- - * branch etc. - */ - class DiagramStyle : public IEC61970::Base::Core::IdentifiedObject - { - - public: - DiagramStyle(); - virtual ~DiagramStyle(); - /** - * A DiagramStyle can be used by many Diagrams. - */ - std::list Diagram; - - }; - - } - - } - -} -#endif // DIAGRAMSTYLE_H diff --git a/IEC61970_17v07/IEC61970/Base/DiagramLayout/OrientationKind.h b/IEC61970_17v07/IEC61970/Base/DiagramLayout/OrientationKind.h deleted file mode 100644 index 328f4f3e5..000000000 --- a/IEC61970_17v07/IEC61970/Base/DiagramLayout/OrientationKind.h +++ /dev/null @@ -1,42 +0,0 @@ -/////////////////////////////////////////////////////////// -// OrientationKind.h -// Implementation of the Class OrientationKind -// Original author: mcmorran -/////////////////////////////////////////////////////////// - -#ifndef ORIENTATIONKIND_H -#define ORIENTATIONKIND_H - -namespace IEC61970 -{ - namespace Base - { - namespace DiagramLayout - { - /** - * The orientation of the coordinate system with respect to top, left, and the - * coordinate number system. - */ - enum class OrientationKind - { - /** - * For 2D diagrams, a positive orientation will result in X values increasing from - * left to right and Y values increasing from bottom to top. This is also known - * as a right hand orientation. - */ - _undef = -1, positive, - /** - * For 2D diagrams, a negative orientation gives the left-hand orientation - * (favoured by computer graphics displays) with X values increasing from left to - * right and Y values increasing from top to bottom. This is also known as a - * left hand orientation. - */ - negative - }; - - } - - } - -} -#endif // ORIENTATIONKIND_H diff --git a/IEC61970_17v07/IEC61970/Base/DiagramLayout/TextDiagramObject.cpp b/IEC61970_17v07/IEC61970/Base/DiagramLayout/TextDiagramObject.cpp deleted file mode 100644 index a46fda4cf..000000000 --- a/IEC61970_17v07/IEC61970/Base/DiagramLayout/TextDiagramObject.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// TextDiagramObject.cpp -// Implementation of the Class TextDiagramObject -// Original author: mcmorran -/////////////////////////////////////////////////////////// - -#include "TextDiagramObject.h" - -using IEC61970::Base::DiagramLayout::TextDiagramObject; - - -TextDiagramObject::TextDiagramObject(){ - -} - - - -TextDiagramObject::~TextDiagramObject(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/DiagramLayout/TextDiagramObject.h b/IEC61970_17v07/IEC61970/Base/DiagramLayout/TextDiagramObject.h deleted file mode 100644 index 23bd52caf..000000000 --- a/IEC61970_17v07/IEC61970/Base/DiagramLayout/TextDiagramObject.h +++ /dev/null @@ -1,41 +0,0 @@ -/////////////////////////////////////////////////////////// -// TextDiagramObject.h -// Implementation of the Class TextDiagramObject -// Original author: mcmorran -/////////////////////////////////////////////////////////// - -#ifndef TEXTDIAGRAMOBJECT_H -#define TEXTDIAGRAMOBJECT_H - -#include "IEC61970/Base/Domain/String.h" -#include "IEC61970/Base/DiagramLayout/DiagramObject.h" - -namespace IEC61970 -{ - namespace Base - { - namespace DiagramLayout - { - /** - * A diagram object for placing free-text or text derived from an associated - * domain object. - */ - class TextDiagramObject : public IEC61970::Base::DiagramLayout::DiagramObject - { - - public: - TextDiagramObject(); - virtual ~TextDiagramObject(); - /** - * The text that is displayed by this text diagram object. - */ - IEC61970::Base::Domain::String text; - - }; - - } - - } - -} -#endif // TEXTDIAGRAMOBJECT_H diff --git a/IEC61970_17v07/IEC61970/Base/DiagramLayout/VisibilityLayer.cpp b/IEC61970_17v07/IEC61970/Base/DiagramLayout/VisibilityLayer.cpp deleted file mode 100644 index 3335fdaff..000000000 --- a/IEC61970_17v07/IEC61970/Base/DiagramLayout/VisibilityLayer.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// VisibilityLayer.cpp -// Implementation of the Class VisibilityLayer -// Original author: mcmorran -/////////////////////////////////////////////////////////// - -#include "VisibilityLayer.h" - -using IEC61970::Base::DiagramLayout::VisibilityLayer; - - -VisibilityLayer::VisibilityLayer(){ - -} - - - -VisibilityLayer::~VisibilityLayer(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/DiagramLayout/VisibilityLayer.h b/IEC61970_17v07/IEC61970/Base/DiagramLayout/VisibilityLayer.h deleted file mode 100644 index 8775a0afb..000000000 --- a/IEC61970_17v07/IEC61970/Base/DiagramLayout/VisibilityLayer.h +++ /dev/null @@ -1,50 +0,0 @@ -/////////////////////////////////////////////////////////// -// VisibilityLayer.h -// Implementation of the Class VisibilityLayer -// Original author: mcmorran -/////////////////////////////////////////////////////////// - -#ifndef VISIBILITYLAYER_H -#define VISIBILITYLAYER_H - -#include "IEC61970/Base/Domain/Integer.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Base - { - namespace DiagramLayout - { - /** - * Layers are typically used for grouping diagram objects according to themes and - * scales. Themes are used to display or hide certain information (e.g., lakes, - * borders), while scales are used for hiding or displaying information depending - * on the current zoom level (hide text when it is too small to be read, or when - * it exceeds the screen size). This is also called de-cluttering. - * - * CIM based graphics exchange will support an m:n relationship between diagram - * objects and layers. It will be the task of the importing system to convert an m: - * n case into an appropriate 1:n representation if the importing system does not - * support m:n. - */ - class VisibilityLayer : public IEC61970::Base::Core::IdentifiedObject - { - - public: - VisibilityLayer(); - virtual ~VisibilityLayer(); - /** - * The drawing order for this layer. The higher the number, the later the layer - * and the objects within it are rendered. - */ - IEC61970::Base::Domain::Integer drawingOrder; - - }; - - } - - } - -} -#endif // VISIBILITYLAYER_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/ActivePower.cpp b/IEC61970_17v07/IEC61970/Base/Domain/ActivePower.cpp deleted file mode 100644 index 9723a4e74..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/ActivePower.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// ActivePower.cpp -// Implementation of the Class ActivePower -/////////////////////////////////////////////////////////// - -#include "ActivePower.h" - -using IEC61970::Base::Domain::ActivePower; - - -ActivePower::ActivePower(){ - -} - - - -ActivePower::~ActivePower(){ - -} - - -const IEC61970::Base::Domain::UnitSymbol ActivePower::unit = IEC61970::Base::Domain::UnitSymbol::W; diff --git a/IEC61970_17v07/IEC61970/Base/Domain/ActivePower.h b/IEC61970_17v07/IEC61970/Base/Domain/ActivePower.h deleted file mode 100644 index 291f89902..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/ActivePower.h +++ /dev/null @@ -1,40 +0,0 @@ -/////////////////////////////////////////////////////////// -// ActivePower.h -// Implementation of the Class ActivePower -/////////////////////////////////////////////////////////// - -#ifndef ACTIVEPOWER_H -#define ACTIVEPOWER_H - -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/UnitSymbol.h" -#include "IEC61970/Base/Domain/Float.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * Product of RMS value of the voltage and the RMS value of the in-phase component - * of the current. - */ - class ActivePower - { - - public: - ActivePower(); - virtual ~ActivePower(); - IEC61970::Base::Domain::UnitMultiplier multiplier = IEC61970::Base::Domain::UnitMultiplier::_undef; - static const IEC61970::Base::Domain::UnitSymbol unit; - IEC61970::Base::Domain::Float value; - - }; - - } - - } - -} -#endif // ACTIVEPOWER_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/ActivePowerChangeRate.cpp b/IEC61970_17v07/IEC61970/Base/Domain/ActivePowerChangeRate.cpp deleted file mode 100644 index 5a1b65b16..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/ActivePowerChangeRate.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// ActivePowerChangeRate.cpp -// Implementation of the Class ActivePowerChangeRate -/////////////////////////////////////////////////////////// - -#include "ActivePowerChangeRate.h" - -using IEC61970::Base::Domain::ActivePowerChangeRate; - - -ActivePowerChangeRate::ActivePowerChangeRate(){ - -} - - - -ActivePowerChangeRate::~ActivePowerChangeRate(){ - -} - - -const IEC61970::Base::Domain::UnitSymbol ActivePowerChangeRate::unit = IEC61970::Base::Domain::UnitSymbol::WPers; diff --git a/IEC61970_17v07/IEC61970/Base/Domain/ActivePowerChangeRate.h b/IEC61970_17v07/IEC61970/Base/Domain/ActivePowerChangeRate.h deleted file mode 100644 index 0e91d4655..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/ActivePowerChangeRate.h +++ /dev/null @@ -1,39 +0,0 @@ -/////////////////////////////////////////////////////////// -// ActivePowerChangeRate.h -// Implementation of the Class ActivePowerChangeRate -/////////////////////////////////////////////////////////// - -#ifndef ACTIVEPOWERCHANGERATE_H -#define ACTIVEPOWERCHANGERATE_H - -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/UnitSymbol.h" -#include "IEC61970/Base/Domain/Float.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * Rate of change of active power per time. - */ - class ActivePowerChangeRate - { - - public: - ActivePowerChangeRate(); - virtual ~ActivePowerChangeRate(); - IEC61970::Base::Domain::UnitMultiplier multiplier = IEC61970::Base::Domain::UnitMultiplier::_undef; - static const IEC61970::Base::Domain::UnitSymbol unit; - IEC61970::Base::Domain::Float value; - - }; - - } - - } - -} -#endif // ACTIVEPOWERCHANGERATE_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/ActivePowerPerCurrentFlow.cpp b/IEC61970_17v07/IEC61970/Base/Domain/ActivePowerPerCurrentFlow.cpp deleted file mode 100644 index fb1043a0d..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/ActivePowerPerCurrentFlow.cpp +++ /dev/null @@ -1,23 +0,0 @@ -/////////////////////////////////////////////////////////// -// ActivePowerPerCurrentFlow.cpp -// Implementation of the Class ActivePowerPerCurrentFlow -// Original author: 222206 -/////////////////////////////////////////////////////////// - -#include "ActivePowerPerCurrentFlow.h" - -using IEC61970::Base::Domain::ActivePowerPerCurrentFlow; - - -ActivePowerPerCurrentFlow::ActivePowerPerCurrentFlow(){ - -} - - - -ActivePowerPerCurrentFlow::~ActivePowerPerCurrentFlow(){ - -} - - -const IEC61970::Base::Domain::UnitSymbol ActivePowerPerCurrentFlow::unit = IEC61970::Base::Domain::UnitSymbol::WPerA; diff --git a/IEC61970_17v07/IEC61970/Base/Domain/ActivePowerPerCurrentFlow.h b/IEC61970_17v07/IEC61970/Base/Domain/ActivePowerPerCurrentFlow.h deleted file mode 100644 index ebcc2a73d..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/ActivePowerPerCurrentFlow.h +++ /dev/null @@ -1,37 +0,0 @@ -/////////////////////////////////////////////////////////// -// ActivePowerPerCurrentFlow.h -// Implementation of the Class ActivePowerPerCurrentFlow -// Original author: 222206 -/////////////////////////////////////////////////////////// - -#ifndef ACTIVEPOWERPERCURRENTFLOW_H -#define ACTIVEPOWERPERCURRENTFLOW_H - -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/UnitSymbol.h" -#include "IEC61970/Base/Domain/Float.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - class ActivePowerPerCurrentFlow - { - - public: - ActivePowerPerCurrentFlow(); - virtual ~ActivePowerPerCurrentFlow(); - IEC61970::Base::Domain::UnitMultiplier multiplier = IEC61970::Base::Domain::UnitMultiplier::_undef; - static const IEC61970::Base::Domain::UnitSymbol unit; - IEC61970::Base::Domain::Float value; - - }; - - } - - } - -} -#endif // ACTIVEPOWERPERCURRENTFLOW_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/ActivePowerPerFrequency.cpp b/IEC61970_17v07/IEC61970/Base/Domain/ActivePowerPerFrequency.cpp deleted file mode 100644 index 88cdcdaf4..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/ActivePowerPerFrequency.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// ActivePowerPerFrequency.cpp -// Implementation of the Class ActivePowerPerFrequency -/////////////////////////////////////////////////////////// - -#include "ActivePowerPerFrequency.h" - -using IEC61970::Base::Domain::ActivePowerPerFrequency; - - -ActivePowerPerFrequency::ActivePowerPerFrequency(){ - -} - - - -ActivePowerPerFrequency::~ActivePowerPerFrequency(){ - -} - - -const IEC61970::Base::Domain::UnitSymbol ActivePowerPerFrequency::unit = IEC61970::Base::Domain::UnitSymbol::WPers; diff --git a/IEC61970_17v07/IEC61970/Base/Domain/ActivePowerPerFrequency.h b/IEC61970_17v07/IEC61970/Base/Domain/ActivePowerPerFrequency.h deleted file mode 100644 index 78aeec7f2..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/ActivePowerPerFrequency.h +++ /dev/null @@ -1,39 +0,0 @@ -/////////////////////////////////////////////////////////// -// ActivePowerPerFrequency.h -// Implementation of the Class ActivePowerPerFrequency -/////////////////////////////////////////////////////////// - -#ifndef ACTIVEPOWERPERFREQUENCY_H -#define ACTIVEPOWERPERFREQUENCY_H - -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/UnitSymbol.h" -#include "IEC61970/Base/Domain/Float.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * Active power variation with frequency. - */ - class ActivePowerPerFrequency - { - - public: - ActivePowerPerFrequency(); - virtual ~ActivePowerPerFrequency(); - IEC61970::Base::Domain::UnitMultiplier multiplier = IEC61970::Base::Domain::UnitMultiplier::_undef; - static const IEC61970::Base::Domain::UnitSymbol unit; - IEC61970::Base::Domain::Float value; - - }; - - } - - } - -} -#endif // ACTIVEPOWERPERFREQUENCY_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/Admittance.cpp b/IEC61970_17v07/IEC61970/Base/Domain/Admittance.cpp deleted file mode 100644 index 5b6bb6ec9..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/Admittance.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// Admittance.cpp -// Implementation of the Class Admittance -/////////////////////////////////////////////////////////// - -#include "Admittance.h" - -using IEC61970::Base::Domain::Admittance; - - -Admittance::Admittance(){ - -} - - - -Admittance::~Admittance(){ - -} - - -const IEC61970::Base::Domain::UnitSymbol Admittance::unit = IEC61970::Base::Domain::UnitSymbol::S; diff --git a/IEC61970_17v07/IEC61970/Base/Domain/Admittance.h b/IEC61970_17v07/IEC61970/Base/Domain/Admittance.h deleted file mode 100644 index ece2760ad..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/Admittance.h +++ /dev/null @@ -1,39 +0,0 @@ -/////////////////////////////////////////////////////////// -// Admittance.h -// Implementation of the Class Admittance -/////////////////////////////////////////////////////////// - -#ifndef ADMITTANCE_H -#define ADMITTANCE_H - -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/UnitSymbol.h" -#include "IEC61970/Base/Domain/Float.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * Ratio of current to voltage. - */ - class Admittance - { - - public: - Admittance(); - virtual ~Admittance(); - IEC61970::Base::Domain::UnitMultiplier multiplier = IEC61970::Base::Domain::UnitMultiplier::_undef; - static const IEC61970::Base::Domain::UnitSymbol unit; - IEC61970::Base::Domain::Float value; - - }; - - } - - } - -} -#endif // ADMITTANCE_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/AngleDegrees.cpp b/IEC61970_17v07/IEC61970/Base/Domain/AngleDegrees.cpp deleted file mode 100644 index 393b82463..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/AngleDegrees.cpp +++ /dev/null @@ -1,23 +0,0 @@ -/////////////////////////////////////////////////////////// -// AngleDegrees.cpp -// Implementation of the Class AngleDegrees -/////////////////////////////////////////////////////////// - -#include "AngleDegrees.h" - -using IEC61970::Base::Domain::AngleDegrees; - - -AngleDegrees::AngleDegrees(){ - -} - - - -AngleDegrees::~AngleDegrees(){ - -} - - -const IEC61970::Base::Domain::UnitMultiplier AngleDegrees::multiplier = IEC61970::Base::Domain::UnitMultiplier::none; -const IEC61970::Base::Domain::UnitSymbol AngleDegrees::unit = IEC61970::Base::Domain::UnitSymbol::deg; diff --git a/IEC61970_17v07/IEC61970/Base/Domain/AngleDegrees.h b/IEC61970_17v07/IEC61970/Base/Domain/AngleDegrees.h deleted file mode 100644 index 706450795..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/AngleDegrees.h +++ /dev/null @@ -1,39 +0,0 @@ -/////////////////////////////////////////////////////////// -// AngleDegrees.h -// Implementation of the Class AngleDegrees -/////////////////////////////////////////////////////////// - -#ifndef ANGLEDEGREES_H -#define ANGLEDEGREES_H - -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/UnitSymbol.h" -#include "IEC61970/Base/Domain/Float.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * Measurement of angle in degrees. - */ - class AngleDegrees - { - - public: - AngleDegrees(); - virtual ~AngleDegrees(); - static const IEC61970::Base::Domain::UnitMultiplier multiplier; - static const IEC61970::Base::Domain::UnitSymbol unit; - IEC61970::Base::Domain::Float value; - - }; - - } - - } - -} -#endif // ANGLEDEGREES_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/AngleRadians.cpp b/IEC61970_17v07/IEC61970/Base/Domain/AngleRadians.cpp deleted file mode 100644 index 9642e2e89..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/AngleRadians.cpp +++ /dev/null @@ -1,23 +0,0 @@ -/////////////////////////////////////////////////////////// -// AngleRadians.cpp -// Implementation of the Class AngleRadians -/////////////////////////////////////////////////////////// - -#include "AngleRadians.h" - -using IEC61970::Base::Domain::AngleRadians; - - -AngleRadians::AngleRadians(){ - -} - - - -AngleRadians::~AngleRadians(){ - -} - - -const IEC61970::Base::Domain::UnitMultiplier AngleRadians::multiplier = IEC61970::Base::Domain::UnitMultiplier::none; -const IEC61970::Base::Domain::UnitSymbol AngleRadians::unit = IEC61970::Base::Domain::UnitSymbol::rad; diff --git a/IEC61970_17v07/IEC61970/Base/Domain/AngleRadians.h b/IEC61970_17v07/IEC61970/Base/Domain/AngleRadians.h deleted file mode 100644 index 6390dacbc..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/AngleRadians.h +++ /dev/null @@ -1,39 +0,0 @@ -/////////////////////////////////////////////////////////// -// AngleRadians.h -// Implementation of the Class AngleRadians -/////////////////////////////////////////////////////////// - -#ifndef ANGLERADIANS_H -#define ANGLERADIANS_H - -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/UnitSymbol.h" -#include "IEC61970/Base/Domain/Float.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * Phase angle in radians. - */ - class AngleRadians - { - - public: - AngleRadians(); - virtual ~AngleRadians(); - static const IEC61970::Base::Domain::UnitMultiplier multiplier; - static const IEC61970::Base::Domain::UnitSymbol unit; - IEC61970::Base::Domain::Float value; - - }; - - } - - } - -} -#endif // ANGLERADIANS_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/ApparentPower.cpp b/IEC61970_17v07/IEC61970/Base/Domain/ApparentPower.cpp deleted file mode 100644 index e6d5bd576..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/ApparentPower.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// ApparentPower.cpp -// Implementation of the Class ApparentPower -/////////////////////////////////////////////////////////// - -#include "ApparentPower.h" - -using IEC61970::Base::Domain::ApparentPower; - - -ApparentPower::ApparentPower(){ - -} - - - -ApparentPower::~ApparentPower(){ - -} - - -const IEC61970::Base::Domain::UnitSymbol ApparentPower::unit = IEC61970::Base::Domain::UnitSymbol::VA; diff --git a/IEC61970_17v07/IEC61970/Base/Domain/ApparentPower.h b/IEC61970_17v07/IEC61970/Base/Domain/ApparentPower.h deleted file mode 100644 index 46528fa92..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/ApparentPower.h +++ /dev/null @@ -1,39 +0,0 @@ -/////////////////////////////////////////////////////////// -// ApparentPower.h -// Implementation of the Class ApparentPower -/////////////////////////////////////////////////////////// - -#ifndef APPARENTPOWER_H -#define APPARENTPOWER_H - -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/UnitSymbol.h" -#include "IEC61970/Base/Domain/Float.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * Product of the RMS value of the voltage and the RMS value of the current. - */ - class ApparentPower - { - - public: - ApparentPower(); - virtual ~ApparentPower(); - IEC61970::Base::Domain::UnitMultiplier multiplier = IEC61970::Base::Domain::UnitMultiplier::_undef; - static const IEC61970::Base::Domain::UnitSymbol unit; - IEC61970::Base::Domain::Float value; - - }; - - } - - } - -} -#endif // APPARENTPOWER_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/Area.cpp b/IEC61970_17v07/IEC61970/Base/Domain/Area.cpp deleted file mode 100644 index 1ab2a7485..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/Area.cpp +++ /dev/null @@ -1,23 +0,0 @@ -/////////////////////////////////////////////////////////// -// Area.cpp -// Implementation of the Class Area -// Original author: SELAOST1 -/////////////////////////////////////////////////////////// - -#include "Area.h" - -using IEC61970::Base::Domain::Area; - - -Area::Area(){ - -} - - - -Area::~Area(){ - -} - - -const IEC61970::Base::Domain::UnitSymbol Area::unit = IEC61970::Base::Domain::UnitSymbol::m2; diff --git a/IEC61970_17v07/IEC61970/Base/Domain/Area.h b/IEC61970_17v07/IEC61970/Base/Domain/Area.h deleted file mode 100644 index a697c5e13..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/Area.h +++ /dev/null @@ -1,40 +0,0 @@ -/////////////////////////////////////////////////////////// -// Area.h -// Implementation of the Class Area -// Original author: SELAOST1 -/////////////////////////////////////////////////////////// - -#ifndef AREA_H -#define AREA_H - -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/UnitSymbol.h" -#include "IEC61970/Base/Domain/Float.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * Area. - */ - class Area - { - - public: - Area(); - virtual ~Area(); - IEC61970::Base::Domain::UnitMultiplier multiplier = IEC61970::Base::Domain::UnitMultiplier::_undef; - static const IEC61970::Base::Domain::UnitSymbol unit; - IEC61970::Base::Domain::Float value; - - }; - - } - - } - -} -#endif // AREA_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/Boolean.cpp b/IEC61970_17v07/IEC61970/Base/Domain/Boolean.cpp deleted file mode 100644 index 46b0ab18f..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/Boolean.cpp +++ /dev/null @@ -1,74 +0,0 @@ -#include "Boolean.h" -#include "../../../../src/CIMExceptions.hpp" - -using IEC61970::Base::Domain::Boolean; - - -Boolean::Boolean(){ - -} - - - -Boolean::~Boolean(){ - -} - - - -Boolean::Boolean(bool value) - : value(value), initialized(true) -{ -} - - - -Boolean& Boolean::operator=(bool &rop) -{ - value = rop; - initialized = true; - return *this; -} - - - -Boolean::operator bool() -{ - if(!initialized) - { - throw new ReadingUninitializedField(); - } - return value; -} - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - std::istream& operator>>(std::istream& lop, Boolean& rop) - { - std::string tmp; - lop >> tmp; - if(tmp == "true" || tmp == "True" || tmp == "TRUE") - { - rop.value = true; - rop.initialized = true; - return lop; - } - if(tmp == "false" || tmp == "False" || tmp == "FALSE") - { - rop.value = false; - rop.initialized = true; - return lop; - } - else - { - lop.setstate(std::ios::failbit); - return lop; - } - } - } - } -} diff --git a/IEC61970_17v07/IEC61970/Base/Domain/Boolean.h b/IEC61970_17v07/IEC61970/Base/Domain/Boolean.h deleted file mode 100644 index faae37cde..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/Boolean.h +++ /dev/null @@ -1,39 +0,0 @@ -#ifndef BOOLEAN_H -#define BOOLEAN_H - -#include -#include -#include - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * A type with the value space "true" and "false". - */ - class Boolean - { - - public: - Boolean(); - virtual ~Boolean(); - - Boolean(bool value); - Boolean& operator=(bool &rop); - friend std::istream& operator>>(std::istream& lop, Boolean& rop); - operator bool(); - - bool value = false; - bool initialized = false; - - }; - - } - - } - -} -#endif // BOOLEAN_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/Capacitance.cpp b/IEC61970_17v07/IEC61970/Base/Domain/Capacitance.cpp deleted file mode 100644 index 74c17b4cd..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/Capacitance.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// Capacitance.cpp -// Implementation of the Class Capacitance -/////////////////////////////////////////////////////////// - -#include "Capacitance.h" - -using IEC61970::Base::Domain::Capacitance; - - -Capacitance::Capacitance(){ - -} - - - -Capacitance::~Capacitance(){ - -} - - -const IEC61970::Base::Domain::UnitSymbol Capacitance::unit = IEC61970::Base::Domain::UnitSymbol::F; diff --git a/IEC61970_17v07/IEC61970/Base/Domain/Capacitance.h b/IEC61970_17v07/IEC61970/Base/Domain/Capacitance.h deleted file mode 100644 index 830eb3e0b..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/Capacitance.h +++ /dev/null @@ -1,39 +0,0 @@ -/////////////////////////////////////////////////////////// -// Capacitance.h -// Implementation of the Class Capacitance -/////////////////////////////////////////////////////////// - -#ifndef CAPACITANCE_H -#define CAPACITANCE_H - -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/UnitSymbol.h" -#include "IEC61970/Base/Domain/Float.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * Capacitive part of reactance (imaginary part of impedance), at rated frequency. - */ - class Capacitance - { - - public: - Capacitance(); - virtual ~Capacitance(); - IEC61970::Base::Domain::UnitMultiplier multiplier = IEC61970::Base::Domain::UnitMultiplier::_undef; - static const IEC61970::Base::Domain::UnitSymbol unit; - IEC61970::Base::Domain::Float value; - - }; - - } - - } - -} -#endif // CAPACITANCE_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/CapacitancePerLength.cpp b/IEC61970_17v07/IEC61970/Base/Domain/CapacitancePerLength.cpp deleted file mode 100644 index 2453d33e0..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/CapacitancePerLength.cpp +++ /dev/null @@ -1,24 +0,0 @@ -/////////////////////////////////////////////////////////// -// CapacitancePerLength.cpp -// Implementation of the Class CapacitancePerLength -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#include "CapacitancePerLength.h" - -using IEC61970::Base::Domain::CapacitancePerLength; - - -CapacitancePerLength::CapacitancePerLength(){ - -} - - - -CapacitancePerLength::~CapacitancePerLength(){ - -} - - -const IEC61970::Base::Domain::UnitMultiplier CapacitancePerLength::multiplier = IEC61970::Base::Domain::UnitMultiplier::none; -const IEC61970::Base::Domain::UnitSymbol CapacitancePerLength::unit = IEC61970::Base::Domain::UnitSymbol::F; diff --git a/IEC61970_17v07/IEC61970/Base/Domain/CapacitancePerLength.h b/IEC61970_17v07/IEC61970/Base/Domain/CapacitancePerLength.h deleted file mode 100644 index 019e20332..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/CapacitancePerLength.h +++ /dev/null @@ -1,40 +0,0 @@ -/////////////////////////////////////////////////////////// -// CapacitancePerLength.h -// Implementation of the Class CapacitancePerLength -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#ifndef CAPACITANCEPERLENGTH_H -#define CAPACITANCEPERLENGTH_H - -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/UnitSymbol.h" -#include "IEC61970/Base/Domain/Float.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * Capacitance per unit of length. - */ - class CapacitancePerLength - { - - public: - CapacitancePerLength(); - virtual ~CapacitancePerLength(); - static const IEC61970::Base::Domain::UnitMultiplier multiplier; - static const IEC61970::Base::Domain::UnitSymbol unit; - IEC61970::Base::Domain::Float value; - - }; - - } - - } - -} -#endif // CAPACITANCEPERLENGTH_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/Conductance.cpp b/IEC61970_17v07/IEC61970/Base/Domain/Conductance.cpp deleted file mode 100644 index 72068d6ca..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/Conductance.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// Conductance.cpp -// Implementation of the Class Conductance -/////////////////////////////////////////////////////////// - -#include "Conductance.h" - -using IEC61970::Base::Domain::Conductance; - - -Conductance::Conductance(){ - -} - - - -Conductance::~Conductance(){ - -} - - -const IEC61970::Base::Domain::UnitSymbol Conductance::unit = IEC61970::Base::Domain::UnitSymbol::S; diff --git a/IEC61970_17v07/IEC61970/Base/Domain/Conductance.h b/IEC61970_17v07/IEC61970/Base/Domain/Conductance.h deleted file mode 100644 index 64979a4c7..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/Conductance.h +++ /dev/null @@ -1,40 +0,0 @@ -/////////////////////////////////////////////////////////// -// Conductance.h -// Implementation of the Class Conductance -/////////////////////////////////////////////////////////// - -#ifndef CONDUCTANCE_H -#define CONDUCTANCE_H - -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/UnitSymbol.h" -#include "IEC61970/Base/Domain/Float.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * Factor by which voltage must be multiplied to give corresponding power lost - * from a circuit. Real part of admittance. - */ - class Conductance - { - - public: - Conductance(); - virtual ~Conductance(); - IEC61970::Base::Domain::UnitMultiplier multiplier = IEC61970::Base::Domain::UnitMultiplier::_undef; - static const IEC61970::Base::Domain::UnitSymbol unit; - IEC61970::Base::Domain::Float value; - - }; - - } - - } - -} -#endif // CONDUCTANCE_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/ConductancePerLength.cpp b/IEC61970_17v07/IEC61970/Base/Domain/ConductancePerLength.cpp deleted file mode 100644 index 4e4427470..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/ConductancePerLength.cpp +++ /dev/null @@ -1,24 +0,0 @@ -/////////////////////////////////////////////////////////// -// ConductancePerLength.cpp -// Implementation of the Class ConductancePerLength -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#include "ConductancePerLength.h" - -using IEC61970::Base::Domain::ConductancePerLength; - - -ConductancePerLength::ConductancePerLength(){ - -} - - - -ConductancePerLength::~ConductancePerLength(){ - -} - - -const IEC61970::Base::Domain::UnitMultiplier ConductancePerLength::multiplier = IEC61970::Base::Domain::UnitMultiplier::none; -const IEC61970::Base::Domain::UnitSymbol ConductancePerLength::unit = IEC61970::Base::Domain::UnitSymbol::SPerm; diff --git a/IEC61970_17v07/IEC61970/Base/Domain/ConductancePerLength.h b/IEC61970_17v07/IEC61970/Base/Domain/ConductancePerLength.h deleted file mode 100644 index 829de2d52..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/ConductancePerLength.h +++ /dev/null @@ -1,40 +0,0 @@ -/////////////////////////////////////////////////////////// -// ConductancePerLength.h -// Implementation of the Class ConductancePerLength -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#ifndef CONDUCTANCEPERLENGTH_H -#define CONDUCTANCEPERLENGTH_H - -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/UnitSymbol.h" -#include "IEC61970/Base/Domain/Float.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * Real part of admittance per unit of length. - */ - class ConductancePerLength - { - - public: - ConductancePerLength(); - virtual ~ConductancePerLength(); - static const IEC61970::Base::Domain::UnitMultiplier multiplier; - static const IEC61970::Base::Domain::UnitSymbol unit; - IEC61970::Base::Domain::Float value; - - }; - - } - - } - -} -#endif // CONDUCTANCEPERLENGTH_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/CostPerEnergyUnit.cpp b/IEC61970_17v07/IEC61970/Base/Domain/CostPerEnergyUnit.cpp deleted file mode 100644 index 184ec4c55..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/CostPerEnergyUnit.cpp +++ /dev/null @@ -1,23 +0,0 @@ -/////////////////////////////////////////////////////////// -// CostPerEnergyUnit.cpp -// Implementation of the Class CostPerEnergyUnit -/////////////////////////////////////////////////////////// - -#include "CostPerEnergyUnit.h" - -using IEC61970::Base::Domain::CostPerEnergyUnit; - - -CostPerEnergyUnit::CostPerEnergyUnit(){ - -} - - - -CostPerEnergyUnit::~CostPerEnergyUnit(){ - -} - - -const IEC61970::Base::Domain::UnitMultiplier CostPerEnergyUnit::denominatorMultiplier = IEC61970::Base::Domain::UnitMultiplier::none; -const IEC61970::Base::Domain::UnitSymbol CostPerEnergyUnit::denominatorUnit = IEC61970::Base::Domain::UnitSymbol::Wh; diff --git a/IEC61970_17v07/IEC61970/Base/Domain/CostPerEnergyUnit.h b/IEC61970_17v07/IEC61970/Base/Domain/CostPerEnergyUnit.h deleted file mode 100644 index 43255e797..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/CostPerEnergyUnit.h +++ /dev/null @@ -1,42 +0,0 @@ -/////////////////////////////////////////////////////////// -// CostPerEnergyUnit.h -// Implementation of the Class CostPerEnergyUnit -/////////////////////////////////////////////////////////// - -#ifndef COSTPERENERGYUNIT_H -#define COSTPERENERGYUNIT_H - -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/UnitSymbol.h" -#include "IEC61970/Base/Domain/Currency.h" -#include "IEC61970/Base/Domain/Float.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * Cost, in units of currency, per quantity of electrical energy generated. - */ - class CostPerEnergyUnit - { - - public: - CostPerEnergyUnit(); - virtual ~CostPerEnergyUnit(); - static const IEC61970::Base::Domain::UnitMultiplier denominatorMultiplier; - static const IEC61970::Base::Domain::UnitSymbol denominatorUnit; - IEC61970::Base::Domain::UnitMultiplier multiplier = IEC61970::Base::Domain::UnitMultiplier::_undef; - IEC61970::Base::Domain::Currency unit = IEC61970::Base::Domain::Currency::_undef; - IEC61970::Base::Domain::Float value; - - }; - - } - - } - -} -#endif // COSTPERENERGYUNIT_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/CostPerVolume.cpp b/IEC61970_17v07/IEC61970/Base/Domain/CostPerVolume.cpp deleted file mode 100644 index 0b468c24a..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/CostPerVolume.cpp +++ /dev/null @@ -1,24 +0,0 @@ -/////////////////////////////////////////////////////////// -// CostPerVolume.cpp -// Implementation of the Class CostPerVolume -// Original author: SELAOST1 -/////////////////////////////////////////////////////////// - -#include "CostPerVolume.h" - -using IEC61970::Base::Domain::CostPerVolume; - - -CostPerVolume::CostPerVolume(){ - -} - - - -CostPerVolume::~CostPerVolume(){ - -} - - -const IEC61970::Base::Domain::UnitMultiplier CostPerVolume::denominatorMultiplier = IEC61970::Base::Domain::UnitMultiplier::none; -const IEC61970::Base::Domain::UnitSymbol CostPerVolume::denominatorUnit = IEC61970::Base::Domain::UnitSymbol::m3; diff --git a/IEC61970_17v07/IEC61970/Base/Domain/CostPerVolume.h b/IEC61970_17v07/IEC61970/Base/Domain/CostPerVolume.h deleted file mode 100644 index a5c0d9447..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/CostPerVolume.h +++ /dev/null @@ -1,43 +0,0 @@ -/////////////////////////////////////////////////////////// -// CostPerVolume.h -// Implementation of the Class CostPerVolume -// Original author: SELAOST1 -/////////////////////////////////////////////////////////// - -#ifndef COSTPERVOLUME_H -#define COSTPERVOLUME_H - -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/UnitSymbol.h" -#include "IEC61970/Base/Domain/Currency.h" -#include "IEC61970/Base/Domain/Float.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * Cost per unit volume. - */ - class CostPerVolume - { - - public: - CostPerVolume(); - virtual ~CostPerVolume(); - static const IEC61970::Base::Domain::UnitMultiplier denominatorMultiplier; - static const IEC61970::Base::Domain::UnitSymbol denominatorUnit; - IEC61970::Base::Domain::UnitMultiplier multiplier = IEC61970::Base::Domain::UnitMultiplier::_undef; - IEC61970::Base::Domain::Currency unit = IEC61970::Base::Domain::Currency::_undef; - IEC61970::Base::Domain::Float value; - - }; - - } - - } - -} -#endif // COSTPERVOLUME_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/CostRate.cpp b/IEC61970_17v07/IEC61970/Base/Domain/CostRate.cpp deleted file mode 100644 index 1677bb5f4..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/CostRate.cpp +++ /dev/null @@ -1,23 +0,0 @@ -/////////////////////////////////////////////////////////// -// CostRate.cpp -// Implementation of the Class CostRate -/////////////////////////////////////////////////////////// - -#include "CostRate.h" - -using IEC61970::Base::Domain::CostRate; - - -CostRate::CostRate(){ - -} - - - -CostRate::~CostRate(){ - -} - - -const IEC61970::Base::Domain::UnitMultiplier CostRate::denominatorMultiplier = IEC61970::Base::Domain::UnitMultiplier::none; -const IEC61970::Base::Domain::UnitSymbol CostRate::denominatorUnit = IEC61970::Base::Domain::UnitSymbol::s; diff --git a/IEC61970_17v07/IEC61970/Base/Domain/CostRate.h b/IEC61970_17v07/IEC61970/Base/Domain/CostRate.h deleted file mode 100644 index bc24b843f..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/CostRate.h +++ /dev/null @@ -1,42 +0,0 @@ -/////////////////////////////////////////////////////////// -// CostRate.h -// Implementation of the Class CostRate -/////////////////////////////////////////////////////////// - -#ifndef COSTRATE_H -#define COSTRATE_H - -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/UnitSymbol.h" -#include "IEC61970/Base/Domain/Currency.h" -#include "IEC61970/Base/Domain/Float.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * Cost, in units of currency, per elapsed time. - */ - class CostRate - { - - public: - CostRate(); - virtual ~CostRate(); - static const IEC61970::Base::Domain::UnitMultiplier denominatorMultiplier; - static const IEC61970::Base::Domain::UnitSymbol denominatorUnit; - IEC61970::Base::Domain::UnitMultiplier multiplier = IEC61970::Base::Domain::UnitMultiplier::_undef; - IEC61970::Base::Domain::Currency unit = IEC61970::Base::Domain::Currency::_undef; - IEC61970::Base::Domain::Float value; - - }; - - } - - } - -} -#endif // COSTRATE_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/Currency.h b/IEC61970_17v07/IEC61970/Base/Domain/Currency.h deleted file mode 100644 index 28718c878..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/Currency.h +++ /dev/null @@ -1,671 +0,0 @@ -/////////////////////////////////////////////////////////// -// Currency.h -// Implementation of the Class Currency -/////////////////////////////////////////////////////////// - -#ifndef CURRENCY_H -#define CURRENCY_H - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * Monetary currencies. ISO 4217 standard including 3-character currency code. - */ - enum class Currency - { - /** - * United Arab Emirates dirham. - */ - _undef = -1, AED = 784, - /** - * Afghan afghani. - */ - AFN = 971, - /** - * Albanian lek. - */ - ALL = 8, - /** - * Armenian dram. - */ - AMD = 51, - /** - * Netherlands Antillean guilder. - */ - ANG = 532, - /** - * Angolan kwanza. - */ - AOA = 973, - /** - * Argentine peso. - */ - ARS = 32, - /** - * Australian dollar. - */ - AUD = 36, - /** - * Aruban florin. - */ - AWG = 533, - /** - * Azerbaijani manat. - */ - AZN = 944, - /** - * Bosnia and Herzegovina convertible mark. - */ - BAM = 977, - /** - * Barbados dollar. - */ - BBD = 52, - /** - * Bangladeshi taka. - */ - BDT = 50, - /** - * Bulgarian lev. - */ - BGN = 975, - /** - * Bahraini dinar. - */ - BHD = 48, - /** - * Burundian franc. - */ - BIF = 108, - /** - * Bermudian dollar (customarily known as Bermuda dollar). - */ - BMD = 60, - /** - * Brunei dollar. - */ - BND = 96, - /** - * Boliviano. - */ - BOB = 68, - /** - * Bolivian Mvdol (funds code). - */ - BOV = 984, - /** - * Brazilian real. - */ - BRL = 986, - /** - * Bahamian dollar. - */ - BSD = 44, - /** - * Bhutanese ngultrum. - */ - BTN = 64, - /** - * Botswana pula. - */ - BWP = 72, - /** - * Belarusian ruble. - */ - BYR = 974, - /** - * Belize dollar. - */ - BZD = 84, - /** - * Canadian dollar - */ - CAD = 124, - /** - * Congolese franc. - */ - CDF = 976, - /** - * Swiss franc. - */ - CHF = 756, - /** - * Unidad de Fomento (funds code), Chile. - */ - CLF = 990, - /** - * Chilean peso. - */ - CLP = 152, - /** - * Chinese yuan. - */ - CNY = 156, - /** - * Colombian peso. - */ - COP = 170, - /** - * Unidad de Valor Real. - */ - COU = 970, - /** - * Costa Rican colon. - */ - CRC = 188, - /** - * Cuban convertible peso. - */ - CUC = 931, - /** - * Cuban peso. - */ - CUP = 192, - /** - * Cape Verde escudo. - */ - CVE = 132, - /** - * Czech koruna. - */ - CZK = 203, - /** - * Djiboutian franc. - */ - DJF = 262, - /** - * Danish krone. - */ - DKK = 208, - /** - * Dominican peso. - */ - DOP = 214, - /** - * Algerian dinar. - */ - DZD = 12, - /** - * Estonian kroon. - */ - EEK = 233, - /** - * Egyptian pound. - */ - EGP = 818, - /** - * Eritrean nakfa. - */ - ERN = 232, - /** - * Ethiopian birr. - */ - ETB = 230, - /** - * Euro. - */ - EUR = 978, - /** - * Fiji dollar. - */ - FJD = 242, - /** - * Falkland Islands pound. - */ - FKP = 238, - /** - * Pound sterling. - */ - GBP = 826, - /** - * Georgian lari. - */ - GEL = 981, - /** - * Ghanaian cedi. - */ - GHS = 936, - /** - * Gibraltar pound. - */ - GIP = 929, - /** - * Gambian dalasi. - */ - GMD = 270, - /** - * Guinean franc. - */ - GNF = 324, - /** - * Guatemalan quetzal. - */ - GTQ = 320, - /** - * Guyanese dollar. - */ - GYD = 328, - /** - * Hong Kong dollar. - */ - HKD = 344, - /** - * Honduran lempira. - */ - HNL = 340, - /** - * Croatian kuna. - */ - HRK = 191, - /** - * Haitian gourde. - */ - HTG = 332, - /** - * Hungarian forint. - */ - HUF = 348, - /** - * Indonesian rupiah. - */ - IDR = 360, - /** - * Israeli new sheqel. - */ - ILS = 376, - /** - * Indian rupee. - */ - INR = 356, - /** - * Iraqi dinar. - */ - IQD = 368, - /** - * Iranian rial. - */ - IRR = 364, - /** - * Icelandic króna. - */ - ISK = 352, - /** - * Jamaican dollar. - */ - JMD = 388, - /** - * Jordanian dinar. - */ - JOD = 400, - /** - * Japanese yen. - */ - JPY = 392, - /** - * Kenyan shilling. - */ - KES = 404, - /** - * Kyrgyzstani som. - */ - KGS = 417, - /** - * Cambodian riel. - */ - KHR = 116, - /** - * Comoro franc. - */ - KMF = 174, - /** - * North Korean won. - */ - KPW = 408, - /** - * South Korean won. - */ - KRW = 410, - /** - * Kuwaiti dinar. - */ - KWD = 414, - /** - * Cayman Islands dollar. - */ - KYD = 136, - /** - * Kazakhstani tenge. - */ - KZT = 398, - /** - * Lao kip. - */ - LAK = 418, - /** - * Lebanese pound. - */ - LBP = 422, - /** - * Sri Lanka rupee. - */ - LKR = 144, - /** - * Liberian dollar. - */ - LRD = 430, - /** - * Lesotho loti. - */ - LSL = 426, - /** - * Lithuanian litas. - */ - LTL = 440, - /** - * Latvian lats. - */ - LVL = 428, - /** - * Libyan dinar. - */ - LYD = 434, - /** - * Moroccan dirham. - */ - MAD = 504, - /** - * Moldovan leu. - */ - MDL = 498, - /** - * Malagasy ariary. - */ - MGA = 969, - /** - * Macedonian denar. - */ - MKD = 807, - /** - * Myanma kyat. - */ - MMK = 104, - /** - * Mongolian tugrik. - */ - MNT = 496, - /** - * Macanese pataca. - */ - MOP = 446, - /** - * Mauritanian ouguiya. - */ - MRO = 478, - /** - * Mauritian rupee. - */ - MUR = 480, - /** - * Maldivian rufiyaa. - */ - MVR = 462, - /** - * Malawian kwacha. - */ - MWK = 454, - /** - * Mexican peso. - */ - MXN = 484, - /** - * Malaysian ringgit. - */ - MYR = 458, - /** - * Mozambican metical. - */ - MZN = 943, - /** - * Namibian dollar. - */ - NAD = 516, - /** - * Nigerian naira. - */ - NGN = 566, - /** - * Cordoba oro. - */ - NIO = 558, - /** - * Norwegian krone. - */ - NOK = 578, - /** - * Nepalese rupee. - */ - NPR = 524, - /** - * New Zealand dollar. - */ - NZD = 554, - /** - * Omani rial. - */ - OMR = 512, - /** - * Panamanian balboa. - */ - PAB = 590, - /** - * Peruvian nuevo sol. - */ - PEN = 604, - /** - * Papua New Guinean kina. - */ - PGK = 598, - /** - * Philippine peso. - */ - PHP = 608, - /** - * Pakistani rupee. - */ - PKR = 586, - /** - * Polish zloty. - */ - PLN = 985, - /** - * Paraguayan guaraní. - */ - PYG = 600, - /** - * Qatari rial. - */ - QAR = 634, - /** - * Romanian new leu. - */ - RON = 946, - /** - * Serbian dinar. - */ - RSD = 941, - /** - * Russian rouble. - */ - RUB = 643, - /** - * Rwandan franc. - */ - RWF = 646, - /** - * Saudi riyal. - */ - SAR = 682, - /** - * Solomon Islands dollar. - */ - SBD = 90, - /** - * Seychelles rupee. - */ - SCR = 690, - /** - * Sudanese pound. - */ - SDG = 938, - /** - * Swedish krona/kronor. - */ - SEK = 752, - /** - * Singapore dollar. - */ - SGD = 702, - /** - * Saint Helena pound. - */ - SHP = 654, - /** - * Sierra Leonean leone. - */ - SLL = 694, - /** - * Somali shilling. - */ - SOS = 706, - /** - * Surinamese dollar. - */ - SRD = 968, - /** - * São Tomé and Príncipe dobra. - */ - STD = 678, - /** - * Syrian pound. - */ - SYP = 760, - /** - * Lilangeni. - */ - SZL = 748, - /** - * Thai baht. - */ - THB = 764, - /** - * Tajikistani somoni. - */ - TJS = 972, - /** - * Turkmenistani manat. - */ - TMT = 934, - /** - * Tunisian dinar. - */ - TND = 788, - /** - * Tongan pa?anga. - */ - TOP = 776, - /** - * Turkish lira. - */ - TRY = 949, - /** - * Trinidad and Tobago dollar. - */ - TTD = 780, - /** - * New Taiwan dollar. - */ - TWD = 901, - /** - * Tanzanian shilling. - */ - TZS = 834, - /** - * Ukrainian hryvnia. - */ - UAH = 980, - /** - * Ugandan shilling. - */ - UGX = 800, - /** - * United States dollar. - */ - USD = 840, - /** - * Uruguayan peso. - */ - UYU = 858, - /** - * Uzbekistan som. - */ - UZS = 860, - /** - * Venezuelan bolívar fuerte. - */ - VEF = 937, - /** - * Vietnamese Dong. - */ - VND = 704, - /** - * Vanuatu vatu. - */ - VUV = 548, - /** - * Samoan tala. - */ - WST = 882, - /** - * CFA franc BEAC. - */ - XAF = 950, - /** - * East Caribbean dollar. - */ - XCD = 951, - /** - * CFA Franc BCEAO. - */ - XOF = 952, - /** - * CFP franc. - */ - XPF = 953, - /** - * Yemeni rial. - */ - YER = 886, - /** - * South African rand. - */ - ZAR = 710, - /** - * Zambian kwacha. - */ - ZMK = 894, - /** - * Zimbabwe dollar. - */ - ZWL = 932 - }; - - } - - } - -} -#endif // CURRENCY_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/CurrentFlow.cpp b/IEC61970_17v07/IEC61970/Base/Domain/CurrentFlow.cpp deleted file mode 100644 index d1147620f..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/CurrentFlow.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// CurrentFlow.cpp -// Implementation of the Class CurrentFlow -/////////////////////////////////////////////////////////// - -#include "CurrentFlow.h" - -using IEC61970::Base::Domain::CurrentFlow; - - -CurrentFlow::CurrentFlow(){ - -} - - - -CurrentFlow::~CurrentFlow(){ - -} - - -const IEC61970::Base::Domain::UnitSymbol CurrentFlow::unit = IEC61970::Base::Domain::UnitSymbol::A; diff --git a/IEC61970_17v07/IEC61970/Base/Domain/CurrentFlow.h b/IEC61970_17v07/IEC61970/Base/Domain/CurrentFlow.h deleted file mode 100644 index 5b7282b7e..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/CurrentFlow.h +++ /dev/null @@ -1,40 +0,0 @@ -/////////////////////////////////////////////////////////// -// CurrentFlow.h -// Implementation of the Class CurrentFlow -/////////////////////////////////////////////////////////// - -#ifndef CURRENTFLOW_H -#define CURRENTFLOW_H - -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/UnitSymbol.h" -#include "IEC61970/Base/Domain/Float.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * Electrical current with sign convention: positive flow is out of the conducting - * equipment into the connectivity node. Can be both AC and DC. - */ - class CurrentFlow - { - - public: - CurrentFlow(); - virtual ~CurrentFlow(); - IEC61970::Base::Domain::UnitMultiplier multiplier = IEC61970::Base::Domain::UnitMultiplier::_undef; - static const IEC61970::Base::Domain::UnitSymbol unit; - IEC61970::Base::Domain::Float value; - - }; - - } - - } - -} -#endif // CURRENTFLOW_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/Damping.cpp b/IEC61970_17v07/IEC61970/Base/Domain/Damping.cpp deleted file mode 100644 index ff7073d5f..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/Damping.cpp +++ /dev/null @@ -1,23 +0,0 @@ -/////////////////////////////////////////////////////////// -// Damping.cpp -// Implementation of the Class Damping -/////////////////////////////////////////////////////////// - -#include "Damping.h" - -using IEC61970::Base::Domain::Damping; - - -Damping::Damping(){ - -} - - - -Damping::~Damping(){ - -} - - -const IEC61970::Base::Domain::UnitMultiplier Damping::multiplier = IEC61970::Base::Domain::UnitMultiplier::none; -const IEC61970::Base::Domain::UnitSymbol Damping::unit = IEC61970::Base::Domain::UnitSymbol::onePerHz; diff --git a/IEC61970_17v07/IEC61970/Base/Domain/Damping.h b/IEC61970_17v07/IEC61970/Base/Domain/Damping.h deleted file mode 100644 index 5b2646f35..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/Damping.h +++ /dev/null @@ -1,40 +0,0 @@ -/////////////////////////////////////////////////////////// -// Damping.h -// Implementation of the Class Damping -/////////////////////////////////////////////////////////// - -#ifndef DAMPING_H -#define DAMPING_H - -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/UnitSymbol.h" -#include "IEC61970/Base/Domain/Float.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * Per-unit active power variation with frequency referenced on the system - * apparent power base. Typical values are in range 1.0 - 2.0. - */ - class Damping - { - - public: - Damping(); - virtual ~Damping(); - static const IEC61970::Base::Domain::UnitMultiplier multiplier; - static const IEC61970::Base::Domain::UnitSymbol unit; - IEC61970::Base::Domain::Float value; - - }; - - } - - } - -} -#endif // DAMPING_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/Date.cpp b/IEC61970_17v07/IEC61970/Base/Domain/Date.cpp deleted file mode 100644 index a7ccc32a0..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/Date.cpp +++ /dev/null @@ -1,63 +0,0 @@ -#include "Date.h" -#include "../../../../src/CIMExceptions.hpp" - -using IEC61970::Base::Domain::Date; - - -Date::Date(){ - -} - - - -Date::~Date(){ - -} - - - -Date::Date(IEC61970::Base::Domain::String value) - : value(value), initialized(true) -{ -} - - - -Date& Date::operator=(IEC61970::Base::Domain::String &rop) -{ - value = rop; - initialized = true; - return *this; -} - - - -Date::operator IEC61970::Base::Domain::String() -{ - if(!initialized) - { - throw new ReadingUninitializedField(); - } - return value; -} - - - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - std::istream& operator>>(std::istream& lop, Date& rop) - { - std::string tmp; - lop >> tmp; - - rop.value = tmp; - rop.initialized = true; - return lop; - } - } - } -} diff --git a/IEC61970_17v07/IEC61970/Base/Domain/Date.h b/IEC61970_17v07/IEC61970/Base/Domain/Date.h deleted file mode 100644 index 719c65937..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/Date.h +++ /dev/null @@ -1,43 +0,0 @@ -#ifndef DATE_H -#define DATE_H - -#include "IEC61970/Base/Domain/String.h" -#include -#include -#include - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * Date as "yyyy-mm-dd", which conforms with ISO 8601. UTC time zone is specified - * as "yyyy-mm-ddZ". A local timezone relative UTC is specified as "yyyy-mm-dd(+/- - * )hh:mm". - */ - class Date - { - - public: - Date(); - virtual ~Date(); - - Date(IEC61970::Base::Domain::String value); - Date& operator=(IEC61970::Base::Domain::String &rop); - friend std::istream& operator>>(std::istream& lop, Date& rop); - operator IEC61970::Base::Domain::String(); - - - - IEC61970::Base::Domain::String value; - bool initialized = false; - }; - - } - - } - -} -#endif // DATE_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/DateInterval.cpp b/IEC61970_17v07/IEC61970/Base/Domain/DateInterval.cpp deleted file mode 100644 index 16b65c65f..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/DateInterval.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// DateInterval.cpp -// Implementation of the Class DateInterval -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#include "DateInterval.h" - -using IEC61970::Base::Domain::DateInterval; - - -DateInterval::DateInterval(){ - -} - - - -DateInterval::~DateInterval(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Domain/DateInterval.h b/IEC61970_17v07/IEC61970/Base/Domain/DateInterval.h deleted file mode 100644 index 5a4fe1766..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/DateInterval.h +++ /dev/null @@ -1,44 +0,0 @@ -/////////////////////////////////////////////////////////// -// DateInterval.h -// Implementation of the Class DateInterval -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#ifndef DATEINTERVAL_H -#define DATEINTERVAL_H - -#include "BaseClass.h" -#include "IEC61970/Base/Domain/Date.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * Interval between two dates. - */ - class DateInterval : public BaseClass - { - - public: - DateInterval(); - virtual ~DateInterval(); - /** - * End date of this interval. - */ - IEC61970::Base::Domain::Date end; - /** - * Start date of this interval. - */ - IEC61970::Base::Domain::Date start; - - }; - - } - - } - -} -#endif // DATEINTERVAL_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/DateTime.cpp b/IEC61970_17v07/IEC61970/Base/Domain/DateTime.cpp deleted file mode 100644 index 35efe3074..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/DateTime.cpp +++ /dev/null @@ -1,63 +0,0 @@ -#include "DateTime.h" -#include "../../../../src/CIMExceptions.hpp" - -using IEC61970::Base::Domain::DateTime; - - -DateTime::DateTime(){ - -} - - - -DateTime::~DateTime(){ - -} - - - -DateTime::DateTime(IEC61970::Base::Domain::String value) - : value(value), initialized(true) -{ -} - - - -DateTime& DateTime::operator=(IEC61970::Base::Domain::String &rop) -{ - value = rop; - initialized = true; - return *this; -} - - - -DateTime::operator IEC61970::Base::Domain::String() -{ - if(!initialized) - { - throw new ReadingUninitializedField(); - } - return value; -} - - - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - std::istream& operator>>(std::istream& lop, DateTime& rop) - { - std::string tmp; - lop >> tmp; - - rop.value = tmp; - rop.initialized = true; - return lop; - } - } - } -} diff --git a/IEC61970_17v07/IEC61970/Base/Domain/DateTime.h b/IEC61970_17v07/IEC61970/Base/Domain/DateTime.h deleted file mode 100644 index bf7846b97..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/DateTime.h +++ /dev/null @@ -1,45 +0,0 @@ -#ifndef DATETIME_H -#define DATETIME_H - -#include "IEC61970/Base/Domain/String.h" -#include -#include -#include - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * Date and time as "yyyy-mm-ddThh:mm:ss.sss", which conforms with ISO 8601. UTC - * time zone is specified as "yyyy-mm-ddThh:mm:ss.sssZ". A local timezone relative - * UTC is specified as "yyyy-mm-ddThh:mm:ss.sss-hh:mm". The second component - * (shown here as "ss.sss") could have any number of digits in its fractional part - * to allow any kind of precision beyond seconds. - */ - class DateTime - { - - public: - DateTime(); - virtual ~DateTime(); - - DateTime(IEC61970::Base::Domain::String value); - DateTime& operator=(IEC61970::Base::Domain::String &rop); - friend std::istream& operator>>(std::istream& lop, DateTime& rop); - operator IEC61970::Base::Domain::String(); - - - - IEC61970::Base::Domain::String value; - bool initialized = false; - }; - - } - - } - -} -#endif // DATETIME_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/DateTimeInterval.cpp b/IEC61970_17v07/IEC61970/Base/Domain/DateTimeInterval.cpp deleted file mode 100644 index 76d1d558c..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/DateTimeInterval.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// DateTimeInterval.cpp -// Implementation of the Class DateTimeInterval -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#include "DateTimeInterval.h" - -using IEC61970::Base::Domain::DateTimeInterval; - - -DateTimeInterval::DateTimeInterval(){ - -} - - - -DateTimeInterval::~DateTimeInterval(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Domain/DateTimeInterval.h b/IEC61970_17v07/IEC61970/Base/Domain/DateTimeInterval.h deleted file mode 100644 index a8fa2462d..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/DateTimeInterval.h +++ /dev/null @@ -1,44 +0,0 @@ -/////////////////////////////////////////////////////////// -// DateTimeInterval.h -// Implementation of the Class DateTimeInterval -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#ifndef DATETIMEINTERVAL_H -#define DATETIMEINTERVAL_H - -#include "BaseClass.h" -#include "IEC61970/Base/Domain/DateTime.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * Interval between two date and time points. - */ - class DateTimeInterval : public BaseClass - { - - public: - DateTimeInterval(); - virtual ~DateTimeInterval(); - /** - * End date and time of this interval. - */ - IEC61970::Base::Domain::DateTime end; - /** - * Start date and time of this interval. - */ - IEC61970::Base::Domain::DateTime start; - - }; - - } - - } - -} -#endif // DATETIMEINTERVAL_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/Decimal.cpp b/IEC61970_17v07/IEC61970/Base/Domain/Decimal.cpp deleted file mode 100644 index 7cfacac0c..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/Decimal.cpp +++ /dev/null @@ -1,82 +0,0 @@ -/////////////////////////////////////////////////////////// -// Decimal.cpp -// Implementation of the Class Decimal -// Original author: kdemaree -/////////////////////////////////////////////////////////// - -#include "Decimal.h" -#include - -using IEC61970::Base::Domain::Decimal; - - -Decimal::Decimal(){ - -} - - - -Decimal::~Decimal(){ - -} - - - -Decimal& Decimal::operator=(IEC61970::Base::Domain::String &rop) -{ - value = rop; - return *this; -} - - - -Decimal& Decimal::operator=(IEC61970::Base::Domain::Integer &rop) -{ - value = std::to_string(rop); - return *this; -} - - - -Decimal& Decimal::operator=(IEC61970::Base::Domain::Float &rop) -{ - value = std::to_string(rop); - return *this; -} - - - -Decimal::operator IEC61970::Base::Domain::String() -{ - return value; -} - - - -Decimal::operator IEC61970::Base::Domain::Integer() -{ - return std::stoi(value); -} - - - -Decimal::operator IEC61970::Base::Domain::Float() -{ - return std::stod(value); -} - - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - std::istream& operator>>(std::istream& lop, Decimal& rop) - { - lop >> rop.value; - return lop; - } - } - } -} diff --git a/IEC61970_17v07/IEC61970/Base/Domain/Decimal.h b/IEC61970_17v07/IEC61970/Base/Domain/Decimal.h deleted file mode 100644 index ed58fc752..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/Decimal.h +++ /dev/null @@ -1,51 +0,0 @@ -/////////////////////////////////////////////////////////// -// Decimal.h -// Implementation of the Class Decimal -// Original author: kdemaree -/////////////////////////////////////////////////////////// - -#ifndef DECIMAL_H -#define DECIMAL_H - -#include "IEC61970/Base/Domain/String.h" -#include "IEC61970/Base/Domain/Integer.h" -#include "IEC61970/Base/Domain/Float.h" - -#include - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * Decimal is the base-10 notational system for representing real numbers. - */ - class Decimal - { - - public: - Decimal(); - virtual ~Decimal(); - - Decimal& operator=(IEC61970::Base::Domain::String &rop); - Decimal& operator=(IEC61970::Base::Domain::Integer &rop); - Decimal& operator=(IEC61970::Base::Domain::Float &rop); - - friend std::istream& operator>>(std::istream& lop, Decimal& rop); - - operator IEC61970::Base::Domain::String(); - operator IEC61970::Base::Domain::Integer(); - operator IEC61970::Base::Domain::Float(); - - IEC61970::Base::Domain::String value; - - }; - - } - - } - -} -#endif // DECIMAL_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/DecimalQuantity.cpp b/IEC61970_17v07/IEC61970/Base/Domain/DecimalQuantity.cpp deleted file mode 100644 index 69e61bc6f..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/DecimalQuantity.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// DecimalQuantity.cpp -// Implementation of the Class DecimalQuantity -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#include "DecimalQuantity.h" - -using IEC61970::Base::Domain::DecimalQuantity; - - -DecimalQuantity::DecimalQuantity(){ - -} - - - -DecimalQuantity::~DecimalQuantity(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Domain/DecimalQuantity.h b/IEC61970_17v07/IEC61970/Base/Domain/DecimalQuantity.h deleted file mode 100644 index 3b3dad852..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/DecimalQuantity.h +++ /dev/null @@ -1,42 +0,0 @@ -/////////////////////////////////////////////////////////// -// DecimalQuantity.h -// Implementation of the Class DecimalQuantity -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#ifndef DECIMALQUANTITY_H -#define DECIMALQUANTITY_H - -#include "IEC61970/Base/Domain/Currency.h" -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/UnitSymbol.h" -#include "IEC61970/Base/Domain/Decimal.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - class DecimalQuantity - { - - public: - DecimalQuantity(); - virtual ~DecimalQuantity(); - /** - * Quantity with decimal value and associated unit or currency information. - */ - IEC61970::Base::Domain::Currency currency = IEC61970::Base::Domain::Currency::_undef; - IEC61970::Base::Domain::UnitMultiplier multiplier = IEC61970::Base::Domain::UnitMultiplier::_undef; - IEC61970::Base::Domain::UnitSymbol unit = IEC61970::Base::Domain::UnitSymbol::_undef; - IEC61970::Base::Domain::Decimal value; - - }; - - } - - } - -} -#endif // DECIMALQUANTITY_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/Displacement.cpp b/IEC61970_17v07/IEC61970/Base/Domain/Displacement.cpp deleted file mode 100644 index ead39c954..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/Displacement.cpp +++ /dev/null @@ -1,24 +0,0 @@ -/////////////////////////////////////////////////////////// -// Displacement.cpp -// Implementation of the Class Displacement -// Original author: LOO -/////////////////////////////////////////////////////////// - -#include "Displacement.h" - -using IEC61970::Base::Domain::Displacement; - - -Displacement::Displacement(){ - -} - - - -Displacement::~Displacement(){ - -} - - -const IEC61970::Base::Domain::UnitMultiplier Displacement::multiplier = IEC61970::Base::Domain::UnitMultiplier::none; -const IEC61970::Base::Domain::UnitSymbol Displacement::unit = IEC61970::Base::Domain::UnitSymbol::m; diff --git a/IEC61970_17v07/IEC61970/Base/Domain/Displacement.h b/IEC61970_17v07/IEC61970/Base/Domain/Displacement.h deleted file mode 100644 index f97b12f0c..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/Displacement.h +++ /dev/null @@ -1,40 +0,0 @@ -/////////////////////////////////////////////////////////// -// Displacement.h -// Implementation of the Class Displacement -// Original author: LOO -/////////////////////////////////////////////////////////// - -#ifndef DISPLACEMENT_H -#define DISPLACEMENT_H - -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/UnitSymbol.h" -#include "IEC61970/Base/Domain/Float.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * Unit of displacement relative a reference position, hence can be negative. - */ - class Displacement - { - - public: - Displacement(); - virtual ~Displacement(); - static const IEC61970::Base::Domain::UnitMultiplier multiplier; - static const IEC61970::Base::Domain::UnitSymbol unit; - IEC61970::Base::Domain::Float value; - - }; - - } - - } - -} -#endif // DISPLACEMENT_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/Duration.cpp b/IEC61970_17v07/IEC61970/Base/Domain/Duration.cpp deleted file mode 100644 index bd3e86d36..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/Duration.cpp +++ /dev/null @@ -1,63 +0,0 @@ -#include "Duration.h" -#include "../../../../src/CIMExceptions.hpp" - -using IEC61970::Base::Domain::Duration; - - -Duration::Duration(){ - -} - - - -Duration::~Duration(){ - -} - - - -Duration::Duration(IEC61970::Base::Domain::String value) - : value(value), initialized(true) -{ -} - - - -Duration& Duration::operator=(IEC61970::Base::Domain::String &rop) -{ - value = rop; - initialized = true; - return *this; -} - - - -Duration::operator IEC61970::Base::Domain::String() -{ - if(!initialized) - { - throw new ReadingUninitializedField(); - } - return value; -} - - - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - std::istream& operator>>(std::istream& lop, Duration& rop) - { - std::string tmp; - lop >> tmp; - - rop.value = tmp; - rop.initialized = true; - return lop; - } - } - } -} diff --git a/IEC61970_17v07/IEC61970/Base/Domain/Duration.h b/IEC61970_17v07/IEC61970/Base/Domain/Duration.h deleted file mode 100644 index 06f03d82f..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/Duration.h +++ /dev/null @@ -1,46 +0,0 @@ -#ifndef DURATION_H -#define DURATION_H - -#include "IEC61970/Base/Domain/String.h" -#include -#include -#include - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * Duration as "PnYnMnDTnHnMnS" which conforms to ISO 8601, where nY expresses a - * number of years, nM a number of months, nD a number of days. The letter T - * separates the date expression from the time expression and, after it, nH - * identifies a number of hours, nM a number of minutes and nS a number of seconds. - * The number of seconds could be expressed as a decimal number, but all other - * numbers are integers. - */ - class Duration - { - - public: - Duration(); - virtual ~Duration(); - - Duration(IEC61970::Base::Domain::String value); - Duration& operator=(IEC61970::Base::Domain::String &rop); - friend std::istream& operator>>(std::istream& lop, Duration& rop); - operator IEC61970::Base::Domain::String(); - - - - IEC61970::Base::Domain::String value; - bool initialized = false; - }; - - } - - } - -} -#endif // DURATION_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/Float.cpp b/IEC61970_17v07/IEC61970/Base/Domain/Float.cpp deleted file mode 100644 index 40fe5d26d..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/Float.cpp +++ /dev/null @@ -1,79 +0,0 @@ -#include "Float.h" -#include "../../../../src/CIMExceptions.hpp" - -using IEC61970::Base::Domain::Float; - - -Float::Float(){ - -} - - - -Float::~Float(){ - -} - - - -Float::Float(long double value) - : value(value), initialized(true) -{ -} - - - -Float& Float::operator=(long double &rop) -{ - value = rop; - initialized = true; - return *this; -} - -Float& Float::operator-=(const Float& rhs){ - value -= rhs.value; - return *this; -} - -Float& Float::operator*=(const Float& rhs){ - value *= rhs.value; - return *this; -} - -Float& Float::operator/=(const Float& rhs){ - value /= rhs.value; - return *this; -} - -Float& Float::operator+=(const Float& rhs){ - value += rhs.value; - return *this; -} - -Float::operator long double() -{ - if(!initialized) - { - throw new ReadingUninitializedField(); - } - return value; -} - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - std::istream& operator>>(std::istream& lop, Float& rop) - { - std::string tmp; - lop >> tmp; - - rop.value = stold(tmp); - rop.initialized = true; - return lop; - } - } - } -} diff --git a/IEC61970_17v07/IEC61970/Base/Domain/Float.h b/IEC61970_17v07/IEC61970/Base/Domain/Float.h deleted file mode 100644 index c26fd96f5..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/Float.h +++ /dev/null @@ -1,43 +0,0 @@ -#ifndef FLOAT_H -#define FLOAT_H - -#include -#include -#include - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * A floating point number. The range is unspecified and not limited. - */ - class Float - { - - public: - Float(); - virtual ~Float(); - - Float(long double value); - Float& operator=(long double &rop); - Float& operator+=(const Float& rhs); - Float& operator-=(const Float& rhs); - Float& operator*=(const Float& rhs); - Float& operator/=(const Float& rhs); - friend std::istream& operator>>(std::istream& lop, Float& rop); - operator long double(); - - long double value = 0.0; - bool initialized = false; - - }; - - } - - } - -} -#endif // FLOAT_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/FloatQuantity.cpp b/IEC61970_17v07/IEC61970/Base/Domain/FloatQuantity.cpp deleted file mode 100644 index 8a19e7c5a..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/FloatQuantity.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// FloatQuantity.cpp -// Implementation of the Class FloatQuantity -/////////////////////////////////////////////////////////// - -#include "FloatQuantity.h" - -using IEC61970::Base::Domain::FloatQuantity; - - -FloatQuantity::FloatQuantity(){ - -} - - - -FloatQuantity::~FloatQuantity(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Domain/FloatQuantity.h b/IEC61970_17v07/IEC61970/Base/Domain/FloatQuantity.h deleted file mode 100644 index 1d78b0078..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/FloatQuantity.h +++ /dev/null @@ -1,39 +0,0 @@ -/////////////////////////////////////////////////////////// -// FloatQuantity.h -// Implementation of the Class FloatQuantity -/////////////////////////////////////////////////////////// - -#ifndef FLOATQUANTITY_H -#define FLOATQUANTITY_H - -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/UnitSymbol.h" -#include "IEC61970/Base/Domain/Float.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * Quantity with float value and associated unit information. - */ - class FloatQuantity - { - - public: - FloatQuantity(); - virtual ~FloatQuantity(); - IEC61970::Base::Domain::UnitMultiplier multiplier = IEC61970::Base::Domain::UnitMultiplier::_undef; - IEC61970::Base::Domain::UnitSymbol unit = IEC61970::Base::Domain::UnitSymbol::_undef; - IEC61970::Base::Domain::Float value; - - }; - - } - - } - -} -#endif // FLOATQUANTITY_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/Frequency.cpp b/IEC61970_17v07/IEC61970/Base/Domain/Frequency.cpp deleted file mode 100644 index 22f4ab9f4..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/Frequency.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// Frequency.cpp -// Implementation of the Class Frequency -/////////////////////////////////////////////////////////// - -#include "Frequency.h" - -using IEC61970::Base::Domain::Frequency; - - -Frequency::Frequency(){ - -} - - - -Frequency::~Frequency(){ - -} - - -const IEC61970::Base::Domain::UnitSymbol Frequency::unit = IEC61970::Base::Domain::UnitSymbol::Hz; diff --git a/IEC61970_17v07/IEC61970/Base/Domain/Frequency.h b/IEC61970_17v07/IEC61970/Base/Domain/Frequency.h deleted file mode 100644 index 0ab9dd475..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/Frequency.h +++ /dev/null @@ -1,39 +0,0 @@ -/////////////////////////////////////////////////////////// -// Frequency.h -// Implementation of the Class Frequency -/////////////////////////////////////////////////////////// - -#ifndef FREQUENCY_H -#define FREQUENCY_H - -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/UnitSymbol.h" -#include "IEC61970/Base/Domain/Float.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * Cycles per second. - */ - class Frequency - { - - public: - Frequency(); - virtual ~Frequency(); - IEC61970::Base::Domain::UnitMultiplier multiplier = IEC61970::Base::Domain::UnitMultiplier::_undef; - static const IEC61970::Base::Domain::UnitSymbol unit; - IEC61970::Base::Domain::Float value; - - }; - - } - - } - -} -#endif // FREQUENCY_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/Hours.cpp b/IEC61970_17v07/IEC61970/Base/Domain/Hours.cpp deleted file mode 100644 index f72050f5a..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/Hours.cpp +++ /dev/null @@ -1,23 +0,0 @@ -/////////////////////////////////////////////////////////// -// Hours.cpp -// Implementation of the Class Hours -/////////////////////////////////////////////////////////// - -#include "Hours.h" - -using IEC61970::Base::Domain::Hours; - - -Hours::Hours(){ - -} - - - -Hours::~Hours(){ - -} - - -const IEC61970::Base::Domain::UnitMultiplier Hours::multiplier = IEC61970::Base::Domain::UnitMultiplier::none; -const IEC61970::Base::Domain::UnitSymbol Hours::unit = IEC61970::Base::Domain::UnitSymbol::h; diff --git a/IEC61970_17v07/IEC61970/Base/Domain/Hours.h b/IEC61970_17v07/IEC61970/Base/Domain/Hours.h deleted file mode 100644 index 416c9d5bb..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/Hours.h +++ /dev/null @@ -1,39 +0,0 @@ -/////////////////////////////////////////////////////////// -// Hours.h -// Implementation of the Class Hours -/////////////////////////////////////////////////////////// - -#ifndef HOURS_H -#define HOURS_H - -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/UnitSymbol.h" -#include "IEC61970/Base/Domain/Float.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * Time specified in hours. - */ - class Hours - { - - public: - Hours(); - virtual ~Hours(); - static const IEC61970::Base::Domain::UnitMultiplier multiplier; - static const IEC61970::Base::Domain::UnitSymbol unit; - IEC61970::Base::Domain::Float value; - - }; - - } - - } - -} -#endif // HOURS_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/Impedance.cpp b/IEC61970_17v07/IEC61970/Base/Domain/Impedance.cpp deleted file mode 100644 index d9fae201d..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/Impedance.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// Impedance.cpp -// Implementation of the Class Impedance -/////////////////////////////////////////////////////////// - -#include "Impedance.h" - -using IEC61970::Base::Domain::Impedance; - - -Impedance::Impedance(){ - -} - - - -Impedance::~Impedance(){ - -} - - -const IEC61970::Base::Domain::UnitSymbol Impedance::unit = IEC61970::Base::Domain::UnitSymbol::ohm; diff --git a/IEC61970_17v07/IEC61970/Base/Domain/Impedance.h b/IEC61970_17v07/IEC61970/Base/Domain/Impedance.h deleted file mode 100644 index c207a3419..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/Impedance.h +++ /dev/null @@ -1,39 +0,0 @@ -/////////////////////////////////////////////////////////// -// Impedance.h -// Implementation of the Class Impedance -/////////////////////////////////////////////////////////// - -#ifndef IMPEDANCE_H -#define IMPEDANCE_H - -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/UnitSymbol.h" -#include "IEC61970/Base/Domain/Float.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * Ratio of voltage to current. - */ - class Impedance - { - - public: - Impedance(); - virtual ~Impedance(); - IEC61970::Base::Domain::UnitMultiplier multiplier = IEC61970::Base::Domain::UnitMultiplier::_undef; - static const IEC61970::Base::Domain::UnitSymbol unit; - IEC61970::Base::Domain::Float value; - - }; - - } - - } - -} -#endif // IMPEDANCE_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/Inductance.cpp b/IEC61970_17v07/IEC61970/Base/Domain/Inductance.cpp deleted file mode 100644 index 4956b6f99..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/Inductance.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// Inductance.cpp -// Implementation of the Class Inductance -/////////////////////////////////////////////////////////// - -#include "Inductance.h" - -using IEC61970::Base::Domain::Inductance; - - -Inductance::Inductance(){ - -} - - - -Inductance::~Inductance(){ - -} - - -const IEC61970::Base::Domain::UnitSymbol Inductance::unit = IEC61970::Base::Domain::UnitSymbol::H; diff --git a/IEC61970_17v07/IEC61970/Base/Domain/Inductance.h b/IEC61970_17v07/IEC61970/Base/Domain/Inductance.h deleted file mode 100644 index 2af380190..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/Inductance.h +++ /dev/null @@ -1,39 +0,0 @@ -/////////////////////////////////////////////////////////// -// Inductance.h -// Implementation of the Class Inductance -/////////////////////////////////////////////////////////// - -#ifndef INDUCTANCE_H -#define INDUCTANCE_H - -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/UnitSymbol.h" -#include "IEC61970/Base/Domain/Float.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * Inductive part of reactance (imaginary part of impedance), at rated frequency. - */ - class Inductance - { - - public: - Inductance(); - virtual ~Inductance(); - IEC61970::Base::Domain::UnitMultiplier multiplier = IEC61970::Base::Domain::UnitMultiplier::_undef; - static const IEC61970::Base::Domain::UnitSymbol unit; - IEC61970::Base::Domain::Float value; - - }; - - } - - } - -} -#endif // INDUCTANCE_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/InductancePerLength.cpp b/IEC61970_17v07/IEC61970/Base/Domain/InductancePerLength.cpp deleted file mode 100644 index eae725d38..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/InductancePerLength.cpp +++ /dev/null @@ -1,24 +0,0 @@ -/////////////////////////////////////////////////////////// -// InductancePerLength.cpp -// Implementation of the Class InductancePerLength -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#include "InductancePerLength.h" - -using IEC61970::Base::Domain::InductancePerLength; - - -InductancePerLength::InductancePerLength(){ - -} - - - -InductancePerLength::~InductancePerLength(){ - -} - - -const IEC61970::Base::Domain::UnitMultiplier InductancePerLength::multiplier = IEC61970::Base::Domain::UnitMultiplier::none; -const IEC61970::Base::Domain::UnitSymbol InductancePerLength::unit = IEC61970::Base::Domain::UnitSymbol::HPerm; diff --git a/IEC61970_17v07/IEC61970/Base/Domain/InductancePerLength.h b/IEC61970_17v07/IEC61970/Base/Domain/InductancePerLength.h deleted file mode 100644 index 68a7304d7..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/InductancePerLength.h +++ /dev/null @@ -1,40 +0,0 @@ -/////////////////////////////////////////////////////////// -// InductancePerLength.h -// Implementation of the Class InductancePerLength -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#ifndef INDUCTANCEPERLENGTH_H -#define INDUCTANCEPERLENGTH_H - -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/UnitSymbol.h" -#include "IEC61970/Base/Domain/Float.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * Inductance per unit of length. - */ - class InductancePerLength - { - - public: - InductancePerLength(); - virtual ~InductancePerLength(); - static const IEC61970::Base::Domain::UnitMultiplier multiplier; - static const IEC61970::Base::Domain::UnitSymbol unit; - IEC61970::Base::Domain::Float value; - - }; - - } - - } - -} -#endif // INDUCTANCEPERLENGTH_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/Integer.cpp b/IEC61970_17v07/IEC61970/Base/Domain/Integer.cpp deleted file mode 100644 index aa10d4210..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/Integer.cpp +++ /dev/null @@ -1,79 +0,0 @@ -#include "Integer.h" -#include "../../../../src/CIMExceptions.hpp" - -using IEC61970::Base::Domain::Integer; - - -Integer::Integer(){ - -} - - - -Integer::~Integer(){ - -} - - - -Integer::Integer(long int value) - : value(value), initialized(true) -{ -} - - - -Integer& Integer::operator=(long int &rop) -{ - value = rop; - initialized = true; - return *this; -} - -Integer& Integer::operator-=(const Integer& rhs){ - value -= rhs.value; - return *this; -} - -Integer& Integer::operator*=(const Integer& rhs){ - value *= rhs.value; - return *this; -} - -Integer& Integer::operator/=(const Integer& rhs){ - value /= rhs.value; - return *this; -} - -Integer& Integer::operator+=(const Integer& rhs){ - value += rhs.value; - return *this; -} - -Integer::operator long int() -{ - if(!initialized) - { - throw new ReadingUninitializedField(); - } - return value; -} - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - std::istream& operator>>(std::istream& lop, Integer& rop) - { - std::string tmp; - lop >> tmp; - - rop.value = stol(tmp); - rop.initialized = true; - return lop; - } - } - } -} diff --git a/IEC61970_17v07/IEC61970/Base/Domain/Integer.h b/IEC61970_17v07/IEC61970/Base/Domain/Integer.h deleted file mode 100644 index 57ce2fb5f..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/Integer.h +++ /dev/null @@ -1,43 +0,0 @@ -#ifndef INTEGER_H -#define INTEGER_H - -#include -#include -#include - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * An Integer number. The range is unspecified and not limited. - */ - class Integer - { - - public: - Integer(); - virtual ~Integer(); - - Integer(long int value); - Integer& operator=(long int &rop); - Integer& operator+=(const Integer& rhs); - Integer& operator-=(const Integer& rhs); - Integer& operator*=(const Integer& rhs); - Integer& operator/=(const Integer& rhs); - friend std::istream& operator>>(std::istream& lop, Integer& rop); - operator long int(); - - long int value = 0; - bool initialized = false; - - }; - - } - - } - -} -#endif // INTEGER_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/IntegerQuantity.cpp b/IEC61970_17v07/IEC61970/Base/Domain/IntegerQuantity.cpp deleted file mode 100644 index c48c0a665..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/IntegerQuantity.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// IntegerQuantity.cpp -// Implementation of the Class IntegerQuantity -/////////////////////////////////////////////////////////// - -#include "IntegerQuantity.h" - -using IEC61970::Base::Domain::IntegerQuantity; - - -IntegerQuantity::IntegerQuantity(){ - -} - - - -IntegerQuantity::~IntegerQuantity(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Domain/IntegerQuantity.h b/IEC61970_17v07/IEC61970/Base/Domain/IntegerQuantity.h deleted file mode 100644 index c00ad95a1..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/IntegerQuantity.h +++ /dev/null @@ -1,39 +0,0 @@ -/////////////////////////////////////////////////////////// -// IntegerQuantity.h -// Implementation of the Class IntegerQuantity -/////////////////////////////////////////////////////////// - -#ifndef INTEGERQUANTITY_H -#define INTEGERQUANTITY_H - -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/UnitSymbol.h" -#include "IEC61970/Base/Domain/Integer.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * Quantity with integer value and associated unit information. - */ - class IntegerQuantity - { - - public: - IntegerQuantity(); - virtual ~IntegerQuantity(); - IEC61970::Base::Domain::UnitMultiplier multiplier = IEC61970::Base::Domain::UnitMultiplier::_undef; - IEC61970::Base::Domain::UnitSymbol unit = IEC61970::Base::Domain::UnitSymbol::_undef; - IEC61970::Base::Domain::Integer value; - - }; - - } - - } - -} -#endif // INTEGERQUANTITY_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/KiloActivePower.cpp b/IEC61970_17v07/IEC61970/Base/Domain/KiloActivePower.cpp deleted file mode 100644 index 6e05d7791..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/KiloActivePower.cpp +++ /dev/null @@ -1,23 +0,0 @@ -/////////////////////////////////////////////////////////// -// KiloActivePower.cpp -// Implementation of the Class KiloActivePower -/////////////////////////////////////////////////////////// - -#include "KiloActivePower.h" - -using IEC61970::Base::Domain::KiloActivePower; - - -KiloActivePower::KiloActivePower(){ - -} - - - -KiloActivePower::~KiloActivePower(){ - -} - - -const IEC61970::Base::Domain::UnitMultiplier KiloActivePower::multiplier = IEC61970::Base::Domain::UnitMultiplier::k; -const IEC61970::Base::Domain::UnitSymbol KiloActivePower::unit = IEC61970::Base::Domain::UnitSymbol::W; diff --git a/IEC61970_17v07/IEC61970/Base/Domain/KiloActivePower.h b/IEC61970_17v07/IEC61970/Base/Domain/KiloActivePower.h deleted file mode 100644 index 8829b6706..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/KiloActivePower.h +++ /dev/null @@ -1,39 +0,0 @@ -/////////////////////////////////////////////////////////// -// KiloActivePower.h -// Implementation of the Class KiloActivePower -/////////////////////////////////////////////////////////// - -#ifndef KILOACTIVEPOWER_H -#define KILOACTIVEPOWER_H - -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/UnitSymbol.h" -#include "IEC61970/Base/Domain/Float.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * Active power in kilowatts. - */ - class KiloActivePower - { - - public: - KiloActivePower(); - virtual ~KiloActivePower(); - static const IEC61970::Base::Domain::UnitMultiplier multiplier; - static const IEC61970::Base::Domain::UnitSymbol unit; - IEC61970::Base::Domain::Float value; - - }; - - } - - } - -} -#endif // KILOACTIVEPOWER_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/Length.cpp b/IEC61970_17v07/IEC61970/Base/Domain/Length.cpp deleted file mode 100644 index b2a5553eb..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/Length.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// Length.cpp -// Implementation of the Class Length -/////////////////////////////////////////////////////////// - -#include "Length.h" - -using IEC61970::Base::Domain::Length; - - -Length::Length(){ - -} - - - -Length::~Length(){ - -} - - -const IEC61970::Base::Domain::UnitSymbol Length::unit = IEC61970::Base::Domain::UnitSymbol::m; diff --git a/IEC61970_17v07/IEC61970/Base/Domain/Length.h b/IEC61970_17v07/IEC61970/Base/Domain/Length.h deleted file mode 100644 index cdf840e2e..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/Length.h +++ /dev/null @@ -1,39 +0,0 @@ -/////////////////////////////////////////////////////////// -// Length.h -// Implementation of the Class Length -/////////////////////////////////////////////////////////// - -#ifndef LENGTH_H -#define LENGTH_H - -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/UnitSymbol.h" -#include "IEC61970/Base/Domain/Float.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * Unit of length. Never negative. - */ - class Length - { - - public: - Length(); - virtual ~Length(); - IEC61970::Base::Domain::UnitMultiplier multiplier = IEC61970::Base::Domain::UnitMultiplier::_undef; - static const IEC61970::Base::Domain::UnitSymbol unit; - IEC61970::Base::Domain::Float value; - - }; - - } - - } - -} -#endif // LENGTH_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/Minutes.cpp b/IEC61970_17v07/IEC61970/Base/Domain/Minutes.cpp deleted file mode 100644 index f5d58a48f..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/Minutes.cpp +++ /dev/null @@ -1,23 +0,0 @@ -/////////////////////////////////////////////////////////// -// Minutes.cpp -// Implementation of the Class Minutes -/////////////////////////////////////////////////////////// - -#include "Minutes.h" - -using IEC61970::Base::Domain::Minutes; - - -Minutes::Minutes(){ - -} - - - -Minutes::~Minutes(){ - -} - - -const IEC61970::Base::Domain::UnitMultiplier Minutes::multiplier = IEC61970::Base::Domain::UnitMultiplier::none; -const IEC61970::Base::Domain::UnitSymbol Minutes::unit = IEC61970::Base::Domain::UnitSymbol::min; diff --git a/IEC61970_17v07/IEC61970/Base/Domain/Minutes.h b/IEC61970_17v07/IEC61970/Base/Domain/Minutes.h deleted file mode 100644 index 127ea46a9..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/Minutes.h +++ /dev/null @@ -1,39 +0,0 @@ -/////////////////////////////////////////////////////////// -// Minutes.h -// Implementation of the Class Minutes -/////////////////////////////////////////////////////////// - -#ifndef MINUTES_H -#define MINUTES_H - -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/UnitSymbol.h" -#include "IEC61970/Base/Domain/Float.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * Time in minutes. - */ - class Minutes - { - - public: - Minutes(); - virtual ~Minutes(); - static const IEC61970::Base::Domain::UnitMultiplier multiplier; - static const IEC61970::Base::Domain::UnitSymbol unit; - IEC61970::Base::Domain::Float value; - - }; - - } - - } - -} -#endif // MINUTES_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/Money.cpp b/IEC61970_17v07/IEC61970/Base/Domain/Money.cpp deleted file mode 100644 index 59946e0cb..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/Money.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// Money.cpp -// Implementation of the Class Money -/////////////////////////////////////////////////////////// - -#include "Money.h" - -using IEC61970::Base::Domain::Money; - - -Money::Money(){ - -} - - - -Money::~Money(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Domain/Money.h b/IEC61970_17v07/IEC61970/Base/Domain/Money.h deleted file mode 100644 index bc13fea86..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/Money.h +++ /dev/null @@ -1,39 +0,0 @@ -/////////////////////////////////////////////////////////// -// Money.h -// Implementation of the Class Money -/////////////////////////////////////////////////////////// - -#ifndef MONEY_H -#define MONEY_H - -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/Currency.h" -#include "IEC61970/Base/Domain/Decimal.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * Amount of money. - */ - class Money - { - - public: - Money(); - virtual ~Money(); - IEC61970::Base::Domain::UnitMultiplier multiplier = IEC61970::Base::Domain::UnitMultiplier::_undef; - IEC61970::Base::Domain::Currency unit = IEC61970::Base::Domain::Currency::_undef; - IEC61970::Base::Domain::Decimal value; - - }; - - } - - } - -} -#endif // MONEY_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/MonthDay.cpp b/IEC61970_17v07/IEC61970/Base/Domain/MonthDay.cpp deleted file mode 100644 index badbfebd6..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/MonthDay.cpp +++ /dev/null @@ -1,64 +0,0 @@ -#include "MonthDay.h" -#include "../../../../src/CIMExceptions.hpp" - -using IEC61970::Base::Domain::MonthDay; - - -MonthDay::MonthDay(){ - -} - - - -MonthDay::~MonthDay(){ - -} - - - -MonthDay::MonthDay(IEC61970::Base::Domain::String value) - : value(value), initialized(true) -{ -} - - - -MonthDay& MonthDay::operator=(IEC61970::Base::Domain::String &rop) -{ - value = rop; - initialized = true; - return *this; -} - - - -MonthDay::operator IEC61970::Base::Domain::String() -{ - if(!initialized) - { - throw new ReadingUninitializedField(); - } - return value; -} - - - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - std::istream& operator>>(std::istream& lop, MonthDay& rop) - { - std::string tmp; - lop >> tmp; - - rop.value = tmp; - rop.initialized = true; - return lop; - } - } - } -} - diff --git a/IEC61970_17v07/IEC61970/Base/Domain/MonthDay.h b/IEC61970_17v07/IEC61970/Base/Domain/MonthDay.h deleted file mode 100644 index 5443ffa44..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/MonthDay.h +++ /dev/null @@ -1,41 +0,0 @@ -#ifndef MONTHDAY_H -#define MONTHDAY_H - -#include "IEC61970/Base/Domain/String.h" -#include -#include -#include - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * MonthDay format as "--mm-dd", which conforms with XSD data type gMonthDay. - */ - class MonthDay - { - - public: - MonthDay(); - virtual ~MonthDay(); - - MonthDay(IEC61970::Base::Domain::String value); - MonthDay& operator=(IEC61970::Base::Domain::String &rop); - friend std::istream& operator>>(std::istream& lop, MonthDay& rop); - operator IEC61970::Base::Domain::String(); - - - - IEC61970::Base::Domain::String value; - bool initialized = false; - }; - - } - - } - -} -#endif // MONTHDAY_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/MonthDayInterval.cpp b/IEC61970_17v07/IEC61970/Base/Domain/MonthDayInterval.cpp deleted file mode 100644 index 0d5aebbf5..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/MonthDayInterval.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// MonthDayInterval.cpp -// Implementation of the Class MonthDayInterval -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#include "MonthDayInterval.h" - -using IEC61970::Base::Domain::MonthDayInterval; - - -MonthDayInterval::MonthDayInterval(){ - -} - - - -MonthDayInterval::~MonthDayInterval(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Domain/MonthDayInterval.h b/IEC61970_17v07/IEC61970/Base/Domain/MonthDayInterval.h deleted file mode 100644 index 1e5c36e76..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/MonthDayInterval.h +++ /dev/null @@ -1,44 +0,0 @@ -/////////////////////////////////////////////////////////// -// MonthDayInterval.h -// Implementation of the Class MonthDayInterval -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#ifndef MONTHDAYINTERVAL_H -#define MONTHDAYINTERVAL_H - -#include "BaseClass.h" -#include "IEC61970/Base/Domain/MonthDay.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * Interval between two times specified as mont and date. - */ - class MonthDayInterval : public BaseClass - { - - public: - MonthDayInterval(); - virtual ~MonthDayInterval(); - /** - * End time of this interval. - */ - IEC61970::Base::Domain::MonthDay end; - /** - * Start time of this interval. - */ - IEC61970::Base::Domain::MonthDay start; - - }; - - } - - } - -} -#endif // MONTHDAYINTERVAL_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/PU.cpp b/IEC61970_17v07/IEC61970/Base/Domain/PU.cpp deleted file mode 100644 index 48bd11239..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/PU.cpp +++ /dev/null @@ -1,23 +0,0 @@ -/////////////////////////////////////////////////////////// -// PU.cpp -// Implementation of the Class PU -/////////////////////////////////////////////////////////// - -#include "PU.h" - -using IEC61970::Base::Domain::PU; - - -PU::PU(){ - -} - - - -PU::~PU(){ - -} - - -const IEC61970::Base::Domain::UnitMultiplier PU::multiplier = IEC61970::Base::Domain::UnitMultiplier::none; -const IEC61970::Base::Domain::UnitSymbol PU::unit = IEC61970::Base::Domain::UnitSymbol::none; diff --git a/IEC61970_17v07/IEC61970/Base/Domain/PU.h b/IEC61970_17v07/IEC61970/Base/Domain/PU.h deleted file mode 100644 index eff5bb9be..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/PU.h +++ /dev/null @@ -1,40 +0,0 @@ -/////////////////////////////////////////////////////////// -// PU.h -// Implementation of the Class PU -/////////////////////////////////////////////////////////// - -#ifndef PU_H -#define PU_H - -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/UnitSymbol.h" -#include "IEC61970/Base/Domain/Float.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * Per Unit - a positive or negative value referred to a defined base. Values - * typically range from -10 to +10. - */ - class PU - { - - public: - PU(); - virtual ~PU(); - static const IEC61970::Base::Domain::UnitMultiplier multiplier; - static const IEC61970::Base::Domain::UnitSymbol unit; - IEC61970::Base::Domain::Float value; - - }; - - } - - } - -} -#endif // PU_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/PerCent.cpp b/IEC61970_17v07/IEC61970/Base/Domain/PerCent.cpp deleted file mode 100644 index d0a6fecba..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/PerCent.cpp +++ /dev/null @@ -1,23 +0,0 @@ -/////////////////////////////////////////////////////////// -// PerCent.cpp -// Implementation of the Class PerCent -/////////////////////////////////////////////////////////// - -#include "PerCent.h" - -using IEC61970::Base::Domain::PerCent; - - -PerCent::PerCent(){ - -} - - - -PerCent::~PerCent(){ - -} - - -const IEC61970::Base::Domain::UnitMultiplier PerCent::multiplier = IEC61970::Base::Domain::UnitMultiplier::none; -const IEC61970::Base::Domain::UnitSymbol PerCent::unit = IEC61970::Base::Domain::UnitSymbol::none; diff --git a/IEC61970_17v07/IEC61970/Base/Domain/PerCent.h b/IEC61970_17v07/IEC61970/Base/Domain/PerCent.h deleted file mode 100644 index c5b9ce978..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/PerCent.h +++ /dev/null @@ -1,43 +0,0 @@ -/////////////////////////////////////////////////////////// -// PerCent.h -// Implementation of the Class PerCent -/////////////////////////////////////////////////////////// - -#ifndef PERCENT_H -#define PERCENT_H - -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/UnitSymbol.h" -#include "IEC61970/Base/Domain/Float.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * Percentage on a defined base. For example, specify as 100 to indicate at the - * defined base. - */ - class PerCent - { - - public: - PerCent(); - virtual ~PerCent(); - static const IEC61970::Base::Domain::UnitMultiplier multiplier; - static const IEC61970::Base::Domain::UnitSymbol unit; - /** - * Normally 0 - 100 on a defined base - */ - IEC61970::Base::Domain::Float value; - - }; - - } - - } - -} -#endif // PERCENT_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/Pressure.cpp b/IEC61970_17v07/IEC61970/Base/Domain/Pressure.cpp deleted file mode 100644 index e92e7603f..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/Pressure.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// Pressure.cpp -// Implementation of the Class Pressure -/////////////////////////////////////////////////////////// - -#include "Pressure.h" - -using IEC61970::Base::Domain::Pressure; - - -Pressure::Pressure(){ - -} - - - -Pressure::~Pressure(){ - -} - - -const IEC61970::Base::Domain::UnitSymbol Pressure::unit = IEC61970::Base::Domain::UnitSymbol::Pa; diff --git a/IEC61970_17v07/IEC61970/Base/Domain/Pressure.h b/IEC61970_17v07/IEC61970/Base/Domain/Pressure.h deleted file mode 100644 index 6af8f29e3..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/Pressure.h +++ /dev/null @@ -1,39 +0,0 @@ -/////////////////////////////////////////////////////////// -// Pressure.h -// Implementation of the Class Pressure -/////////////////////////////////////////////////////////// - -#ifndef PRESSURE_H -#define PRESSURE_H - -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/UnitSymbol.h" -#include "IEC61970/Base/Domain/Float.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * Pressure in Pascal. - */ - class Pressure - { - - public: - Pressure(); - virtual ~Pressure(); - IEC61970::Base::Domain::UnitMultiplier multiplier = IEC61970::Base::Domain::UnitMultiplier::_undef; - static const IEC61970::Base::Domain::UnitSymbol unit; - IEC61970::Base::Domain::Float value; - - }; - - } - - } - -} -#endif // PRESSURE_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/Reactance.cpp b/IEC61970_17v07/IEC61970/Base/Domain/Reactance.cpp deleted file mode 100644 index 1de6fc996..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/Reactance.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// Reactance.cpp -// Implementation of the Class Reactance -/////////////////////////////////////////////////////////// - -#include "Reactance.h" - -using IEC61970::Base::Domain::Reactance; - - -Reactance::Reactance(){ - -} - - - -Reactance::~Reactance(){ - -} - - -const IEC61970::Base::Domain::UnitSymbol Reactance::unit = IEC61970::Base::Domain::UnitSymbol::ohm; diff --git a/IEC61970_17v07/IEC61970/Base/Domain/Reactance.h b/IEC61970_17v07/IEC61970/Base/Domain/Reactance.h deleted file mode 100644 index eaa66ed4a..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/Reactance.h +++ /dev/null @@ -1,39 +0,0 @@ -/////////////////////////////////////////////////////////// -// Reactance.h -// Implementation of the Class Reactance -/////////////////////////////////////////////////////////// - -#ifndef REACTANCE_H -#define REACTANCE_H - -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/UnitSymbol.h" -#include "IEC61970/Base/Domain/Float.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * Reactance (imaginary part of impedance), at rated frequency. - */ - class Reactance - { - - public: - Reactance(); - virtual ~Reactance(); - IEC61970::Base::Domain::UnitMultiplier multiplier = IEC61970::Base::Domain::UnitMultiplier::_undef; - static const IEC61970::Base::Domain::UnitSymbol unit; - IEC61970::Base::Domain::Float value; - - }; - - } - - } - -} -#endif // REACTANCE_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/ReactancePerLength.cpp b/IEC61970_17v07/IEC61970/Base/Domain/ReactancePerLength.cpp deleted file mode 100644 index 10fc83627..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/ReactancePerLength.cpp +++ /dev/null @@ -1,24 +0,0 @@ -/////////////////////////////////////////////////////////// -// ReactancePerLength.cpp -// Implementation of the Class ReactancePerLength -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#include "ReactancePerLength.h" - -using IEC61970::Base::Domain::ReactancePerLength; - - -ReactancePerLength::ReactancePerLength(){ - -} - - - -ReactancePerLength::~ReactancePerLength(){ - -} - - -const IEC61970::Base::Domain::UnitMultiplier ReactancePerLength::multiplier = IEC61970::Base::Domain::UnitMultiplier::none; -const IEC61970::Base::Domain::UnitSymbol ReactancePerLength::unit = IEC61970::Base::Domain::UnitSymbol::ohmPerm; diff --git a/IEC61970_17v07/IEC61970/Base/Domain/ReactancePerLength.h b/IEC61970_17v07/IEC61970/Base/Domain/ReactancePerLength.h deleted file mode 100644 index d5770e5ac..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/ReactancePerLength.h +++ /dev/null @@ -1,40 +0,0 @@ -/////////////////////////////////////////////////////////// -// ReactancePerLength.h -// Implementation of the Class ReactancePerLength -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#ifndef REACTANCEPERLENGTH_H -#define REACTANCEPERLENGTH_H - -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/UnitSymbol.h" -#include "IEC61970/Base/Domain/Float.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * Reactance (imaginary part of impedance) per unit of length, at rated frequency. - */ - class ReactancePerLength - { - - public: - ReactancePerLength(); - virtual ~ReactancePerLength(); - static const IEC61970::Base::Domain::UnitMultiplier multiplier; - static const IEC61970::Base::Domain::UnitSymbol unit; - IEC61970::Base::Domain::Float value; - - }; - - } - - } - -} -#endif // REACTANCEPERLENGTH_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/ReactivePower.cpp b/IEC61970_17v07/IEC61970/Base/Domain/ReactivePower.cpp deleted file mode 100644 index 6d71e3187..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/ReactivePower.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// ReactivePower.cpp -// Implementation of the Class ReactivePower -/////////////////////////////////////////////////////////// - -#include "ReactivePower.h" - -using IEC61970::Base::Domain::ReactivePower; - - -ReactivePower::ReactivePower(){ - -} - - - -ReactivePower::~ReactivePower(){ - -} - - -const IEC61970::Base::Domain::UnitSymbol ReactivePower::unit = IEC61970::Base::Domain::UnitSymbol::VAr; diff --git a/IEC61970_17v07/IEC61970/Base/Domain/ReactivePower.h b/IEC61970_17v07/IEC61970/Base/Domain/ReactivePower.h deleted file mode 100644 index d59d8e889..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/ReactivePower.h +++ /dev/null @@ -1,40 +0,0 @@ -/////////////////////////////////////////////////////////// -// ReactivePower.h -// Implementation of the Class ReactivePower -/////////////////////////////////////////////////////////// - -#ifndef REACTIVEPOWER_H -#define REACTIVEPOWER_H - -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/UnitSymbol.h" -#include "IEC61970/Base/Domain/Float.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * Product of RMS value of the voltage and the RMS value of the quadrature - * component of the current. - */ - class ReactivePower - { - - public: - ReactivePower(); - virtual ~ReactivePower(); - IEC61970::Base::Domain::UnitMultiplier multiplier = IEC61970::Base::Domain::UnitMultiplier::_undef; - static const IEC61970::Base::Domain::UnitSymbol unit; - IEC61970::Base::Domain::Float value; - - }; - - } - - } - -} -#endif // REACTIVEPOWER_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/RealEnergy.cpp b/IEC61970_17v07/IEC61970/Base/Domain/RealEnergy.cpp deleted file mode 100644 index 08bec34aa..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/RealEnergy.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// RealEnergy.cpp -// Implementation of the Class RealEnergy -/////////////////////////////////////////////////////////// - -#include "RealEnergy.h" - -using IEC61970::Base::Domain::RealEnergy; - - -RealEnergy::RealEnergy(){ - -} - - - -RealEnergy::~RealEnergy(){ - -} - - -const IEC61970::Base::Domain::UnitSymbol RealEnergy::unit = IEC61970::Base::Domain::UnitSymbol::Wh; diff --git a/IEC61970_17v07/IEC61970/Base/Domain/RealEnergy.h b/IEC61970_17v07/IEC61970/Base/Domain/RealEnergy.h deleted file mode 100644 index 32d1024de..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/RealEnergy.h +++ /dev/null @@ -1,39 +0,0 @@ -/////////////////////////////////////////////////////////// -// RealEnergy.h -// Implementation of the Class RealEnergy -/////////////////////////////////////////////////////////// - -#ifndef REALENERGY_H -#define REALENERGY_H - -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/UnitSymbol.h" -#include "IEC61970/Base/Domain/Float.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * Real electrical energy. - */ - class RealEnergy - { - - public: - RealEnergy(); - virtual ~RealEnergy(); - IEC61970::Base::Domain::UnitMultiplier multiplier = IEC61970::Base::Domain::UnitMultiplier::_undef; - static const IEC61970::Base::Domain::UnitSymbol unit; - IEC61970::Base::Domain::Float value; - - }; - - } - - } - -} -#endif // REALENERGY_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/Resistance.cpp b/IEC61970_17v07/IEC61970/Base/Domain/Resistance.cpp deleted file mode 100644 index 5018dd118..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/Resistance.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// Resistance.cpp -// Implementation of the Class Resistance -/////////////////////////////////////////////////////////// - -#include "Resistance.h" - -using IEC61970::Base::Domain::Resistance; - - -Resistance::Resistance(){ - -} - - - -Resistance::~Resistance(){ - -} - - -const IEC61970::Base::Domain::UnitSymbol Resistance::unit = IEC61970::Base::Domain::UnitSymbol::ohm; diff --git a/IEC61970_17v07/IEC61970/Base/Domain/Resistance.h b/IEC61970_17v07/IEC61970/Base/Domain/Resistance.h deleted file mode 100644 index 851324f7e..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/Resistance.h +++ /dev/null @@ -1,39 +0,0 @@ -/////////////////////////////////////////////////////////// -// Resistance.h -// Implementation of the Class Resistance -/////////////////////////////////////////////////////////// - -#ifndef RESISTANCE_H -#define RESISTANCE_H - -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/UnitSymbol.h" -#include "IEC61970/Base/Domain/Float.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * Resistance (real part of impedance). - */ - class Resistance - { - - public: - Resistance(); - virtual ~Resistance(); - IEC61970::Base::Domain::UnitMultiplier multiplier = IEC61970::Base::Domain::UnitMultiplier::_undef; - static const IEC61970::Base::Domain::UnitSymbol unit; - IEC61970::Base::Domain::Float value; - - }; - - } - - } - -} -#endif // RESISTANCE_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/ResistancePerLength.cpp b/IEC61970_17v07/IEC61970/Base/Domain/ResistancePerLength.cpp deleted file mode 100644 index 6a83c6e36..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/ResistancePerLength.cpp +++ /dev/null @@ -1,24 +0,0 @@ -/////////////////////////////////////////////////////////// -// ResistancePerLength.cpp -// Implementation of the Class ResistancePerLength -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#include "ResistancePerLength.h" - -using IEC61970::Base::Domain::ResistancePerLength; - - -ResistancePerLength::ResistancePerLength(){ - -} - - - -ResistancePerLength::~ResistancePerLength(){ - -} - - -const IEC61970::Base::Domain::UnitMultiplier ResistancePerLength::multiplier = IEC61970::Base::Domain::UnitMultiplier::none; -const IEC61970::Base::Domain::UnitSymbol ResistancePerLength::unit = IEC61970::Base::Domain::UnitSymbol::ohmPerm; diff --git a/IEC61970_17v07/IEC61970/Base/Domain/ResistancePerLength.h b/IEC61970_17v07/IEC61970/Base/Domain/ResistancePerLength.h deleted file mode 100644 index 6f8d07cc0..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/ResistancePerLength.h +++ /dev/null @@ -1,40 +0,0 @@ -/////////////////////////////////////////////////////////// -// ResistancePerLength.h -// Implementation of the Class ResistancePerLength -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#ifndef RESISTANCEPERLENGTH_H -#define RESISTANCEPERLENGTH_H - -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/UnitSymbol.h" -#include "IEC61970/Base/Domain/Float.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * Resistance (real part of impedance) per unit of length. - */ - class ResistancePerLength - { - - public: - ResistancePerLength(); - virtual ~ResistancePerLength(); - static const IEC61970::Base::Domain::UnitMultiplier multiplier; - static const IEC61970::Base::Domain::UnitSymbol unit; - IEC61970::Base::Domain::Float value; - - }; - - } - - } - -} -#endif // RESISTANCEPERLENGTH_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/RotationSpeed.cpp b/IEC61970_17v07/IEC61970/Base/Domain/RotationSpeed.cpp deleted file mode 100644 index 2d985b969..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/RotationSpeed.cpp +++ /dev/null @@ -1,23 +0,0 @@ -/////////////////////////////////////////////////////////// -// RotationSpeed.cpp -// Implementation of the Class RotationSpeed -/////////////////////////////////////////////////////////// - -#include "RotationSpeed.h" - -using IEC61970::Base::Domain::RotationSpeed; - - -RotationSpeed::RotationSpeed(){ - -} - - - -RotationSpeed::~RotationSpeed(){ - -} - - -const IEC61970::Base::Domain::UnitMultiplier RotationSpeed::multiplier = IEC61970::Base::Domain::UnitMultiplier::none; -const IEC61970::Base::Domain::UnitSymbol RotationSpeed::unit = IEC61970::Base::Domain::UnitSymbol::Hz; diff --git a/IEC61970_17v07/IEC61970/Base/Domain/RotationSpeed.h b/IEC61970_17v07/IEC61970/Base/Domain/RotationSpeed.h deleted file mode 100644 index edd8d2c9e..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/RotationSpeed.h +++ /dev/null @@ -1,39 +0,0 @@ -/////////////////////////////////////////////////////////// -// RotationSpeed.h -// Implementation of the Class RotationSpeed -/////////////////////////////////////////////////////////// - -#ifndef ROTATIONSPEED_H -#define ROTATIONSPEED_H - -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/UnitSymbol.h" -#include "IEC61970/Base/Domain/Float.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * Number of revolutions per second. - */ - class RotationSpeed - { - - public: - RotationSpeed(); - virtual ~RotationSpeed(); - static const IEC61970::Base::Domain::UnitMultiplier multiplier; - static const IEC61970::Base::Domain::UnitSymbol unit; - IEC61970::Base::Domain::Float value; - - }; - - } - - } - -} -#endif // ROTATIONSPEED_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/Seconds.cpp b/IEC61970_17v07/IEC61970/Base/Domain/Seconds.cpp deleted file mode 100644 index 97693645e..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/Seconds.cpp +++ /dev/null @@ -1,23 +0,0 @@ -/////////////////////////////////////////////////////////// -// Seconds.cpp -// Implementation of the Class Seconds -/////////////////////////////////////////////////////////// - -#include "Seconds.h" - -using IEC61970::Base::Domain::Seconds; - - -Seconds::Seconds(){ - -} - - - -Seconds::~Seconds(){ - -} - - -const IEC61970::Base::Domain::UnitMultiplier Seconds::multiplier = IEC61970::Base::Domain::UnitMultiplier::none; -const IEC61970::Base::Domain::UnitSymbol Seconds::unit = IEC61970::Base::Domain::UnitSymbol::s; diff --git a/IEC61970_17v07/IEC61970/Base/Domain/Seconds.h b/IEC61970_17v07/IEC61970/Base/Domain/Seconds.h deleted file mode 100644 index 455ac5838..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/Seconds.h +++ /dev/null @@ -1,42 +0,0 @@ -/////////////////////////////////////////////////////////// -// Seconds.h -// Implementation of the Class Seconds -/////////////////////////////////////////////////////////// - -#ifndef SECONDS_H -#define SECONDS_H - -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/UnitSymbol.h" -#include "IEC61970/Base/Domain/Float.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * Time, in seconds. - */ - class Seconds - { - - public: - Seconds(); - virtual ~Seconds(); - static const IEC61970::Base::Domain::UnitMultiplier multiplier; - static const IEC61970::Base::Domain::UnitSymbol unit; - /** - * Time, in seconds - */ - IEC61970::Base::Domain::Float value; - - }; - - } - - } - -} -#endif // SECONDS_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/Speed.cpp b/IEC61970_17v07/IEC61970/Base/Domain/Speed.cpp deleted file mode 100644 index eec1b4fbf..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/Speed.cpp +++ /dev/null @@ -1,24 +0,0 @@ -/////////////////////////////////////////////////////////// -// Speed.cpp -// Implementation of the Class Speed -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#include "Speed.h" - -using IEC61970::Base::Domain::Speed; - - -Speed::Speed(){ - -} - - - -Speed::~Speed(){ - -} - - -const IEC61970::Base::Domain::UnitMultiplier Speed::multiplier = IEC61970::Base::Domain::UnitMultiplier::none; -const IEC61970::Base::Domain::UnitSymbol Speed::unit = IEC61970::Base::Domain::UnitSymbol::mPers; diff --git a/IEC61970_17v07/IEC61970/Base/Domain/Speed.h b/IEC61970_17v07/IEC61970/Base/Domain/Speed.h deleted file mode 100644 index 79c02f783..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/Speed.h +++ /dev/null @@ -1,40 +0,0 @@ -/////////////////////////////////////////////////////////// -// Speed.h -// Implementation of the Class Speed -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#ifndef SPEED_H -#define SPEED_H - -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/UnitSymbol.h" -#include "IEC61970/Base/Domain/Float.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * Distance per unit of time. - */ - class Speed - { - - public: - Speed(); - virtual ~Speed(); - static const IEC61970::Base::Domain::UnitMultiplier multiplier; - static const IEC61970::Base::Domain::UnitSymbol unit; - IEC61970::Base::Domain::Float value; - - }; - - } - - } - -} -#endif // SPEED_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/String.h b/IEC61970_17v07/IEC61970/Base/Domain/String.h deleted file mode 100644 index a4b821af5..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/String.h +++ /dev/null @@ -1,28 +0,0 @@ -/////////////////////////////////////////////////////////// -// String.h -// Implementation of the Class String -/////////////////////////////////////////////////////////// - -#ifndef STRING_H -#define STRING_H - -#include - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * A string consisting of a sequence of characters. The character encoding is UTF- - * 8. The string length is unspecified and unlimited. - */ - typedef std::string String; - - } - - } - -} -#endif // STRING_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/StringQuantity.cpp b/IEC61970_17v07/IEC61970/Base/Domain/StringQuantity.cpp deleted file mode 100644 index e0a781383..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/StringQuantity.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// StringQuantity.cpp -// Implementation of the Class StringQuantity -/////////////////////////////////////////////////////////// - -#include "StringQuantity.h" - -using IEC61970::Base::Domain::StringQuantity; - - -StringQuantity::StringQuantity(){ - -} - - - -StringQuantity::~StringQuantity(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Domain/StringQuantity.h b/IEC61970_17v07/IEC61970/Base/Domain/StringQuantity.h deleted file mode 100644 index ed85a9126..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/StringQuantity.h +++ /dev/null @@ -1,40 +0,0 @@ -/////////////////////////////////////////////////////////// -// StringQuantity.h -// Implementation of the Class StringQuantity -/////////////////////////////////////////////////////////// - -#ifndef STRINGQUANTITY_H -#define STRINGQUANTITY_H - -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/UnitSymbol.h" -#include "IEC61970/Base/Domain/String.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * Quantity with string value (when it is not important whether it is an integral - * or a floating point number) and associated unit information. - */ - class StringQuantity - { - - public: - StringQuantity(); - virtual ~StringQuantity(); - IEC61970::Base::Domain::UnitMultiplier multiplier = IEC61970::Base::Domain::UnitMultiplier::_undef; - IEC61970::Base::Domain::UnitSymbol unit = IEC61970::Base::Domain::UnitSymbol::_undef; - IEC61970::Base::Domain::String value; - - }; - - } - - } - -} -#endif // STRINGQUANTITY_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/Susceptance.cpp b/IEC61970_17v07/IEC61970/Base/Domain/Susceptance.cpp deleted file mode 100644 index bfbbc861d..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/Susceptance.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// Susceptance.cpp -// Implementation of the Class Susceptance -/////////////////////////////////////////////////////////// - -#include "Susceptance.h" - -using IEC61970::Base::Domain::Susceptance; - - -Susceptance::Susceptance(){ - -} - - - -Susceptance::~Susceptance(){ - -} - - -const IEC61970::Base::Domain::UnitSymbol Susceptance::unit = IEC61970::Base::Domain::UnitSymbol::S; diff --git a/IEC61970_17v07/IEC61970/Base/Domain/Susceptance.h b/IEC61970_17v07/IEC61970/Base/Domain/Susceptance.h deleted file mode 100644 index 03e7ab78c..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/Susceptance.h +++ /dev/null @@ -1,39 +0,0 @@ -/////////////////////////////////////////////////////////// -// Susceptance.h -// Implementation of the Class Susceptance -/////////////////////////////////////////////////////////// - -#ifndef SUSCEPTANCE_H -#define SUSCEPTANCE_H - -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/UnitSymbol.h" -#include "IEC61970/Base/Domain/Float.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * Imaginary part of admittance. - */ - class Susceptance - { - - public: - Susceptance(); - virtual ~Susceptance(); - IEC61970::Base::Domain::UnitMultiplier multiplier = IEC61970::Base::Domain::UnitMultiplier::_undef; - static const IEC61970::Base::Domain::UnitSymbol unit; - IEC61970::Base::Domain::Float value; - - }; - - } - - } - -} -#endif // SUSCEPTANCE_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/SusceptancePerLength.cpp b/IEC61970_17v07/IEC61970/Base/Domain/SusceptancePerLength.cpp deleted file mode 100644 index 196273468..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/SusceptancePerLength.cpp +++ /dev/null @@ -1,24 +0,0 @@ -/////////////////////////////////////////////////////////// -// SusceptancePerLength.cpp -// Implementation of the Class SusceptancePerLength -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#include "SusceptancePerLength.h" - -using IEC61970::Base::Domain::SusceptancePerLength; - - -SusceptancePerLength::SusceptancePerLength(){ - -} - - - -SusceptancePerLength::~SusceptancePerLength(){ - -} - - -const IEC61970::Base::Domain::UnitMultiplier SusceptancePerLength::multiplier = IEC61970::Base::Domain::UnitMultiplier::none; -const IEC61970::Base::Domain::UnitSymbol SusceptancePerLength::unit = IEC61970::Base::Domain::UnitSymbol::SPerm; diff --git a/IEC61970_17v07/IEC61970/Base/Domain/SusceptancePerLength.h b/IEC61970_17v07/IEC61970/Base/Domain/SusceptancePerLength.h deleted file mode 100644 index e2f59db36..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/SusceptancePerLength.h +++ /dev/null @@ -1,40 +0,0 @@ -/////////////////////////////////////////////////////////// -// SusceptancePerLength.h -// Implementation of the Class SusceptancePerLength -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#ifndef SUSCEPTANCEPERLENGTH_H -#define SUSCEPTANCEPERLENGTH_H - -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/UnitSymbol.h" -#include "IEC61970/Base/Domain/Float.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * Imaginary part of admittance per unit of length. - */ - class SusceptancePerLength - { - - public: - SusceptancePerLength(); - virtual ~SusceptancePerLength(); - static const IEC61970::Base::Domain::UnitMultiplier multiplier; - static const IEC61970::Base::Domain::UnitSymbol unit; - IEC61970::Base::Domain::Float value; - - }; - - } - - } - -} -#endif // SUSCEPTANCEPERLENGTH_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/Temperature.cpp b/IEC61970_17v07/IEC61970/Base/Domain/Temperature.cpp deleted file mode 100644 index 520f4346f..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/Temperature.cpp +++ /dev/null @@ -1,23 +0,0 @@ -/////////////////////////////////////////////////////////// -// Temperature.cpp -// Implementation of the Class Temperature -/////////////////////////////////////////////////////////// - -#include "Temperature.h" - -using IEC61970::Base::Domain::Temperature; - - -Temperature::Temperature(){ - -} - - - -Temperature::~Temperature(){ - -} - - -const IEC61970::Base::Domain::UnitMultiplier Temperature::multiplier = IEC61970::Base::Domain::UnitMultiplier::none; -const IEC61970::Base::Domain::UnitSymbol Temperature::unit = IEC61970::Base::Domain::UnitSymbol::degC; diff --git a/IEC61970_17v07/IEC61970/Base/Domain/Temperature.h b/IEC61970_17v07/IEC61970/Base/Domain/Temperature.h deleted file mode 100644 index 705b0c676..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/Temperature.h +++ /dev/null @@ -1,39 +0,0 @@ -/////////////////////////////////////////////////////////// -// Temperature.h -// Implementation of the Class Temperature -/////////////////////////////////////////////////////////// - -#ifndef TEMPERATURE_H -#define TEMPERATURE_H - -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/UnitSymbol.h" -#include "IEC61970/Base/Domain/Float.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * Value of temperature in degrees Celsius. - */ - class Temperature - { - - public: - Temperature(); - virtual ~Temperature(); - static const IEC61970::Base::Domain::UnitMultiplier multiplier; - static const IEC61970::Base::Domain::UnitSymbol unit; - IEC61970::Base::Domain::Float value; - - }; - - } - - } - -} -#endif // TEMPERATURE_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/Time.cpp b/IEC61970_17v07/IEC61970/Base/Domain/Time.cpp deleted file mode 100644 index d2bd9c0aa..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/Time.cpp +++ /dev/null @@ -1,63 +0,0 @@ -#include "Time.h" -#include "../../../../src/CIMExceptions.hpp" - -using IEC61970::Base::Domain::Time; - - -Time::Time(){ - -} - - - -Time::~Time(){ - -} - - - -Time::Time(IEC61970::Base::Domain::String value) - : value(value), initialized(true) -{ -} - - - -Time& Time::operator=(IEC61970::Base::Domain::String &rop) -{ - value = rop; - initialized = true; - return *this; -} - - - -Time::operator IEC61970::Base::Domain::String() -{ - if(!initialized) - { - throw new ReadingUninitializedField(); - } - return value; -} - - - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - std::istream& operator>>(std::istream& lop, Time& rop) - { - std::string tmp; - lop >> tmp; - - rop.value = tmp; - rop.initialized = true; - return lop; - } - } - } -} diff --git a/IEC61970_17v07/IEC61970/Base/Domain/Time.h b/IEC61970_17v07/IEC61970/Base/Domain/Time.h deleted file mode 100644 index df0404f34..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/Time.h +++ /dev/null @@ -1,45 +0,0 @@ -#ifndef TIME_H -#define TIME_H - -#include "IEC61970/Base/Domain/String.h" -#include -#include -#include - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * Time as "hh:mm:ss.sss", which conforms with ISO 8601. UTC time zone is - * specified as "hh:mm:ss.sssZ". A local timezone relative UTC is specified as "hh: - * mm:ss.sss±hh:mm". The second component (shown here as "ss.sss") could have any - * number of digits in its fractional part to allow any kind of precision beyond - * seconds. - */ - class Time - { - - public: - Time(); - virtual ~Time(); - - Time(IEC61970::Base::Domain::String value); - Time& operator=(IEC61970::Base::Domain::String &rop); - friend std::istream& operator>>(std::istream& lop, Time& rop); - operator IEC61970::Base::Domain::String(); - - - - IEC61970::Base::Domain::String value; - bool initialized = false; - }; - - } - - } - -} -#endif // TIME_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/TimeInterval.cpp b/IEC61970_17v07/IEC61970/Base/Domain/TimeInterval.cpp deleted file mode 100644 index d13a03edd..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/TimeInterval.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// TimeInterval.cpp -// Implementation of the Class TimeInterval -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#include "TimeInterval.h" - -using IEC61970::Base::Domain::TimeInterval; - - -TimeInterval::TimeInterval(){ - -} - - - -TimeInterval::~TimeInterval(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Domain/TimeInterval.h b/IEC61970_17v07/IEC61970/Base/Domain/TimeInterval.h deleted file mode 100644 index b5c08ab0e..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/TimeInterval.h +++ /dev/null @@ -1,44 +0,0 @@ -/////////////////////////////////////////////////////////// -// TimeInterval.h -// Implementation of the Class TimeInterval -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#ifndef TIMEINTERVAL_H -#define TIMEINTERVAL_H - -#include "BaseClass.h" -#include "IEC61970/Base/Domain/Time.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * Interval between two times. - */ - class TimeInterval : public BaseClass - { - - public: - TimeInterval(); - virtual ~TimeInterval(); - /** - * End time of this interval. - */ - IEC61970::Base::Domain::Time end; - /** - * Start time of this interval. - */ - IEC61970::Base::Domain::Time start; - - }; - - } - - } - -} -#endif // TIMEINTERVAL_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/UnitMultiplier.h b/IEC61970_17v07/IEC61970/Base/Domain/UnitMultiplier.h deleted file mode 100644 index 7455059c9..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/UnitMultiplier.h +++ /dev/null @@ -1,114 +0,0 @@ -/////////////////////////////////////////////////////////// -// UnitMultiplier.h -// Implementation of the Class UnitMultiplier -/////////////////////////////////////////////////////////// - -#ifndef UNITMULTIPLIER_H -#define UNITMULTIPLIER_H - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * The unit multipliers defined for the CIM. When applied to unit symbols that - * already contain a multiplier, both multipliers are used. For example, to - * exchange kilograms using unit symbol of kg, one uses the "none" multiplier, to - * exchange metric ton (Mg), one uses the "k" multiplier. - */ - enum class UnitMultiplier - { - /** - * yocto 10**-24. - */ - _undef = -1, y = -24, - /** - * zepto 10**-21. - */ - z = -21, - /** - * atto 10**-18. - */ - a = -18, - /** - * femto 10**-15. - */ - f = -15, - /** - * Pico 10**-12. - */ - p = -12, - /** - * Nano 10**-9. - */ - n = -9, - /** - * Micro 10**-6. - */ - micro = -6, - /** - * Milli 10**-3. - */ - m = -3, - /** - * Centi 10**-2. - */ - c = -2, - /** - * Deci 10**-1. - */ - d = -1, - /** - * No multiplier or equivalently multiply by 1. - */ - none = 0, - /** - * deca 10**1. - */ - da = 1, - /** - * hecto 10**2. - */ - h = 2, - /** - * Kilo 10**3. - */ - k = 3, - /** - * Mega 10**6. - */ - M = 6, - /** - * Giga 10**9. - */ - G = 9, - /** - * Tera 10**12. - */ - T = 12, - /** - * Peta 10**15 - */ - P = 15, - /** - * Exa 10**18. - */ - E = 18, - /** - * Zetta 10**21 - */ - Z = 21, - /** - * Yotta 10**24 - */ - Y = 24 - }; - - } - - } - -} -#endif // UNITMULTIPLIER_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/UnitSymbol.h b/IEC61970_17v07/IEC61970/Base/Domain/UnitSymbol.h deleted file mode 100644 index 07664d037..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/UnitSymbol.h +++ /dev/null @@ -1,637 +0,0 @@ -/////////////////////////////////////////////////////////// -// UnitSymbol.h -// Implementation of the Class UnitSymbol -/////////////////////////////////////////////////////////// - -#ifndef UNITSYMBOL_H -#define UNITSYMBOL_H - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * The units defined for usage in the CIM. - */ - enum class UnitSymbol - { - /** - * Dimension less quantity, e.g. count, per unit, etc. - */ - none = 0, - /** - * Length in meter. - */ - m = 2, - /** - * Mass in kilogram. Note: multiplier “k” is included in this unit symbol for - * compatibility with IEC 61850-7-3. - */ - _undef = -1, kg = 3, - /** - * Time in seconds. - */ - s = 4, - /** - * Current in Ampere. - */ - A = 5, - /** - * Temperature in Kelvin. - */ - K = 6, - /** - * Amount of substance in mole. - */ - mol = 7, - /** - * Luminous intensity in candela. - */ - cd = 8, - /** - * Plane angle in degrees. - */ - deg = 9, - /** - * Plane angle in radian (m/m). - */ - rad = 10, - /** - * Solid angle in steradian (m2/m2). - */ - sr = 11, - /** - * Absorbed dose in Gray (J/kg). - */ - Gy = 21, - /** - * Radioactivity in Becquerel (1/s). - */ - Bq = 22, - /** - * Relative temperature in degrees Celsius. - * In the SI unit system the symbol is ºC. Electric charge is measured in coulomb - * that has the unit symbol C. To distinguish degree Celsius form coulomb the - * symbol used in the UML is degC. Reason for not using ºC is the special - * character º is difficult to manage in software. - */ - degC = 23, - /** - * Dose equivalent in Sievert (J/kg). - */ - Sv = 24, - /** - * Electric capacitance in Farad (C/V). - */ - F = 25, - /** - * Electric charge in Coulomb (A·s). - */ - C = 26, - /** - * Conductance in Siemens. - */ - S = 27, - /** - * Electric inductance in Henry (Wb/A). - */ - H = 28, - /** - * Electric potential in Volt (W/A). - */ - V = 29, - /** - * Electric resistance in ohm (V/A). - */ - ohm = 30, - /** - * Energy in joule (N·m = C·V = W·s). - */ - J = 31, - /** - * Force in Newton (kg·m/s²). - */ - N = 32, - /** - * Frequency in Hertz (1/s). - */ - Hz = 33, - /** - * Illuminance in lux (lm/m²). - */ - lx = 34, - /** - * Luminous flux in lumen (cd·sr). - */ - lm = 35, - /** - * Magnetic flux in Weber (V·s). - */ - Wb = 36, - /** - * Magnetic flux density in Tesla (Wb/m2). - */ - T = 37, - /** - * Real power in Watt (J/s). Electrical power may have real and reactive - * components. The real portion of electrical power (I²R or VIcos(phi)), is - * expressed in Watts. (See also apparent power and reactive power.) - */ - W = 38, - /** - * Pressure in Pascal (N/m²). Note: the absolute or relative measurement of - * pressure is implied with this entry. See below for more explicit forms. - */ - Pa = 39, - /** - * Area in square metre (m²). - */ - m2 = 41, - /** - * Volume in cubic metre (m³). - */ - m3 = 42, - /** - * Velocity in metre per second (m/s). - */ - mPers = 43, - /** - * Acceleration in metre per second squared (m/s²). - */ - mPers2 = 44, - /** - * Volumetric flow rate in cubic metres per second (m³/s). - */ - m3Pers = 45, - /** - * Fuel efficiency in metre per cubic metre (m/m³). - */ - mPerm3 = 46, - /** - * Moment of mass in kilogram metre (kg·m) (first moment of mass). Note: - * multiplier “k” is included in this unit symbol for compatibility with IEC 61850- - * 7-3. - */ - kgm = 47, - /** - * Density in kilogram/cubic metre (kg/m³). Note: multiplier “k” is included in - * this unit symbol for compatibility with IEC 61850-7-3. - */ - kgPerm3 = 48, - /** - * Thermal conductivity in Watt/metre Kelvin. - */ - WPermK = 50, - /** - * Heat capacity in Joule/Kelvin. - */ - JPerK = 51, - /** - * Concentration in parts per million. - */ - ppm = 52, - /** - * Rotations per second (1/s). See also Hz (1/s). - */ - rotPers = 53, - /** - * Angular velocity in radians per second (rad/s). - */ - radPers = 54, - /** - * Apparent power in Volt Ampere (See also real power and reactive power.) - */ - VA = 61, - /** - * Reactive power in Volt Ampere reactive. The “reactive” or “imaginary” component - * of electrical power (VIsin(phi)). (See also real power and apparent power). - * Note: Different meter designs use different methods to arrive at their results. - * Some meters may compute reactive power as an arithmetic value, while others - * compute the value vectorially. The data consumer should determine the method in - * use and the suitability of the measurement for the intended purpose. - */ - VAr = 63, - /** - * Power factor, dimensionless. - * Note 1: This definition of power factor only holds for balanced systems. See - * the alternative definition under code 153. - * Note 2 : Beware of differing sign conventions in use between the IEC and EEI. - * It is assumed that the data consumer understands the type of meter in use and - * the sign convention in use by the utility. - */ - cosPhi = 65, - /** - * Volt second (Ws/A). - */ - Vs = 66, - /** - * Volt squared (W²/A²). - */ - V2 = 67, - /** - * Ampere seconds (A·s). - */ - As = 68, - /** - * Ampere squared (A²). - */ - A2 = 69, - /** - * Ampere squared time in square ampere (A²s). - */ - A2s = 70, - /** - * Apparent energy in Volt Ampere hours. - */ - VAh = 71, - /** - * Real energy in Watt hours. - */ - Wh = 72, - /** - * Reactive energy in Volt Ampere reactive hours. - */ - VArh = 73, - /** - * Magnetic flux in Volt per Hertz. - */ - VPerHz = 74, - /** - * Rate of change of frequency in Hertz per second. - */ - HzPers = 75, - /** - * Number of characters. - */ - character = 76, - /** - * Data rate (baud) in characters per second. - */ - charPers = 77, - /** - * Moment of mass in kilogram square metre (kg·m²) (Second moment of mass, - * commonly called the moment of inertia). Note: multiplier “k” is included in - * this unit symbol for compatibility with IEC 61850-7-3. - */ - kgm2 = 78, - /** - * Sound pressure level in decibel. Note: multiplier “d” is included in this unit - * symbol for compatibility with IEC 61850-7-3. - */ - dB = 79, - /** - * Ramp rate in Watt per second. - */ - WPers = 81, - /** - * Volumetric flow rate in litre per second. - */ - lPers = 82, - /** - * Power level (logrithmic ratio of signal strength , Bel-mW), normalized to 1mW. - * Note: multiplier “d” is included in this unit symbol for compatibility with - * IEC 61850-7-3. - */ - dBm = 83, - /** - * Time, hour = 60 min = 3600 s. - */ - h = 84, - /** - * Time, minute = 60 s. - */ - min = 85, - /** - * Quantity power, Q. - */ - Q = 100, - /** - * Quantity energy, Qh. - */ - Qh = 101, - /** - * resistivity, Ohm metre, (rho). - */ - ohmm = 102, - /** - * A/m, magnetic field strength, Ampere per metre. - */ - APerm = 103, - /** - * volt-squared hour, Volt-squared-hours. - */ - V2h = 104, - /** - * ampere-squared hour, Ampere-squared hour. - */ - A2h = 105, - /** - * Ampere-hours, Ampere-hours. - */ - Ah = 106, - /** - * Amount of substance, Counter value. - */ - count = 111, - /** - * Volume, cubic foot. - */ - ft3 = 119, - /** - * Volumetric flow rate, cubic metre per hour. - */ - m3Perh = 125, - /** - * Volume, US gallon (1 gal = 231 in3 = 128 fl ounce). - */ - gal = 128, - /** - * Energy, British Thermal Unit. - */ - Btu = 132, - /** - * Volume, litre = dm3 = m3/1000. - */ - l = 134, - /** - * Volumetric flow rate, litre per hour. - */ - lPerh = 137, - /** - * Concentration, The ratio of the volume of a solute divided by the volume of - * the solution. Note: Users may need use a prefix such a ‘µ’ to express a - * quantity such as ‘µL/L’. - */ - lPerl = 143, - /** - * Concentration, The ratio of the mass of a solute divided by the mass of the - * solution. Note: Users may need use a prefix such a ‘µ’ to express a quantity - * such as ‘µg/g’. - */ - gPerg = 144, - /** - * Concentration, The amount of substance concentration, (c), the amount of - * solvent in moles divided by the volume of solution in m³. - */ - molPerm3 = 145, - /** - * Concentration, Molar fraction (?), the ratio of the molar amount of a solute - * divided by the molar amount of the solution. - */ - molPermol = 146, - /** - * Concentration, Molality, the amount of solute in moles and the amount of - * solvent in kilograms. - */ - molPerkg = 147, - /** - * Time, Ratio of time Note: Users may need to supply a prefix such as ‘µ’ to show - * rates such as ‘µs/s’ - */ - sPers = 149, - /** - * Frequency, Rate of frequency change Note: Users may need to supply a prefix - * such as ‘m’ to show rates such as ‘mHz/Hz’. - */ - HzPerHz = 150, - /** - * Voltage, Ratio of voltages Note: Users may need to supply a prefix such as ‘m’ - * to show rates such as ‘mV/V’. - */ - VPerV = 151, - /** - * Current, Ratio of Amperages Note: Users may need to supply a prefix such as - * ‘m’ to show rates such as ‘mA/A’. - */ - APerA = 152, - /** - * Power factor, PF, the ratio of the active power to the apparent power. Note: - * The sign convention used for power factor will differ between IEC meters and - * EEI (ANSI) meters. It is assumed that the data consumers understand the type of - * meter being used and agree on the sign convention in use at any given utility. - */ - VPerVA = 153, - /** - * Amount of rotation, Revolutions. - */ - rev = 154, - /** - * Catalytic activity, katal = mol / s. - */ - kat = 158, - /** - * Specific energy, Joule / kg. - */ - JPerkg = 165, - /** - * Volume, cubic metre, with the value uncompensated for weather effects. - */ - m3Uncompensated = 166, - /** - * Volume, cubic metre, with the value compensated for weather effects. - */ - m3Compensated = 167, - /** - * Signal Strength, Ratio of power Note: Users may need to supply a prefix such - * as ‘m’ to show rates such as ‘mW/W’. - */ - WPerW = 168, - /** - * Energy, Therm. - */ - therm = 169, - /** - * Wavenumber, reciprocal metre, (1/m). - */ - onePerm = 173, - /** - * Specific volume, cubic metre per kilogram, v. - */ - m3Perkg = 174, - /** - * Dynamic viscosity, Pascal second. - */ - Pas = 175, - /** - * Moment of force, Newton metre. - */ - Nm = 176, - /** - * Surface tension, Newton per metre. - */ - NPerm = 177, - /** - * Angular acceleration, radian per second squared. - */ - radPers2 = 178, - /** - * Heat flux density, irradiance, Watt per square metre. - */ - WPerm2 = 55, - /** - * Specific heat capacity, specific entropy, Joule per kilogram Kelvin. - */ - JPerkgK = 60, - /** - * energy density, Joule per cubic metre. - */ - JPerm3 = 181, - /** - * electric field strength, Volt per metre. - */ - VPerm = 182, - /** - * electric charge density, Coulomb per cubic metre. - */ - CPerm3 = 183, - /** - * surface charge density, Coulomb per square metre. - */ - CPerm2 = 184, - /** - * permittivity, Farad per metre. - */ - FPerm = 185, - /** - * permeability, Henry per metre. - */ - HPerm = 186, - /** - * molar energy, Joule per mole. - */ - JPermol = 187, - /** - * molar entropy, molar heat capacity, Joule per mole kelvin. - */ - JPermolK = 188, - /** - * exposure (x rays), Coulomb per kilogram. - */ - CPerkg = 189, - /** - * absorbed dose rate, Gray per second. - */ - GyPers = 190, - /** - * Radiant intensity, Watt per steradian. - */ - WPersr = 191, - /** - * radiance, Watt per square metre steradian. - */ - WPerm2sr = 192, - /** - * catalytic activity concentration, katal per cubic metre. - */ - katPerm3 = 193, - /** - * Time, day = 24 h = 86400 s. - */ - d = 195, - /** - * Plane angle, minute. - */ - anglemin = 196, - /** - * Plane angle, second. - */ - anglesec = 197, - /** - * Area, hectare. - */ - ha = 198, - /** - * mass, “tonne” or “metric ton” (1000 kg = 1 Mg). - */ - tonne = 199, - /** - * Pressure, bar (1 bar = 100 kPa). - */ - bar = 214, - /** - * Pressure, millimeter of mercury (1 mmHg is approximately 133.3 Pa). - */ - mmHg = 215, - /** - * Length, nautical mile (1 M = 1852 m). - */ - M = 217, - /** - * Speed, knot (1 kn = 1852/3600) m/s. - */ - kn = 219, - /** - * Volt-hour, Volt hours. - */ - Vh = 280, - /** - * Magnetic flux, Maxwell (1 Mx = 10-8 Wb). - */ - Mx = 276, - /** - * Magnetic flux density, Gauss (1 G = 10-4 T). - */ - G = 277, - /** - * Magnetic field, Œrsted (1 Oe = (103/4p) A/m). - */ - Oe = 278, - /** - * Active power per current flow, watt per Ampere. - */ - WPerA, - /** - * Conductance per length (F/m). - */ - SPerm = 57, - /** - * Reciprocal of frequency (1/Hz). - */ - onePerHz, - /** - * Power factor, PF, the ratio of the active power to the apparent power. Note: - * The sign convention used for power factor will differ between IEC meters and - * EEI (ANSI) meters. It is assumed that the data consumers understand the type of - * meter being used and agree on the sign convention in use at any given utility. - */ - VPerVAr, - /** - * Electric resistance per length in ohm per metre ((V/A)/m). - */ - ohmPerm, - /** - * Weigh per energy in kilogram/joule (kg/J). Note: multiplier “k” is included in - * this unit symbol for compatibility with IEC 61850-7-3. - */ - kgPerJ, - /** - * Energy rate joule per second (J/s), - */ - JPers, - /** - * Viscosity in metre square / second (m²/s). - */ - m2Pers = 49, - /** - * Insulation energy density, Joule per square metre or watt second per square - * metre. - */ - JPerm2 = 56, - /** - * Temperature change rate in Kelvin per second. - */ - KPers = 58, - /** - * Pressure change rate in Pascal per second. - */ - PaPers = 59 - }; - - } - - } - -} -#endif // UNITSYMBOL_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/Voltage.cpp b/IEC61970_17v07/IEC61970/Base/Domain/Voltage.cpp deleted file mode 100644 index 9e6a3ec2e..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/Voltage.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// Voltage.cpp -// Implementation of the Class Voltage -/////////////////////////////////////////////////////////// - -#include "Voltage.h" - -using IEC61970::Base::Domain::Voltage; - - -Voltage::Voltage(){ - -} - - - -Voltage::~Voltage(){ - -} - - -const IEC61970::Base::Domain::UnitSymbol Voltage::unit = IEC61970::Base::Domain::UnitSymbol::V; diff --git a/IEC61970_17v07/IEC61970/Base/Domain/Voltage.h b/IEC61970_17v07/IEC61970/Base/Domain/Voltage.h deleted file mode 100644 index 3532ffb7d..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/Voltage.h +++ /dev/null @@ -1,39 +0,0 @@ -/////////////////////////////////////////////////////////// -// Voltage.h -// Implementation of the Class Voltage -/////////////////////////////////////////////////////////// - -#ifndef VOLTAGE_H -#define VOLTAGE_H - -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/UnitSymbol.h" -#include "IEC61970/Base/Domain/Float.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * Electrical voltage, can be both AC and DC. - */ - class Voltage - { - - public: - Voltage(); - virtual ~Voltage(); - IEC61970::Base::Domain::UnitMultiplier multiplier = IEC61970::Base::Domain::UnitMultiplier::_undef; - static const IEC61970::Base::Domain::UnitSymbol unit; - IEC61970::Base::Domain::Float value; - - }; - - } - - } - -} -#endif // VOLTAGE_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/VoltagePerReactivePower.cpp b/IEC61970_17v07/IEC61970/Base/Domain/VoltagePerReactivePower.cpp deleted file mode 100644 index ad4afc0bc..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/VoltagePerReactivePower.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// VoltagePerReactivePower.cpp -// Implementation of the Class VoltagePerReactivePower -/////////////////////////////////////////////////////////// - -#include "VoltagePerReactivePower.h" - -using IEC61970::Base::Domain::VoltagePerReactivePower; - - -VoltagePerReactivePower::VoltagePerReactivePower(){ - -} - - - -VoltagePerReactivePower::~VoltagePerReactivePower(){ - -} - - -const IEC61970::Base::Domain::UnitSymbol VoltagePerReactivePower::unit = IEC61970::Base::Domain::UnitSymbol::VPerVAr; diff --git a/IEC61970_17v07/IEC61970/Base/Domain/VoltagePerReactivePower.h b/IEC61970_17v07/IEC61970/Base/Domain/VoltagePerReactivePower.h deleted file mode 100644 index 2eb46e920..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/VoltagePerReactivePower.h +++ /dev/null @@ -1,39 +0,0 @@ -/////////////////////////////////////////////////////////// -// VoltagePerReactivePower.h -// Implementation of the Class VoltagePerReactivePower -/////////////////////////////////////////////////////////// - -#ifndef VOLTAGEPERREACTIVEPOWER_H -#define VOLTAGEPERREACTIVEPOWER_H - -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/UnitSymbol.h" -#include "IEC61970/Base/Domain/Float.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * Voltage variation with reactive power. - */ - class VoltagePerReactivePower - { - - public: - VoltagePerReactivePower(); - virtual ~VoltagePerReactivePower(); - IEC61970::Base::Domain::UnitMultiplier multiplier = IEC61970::Base::Domain::UnitMultiplier::_undef; - static const IEC61970::Base::Domain::UnitSymbol unit; - IEC61970::Base::Domain::Float value; - - }; - - } - - } - -} -#endif // VOLTAGEPERREACTIVEPOWER_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/Volume.cpp b/IEC61970_17v07/IEC61970/Base/Domain/Volume.cpp deleted file mode 100644 index 00ad3ba1a..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/Volume.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// Volume.cpp -// Implementation of the Class Volume -/////////////////////////////////////////////////////////// - -#include "Volume.h" - -using IEC61970::Base::Domain::Volume; - - -Volume::Volume(){ - -} - - - -Volume::~Volume(){ - -} - - -const IEC61970::Base::Domain::UnitSymbol Volume::unit = IEC61970::Base::Domain::UnitSymbol::m3; diff --git a/IEC61970_17v07/IEC61970/Base/Domain/Volume.h b/IEC61970_17v07/IEC61970/Base/Domain/Volume.h deleted file mode 100644 index 9fd935c0a..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/Volume.h +++ /dev/null @@ -1,39 +0,0 @@ -/////////////////////////////////////////////////////////// -// Volume.h -// Implementation of the Class Volume -/////////////////////////////////////////////////////////// - -#ifndef VOLUME_H -#define VOLUME_H - -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/UnitSymbol.h" -#include "IEC61970/Base/Domain/Float.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * Volume. - */ - class Volume - { - - public: - Volume(); - virtual ~Volume(); - IEC61970::Base::Domain::UnitMultiplier multiplier = IEC61970::Base::Domain::UnitMultiplier::_undef; - static const IEC61970::Base::Domain::UnitSymbol unit; - IEC61970::Base::Domain::Float value; - - }; - - } - - } - -} -#endif // VOLUME_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/VolumeFlowRate.cpp b/IEC61970_17v07/IEC61970/Base/Domain/VolumeFlowRate.cpp deleted file mode 100644 index b1db98325..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/VolumeFlowRate.cpp +++ /dev/null @@ -1,24 +0,0 @@ -/////////////////////////////////////////////////////////// -// VolumeFlowRate.cpp -// Implementation of the Class VolumeFlowRate -// Original author: SELAOST1 -/////////////////////////////////////////////////////////// - -#include "VolumeFlowRate.h" - -using IEC61970::Base::Domain::VolumeFlowRate; - - -VolumeFlowRate::VolumeFlowRate(){ - -} - - - -VolumeFlowRate::~VolumeFlowRate(){ - -} - - -const IEC61970::Base::Domain::UnitMultiplier VolumeFlowRate::multiplier = IEC61970::Base::Domain::UnitMultiplier::none; -const IEC61970::Base::Domain::UnitSymbol VolumeFlowRate::unit = IEC61970::Base::Domain::UnitSymbol::m3Pers; diff --git a/IEC61970_17v07/IEC61970/Base/Domain/VolumeFlowRate.h b/IEC61970_17v07/IEC61970/Base/Domain/VolumeFlowRate.h deleted file mode 100644 index 55e67f9e7..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/VolumeFlowRate.h +++ /dev/null @@ -1,40 +0,0 @@ -/////////////////////////////////////////////////////////// -// VolumeFlowRate.h -// Implementation of the Class VolumeFlowRate -// Original author: SELAOST1 -/////////////////////////////////////////////////////////// - -#ifndef VOLUMEFLOWRATE_H -#define VOLUMEFLOWRATE_H - -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/UnitSymbol.h" -#include "IEC61970/Base/Domain/Float.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * Volume per time. - */ - class VolumeFlowRate - { - - public: - VolumeFlowRate(); - virtual ~VolumeFlowRate(); - static const IEC61970::Base::Domain::UnitMultiplier multiplier; - static const IEC61970::Base::Domain::UnitSymbol unit; - IEC61970::Base::Domain::Float value; - - }; - - } - - } - -} -#endif // VOLUMEFLOWRATE_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/WaterLevel.cpp b/IEC61970_17v07/IEC61970/Base/Domain/WaterLevel.cpp deleted file mode 100644 index 25f16550d..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/WaterLevel.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// WaterLevel.cpp -// Implementation of the Class WaterLevel -/////////////////////////////////////////////////////////// - -#include "WaterLevel.h" - -using IEC61970::Base::Domain::WaterLevel; - - -WaterLevel::WaterLevel(){ - -} - - - -WaterLevel::~WaterLevel(){ - -} - - -const IEC61970::Base::Domain::UnitSymbol WaterLevel::unit = IEC61970::Base::Domain::UnitSymbol::m; diff --git a/IEC61970_17v07/IEC61970/Base/Domain/WaterLevel.h b/IEC61970_17v07/IEC61970/Base/Domain/WaterLevel.h deleted file mode 100644 index 01681ddba..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/WaterLevel.h +++ /dev/null @@ -1,39 +0,0 @@ -/////////////////////////////////////////////////////////// -// WaterLevel.h -// Implementation of the Class WaterLevel -/////////////////////////////////////////////////////////// - -#ifndef WATERLEVEL_H -#define WATERLEVEL_H - -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/UnitSymbol.h" -#include "IEC61970/Base/Domain/Float.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * Reservoir water level referred to a given datum such as mean sea level. - */ - class WaterLevel - { - - public: - WaterLevel(); - virtual ~WaterLevel(); - IEC61970::Base::Domain::UnitMultiplier multiplier = IEC61970::Base::Domain::UnitMultiplier::_undef; - static const IEC61970::Base::Domain::UnitSymbol unit; - IEC61970::Base::Domain::Float value; - - }; - - } - - } - -} -#endif // WATERLEVEL_H diff --git a/IEC61970_17v07/IEC61970/Base/Domain/Weight.cpp b/IEC61970_17v07/IEC61970/Base/Domain/Weight.cpp deleted file mode 100644 index 13a8b7d3f..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/Weight.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// Weight.cpp -// Implementation of the Class Weight -/////////////////////////////////////////////////////////// - -#include "Weight.h" - -using IEC61970::Base::Domain::Weight; - - -Weight::Weight(){ - -} - - - -Weight::~Weight(){ - -} - - -const IEC61970::Base::Domain::UnitSymbol Weight::unit = IEC61970::Base::Domain::UnitSymbol::kg; diff --git a/IEC61970_17v07/IEC61970/Base/Domain/Weight.h b/IEC61970_17v07/IEC61970/Base/Domain/Weight.h deleted file mode 100644 index 376206dc5..000000000 --- a/IEC61970_17v07/IEC61970/Base/Domain/Weight.h +++ /dev/null @@ -1,39 +0,0 @@ -/////////////////////////////////////////////////////////// -// Weight.h -// Implementation of the Class Weight -/////////////////////////////////////////////////////////// - -#ifndef WEIGHT_H -#define WEIGHT_H - -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/UnitSymbol.h" -#include "IEC61970/Base/Domain/Float.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Domain - { - /** - * The weight of an object. - */ - class Weight - { - - public: - Weight(); - virtual ~Weight(); - IEC61970::Base::Domain::UnitMultiplier multiplier = IEC61970::Base::Domain::UnitMultiplier::_undef; - static const IEC61970::Base::Domain::UnitSymbol unit; - IEC61970::Base::Domain::Float value; - - }; - - } - - } - -} -#endif // WEIGHT_H diff --git a/IEC61970_17v07/IEC61970/Base/Equivalents/EquivalentBranch.cpp b/IEC61970_17v07/IEC61970/Base/Equivalents/EquivalentBranch.cpp deleted file mode 100644 index 715577587..000000000 --- a/IEC61970_17v07/IEC61970/Base/Equivalents/EquivalentBranch.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// EquivalentBranch.cpp -// Implementation of the Class EquivalentBranch -/////////////////////////////////////////////////////////// - -#include "EquivalentBranch.h" - -using IEC61970::Base::Equivalents::EquivalentBranch; - - -EquivalentBranch::EquivalentBranch(){ - -} - - - -EquivalentBranch::~EquivalentBranch(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Equivalents/EquivalentBranch.h b/IEC61970_17v07/IEC61970/Base/Equivalents/EquivalentBranch.h deleted file mode 100644 index cd9616ca0..000000000 --- a/IEC61970_17v07/IEC61970/Base/Equivalents/EquivalentBranch.h +++ /dev/null @@ -1,141 +0,0 @@ -/////////////////////////////////////////////////////////// -// EquivalentBranch.h -// Implementation of the Class EquivalentBranch -/////////////////////////////////////////////////////////// - -#ifndef EQUIVALENTBRANCH_H -#define EQUIVALENTBRANCH_H - -#include "IEC61970/Base/Domain/Resistance.h" -#include "IEC61970/Base/Domain/Reactance.h" -#include "IEC61970/Base/Equivalents/EquivalentEquipment.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Equivalents - { - /** - * The class represents equivalent branches. - */ - class EquivalentBranch : public IEC61970::Base::Equivalents::EquivalentEquipment - { - - public: - EquivalentBranch(); - virtual ~EquivalentBranch(); - /** - * Negative sequence series resistance from terminal sequence 1 to terminal - * sequence 2. Used for short circuit data exchange according to IEC 60909 - * EquivalentBranch is a result of network reduction prior to the data exchange - */ - IEC61970::Base::Domain::Resistance negativeR12; - /** - * Negative sequence series resistance from terminal sequence 2 to terminal - * sequence 1. Used for short circuit data exchange according to IEC 60909 - * EquivalentBranch is a result of network reduction prior to the data exchange - */ - IEC61970::Base::Domain::Resistance negativeR21; - /** - * Negative sequence series reactance from terminal sequence 1 to terminal - * sequence 2. Used for short circuit data exchange according to IEC 60909 - * Usage : EquivalentBranch is a result of network reduction prior to the data - * exchange - */ - IEC61970::Base::Domain::Reactance negativeX12; - /** - * Negative sequence series reactance from terminal sequence 2 to terminal - * sequence 1. Used for short circuit data exchange according to IEC 60909. - * Usage: EquivalentBranch is a result of network reduction prior to the data - * exchange - */ - IEC61970::Base::Domain::Reactance negativeX21; - /** - * Positive sequence series resistance from terminal sequence 1 to terminal - * sequence 2 . Used for short circuit data exchange according to IEC 60909. - * EquivalentBranch is a result of network reduction prior to the data exchange. - */ - IEC61970::Base::Domain::Resistance positiveR12; - /** - * Positive sequence series resistance from terminal sequence 2 to terminal - * sequence 1. Used for short circuit data exchange according to IEC 60909 - * EquivalentBranch is a result of network reduction prior to the data exchange - */ - IEC61970::Base::Domain::Resistance positiveR21; - /** - * Positive sequence series reactance from terminal sequence 1 to terminal - * sequence 2. Used for short circuit data exchange according to IEC 60909 - * Usage : EquivalentBranch is a result of network reduction prior to the data - * exchange - */ - IEC61970::Base::Domain::Reactance positiveX12; - /** - * Positive sequence series reactance from terminal sequence 2 to terminal - * sequence 1. Used for short circuit data exchange according to IEC 60909 - * Usage : EquivalentBranch is a result of network reduction prior to the data - * exchange - */ - IEC61970::Base::Domain::Reactance positiveX21; - /** - * Positive sequence series resistance of the reduced branch. - */ - IEC61970::Base::Domain::Resistance r; - /** - * Resistance from terminal sequence 2 to terminal sequence 1 .Used for steady - * state power flow. This attribute is optional and represent unbalanced network - * such as off-nominal phase shifter. If only EquivalentBranch.r is given, then - * EquivalentBranch.r21 is assumed equal to EquivalentBranch.r. - * Usage rule : EquivalentBranch is a result of network reduction prior to the - * data exchange. - */ - IEC61970::Base::Domain::Resistance r21; - /** - * Positive sequence series reactance of the reduced branch. - */ - IEC61970::Base::Domain::Reactance x; - /** - * Reactance from terminal sequence 2 to terminal sequence 1 .Used for steady - * state power flow. This attribute is optional and represent unbalanced network - * such as off-nominal phase shifter. If only EquivalentBranch.x is given, then - * EquivalentBranch.x21 is assumed equal to EquivalentBranch.x. - * Usage rule : EquivalentBranch is a result of network reduction prior to the - * data exchange. - */ - IEC61970::Base::Domain::Reactance x21; - /** - * Zero sequence series resistance from terminal sequence 1 to terminal sequence - * 2. Used for short circuit data exchange according to IEC 60909 - * EquivalentBranch is a result of network reduction prior to the data exchange - */ - IEC61970::Base::Domain::Resistance zeroR12; - /** - * Zero sequence series resistance from terminal sequence 2 to terminal sequence - * 1. Used for short circuit data exchange according to IEC 60909 - * Usage : EquivalentBranch is a result of network reduction prior to the data - * exchange - */ - IEC61970::Base::Domain::Resistance zeroR21; - /** - * Zero sequence series reactance from terminal sequence 1 to terminal sequence 2. - * Used for short circuit data exchange according to IEC 60909 - * Usage : EquivalentBranch is a result of network reduction prior to the data - * exchange - */ - IEC61970::Base::Domain::Reactance zeroX12; - /** - * Zero sequence series reactance from terminal sequence 2 to terminal sequence 1. - * Used for short circuit data exchange according to IEC 60909 - * Usage : EquivalentBranch is a result of network reduction prior to the data - * exchange - */ - IEC61970::Base::Domain::Reactance zeroX21; - - }; - - } - - } - -} -#endif // EQUIVALENTBRANCH_H diff --git a/IEC61970_17v07/IEC61970/Base/Equivalents/EquivalentEquipment.cpp b/IEC61970_17v07/IEC61970/Base/Equivalents/EquivalentEquipment.cpp deleted file mode 100644 index e98102cf5..000000000 --- a/IEC61970_17v07/IEC61970/Base/Equivalents/EquivalentEquipment.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// EquivalentEquipment.cpp -// Implementation of the Class EquivalentEquipment -/////////////////////////////////////////////////////////// - -#include "EquivalentEquipment.h" - -using IEC61970::Base::Equivalents::EquivalentEquipment; - - -EquivalentEquipment::EquivalentEquipment(){ - -} - - - -EquivalentEquipment::~EquivalentEquipment(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Equivalents/EquivalentEquipment.h b/IEC61970_17v07/IEC61970/Base/Equivalents/EquivalentEquipment.h deleted file mode 100644 index 897cf79a1..000000000 --- a/IEC61970_17v07/IEC61970/Base/Equivalents/EquivalentEquipment.h +++ /dev/null @@ -1,35 +0,0 @@ -/////////////////////////////////////////////////////////// -// EquivalentEquipment.h -// Implementation of the Class EquivalentEquipment -/////////////////////////////////////////////////////////// - -#ifndef EQUIVALENTEQUIPMENT_H -#define EQUIVALENTEQUIPMENT_H - -#include "IEC61970/Base/Core/ConductingEquipment.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Equivalents - { - /** - * The class represents equivalent objects that are the result of a network - * reduction. The class is the base for equivalent objects of different types. - */ - class EquivalentEquipment : public IEC61970::Base::Core::ConductingEquipment - { - - public: - EquivalentEquipment(); - virtual ~EquivalentEquipment(); - - }; - - } - - } - -} -#endif // EQUIVALENTEQUIPMENT_H diff --git a/IEC61970_17v07/IEC61970/Base/Equivalents/EquivalentInjection.cpp b/IEC61970_17v07/IEC61970/Base/Equivalents/EquivalentInjection.cpp deleted file mode 100644 index 258de411b..000000000 --- a/IEC61970_17v07/IEC61970/Base/Equivalents/EquivalentInjection.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// EquivalentInjection.cpp -// Implementation of the Class EquivalentInjection -// Original author: KLH -/////////////////////////////////////////////////////////// - -#include "EquivalentInjection.h" - -using IEC61970::Base::Equivalents::EquivalentInjection; - - -EquivalentInjection::EquivalentInjection(){ - -} - - - -EquivalentInjection::~EquivalentInjection(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Equivalents/EquivalentInjection.h b/IEC61970_17v07/IEC61970/Base/Equivalents/EquivalentInjection.h deleted file mode 100644 index 2c8ccd38e..000000000 --- a/IEC61970_17v07/IEC61970/Base/Equivalents/EquivalentInjection.h +++ /dev/null @@ -1,122 +0,0 @@ -/////////////////////////////////////////////////////////// -// EquivalentInjection.h -// Implementation of the Class EquivalentInjection -// Original author: KLH -/////////////////////////////////////////////////////////// - -#ifndef EQUIVALENTINJECTION_H -#define EQUIVALENTINJECTION_H - -#include "IEC61970/Base/Domain/ActivePower.h" -#include "IEC61970/Base/Domain/ReactivePower.h" -#include "IEC61970/Base/Domain/Resistance.h" -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Domain/Voltage.h" -#include "IEC61970/Base/Domain/Reactance.h" -#include "IEC61970/Base/Equivalents/EquivalentEquipment.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Equivalents - { - /** - * This class represents equivalent injections (generation or load). Voltage - * regulation is allowed only at the point of connection. - */ - class EquivalentInjection : public IEC61970::Base::Equivalents::EquivalentEquipment - { - - public: - EquivalentInjection(); - virtual ~EquivalentInjection(); - /** - * Maximum active power of the injection. - */ - IEC61970::Base::Domain::ActivePower maxP; - /** - * Used for modeling of infeed for load flow exchange. Not used for short circuit - * modeling. If maxQ and minQ are not used ReactiveCapabilityCurve can be used. - */ - IEC61970::Base::Domain::ReactivePower maxQ; - /** - * Minimum active power of the injection. - */ - IEC61970::Base::Domain::ActivePower minP; - /** - * Used for modeling of infeed for load flow exchange. Not used for short circuit - * modeling. If maxQ and minQ are not used ReactiveCapabilityCurve can be used. - */ - IEC61970::Base::Domain::ReactivePower minQ; - /** - * Equivalent active power injection. Load sign convention is used, i.e. positive - * sign means flow out from a node. - * Starting value for steady state solutions. - */ - IEC61970::Base::Domain::ActivePower p; - /** - * Equivalent reactive power injection. Load sign convention is used, i.e. - * positive sign means flow out from a node. - * Starting value for steady state solutions. - */ - IEC61970::Base::Domain::ReactivePower q; - /** - * Positive sequence resistance. Used to represent Extended-Ward (IEC 60909). - * Usage : Extended-Ward is a result of network reduction prior to the data - * exchange. - */ - IEC61970::Base::Domain::Resistance r; - /** - * Zero sequence resistance. Used to represent Extended-Ward (IEC 60909). - * Usage : Extended-Ward is a result of network reduction prior to the data - * exchange. - */ - IEC61970::Base::Domain::Resistance r0; - /** - * Negative sequence resistance. Used to represent Extended-Ward (IEC 60909). - * Usage : Extended-Ward is a result of network reduction prior to the data - * exchange. - */ - IEC61970::Base::Domain::Resistance r2; - /** - * Specifies whether or not the EquivalentInjection has the capability to regulate - * the local voltage. - */ - IEC61970::Base::Domain::Boolean regulationCapability; - /** - * Specifies the default regulation status of the EquivalentInjection. True is - * regulating. False is not regulating. - */ - IEC61970::Base::Domain::Boolean regulationStatus; - /** - * The target voltage for voltage regulation. - */ - IEC61970::Base::Domain::Voltage regulationTarget; - /** - * Positive sequence reactance. Used to represent Extended-Ward (IEC 60909). - * Usage : Extended-Ward is a result of network reduction prior to the data - * exchange. - */ - IEC61970::Base::Domain::Reactance x; - /** - * Zero sequence reactance. Used to represent Extended-Ward (IEC 60909). - * Usage : Extended-Ward is a result of network reduction prior to the data - * exchange. - */ - IEC61970::Base::Domain::Reactance x0; - /** - * Negative sequence reactance. Used to represent Extended-Ward (IEC 60909). - * Usage : Extended-Ward is a result of network reduction prior to the data - * exchange. - */ - IEC61970::Base::Domain::Reactance x2; - - }; - - } - - } - -} -#endif // EQUIVALENTINJECTION_H diff --git a/IEC61970_17v07/IEC61970/Base/Equivalents/EquivalentNetwork.cpp b/IEC61970_17v07/IEC61970/Base/Equivalents/EquivalentNetwork.cpp deleted file mode 100644 index 04afba96f..000000000 --- a/IEC61970_17v07/IEC61970/Base/Equivalents/EquivalentNetwork.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// EquivalentNetwork.cpp -// Implementation of the Class EquivalentNetwork -/////////////////////////////////////////////////////////// - -#include "EquivalentNetwork.h" - -using IEC61970::Base::Equivalents::EquivalentNetwork; - - -EquivalentNetwork::EquivalentNetwork(){ - -} - - - -EquivalentNetwork::~EquivalentNetwork(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Equivalents/EquivalentNetwork.h b/IEC61970_17v07/IEC61970/Base/Equivalents/EquivalentNetwork.h deleted file mode 100644 index 1ea8691ca..000000000 --- a/IEC61970_17v07/IEC61970/Base/Equivalents/EquivalentNetwork.h +++ /dev/null @@ -1,45 +0,0 @@ -/////////////////////////////////////////////////////////// -// EquivalentNetwork.h -// Implementation of the Class EquivalentNetwork -/////////////////////////////////////////////////////////// - -#ifndef EQUIVALENTNETWORK_H -#define EQUIVALENTNETWORK_H - -#include - -#include "IEC61970/Base/Equivalents/EquivalentEquipment.h" -#include "IEC61970/Base/Core/ConnectivityNodeContainer.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Equivalents - { - /** - * A class that represents an external meshed network that has been reduced to an - * electrically equivalent model. The ConnectivityNodes contained in the - * equivalent are intended to reflect internal nodes of the equivalent. The - * boundary Connectivity nodes where the equivalent connects outside itself are - * NOT contained by the equivalent. - */ - class EquivalentNetwork : public IEC61970::Base::Core::ConnectivityNodeContainer - { - - public: - EquivalentNetwork(); - virtual ~EquivalentNetwork(); - /** - * The associated reduced equivalents. - */ - std::list EquivalentEquipments; - - }; - - } - - } - -} -#endif // EQUIVALENTNETWORK_H diff --git a/IEC61970_17v07/IEC61970/Base/Equivalents/EquivalentShunt.cpp b/IEC61970_17v07/IEC61970/Base/Equivalents/EquivalentShunt.cpp deleted file mode 100644 index b6c497b67..000000000 --- a/IEC61970_17v07/IEC61970/Base/Equivalents/EquivalentShunt.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// EquivalentShunt.cpp -// Implementation of the Class EquivalentShunt -/////////////////////////////////////////////////////////// - -#include "EquivalentShunt.h" - -using IEC61970::Base::Equivalents::EquivalentShunt; - - -EquivalentShunt::EquivalentShunt(){ - -} - - - -EquivalentShunt::~EquivalentShunt(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Equivalents/EquivalentShunt.h b/IEC61970_17v07/IEC61970/Base/Equivalents/EquivalentShunt.h deleted file mode 100644 index 67084ee01..000000000 --- a/IEC61970_17v07/IEC61970/Base/Equivalents/EquivalentShunt.h +++ /dev/null @@ -1,44 +0,0 @@ -/////////////////////////////////////////////////////////// -// EquivalentShunt.h -// Implementation of the Class EquivalentShunt -/////////////////////////////////////////////////////////// - -#ifndef EQUIVALENTSHUNT_H -#define EQUIVALENTSHUNT_H - -#include "IEC61970/Base/Domain/Susceptance.h" -#include "IEC61970/Base/Domain/Conductance.h" -#include "IEC61970/Base/Equivalents/EquivalentEquipment.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Equivalents - { - /** - * The class represents equivalent shunts. - */ - class EquivalentShunt : public IEC61970::Base::Equivalents::EquivalentEquipment - { - - public: - EquivalentShunt(); - virtual ~EquivalentShunt(); - /** - * Positive sequence shunt susceptance. - */ - IEC61970::Base::Domain::Susceptance b; - /** - * Positive sequence shunt conductance. - */ - IEC61970::Base::Domain::Conductance g; - - }; - - } - - } - -} -#endif // EQUIVALENTSHUNT_H diff --git a/IEC61970_17v07/IEC61970/Base/Faults/EquipmentFault.cpp b/IEC61970_17v07/IEC61970/Base/Faults/EquipmentFault.cpp deleted file mode 100644 index 49dc68ded..000000000 --- a/IEC61970_17v07/IEC61970/Base/Faults/EquipmentFault.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// EquipmentFault.cpp -// Implementation of the Class EquipmentFault -// Original author: kdemaree -/////////////////////////////////////////////////////////// - -#include "EquipmentFault.h" - -using IEC61970::Base::Faults::EquipmentFault; - - -EquipmentFault::EquipmentFault() - : Terminal(nullptr) -{ - -} - - - -EquipmentFault::~EquipmentFault(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Faults/EquipmentFault.h b/IEC61970_17v07/IEC61970/Base/Faults/EquipmentFault.h deleted file mode 100644 index 355448f97..000000000 --- a/IEC61970_17v07/IEC61970/Base/Faults/EquipmentFault.h +++ /dev/null @@ -1,41 +0,0 @@ -/////////////////////////////////////////////////////////// -// EquipmentFault.h -// Implementation of the Class EquipmentFault -// Original author: kdemaree -/////////////////////////////////////////////////////////// - -#ifndef EQUIPMENTFAULT_H -#define EQUIPMENTFAULT_H - -#include "IEC61970/Base/Core/Terminal.h" -#include "IEC61970/Base/Faults/Fault.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Faults - { - /** - * A fault applied at the terminal, external to the equipment. This class is not - * used to specify faults internal to the equipment. - */ - class EquipmentFault : public IEC61970::Base::Faults::Fault - { - - public: - EquipmentFault(); - virtual ~EquipmentFault(); - /** - * The terminal connecting to the bus to which the fault is applied. - */ - IEC61970::Base::Core::Terminal *Terminal; - - }; - - } - - } - -} -#endif // EQUIPMENTFAULT_H diff --git a/IEC61970_17v07/IEC61970/Base/Faults/Fault.cpp b/IEC61970_17v07/IEC61970/Base/Faults/Fault.cpp deleted file mode 100644 index 44e87b36a..000000000 --- a/IEC61970_17v07/IEC61970/Base/Faults/Fault.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// Fault.cpp -// Implementation of the Class Fault -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#include "Fault.h" - -using IEC61970::Base::Faults::Fault; - - -Fault::Fault() - : FaultyEquipment(nullptr) -{ - -} - - - -Fault::~Fault(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Faults/Fault.h b/IEC61970_17v07/IEC61970/Base/Faults/Fault.h deleted file mode 100644 index dbaa939bd..000000000 --- a/IEC61970_17v07/IEC61970/Base/Faults/Fault.h +++ /dev/null @@ -1,65 +0,0 @@ -/////////////////////////////////////////////////////////// -// Fault.h -// Implementation of the Class Fault -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#ifndef FAULT_H -#define FAULT_H - -#include - -#include "IEC61970/Base/Faults/FaultImpedance.h" -#include "IEC61970/Base/Faults/PhaseConnectedFaultKind.h" -#include "IEC61970/Base/Core/PhaseCode.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" -#include "IEC61970/Base/Core/Equipment.h" -#include "IEC61970/Base/Faults/FaultCauseType.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Faults - { - /** - * Abnormal condition causing current flow through conducting equipment, such as - * caused by equipment failure or short circuits from objects not typically - * modeled (for example, a tree falling on a line). - */ - class Fault : public IEC61970::Base::Core::IdentifiedObject - { - - public: - Fault(); - virtual ~Fault(); - /** - * Fault impedance. Its usage is described by 'kind'. - */ - IEC61970::Base::Faults::FaultImpedance impedance; - /** - * The kind of phase fault. - */ - IEC61970::Base::Faults::PhaseConnectedFaultKind kind = IEC61970::Base::Faults::PhaseConnectedFaultKind::_undef; - /** - * The phases participating in the fault. The fault connections into these phases - * are further specified by the type of fault. - */ - IEC61970::Base::Core::PhaseCode phases = IEC61970::Base::Core::PhaseCode::_undef; - /** - * Equipment carrying this fault. - */ - IEC61970::Base::Core::Equipment *FaultyEquipment; - /** - * All types of fault cause. - */ - std::list FaultCauseTypes; - - }; - - } - - } - -} -#endif // FAULT_H diff --git a/IEC61970_17v07/IEC61970/Base/Faults/FaultCauseType.cpp b/IEC61970_17v07/IEC61970/Base/Faults/FaultCauseType.cpp deleted file mode 100644 index c0d05424a..000000000 --- a/IEC61970_17v07/IEC61970/Base/Faults/FaultCauseType.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// FaultCauseType.cpp -// Implementation of the Class FaultCauseType -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#include "FaultCauseType.h" - -using IEC61970::Base::Faults::FaultCauseType; - - -FaultCauseType::FaultCauseType(){ - -} - - - -FaultCauseType::~FaultCauseType(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Faults/FaultCauseType.h b/IEC61970_17v07/IEC61970/Base/Faults/FaultCauseType.h deleted file mode 100644 index f09d9259a..000000000 --- a/IEC61970_17v07/IEC61970/Base/Faults/FaultCauseType.h +++ /dev/null @@ -1,35 +0,0 @@ -/////////////////////////////////////////////////////////// -// FaultCauseType.h -// Implementation of the Class FaultCauseType -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#ifndef FAULTCAUSETYPE_H -#define FAULTCAUSETYPE_H - -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Faults - { - /** - * Type of cause of the fault. - */ - class FaultCauseType : public IEC61970::Base::Core::IdentifiedObject - { - - public: - FaultCauseType(); - virtual ~FaultCauseType(); - - }; - - } - - } - -} -#endif // FAULTCAUSETYPE_H diff --git a/IEC61970_17v07/IEC61970/Base/Faults/FaultImpedance.cpp b/IEC61970_17v07/IEC61970/Base/Faults/FaultImpedance.cpp deleted file mode 100644 index b3442491f..000000000 --- a/IEC61970_17v07/IEC61970/Base/Faults/FaultImpedance.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// FaultImpedance.cpp -// Implementation of the Class FaultImpedance -// Original author: kdemaree -/////////////////////////////////////////////////////////// - -#include "FaultImpedance.h" - -using IEC61970::Base::Faults::FaultImpedance; - - -FaultImpedance::FaultImpedance(){ - -} - - - -FaultImpedance::~FaultImpedance(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Faults/FaultImpedance.h b/IEC61970_17v07/IEC61970/Base/Faults/FaultImpedance.h deleted file mode 100644 index 811f114a2..000000000 --- a/IEC61970_17v07/IEC61970/Base/Faults/FaultImpedance.h +++ /dev/null @@ -1,53 +0,0 @@ -/////////////////////////////////////////////////////////// -// FaultImpedance.h -// Implementation of the Class FaultImpedance -// Original author: kdemaree -/////////////////////////////////////////////////////////// - -#ifndef FAULTIMPEDANCE_H -#define FAULTIMPEDANCE_H - -#include "BaseClass.h" -#include "IEC61970/Base/Domain/Resistance.h" -#include "IEC61970/Base/Domain/Reactance.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Faults - { - /** - * Impedance description for the fault. - */ - class FaultImpedance : public BaseClass - { - - public: - FaultImpedance(); - virtual ~FaultImpedance(); - /** - * The resistance of the fault between phases and ground. - */ - IEC61970::Base::Domain::Resistance rGround; - /** - * The resistance of the fault between phases. - */ - IEC61970::Base::Domain::Resistance rLineToLine; - /** - * The reactance of the fault between phases and ground. - */ - IEC61970::Base::Domain::Reactance xGround; - /** - * The reactance of the fault between phases. - */ - IEC61970::Base::Domain::Reactance xLineToLine; - - }; - - } - - } - -} -#endif // FAULTIMPEDANCE_H diff --git a/IEC61970_17v07/IEC61970/Base/Faults/LineFault.cpp b/IEC61970_17v07/IEC61970/Base/Faults/LineFault.cpp deleted file mode 100644 index 246df6177..000000000 --- a/IEC61970_17v07/IEC61970/Base/Faults/LineFault.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// LineFault.cpp -// Implementation of the Class LineFault -// Original author: kdemaree -/////////////////////////////////////////////////////////// - -#include "LineFault.h" - -using IEC61970::Base::Faults::LineFault; - - -LineFault::LineFault() - : ACLineSegment(nullptr) -{ - -} - - - -LineFault::~LineFault(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Faults/LineFault.h b/IEC61970_17v07/IEC61970/Base/Faults/LineFault.h deleted file mode 100644 index 955aac0e2..000000000 --- a/IEC61970_17v07/IEC61970/Base/Faults/LineFault.h +++ /dev/null @@ -1,46 +0,0 @@ -/////////////////////////////////////////////////////////// -// LineFault.h -// Implementation of the Class LineFault -// Original author: kdemaree -/////////////////////////////////////////////////////////// - -#ifndef LINEFAULT_H -#define LINEFAULT_H - -#include "IEC61970/Base/Domain/Length.h" -#include "IEC61970/Base/Wires/ACLineSegment.h" -#include "IEC61970/Base/Faults/Fault.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Faults - { - /** - * A fault that occurs on an AC line segment at some point along the length. - */ - class LineFault : public IEC61970::Base::Faults::Fault - { - - public: - LineFault(); - virtual ~LineFault(); - /** - * The length to the place where the fault is located starting from terminal with - * sequence number 1 of the faulted line segment. - */ - IEC61970::Base::Domain::Length lengthFromTerminal1; - /** - * The line segment of this line fault. - */ - IEC61970::Base::Wires::ACLineSegment *ACLineSegment; - - }; - - } - - } - -} -#endif // LINEFAULT_H diff --git a/IEC61970_17v07/IEC61970/Base/Faults/PhaseConnectedFaultKind.h b/IEC61970_17v07/IEC61970/Base/Faults/PhaseConnectedFaultKind.h deleted file mode 100644 index a86da02c4..000000000 --- a/IEC61970_17v07/IEC61970/Base/Faults/PhaseConnectedFaultKind.h +++ /dev/null @@ -1,52 +0,0 @@ -/////////////////////////////////////////////////////////// -// PhaseConnectedFaultKind.h -// Implementation of the Class PhaseConnectedFaultKind -// Original author: kdemaree -/////////////////////////////////////////////////////////// - -#ifndef PHASECONNECTEDFAULTKIND_H -#define PHASECONNECTEDFAULTKIND_H - -namespace IEC61970 -{ - namespace Base - { - namespace Faults - { - /** - * The type of fault connection among phases. - */ - enum class PhaseConnectedFaultKind - { - /** - * The fault connects the indicated phases to ground. The line to line fault - * impedance is not used and assumed infinite. The full ground impedance is - * connected between each phase specified in the fault and ground, but not between - * the phases. - */ - _undef = -1, lineToGround, - /** - * The fault connects the specified phases together without a connection to ground. - * The ground impedance of this fault is ignored. The line to line impedance is - * connected between each of the phases specified in the fault. For example three - * times for a three phase fault, one time for a two phase fault. A single phase - * fault should not be specified. - */ - lineToLine, - /** - * The fault connects the indicated phases to ground and to each other. The line - * to line impedance is connected between each of the phases specified in the - * fault in a full mesh. For example three times for a three phase fault, one time - * for a two phase fault. A single phase fault should not be specified. The full - * ground impedance is connected between each phase specified in the fault and - * ground. - */ - lineToLineToGround - }; - - } - - } - -} -#endif // PHASECONNECTEDFAULTKIND_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/BWRSteamSupply.cpp b/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/BWRSteamSupply.cpp deleted file mode 100644 index a6907a57d..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/BWRSteamSupply.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// BWRSteamSupply.cpp -// Implementation of the Class BWRSteamSupply -/////////////////////////////////////////////////////////// - -#include "BWRSteamSupply.h" - -using IEC61970::Base::Generation::GenerationTrainingSimulation::BWRSteamSupply; - - -BWRSteamSupply::BWRSteamSupply(){ - -} - - - -BWRSteamSupply::~BWRSteamSupply(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/BWRSteamSupply.h b/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/BWRSteamSupply.h deleted file mode 100644 index 9c90497c8..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/BWRSteamSupply.h +++ /dev/null @@ -1,133 +0,0 @@ -/////////////////////////////////////////////////////////// -// BWRSteamSupply.h -// Implementation of the Class BWRSteamSupply -/////////////////////////////////////////////////////////// - -#ifndef BWRSTEAMSUPPLY_H -#define BWRSTEAMSUPPLY_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Generation/GenerationTrainingSimulation/SteamSupply.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace GenerationTrainingSimulation - { - /** - * Boiling water reactor used as a steam supply to a steam turbine. - */ - class BWRSteamSupply : public IEC61970::Base::Generation::GenerationTrainingSimulation::SteamSupply - { - - public: - BWRSteamSupply(); - virtual ~BWRSteamSupply(); - /** - * High power limit. - */ - IEC61970::Base::Domain::PU highPowerLimit; - /** - * In-core thermal time constant. - */ - IEC61970::Base::Domain::Seconds inCoreThermalTC; - /** - * Integral gain. - */ - IEC61970::Base::Domain::Float integralGain; - /** - * Initial lower limit. - */ - IEC61970::Base::Domain::PU lowerLimit; - /** - * Low power limit. - */ - IEC61970::Base::Domain::PU lowPowerLimit; - /** - * Pressure limit. - */ - IEC61970::Base::Domain::PU pressureLimit; - /** - * Pressure setpoint gain adjuster. - */ - IEC61970::Base::Domain::Float pressureSetpointGA; - /** - * Pressure setpoint time constant. - */ - IEC61970::Base::Domain::Seconds pressureSetpointTC1; - /** - * Pressure setpoint time constant. - */ - IEC61970::Base::Domain::Seconds pressureSetpointTC2; - /** - * Proportional gain. - */ - IEC61970::Base::Domain::Float proportionalGain; - /** - * Coefficient for modeling the effect of off-nominal frequency and voltage on - * recirculation and core flow, which affects the BWR power output. - */ - IEC61970::Base::Domain::PU rfAux1; - /** - * Coefficient for modeling the effect of off-nominal frequency and voltage on - * recirculation and core flow, which affects the BWR power output. - */ - IEC61970::Base::Domain::PU rfAux2; - /** - * Coefficient for modeling the effect of off-nominal frequency and voltage on - * recirculation and core flow, which affects the BWR power output. - */ - IEC61970::Base::Domain::PU rfAux3; - /** - * Coefficient for modeling the effect of off-nominal frequency and voltage on - * recirculation and core flow, which affects the BWR power output. - */ - IEC61970::Base::Domain::PU rfAux4; - /** - * Coefficient for modeling the effect of off-nominal frequency and voltage on - * recirculation and core flow, which affects the BWR power output. - */ - IEC61970::Base::Domain::PU rfAux5; - /** - * Coefficient for modeling the effect of off-nominal frequency and voltage on - * recirculation and core flow, which affects the BWR power output. - */ - IEC61970::Base::Domain::PU rfAux6; - /** - * Coefficient for modeling the effect of off-nominal frequency and voltage on - * recirculation and core flow, which affects the BWR power output. - */ - IEC61970::Base::Domain::PU rfAux7; - /** - * Coefficient for modeling the effect of off-nominal frequency and voltage on - * recirculation and core flow, which affects the BWR power output. - */ - IEC61970::Base::Domain::PU rfAux8; - /** - * Rod pattern. - */ - IEC61970::Base::Domain::PU rodPattern; - /** - * Constant associated with rod pattern. - */ - IEC61970::Base::Domain::Float rodPatternConstant; - /** - * Initial upper limit. - */ - IEC61970::Base::Domain::PU upperLimit; - - }; - - } - - } - - } - -} -#endif // BWRSTEAMSUPPLY_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/BoilerControlMode.h b/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/BoilerControlMode.h deleted file mode 100644 index 19d13f9c5..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/BoilerControlMode.h +++ /dev/null @@ -1,39 +0,0 @@ -/////////////////////////////////////////////////////////// -// BoilerControlMode.h -// Implementation of the Class BoilerControlMode -/////////////////////////////////////////////////////////// - -#ifndef BOILERCONTROLMODE_H -#define BOILERCONTROLMODE_H - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace GenerationTrainingSimulation - { - /** - * Boiler control mode. - */ - enum class BoilerControlMode - { - /** - * Following. - */ - _undef = -1, following, - /** - * Coordinated. - */ - coordinated - }; - - } - - } - - } - -} -#endif // BOILERCONTROLMODE_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/CTTempActivePowerCurve.cpp b/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/CTTempActivePowerCurve.cpp deleted file mode 100644 index 3c451f894..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/CTTempActivePowerCurve.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// CTTempActivePowerCurve.cpp -// Implementation of the Class CTTempActivePowerCurve -/////////////////////////////////////////////////////////// - -#include "CTTempActivePowerCurve.h" - -using IEC61970::Base::Generation::GenerationTrainingSimulation::CTTempActivePowerCurve; - - -CTTempActivePowerCurve::CTTempActivePowerCurve(){ - -} - - - -CTTempActivePowerCurve::~CTTempActivePowerCurve(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/CTTempActivePowerCurve.h b/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/CTTempActivePowerCurve.h deleted file mode 100644 index db413ea75..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/CTTempActivePowerCurve.h +++ /dev/null @@ -1,39 +0,0 @@ -/////////////////////////////////////////////////////////// -// CTTempActivePowerCurve.h -// Implementation of the Class CTTempActivePowerCurve -/////////////////////////////////////////////////////////// - -#ifndef CTTEMPACTIVEPOWERCURVE_H -#define CTTEMPACTIVEPOWERCURVE_H - -#include "IEC61970/Base/Core/Curve.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace GenerationTrainingSimulation - { - /** - * Relationship between the combustion turbine's power output rating in gross - * active power (X-axis) and the ambient air temperature (Y-axis). - */ - class CTTempActivePowerCurve : public IEC61970::Base::Core::Curve - { - - public: - CTTempActivePowerCurve(); - virtual ~CTTempActivePowerCurve(); - - }; - - } - - } - - } - -} -#endif // CTTEMPACTIVEPOWERCURVE_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/CombustionTurbine.cpp b/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/CombustionTurbine.cpp deleted file mode 100644 index 28d5c8c7e..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/CombustionTurbine.cpp +++ /dev/null @@ -1,21 +0,0 @@ -/////////////////////////////////////////////////////////// -// CombustionTurbine.cpp -// Implementation of the Class CombustionTurbine -/////////////////////////////////////////////////////////// - -#include "CombustionTurbine.h" - -using IEC61970::Base::Generation::GenerationTrainingSimulation::CombustionTurbine; - - -CombustionTurbine::CombustionTurbine() - : AirCompressor(nullptr), CTTempActivePowerCurve(nullptr) -{ - -} - - - -CombustionTurbine::~CombustionTurbine(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/CombustionTurbine.h b/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/CombustionTurbine.h deleted file mode 100644 index 27cea2042..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/CombustionTurbine.h +++ /dev/null @@ -1,92 +0,0 @@ -/////////////////////////////////////////////////////////// -// CombustionTurbine.h -// Implementation of the Class CombustionTurbine -/////////////////////////////////////////////////////////// - -#ifndef COMBUSTIONTURBINE_H -#define COMBUSTIONTURBINE_H - -#include "IEC61970/Base/Domain/Temperature.h" -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Generation/Production/AirCompressor.h" -#include "IEC61970/Base/Generation/GenerationTrainingSimulation/PrimeMover.h" -#include "IEC61970/Base/Generation/GenerationTrainingSimulation/CTTempActivePowerCurve.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace GenerationTrainingSimulation - { - /** - * A prime mover that is typically fueled by gas or light oil. - */ - class CombustionTurbine : public IEC61970::Base::Generation::GenerationTrainingSimulation::PrimeMover - { - - public: - CombustionTurbine(); - virtual ~CombustionTurbine(); - /** - * Default ambient temperature to be used in modeling applications. - */ - IEC61970::Base::Domain::Temperature ambientTemp; - /** - * Off-nominal frequency effect on turbine auxiliaries. Per unit reduction in - * auxiliary active power consumption versus per unit reduction in frequency (from - * rated frequency). - */ - IEC61970::Base::Domain::PU auxPowerVersusFrequency; - /** - * Off-nominal voltage effect on turbine auxiliaries. Per unit reduction in - * auxiliary active power consumption versus per unit reduction in auxiliary bus - * voltage (from a specified voltage level). - */ - IEC61970::Base::Domain::PU auxPowerVersusVoltage; - /** - * Off-nominal frequency effect on turbine capability. Per unit reduction in unit - * active power capability versus per unit reduction in frequency (from rated - * frequency). - */ - IEC61970::Base::Domain::PU capabilityVersusFrequency; - /** - * Flag that is set to true if the combustion turbine is associated with a heat - * recovery boiler. - */ - IEC61970::Base::Domain::Boolean heatRecoveryFlag; - /** - * Per unit change in power per (versus) unit change in ambient temperature. - */ - IEC61970::Base::Domain::PU powerVariationByTemp; - /** - * Reference temperature at which the output of the turbine was defined. - */ - IEC61970::Base::Domain::Temperature referenceTemp; - /** - * The time constant for the turbine. - */ - IEC61970::Base::Domain::Seconds timeConstant; - /** - * A CAES air compressor is driven by combustion turbine. - */ - IEC61970::Base::Generation::Production::AirCompressor *AirCompressor; - /** - * A combustion turbine may have an active power versus ambient temperature - * relationship. - */ - IEC61970::Base::Generation::GenerationTrainingSimulation::CTTempActivePowerCurve *CTTempActivePowerCurve; - - }; - - } - - } - - } - -} -#endif // COMBUSTIONTURBINE_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/DrumBoiler.cpp b/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/DrumBoiler.cpp deleted file mode 100644 index 4f3712b1f..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/DrumBoiler.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// DrumBoiler.cpp -// Implementation of the Class DrumBoiler -/////////////////////////////////////////////////////////// - -#include "DrumBoiler.h" - -using IEC61970::Base::Generation::GenerationTrainingSimulation::DrumBoiler; - - -DrumBoiler::DrumBoiler(){ - -} - - - -DrumBoiler::~DrumBoiler(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/DrumBoiler.h b/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/DrumBoiler.h deleted file mode 100644 index 862e3358b..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/DrumBoiler.h +++ /dev/null @@ -1,43 +0,0 @@ -/////////////////////////////////////////////////////////// -// DrumBoiler.h -// Implementation of the Class DrumBoiler -/////////////////////////////////////////////////////////// - -#ifndef DRUMBOILER_H -#define DRUMBOILER_H - -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Generation/GenerationTrainingSimulation/FossilSteamSupply.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace GenerationTrainingSimulation - { - /** - * Drum boiler. - */ - class DrumBoiler : public IEC61970::Base::Generation::GenerationTrainingSimulation::FossilSteamSupply - { - - public: - DrumBoiler(); - virtual ~DrumBoiler(); - /** - * Rating of drum boiler in steam units. - */ - IEC61970::Base::Domain::Float drumBoilerRating; - - }; - - } - - } - - } - -} -#endif // DRUMBOILER_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/FossilSteamSupply.cpp b/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/FossilSteamSupply.cpp deleted file mode 100644 index 6c265ac2a..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/FossilSteamSupply.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// FossilSteamSupply.cpp -// Implementation of the Class FossilSteamSupply -/////////////////////////////////////////////////////////// - -#include "FossilSteamSupply.h" - -using IEC61970::Base::Generation::GenerationTrainingSimulation::FossilSteamSupply; - - -FossilSteamSupply::FossilSteamSupply(){ - -} - - - -FossilSteamSupply::~FossilSteamSupply(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/FossilSteamSupply.h b/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/FossilSteamSupply.h deleted file mode 100644 index 245c43a43..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/FossilSteamSupply.h +++ /dev/null @@ -1,149 +0,0 @@ -/////////////////////////////////////////////////////////// -// FossilSteamSupply.h -// Implementation of the Class FossilSteamSupply -/////////////////////////////////////////////////////////// - -#ifndef FOSSILSTEAMSUPPLY_H -#define FOSSILSTEAMSUPPLY_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Generation/GenerationTrainingSimulation/BoilerControlMode.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Domain/Integer.h" -#include "IEC61970/Base/Generation/GenerationTrainingSimulation/SteamSupply.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace GenerationTrainingSimulation - { - /** - * Fossil fueled boiler (e.g., coal, oil, gas). - */ - class FossilSteamSupply : public IEC61970::Base::Generation::GenerationTrainingSimulation::SteamSupply - { - - public: - FossilSteamSupply(); - virtual ~FossilSteamSupply(); - /** - * Off nominal frequency effect on auxiliary real power. Per unit active power - * variation versus per unit frequency variation. - */ - IEC61970::Base::Domain::PU auxPowerVersusFrequency; - /** - * Off nominal voltage effect on auxiliary real power. Per unit active power - * variation versus per unit voltage variation. - */ - IEC61970::Base::Domain::PU auxPowerVersusVoltage; - /** - * The control mode of the boiler. - */ - IEC61970::Base::Generation::GenerationTrainingSimulation::BoilerControlMode boilerControlMode = IEC61970::Base::Generation::GenerationTrainingSimulation::BoilerControlMode::_undef; - /** - * Active power error bias ratio. - */ - IEC61970::Base::Domain::Float controlErrorBiasP; - /** - * Integral constant. - */ - IEC61970::Base::Domain::Float controlIC; - /** - * Proportional constant. - */ - IEC61970::Base::Domain::Float controlPC; - /** - * Pressure error bias ratio. - */ - IEC61970::Base::Domain::Float controlPEB; - /** - * Pressure error deadband. - */ - IEC61970::Base::Domain::PU controlPED; - /** - * Time constant. - */ - IEC61970::Base::Domain::Float controlTC; - /** - * Feedwater integral gain ratio. - */ - IEC61970::Base::Domain::Float feedWaterIG; - /** - * Feedwater proportional gain ratio. - */ - IEC61970::Base::Domain::Float feedWaterPG; - /** - * Feedwater time constant rato. - */ - IEC61970::Base::Domain::Seconds feedWaterTC; - /** - * Fuel demand limit. - */ - IEC61970::Base::Domain::PU fuelDemandLimit; - /** - * Fuel delay. - */ - IEC61970::Base::Domain::Seconds fuelSupplyDelay; - /** - * Fuel supply time constant. - */ - IEC61970::Base::Domain::Seconds fuelSupplyTC; - /** - * Active power maximum error rate limit. - */ - IEC61970::Base::Domain::Float maxErrorRateP; - /** - * Mechanical power sensor lag. - */ - IEC61970::Base::Domain::Seconds mechPowerSensorLag; - /** - * Active power minimum error rate limit. - */ - IEC61970::Base::Domain::Float minErrorRateP; - /** - * Pressure control derivative gain ratio. - */ - IEC61970::Base::Domain::Float pressureCtrlDG; - /** - * Pressure control integral gain ratio. - */ - IEC61970::Base::Domain::Float pressureCtrlIG; - /** - * Pressure control proportional gain ratio. - */ - IEC61970::Base::Domain::Float pressureCtrlPG; - /** - * Pressure feedback indicator. - */ - IEC61970::Base::Domain::Integer pressureFeedback; - /** - * Drum/primary superheater capacity. - */ - IEC61970::Base::Domain::Float superHeater1Capacity; - /** - * Secondary superheater capacity. - */ - IEC61970::Base::Domain::Float superHeater2Capacity; - /** - * Superheater pipe pressure drop constant. - */ - IEC61970::Base::Domain::Float superHeaterPipePD; - /** - * Throttle pressure setpoint. - */ - IEC61970::Base::Domain::PU throttlePressureSP; - - }; - - } - - } - - } - -} -#endif // FOSSILSTEAMSUPPLY_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/HeatRecoveryBoiler.cpp b/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/HeatRecoveryBoiler.cpp deleted file mode 100644 index 647e7c3cf..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/HeatRecoveryBoiler.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// HeatRecoveryBoiler.cpp -// Implementation of the Class HeatRecoveryBoiler -/////////////////////////////////////////////////////////// - -#include "HeatRecoveryBoiler.h" - -using IEC61970::Base::Generation::GenerationTrainingSimulation::HeatRecoveryBoiler; - - -HeatRecoveryBoiler::HeatRecoveryBoiler(){ - -} - - - -HeatRecoveryBoiler::~HeatRecoveryBoiler(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/HeatRecoveryBoiler.h b/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/HeatRecoveryBoiler.h deleted file mode 100644 index 7819d32ce..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/HeatRecoveryBoiler.h +++ /dev/null @@ -1,51 +0,0 @@ -/////////////////////////////////////////////////////////// -// HeatRecoveryBoiler.h -// Implementation of the Class HeatRecoveryBoiler -/////////////////////////////////////////////////////////// - -#ifndef HEATRECOVERYBOILER_H -#define HEATRECOVERYBOILER_H - -#include - -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Generation/GenerationTrainingSimulation/CombustionTurbine.h" -#include "IEC61970/Base/Generation/GenerationTrainingSimulation/FossilSteamSupply.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace GenerationTrainingSimulation - { - /** - * The heat recovery system associated with combustion turbines in order to - * produce steam for combined cycle plants. - */ - class HeatRecoveryBoiler : public IEC61970::Base::Generation::GenerationTrainingSimulation::FossilSteamSupply - { - - public: - HeatRecoveryBoiler(); - virtual ~HeatRecoveryBoiler(); - /** - * The steam supply rating in kilopounds per hour, if dual pressure boiler. - */ - IEC61970::Base::Domain::Float steamSupplyRating2; - /** - * A combustion turbine may have a heat recovery boiler for making steam. - */ - std::list CombustionTurbines; - - }; - - } - - } - - } - -} -#endif // HEATRECOVERYBOILER_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/HydroTurbine.cpp b/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/HydroTurbine.cpp deleted file mode 100644 index f5f43a332..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/HydroTurbine.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// HydroTurbine.cpp -// Implementation of the Class HydroTurbine -/////////////////////////////////////////////////////////// - -#include "HydroTurbine.h" - -using IEC61970::Base::Generation::GenerationTrainingSimulation::HydroTurbine; - - -HydroTurbine::HydroTurbine(){ - -} - - - -HydroTurbine::~HydroTurbine(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/HydroTurbine.h b/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/HydroTurbine.h deleted file mode 100644 index 64f7fd6a7..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/HydroTurbine.h +++ /dev/null @@ -1,89 +0,0 @@ -/////////////////////////////////////////////////////////// -// HydroTurbine.h -// Implementation of the Class HydroTurbine -/////////////////////////////////////////////////////////// - -#ifndef HYDROTURBINE_H -#define HYDROTURBINE_H - -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/ActivePower.h" -#include "IEC61970/Base/Domain/RotationSpeed.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Generation/GenerationTrainingSimulation/TurbineType.h" -#include "IEC61970/Base/Generation/GenerationTrainingSimulation/PrimeMover.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace GenerationTrainingSimulation - { - /** - * A water driven prime mover. Typical turbine types are: Francis, Kaplan, and - * Pelton. - */ - class HydroTurbine : public IEC61970::Base::Generation::GenerationTrainingSimulation::PrimeMover - { - - public: - HydroTurbine(); - virtual ~HydroTurbine(); - /** - * Gate rate limit. - */ - IEC61970::Base::Domain::Float gateRateLimit; - /** - * Gate upper limit. - */ - IEC61970::Base::Domain::PU gateUpperLimit; - /** - * Maximum efficiency active power at maximum head conditions. - */ - IEC61970::Base::Domain::ActivePower maxHeadMaxP; - /** - * Maximum efficiency active power at minimum head conditions. - */ - IEC61970::Base::Domain::ActivePower minHeadMaxP; - /** - * Rated speed in number of revolutions. - */ - IEC61970::Base::Domain::RotationSpeed speedRating; - /** - * Speed regulation. - */ - IEC61970::Base::Domain::PU speedRegulation; - /** - * Transient droop time constant. - */ - IEC61970::Base::Domain::Seconds transientDroopTime; - /** - * Transient regulation. - */ - IEC61970::Base::Domain::PU transientRegulation; - /** - * Rated turbine active power. - */ - IEC61970::Base::Domain::ActivePower turbineRating; - /** - * Type of turbine. - */ - IEC61970::Base::Generation::GenerationTrainingSimulation::TurbineType turbineType = IEC61970::Base::Generation::GenerationTrainingSimulation::TurbineType::_undef; - /** - * Water starting time. - */ - IEC61970::Base::Domain::Seconds waterStartingTime; - - }; - - } - - } - - } - -} -#endif // HYDROTURBINE_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/PWRSteamSupply.cpp b/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/PWRSteamSupply.cpp deleted file mode 100644 index a475d726e..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/PWRSteamSupply.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// PWRSteamSupply.cpp -// Implementation of the Class PWRSteamSupply -/////////////////////////////////////////////////////////// - -#include "PWRSteamSupply.h" - -using IEC61970::Base::Generation::GenerationTrainingSimulation::PWRSteamSupply; - - -PWRSteamSupply::PWRSteamSupply(){ - -} - - - -PWRSteamSupply::~PWRSteamSupply(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/PWRSteamSupply.h b/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/PWRSteamSupply.h deleted file mode 100644 index 4ce4365a4..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/PWRSteamSupply.h +++ /dev/null @@ -1,119 +0,0 @@ -/////////////////////////////////////////////////////////// -// PWRSteamSupply.h -// Implementation of the Class PWRSteamSupply -/////////////////////////////////////////////////////////// - -#ifndef PWRSTEAMSUPPLY_H -#define PWRSTEAMSUPPLY_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Generation/GenerationTrainingSimulation/SteamSupply.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace GenerationTrainingSimulation - { - /** - * Pressurized water reactor used as a steam supply to a steam turbine. - */ - class PWRSteamSupply : public IEC61970::Base::Generation::GenerationTrainingSimulation::SteamSupply - { - - public: - PWRSteamSupply(); - virtual ~PWRSteamSupply(); - /** - * Cold leg feedback lag time constant. - */ - IEC61970::Base::Domain::PU coldLegFBLagTC; - /** - * Cold leg feedback lead time constant. - */ - IEC61970::Base::Domain::PU coldLegFBLeadTC1; - /** - * Cold leg feedback lead time constant. - */ - IEC61970::Base::Domain::PU coldLegFBLeadTC2; - /** - * Cold leg feedback gain 1. - */ - IEC61970::Base::Domain::PU coldLegFG1; - /** - * Cold leg feedback gain 2. - */ - IEC61970::Base::Domain::PU coldLegFG2; - /** - * Cold leg lag time constant. - */ - IEC61970::Base::Domain::PU coldLegLagTC; - /** - * Core heat transfer lag time constant. - */ - IEC61970::Base::Domain::PU coreHTLagTC1; - /** - * Core heat transfer lag time constant. - */ - IEC61970::Base::Domain::PU coreHTLagTC2; - /** - * Core neutronics effective time constant. - */ - IEC61970::Base::Domain::PU coreNeutronicsEffTC; - /** - * Core neutronics and heat transfer. - */ - IEC61970::Base::Domain::PU coreNeutronicsHT; - /** - * Feedback factor. - */ - IEC61970::Base::Domain::PU feedbackFactor; - /** - * Hot leg lag time constant. - */ - IEC61970::Base::Domain::PU hotLegLagTC; - /** - * Hot leg steam gain. - */ - IEC61970::Base::Domain::PU hotLegSteamGain; - /** - * Hot leg to cold leg gain. - */ - IEC61970::Base::Domain::PU hotLegToColdLegGain; - /** - * Pressure control gain. - */ - IEC61970::Base::Domain::PU pressureCG; - /** - * Steam flow feedback gain. - */ - IEC61970::Base::Domain::PU steamFlowFG; - /** - * Steam pressure drop lag time constant. - */ - IEC61970::Base::Domain::PU steamPressureDropLagTC; - /** - * Steam pressure feedback gain. - */ - IEC61970::Base::Domain::PU steamPressureFG; - /** - * Throttle pressure factor. - */ - IEC61970::Base::Domain::PU throttlePressureFactor; - /** - * Throttle pressure setpoint. - */ - IEC61970::Base::Domain::PU throttlePressureSP; - - }; - - } - - } - - } - -} -#endif // PWRSTEAMSUPPLY_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/PrimeMover.cpp b/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/PrimeMover.cpp deleted file mode 100644 index 8e4804d12..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/PrimeMover.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// PrimeMover.cpp -// Implementation of the Class PrimeMover -/////////////////////////////////////////////////////////// - -#include "PrimeMover.h" - -using IEC61970::Base::Generation::GenerationTrainingSimulation::PrimeMover; - - -PrimeMover::PrimeMover(){ - -} - - - -PrimeMover::~PrimeMover(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/PrimeMover.h b/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/PrimeMover.h deleted file mode 100644 index 9fdf34ccc..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/PrimeMover.h +++ /dev/null @@ -1,50 +0,0 @@ -/////////////////////////////////////////////////////////// -// PrimeMover.h -// Implementation of the Class PrimeMover -/////////////////////////////////////////////////////////// - -#ifndef PRIMEMOVER_H -#define PRIMEMOVER_H - -#include - -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Wires/SynchronousMachine.h" -#include "IEC61970/Base/Core/PowerSystemResource.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace GenerationTrainingSimulation - { - /** - * The machine used to develop mechanical energy used to drive a generator. - */ - class PrimeMover : public IEC61970::Base::Core::PowerSystemResource - { - - public: - PrimeMover(); - virtual ~PrimeMover(); - /** - * Rating of prime mover. - */ - IEC61970::Base::Domain::Float primeMoverRating; - /** - * Synchronous machines this Prime mover drives. - */ - std::list SynchronousMachines; - - }; - - } - - } - - } - -} -#endif // PRIMEMOVER_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/SteamSupply.cpp b/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/SteamSupply.cpp deleted file mode 100644 index b6026fc3e..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/SteamSupply.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// SteamSupply.cpp -// Implementation of the Class SteamSupply -/////////////////////////////////////////////////////////// - -#include "SteamSupply.h" - -using IEC61970::Base::Generation::GenerationTrainingSimulation::SteamSupply; - - -SteamSupply::SteamSupply(){ - -} - - - -SteamSupply::~SteamSupply(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/SteamSupply.h b/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/SteamSupply.h deleted file mode 100644 index c6e82a80f..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/SteamSupply.h +++ /dev/null @@ -1,50 +0,0 @@ -/////////////////////////////////////////////////////////// -// SteamSupply.h -// Implementation of the Class SteamSupply -/////////////////////////////////////////////////////////// - -#ifndef STEAMSUPPLY_H -#define STEAMSUPPLY_H - -#include - -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Generation/GenerationTrainingSimulation/SteamTurbine.h" -#include "IEC61970/Base/Core/PowerSystemResource.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace GenerationTrainingSimulation - { - /** - * Steam supply for steam turbine. - */ - class SteamSupply : public IEC61970::Base::Core::PowerSystemResource - { - - public: - SteamSupply(); - virtual ~SteamSupply(); - /** - * Rating of steam supply. - */ - IEC61970::Base::Domain::Float steamSupplyRating; - /** - * Steam turbines may have steam supplied by a steam supply. - */ - std::list SteamTurbines; - - }; - - } - - } - - } - -} -#endif // STEAMSUPPLY_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/SteamTurbine.cpp b/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/SteamTurbine.cpp deleted file mode 100644 index c40810d4c..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/SteamTurbine.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// SteamTurbine.cpp -// Implementation of the Class SteamTurbine -/////////////////////////////////////////////////////////// - -#include "SteamTurbine.h" - -using IEC61970::Base::Generation::GenerationTrainingSimulation::SteamTurbine; - - -SteamTurbine::SteamTurbine(){ - -} - - - -SteamTurbine::~SteamTurbine(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/SteamTurbine.h b/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/SteamTurbine.h deleted file mode 100644 index c5bc56245..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/SteamTurbine.h +++ /dev/null @@ -1,88 +0,0 @@ -/////////////////////////////////////////////////////////// -// SteamTurbine.h -// Implementation of the Class SteamTurbine -/////////////////////////////////////////////////////////// - -#ifndef STEAMTURBINE_H -#define STEAMTURBINE_H - -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Generation/GenerationTrainingSimulation/PrimeMover.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace GenerationTrainingSimulation - { - /** - * Steam turbine. - */ - class SteamTurbine : public IEC61970::Base::Generation::GenerationTrainingSimulation::PrimeMover - { - - public: - SteamTurbine(); - virtual ~SteamTurbine(); - /** - * Crossover time constant. - */ - IEC61970::Base::Domain::Seconds crossoverTC; - /** - * First reheater time constant. - */ - IEC61970::Base::Domain::Seconds reheater1TC; - /** - * Second reheater time constant. - */ - IEC61970::Base::Domain::Seconds reheater2TC; - /** - * Fraction of power from shaft 1 high pressure turbine output. - */ - IEC61970::Base::Domain::Float shaft1PowerHP; - /** - * Fraction of power from shaft 1 intermediate pressure turbine output. - */ - IEC61970::Base::Domain::Float shaft1PowerIP; - /** - * Fraction of power from shaft 1 first low pressure turbine output. - */ - IEC61970::Base::Domain::Float shaft1PowerLP1; - /** - * Fraction of power from shaft 1 second low pressure turbine output. - */ - IEC61970::Base::Domain::Float shaft1PowerLP2; - /** - * Fraction of power from shaft 2 high pressure turbine output. - */ - IEC61970::Base::Domain::Float shaft2PowerHP; - /** - * Fraction of power from shaft 2 intermediate pressure turbine output. - */ - IEC61970::Base::Domain::Float shaft2PowerIP; - /** - * Fraction of power from shaft 2 first low pressure turbine output. - */ - IEC61970::Base::Domain::Float shaft2PowerLP1; - /** - * Fraction of power from shaft 2 second low pressure turbine output. - */ - IEC61970::Base::Domain::Float shaft2PowerLP2; - /** - * Steam chest time constant. - */ - IEC61970::Base::Domain::Seconds steamChestTC; - - }; - - } - - } - - } - -} -#endif // STEAMTURBINE_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/Subcritical.cpp b/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/Subcritical.cpp deleted file mode 100644 index d32e24326..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/Subcritical.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// Subcritical.cpp -// Implementation of the Class Subcritical -/////////////////////////////////////////////////////////// - -#include "Subcritical.h" - -using IEC61970::Base::Generation::GenerationTrainingSimulation::Subcritical; - - -Subcritical::Subcritical(){ - -} - - - -Subcritical::~Subcritical(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/Subcritical.h b/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/Subcritical.h deleted file mode 100644 index b4d922cb7..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/Subcritical.h +++ /dev/null @@ -1,38 +0,0 @@ -/////////////////////////////////////////////////////////// -// Subcritical.h -// Implementation of the Class Subcritical -/////////////////////////////////////////////////////////// - -#ifndef SUBCRITICAL_H -#define SUBCRITICAL_H - -#include "IEC61970/Base/Generation/GenerationTrainingSimulation/FossilSteamSupply.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace GenerationTrainingSimulation - { - /** - * Once-through subcritical boiler. - */ - class Subcritical : public IEC61970::Base::Generation::GenerationTrainingSimulation::FossilSteamSupply - { - - public: - Subcritical(); - virtual ~Subcritical(); - - }; - - } - - } - - } - -} -#endif // SUBCRITICAL_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/Supercritical.cpp b/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/Supercritical.cpp deleted file mode 100644 index 929ca1928..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/Supercritical.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// Supercritical.cpp -// Implementation of the Class Supercritical -/////////////////////////////////////////////////////////// - -#include "Supercritical.h" - -using IEC61970::Base::Generation::GenerationTrainingSimulation::Supercritical; - - -Supercritical::Supercritical(){ - -} - - - -Supercritical::~Supercritical(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/Supercritical.h b/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/Supercritical.h deleted file mode 100644 index 84cde95dd..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/Supercritical.h +++ /dev/null @@ -1,38 +0,0 @@ -/////////////////////////////////////////////////////////// -// Supercritical.h -// Implementation of the Class Supercritical -/////////////////////////////////////////////////////////// - -#ifndef SUPERCRITICAL_H -#define SUPERCRITICAL_H - -#include "IEC61970/Base/Generation/GenerationTrainingSimulation/FossilSteamSupply.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace GenerationTrainingSimulation - { - /** - * Once-through supercritical boiler. - */ - class Supercritical : public IEC61970::Base::Generation::GenerationTrainingSimulation::FossilSteamSupply - { - - public: - Supercritical(); - virtual ~Supercritical(); - - }; - - } - - } - - } - -} -#endif // SUPERCRITICAL_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/TurbineType.h b/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/TurbineType.h deleted file mode 100644 index adbd4f954..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/GenerationTrainingSimulation/TurbineType.h +++ /dev/null @@ -1,43 +0,0 @@ -/////////////////////////////////////////////////////////// -// TurbineType.h -// Implementation of the Class TurbineType -/////////////////////////////////////////////////////////// - -#ifndef TURBINETYPE_H -#define TURBINETYPE_H - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace GenerationTrainingSimulation - { - /** - * Type of turbine. - */ - enum class TurbineType - { - /** - * Francis. - */ - _undef = -1, francis, - /** - * Pelton. - */ - pelton, - /** - * Kaplan. - */ - kaplan - }; - - } - - } - - } - -} -#endif // TURBINETYPE_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/AirCompressor.cpp b/IEC61970_17v07/IEC61970/Base/Generation/Production/AirCompressor.cpp deleted file mode 100644 index ffd4d981e..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/AirCompressor.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// AirCompressor.cpp -// Implementation of the Class AirCompressor -/////////////////////////////////////////////////////////// - -#include "AirCompressor.h" - -using IEC61970::Base::Generation::Production::AirCompressor; - - -AirCompressor::AirCompressor(){ - -} - - - -AirCompressor::~AirCompressor(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/AirCompressor.h b/IEC61970_17v07/IEC61970/Base/Generation/Production/AirCompressor.h deleted file mode 100644 index ffefda05b..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/AirCompressor.h +++ /dev/null @@ -1,44 +0,0 @@ -/////////////////////////////////////////////////////////// -// AirCompressor.h -// Implementation of the Class AirCompressor -/////////////////////////////////////////////////////////// - -#ifndef AIRCOMPRESSOR_H -#define AIRCOMPRESSOR_H - -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Core/PowerSystemResource.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace Production - { - /** - * Combustion turbine air compressor which is an integral part of a compressed air - * energy storage (CAES) plant. - */ - class AirCompressor : public IEC61970::Base::Core::PowerSystemResource - { - - public: - AirCompressor(); - virtual ~AirCompressor(); - /** - * Rating of the CAES air compressor. - */ - IEC61970::Base::Domain::Float airCompressorRating; - - }; - - } - - } - - } - -} -#endif // AIRCOMPRESSOR_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/CAESPlant.cpp b/IEC61970_17v07/IEC61970/Base/Generation/Production/CAESPlant.cpp deleted file mode 100644 index 6f0f48755..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/CAESPlant.cpp +++ /dev/null @@ -1,21 +0,0 @@ -/////////////////////////////////////////////////////////// -// CAESPlant.cpp -// Implementation of the Class CAESPlant -/////////////////////////////////////////////////////////// - -#include "CAESPlant.h" - -using IEC61970::Base::Generation::Production::CAESPlant; - - -CAESPlant::CAESPlant() - : ThermalGeneratingUnit(nullptr), AirCompressor(nullptr) -{ - -} - - - -CAESPlant::~CAESPlant(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/CAESPlant.h b/IEC61970_17v07/IEC61970/Base/Generation/Production/CAESPlant.h deleted file mode 100644 index ebe71b61c..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/CAESPlant.h +++ /dev/null @@ -1,59 +0,0 @@ -/////////////////////////////////////////////////////////// -// CAESPlant.h -// Implementation of the Class CAESPlant -/////////////////////////////////////////////////////////// - -#ifndef CAESPLANT_H -#define CAESPLANT_H - -#include "IEC61970/Base/Domain/RealEnergy.h" -#include "IEC61970/Base/Domain/ActivePower.h" -#include "IEC61970/Base/Generation/Production/ThermalGeneratingUnit.h" -#include "IEC61970/Base/Generation/Production/AirCompressor.h" -#include "IEC61970/Base/Core/PowerSystemResource.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace Production - { - /** - * Compressed air energy storage plant. - */ - class CAESPlant : public IEC61970::Base::Core::PowerSystemResource - { - - public: - CAESPlant(); - virtual ~CAESPlant(); - /** - * The rated energy storage capacity. - */ - IEC61970::Base::Domain::RealEnergy energyStorageCapacity; - /** - * The CAES plant's gross rated generating capacity. - */ - IEC61970::Base::Domain::ActivePower ratedCapacityP; - /** - * A thermal generating unit may be a member of a compressed air energy storage - * plant. - */ - IEC61970::Base::Generation::Production::ThermalGeneratingUnit *ThermalGeneratingUnit; - /** - * An air compressor may be a member of a compressed air energy storage plant. - */ - IEC61970::Base::Generation::Production::AirCompressor *AirCompressor; - - }; - - } - - } - - } - -} -#endif // CAESPLANT_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/Classification.cpp b/IEC61970_17v07/IEC61970/Base/Generation/Production/Classification.cpp deleted file mode 100644 index 70251d105..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/Classification.cpp +++ /dev/null @@ -1,23 +0,0 @@ -/////////////////////////////////////////////////////////// -// Classification.cpp -// Implementation of the Class Classification -/////////////////////////////////////////////////////////// - -#include "Classification.h" - -using IEC61970::Base::Generation::Production::Classification; - - -Classification::Classification(){ - -} - - - -Classification::~Classification(){ - -} - - -const IEC61970::Base::Domain::UnitMultiplier Classification::multiplier = IEC61970::Base::Domain::UnitMultiplier::none; -const IEC61970::Base::Domain::UnitSymbol Classification::unit = IEC61970::Base::Domain::UnitSymbol::none; diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/Classification.h b/IEC61970_17v07/IEC61970/Base/Generation/Production/Classification.h deleted file mode 100644 index 0c84f6dec..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/Classification.h +++ /dev/null @@ -1,44 +0,0 @@ -/////////////////////////////////////////////////////////// -// Classification.h -// Implementation of the Class Classification -/////////////////////////////////////////////////////////// - -#ifndef CLASSIFICATION_H -#define CLASSIFICATION_H - -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/UnitSymbol.h" -#include "IEC61970/Base/Domain/Integer.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace Production - { - /** - * Classification of level. Specify as 1..n, with 1 being the most detailed, - * highest priority, etc as described on the attribue using this data type. - */ - class Classification - { - - public: - Classification(); - virtual ~Classification(); - static const IEC61970::Base::Domain::UnitMultiplier multiplier; - static const IEC61970::Base::Domain::UnitSymbol unit; - IEC61970::Base::Domain::Integer value; - - }; - - } - - } - - } - -} -#endif // CLASSIFICATION_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/CogenerationPlant.cpp b/IEC61970_17v07/IEC61970/Base/Generation/Production/CogenerationPlant.cpp deleted file mode 100644 index 9f395705d..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/CogenerationPlant.cpp +++ /dev/null @@ -1,21 +0,0 @@ -/////////////////////////////////////////////////////////// -// CogenerationPlant.cpp -// Implementation of the Class CogenerationPlant -/////////////////////////////////////////////////////////// - -#include "CogenerationPlant.h" - -using IEC61970::Base::Generation::Production::CogenerationPlant; - - -CogenerationPlant::CogenerationPlant() - : SteamSendoutSchedule(nullptr) -{ - -} - - - -CogenerationPlant::~CogenerationPlant(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/CogenerationPlant.h b/IEC61970_17v07/IEC61970/Base/Generation/Production/CogenerationPlant.h deleted file mode 100644 index 9cc7e0ea3..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/CogenerationPlant.h +++ /dev/null @@ -1,75 +0,0 @@ -/////////////////////////////////////////////////////////// -// CogenerationPlant.h -// Implementation of the Class CogenerationPlant -/////////////////////////////////////////////////////////// - -#ifndef COGENERATIONPLANT_H -#define COGENERATIONPLANT_H - -#include - -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/ActivePower.h" -#include "IEC61970/Base/Generation/Production/ThermalGeneratingUnit.h" -#include "IEC61970/Base/Generation/Production/SteamSendoutSchedule.h" -#include "IEC61970/Base/Core/PowerSystemResource.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace Production - { - /** - * A set of thermal generating units for the production of electrical energy and - * process steam (usually from the output of the steam turbines). The steam - * sendout is typically used for industrial purposes or for municipal heating and - * cooling. - */ - class CogenerationPlant : public IEC61970::Base::Core::PowerSystemResource - { - - public: - CogenerationPlant(); - virtual ~CogenerationPlant(); - /** - * The high pressure steam sendout. - */ - IEC61970::Base::Domain::Float cogenHPSendoutRating; - /** - * The high pressure steam rating. - */ - IEC61970::Base::Domain::Float cogenHPSteamRating; - /** - * The low pressure steam sendout. - */ - IEC61970::Base::Domain::Float cogenLPSendoutRating; - /** - * The low pressure steam rating. - */ - IEC61970::Base::Domain::Float cogenLPSteamRating; - /** - * The rated output active power of the cogeneration plant. - */ - IEC61970::Base::Domain::ActivePower ratedP; - /** - * A thermal generating unit may be a member of a cogeneration plant. - */ - std::list ThermalGeneratingUnits; - /** - * A cogeneration plant has a steam sendout schedule. - */ - IEC61970::Base::Generation::Production::SteamSendoutSchedule *SteamSendoutSchedule; - - }; - - } - - } - - } - -} -#endif // COGENERATIONPLANT_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/CombinedCyclePlant.cpp b/IEC61970_17v07/IEC61970/Base/Generation/Production/CombinedCyclePlant.cpp deleted file mode 100644 index c62209b88..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/CombinedCyclePlant.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// CombinedCyclePlant.cpp -// Implementation of the Class CombinedCyclePlant -/////////////////////////////////////////////////////////// - -#include "CombinedCyclePlant.h" - -using IEC61970::Base::Generation::Production::CombinedCyclePlant; - - -CombinedCyclePlant::CombinedCyclePlant(){ - -} - - - -CombinedCyclePlant::~CombinedCyclePlant(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/CombinedCyclePlant.h b/IEC61970_17v07/IEC61970/Base/Generation/Production/CombinedCyclePlant.h deleted file mode 100644 index 926aa05bc..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/CombinedCyclePlant.h +++ /dev/null @@ -1,52 +0,0 @@ -/////////////////////////////////////////////////////////// -// CombinedCyclePlant.h -// Implementation of the Class CombinedCyclePlant -/////////////////////////////////////////////////////////// - -#ifndef COMBINEDCYCLEPLANT_H -#define COMBINEDCYCLEPLANT_H - -#include - -#include "IEC61970/Base/Domain/ActivePower.h" -#include "IEC61970/Base/Generation/Production/ThermalGeneratingUnit.h" -#include "IEC61970/Base/Core/PowerSystemResource.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace Production - { - /** - * A set of combustion turbines and steam turbines where the exhaust heat from the - * combustion turbines is recovered to make steam for the steam turbines, - * resulting in greater overall plant efficiency. - */ - class CombinedCyclePlant : public IEC61970::Base::Core::PowerSystemResource - { - - public: - CombinedCyclePlant(); - virtual ~CombinedCyclePlant(); - /** - * The combined cycle plant's active power output rating. - */ - IEC61970::Base::Domain::ActivePower combCyclePlantRating; - /** - * A thermal generating unit may be a member of a combined cycle plant. - */ - std::list ThermalGeneratingUnits; - - }; - - } - - } - - } - -} -#endif // COMBINEDCYCLEPLANT_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/CostPerHeatUnit.cpp b/IEC61970_17v07/IEC61970/Base/Generation/Production/CostPerHeatUnit.cpp deleted file mode 100644 index 4de433901..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/CostPerHeatUnit.cpp +++ /dev/null @@ -1,23 +0,0 @@ -/////////////////////////////////////////////////////////// -// CostPerHeatUnit.cpp -// Implementation of the Class CostPerHeatUnit -/////////////////////////////////////////////////////////// - -#include "CostPerHeatUnit.h" - -using IEC61970::Base::Generation::Production::CostPerHeatUnit; - - -CostPerHeatUnit::CostPerHeatUnit(){ - -} - - - -CostPerHeatUnit::~CostPerHeatUnit(){ - -} - - -const IEC61970::Base::Domain::UnitMultiplier CostPerHeatUnit::denominatorMultiplier = IEC61970::Base::Domain::UnitMultiplier::none; -const IEC61970::Base::Domain::UnitSymbol CostPerHeatUnit::denominatorUnit = IEC61970::Base::Domain::UnitSymbol::J; diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/CostPerHeatUnit.h b/IEC61970_17v07/IEC61970/Base/Generation/Production/CostPerHeatUnit.h deleted file mode 100644 index 274d067f7..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/CostPerHeatUnit.h +++ /dev/null @@ -1,46 +0,0 @@ -/////////////////////////////////////////////////////////// -// CostPerHeatUnit.h -// Implementation of the Class CostPerHeatUnit -/////////////////////////////////////////////////////////// - -#ifndef COSTPERHEATUNIT_H -#define COSTPERHEATUNIT_H - -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/UnitSymbol.h" -#include "IEC61970/Base/Domain/Currency.h" -#include "IEC61970/Base/Domain/Float.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace Production - { - /** - * Cost, in units of currency, per quantity of heat generated. - */ - class CostPerHeatUnit - { - - public: - CostPerHeatUnit(); - virtual ~CostPerHeatUnit(); - static const IEC61970::Base::Domain::UnitMultiplier denominatorMultiplier; - static const IEC61970::Base::Domain::UnitSymbol denominatorUnit; - IEC61970::Base::Domain::UnitMultiplier multiplier = IEC61970::Base::Domain::UnitMultiplier::_undef; - IEC61970::Base::Domain::Currency unit = IEC61970::Base::Domain::Currency::_undef; - IEC61970::Base::Domain::Float value; - - }; - - } - - } - - } - -} -#endif // COSTPERHEATUNIT_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/Emission.cpp b/IEC61970_17v07/IEC61970/Base/Generation/Production/Emission.cpp deleted file mode 100644 index 9dc6e9f58..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/Emission.cpp +++ /dev/null @@ -1,23 +0,0 @@ -/////////////////////////////////////////////////////////// -// Emission.cpp -// Implementation of the Class Emission -/////////////////////////////////////////////////////////// - -#include "Emission.h" - -using IEC61970::Base::Generation::Production::Emission; - - -Emission::Emission(){ - -} - - - -Emission::~Emission(){ - -} - - -const IEC61970::Base::Domain::UnitMultiplier Emission::multiplier = IEC61970::Base::Domain::UnitMultiplier::none; -const IEC61970::Base::Domain::UnitSymbol Emission::unit = IEC61970::Base::Domain::UnitSymbol::kgPerJ; diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/Emission.h b/IEC61970_17v07/IEC61970/Base/Generation/Production/Emission.h deleted file mode 100644 index 4e23c5f84..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/Emission.h +++ /dev/null @@ -1,43 +0,0 @@ -/////////////////////////////////////////////////////////// -// Emission.h -// Implementation of the Class Emission -/////////////////////////////////////////////////////////// - -#ifndef EMISSION_H -#define EMISSION_H - -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/UnitSymbol.h" -#include "IEC61970/Base/Domain/Float.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace Production - { - /** - * Quantity of emission per fuel heat content. - */ - class Emission - { - - public: - Emission(); - virtual ~Emission(); - static const IEC61970::Base::Domain::UnitMultiplier multiplier; - static const IEC61970::Base::Domain::UnitSymbol unit; - IEC61970::Base::Domain::Float value; - - }; - - } - - } - - } - -} -#endif // EMISSION_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/EmissionAccount.cpp b/IEC61970_17v07/IEC61970/Base/Generation/Production/EmissionAccount.cpp deleted file mode 100644 index 8983603a5..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/EmissionAccount.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// EmissionAccount.cpp -// Implementation of the Class EmissionAccount -/////////////////////////////////////////////////////////// - -#include "EmissionAccount.h" - -using IEC61970::Base::Generation::Production::EmissionAccount; - - -EmissionAccount::EmissionAccount(){ - -} - - - -EmissionAccount::~EmissionAccount(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/EmissionAccount.h b/IEC61970_17v07/IEC61970/Base/Generation/Production/EmissionAccount.h deleted file mode 100644 index 38ef0e367..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/EmissionAccount.h +++ /dev/null @@ -1,52 +0,0 @@ -/////////////////////////////////////////////////////////// -// EmissionAccount.h -// Implementation of the Class EmissionAccount -/////////////////////////////////////////////////////////// - -#ifndef EMISSIONACCOUNT_H -#define EMISSIONACCOUNT_H - -#include "IEC61970/Base/Generation/Production/EmissionType.h" -#include "IEC61970/Base/Generation/Production/EmissionValueSource.h" -#include "IEC61970/Base/Core/Curve.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace Production - { - /** - * Accounts for tracking emissions usage and credits for thermal generating units. - * A unit may have zero or more emission accounts, and will typically have one for - * tracking usage and one for tracking credits. - */ - class EmissionAccount : public IEC61970::Base::Core::Curve - { - - public: - EmissionAccount(); - virtual ~EmissionAccount(); - /** - * The type of emission, for example sulfur dioxide (SO2). The y1AxisUnits of the - * curve contains the unit of measure (e.g. kg) and the emissionType is the type - * of emission (e.g. sulfer dioxide). - */ - IEC61970::Base::Generation::Production::EmissionType emissionType = IEC61970::Base::Generation::Production::EmissionType::_undef; - /** - * The source of the emission value. - */ - IEC61970::Base::Generation::Production::EmissionValueSource emissionValueSource = IEC61970::Base::Generation::Production::EmissionValueSource::_undef; - - }; - - } - - } - - } - -} -#endif // EMISSIONACCOUNT_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/EmissionCurve.cpp b/IEC61970_17v07/IEC61970/Base/Generation/Production/EmissionCurve.cpp deleted file mode 100644 index 6711b5cd4..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/EmissionCurve.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// EmissionCurve.cpp -// Implementation of the Class EmissionCurve -/////////////////////////////////////////////////////////// - -#include "EmissionCurve.h" - -using IEC61970::Base::Generation::Production::EmissionCurve; - - -EmissionCurve::EmissionCurve(){ - -} - - - -EmissionCurve::~EmissionCurve(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/EmissionCurve.h b/IEC61970_17v07/IEC61970/Base/Generation/Production/EmissionCurve.h deleted file mode 100644 index f7c6bb679..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/EmissionCurve.h +++ /dev/null @@ -1,57 +0,0 @@ -/////////////////////////////////////////////////////////// -// EmissionCurve.h -// Implementation of the Class EmissionCurve -/////////////////////////////////////////////////////////// - -#ifndef EMISSIONCURVE_H -#define EMISSIONCURVE_H - -#include "IEC61970/Base/Generation/Production/Emission.h" -#include "IEC61970/Base/Generation/Production/EmissionType.h" -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Core/Curve.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace Production - { - /** - * Relationship between the unit's emission rate in units of mass per hour (Y- - * axis) and output active power (X-axis) for a given type of emission. This curve - * applies when only one type of fuel is being burned. - */ - class EmissionCurve : public IEC61970::Base::Core::Curve - { - - public: - EmissionCurve(); - virtual ~EmissionCurve(); - /** - * The emission content per quantity of fuel burned. - */ - IEC61970::Base::Generation::Production::Emission emissionContent; - /** - * The type of emission, which also gives the production rate measurement unit. - * The y1AxisUnits of the curve contains the unit of measure (e.g. kg) and the - * emissionType is the type of emission (e.g. sulfer dioxide). - */ - IEC61970::Base::Generation::Production::EmissionType emissionType = IEC61970::Base::Generation::Production::EmissionType::_undef; - /** - * Flag is set to true when output is expressed in net active power. - */ - IEC61970::Base::Domain::Boolean isNetGrossP; - - }; - - } - - } - - } - -} -#endif // EMISSIONCURVE_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/EmissionType.h b/IEC61970_17v07/IEC61970/Base/Generation/Production/EmissionType.h deleted file mode 100644 index c969fdef7..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/EmissionType.h +++ /dev/null @@ -1,55 +0,0 @@ -/////////////////////////////////////////////////////////// -// EmissionType.h -// Implementation of the Class EmissionType -/////////////////////////////////////////////////////////// - -#ifndef EMISSIONTYPE_H -#define EMISSIONTYPE_H - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace Production - { - /** - * The type of emission. - */ - enum class EmissionType - { - /** - * Sulfer dioxide. - */ - _undef = -1, sulfurDioxide, - /** - * Carbon diaoxide. - */ - carbonDioxide, - /** - * Nitrogen oxide. - */ - nitrogenOxide, - /** - * Hydrogen sulfide. - */ - hydrogenSulfide, - /** - * Clorine. - */ - chlorine, - /** - * Carbon disulfide. - */ - carbonDisulfide - }; - - } - - } - - } - -} -#endif // EMISSIONTYPE_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/EmissionValueSource.h b/IEC61970_17v07/IEC61970/Base/Generation/Production/EmissionValueSource.h deleted file mode 100644 index d6d68a27c..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/EmissionValueSource.h +++ /dev/null @@ -1,39 +0,0 @@ -/////////////////////////////////////////////////////////// -// EmissionValueSource.h -// Implementation of the Class EmissionValueSource -/////////////////////////////////////////////////////////// - -#ifndef EMISSIONVALUESOURCE_H -#define EMISSIONVALUESOURCE_H - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace Production - { - /** - * The source of the emission value. - */ - enum class EmissionValueSource - { - /** - * Measured. - */ - _undef = -1, measured, - /** - * Calculated. - */ - calculated - }; - - } - - } - - } - -} -#endif // EMISSIONVALUESOURCE_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/FossilFuel.cpp b/IEC61970_17v07/IEC61970/Base/Generation/Production/FossilFuel.cpp deleted file mode 100644 index 657957c7a..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/FossilFuel.cpp +++ /dev/null @@ -1,21 +0,0 @@ -/////////////////////////////////////////////////////////// -// FossilFuel.cpp -// Implementation of the Class FossilFuel -/////////////////////////////////////////////////////////// - -#include "FossilFuel.h" - -using IEC61970::Base::Generation::Production::FossilFuel; - - -FossilFuel::FossilFuel() - : ThermalGeneratingUnit(nullptr) -{ - -} - - - -FossilFuel::~FossilFuel(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/FossilFuel.h b/IEC61970_17v07/IEC61970/Base/Generation/Production/FossilFuel.h deleted file mode 100644 index f23b50cfc..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/FossilFuel.h +++ /dev/null @@ -1,105 +0,0 @@ -/////////////////////////////////////////////////////////// -// FossilFuel.h -// Implementation of the Class FossilFuel -/////////////////////////////////////////////////////////// - -#ifndef FOSSILFUEL_H -#define FOSSILFUEL_H - -#include - -#include "IEC61970/Base/Generation/Production/FuelType.h" -#include "IEC61970/Base/Generation/Production/CostPerHeatUnit.h" -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/PerCent.h" -#include "IEC61970/Base/Domain/ActivePower.h" -#include "IEC61970/Base/Generation/Production/FuelAllocationSchedule.h" -#include "IEC61970/Base/Generation/Production/ThermalGeneratingUnit.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace Production - { - /** - * The fossil fuel consumed by the non-nuclear thermal generating unit. For - * example, coal, oil, gas, etc. This a the specific fuels that the generating - * unit can consume. - */ - class FossilFuel : public IEC61970::Base::Core::IdentifiedObject - { - - public: - FossilFuel(); - virtual ~FossilFuel(); - /** - * The type of fossil fuel, such as coal, oil, or gas. - */ - IEC61970::Base::Generation::Production::FuelType fossilFuelType = IEC61970::Base::Generation::Production::FuelType::_undef; - /** - * The cost in terms of heat value for the given type of fuel. - */ - IEC61970::Base::Generation::Production::CostPerHeatUnit fuelCost; - /** - * The cost of fuel used for economic dispatching which includes: fuel cost, - * transportation cost, and incremental maintenance cost. - */ - IEC61970::Base::Generation::Production::CostPerHeatUnit fuelDispatchCost; - /** - * The efficiency factor for the fuel (per unit) in terms of the effective energy - * absorbed. - */ - IEC61970::Base::Domain::PU fuelEffFactor; - /** - * Handling and processing cost associated with this fuel. - */ - IEC61970::Base::Generation::Production::CostPerHeatUnit fuelHandlingCost; - /** - * The amount of heat per weight (or volume) of the given type of fuel. - */ - IEC61970::Base::Domain::Float fuelHeatContent; - /** - * Relative amount of the given type of fuel, when multiple fuels are being - * consumed. - */ - IEC61970::Base::Domain::PerCent fuelMixture; - /** - * The fuel's fraction of pollution credit per unit of heat content. - */ - IEC61970::Base::Domain::PU fuelSulfur; - /** - * The active power output level of the unit at which the given type of fuel is - * switched on. This fuel (e.g., oil) is sometimes used to supplement the base - * fuel (e.g., coal) at high active power output levels. - */ - IEC61970::Base::Domain::ActivePower highBreakpointP; - /** - * The active power output level of the unit at which the given type of fuel is - * switched off. This fuel (e.g., oil) is sometimes used to stabilize the base - * fuel (e.g., coal) at low active power output levels. - */ - IEC61970::Base::Domain::ActivePower lowBreakpointP; - /** - * A fuel allocation schedule must have a fossil fuel. - */ - std::list FuelAllocationSchedules; - /** - * A thermal generating unit may have one or more fossil fuels. - */ - IEC61970::Base::Generation::Production::ThermalGeneratingUnit *ThermalGeneratingUnit; - - }; - - } - - } - - } - -} -#endif // FOSSILFUEL_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/FuelAllocationSchedule.cpp b/IEC61970_17v07/IEC61970/Base/Generation/Production/FuelAllocationSchedule.cpp deleted file mode 100644 index fbc26bedb..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/FuelAllocationSchedule.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// FuelAllocationSchedule.cpp -// Implementation of the Class FuelAllocationSchedule -/////////////////////////////////////////////////////////// - -#include "FuelAllocationSchedule.h" - -using IEC61970::Base::Generation::Production::FuelAllocationSchedule; - - -FuelAllocationSchedule::FuelAllocationSchedule(){ - -} - - - -FuelAllocationSchedule::~FuelAllocationSchedule(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/FuelAllocationSchedule.h b/IEC61970_17v07/IEC61970/Base/Generation/Production/FuelAllocationSchedule.h deleted file mode 100644 index f1384d1d9..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/FuelAllocationSchedule.h +++ /dev/null @@ -1,64 +0,0 @@ -/////////////////////////////////////////////////////////// -// FuelAllocationSchedule.h -// Implementation of the Class FuelAllocationSchedule -/////////////////////////////////////////////////////////// - -#ifndef FUELALLOCATIONSCHEDULE_H -#define FUELALLOCATIONSCHEDULE_H - -#include "IEC61970/Base/Domain/DateTime.h" -#include "IEC61970/Base/Generation/Production/FuelType.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Core/Curve.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace Production - { - /** - * The amount of fuel of a given type which is allocated for consumption over a - * specified period of time. - */ - class FuelAllocationSchedule : public IEC61970::Base::Core::Curve - { - - public: - FuelAllocationSchedule(); - virtual ~FuelAllocationSchedule(); - /** - * The end time and date of the fuel allocation schedule. - */ - IEC61970::Base::Domain::DateTime fuelAllocationEndDate; - /** - * The start time and date of the fuel allocation schedule. - */ - IEC61970::Base::Domain::DateTime fuelAllocationStartDate; - /** - * The type of fuel, which also indicates the corresponding measurement unit. - */ - IEC61970::Base::Generation::Production::FuelType fuelType = IEC61970::Base::Generation::Production::FuelType::_undef; - /** - * The maximum amount fuel that is allocated for consumption for the scheduled - * time period. - */ - IEC61970::Base::Domain::Float maxFuelAllocation; - /** - * The minimum amount fuel that is allocated for consumption for the scheduled - * time period, e.g., based on a "take-or-pay" contract. - */ - IEC61970::Base::Domain::Float minFuelAllocation; - - }; - - } - - } - - } - -} -#endif // FUELALLOCATIONSCHEDULE_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/FuelType.h b/IEC61970_17v07/IEC61970/Base/Generation/Production/FuelType.h deleted file mode 100644 index 39d51bda2..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/FuelType.h +++ /dev/null @@ -1,57 +0,0 @@ -/////////////////////////////////////////////////////////// -// FuelType.h -// Implementation of the Class FuelType -/////////////////////////////////////////////////////////// - -#ifndef FUELTYPE_H -#define FUELTYPE_H - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace Production - { - /** - * Type of fuel. - */ - enum class FuelType - { - /** - * Generic coal, not including lignite type. - */ - _undef = -1, coal, - /** - * Oil. - */ - oil, - /** - * Natural gas. - */ - gas, - /** - * The fuel is lignite coal. Note that this is a special type of coal, so the - * other enum of coal is reserved for hard coal types or if the exact type of coal - * is not known. - */ - lignite, - /** - * Hard coal - */ - hardCoal, - /** - * Oil Shale - */ - oilShale - }; - - } - - } - - } - -} -#endif // FUELTYPE_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/GenUnitOpCostCurve.cpp b/IEC61970_17v07/IEC61970/Base/Generation/Production/GenUnitOpCostCurve.cpp deleted file mode 100644 index 97895d82b..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/GenUnitOpCostCurve.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// GenUnitOpCostCurve.cpp -// Implementation of the Class GenUnitOpCostCurve -/////////////////////////////////////////////////////////// - -#include "GenUnitOpCostCurve.h" - -using IEC61970::Base::Generation::Production::GenUnitOpCostCurve; - - -GenUnitOpCostCurve::GenUnitOpCostCurve(){ - -} - - - -GenUnitOpCostCurve::~GenUnitOpCostCurve(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/GenUnitOpCostCurve.h b/IEC61970_17v07/IEC61970/Base/Generation/Production/GenUnitOpCostCurve.h deleted file mode 100644 index 2d1513f20..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/GenUnitOpCostCurve.h +++ /dev/null @@ -1,46 +0,0 @@ -/////////////////////////////////////////////////////////// -// GenUnitOpCostCurve.h -// Implementation of the Class GenUnitOpCostCurve -/////////////////////////////////////////////////////////// - -#ifndef GENUNITOPCOSTCURVE_H -#define GENUNITOPCOSTCURVE_H - -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Core/Curve.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace Production - { - /** - * Relationship between unit operating cost (Y-axis) and unit output active power - * (X-axis). The operating cost curve for thermal units is derived from heat input - * and fuel costs. The operating cost curve for hydro units is derived from water - * flow rates and equivalent water costs. - */ - class GenUnitOpCostCurve : public IEC61970::Base::Core::Curve - { - - public: - GenUnitOpCostCurve(); - virtual ~GenUnitOpCostCurve(); - /** - * Flag is set to true when output is expressed in net active power. - */ - IEC61970::Base::Domain::Boolean isNetGrossP; - - }; - - } - - } - - } - -} -#endif // GENUNITOPCOSTCURVE_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/GenUnitOpSchedule.cpp b/IEC61970_17v07/IEC61970/Base/Generation/Production/GenUnitOpSchedule.cpp deleted file mode 100644 index c13b9b3b8..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/GenUnitOpSchedule.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// GenUnitOpSchedule.cpp -// Implementation of the Class GenUnitOpSchedule -/////////////////////////////////////////////////////////// - -#include "GenUnitOpSchedule.h" - -using IEC61970::Base::Generation::Production::GenUnitOpSchedule; - - -GenUnitOpSchedule::GenUnitOpSchedule(){ - -} - - - -GenUnitOpSchedule::~GenUnitOpSchedule(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/GenUnitOpSchedule.h b/IEC61970_17v07/IEC61970/Base/Generation/Production/GenUnitOpSchedule.h deleted file mode 100644 index 68838f0e2..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/GenUnitOpSchedule.h +++ /dev/null @@ -1,42 +0,0 @@ -/////////////////////////////////////////////////////////// -// GenUnitOpSchedule.h -// Implementation of the Class GenUnitOpSchedule -/////////////////////////////////////////////////////////// - -#ifndef GENUNITOPSCHEDULE_H -#define GENUNITOPSCHEDULE_H - -#include "IEC61970/Base/Core/RegularIntervalSchedule.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace Production - { - /** - * The generating unit's Operator-approved current operating schedule (or plan), - * typically produced with the aid of unit commitment type analyses. The X-axis - * represents absolute time. The Y1-axis represents the status (0=off-line and - * unavailable: 1=available: 2=must run: 3=must run at fixed power value: etc.). - * The Y2-axis represents the must run fixed power value where required. - */ - class GenUnitOpSchedule : public IEC61970::Base::Core::RegularIntervalSchedule - { - - public: - GenUnitOpSchedule(); - virtual ~GenUnitOpSchedule(); - - }; - - } - - } - - } - -} -#endif // GENUNITOPSCHEDULE_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/GeneratingUnit.cpp b/IEC61970_17v07/IEC61970/Base/Generation/Production/GeneratingUnit.cpp deleted file mode 100644 index fac98e8e9..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/GeneratingUnit.cpp +++ /dev/null @@ -1,21 +0,0 @@ -/////////////////////////////////////////////////////////// -// GeneratingUnit.cpp -// Implementation of the Class GeneratingUnit -/////////////////////////////////////////////////////////// - -#include "GeneratingUnit.h" - -using IEC61970::Base::Generation::Production::GeneratingUnit; - - -GeneratingUnit::GeneratingUnit() - : GenUnitOpSchedule(nullptr) -{ - -} - - - -GeneratingUnit::~GeneratingUnit(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/GeneratingUnit.h b/IEC61970_17v07/IEC61970/Base/Generation/Production/GeneratingUnit.h deleted file mode 100644 index 4e8128c04..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/GeneratingUnit.h +++ /dev/null @@ -1,257 +0,0 @@ -/////////////////////////////////////////////////////////// -// GeneratingUnit.h -// Implementation of the Class GeneratingUnit -/////////////////////////////////////////////////////////// - -#ifndef GENERATINGUNIT_H -#define GENERATINGUNIT_H - -#include - -#include "IEC61970/Base/Domain/ActivePower.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Domain/ActivePowerChangeRate.h" -#include "IEC61970/Base/Domain/PerCent.h" -#include "IEC61970/Base/Generation/Production/GeneratorControlMode.h" -#include "IEC61970/Base/Generation/Production/GeneratorControlSource.h" -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Generation/Production/Classification.h" -#include "IEC61970/Base/Domain/Money.h" -#include "IEC61970/Base/Generation/Production/GenUnitOpSchedule.h" -#include "IEC61970/Base/Generation/Production/GrossToNetActivePowerCurve.h" -#include "IEC61970/Base/Generation/Production/GenUnitOpCostCurve.h" -#include "IEC61970/Base/Wires/RotatingMachine.h" -#include "IEC61970/Base/Core/Equipment.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace Production - { - /** - * A single or set of synchronous machines for converting mechanical power into - * alternating-current power. For example, individual machines within a set may be - * defined for scheduling purposes while a single control signal is derived for - * the set. In this case there would be a GeneratingUnit for each member of the - * set and an additional GeneratingUnit corresponding to the set. - */ - class GeneratingUnit : public IEC61970::Base::Core::Equipment - { - - public: - GeneratingUnit(); - virtual ~GeneratingUnit(); - /** - * The planned unused capacity (spinning reserve) which can be used to support - * emergency load. - */ - IEC61970::Base::Domain::ActivePower allocSpinResP; - /** - * The planned unused capacity which can be used to support automatic control - * overruns. - */ - IEC61970::Base::Domain::ActivePower autoCntrlMarginP; - /** - * For dispatchable units, this value represents the economic active power - * basepoint, for units that are not dispatchable, this value represents the fixed - * generation value. The value must be between the operating low and high limits. - */ - IEC61970::Base::Domain::ActivePower baseP; - /** - * Unit control error deadband. When a unit's desired active power change is less - * than this deadband, then no control pulses will be sent to the unit. - */ - IEC61970::Base::Domain::ActivePower controlDeadband; - /** - * Pulse high limit which is the largest control pulse that the unit can respond - * to. - */ - IEC61970::Base::Domain::Seconds controlPulseHigh; - /** - * Pulse low limit which is the smallest control pulse that the unit can respond - * to. - */ - IEC61970::Base::Domain::Seconds controlPulseLow; - /** - * Unit response rate which specifies the active power change for a control pulse - * of one second in the most responsive loading level of the unit. - */ - IEC61970::Base::Domain::ActivePowerChangeRate controlResponseRate; - /** - * The efficiency of the unit in converting mechanical energy, from the prime - * mover, into electrical energy. - */ - IEC61970::Base::Domain::PerCent efficiency; - /** - * The unit control mode. - */ - IEC61970::Base::Generation::Production::GeneratorControlMode genControlMode = IEC61970::Base::Generation::Production::GeneratorControlMode::_undef; - /** - * The source of controls for a generating unit. - */ - IEC61970::Base::Generation::Production::GeneratorControlSource genControlSource = IEC61970::Base::Generation::Production::GeneratorControlSource::_undef; - /** - * Governor motor position limit. - */ - IEC61970::Base::Domain::PU governorMPL; - /** - * Governor Speed Changer Droop. This is the change in generator power output - * divided by the change in frequency normalized by the nominal power of the - * generator and the nominal frequency and expressed in percent and negated. A - * positive value of speed change droop provides additional generator output upon - * a drop in frequency. - */ - IEC61970::Base::Domain::PerCent governorSCD; - /** - * High limit for secondary (AGC) control. - */ - IEC61970::Base::Domain::ActivePower highControlLimit; - /** - * Default initial active power which is used to store a powerflow result for the - * initial active power for this unit in this network configuration. - */ - IEC61970::Base::Domain::ActivePower initialP; - /** - * Generating unit long term economic participation factor. - */ - IEC61970::Base::Domain::Float longPF; - /** - * Low limit for secondary (AGC) control. - */ - IEC61970::Base::Domain::ActivePower lowControlLimit; - /** - * The normal maximum rate the generating unit active power output can be lowered - * by control actions. - */ - IEC61970::Base::Domain::ActivePowerChangeRate lowerRampRate; - /** - * Maximum high economic active power limit, that should not exceed the maximum - * operating active power limit. - */ - IEC61970::Base::Domain::ActivePower maxEconomicP; - /** - * Maximum allowable spinning reserve. Spinning reserve will never be considered - * greater than this value regardless of the current operating point. - */ - IEC61970::Base::Domain::ActivePower maximumAllowableSpinningReserve; - /** - * This is the maximum operating active power limit the dispatcher can enter for - * this unit. - */ - IEC61970::Base::Domain::ActivePower maxOperatingP; - /** - * Low economic active power limit that must be greater than or equal to the - * minimum operating active power limit. - */ - IEC61970::Base::Domain::ActivePower minEconomicP; - /** - * Minimum time interval between unit shutdown and startup. - */ - IEC61970::Base::Domain::Seconds minimumOffTime; - /** - * This is the minimum operating active power limit the dispatcher can enter for - * this unit. - */ - IEC61970::Base::Domain::ActivePower minOperatingP; - /** - * Detail level of the generator model data. - */ - IEC61970::Base::Generation::Production::Classification modelDetail; - /** - * The nominal power of the generating unit. Used to give precise meaning to - * percentage based attributes such as the governor speed change droop - * (governorSCD attribute). - * The attribute shall be a positive value equal or less than RotatingMachine. - * ratedS. - */ - IEC61970::Base::Domain::ActivePower nominalP; - /** - * Generating unit economic participation factor. - */ - IEC61970::Base::Domain::Float normalPF; - /** - * Defined as: 1 / ( 1 - Incremental Transmission Loss); with the Incremental - * Transmission Loss expressed as a plus or minus value. The typical range of - * penalty factors is (0.9 to 1.1). - */ - IEC61970::Base::Domain::Float penaltyFactor; - /** - * The normal maximum rate the generating unit active power output can be raised - * by control actions. - */ - IEC61970::Base::Domain::ActivePowerChangeRate raiseRampRate; - /** - * The unit's gross rated maximum capacity (book value). - */ - IEC61970::Base::Domain::ActivePower ratedGrossMaxP; - /** - * The gross rated minimum generation level which the unit can safely operate at - * while delivering power to the transmission grid. - */ - IEC61970::Base::Domain::ActivePower ratedGrossMinP; - /** - * The net rated maximum capacity determined by subtracting the auxiliary power - * used to operate the internal plant machinery from the rated gross maximum - * capacity. - */ - IEC61970::Base::Domain::ActivePower ratedNetMaxP; - /** - * Generating unit short term economic participation factor. - */ - IEC61970::Base::Domain::Float shortPF; - /** - * The initial startup cost incurred for each start of the GeneratingUnit. - */ - IEC61970::Base::Domain::Money startupCost; - /** - * Time it takes to get the unit on-line, from the time that the prime mover - * mechanical power is applied. - */ - IEC61970::Base::Domain::Seconds startupTime; - /** - * Generating unit economic participation factor. - */ - IEC61970::Base::Domain::Float tieLinePF; - /** - * The efficiency of the unit in converting the fuel into electrical energy. - */ - IEC61970::Base::Domain::PerCent totalEfficiency; - /** - * The variable cost component of production per unit of ActivePower. - */ - IEC61970::Base::Domain::Money variableCost; - /** - * A generating unit may have an operating schedule, indicating the planned - * operation of the unit. - */ - IEC61970::Base::Generation::Production::GenUnitOpSchedule *GenUnitOpSchedule; - /** - * A generating unit may have a gross active power to net active power curve, - * describing the losses and auxiliary power requirements of the unit. - */ - std::list GrossToNetActivePowerCurves; - /** - * A generating unit may have one or more cost curves, depending upon fuel mixture - * and fuel cost. - */ - std::list GenUnitOpCostCurves; - /** - * A synchronous machine may operate as a generator and as such becomes a member - * of a generating unit. - */ - std::list RotatingMachine; - - }; - - } - - } - - } - -} -#endif // GENERATINGUNIT_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/GeneratorControlMode.h b/IEC61970_17v07/IEC61970/Base/Generation/Production/GeneratorControlMode.h deleted file mode 100644 index d5c08b443..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/GeneratorControlMode.h +++ /dev/null @@ -1,39 +0,0 @@ -/////////////////////////////////////////////////////////// -// GeneratorControlMode.h -// Implementation of the Class GeneratorControlMode -/////////////////////////////////////////////////////////// - -#ifndef GENERATORCONTROLMODE_H -#define GENERATORCONTROLMODE_H - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace Production - { - /** - * Unit control modes. - */ - enum class GeneratorControlMode - { - /** - * Setpoint control mode. - */ - _undef = -1, setpoint, - /** - * Pulse control mode. - */ - pulse - }; - - } - - } - - } - -} -#endif // GENERATORCONTROLMODE_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/GeneratorControlSource.h b/IEC61970_17v07/IEC61970/Base/Generation/Production/GeneratorControlSource.h deleted file mode 100644 index a0977f186..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/GeneratorControlSource.h +++ /dev/null @@ -1,47 +0,0 @@ -/////////////////////////////////////////////////////////// -// GeneratorControlSource.h -// Implementation of the Class GeneratorControlSource -/////////////////////////////////////////////////////////// - -#ifndef GENERATORCONTROLSOURCE_H -#define GENERATORCONTROLSOURCE_H - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace Production - { - /** - * The source of controls for a generating unit. - */ - enum class GeneratorControlSource - { - /** - * Not available. - */ - _undef = -1, unavailable, - /** - * Off of automatic generation control (AGC). - */ - offAGC, - /** - * On automatic generation control (AGC). - */ - onAGC, - /** - * Plant is controlling. - */ - plantControl - }; - - } - - } - - } - -} -#endif // GENERATORCONTROLSOURCE_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/GrossToNetActivePowerCurve.cpp b/IEC61970_17v07/IEC61970/Base/Generation/Production/GrossToNetActivePowerCurve.cpp deleted file mode 100644 index ce0d2405b..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/GrossToNetActivePowerCurve.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// GrossToNetActivePowerCurve.cpp -// Implementation of the Class GrossToNetActivePowerCurve -/////////////////////////////////////////////////////////// - -#include "GrossToNetActivePowerCurve.h" - -using IEC61970::Base::Generation::Production::GrossToNetActivePowerCurve; - - -GrossToNetActivePowerCurve::GrossToNetActivePowerCurve(){ - -} - - - -GrossToNetActivePowerCurve::~GrossToNetActivePowerCurve(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/GrossToNetActivePowerCurve.h b/IEC61970_17v07/IEC61970/Base/Generation/Production/GrossToNetActivePowerCurve.h deleted file mode 100644 index 12cebe105..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/GrossToNetActivePowerCurve.h +++ /dev/null @@ -1,43 +0,0 @@ -/////////////////////////////////////////////////////////// -// GrossToNetActivePowerCurve.h -// Implementation of the Class GrossToNetActivePowerCurve -/////////////////////////////////////////////////////////// - -#ifndef GROSSTONETACTIVEPOWERCURVE_H -#define GROSSTONETACTIVEPOWERCURVE_H - -#include "IEC61970/Base/Core/Curve.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace Production - { - /** - * Relationship between the generating unit's gross active power output on the X- - * axis (measured at the terminals of the machine(s)) and the generating unit's - * net active power output on the Y-axis (based on utility-defined measurements at - * the power station). Station service loads, when modeled, should be treated as - * non-conforming bus loads. There may be more than one curve, depending on the - * auxiliary equipment that is in service. - */ - class GrossToNetActivePowerCurve : public IEC61970::Base::Core::Curve - { - - public: - GrossToNetActivePowerCurve(); - virtual ~GrossToNetActivePowerCurve(); - - }; - - } - - } - - } - -} -#endif // GROSSTONETACTIVEPOWERCURVE_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/HeatInputCurve.cpp b/IEC61970_17v07/IEC61970/Base/Generation/Production/HeatInputCurve.cpp deleted file mode 100644 index 24400414d..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/HeatInputCurve.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// HeatInputCurve.cpp -// Implementation of the Class HeatInputCurve -/////////////////////////////////////////////////////////// - -#include "HeatInputCurve.h" - -using IEC61970::Base::Generation::Production::HeatInputCurve; - - -HeatInputCurve::HeatInputCurve(){ - -} - - - -HeatInputCurve::~HeatInputCurve(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/HeatInputCurve.h b/IEC61970_17v07/IEC61970/Base/Generation/Production/HeatInputCurve.h deleted file mode 100644 index 7f420625f..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/HeatInputCurve.h +++ /dev/null @@ -1,66 +0,0 @@ -/////////////////////////////////////////////////////////// -// HeatInputCurve.h -// Implementation of the Class HeatInputCurve -/////////////////////////////////////////////////////////// - -#ifndef HEATINPUTCURVE_H -#define HEATINPUTCURVE_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/ActivePower.h" -#include "IEC61970/Base/Generation/Production/HeatRate.h" -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Core/Curve.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace Production - { - /** - * Relationship between unit heat input in energy per time for main fuel (Y1-axis) - * and supplemental fuel (Y2-axis) versus unit output in active power (X-axis). - * The quantity of main fuel used to sustain generation at this output level is - * prorated for throttling between definition points. The quantity of supplemental - * fuel used at this output level is fixed and not prorated. - */ - class HeatInputCurve : public IEC61970::Base::Core::Curve - { - - public: - HeatInputCurve(); - virtual ~HeatInputCurve(); - /** - * Power output - auxiliary power multiplier adjustment factor. - */ - IEC61970::Base::Domain::PU auxPowerMult; - /** - * Power output - auxiliary power offset adjustment factor. - */ - IEC61970::Base::Domain::ActivePower auxPowerOffset; - /** - * Heat input - efficiency multiplier adjustment factor. - */ - IEC61970::Base::Domain::PU heatInputEff; - /** - * Heat input - offset adjustment factor. - */ - IEC61970::Base::Generation::Production::HeatRate heatInputOffset; - /** - * Flag is set to true when output is expressed in net active power. - */ - IEC61970::Base::Domain::Boolean isNetGrossP; - - }; - - } - - } - - } - -} -#endif // HEATINPUTCURVE_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/HeatRate.cpp b/IEC61970_17v07/IEC61970/Base/Generation/Production/HeatRate.cpp deleted file mode 100644 index 2c39330a6..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/HeatRate.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// HeatRate.cpp -// Implementation of the Class HeatRate -/////////////////////////////////////////////////////////// - -#include "HeatRate.h" - -using IEC61970::Base::Generation::Production::HeatRate; - - -HeatRate::HeatRate(){ - -} - - - -HeatRate::~HeatRate(){ - -} - - -const IEC61970::Base::Domain::UnitSymbol HeatRate::unit = IEC61970::Base::Domain::UnitSymbol::J; diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/HeatRate.h b/IEC61970_17v07/IEC61970/Base/Generation/Production/HeatRate.h deleted file mode 100644 index 58dd90002..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/HeatRate.h +++ /dev/null @@ -1,43 +0,0 @@ -/////////////////////////////////////////////////////////// -// HeatRate.h -// Implementation of the Class HeatRate -/////////////////////////////////////////////////////////// - -#ifndef HEATRATE_H -#define HEATRATE_H - -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/UnitSymbol.h" -#include "IEC61970/Base/Domain/Float.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace Production - { - /** - * Heat generated, in energy pertime unit of elapsed time. - */ - class HeatRate - { - - public: - HeatRate(); - virtual ~HeatRate(); - IEC61970::Base::Domain::UnitMultiplier multiplier = IEC61970::Base::Domain::UnitMultiplier::_undef; - static const IEC61970::Base::Domain::UnitSymbol unit; - IEC61970::Base::Domain::Float value; - - }; - - } - - } - - } - -} -#endif // HEATRATE_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/HeatRateCurve.cpp b/IEC61970_17v07/IEC61970/Base/Generation/Production/HeatRateCurve.cpp deleted file mode 100644 index f9074ff8b..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/HeatRateCurve.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// HeatRateCurve.cpp -// Implementation of the Class HeatRateCurve -/////////////////////////////////////////////////////////// - -#include "HeatRateCurve.h" - -using IEC61970::Base::Generation::Production::HeatRateCurve; - - -HeatRateCurve::HeatRateCurve(){ - -} - - - -HeatRateCurve::~HeatRateCurve(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/HeatRateCurve.h b/IEC61970_17v07/IEC61970/Base/Generation/Production/HeatRateCurve.h deleted file mode 100644 index 7f271f47d..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/HeatRateCurve.h +++ /dev/null @@ -1,44 +0,0 @@ -/////////////////////////////////////////////////////////// -// HeatRateCurve.h -// Implementation of the Class HeatRateCurve -/////////////////////////////////////////////////////////// - -#ifndef HEATRATECURVE_H -#define HEATRATECURVE_H - -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Core/Curve.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace Production - { - /** - * Relationship between unit heat rate per active power (Y-axis) and unit output - * (X-axis). The heat input is from all fuels. - */ - class HeatRateCurve : public IEC61970::Base::Core::Curve - { - - public: - HeatRateCurve(); - virtual ~HeatRateCurve(); - /** - * Flag is set to true when output is expressed in net active power. - */ - IEC61970::Base::Domain::Boolean isNetGrossP; - - }; - - } - - } - - } - -} -#endif // HEATRATECURVE_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/HydroEnergyConversionKind.h b/IEC61970_17v07/IEC61970/Base/Generation/Production/HydroEnergyConversionKind.h deleted file mode 100644 index ff06f38e6..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/HydroEnergyConversionKind.h +++ /dev/null @@ -1,41 +0,0 @@ -/////////////////////////////////////////////////////////// -// HydroEnergyConversionKind.h -// Implementation of the Class HydroEnergyConversionKind -// Original author: kdd -/////////////////////////////////////////////////////////// - -#ifndef HYDROENERGYCONVERSIONKIND_H -#define HYDROENERGYCONVERSIONKIND_H - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace Production - { - /** - * Specifies the capability of the hydro generating unit to convert energy as a - * generator or pump. - */ - enum class HydroEnergyConversionKind - { - /** - * Able to generate power, but not able to pump water for energy storage. - */ - _undef = -1, generator, - /** - * Able to both generate power and pump water for energy storage. - */ - pumpAndGenerator - }; - - } - - } - - } - -} -#endif // HYDROENERGYCONVERSIONKIND_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/HydroGeneratingEfficiencyCurve.cpp b/IEC61970_17v07/IEC61970/Base/Generation/Production/HydroGeneratingEfficiencyCurve.cpp deleted file mode 100644 index 7fe264957..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/HydroGeneratingEfficiencyCurve.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// HydroGeneratingEfficiencyCurve.cpp -// Implementation of the Class HydroGeneratingEfficiencyCurve -/////////////////////////////////////////////////////////// - -#include "HydroGeneratingEfficiencyCurve.h" - -using IEC61970::Base::Generation::Production::HydroGeneratingEfficiencyCurve; - - -HydroGeneratingEfficiencyCurve::HydroGeneratingEfficiencyCurve(){ - -} - - - -HydroGeneratingEfficiencyCurve::~HydroGeneratingEfficiencyCurve(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/HydroGeneratingEfficiencyCurve.h b/IEC61970_17v07/IEC61970/Base/Generation/Production/HydroGeneratingEfficiencyCurve.h deleted file mode 100644 index 2cec9e7de..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/HydroGeneratingEfficiencyCurve.h +++ /dev/null @@ -1,44 +0,0 @@ -/////////////////////////////////////////////////////////// -// HydroGeneratingEfficiencyCurve.h -// Implementation of the Class HydroGeneratingEfficiencyCurve -/////////////////////////////////////////////////////////// - -#ifndef HYDROGENERATINGEFFICIENCYCURVE_H -#define HYDROGENERATINGEFFICIENCYCURVE_H - -#include "IEC61970/Base/Core/Curve.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace Production - { - /** - * Relationship between unit efficiency in percent and unit output active power - * for a given net head in meters. The relationship between efficiency, discharge, - * head, and power output is expressed as follows: E =KP/HQ - * Where: (E=percentage) (P=active power) (H=height) (Q=volume/time unit) - * (K=constant) - * For example, a curve instance for a given net head could relate efficiency (Y- - * axis) versus active power output (X-axis) or versus discharge on the X-axis. - */ - class HydroGeneratingEfficiencyCurve : public IEC61970::Base::Core::Curve - { - - public: - HydroGeneratingEfficiencyCurve(); - virtual ~HydroGeneratingEfficiencyCurve(); - - }; - - } - - } - - } - -} -#endif // HYDROGENERATINGEFFICIENCYCURVE_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/HydroGeneratingUnit.cpp b/IEC61970_17v07/IEC61970/Base/Generation/Production/HydroGeneratingUnit.cpp deleted file mode 100644 index cf0d62637..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/HydroGeneratingUnit.cpp +++ /dev/null @@ -1,21 +0,0 @@ -/////////////////////////////////////////////////////////// -// HydroGeneratingUnit.cpp -// Implementation of the Class HydroGeneratingUnit -/////////////////////////////////////////////////////////// - -#include "HydroGeneratingUnit.h" - -using IEC61970::Base::Generation::Production::HydroGeneratingUnit; - - -HydroGeneratingUnit::HydroGeneratingUnit() - : PenstockLossCurve(nullptr) -{ - -} - - - -HydroGeneratingUnit::~HydroGeneratingUnit(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/HydroGeneratingUnit.h b/IEC61970_17v07/IEC61970/Base/Generation/Production/HydroGeneratingUnit.h deleted file mode 100644 index d1beaf2d3..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/HydroGeneratingUnit.h +++ /dev/null @@ -1,66 +0,0 @@ -/////////////////////////////////////////////////////////// -// HydroGeneratingUnit.h -// Implementation of the Class HydroGeneratingUnit -/////////////////////////////////////////////////////////// - -#ifndef HYDROGENERATINGUNIT_H -#define HYDROGENERATINGUNIT_H - -#include - -#include "IEC61970/Base/Generation/Production/HydroEnergyConversionKind.h" -#include "IEC61970/Base/Domain/CostPerVolume.h" -#include "IEC61970/Base/Generation/Production/TailbayLossCurve.h" -#include "IEC61970/Base/Generation/Production/GeneratingUnit.h" -#include "IEC61970/Base/Generation/Production/HydroGeneratingEfficiencyCurve.h" -#include "IEC61970/Base/Generation/Production/PenstockLossCurve.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace Production - { - /** - * A generating unit whose prime mover is a hydraulic turbine (e.g., Francis, - * Pelton, Kaplan). - */ - class HydroGeneratingUnit : public IEC61970::Base::Generation::Production::GeneratingUnit - { - - public: - HydroGeneratingUnit(); - virtual ~HydroGeneratingUnit(); - /** - * Energy conversion capability for generating. - */ - IEC61970::Base::Generation::Production::HydroEnergyConversionKind energyConversionCapability = IEC61970::Base::Generation::Production::HydroEnergyConversionKind::_undef; - /** - * The equivalent cost of water that drives the hydro turbine. - */ - IEC61970::Base::Domain::CostPerVolume hydroUnitWaterCost; - /** - * A hydro generating unit has a tailbay loss curve. - */ - std::list TailbayLossCurve; - /** - * A hydro generating unit has an efficiency curve. - */ - std::list HydroGeneratingEfficiencyCurves; - /** - * A hydro generating unit has a penstock loss curve. - */ - IEC61970::Base::Generation::Production::PenstockLossCurve *PenstockLossCurve; - - }; - - } - - } - - } - -} -#endif // HYDROGENERATINGUNIT_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/HydroPlantStorageKind.h b/IEC61970_17v07/IEC61970/Base/Generation/Production/HydroPlantStorageKind.h deleted file mode 100644 index bea0f8f60..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/HydroPlantStorageKind.h +++ /dev/null @@ -1,43 +0,0 @@ -/////////////////////////////////////////////////////////// -// HydroPlantStorageKind.h -// Implementation of the Class HydroPlantStorageKind -/////////////////////////////////////////////////////////// - -#ifndef HYDROPLANTSTORAGEKIND_H -#define HYDROPLANTSTORAGEKIND_H - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace Production - { - /** - * The type of hydro power plant. - */ - enum class HydroPlantStorageKind - { - /** - * Run of river. - */ - _undef = -1, runOfRiver, - /** - * Pumped storage. - */ - pumpedStorage, - /** - * Storage. - */ - storage - }; - - } - - } - - } - -} -#endif // HYDROPLANTSTORAGEKIND_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/HydroPowerPlant.cpp b/IEC61970_17v07/IEC61970/Base/Generation/Production/HydroPowerPlant.cpp deleted file mode 100644 index 25a487b14..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/HydroPowerPlant.cpp +++ /dev/null @@ -1,21 +0,0 @@ -/////////////////////////////////////////////////////////// -// HydroPowerPlant.cpp -// Implementation of the Class HydroPowerPlant -/////////////////////////////////////////////////////////// - -#include "HydroPowerPlant.h" - -using IEC61970::Base::Generation::Production::HydroPowerPlant; - - -HydroPowerPlant::HydroPowerPlant() - : Reservoir(nullptr), GenSourcePumpDischargeReservoir(nullptr) -{ - -} - - - -HydroPowerPlant::~HydroPowerPlant(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/HydroPowerPlant.h b/IEC61970_17v07/IEC61970/Base/Generation/Production/HydroPowerPlant.h deleted file mode 100644 index 7cfeb10f4..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/HydroPowerPlant.h +++ /dev/null @@ -1,108 +0,0 @@ -/////////////////////////////////////////////////////////// -// HydroPowerPlant.h -// Implementation of the Class HydroPowerPlant -/////////////////////////////////////////////////////////// - -#ifndef HYDROPOWERPLANT_H -#define HYDROPOWERPLANT_H - -#include - -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Domain/ActivePower.h" -#include "IEC61970/Base/Generation/Production/HydroPlantStorageKind.h" -#include "IEC61970/Base/Domain/String.h" -#include "IEC61970/Base/Domain/VolumeFlowRate.h" -#include "IEC61970/Base/Domain/Length.h" -#include "IEC61970/Base/Domain/WaterLevel.h" -#include "IEC61970/Base/Generation/Production/HydroPump.h" -#include "IEC61970/Base/Generation/Production/Reservoir.h" -#include "IEC61970/Base/Generation/Production/HydroGeneratingUnit.h" -#include "IEC61970/Base/Core/PowerSystemResource.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace Production - { - /** - * A hydro power station which can generate or pump. When generating, the - * generator turbines receive water from an upper reservoir. When pumping, the - * pumps receive their water from a lower reservoir. - */ - class HydroPowerPlant : public IEC61970::Base::Core::PowerSystemResource - { - - public: - HydroPowerPlant(); - virtual ~HydroPowerPlant(); - /** - * Water travel delay from tailbay to next downstream hydro power station. - */ - IEC61970::Base::Domain::Seconds dischargeTravelDelay; - /** - * The hydro plant's generating rating active power for rated head conditions. - */ - IEC61970::Base::Domain::ActivePower genRatedP; - /** - * The type of hydro power plant water storage. - */ - IEC61970::Base::Generation::Production::HydroPlantStorageKind hydroPlantStorageType = IEC61970::Base::Generation::Production::HydroPlantStorageKind::_undef; - /** - * Type and configuration of hydro plant penstock(s). - */ - IEC61970::Base::Domain::String penstockType; - /** - * Total plant discharge capacity. - */ - IEC61970::Base::Domain::VolumeFlowRate plantDischargeCapacity; - /** - * The plant's rated gross head. - */ - IEC61970::Base::Domain::Length plantRatedHead; - /** - * The hydro plant's pumping rating active power for rated head conditions. - */ - IEC61970::Base::Domain::ActivePower pumpRatedP; - /** - * A code describing the type (or absence) of surge tank that is associated with - * the hydro power plant. - */ - IEC61970::Base::Domain::String surgeTankCode; - /** - * The level at which the surge tank spills. - */ - IEC61970::Base::Domain::WaterLevel surgeTankCrestLevel; - /** - * The hydro pump may be a member of a pumped storage plant or a pump for - * distributing water. - */ - std::list HydroPumps; - /** - * Generators discharge water to or pumps are supplied water from a downstream - * reservoir. - */ - IEC61970::Base::Generation::Production::Reservoir *Reservoir; - /** - * Generators are supplied water from or pumps discharge water to an upstream - * reservoir. - */ - IEC61970::Base::Generation::Production::Reservoir *GenSourcePumpDischargeReservoir; - /** - * The hydro generating unit belongs to a hydro power plant. - */ - std::list HydroGeneratingUnits; - - }; - - } - - } - - } - -} -#endif // HYDROPOWERPLANT_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/HydroPump.cpp b/IEC61970_17v07/IEC61970/Base/Generation/Production/HydroPump.cpp deleted file mode 100644 index f909089bf..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/HydroPump.cpp +++ /dev/null @@ -1,21 +0,0 @@ -/////////////////////////////////////////////////////////// -// HydroPump.cpp -// Implementation of the Class HydroPump -/////////////////////////////////////////////////////////// - -#include "HydroPump.h" - -using IEC61970::Base::Generation::Production::HydroPump; - - -HydroPump::HydroPump() - : HydroPumpOpSchedule(nullptr) -{ - -} - - - -HydroPump::~HydroPump(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/HydroPump.h b/IEC61970_17v07/IEC61970/Base/Generation/Production/HydroPump.h deleted file mode 100644 index 309a513cf..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/HydroPump.h +++ /dev/null @@ -1,63 +0,0 @@ -/////////////////////////////////////////////////////////// -// HydroPump.h -// Implementation of the Class HydroPump -/////////////////////////////////////////////////////////// - -#ifndef HYDROPUMP_H -#define HYDROPUMP_H - -#include "IEC61970/Base/Domain/VolumeFlowRate.h" -#include "IEC61970/Base/Domain/ActivePower.h" -#include "IEC61970/Base/Generation/Production/HydroPumpOpSchedule.h" -#include "IEC61970/Base/Core/Equipment.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace Production - { - /** - * A synchronous motor-driven pump, typically associated with a pumped storage - * plant. - */ - class HydroPump : public IEC61970::Base::Core::Equipment - { - - public: - HydroPump(); - virtual ~HydroPump(); - /** - * The pumping discharge under maximum head conditions, usually at full gate. - */ - IEC61970::Base::Domain::VolumeFlowRate pumpDischAtMaxHead; - /** - * The pumping discharge under minimum head conditions, usually at full gate. - */ - IEC61970::Base::Domain::VolumeFlowRate pumpDischAtMinHead; - /** - * The pumping power under maximum head conditions, usually at full gate. - */ - IEC61970::Base::Domain::ActivePower pumpPowerAtMaxHead; - /** - * The pumping power under minimum head conditions, usually at full gate. - */ - IEC61970::Base::Domain::ActivePower pumpPowerAtMinHead; - /** - * The hydro pump has a pumping schedule over time, indicating when pumping is to - * occur. - */ - IEC61970::Base::Generation::Production::HydroPumpOpSchedule *HydroPumpOpSchedule; - - }; - - } - - } - - } - -} -#endif // HYDROPUMP_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/HydroPumpOpSchedule.cpp b/IEC61970_17v07/IEC61970/Base/Generation/Production/HydroPumpOpSchedule.cpp deleted file mode 100644 index 22080e167..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/HydroPumpOpSchedule.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// HydroPumpOpSchedule.cpp -// Implementation of the Class HydroPumpOpSchedule -/////////////////////////////////////////////////////////// - -#include "HydroPumpOpSchedule.h" - -using IEC61970::Base::Generation::Production::HydroPumpOpSchedule; - - -HydroPumpOpSchedule::HydroPumpOpSchedule(){ - -} - - - -HydroPumpOpSchedule::~HydroPumpOpSchedule(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/HydroPumpOpSchedule.h b/IEC61970_17v07/IEC61970/Base/Generation/Production/HydroPumpOpSchedule.h deleted file mode 100644 index fda8186e1..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/HydroPumpOpSchedule.h +++ /dev/null @@ -1,41 +0,0 @@ -/////////////////////////////////////////////////////////// -// HydroPumpOpSchedule.h -// Implementation of the Class HydroPumpOpSchedule -/////////////////////////////////////////////////////////// - -#ifndef HYDROPUMPOPSCHEDULE_H -#define HYDROPUMPOPSCHEDULE_H - -#include "IEC61970/Base/Core/RegularIntervalSchedule.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace Production - { - /** - * The hydro pump's Operator-approved current operating schedule (or plan), - * typically produced with the aid of unit commitment type analyses.The unit's - * operating schedule status is typically given as: (0=unavailable) (1=avilable to - * startup or shutdown) (2=must pump). - */ - class HydroPumpOpSchedule : public IEC61970::Base::Core::RegularIntervalSchedule - { - - public: - HydroPumpOpSchedule(); - virtual ~HydroPumpOpSchedule(); - - }; - - } - - } - - } - -} -#endif // HYDROPUMPOPSCHEDULE_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/IncrementalHeatRateCurve.cpp b/IEC61970_17v07/IEC61970/Base/Generation/Production/IncrementalHeatRateCurve.cpp deleted file mode 100644 index b9d3fcfa9..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/IncrementalHeatRateCurve.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// IncrementalHeatRateCurve.cpp -// Implementation of the Class IncrementalHeatRateCurve -/////////////////////////////////////////////////////////// - -#include "IncrementalHeatRateCurve.h" - -using IEC61970::Base::Generation::Production::IncrementalHeatRateCurve; - - -IncrementalHeatRateCurve::IncrementalHeatRateCurve(){ - -} - - - -IncrementalHeatRateCurve::~IncrementalHeatRateCurve(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/IncrementalHeatRateCurve.h b/IEC61970_17v07/IEC61970/Base/Generation/Production/IncrementalHeatRateCurve.h deleted file mode 100644 index b5055e603..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/IncrementalHeatRateCurve.h +++ /dev/null @@ -1,46 +0,0 @@ -/////////////////////////////////////////////////////////// -// IncrementalHeatRateCurve.h -// Implementation of the Class IncrementalHeatRateCurve -/////////////////////////////////////////////////////////// - -#ifndef INCREMENTALHEATRATECURVE_H -#define INCREMENTALHEATRATECURVE_H - -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Core/Curve.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace Production - { - /** - * Relationship between unit incremental heat rate in (delta energy/time) per - * (delta active power) and unit output in active power. The IHR curve represents - * the slope of the HeatInputCurve. Note that the "incremental heat rate" and the - * "heat rate" have the same engineering units. - */ - class IncrementalHeatRateCurve : public IEC61970::Base::Core::Curve - { - - public: - IncrementalHeatRateCurve(); - virtual ~IncrementalHeatRateCurve(); - /** - * Flag is set to true when output is expressed in net active power. - */ - IEC61970::Base::Domain::Boolean isNetGrossP; - - }; - - } - - } - - } - -} -#endif // INCREMENTALHEATRATECURVE_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/InflowForecast.cpp b/IEC61970_17v07/IEC61970/Base/Generation/Production/InflowForecast.cpp deleted file mode 100644 index 96c4741b5..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/InflowForecast.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// InflowForecast.cpp -// Implementation of the Class InflowForecast -/////////////////////////////////////////////////////////// - -#include "InflowForecast.h" - -using IEC61970::Base::Generation::Production::InflowForecast; - - -InflowForecast::InflowForecast(){ - -} - - - -InflowForecast::~InflowForecast(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/InflowForecast.h b/IEC61970_17v07/IEC61970/Base/Generation/Production/InflowForecast.h deleted file mode 100644 index b0d7846d4..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/InflowForecast.h +++ /dev/null @@ -1,40 +0,0 @@ -/////////////////////////////////////////////////////////// -// InflowForecast.h -// Implementation of the Class InflowForecast -/////////////////////////////////////////////////////////// - -#ifndef INFLOWFORECAST_H -#define INFLOWFORECAST_H - -#include "IEC61970/Base/Core/RegularIntervalSchedule.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace Production - { - /** - * Natural water inflow to a reservoir, usually forecasted from predicted rain and - * snowmelt. Typically in one hour increments for up to 10 days. The forecast is - * given in average cubic meters per second over the time increment. - */ - class InflowForecast : public IEC61970::Base::Core::RegularIntervalSchedule - { - - public: - InflowForecast(); - virtual ~InflowForecast(); - - }; - - } - - } - - } - -} -#endif // INFLOWFORECAST_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/LevelVsVolumeCurve.cpp b/IEC61970_17v07/IEC61970/Base/Generation/Production/LevelVsVolumeCurve.cpp deleted file mode 100644 index e23014c5b..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/LevelVsVolumeCurve.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// LevelVsVolumeCurve.cpp -// Implementation of the Class LevelVsVolumeCurve -/////////////////////////////////////////////////////////// - -#include "LevelVsVolumeCurve.h" - -using IEC61970::Base::Generation::Production::LevelVsVolumeCurve; - - -LevelVsVolumeCurve::LevelVsVolumeCurve(){ - -} - - - -LevelVsVolumeCurve::~LevelVsVolumeCurve(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/LevelVsVolumeCurve.h b/IEC61970_17v07/IEC61970/Base/Generation/Production/LevelVsVolumeCurve.h deleted file mode 100644 index e589bf7be..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/LevelVsVolumeCurve.h +++ /dev/null @@ -1,39 +0,0 @@ -/////////////////////////////////////////////////////////// -// LevelVsVolumeCurve.h -// Implementation of the Class LevelVsVolumeCurve -/////////////////////////////////////////////////////////// - -#ifndef LEVELVSVOLUMECURVE_H -#define LEVELVSVOLUMECURVE_H - -#include "IEC61970/Base/Core/Curve.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace Production - { - /** - * Relationship between reservoir volume and reservoir level. The volume is at - * the y-axis and the reservoir level at the x-axis. - */ - class LevelVsVolumeCurve : public IEC61970::Base::Core::Curve - { - - public: - LevelVsVolumeCurve(); - virtual ~LevelVsVolumeCurve(); - - }; - - } - - } - - } - -} -#endif // LEVELVSVOLUMECURVE_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/NuclearGeneratingUnit.cpp b/IEC61970_17v07/IEC61970/Base/Generation/Production/NuclearGeneratingUnit.cpp deleted file mode 100644 index f350ebccd..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/NuclearGeneratingUnit.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// NuclearGeneratingUnit.cpp -// Implementation of the Class NuclearGeneratingUnit -// Original author: kdd -/////////////////////////////////////////////////////////// - -#include "NuclearGeneratingUnit.h" - -using IEC61970::Base::Generation::Production::NuclearGeneratingUnit; - - -NuclearGeneratingUnit::NuclearGeneratingUnit(){ - -} - - - -NuclearGeneratingUnit::~NuclearGeneratingUnit(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/NuclearGeneratingUnit.h b/IEC61970_17v07/IEC61970/Base/Generation/Production/NuclearGeneratingUnit.h deleted file mode 100644 index bea906483..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/NuclearGeneratingUnit.h +++ /dev/null @@ -1,39 +0,0 @@ -/////////////////////////////////////////////////////////// -// NuclearGeneratingUnit.h -// Implementation of the Class NuclearGeneratingUnit -// Original author: kdd -/////////////////////////////////////////////////////////// - -#ifndef NUCLEARGENERATINGUNIT_H -#define NUCLEARGENERATINGUNIT_H - -#include "IEC61970/Base/Generation/Production/GeneratingUnit.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace Production - { - /** - * A nuclear generating unit. - */ - class NuclearGeneratingUnit : public IEC61970::Base::Generation::Production::GeneratingUnit - { - - public: - NuclearGeneratingUnit(); - virtual ~NuclearGeneratingUnit(); - - }; - - } - - } - - } - -} -#endif // NUCLEARGENERATINGUNIT_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/PenstockLossCurve.cpp b/IEC61970_17v07/IEC61970/Base/Generation/Production/PenstockLossCurve.cpp deleted file mode 100644 index 263e89009..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/PenstockLossCurve.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// PenstockLossCurve.cpp -// Implementation of the Class PenstockLossCurve -/////////////////////////////////////////////////////////// - -#include "PenstockLossCurve.h" - -using IEC61970::Base::Generation::Production::PenstockLossCurve; - - -PenstockLossCurve::PenstockLossCurve(){ - -} - - - -PenstockLossCurve::~PenstockLossCurve(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/PenstockLossCurve.h b/IEC61970_17v07/IEC61970/Base/Generation/Production/PenstockLossCurve.h deleted file mode 100644 index 78518bc17..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/PenstockLossCurve.h +++ /dev/null @@ -1,40 +0,0 @@ -/////////////////////////////////////////////////////////// -// PenstockLossCurve.h -// Implementation of the Class PenstockLossCurve -/////////////////////////////////////////////////////////// - -#ifndef PENSTOCKLOSSCURVE_H -#define PENSTOCKLOSSCURVE_H - -#include "IEC61970/Base/Core/Curve.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace Production - { - /** - * Relationship between penstock head loss (in meters) and total discharge - * through the penstock (in cubic meters per second). One or more turbines may be - * connected to the same penstock. - */ - class PenstockLossCurve : public IEC61970::Base::Core::Curve - { - - public: - PenstockLossCurve(); - virtual ~PenstockLossCurve(); - - }; - - } - - } - - } - -} -#endif // PENSTOCKLOSSCURVE_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/Reservoir.cpp b/IEC61970_17v07/IEC61970/Base/Generation/Production/Reservoir.cpp deleted file mode 100644 index e5f4e89cd..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/Reservoir.cpp +++ /dev/null @@ -1,21 +0,0 @@ -/////////////////////////////////////////////////////////// -// Reservoir.cpp -// Implementation of the Class Reservoir -/////////////////////////////////////////////////////////// - -#include "Reservoir.h" - -using IEC61970::Base::Generation::Production::Reservoir; - - -Reservoir::Reservoir() - : TargetLevelSchedule(nullptr) -{ - -} - - - -Reservoir::~Reservoir(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/Reservoir.h b/IEC61970_17v07/IEC61970/Base/Generation/Production/Reservoir.h deleted file mode 100644 index dbe5606d3..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/Reservoir.h +++ /dev/null @@ -1,112 +0,0 @@ -/////////////////////////////////////////////////////////// -// Reservoir.h -// Implementation of the Class Reservoir -/////////////////////////////////////////////////////////// - -#ifndef RESERVOIR_H -#define RESERVOIR_H - -#include - -#include "IEC61970/Base/Domain/Volume.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/WaterLevel.h" -#include "IEC61970/Base/Domain/String.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Domain/Length.h" -#include "IEC61970/Base/Generation/Production/LevelVsVolumeCurve.h" -#include "IEC61970/Base/Generation/Production/InflowForecast.h" -#include "IEC61970/Base/Generation/Production/TargetLevelSchedule.h" -#include "IEC61970/Base/Core/PowerSystemResource.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace Production - { - /** - * A water storage facility within a hydro system, including: ponds, lakes, - * lagoons, and rivers. The storage is usually behind some type of dam. - */ - class Reservoir : public IEC61970::Base::Core::PowerSystemResource - { - - public: - Reservoir(); - virtual ~Reservoir(); - /** - * Storage volume between the full supply level and the normal minimum operating - * level. - */ - IEC61970::Base::Domain::Volume activeStorageCapacity; - /** - * The reservoir's energy storage rating in energy for given head conditions. - */ - IEC61970::Base::Domain::Float energyStorageRating; - /** - * Full supply level, above which water will spill. This can be the spillway crest - * level or the top of closed gates. - */ - IEC61970::Base::Domain::WaterLevel fullSupplyLevel; - /** - * Total capacity of reservoir. - */ - IEC61970::Base::Domain::Volume grossCapacity; - /** - * Normal minimum operating level below which the penstocks will draw air. - */ - IEC61970::Base::Domain::WaterLevel normalMinOperateLevel; - /** - * River outlet works for riparian right releases or other purposes. - */ - IEC61970::Base::Domain::String riverOutletWorks; - /** - * The spillway water travel delay to the next downstream reservoir. - */ - IEC61970::Base::Domain::Seconds spillTravelDelay; - /** - * The flow capacity of the spillway in cubic meters per second. - */ - IEC61970::Base::Domain::Float spillwayCapacity; - /** - * The length of the spillway crest. - */ - IEC61970::Base::Domain::Length spillwayCrestLength; - /** - * Spillway crest level above which water will spill. - */ - IEC61970::Base::Domain::WaterLevel spillwayCrestLevel; - /** - * Type of spillway gate, including parameters. - */ - IEC61970::Base::Domain::String spillWayGateType; - /** - * A reservoir may spill into a downstream reservoir. - */ - std::list SpillsIntoReservoirs; - /** - * A reservoir may have a level versus volume relationship. - */ - std::list LevelVsVolumeCurves; - /** - * A reservoir may have a "natural" inflow forecast. - */ - std::list InflowForecasts; - /** - * A reservoir may have a water level target schedule. - */ - IEC61970::Base::Generation::Production::TargetLevelSchedule *TargetLevelSchedule; - - }; - - } - - } - - } - -} -#endif // RESERVOIR_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/ShutdownCurve.cpp b/IEC61970_17v07/IEC61970/Base/Generation/Production/ShutdownCurve.cpp deleted file mode 100644 index 23b9fc682..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/ShutdownCurve.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// ShutdownCurve.cpp -// Implementation of the Class ShutdownCurve -/////////////////////////////////////////////////////////// - -#include "ShutdownCurve.h" - -using IEC61970::Base::Generation::Production::ShutdownCurve; - - -ShutdownCurve::ShutdownCurve(){ - -} - - - -ShutdownCurve::~ShutdownCurve(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/ShutdownCurve.h b/IEC61970_17v07/IEC61970/Base/Generation/Production/ShutdownCurve.h deleted file mode 100644 index ea61c2ea6..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/ShutdownCurve.h +++ /dev/null @@ -1,49 +0,0 @@ -/////////////////////////////////////////////////////////// -// ShutdownCurve.h -// Implementation of the Class ShutdownCurve -/////////////////////////////////////////////////////////// - -#ifndef SHUTDOWNCURVE_H -#define SHUTDOWNCURVE_H - -#include "IEC61970/Base/Domain/Money.h" -#include "IEC61970/Base/Domain/DateTime.h" -#include "IEC61970/Base/Core/Curve.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace Production - { - /** - * Relationship between the rate in gross active power/minute (Y-axis) at which a - * unit should be shutdown and its present gross MW output (X-axis). - */ - class ShutdownCurve : public IEC61970::Base::Core::Curve - { - - public: - ShutdownCurve(); - virtual ~ShutdownCurve(); - /** - * Fixed shutdown cost. - */ - IEC61970::Base::Domain::Money shutdownCost; - /** - * The date and time of the most recent generating unit shutdown. - */ - IEC61970::Base::Domain::DateTime shutdownDate; - - }; - - } - - } - - } - -} -#endif // SHUTDOWNCURVE_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/SolarGeneratingUnit.cpp b/IEC61970_17v07/IEC61970/Base/Generation/Production/SolarGeneratingUnit.cpp deleted file mode 100644 index 76cfb6bb3..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/SolarGeneratingUnit.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// SolarGeneratingUnit.cpp -// Implementation of the Class SolarGeneratingUnit -// Original author: kdd -/////////////////////////////////////////////////////////// - -#include "SolarGeneratingUnit.h" - -using IEC61970::Base::Generation::Production::SolarGeneratingUnit; - - -SolarGeneratingUnit::SolarGeneratingUnit(){ - -} - - - -SolarGeneratingUnit::~SolarGeneratingUnit(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/SolarGeneratingUnit.h b/IEC61970_17v07/IEC61970/Base/Generation/Production/SolarGeneratingUnit.h deleted file mode 100644 index 006c7b3aa..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/SolarGeneratingUnit.h +++ /dev/null @@ -1,40 +0,0 @@ -/////////////////////////////////////////////////////////// -// SolarGeneratingUnit.h -// Implementation of the Class SolarGeneratingUnit -// Original author: kdd -/////////////////////////////////////////////////////////// - -#ifndef SOLARGENERATINGUNIT_H -#define SOLARGENERATINGUNIT_H - -#include "IEC61970/Base/Generation/Production/GeneratingUnit.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace Production - { - /** - * A solar thermal generating unit, connected to the grid by means of a rotating - * machine. This class does not represent photovoltaic (PV) generation. - */ - class SolarGeneratingUnit : public IEC61970::Base::Generation::Production::GeneratingUnit - { - - public: - SolarGeneratingUnit(); - virtual ~SolarGeneratingUnit(); - - }; - - } - - } - - } - -} -#endif // SOLARGENERATINGUNIT_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/StartIgnFuelCurve.cpp b/IEC61970_17v07/IEC61970/Base/Generation/Production/StartIgnFuelCurve.cpp deleted file mode 100644 index d95eab19c..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/StartIgnFuelCurve.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// StartIgnFuelCurve.cpp -// Implementation of the Class StartIgnFuelCurve -/////////////////////////////////////////////////////////// - -#include "StartIgnFuelCurve.h" - -using IEC61970::Base::Generation::Production::StartIgnFuelCurve; - - -StartIgnFuelCurve::StartIgnFuelCurve(){ - -} - - - -StartIgnFuelCurve::~StartIgnFuelCurve(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/StartIgnFuelCurve.h b/IEC61970_17v07/IEC61970/Base/Generation/Production/StartIgnFuelCurve.h deleted file mode 100644 index 3a324909f..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/StartIgnFuelCurve.h +++ /dev/null @@ -1,44 +0,0 @@ -/////////////////////////////////////////////////////////// -// StartIgnFuelCurve.h -// Implementation of the Class StartIgnFuelCurve -/////////////////////////////////////////////////////////// - -#ifndef STARTIGNFUELCURVE_H -#define STARTIGNFUELCURVE_H - -#include "IEC61970/Base/Generation/Production/FuelType.h" -#include "IEC61970/Base/Core/Curve.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace Production - { - /** - * The quantity of ignition fuel (Y-axis) used to restart and repay the auxiliary - * power consumed versus the number of hours (X-axis) the unit was off line. - */ - class StartIgnFuelCurve : public IEC61970::Base::Core::Curve - { - - public: - StartIgnFuelCurve(); - virtual ~StartIgnFuelCurve(); - /** - * Type of ignition fuel. - */ - IEC61970::Base::Generation::Production::FuelType ignitionFuelType = IEC61970::Base::Generation::Production::FuelType::_undef; - - }; - - } - - } - - } - -} -#endif // STARTIGNFUELCURVE_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/StartMainFuelCurve.cpp b/IEC61970_17v07/IEC61970/Base/Generation/Production/StartMainFuelCurve.cpp deleted file mode 100644 index b113e450c..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/StartMainFuelCurve.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// StartMainFuelCurve.cpp -// Implementation of the Class StartMainFuelCurve -/////////////////////////////////////////////////////////// - -#include "StartMainFuelCurve.h" - -using IEC61970::Base::Generation::Production::StartMainFuelCurve; - - -StartMainFuelCurve::StartMainFuelCurve(){ - -} - - - -StartMainFuelCurve::~StartMainFuelCurve(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/StartMainFuelCurve.h b/IEC61970_17v07/IEC61970/Base/Generation/Production/StartMainFuelCurve.h deleted file mode 100644 index b8d246fb1..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/StartMainFuelCurve.h +++ /dev/null @@ -1,44 +0,0 @@ -/////////////////////////////////////////////////////////// -// StartMainFuelCurve.h -// Implementation of the Class StartMainFuelCurve -/////////////////////////////////////////////////////////// - -#ifndef STARTMAINFUELCURVE_H -#define STARTMAINFUELCURVE_H - -#include "IEC61970/Base/Generation/Production/FuelType.h" -#include "IEC61970/Base/Core/Curve.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace Production - { - /** - * The quantity of main fuel (Y-axis) used to restart and repay the auxiliary - * power consumed versus the number of hours (X-axis) the unit was off line. - */ - class StartMainFuelCurve : public IEC61970::Base::Core::Curve - { - - public: - StartMainFuelCurve(); - virtual ~StartMainFuelCurve(); - /** - * Type of main fuel. - */ - IEC61970::Base::Generation::Production::FuelType mainFuelType = IEC61970::Base::Generation::Production::FuelType::_undef; - - }; - - } - - } - - } - -} -#endif // STARTMAINFUELCURVE_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/StartRampCurve.cpp b/IEC61970_17v07/IEC61970/Base/Generation/Production/StartRampCurve.cpp deleted file mode 100644 index e59c1df77..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/StartRampCurve.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// StartRampCurve.cpp -// Implementation of the Class StartRampCurve -/////////////////////////////////////////////////////////// - -#include "StartRampCurve.h" - -using IEC61970::Base::Generation::Production::StartRampCurve; - - -StartRampCurve::StartRampCurve(){ - -} - - - -StartRampCurve::~StartRampCurve(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/StartRampCurve.h b/IEC61970_17v07/IEC61970/Base/Generation/Production/StartRampCurve.h deleted file mode 100644 index b3f3ca7a3..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/StartRampCurve.h +++ /dev/null @@ -1,44 +0,0 @@ -/////////////////////////////////////////////////////////// -// StartRampCurve.h -// Implementation of the Class StartRampCurve -/////////////////////////////////////////////////////////// - -#ifndef STARTRAMPCURVE_H -#define STARTRAMPCURVE_H - -#include "IEC61970/Base/Domain/ActivePowerChangeRate.h" -#include "IEC61970/Base/Core/Curve.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace Production - { - /** - * Rate in gross active power/minute (Y-axis) at which a unit can be loaded versus - * the number of hours (X-axis) the unit was off line. - */ - class StartRampCurve : public IEC61970::Base::Core::Curve - { - - public: - StartRampCurve(); - virtual ~StartRampCurve(); - /** - * The startup ramp rate in gross for a unit that is on hot standby. - */ - IEC61970::Base::Domain::ActivePowerChangeRate hotStandbyRamp; - - }; - - } - - } - - } - -} -#endif // STARTRAMPCURVE_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/StartupModel.cpp b/IEC61970_17v07/IEC61970/Base/Generation/Production/StartupModel.cpp deleted file mode 100644 index 69ef0f95d..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/StartupModel.cpp +++ /dev/null @@ -1,21 +0,0 @@ -/////////////////////////////////////////////////////////// -// StartupModel.cpp -// Implementation of the Class StartupModel -/////////////////////////////////////////////////////////// - -#include "StartupModel.h" - -using IEC61970::Base::Generation::Production::StartupModel; - - -StartupModel::StartupModel() - : StartRampCurve(nullptr), StartIgnFuelCurve(nullptr), StartMainFuelCurve(nullptr) -{ - -} - - - -StartupModel::~StartupModel(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/StartupModel.h b/IEC61970_17v07/IEC61970/Base/Generation/Production/StartupModel.h deleted file mode 100644 index a42049f1e..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/StartupModel.h +++ /dev/null @@ -1,105 +0,0 @@ -/////////////////////////////////////////////////////////// -// StartupModel.h -// Implementation of the Class StartupModel -/////////////////////////////////////////////////////////// - -#ifndef STARTUPMODEL_H -#define STARTUPMODEL_H - -#include "IEC61970/Base/Domain/CostRate.h" -#include "IEC61970/Base/Generation/Production/HeatRate.h" -#include "IEC61970/Base/Domain/CostPerEnergyUnit.h" -#include "IEC61970/Base/Domain/Hours.h" -#include "IEC61970/Base/Domain/Money.h" -#include "IEC61970/Base/Domain/DateTime.h" -#include "IEC61970/Base/Domain/Integer.h" -#include "IEC61970/Base/Domain/ActivePower.h" -#include "IEC61970/Base/Generation/Production/StartRampCurve.h" -#include "IEC61970/Base/Generation/Production/StartIgnFuelCurve.h" -#include "IEC61970/Base/Generation/Production/StartMainFuelCurve.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace Production - { - /** - * Unit start up characteristics depending on how long the unit has been off line. - */ - class StartupModel : public IEC61970::Base::Core::IdentifiedObject - { - - public: - StartupModel(); - virtual ~StartupModel(); - /** - * Fixed maintenance cost. - */ - IEC61970::Base::Domain::CostRate fixedMaintCost; - /** - * The amount of heat input per time uint required for hot standby operation. - */ - IEC61970::Base::Generation::Production::HeatRate hotStandbyHeat; - /** - * Incremental maintenance cost. - */ - IEC61970::Base::Domain::CostPerEnergyUnit incrementalMaintCost; - /** - * The minimum number of hours the unit must be down before restart. - */ - IEC61970::Base::Domain::Hours minimumDownTime; - /** - * The minimum number of hours the unit must be operating before being allowed to - * shut down. - */ - IEC61970::Base::Domain::Hours minimumRunTime; - /** - * The opportunity cost associated with the return in monetary unit. This - * represents the restart's "share" of the unit depreciation and risk of an event - * which would damage the unit. - */ - IEC61970::Base::Domain::Money riskFactorCost; - /** - * Total miscellaneous start up costs. - */ - IEC61970::Base::Domain::Money startupCost; - /** - * The date and time of the most recent generating unit startup. - */ - IEC61970::Base::Domain::DateTime startupDate; - /** - * Startup priority within control area where lower numbers indicate higher - * priorities. More than one unit in an area may be assigned the same priority. - */ - IEC61970::Base::Domain::Integer startupPriority; - /** - * The unit's auxiliary active power consumption to maintain standby mode. - */ - IEC61970::Base::Domain::ActivePower stbyAuxP; - /** - * The unit's startup model may have a startup ramp curve. - */ - IEC61970::Base::Generation::Production::StartRampCurve *StartRampCurve; - /** - * The unit's startup model may have a startup ignition fuel curve. - */ - IEC61970::Base::Generation::Production::StartIgnFuelCurve *StartIgnFuelCurve; - /** - * The unit's startup model may have a startup main fuel curve. - */ - IEC61970::Base::Generation::Production::StartMainFuelCurve *StartMainFuelCurve; - - }; - - } - - } - - } - -} -#endif // STARTUPMODEL_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/SteamSendoutSchedule.cpp b/IEC61970_17v07/IEC61970/Base/Generation/Production/SteamSendoutSchedule.cpp deleted file mode 100644 index b46755608..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/SteamSendoutSchedule.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// SteamSendoutSchedule.cpp -// Implementation of the Class SteamSendoutSchedule -/////////////////////////////////////////////////////////// - -#include "SteamSendoutSchedule.h" - -using IEC61970::Base::Generation::Production::SteamSendoutSchedule; - - -SteamSendoutSchedule::SteamSendoutSchedule(){ - -} - - - -SteamSendoutSchedule::~SteamSendoutSchedule(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/SteamSendoutSchedule.h b/IEC61970_17v07/IEC61970/Base/Generation/Production/SteamSendoutSchedule.h deleted file mode 100644 index 698cf5364..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/SteamSendoutSchedule.h +++ /dev/null @@ -1,38 +0,0 @@ -/////////////////////////////////////////////////////////// -// SteamSendoutSchedule.h -// Implementation of the Class SteamSendoutSchedule -/////////////////////////////////////////////////////////// - -#ifndef STEAMSENDOUTSCHEDULE_H -#define STEAMSENDOUTSCHEDULE_H - -#include "IEC61970/Base/Core/RegularIntervalSchedule.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace Production - { - /** - * The cogeneration plant's steam sendout schedule in volume per time unit. - */ - class SteamSendoutSchedule : public IEC61970::Base::Core::RegularIntervalSchedule - { - - public: - SteamSendoutSchedule(); - virtual ~SteamSendoutSchedule(); - - }; - - } - - } - - } - -} -#endif // STEAMSENDOUTSCHEDULE_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/TailbayLossCurve.cpp b/IEC61970_17v07/IEC61970/Base/Generation/Production/TailbayLossCurve.cpp deleted file mode 100644 index d2f099d1a..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/TailbayLossCurve.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// TailbayLossCurve.cpp -// Implementation of the Class TailbayLossCurve -/////////////////////////////////////////////////////////// - -#include "TailbayLossCurve.h" - -using IEC61970::Base::Generation::Production::TailbayLossCurve; - - -TailbayLossCurve::TailbayLossCurve(){ - -} - - - -TailbayLossCurve::~TailbayLossCurve(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/TailbayLossCurve.h b/IEC61970_17v07/IEC61970/Base/Generation/Production/TailbayLossCurve.h deleted file mode 100644 index 5648dfa18..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/TailbayLossCurve.h +++ /dev/null @@ -1,41 +0,0 @@ -/////////////////////////////////////////////////////////// -// TailbayLossCurve.h -// Implementation of the Class TailbayLossCurve -/////////////////////////////////////////////////////////// - -#ifndef TAILBAYLOSSCURVE_H -#define TAILBAYLOSSCURVE_H - -#include "IEC61970/Base/Core/Curve.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace Production - { - /** - * Relationship between tailbay head loss hight (y-axis) and the total discharge - * into the power station's tailbay volume per time unit (x-axis) . There could be - * more than one curve depending on the level of the tailbay reservoir or river - * level. - */ - class TailbayLossCurve : public IEC61970::Base::Core::Curve - { - - public: - TailbayLossCurve(); - virtual ~TailbayLossCurve(); - - }; - - } - - } - - } - -} -#endif // TAILBAYLOSSCURVE_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/TargetLevelSchedule.cpp b/IEC61970_17v07/IEC61970/Base/Generation/Production/TargetLevelSchedule.cpp deleted file mode 100644 index e8a6487b4..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/TargetLevelSchedule.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// TargetLevelSchedule.cpp -// Implementation of the Class TargetLevelSchedule -/////////////////////////////////////////////////////////// - -#include "TargetLevelSchedule.h" - -using IEC61970::Base::Generation::Production::TargetLevelSchedule; - - -TargetLevelSchedule::TargetLevelSchedule(){ - -} - - - -TargetLevelSchedule::~TargetLevelSchedule(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/TargetLevelSchedule.h b/IEC61970_17v07/IEC61970/Base/Generation/Production/TargetLevelSchedule.h deleted file mode 100644 index 86401cdcc..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/TargetLevelSchedule.h +++ /dev/null @@ -1,48 +0,0 @@ -/////////////////////////////////////////////////////////// -// TargetLevelSchedule.h -// Implementation of the Class TargetLevelSchedule -/////////////////////////////////////////////////////////// - -#ifndef TARGETLEVELSCHEDULE_H -#define TARGETLEVELSCHEDULE_H - -#include "IEC61970/Base/Domain/WaterLevel.h" -#include "IEC61970/Base/Core/Curve.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace Production - { - /** - * Reservoir water level targets from advanced studies or "rule curves". Typically - * in one hour increments for up to 10 days. - */ - class TargetLevelSchedule : public IEC61970::Base::Core::Curve - { - - public: - TargetLevelSchedule(); - virtual ~TargetLevelSchedule(); - /** - * High target level limit, above which the reservoir operation will be penalized. - */ - IEC61970::Base::Domain::WaterLevel highLevelLimit; - /** - * Low target level limit, below which the reservoir operation will be penalized. - */ - IEC61970::Base::Domain::WaterLevel lowLevelLimit; - - }; - - } - - } - - } - -} -#endif // TARGETLEVELSCHEDULE_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/ThermalGeneratingUnit.cpp b/IEC61970_17v07/IEC61970/Base/Generation/Production/ThermalGeneratingUnit.cpp deleted file mode 100644 index 57f51af96..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/ThermalGeneratingUnit.cpp +++ /dev/null @@ -1,21 +0,0 @@ -/////////////////////////////////////////////////////////// -// ThermalGeneratingUnit.cpp -// Implementation of the Class ThermalGeneratingUnit -/////////////////////////////////////////////////////////// - -#include "ThermalGeneratingUnit.h" - -using IEC61970::Base::Generation::Production::ThermalGeneratingUnit; - - -ThermalGeneratingUnit::ThermalGeneratingUnit() - : HeatRateCurve(nullptr), StartupModel(nullptr), ShutdownCurve(nullptr), IncrementalHeatRateCurve(nullptr), HeatInputCurve(nullptr) -{ - -} - - - -ThermalGeneratingUnit::~ThermalGeneratingUnit(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/ThermalGeneratingUnit.h b/IEC61970_17v07/IEC61970/Base/Generation/Production/ThermalGeneratingUnit.h deleted file mode 100644 index e963c6b3f..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/ThermalGeneratingUnit.h +++ /dev/null @@ -1,86 +0,0 @@ -/////////////////////////////////////////////////////////// -// ThermalGeneratingUnit.h -// Implementation of the Class ThermalGeneratingUnit -/////////////////////////////////////////////////////////// - -#ifndef THERMALGENERATINGUNIT_H -#define THERMALGENERATINGUNIT_H - -#include - -#include "IEC61970/Base/Generation/Production/CostPerHeatUnit.h" -#include "IEC61970/Base/Generation/Production/HeatRateCurve.h" -#include "IEC61970/Base/Generation/Production/FuelAllocationSchedule.h" -#include "IEC61970/Base/Generation/Production/StartupModel.h" -#include "IEC61970/Base/Generation/Production/EmissionCurve.h" -#include "IEC61970/Base/Generation/Production/ShutdownCurve.h" -#include "IEC61970/Base/Generation/Production/IncrementalHeatRateCurve.h" -#include "IEC61970/Base/Generation/Production/GeneratingUnit.h" -#include "IEC61970/Base/Generation/Production/EmissionAccount.h" -#include "IEC61970/Base/Generation/Production/HeatInputCurve.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace Production - { - /** - * A generating unit whose prime mover could be a steam turbine, combustion - * turbine, or diesel engine. - */ - class ThermalGeneratingUnit : public IEC61970::Base::Generation::Production::GeneratingUnit - { - - public: - ThermalGeneratingUnit(); - virtual ~ThermalGeneratingUnit(); - /** - * Operating and maintenance cost for the thermal unit. - */ - IEC61970::Base::Generation::Production::CostPerHeatUnit oMCost; - /** - * A thermal generating unit may have a heat rate curve. - */ - IEC61970::Base::Generation::Production::HeatRateCurve *HeatRateCurve; - /** - * A thermal generating unit may have one or more fuel allocation schedules. - */ - std::list FuelAllocationSchedules; - /** - * A thermal generating unit may have a startup model. - */ - IEC61970::Base::Generation::Production::StartupModel *StartupModel; - /** - * A thermal generating unit may have one or more emission curves. - */ - std::list EmissionCurves; - /** - * A thermal generating unit may have a shutdown curve. - */ - IEC61970::Base::Generation::Production::ShutdownCurve *ShutdownCurve; - /** - * A thermal generating unit may have an incremental heat rate curve. - */ - IEC61970::Base::Generation::Production::IncrementalHeatRateCurve *IncrementalHeatRateCurve; - /** - * A thermal generating unit may have one or more emission allowance accounts. - */ - std::list EmmissionAccounts; - /** - * A thermal generating unit may have a heat input curve. - */ - IEC61970::Base::Generation::Production::HeatInputCurve *HeatInputCurve; - - }; - - } - - } - - } - -} -#endif // THERMALGENERATINGUNIT_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/WindGenUnitKind.h b/IEC61970_17v07/IEC61970/Base/Generation/Production/WindGenUnitKind.h deleted file mode 100644 index 2672e237f..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/WindGenUnitKind.h +++ /dev/null @@ -1,39 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindGenUnitKind.h -// Implementation of the Class WindGenUnitKind -/////////////////////////////////////////////////////////// - -#ifndef WINDGENUNITKIND_H -#define WINDGENUNITKIND_H - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace Production - { - /** - * Kind of wind generating unit. - */ - enum class WindGenUnitKind - { - /** - * The wind generating unit is located offshore. - */ - _undef = -1, offshore, - /** - * The wind generating unit is located onshore. - */ - onshore - }; - - } - - } - - } - -} -#endif // WINDGENUNITKIND_H diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/WindGeneratingUnit.cpp b/IEC61970_17v07/IEC61970/Base/Generation/Production/WindGeneratingUnit.cpp deleted file mode 100644 index 43b2376ba..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/WindGeneratingUnit.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindGeneratingUnit.cpp -// Implementation of the Class WindGeneratingUnit -// Original author: kdd -/////////////////////////////////////////////////////////// - -#include "WindGeneratingUnit.h" - -using IEC61970::Base::Generation::Production::WindGeneratingUnit; - - -WindGeneratingUnit::WindGeneratingUnit(){ - -} - - - -WindGeneratingUnit::~WindGeneratingUnit(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Generation/Production/WindGeneratingUnit.h b/IEC61970_17v07/IEC61970/Base/Generation/Production/WindGeneratingUnit.h deleted file mode 100644 index 6d1a8ccfd..000000000 --- a/IEC61970_17v07/IEC61970/Base/Generation/Production/WindGeneratingUnit.h +++ /dev/null @@ -1,45 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindGeneratingUnit.h -// Implementation of the Class WindGeneratingUnit -// Original author: kdd -/////////////////////////////////////////////////////////// - -#ifndef WINDGENERATINGUNIT_H -#define WINDGENERATINGUNIT_H - -#include "IEC61970/Base/Generation/Production/WindGenUnitKind.h" -#include "IEC61970/Base/Generation/Production/GeneratingUnit.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Generation - { - namespace Production - { - /** - * A wind driven generating unit, connected to the grid by means of a rotating - * machine. May be used to represent a single turbine or an aggregation. - */ - class WindGeneratingUnit : public IEC61970::Base::Generation::Production::GeneratingUnit - { - - public: - WindGeneratingUnit(); - virtual ~WindGeneratingUnit(); - /** - * The kind of wind generating unit - */ - IEC61970::Base::Generation::Production::WindGenUnitKind windGenUnitType = IEC61970::Base::Generation::Production::WindGenUnitKind::_undef; - - }; - - } - - } - - } - -} -#endif // WINDGENERATINGUNIT_H diff --git a/IEC61970_17v07/IEC61970/Base/LoadModel/ConformLoad.cpp b/IEC61970_17v07/IEC61970/Base/LoadModel/ConformLoad.cpp deleted file mode 100644 index 8e959b988..000000000 --- a/IEC61970_17v07/IEC61970/Base/LoadModel/ConformLoad.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// ConformLoad.cpp -// Implementation of the Class ConformLoad -/////////////////////////////////////////////////////////// - -#include "ConformLoad.h" - -using IEC61970::Base::LoadModel::ConformLoad; - - -ConformLoad::ConformLoad(){ - -} - - - -ConformLoad::~ConformLoad(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/LoadModel/ConformLoad.h b/IEC61970_17v07/IEC61970/Base/LoadModel/ConformLoad.h deleted file mode 100644 index f4b3ada87..000000000 --- a/IEC61970_17v07/IEC61970/Base/LoadModel/ConformLoad.h +++ /dev/null @@ -1,35 +0,0 @@ -/////////////////////////////////////////////////////////// -// ConformLoad.h -// Implementation of the Class ConformLoad -/////////////////////////////////////////////////////////// - -#ifndef CONFORMLOAD_H -#define CONFORMLOAD_H - -#include "IEC61970/Base/Wires/EnergyConsumer.h" - -namespace IEC61970 -{ - namespace Base - { - namespace LoadModel - { - /** - * ConformLoad represent loads that follow a daily load change pattern where the - * pattern can be used to scale the load with a system load. - */ - class ConformLoad : public IEC61970::Base::Wires::EnergyConsumer - { - - public: - ConformLoad(); - virtual ~ConformLoad(); - - }; - - } - - } - -} -#endif // CONFORMLOAD_H diff --git a/IEC61970_17v07/IEC61970/Base/LoadModel/ConformLoadGroup.cpp b/IEC61970_17v07/IEC61970/Base/LoadModel/ConformLoadGroup.cpp deleted file mode 100644 index 53c9659cd..000000000 --- a/IEC61970_17v07/IEC61970/Base/LoadModel/ConformLoadGroup.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// ConformLoadGroup.cpp -// Implementation of the Class ConformLoadGroup -/////////////////////////////////////////////////////////// - -#include "ConformLoadGroup.h" - -using IEC61970::Base::LoadModel::ConformLoadGroup; - - -ConformLoadGroup::ConformLoadGroup(){ - -} - - - -ConformLoadGroup::~ConformLoadGroup(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/LoadModel/ConformLoadGroup.h b/IEC61970_17v07/IEC61970/Base/LoadModel/ConformLoadGroup.h deleted file mode 100644 index 0140e7679..000000000 --- a/IEC61970_17v07/IEC61970/Base/LoadModel/ConformLoadGroup.h +++ /dev/null @@ -1,46 +0,0 @@ -/////////////////////////////////////////////////////////// -// ConformLoadGroup.h -// Implementation of the Class ConformLoadGroup -/////////////////////////////////////////////////////////// - -#ifndef CONFORMLOADGROUP_H -#define CONFORMLOADGROUP_H - -#include - -#include "IEC61970/Base/LoadModel/LoadGroup.h" -#include "IEC61970/Base/LoadModel/ConformLoad.h" -#include "IEC61970/Base/LoadModel/ConformLoadSchedule.h" - -namespace IEC61970 -{ - namespace Base - { - namespace LoadModel - { - /** - * A group of loads conforming to an allocation pattern. - */ - class ConformLoadGroup : public IEC61970::Base::LoadModel::LoadGroup - { - - public: - ConformLoadGroup(); - virtual ~ConformLoadGroup(); - /** - * Conform loads assigned to this ConformLoadGroup. - */ - std::list EnergyConsumers; - /** - * The ConformLoadSchedules in the ConformLoadGroup. - */ - std::list ConformLoadSchedules; - - }; - - } - - } - -} -#endif // CONFORMLOADGROUP_H diff --git a/IEC61970_17v07/IEC61970/Base/LoadModel/ConformLoadSchedule.cpp b/IEC61970_17v07/IEC61970/Base/LoadModel/ConformLoadSchedule.cpp deleted file mode 100644 index 1743918ed..000000000 --- a/IEC61970_17v07/IEC61970/Base/LoadModel/ConformLoadSchedule.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// ConformLoadSchedule.cpp -// Implementation of the Class ConformLoadSchedule -/////////////////////////////////////////////////////////// - -#include "ConformLoadSchedule.h" - -using IEC61970::Base::LoadModel::ConformLoadSchedule; - - -ConformLoadSchedule::ConformLoadSchedule(){ - -} - - - -ConformLoadSchedule::~ConformLoadSchedule(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/LoadModel/ConformLoadSchedule.h b/IEC61970_17v07/IEC61970/Base/LoadModel/ConformLoadSchedule.h deleted file mode 100644 index 6b56f8352..000000000 --- a/IEC61970_17v07/IEC61970/Base/LoadModel/ConformLoadSchedule.h +++ /dev/null @@ -1,37 +0,0 @@ -/////////////////////////////////////////////////////////// -// ConformLoadSchedule.h -// Implementation of the Class ConformLoadSchedule -/////////////////////////////////////////////////////////// - -#ifndef CONFORMLOADSCHEDULE_H -#define CONFORMLOADSCHEDULE_H - -#include "IEC61970/Base/LoadModel/SeasonDayTypeSchedule.h" - -namespace IEC61970 -{ - namespace Base - { - namespace LoadModel - { - /** - * A curve of load versus time (X-axis) showing the active power values (Y1-axis) - * and reactive power (Y2-axis) for each unit of the period covered. This curve - * represents a typical pattern of load over the time period for a given day type - * and season. - */ - class ConformLoadSchedule : public IEC61970::Base::LoadModel::SeasonDayTypeSchedule - { - - public: - ConformLoadSchedule(); - virtual ~ConformLoadSchedule(); - - }; - - } - - } - -} -#endif // CONFORMLOADSCHEDULE_H diff --git a/IEC61970_17v07/IEC61970/Base/LoadModel/DayType.cpp b/IEC61970_17v07/IEC61970/Base/LoadModel/DayType.cpp deleted file mode 100644 index a32795e6b..000000000 --- a/IEC61970_17v07/IEC61970/Base/LoadModel/DayType.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// DayType.cpp -// Implementation of the Class DayType -/////////////////////////////////////////////////////////// - -#include "DayType.h" - -using IEC61970::Base::LoadModel::DayType; - - -DayType::DayType(){ - -} - - - -DayType::~DayType(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/LoadModel/DayType.h b/IEC61970_17v07/IEC61970/Base/LoadModel/DayType.h deleted file mode 100644 index a0c4b19c1..000000000 --- a/IEC61970_17v07/IEC61970/Base/LoadModel/DayType.h +++ /dev/null @@ -1,42 +0,0 @@ -/////////////////////////////////////////////////////////// -// DayType.h -// Implementation of the Class DayType -/////////////////////////////////////////////////////////// - -#ifndef DAYTYPE_H -#define DAYTYPE_H - -#include - -#include "IEC61970/Base/LoadModel/SeasonDayTypeSchedule.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Base - { - namespace LoadModel - { - /** - * Group of similar days. For example it could be used to represent weekdays, - * weekend, or holidays. - */ - class DayType : public IEC61970::Base::Core::IdentifiedObject - { - - public: - DayType(); - virtual ~DayType(); - /** - * Schedules that use this DayType. - */ - std::list SeasonDayTypeSchedules; - - }; - - } - - } - -} -#endif // DAYTYPE_H diff --git a/IEC61970_17v07/IEC61970/Base/LoadModel/EnergyArea.cpp b/IEC61970_17v07/IEC61970/Base/LoadModel/EnergyArea.cpp deleted file mode 100644 index 48afa91f4..000000000 --- a/IEC61970_17v07/IEC61970/Base/LoadModel/EnergyArea.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// EnergyArea.cpp -// Implementation of the Class EnergyArea -/////////////////////////////////////////////////////////// - -#include "EnergyArea.h" - -using IEC61970::Base::LoadModel::EnergyArea; - - -EnergyArea::EnergyArea(){ - -} - - - -EnergyArea::~EnergyArea(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/LoadModel/EnergyArea.h b/IEC61970_17v07/IEC61970/Base/LoadModel/EnergyArea.h deleted file mode 100644 index 98202166e..000000000 --- a/IEC61970_17v07/IEC61970/Base/LoadModel/EnergyArea.h +++ /dev/null @@ -1,38 +0,0 @@ -/////////////////////////////////////////////////////////// -// EnergyArea.h -// Implementation of the Class EnergyArea -/////////////////////////////////////////////////////////// - -#ifndef ENERGYAREA_H -#define ENERGYAREA_H - -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Base - { - namespace LoadModel - { - /** - * Describes an area having energy production or consumption. Specializations are - * intended to support the load allocation function as typically required in - * energy management systems or planning studies to allocate hypothesized load - * levels to individual load points for power flow analysis. Often the energy - * area can be linked to both measured and forecast load levels. - */ - class EnergyArea : public IEC61970::Base::Core::IdentifiedObject - { - - public: - EnergyArea(); - virtual ~EnergyArea(); - - }; - - } - - } - -} -#endif // ENERGYAREA_H diff --git a/IEC61970_17v07/IEC61970/Base/LoadModel/LoadArea.cpp b/IEC61970_17v07/IEC61970/Base/LoadModel/LoadArea.cpp deleted file mode 100644 index 8dcf45a7d..000000000 --- a/IEC61970_17v07/IEC61970/Base/LoadModel/LoadArea.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// LoadArea.cpp -// Implementation of the Class LoadArea -/////////////////////////////////////////////////////////// - -#include "LoadArea.h" - -using IEC61970::Base::LoadModel::LoadArea; - - -LoadArea::LoadArea(){ - -} - - - -LoadArea::~LoadArea(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/LoadModel/LoadArea.h b/IEC61970_17v07/IEC61970/Base/LoadModel/LoadArea.h deleted file mode 100644 index ffb983be0..000000000 --- a/IEC61970_17v07/IEC61970/Base/LoadModel/LoadArea.h +++ /dev/null @@ -1,42 +0,0 @@ -/////////////////////////////////////////////////////////// -// LoadArea.h -// Implementation of the Class LoadArea -/////////////////////////////////////////////////////////// - -#ifndef LOADAREA_H -#define LOADAREA_H - -#include - -#include "IEC61970/Base/LoadModel/SubLoadArea.h" -#include "IEC61970/Base/LoadModel/EnergyArea.h" - -namespace IEC61970 -{ - namespace Base - { - namespace LoadModel - { - /** - * The class is the root or first level in a hierarchical structure for grouping - * of loads for the purpose of load flow load scaling. - */ - class LoadArea : public IEC61970::Base::LoadModel::EnergyArea - { - - public: - LoadArea(); - virtual ~LoadArea(); - /** - * The SubLoadAreas in the LoadArea. - */ - std::list SubLoadAreas; - - }; - - } - - } - -} -#endif // LOADAREA_H diff --git a/IEC61970_17v07/IEC61970/Base/LoadModel/LoadGroup.cpp b/IEC61970_17v07/IEC61970/Base/LoadModel/LoadGroup.cpp deleted file mode 100644 index 152f951c2..000000000 --- a/IEC61970_17v07/IEC61970/Base/LoadModel/LoadGroup.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// LoadGroup.cpp -// Implementation of the Class LoadGroup -/////////////////////////////////////////////////////////// - -#include "LoadGroup.h" - -using IEC61970::Base::LoadModel::LoadGroup; - - -LoadGroup::LoadGroup(){ - -} - - - -LoadGroup::~LoadGroup(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/LoadModel/LoadGroup.h b/IEC61970_17v07/IEC61970/Base/LoadModel/LoadGroup.h deleted file mode 100644 index 7e8121fdb..000000000 --- a/IEC61970_17v07/IEC61970/Base/LoadModel/LoadGroup.h +++ /dev/null @@ -1,35 +0,0 @@ -/////////////////////////////////////////////////////////// -// LoadGroup.h -// Implementation of the Class LoadGroup -/////////////////////////////////////////////////////////// - -#ifndef LOADGROUP_H -#define LOADGROUP_H - -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Base - { - namespace LoadModel - { - /** - * The class is the third level in a hierarchical structure for grouping of loads - * for the purpose of load flow load scaling. - */ - class LoadGroup : public IEC61970::Base::Core::IdentifiedObject - { - - public: - LoadGroup(); - virtual ~LoadGroup(); - - }; - - } - - } - -} -#endif // LOADGROUP_H diff --git a/IEC61970_17v07/IEC61970/Base/LoadModel/LoadResponseCharacteristic.cpp b/IEC61970_17v07/IEC61970/Base/LoadModel/LoadResponseCharacteristic.cpp deleted file mode 100644 index 54259f5e1..000000000 --- a/IEC61970_17v07/IEC61970/Base/LoadModel/LoadResponseCharacteristic.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// LoadResponseCharacteristic.cpp -// Implementation of the Class LoadResponseCharacteristic -// Original author: kdd -/////////////////////////////////////////////////////////// - -#include "LoadResponseCharacteristic.h" - -using IEC61970::Base::LoadModel::LoadResponseCharacteristic; - - -LoadResponseCharacteristic::LoadResponseCharacteristic(){ - -} - - - -LoadResponseCharacteristic::~LoadResponseCharacteristic(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/LoadModel/LoadResponseCharacteristic.h b/IEC61970_17v07/IEC61970/Base/LoadModel/LoadResponseCharacteristic.h deleted file mode 100644 index 4caa31f11..000000000 --- a/IEC61970_17v07/IEC61970/Base/LoadModel/LoadResponseCharacteristic.h +++ /dev/null @@ -1,109 +0,0 @@ -/////////////////////////////////////////////////////////// -// LoadResponseCharacteristic.h -// Implementation of the Class LoadResponseCharacteristic -// Original author: kdd -/////////////////////////////////////////////////////////// - -#ifndef LOADRESPONSECHARACTERISTIC_H -#define LOADRESPONSECHARACTERISTIC_H - -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Base - { - namespace LoadModel - { - /** - * Models the characteristic response of the load demand due to changes in system - * conditions such as voltage and frequency. This is not related to demand - * response. - * - * If LoadResponseCharacteristic.exponentModel is True, the voltage exponents are - * specified and used as to calculate: - * - * Active power component = Pnominal * (Voltage/cim:BaseVoltage.nominalVoltage) ** - * cim:LoadResponseCharacteristic.pVoltageExponent - * - * Reactive power component = Qnominal * (Voltage/cim:BaseVoltage. - * nominalVoltage)** cim:LoadResponseCharacteristic.qVoltageExponent - * - * Where * means "multiply" and ** is "raised to power of". - */ - class LoadResponseCharacteristic : public IEC61970::Base::Core::IdentifiedObject - { - - public: - LoadResponseCharacteristic(); - virtual ~LoadResponseCharacteristic(); - /** - * Indicates the exponential voltage dependency model is to be used. If false, - * the coefficient model is to be used. - * The exponential voltage dependency model consist of the attributes - * - pVoltageExponent - * - qVoltageExponent. - * The coefficient model consist of the attributes - * - pConstantImpedance - * - pConstantCurrent - * - pConstantPower - * - qConstantImpedance - * - qConstantCurrent - * - qConstantPower. - * The sum of pConstantImpedance, pConstantCurrent and pConstantPower shall equal - * 1. - * The sum of qConstantImpedance, qConstantCurrent and qConstantPower shall equal - * 1. - */ - IEC61970::Base::Domain::Boolean exponentModel; - /** - * Portion of active power load modeled as constant current. - */ - IEC61970::Base::Domain::Float pConstantCurrent; - /** - * Portion of active power load modeled as constant impedance. - */ - IEC61970::Base::Domain::Float pConstantImpedance; - /** - * Portion of active power load modeled as constant power. - */ - IEC61970::Base::Domain::Float pConstantPower; - /** - * Exponent of per unit frequency effecting active power. - */ - IEC61970::Base::Domain::Float pFrequencyExponent; - /** - * Exponent of per unit voltage effecting real power. - */ - IEC61970::Base::Domain::Float pVoltageExponent; - /** - * Portion of reactive power load modeled as constant current. - */ - IEC61970::Base::Domain::Float qConstantCurrent; - /** - * Portion of reactive power load modeled as constant impedance. - */ - IEC61970::Base::Domain::Float qConstantImpedance; - /** - * Portion of reactive power load modeled as constant power. - */ - IEC61970::Base::Domain::Float qConstantPower; - /** - * Exponent of per unit frequency effecting reactive power. - */ - IEC61970::Base::Domain::Float qFrequencyExponent; - /** - * Exponent of per unit voltage effecting reactive power. - */ - IEC61970::Base::Domain::Float qVoltageExponent; - - }; - - } - - } - -} -#endif // LOADRESPONSECHARACTERISTIC_H diff --git a/IEC61970_17v07/IEC61970/Base/LoadModel/NonConformLoad.cpp b/IEC61970_17v07/IEC61970/Base/LoadModel/NonConformLoad.cpp deleted file mode 100644 index b7605ebde..000000000 --- a/IEC61970_17v07/IEC61970/Base/LoadModel/NonConformLoad.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// NonConformLoad.cpp -// Implementation of the Class NonConformLoad -/////////////////////////////////////////////////////////// - -#include "NonConformLoad.h" - -using IEC61970::Base::LoadModel::NonConformLoad; - - -NonConformLoad::NonConformLoad(){ - -} - - - -NonConformLoad::~NonConformLoad(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/LoadModel/NonConformLoad.h b/IEC61970_17v07/IEC61970/Base/LoadModel/NonConformLoad.h deleted file mode 100644 index 0bf119345..000000000 --- a/IEC61970_17v07/IEC61970/Base/LoadModel/NonConformLoad.h +++ /dev/null @@ -1,35 +0,0 @@ -/////////////////////////////////////////////////////////// -// NonConformLoad.h -// Implementation of the Class NonConformLoad -/////////////////////////////////////////////////////////// - -#ifndef NONCONFORMLOAD_H -#define NONCONFORMLOAD_H - -#include "IEC61970/Base/Wires/EnergyConsumer.h" - -namespace IEC61970 -{ - namespace Base - { - namespace LoadModel - { - /** - * NonConformLoad represent loads that do not follow a daily load change pattern - * and changes are not correlated with the daily load change pattern. - */ - class NonConformLoad : public IEC61970::Base::Wires::EnergyConsumer - { - - public: - NonConformLoad(); - virtual ~NonConformLoad(); - - }; - - } - - } - -} -#endif // NONCONFORMLOAD_H diff --git a/IEC61970_17v07/IEC61970/Base/LoadModel/NonConformLoadGroup.cpp b/IEC61970_17v07/IEC61970/Base/LoadModel/NonConformLoadGroup.cpp deleted file mode 100644 index 9f1264baf..000000000 --- a/IEC61970_17v07/IEC61970/Base/LoadModel/NonConformLoadGroup.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// NonConformLoadGroup.cpp -// Implementation of the Class NonConformLoadGroup -/////////////////////////////////////////////////////////// - -#include "NonConformLoadGroup.h" - -using IEC61970::Base::LoadModel::NonConformLoadGroup; - - -NonConformLoadGroup::NonConformLoadGroup(){ - -} - - - -NonConformLoadGroup::~NonConformLoadGroup(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/LoadModel/NonConformLoadGroup.h b/IEC61970_17v07/IEC61970/Base/LoadModel/NonConformLoadGroup.h deleted file mode 100644 index 55c3fee05..000000000 --- a/IEC61970_17v07/IEC61970/Base/LoadModel/NonConformLoadGroup.h +++ /dev/null @@ -1,46 +0,0 @@ -/////////////////////////////////////////////////////////// -// NonConformLoadGroup.h -// Implementation of the Class NonConformLoadGroup -/////////////////////////////////////////////////////////// - -#ifndef NONCONFORMLOADGROUP_H -#define NONCONFORMLOADGROUP_H - -#include - -#include "IEC61970/Base/LoadModel/NonConformLoad.h" -#include "IEC61970/Base/LoadModel/LoadGroup.h" -#include "IEC61970/Base/LoadModel/NonConformLoadSchedule.h" - -namespace IEC61970 -{ - namespace Base - { - namespace LoadModel - { - /** - * Loads that do not follow a daily and seasonal load variation pattern. - */ - class NonConformLoadGroup : public IEC61970::Base::LoadModel::LoadGroup - { - - public: - NonConformLoadGroup(); - virtual ~NonConformLoadGroup(); - /** - * Conform loads assigned to this ConformLoadGroup. - */ - std::list EnergyConsumers; - /** - * The NonConformLoadSchedules in the NonConformLoadGroup. - */ - std::list NonConformLoadSchedules; - - }; - - } - - } - -} -#endif // NONCONFORMLOADGROUP_H diff --git a/IEC61970_17v07/IEC61970/Base/LoadModel/NonConformLoadSchedule.cpp b/IEC61970_17v07/IEC61970/Base/LoadModel/NonConformLoadSchedule.cpp deleted file mode 100644 index c5874c5b2..000000000 --- a/IEC61970_17v07/IEC61970/Base/LoadModel/NonConformLoadSchedule.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// NonConformLoadSchedule.cpp -// Implementation of the Class NonConformLoadSchedule -/////////////////////////////////////////////////////////// - -#include "NonConformLoadSchedule.h" - -using IEC61970::Base::LoadModel::NonConformLoadSchedule; - - -NonConformLoadSchedule::NonConformLoadSchedule(){ - -} - - - -NonConformLoadSchedule::~NonConformLoadSchedule(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/LoadModel/NonConformLoadSchedule.h b/IEC61970_17v07/IEC61970/Base/LoadModel/NonConformLoadSchedule.h deleted file mode 100644 index 7b4fef0f5..000000000 --- a/IEC61970_17v07/IEC61970/Base/LoadModel/NonConformLoadSchedule.h +++ /dev/null @@ -1,36 +0,0 @@ -/////////////////////////////////////////////////////////// -// NonConformLoadSchedule.h -// Implementation of the Class NonConformLoadSchedule -/////////////////////////////////////////////////////////// - -#ifndef NONCONFORMLOADSCHEDULE_H -#define NONCONFORMLOADSCHEDULE_H - -#include "IEC61970/Base/LoadModel/SeasonDayTypeSchedule.h" - -namespace IEC61970 -{ - namespace Base - { - namespace LoadModel - { - /** - * An active power (Y1-axis) and reactive power (Y2-axis) schedule (curves) versus - * time (X-axis) for non-conforming loads, e.g., large industrial load or power - * station service (where modeled). - */ - class NonConformLoadSchedule : public IEC61970::Base::LoadModel::SeasonDayTypeSchedule - { - - public: - NonConformLoadSchedule(); - virtual ~NonConformLoadSchedule(); - - }; - - } - - } - -} -#endif // NONCONFORMLOADSCHEDULE_H diff --git a/IEC61970_17v07/IEC61970/Base/LoadModel/PowerCutZone.cpp b/IEC61970_17v07/IEC61970/Base/LoadModel/PowerCutZone.cpp deleted file mode 100644 index e66be057e..000000000 --- a/IEC61970_17v07/IEC61970/Base/LoadModel/PowerCutZone.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// PowerCutZone.cpp -// Implementation of the Class PowerCutZone -/////////////////////////////////////////////////////////// - -#include "PowerCutZone.h" - -using IEC61970::Base::LoadModel::PowerCutZone; - - -PowerCutZone::PowerCutZone(){ - -} - - - -PowerCutZone::~PowerCutZone(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/LoadModel/PowerCutZone.h b/IEC61970_17v07/IEC61970/Base/LoadModel/PowerCutZone.h deleted file mode 100644 index e45d80d93..000000000 --- a/IEC61970_17v07/IEC61970/Base/LoadModel/PowerCutZone.h +++ /dev/null @@ -1,50 +0,0 @@ -/////////////////////////////////////////////////////////// -// PowerCutZone.h -// Implementation of the Class PowerCutZone -/////////////////////////////////////////////////////////// - -#ifndef POWERCUTZONE_H -#define POWERCUTZONE_H - -#include - -#include "IEC61970/Base/Domain/PerCent.h" -#include "IEC61970/Base/Wires/EnergyConsumer.h" -#include "IEC61970/Base/Core/PowerSystemResource.h" - -namespace IEC61970 -{ - namespace Base - { - namespace LoadModel - { - /** - * An area or zone of the power system which is used for load shedding purposes. - */ - class PowerCutZone : public IEC61970::Base::Core::PowerSystemResource - { - - public: - PowerCutZone(); - virtual ~PowerCutZone(); - /** - * First level (amount) of load to cut as a percentage of total zone load. - */ - IEC61970::Base::Domain::PerCent cutLevel1; - /** - * Second level (amount) of load to cut as a percentage of total zone load. - */ - IEC61970::Base::Domain::PerCent cutLevel2; - /** - * Energy consumer is assigned to the power cut zone. - */ - std::list EnergyConsumers; - - }; - - } - - } - -} -#endif // POWERCUTZONE_H diff --git a/IEC61970_17v07/IEC61970/Base/LoadModel/Season.cpp b/IEC61970_17v07/IEC61970/Base/LoadModel/Season.cpp deleted file mode 100644 index ffa44162a..000000000 --- a/IEC61970_17v07/IEC61970/Base/LoadModel/Season.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// Season.cpp -// Implementation of the Class Season -/////////////////////////////////////////////////////////// - -#include "Season.h" - -using IEC61970::Base::LoadModel::Season; - - -Season::Season(){ - -} - - - -Season::~Season(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/LoadModel/Season.h b/IEC61970_17v07/IEC61970/Base/LoadModel/Season.h deleted file mode 100644 index 44c048207..000000000 --- a/IEC61970_17v07/IEC61970/Base/LoadModel/Season.h +++ /dev/null @@ -1,50 +0,0 @@ -/////////////////////////////////////////////////////////// -// Season.h -// Implementation of the Class Season -/////////////////////////////////////////////////////////// - -#ifndef SEASON_H -#define SEASON_H - -#include - -#include "IEC61970/Base/Domain/MonthDay.h" -#include "IEC61970/Base/LoadModel/SeasonDayTypeSchedule.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Base - { - namespace LoadModel - { - /** - * A specified time period of the year. - */ - class Season : public IEC61970::Base::Core::IdentifiedObject - { - - public: - Season(); - virtual ~Season(); - /** - * Date season ends. - */ - IEC61970::Base::Domain::MonthDay endDate; - /** - * Date season starts. - */ - IEC61970::Base::Domain::MonthDay startDate; - /** - * Schedules that use this Season. - */ - std::list SeasonDayTypeSchedules; - - }; - - } - - } - -} -#endif // SEASON_H diff --git a/IEC61970_17v07/IEC61970/Base/LoadModel/SeasonDayTypeSchedule.cpp b/IEC61970_17v07/IEC61970/Base/LoadModel/SeasonDayTypeSchedule.cpp deleted file mode 100644 index 94fdac833..000000000 --- a/IEC61970_17v07/IEC61970/Base/LoadModel/SeasonDayTypeSchedule.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// SeasonDayTypeSchedule.cpp -// Implementation of the Class SeasonDayTypeSchedule -/////////////////////////////////////////////////////////// - -#include "SeasonDayTypeSchedule.h" - -using IEC61970::Base::LoadModel::SeasonDayTypeSchedule; - - -SeasonDayTypeSchedule::SeasonDayTypeSchedule(){ - -} - - - -SeasonDayTypeSchedule::~SeasonDayTypeSchedule(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/LoadModel/SeasonDayTypeSchedule.h b/IEC61970_17v07/IEC61970/Base/LoadModel/SeasonDayTypeSchedule.h deleted file mode 100644 index 1c54b2a2c..000000000 --- a/IEC61970_17v07/IEC61970/Base/LoadModel/SeasonDayTypeSchedule.h +++ /dev/null @@ -1,35 +0,0 @@ -/////////////////////////////////////////////////////////// -// SeasonDayTypeSchedule.h -// Implementation of the Class SeasonDayTypeSchedule -/////////////////////////////////////////////////////////// - -#ifndef SEASONDAYTYPESCHEDULE_H -#define SEASONDAYTYPESCHEDULE_H - -#include "IEC61970/Base/Core/RegularIntervalSchedule.h" - -namespace IEC61970 -{ - namespace Base - { - namespace LoadModel - { - /** - * A time schedule covering a 24 hour period, with curve data for a specific type - * of season and day. - */ - class SeasonDayTypeSchedule : public IEC61970::Base::Core::RegularIntervalSchedule - { - - public: - SeasonDayTypeSchedule(); - virtual ~SeasonDayTypeSchedule(); - - }; - - } - - } - -} -#endif // SEASONDAYTYPESCHEDULE_H diff --git a/IEC61970_17v07/IEC61970/Base/LoadModel/StationSupply.cpp b/IEC61970_17v07/IEC61970/Base/LoadModel/StationSupply.cpp deleted file mode 100644 index 07b11621a..000000000 --- a/IEC61970_17v07/IEC61970/Base/LoadModel/StationSupply.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// StationSupply.cpp -// Implementation of the Class StationSupply -/////////////////////////////////////////////////////////// - -#include "StationSupply.h" - -using IEC61970::Base::LoadModel::StationSupply; - - -StationSupply::StationSupply(){ - -} - - - -StationSupply::~StationSupply(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/LoadModel/StationSupply.h b/IEC61970_17v07/IEC61970/Base/LoadModel/StationSupply.h deleted file mode 100644 index 332bc53dc..000000000 --- a/IEC61970_17v07/IEC61970/Base/LoadModel/StationSupply.h +++ /dev/null @@ -1,34 +0,0 @@ -/////////////////////////////////////////////////////////// -// StationSupply.h -// Implementation of the Class StationSupply -/////////////////////////////////////////////////////////// - -#ifndef STATIONSUPPLY_H -#define STATIONSUPPLY_H - -#include "IEC61970/Base/Wires/EnergyConsumer.h" - -namespace IEC61970 -{ - namespace Base - { - namespace LoadModel - { - /** - * Station supply with load derived from the station output. - */ - class StationSupply : public IEC61970::Base::Wires::EnergyConsumer - { - - public: - StationSupply(); - virtual ~StationSupply(); - - }; - - } - - } - -} -#endif // STATIONSUPPLY_H diff --git a/IEC61970_17v07/IEC61970/Base/LoadModel/SubLoadArea.cpp b/IEC61970_17v07/IEC61970/Base/LoadModel/SubLoadArea.cpp deleted file mode 100644 index 2f8a035cb..000000000 --- a/IEC61970_17v07/IEC61970/Base/LoadModel/SubLoadArea.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// SubLoadArea.cpp -// Implementation of the Class SubLoadArea -/////////////////////////////////////////////////////////// - -#include "SubLoadArea.h" - -using IEC61970::Base::LoadModel::SubLoadArea; - - -SubLoadArea::SubLoadArea(){ - -} - - - -SubLoadArea::~SubLoadArea(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/LoadModel/SubLoadArea.h b/IEC61970_17v07/IEC61970/Base/LoadModel/SubLoadArea.h deleted file mode 100644 index 0cf5d4c5e..000000000 --- a/IEC61970_17v07/IEC61970/Base/LoadModel/SubLoadArea.h +++ /dev/null @@ -1,42 +0,0 @@ -/////////////////////////////////////////////////////////// -// SubLoadArea.h -// Implementation of the Class SubLoadArea -/////////////////////////////////////////////////////////// - -#ifndef SUBLOADAREA_H -#define SUBLOADAREA_H - -#include - -#include "IEC61970/Base/LoadModel/LoadGroup.h" -#include "IEC61970/Base/LoadModel/EnergyArea.h" - -namespace IEC61970 -{ - namespace Base - { - namespace LoadModel - { - /** - * The class is the second level in a hierarchical structure for grouping of loads - * for the purpose of load flow load scaling. - */ - class SubLoadArea : public IEC61970::Base::LoadModel::EnergyArea - { - - public: - SubLoadArea(); - virtual ~SubLoadArea(); - /** - * The Loadgroups in the SubLoadArea. - */ - std::list LoadGroups; - - }; - - } - - } - -} -#endif // SUBLOADAREA_H diff --git a/IEC61970_17v07/IEC61970/Base/Meas/Accumulator.cpp b/IEC61970_17v07/IEC61970/Base/Meas/Accumulator.cpp deleted file mode 100644 index 3a82533da..000000000 --- a/IEC61970_17v07/IEC61970/Base/Meas/Accumulator.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// Accumulator.cpp -// Implementation of the Class Accumulator -/////////////////////////////////////////////////////////// - -#include "Accumulator.h" - -using IEC61970::Base::Meas::Accumulator; - - -Accumulator::Accumulator(){ - -} - - - -Accumulator::~Accumulator(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Meas/Accumulator.h b/IEC61970_17v07/IEC61970/Base/Meas/Accumulator.h deleted file mode 100644 index eaf6d2b7e..000000000 --- a/IEC61970_17v07/IEC61970/Base/Meas/Accumulator.h +++ /dev/null @@ -1,53 +0,0 @@ -/////////////////////////////////////////////////////////// -// Accumulator.h -// Implementation of the Class Accumulator -/////////////////////////////////////////////////////////// - -#ifndef ACCUMULATOR_H -#define ACCUMULATOR_H - -#include - -#include "IEC61970/Base/Domain/Integer.h" -#include "IEC61970/Base/Meas/AccumulatorValue.h" -#include "IEC61970/Base/Meas/Measurement.h" -#include "IEC61970/Base/Meas/AccumulatorLimitSet.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Meas - { - /** - * Accumulator represents an accumulated (counted) Measurement, e.g. an energy - * value. - */ - class Accumulator : public IEC61970::Base::Meas::Measurement - { - - public: - Accumulator(); - virtual ~Accumulator(); - /** - * Normal value range maximum for any of the MeasurementValue.values. Used for - * scaling, e.g. in bar graphs or of telemetered raw values. - */ - IEC61970::Base::Domain::Integer maxValue; - /** - * The values connected to this measurement. - */ - std::list AccumulatorValues; - /** - * A measurement may have zero or more limit ranges defined for it. - */ - std::list LimitSets; - - }; - - } - - } - -} -#endif // ACCUMULATOR_H diff --git a/IEC61970_17v07/IEC61970/Base/Meas/AccumulatorLimit.cpp b/IEC61970_17v07/IEC61970/Base/Meas/AccumulatorLimit.cpp deleted file mode 100644 index 42dfd428e..000000000 --- a/IEC61970_17v07/IEC61970/Base/Meas/AccumulatorLimit.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// AccumulatorLimit.cpp -// Implementation of the Class AccumulatorLimit -/////////////////////////////////////////////////////////// - -#include "AccumulatorLimit.h" - -using IEC61970::Base::Meas::AccumulatorLimit; - - -AccumulatorLimit::AccumulatorLimit(){ - -} - - - -AccumulatorLimit::~AccumulatorLimit(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Meas/AccumulatorLimit.h b/IEC61970_17v07/IEC61970/Base/Meas/AccumulatorLimit.h deleted file mode 100644 index ae15b9da3..000000000 --- a/IEC61970_17v07/IEC61970/Base/Meas/AccumulatorLimit.h +++ /dev/null @@ -1,39 +0,0 @@ -/////////////////////////////////////////////////////////// -// AccumulatorLimit.h -// Implementation of the Class AccumulatorLimit -/////////////////////////////////////////////////////////// - -#ifndef ACCUMULATORLIMIT_H -#define ACCUMULATORLIMIT_H - -#include "IEC61970/Base/Domain/Integer.h" -#include "IEC61970/Base/Meas/Limit.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Meas - { - /** - * Limit values for Accumulator measurements. - */ - class AccumulatorLimit : public IEC61970::Base::Meas::Limit - { - - public: - AccumulatorLimit(); - virtual ~AccumulatorLimit(); - /** - * The value to supervise against. The value is positive. - */ - IEC61970::Base::Domain::Integer value; - - }; - - } - - } - -} -#endif // ACCUMULATORLIMIT_H diff --git a/IEC61970_17v07/IEC61970/Base/Meas/AccumulatorLimitSet.cpp b/IEC61970_17v07/IEC61970/Base/Meas/AccumulatorLimitSet.cpp deleted file mode 100644 index 5a79a2c40..000000000 --- a/IEC61970_17v07/IEC61970/Base/Meas/AccumulatorLimitSet.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// AccumulatorLimitSet.cpp -// Implementation of the Class AccumulatorLimitSet -/////////////////////////////////////////////////////////// - -#include "AccumulatorLimitSet.h" - -using IEC61970::Base::Meas::AccumulatorLimitSet; - - -AccumulatorLimitSet::AccumulatorLimitSet(){ - -} - - - -AccumulatorLimitSet::~AccumulatorLimitSet(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Meas/AccumulatorLimitSet.h b/IEC61970_17v07/IEC61970/Base/Meas/AccumulatorLimitSet.h deleted file mode 100644 index 745da9f0d..000000000 --- a/IEC61970_17v07/IEC61970/Base/Meas/AccumulatorLimitSet.h +++ /dev/null @@ -1,42 +0,0 @@ -/////////////////////////////////////////////////////////// -// AccumulatorLimitSet.h -// Implementation of the Class AccumulatorLimitSet -/////////////////////////////////////////////////////////// - -#ifndef ACCUMULATORLIMITSET_H -#define ACCUMULATORLIMITSET_H - -#include - -#include "IEC61970/Base/Meas/AccumulatorLimit.h" -#include "IEC61970/Base/Meas/LimitSet.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Meas - { - /** - * An AccumulatorLimitSet specifies a set of Limits that are associated with an - * Accumulator measurement. - */ - class AccumulatorLimitSet : public IEC61970::Base::Meas::LimitSet - { - - public: - AccumulatorLimitSet(); - virtual ~AccumulatorLimitSet(); - /** - * The limit values used for supervision of Measurements. - */ - std::list Limits; - - }; - - } - - } - -} -#endif // ACCUMULATORLIMITSET_H diff --git a/IEC61970_17v07/IEC61970/Base/Meas/AccumulatorReset.cpp b/IEC61970_17v07/IEC61970/Base/Meas/AccumulatorReset.cpp deleted file mode 100644 index fa767701d..000000000 --- a/IEC61970_17v07/IEC61970/Base/Meas/AccumulatorReset.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// AccumulatorReset.cpp -// Implementation of the Class AccumulatorReset -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#include "AccumulatorReset.h" - -using IEC61970::Base::Meas::AccumulatorReset; - - -AccumulatorReset::AccumulatorReset() - : AccumulatorValue(nullptr) -{ - -} - - - -AccumulatorReset::~AccumulatorReset(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Meas/AccumulatorReset.h b/IEC61970_17v07/IEC61970/Base/Meas/AccumulatorReset.h deleted file mode 100644 index 46ce7e103..000000000 --- a/IEC61970_17v07/IEC61970/Base/Meas/AccumulatorReset.h +++ /dev/null @@ -1,40 +0,0 @@ -/////////////////////////////////////////////////////////// -// AccumulatorReset.h -// Implementation of the Class AccumulatorReset -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#ifndef ACCUMULATORRESET_H -#define ACCUMULATORRESET_H - -#include "IEC61970/Base/Meas/Control.h" -#include "IEC61970/Base/Meas/AccumulatorValue.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Meas - { - /** - * This command reset the counter value to zero. - */ - class AccumulatorReset : public IEC61970::Base::Meas::Control - { - - public: - AccumulatorReset(); - virtual ~AccumulatorReset(); - /** - * The accumulator value that is reset by the command. - */ - IEC61970::Base::Meas::AccumulatorValue *AccumulatorValue; - - }; - - } - - } - -} -#endif // ACCUMULATORRESET_H diff --git a/IEC61970_17v07/IEC61970/Base/Meas/AccumulatorValue.cpp b/IEC61970_17v07/IEC61970/Base/Meas/AccumulatorValue.cpp deleted file mode 100644 index 6f7fa3c21..000000000 --- a/IEC61970_17v07/IEC61970/Base/Meas/AccumulatorValue.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// AccumulatorValue.cpp -// Implementation of the Class AccumulatorValue -/////////////////////////////////////////////////////////// - -#include "AccumulatorValue.h" - -using IEC61970::Base::Meas::AccumulatorValue; - - -AccumulatorValue::AccumulatorValue(){ - -} - - - -AccumulatorValue::~AccumulatorValue(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Meas/AccumulatorValue.h b/IEC61970_17v07/IEC61970/Base/Meas/AccumulatorValue.h deleted file mode 100644 index 25b6a9670..000000000 --- a/IEC61970_17v07/IEC61970/Base/Meas/AccumulatorValue.h +++ /dev/null @@ -1,39 +0,0 @@ -/////////////////////////////////////////////////////////// -// AccumulatorValue.h -// Implementation of the Class AccumulatorValue -/////////////////////////////////////////////////////////// - -#ifndef ACCUMULATORVALUE_H -#define ACCUMULATORVALUE_H - -#include "IEC61970/Base/Domain/Integer.h" -#include "IEC61970/Base/Meas/MeasurementValue.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Meas - { - /** - * AccumulatorValue represents an accumulated (counted) MeasurementValue. - */ - class AccumulatorValue : public IEC61970::Base::Meas::MeasurementValue - { - - public: - AccumulatorValue(); - virtual ~AccumulatorValue(); - /** - * The value to supervise. The value is positive. - */ - IEC61970::Base::Domain::Integer value; - - }; - - } - - } - -} -#endif // ACCUMULATORVALUE_H diff --git a/IEC61970_17v07/IEC61970/Base/Meas/Analog.cpp b/IEC61970_17v07/IEC61970/Base/Meas/Analog.cpp deleted file mode 100644 index 4f3c98eb1..000000000 --- a/IEC61970_17v07/IEC61970/Base/Meas/Analog.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// Analog.cpp -// Implementation of the Class Analog -/////////////////////////////////////////////////////////// - -#include "Analog.h" - -using IEC61970::Base::Meas::Analog; - - -Analog::Analog(){ - -} - - - -Analog::~Analog(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Meas/Analog.h b/IEC61970_17v07/IEC61970/Base/Meas/Analog.h deleted file mode 100644 index f91e43c98..000000000 --- a/IEC61970_17v07/IEC61970/Base/Meas/Analog.h +++ /dev/null @@ -1,68 +0,0 @@ -/////////////////////////////////////////////////////////// -// Analog.h -// Implementation of the Class Analog -/////////////////////////////////////////////////////////// - -#ifndef ANALOG_H -#define ANALOG_H - -#include - -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Meas/AnalogValue.h" -#include "IEC61970/Base/Meas/Measurement.h" -#include "IEC61970/Base/Meas/AnalogLimitSet.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Meas - { - /** - * Analog represents an analog Measurement. - */ - class Analog : public IEC61970::Base::Meas::Measurement - { - - public: - Analog(); - virtual ~Analog(); - /** - * Normal value range maximum for any of the MeasurementValue.values. Used for - * scaling, e.g. in bar graphs or of telemetered raw values. - */ - IEC61970::Base::Domain::Float maxValue; - /** - * Normal value range minimum for any of the MeasurementValue.values. Used for - * scaling, e.g. in bar graphs or of telemetered raw values. - */ - IEC61970::Base::Domain::Float minValue; - /** - * Normal measurement value, e.g., used for percentage calculations. - */ - IEC61970::Base::Domain::Float normalValue; - /** - * If true then this measurement is an active power, reactive power or current - * with the convention that a positive value measured at the Terminal means power - * is flowing into the related PowerSystemResource. - */ - IEC61970::Base::Domain::Boolean positiveFlowIn; - /** - * The values connected to this measurement. - */ - std::list AnalogValues; - /** - * A measurement may have zero or more limit ranges defined for it. - */ - std::list LimitSets; - - }; - - } - - } - -} -#endif // ANALOG_H diff --git a/IEC61970_17v07/IEC61970/Base/Meas/AnalogControl.cpp b/IEC61970_17v07/IEC61970/Base/Meas/AnalogControl.cpp deleted file mode 100644 index 1f6f91307..000000000 --- a/IEC61970_17v07/IEC61970/Base/Meas/AnalogControl.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// AnalogControl.cpp -// Implementation of the Class AnalogControl -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#include "AnalogControl.h" - -using IEC61970::Base::Meas::AnalogControl; - - -AnalogControl::AnalogControl(){ - -} - - - -AnalogControl::~AnalogControl(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Meas/AnalogControl.h b/IEC61970_17v07/IEC61970/Base/Meas/AnalogControl.h deleted file mode 100644 index 600d0183d..000000000 --- a/IEC61970_17v07/IEC61970/Base/Meas/AnalogControl.h +++ /dev/null @@ -1,46 +0,0 @@ -/////////////////////////////////////////////////////////// -// AnalogControl.h -// Implementation of the Class AnalogControl -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#ifndef ANALOGCONTROL_H -#define ANALOGCONTROL_H - -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Meas/Control.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Meas - { - /** - * An analog control used for supervisory control. - */ - class AnalogControl : public IEC61970::Base::Meas::Control - { - - public: - AnalogControl(); - virtual ~AnalogControl(); - /** - * Normal value range maximum for any of the Control.value. Used for scaling, e.g. - * in bar graphs. - */ - IEC61970::Base::Domain::Float maxValue; - /** - * Normal value range minimum for any of the Control.value. Used for scaling, e.g. - * in bar graphs. - */ - IEC61970::Base::Domain::Float minValue; - - }; - - } - - } - -} -#endif // ANALOGCONTROL_H diff --git a/IEC61970_17v07/IEC61970/Base/Meas/AnalogLimit.cpp b/IEC61970_17v07/IEC61970/Base/Meas/AnalogLimit.cpp deleted file mode 100644 index 2fdd75262..000000000 --- a/IEC61970_17v07/IEC61970/Base/Meas/AnalogLimit.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// AnalogLimit.cpp -// Implementation of the Class AnalogLimit -/////////////////////////////////////////////////////////// - -#include "AnalogLimit.h" - -using IEC61970::Base::Meas::AnalogLimit; - - -AnalogLimit::AnalogLimit(){ - -} - - - -AnalogLimit::~AnalogLimit(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Meas/AnalogLimit.h b/IEC61970_17v07/IEC61970/Base/Meas/AnalogLimit.h deleted file mode 100644 index 2da726dc0..000000000 --- a/IEC61970_17v07/IEC61970/Base/Meas/AnalogLimit.h +++ /dev/null @@ -1,39 +0,0 @@ -/////////////////////////////////////////////////////////// -// AnalogLimit.h -// Implementation of the Class AnalogLimit -/////////////////////////////////////////////////////////// - -#ifndef ANALOGLIMIT_H -#define ANALOGLIMIT_H - -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Meas/Limit.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Meas - { - /** - * Limit values for Analog measurements. - */ - class AnalogLimit : public IEC61970::Base::Meas::Limit - { - - public: - AnalogLimit(); - virtual ~AnalogLimit(); - /** - * The value to supervise against. - */ - IEC61970::Base::Domain::Float value; - - }; - - } - - } - -} -#endif // ANALOGLIMIT_H diff --git a/IEC61970_17v07/IEC61970/Base/Meas/AnalogLimitSet.cpp b/IEC61970_17v07/IEC61970/Base/Meas/AnalogLimitSet.cpp deleted file mode 100644 index 028074ffc..000000000 --- a/IEC61970_17v07/IEC61970/Base/Meas/AnalogLimitSet.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// AnalogLimitSet.cpp -// Implementation of the Class AnalogLimitSet -/////////////////////////////////////////////////////////// - -#include "AnalogLimitSet.h" - -using IEC61970::Base::Meas::AnalogLimitSet; - - -AnalogLimitSet::AnalogLimitSet(){ - -} - - - -AnalogLimitSet::~AnalogLimitSet(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Meas/AnalogLimitSet.h b/IEC61970_17v07/IEC61970/Base/Meas/AnalogLimitSet.h deleted file mode 100644 index ed39a8919..000000000 --- a/IEC61970_17v07/IEC61970/Base/Meas/AnalogLimitSet.h +++ /dev/null @@ -1,42 +0,0 @@ -/////////////////////////////////////////////////////////// -// AnalogLimitSet.h -// Implementation of the Class AnalogLimitSet -/////////////////////////////////////////////////////////// - -#ifndef ANALOGLIMITSET_H -#define ANALOGLIMITSET_H - -#include - -#include "IEC61970/Base/Meas/LimitSet.h" -#include "IEC61970/Base/Meas/AnalogLimit.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Meas - { - /** - * An AnalogLimitSet specifies a set of Limits that are associated with an Analog - * measurement. - */ - class AnalogLimitSet : public IEC61970::Base::Meas::LimitSet - { - - public: - AnalogLimitSet(); - virtual ~AnalogLimitSet(); - /** - * The limit values used for supervision of Measurements. - */ - std::list Limits; - - }; - - } - - } - -} -#endif // ANALOGLIMITSET_H diff --git a/IEC61970_17v07/IEC61970/Base/Meas/AnalogValue.cpp b/IEC61970_17v07/IEC61970/Base/Meas/AnalogValue.cpp deleted file mode 100644 index a51fe822b..000000000 --- a/IEC61970_17v07/IEC61970/Base/Meas/AnalogValue.cpp +++ /dev/null @@ -1,21 +0,0 @@ -/////////////////////////////////////////////////////////// -// AnalogValue.cpp -// Implementation of the Class AnalogValue -/////////////////////////////////////////////////////////// - -#include "AnalogValue.h" - -using IEC61970::Base::Meas::AnalogValue; - - -AnalogValue::AnalogValue() - : AnalogControl(nullptr) -{ - -} - - - -AnalogValue::~AnalogValue(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Meas/AnalogValue.h b/IEC61970_17v07/IEC61970/Base/Meas/AnalogValue.h deleted file mode 100644 index c3074cf89..000000000 --- a/IEC61970_17v07/IEC61970/Base/Meas/AnalogValue.h +++ /dev/null @@ -1,44 +0,0 @@ -/////////////////////////////////////////////////////////// -// AnalogValue.h -// Implementation of the Class AnalogValue -/////////////////////////////////////////////////////////// - -#ifndef ANALOGVALUE_H -#define ANALOGVALUE_H - -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Meas/MeasurementValue.h" -#include "IEC61970/Base/Meas/AnalogControl.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Meas - { - /** - * AnalogValue represents an analog MeasurementValue. - */ - class AnalogValue : public IEC61970::Base::Meas::MeasurementValue - { - - public: - AnalogValue(); - virtual ~AnalogValue(); - /** - * The value to supervise. - */ - IEC61970::Base::Domain::Float value; - /** - * The Control variable associated with the MeasurementValue. - */ - IEC61970::Base::Meas::AnalogControl *AnalogControl; - - }; - - } - - } - -} -#endif // ANALOGVALUE_H diff --git a/IEC61970_17v07/IEC61970/Base/Meas/Command.cpp b/IEC61970_17v07/IEC61970/Base/Meas/Command.cpp deleted file mode 100644 index d7c3a0c78..000000000 --- a/IEC61970_17v07/IEC61970/Base/Meas/Command.cpp +++ /dev/null @@ -1,21 +0,0 @@ -/////////////////////////////////////////////////////////// -// Command.cpp -// Implementation of the Class Command -/////////////////////////////////////////////////////////// - -#include "Command.h" - -using IEC61970::Base::Meas::Command; - - -Command::Command() - : ValueAliasSet(nullptr) -{ - -} - - - -Command::~Command(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Meas/Command.h b/IEC61970_17v07/IEC61970/Base/Meas/Command.h deleted file mode 100644 index 29c391f05..000000000 --- a/IEC61970_17v07/IEC61970/Base/Meas/Command.h +++ /dev/null @@ -1,48 +0,0 @@ -/////////////////////////////////////////////////////////// -// Command.h -// Implementation of the Class Command -/////////////////////////////////////////////////////////// - -#ifndef COMMAND_H -#define COMMAND_H - -#include "IEC61970/Base/Domain/Integer.h" -#include "IEC61970/Base/Meas/ValueAliasSet.h" -#include "IEC61970/Base/Meas/Control.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Meas - { - /** - * A Command is a discrete control used for supervisory control. - */ - class Command : public IEC61970::Base::Meas::Control - { - - public: - Command(); - virtual ~Command(); - /** - * Normal value for Control.value e.g. used for percentage scaling. - */ - IEC61970::Base::Domain::Integer normalValue; - /** - * The value representing the actuator output. - */ - IEC61970::Base::Domain::Integer value; - /** - * The ValueAliasSet used for translation of a Control value to a name. - */ - IEC61970::Base::Meas::ValueAliasSet *ValueAliasSet; - - }; - - } - - } - -} -#endif // COMMAND_H diff --git a/IEC61970_17v07/IEC61970/Base/Meas/Control.cpp b/IEC61970_17v07/IEC61970/Base/Meas/Control.cpp deleted file mode 100644 index f2d84c727..000000000 --- a/IEC61970_17v07/IEC61970/Base/Meas/Control.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// Control.cpp -// Implementation of the Class Control -/////////////////////////////////////////////////////////// - -#include "Control.h" - -using IEC61970::Base::Meas::Control; - - -Control::Control(){ - -} - - - -Control::~Control(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Meas/Control.h b/IEC61970_17v07/IEC61970/Base/Meas/Control.h deleted file mode 100644 index 631ec99a2..000000000 --- a/IEC61970_17v07/IEC61970/Base/Meas/Control.h +++ /dev/null @@ -1,64 +0,0 @@ -/////////////////////////////////////////////////////////// -// Control.h -// Implementation of the Class Control -/////////////////////////////////////////////////////////// - -#ifndef CONTROL_H -#define CONTROL_H - -#include "IEC61970/Base/Domain/String.h" -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Domain/DateTime.h" -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/UnitSymbol.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Meas - { - /** - * Control is used for supervisory/device control. It represents control outputs - * that are used to change the state in a process, e.g. close or open breaker, a - * set point value or a raise lower command. - */ - class Control : public IEC61970::Base::Core::IdentifiedObject - { - - public: - Control(); - virtual ~Control(); - /** - * Specifies the type of Control, e.g. BreakerOn/Off, GeneratorVoltageSetPoint, - * TieLineFlow etc. The ControlType.name shall be unique among all specified types - * and describe the type. - */ - IEC61970::Base::Domain::String controlType; - /** - * Indicates that a client is currently sending control commands that has not - * completed. - */ - IEC61970::Base::Domain::Boolean operationInProgress; - /** - * The last time a control output was sent. - */ - IEC61970::Base::Domain::DateTime timeStamp; - /** - * The unit multiplier of the controlled quantity. - */ - IEC61970::Base::Domain::UnitMultiplier unitMultiplier = IEC61970::Base::Domain::UnitMultiplier::_undef; - /** - * The unit of measure of the controlled quantity. - */ - IEC61970::Base::Domain::UnitSymbol unitSymbol = IEC61970::Base::Domain::UnitSymbol::_undef; - - }; - - } - - } - -} -#endif // CONTROL_H diff --git a/IEC61970_17v07/IEC61970/Base/Meas/Discrete.cpp b/IEC61970_17v07/IEC61970/Base/Meas/Discrete.cpp deleted file mode 100644 index 2cc0cf50e..000000000 --- a/IEC61970_17v07/IEC61970/Base/Meas/Discrete.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// Discrete.cpp -// Implementation of the Class Discrete -/////////////////////////////////////////////////////////// - -#include "Discrete.h" - -using IEC61970::Base::Meas::Discrete; - - -Discrete::Discrete(){ - -} - - - -Discrete::~Discrete(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Meas/Discrete.h b/IEC61970_17v07/IEC61970/Base/Meas/Discrete.h deleted file mode 100644 index 25d6d3623..000000000 --- a/IEC61970_17v07/IEC61970/Base/Meas/Discrete.h +++ /dev/null @@ -1,57 +0,0 @@ -/////////////////////////////////////////////////////////// -// Discrete.h -// Implementation of the Class Discrete -/////////////////////////////////////////////////////////// - -#ifndef DISCRETE_H -#define DISCRETE_H - -#include - -#include "IEC61970/Base/Domain/Integer.h" -#include "IEC61970/Base/Meas/Measurement.h" -#include "IEC61970/Base/Meas/DiscreteValue.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Meas - { - /** - * Discrete represents a discrete Measurement, i.e. a Measurement representing - * discrete values, e.g. a Breaker position. - */ - class Discrete : public IEC61970::Base::Meas::Measurement - { - - public: - Discrete(); - virtual ~Discrete(); - /** - * Normal value range maximum for any of the MeasurementValue.values. Used for - * scaling, e.g. in bar graphs or of telemetered raw values. - */ - IEC61970::Base::Domain::Integer maxValue; - /** - * Normal value range minimum for any of the MeasurementValue.values. Used for - * scaling, e.g. in bar graphs or of telemetered raw values. - */ - IEC61970::Base::Domain::Integer minValue; - /** - * Normal measurement value, e.g., used for percentage calculations. - */ - IEC61970::Base::Domain::Integer normalValue; - /** - * The values connected to this measurement. - */ - std::list DiscreteValues; - - }; - - } - - } - -} -#endif // DISCRETE_H diff --git a/IEC61970_17v07/IEC61970/Base/Meas/DiscreteCommand.cpp b/IEC61970_17v07/IEC61970/Base/Meas/DiscreteCommand.cpp deleted file mode 100644 index 255368cbd..000000000 --- a/IEC61970_17v07/IEC61970/Base/Meas/DiscreteCommand.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// DiscreteCommand.cpp -// Implementation of the Class DiscreteCommand -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#include "DiscreteCommand.h" - -using IEC61970::Base::Meas::DiscreteCommand; - - -DiscreteCommand::DiscreteCommand(){ - -} - - - -DiscreteCommand::~DiscreteCommand(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Meas/DiscreteCommand.h b/IEC61970_17v07/IEC61970/Base/Meas/DiscreteCommand.h deleted file mode 100644 index e902320da..000000000 --- a/IEC61970_17v07/IEC61970/Base/Meas/DiscreteCommand.h +++ /dev/null @@ -1,32 +0,0 @@ -/////////////////////////////////////////////////////////// -// DiscreteCommand.h -// Implementation of the Class DiscreteCommand -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#ifndef DISCRETECOMMAND_H -#define DISCRETECOMMAND_H - -#include "IEC61970/Base/Meas/Command.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Meas - { - class DiscreteCommand : public IEC61970::Base::Meas::Command - { - - public: - DiscreteCommand(); - virtual ~DiscreteCommand(); - - }; - - } - - } - -} -#endif // DISCRETECOMMAND_H diff --git a/IEC61970_17v07/IEC61970/Base/Meas/DiscreteValue.cpp b/IEC61970_17v07/IEC61970/Base/Meas/DiscreteValue.cpp deleted file mode 100644 index 73819caa1..000000000 --- a/IEC61970_17v07/IEC61970/Base/Meas/DiscreteValue.cpp +++ /dev/null @@ -1,21 +0,0 @@ -/////////////////////////////////////////////////////////// -// DiscreteValue.cpp -// Implementation of the Class DiscreteValue -/////////////////////////////////////////////////////////// - -#include "DiscreteValue.h" - -using IEC61970::Base::Meas::DiscreteValue; - - -DiscreteValue::DiscreteValue() - : Command(nullptr) -{ - -} - - - -DiscreteValue::~DiscreteValue(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Meas/DiscreteValue.h b/IEC61970_17v07/IEC61970/Base/Meas/DiscreteValue.h deleted file mode 100644 index 1eabc25ba..000000000 --- a/IEC61970_17v07/IEC61970/Base/Meas/DiscreteValue.h +++ /dev/null @@ -1,44 +0,0 @@ -/////////////////////////////////////////////////////////// -// DiscreteValue.h -// Implementation of the Class DiscreteValue -/////////////////////////////////////////////////////////// - -#ifndef DISCRETEVALUE_H -#define DISCRETEVALUE_H - -#include "IEC61970/Base/Domain/Integer.h" -#include "IEC61970/Base/Meas/Command.h" -#include "IEC61970/Base/Meas/MeasurementValue.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Meas - { - /** - * DiscreteValue represents a discrete MeasurementValue. - */ - class DiscreteValue : public IEC61970::Base::Meas::MeasurementValue - { - - public: - DiscreteValue(); - virtual ~DiscreteValue(); - /** - * The value to supervise. - */ - IEC61970::Base::Domain::Integer value; - /** - * The Control variable associated with the MeasurementValue. - */ - IEC61970::Base::Meas::Command *Command; - - }; - - } - - } - -} -#endif // DISCRETEVALUE_H diff --git a/IEC61970_17v07/IEC61970/Base/Meas/Limit.cpp b/IEC61970_17v07/IEC61970/Base/Meas/Limit.cpp deleted file mode 100644 index 170665ace..000000000 --- a/IEC61970_17v07/IEC61970/Base/Meas/Limit.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// Limit.cpp -// Implementation of the Class Limit -/////////////////////////////////////////////////////////// - -#include "Limit.h" - -using IEC61970::Base::Meas::Limit; - - -Limit::Limit(){ - -} - - - -Limit::~Limit(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Meas/Limit.h b/IEC61970_17v07/IEC61970/Base/Meas/Limit.h deleted file mode 100644 index d9d021ca2..000000000 --- a/IEC61970_17v07/IEC61970/Base/Meas/Limit.h +++ /dev/null @@ -1,38 +0,0 @@ -/////////////////////////////////////////////////////////// -// Limit.h -// Implementation of the Class Limit -/////////////////////////////////////////////////////////// - -#ifndef LIMIT_H -#define LIMIT_H - -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Meas - { - /** - * Specifies one limit value for a Measurement. A Measurement typically has - * several limits that are kept together by the LimitSet class. The actual meaning - * and use of a Limit instance (i.e., if it is an alarm or warning limit or if it - * is a high or low limit) is not captured in the Limit class. However the name of - * a Limit instance may indicate both meaning and use. - */ - class Limit : public IEC61970::Base::Core::IdentifiedObject - { - - public: - Limit(); - virtual ~Limit(); - - }; - - } - - } - -} -#endif // LIMIT_H diff --git a/IEC61970_17v07/IEC61970/Base/Meas/LimitSet.cpp b/IEC61970_17v07/IEC61970/Base/Meas/LimitSet.cpp deleted file mode 100644 index 681221168..000000000 --- a/IEC61970_17v07/IEC61970/Base/Meas/LimitSet.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// LimitSet.cpp -// Implementation of the Class LimitSet -/////////////////////////////////////////////////////////// - -#include "LimitSet.h" - -using IEC61970::Base::Meas::LimitSet; - - -LimitSet::LimitSet(){ - -} - - - -LimitSet::~LimitSet(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Meas/LimitSet.h b/IEC61970_17v07/IEC61970/Base/Meas/LimitSet.h deleted file mode 100644 index 7176a0a69..000000000 --- a/IEC61970_17v07/IEC61970/Base/Meas/LimitSet.h +++ /dev/null @@ -1,44 +0,0 @@ -/////////////////////////////////////////////////////////// -// LimitSet.h -// Implementation of the Class LimitSet -/////////////////////////////////////////////////////////// - -#ifndef LIMITSET_H -#define LIMITSET_H - -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Meas - { - /** - * Specifies a set of Limits that are associated with a Measurement. A Measurement - * may have several LimitSets corresponding to seasonal or other changing - * conditions. The condition is captured in the name and description attributes. - * The same LimitSet may be used for several Measurements. In particular - * percentage limits are used this way. - */ - class LimitSet : public IEC61970::Base::Core::IdentifiedObject - { - - public: - LimitSet(); - virtual ~LimitSet(); - /** - * Tells if the limit values are in percentage of normalValue or the specified - * Unit for Measurements and Controls. - */ - IEC61970::Base::Domain::Boolean isPercentageLimits; - - }; - - } - - } - -} -#endif // LIMITSET_H diff --git a/IEC61970_17v07/IEC61970/Base/Meas/Measurement.cpp b/IEC61970_17v07/IEC61970/Base/Meas/Measurement.cpp deleted file mode 100644 index 0180ea6c9..000000000 --- a/IEC61970_17v07/IEC61970/Base/Meas/Measurement.cpp +++ /dev/null @@ -1,21 +0,0 @@ -/////////////////////////////////////////////////////////// -// Measurement.cpp -// Implementation of the Class Measurement -/////////////////////////////////////////////////////////// - -#include "Measurement.h" - -using IEC61970::Base::Meas::Measurement; - - -Measurement::Measurement() - : Terminal(nullptr) -{ - -} - - - -Measurement::~Measurement(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Meas/Measurement.h b/IEC61970_17v07/IEC61970/Base/Meas/Measurement.h deleted file mode 100644 index dcfb0cf10..000000000 --- a/IEC61970_17v07/IEC61970/Base/Meas/Measurement.h +++ /dev/null @@ -1,88 +0,0 @@ -/////////////////////////////////////////////////////////// -// Measurement.h -// Implementation of the Class Measurement -/////////////////////////////////////////////////////////// - -#ifndef MEASUREMENT_H -#define MEASUREMENT_H - -#include "IEC61970/Base/Domain/String.h" -#include "IEC61970/Base/Core/PhaseCode.h" -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/UnitSymbol.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" -#include "IEC61970/Base/Core/ACDCTerminal.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Meas - { - /** - * A Measurement represents any measured, calculated or non-measured non- - * calculated quantity. Any piece of equipment may contain Measurements, e.g. a - * substation may have temperature measurements and door open indications, a - * transformer may have oil temperature and tank pressure measurements, a bay may - * contain a number of power flow measurements and a Breaker may contain a switch - * status measurement. - * The PSR - Measurement association is intended to capture this use of - * Measurement and is included in the naming hierarchy based on EquipmentContainer. - * The naming hierarchy typically has Measurements as leafs, e.g. Substation- - * VoltageLevel-Bay-Switch-Measurement. - * Some Measurements represent quantities related to a particular sensor location - * in the network, e.g. a voltage transformer (PT) at a busbar or a current - * transformer (CT) at the bar between a breaker and an isolator. The sensing - * position is not captured in the PSR - Measurement association. Instead it is - * captured by the Measurement - Terminal association that is used to define the - * sensing location in the network topology. The location is defined by the - * connection of the Terminal to ConductingEquipment. - * If both a Terminal and PSR are associated, and the PSR is of type - * ConductingEquipment, the associated Terminal should belong to that - * ConductingEquipment instance. - * When the sensor location is needed both Measurement-PSR and Measurement- - * Terminal are used. The Measurement-Terminal association is never used alone. - */ - class Measurement : public IEC61970::Base::Core::IdentifiedObject - { - - public: - Measurement(); - virtual ~Measurement(); - /** - * Specifies the type of measurement. For example, this specifies if the - * measurement represents an indoor temperature, outdoor temperature, bus voltage, - * line flow, etc. - */ - IEC61970::Base::Domain::String measurementType; - /** - * Indicates to which phases the measurement applies and avoids the need to use - * 'measurementType' to also encode phase information (which would explode the - * types). The phase information in Measurement, along with 'measurementType' and - * 'phases' uniquely defines a Measurement for a device, based on normal network - * phase. Their meaning will not change when the computed energizing phasing is - * changed due to jumpers or other reasons. - * If the attribute is missing three phases (ABC) shall be assumed. - */ - IEC61970::Base::Core::PhaseCode phases = IEC61970::Base::Core::PhaseCode::_undef; - /** - * The unit multiplier of the measured quantity. - */ - IEC61970::Base::Domain::UnitMultiplier unitMultiplier = IEC61970::Base::Domain::UnitMultiplier::_undef; - /** - * The unit of measure of the measured quantity. - */ - IEC61970::Base::Domain::UnitSymbol unitSymbol = IEC61970::Base::Domain::UnitSymbol::_undef; - /** - * One or more measurements may be associated with a terminal in the network. - */ - IEC61970::Base::Core::ACDCTerminal *Terminal; - - }; - - } - - } - -} -#endif // MEASUREMENT_H diff --git a/IEC61970_17v07/IEC61970/Base/Meas/MeasurementValue.cpp b/IEC61970_17v07/IEC61970/Base/Meas/MeasurementValue.cpp deleted file mode 100644 index 2376c577e..000000000 --- a/IEC61970_17v07/IEC61970/Base/Meas/MeasurementValue.cpp +++ /dev/null @@ -1,21 +0,0 @@ -/////////////////////////////////////////////////////////// -// MeasurementValue.cpp -// Implementation of the Class MeasurementValue -/////////////////////////////////////////////////////////// - -#include "MeasurementValue.h" - -using IEC61970::Base::Meas::MeasurementValue; - - -MeasurementValue::MeasurementValue() - : RemoteSource(nullptr), MeasurementValueQuality(nullptr) -{ - -} - - - -MeasurementValue::~MeasurementValue(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Meas/MeasurementValue.h b/IEC61970_17v07/IEC61970/Base/Meas/MeasurementValue.h deleted file mode 100644 index 82b962274..000000000 --- a/IEC61970_17v07/IEC61970/Base/Meas/MeasurementValue.h +++ /dev/null @@ -1,57 +0,0 @@ -/////////////////////////////////////////////////////////// -// MeasurementValue.h -// Implementation of the Class MeasurementValue -/////////////////////////////////////////////////////////// - -#ifndef MEASUREMENTVALUE_H -#define MEASUREMENTVALUE_H - -#include "IEC61970/Base/Domain/PerCent.h" -#include "IEC61970/Base/Domain/DateTime.h" -#include "IEC61970/Base/SCADA/RemoteSource.h" -#include "IEC61970/Base/Meas/MeasurementValueQuality.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Meas - { - /** - * The current state for a measurement. A state value is an instance of a - * measurement from a specific source. Measurements can be associated with many - * state values, each representing a different source for the measurement. - */ - class MeasurementValue : public IEC61970::Base::Core::IdentifiedObject - { - - public: - MeasurementValue(); - virtual ~MeasurementValue(); - /** - * The limit, expressed as a percentage of the sensor maximum, that errors will - * not exceed when the sensor is used under reference conditions. - */ - IEC61970::Base::Domain::PerCent sensorAccuracy; - /** - * The time when the value was last updated - */ - IEC61970::Base::Domain::DateTime timeStamp; - /** - * Link to the physical telemetered point associated with this measurement. - */ - IEC61970::Base::SCADA::RemoteSource *RemoteSource; - /** - * A MeasurementValue has a MeasurementValueQuality associated with it. - */ - IEC61970::Base::Meas::MeasurementValueQuality *MeasurementValueQuality; - - }; - - } - - } - -} -#endif // MEASUREMENTVALUE_H diff --git a/IEC61970_17v07/IEC61970/Base/Meas/MeasurementValueQuality.cpp b/IEC61970_17v07/IEC61970/Base/Meas/MeasurementValueQuality.cpp deleted file mode 100644 index 89ca2f640..000000000 --- a/IEC61970_17v07/IEC61970/Base/Meas/MeasurementValueQuality.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// MeasurementValueQuality.cpp -// Implementation of the Class MeasurementValueQuality -/////////////////////////////////////////////////////////// - -#include "MeasurementValueQuality.h" - -using IEC61970::Base::Meas::MeasurementValueQuality; - - -MeasurementValueQuality::MeasurementValueQuality(){ - -} - - - -MeasurementValueQuality::~MeasurementValueQuality(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Meas/MeasurementValueQuality.h b/IEC61970_17v07/IEC61970/Base/Meas/MeasurementValueQuality.h deleted file mode 100644 index d481c3e42..000000000 --- a/IEC61970_17v07/IEC61970/Base/Meas/MeasurementValueQuality.h +++ /dev/null @@ -1,36 +0,0 @@ -/////////////////////////////////////////////////////////// -// MeasurementValueQuality.h -// Implementation of the Class MeasurementValueQuality -/////////////////////////////////////////////////////////// - -#ifndef MEASUREMENTVALUEQUALITY_H -#define MEASUREMENTVALUEQUALITY_H - -#include "IEC61970/Base/Meas/Quality61850.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Meas - { - /** - * Measurement quality flags. Bits 0-10 are defined for substation automation in - * draft IEC 61850 part 7-3. Bits 11-15 are reserved for future expansion by that - * document. Bits 16-31 are reserved for EMS applications. - */ - class MeasurementValueQuality : public IEC61970::Base::Meas::Quality61850 - { - - public: - MeasurementValueQuality(); - virtual ~MeasurementValueQuality(); - - }; - - } - - } - -} -#endif // MEASUREMENTVALUEQUALITY_H diff --git a/IEC61970_17v07/IEC61970/Base/Meas/MeasurementValueSource.cpp b/IEC61970_17v07/IEC61970/Base/Meas/MeasurementValueSource.cpp deleted file mode 100644 index f3aad78f0..000000000 --- a/IEC61970_17v07/IEC61970/Base/Meas/MeasurementValueSource.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// MeasurementValueSource.cpp -// Implementation of the Class MeasurementValueSource -/////////////////////////////////////////////////////////// - -#include "MeasurementValueSource.h" - -using IEC61970::Base::Meas::MeasurementValueSource; - - -MeasurementValueSource::MeasurementValueSource(){ - -} - - - -MeasurementValueSource::~MeasurementValueSource(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Meas/MeasurementValueSource.h b/IEC61970_17v07/IEC61970/Base/Meas/MeasurementValueSource.h deleted file mode 100644 index e4d413ff3..000000000 --- a/IEC61970_17v07/IEC61970/Base/Meas/MeasurementValueSource.h +++ /dev/null @@ -1,43 +0,0 @@ -/////////////////////////////////////////////////////////// -// MeasurementValueSource.h -// Implementation of the Class MeasurementValueSource -/////////////////////////////////////////////////////////// - -#ifndef MEASUREMENTVALUESOURCE_H -#define MEASUREMENTVALUESOURCE_H - -#include - -#include "IEC61970/Base/Meas/MeasurementValue.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Meas - { - /** - * MeasurementValueSource describes the alternative sources updating a - * MeasurementValue. User conventions for how to use the MeasurementValueSource - * attributes are described in the introduction to IEC 61970-301. - */ - class MeasurementValueSource : public IEC61970::Base::Core::IdentifiedObject - { - - public: - MeasurementValueSource(); - virtual ~MeasurementValueSource(); - /** - * The MeasurementValues updated by the source. - */ - std::list MeasurementValues; - - }; - - } - - } - -} -#endif // MEASUREMENTVALUESOURCE_H diff --git a/IEC61970_17v07/IEC61970/Base/Meas/Quality61850.cpp b/IEC61970_17v07/IEC61970/Base/Meas/Quality61850.cpp deleted file mode 100644 index 4c2866158..000000000 --- a/IEC61970_17v07/IEC61970/Base/Meas/Quality61850.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// Quality61850.cpp -// Implementation of the Class Quality61850 -/////////////////////////////////////////////////////////// - -#include "Quality61850.h" - -using IEC61970::Base::Meas::Quality61850; - - -Quality61850::Quality61850(){ - -} - - - -Quality61850::~Quality61850(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Meas/Quality61850.h b/IEC61970_17v07/IEC61970/Base/Meas/Quality61850.h deleted file mode 100644 index 03d8f762f..000000000 --- a/IEC61970_17v07/IEC61970/Base/Meas/Quality61850.h +++ /dev/null @@ -1,104 +0,0 @@ -/////////////////////////////////////////////////////////// -// Quality61850.h -// Implementation of the Class Quality61850 -/////////////////////////////////////////////////////////// - -#ifndef QUALITY61850_H -#define QUALITY61850_H - -#include "BaseClass.h" -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/SCADA/Source.h" -#include "IEC61970/Base/Meas/Validity.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Meas - { - /** - * Quality flags in this class are as defined in IEC 61850, except for - * estimatorReplaced, which has been included in this class for convenience. - */ - class Quality61850 : public BaseClass - { - - public: - Quality61850(); - virtual ~Quality61850(); - /** - * Measurement value may be incorrect due to a reference being out of calibration. - */ - IEC61970::Base::Domain::Boolean badReference; - /** - * Value has been replaced by State Estimator. estimatorReplaced is not an - * IEC61850 quality bit but has been put in this class for convenience. - */ - IEC61970::Base::Domain::Boolean estimatorReplaced; - /** - * This identifier indicates that a supervision function has detected an internal - * or external failure, e.g. communication failure. - */ - IEC61970::Base::Domain::Boolean failure; - /** - * Measurement value is old and possibly invalid, as it has not been successfully - * updated during a specified time interval. - */ - IEC61970::Base::Domain::Boolean oldData; - /** - * Measurement value is blocked and hence unavailable for transmission. - */ - IEC61970::Base::Domain::Boolean operatorBlocked; - /** - * To prevent some overload of the communication it is sensible to detect and - * suppress oscillating (fast changing) binary inputs. If a signal changes in a - * defined time (tosc) twice in the same direction (from 0 to 1 or from 1 to 0) - * then oscillation is detected and the detail quality identifier "oscillatory" is - * set. If it is detected a configured numbers of transient changes could be - * passed by. In this time the validity status "questionable" is set. If after - * this defined numbers of changes the signal is still in the oscillating state - * the value shall be set either to the opposite state of the previous stable - * value or to a defined default value. In this case the validity status - * "questionable" is reset and "invalid" is set as long as the signal is - * oscillating. If it is configured such that no transient changes should be - * passed by then the validity status "invalid" is set immediately in addition to - * the detail quality identifier "oscillatory" (used for status information only). - */ - IEC61970::Base::Domain::Boolean oscillatory; - /** - * Measurement value is beyond a predefined range of value. - */ - IEC61970::Base::Domain::Boolean outOfRange; - /** - * Measurement value is beyond the capability of being represented properly. For - * example, a counter value overflows from maximum count back to a value of zero. - */ - IEC61970::Base::Domain::Boolean overFlow; - /** - * Source gives information related to the origin of a value. The value may be - * acquired from the process, defaulted or substituted. - */ - IEC61970::Base::SCADA::Source source = IEC61970::Base::SCADA::Source::_undef; - /** - * A correlation function has detected that the value is not consitent with other - * values. Typically set by a network State Estimator. - */ - IEC61970::Base::Domain::Boolean suspect; - /** - * Measurement value is transmitted for test purposes. - */ - IEC61970::Base::Domain::Boolean test; - /** - * Validity of the measurement value. - */ - IEC61970::Base::Meas::Validity validity = IEC61970::Base::Meas::Validity::_undef; - - }; - - } - - } - -} -#endif // QUALITY61850_H diff --git a/IEC61970_17v07/IEC61970/Base/Meas/RaiseLowerCommand.cpp b/IEC61970_17v07/IEC61970/Base/Meas/RaiseLowerCommand.cpp deleted file mode 100644 index 6b8c32373..000000000 --- a/IEC61970_17v07/IEC61970/Base/Meas/RaiseLowerCommand.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// RaiseLowerCommand.cpp -// Implementation of the Class RaiseLowerCommand -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#include "RaiseLowerCommand.h" - -using IEC61970::Base::Meas::RaiseLowerCommand; - - -RaiseLowerCommand::RaiseLowerCommand() - : ValueAliasSet(nullptr) -{ - -} - - - -RaiseLowerCommand::~RaiseLowerCommand(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Meas/RaiseLowerCommand.h b/IEC61970_17v07/IEC61970/Base/Meas/RaiseLowerCommand.h deleted file mode 100644 index ae9a9e11b..000000000 --- a/IEC61970_17v07/IEC61970/Base/Meas/RaiseLowerCommand.h +++ /dev/null @@ -1,40 +0,0 @@ -/////////////////////////////////////////////////////////// -// RaiseLowerCommand.h -// Implementation of the Class RaiseLowerCommand -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#ifndef RAISELOWERCOMMAND_H -#define RAISELOWERCOMMAND_H - -#include "IEC61970/Base/Meas/AnalogControl.h" -#include "IEC61970/Base/Meas/ValueAliasSet.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Meas - { - /** - * An analog control that increase or decrease a set point value with pulses. - */ - class RaiseLowerCommand : public IEC61970::Base::Meas::AnalogControl - { - - public: - RaiseLowerCommand(); - virtual ~RaiseLowerCommand(); - /** - * The ValueAliasSet used for translation of a Control value to a name. - */ - IEC61970::Base::Meas::ValueAliasSet *ValueAliasSet; - - }; - - } - - } - -} -#endif // RAISELOWERCOMMAND_H diff --git a/IEC61970_17v07/IEC61970/Base/Meas/SetPoint.cpp b/IEC61970_17v07/IEC61970/Base/Meas/SetPoint.cpp deleted file mode 100644 index 4bdd45dd4..000000000 --- a/IEC61970_17v07/IEC61970/Base/Meas/SetPoint.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// SetPoint.cpp -// Implementation of the Class SetPoint -/////////////////////////////////////////////////////////// - -#include "SetPoint.h" - -using IEC61970::Base::Meas::SetPoint; - - -SetPoint::SetPoint(){ - -} - - - -SetPoint::~SetPoint(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Meas/SetPoint.h b/IEC61970_17v07/IEC61970/Base/Meas/SetPoint.h deleted file mode 100644 index 73edfd976..000000000 --- a/IEC61970_17v07/IEC61970/Base/Meas/SetPoint.h +++ /dev/null @@ -1,43 +0,0 @@ -/////////////////////////////////////////////////////////// -// SetPoint.h -// Implementation of the Class SetPoint -/////////////////////////////////////////////////////////// - -#ifndef SETPOINT_H -#define SETPOINT_H - -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Meas/AnalogControl.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Meas - { - /** - * An analog control that issue a set point value. - */ - class SetPoint : public IEC61970::Base::Meas::AnalogControl - { - - public: - SetPoint(); - virtual ~SetPoint(); - /** - * Normal value for Control.value e.g. used for percentage scaling. - */ - IEC61970::Base::Domain::Float normalValue; - /** - * The value representing the actuator output. - */ - IEC61970::Base::Domain::Float value; - - }; - - } - - } - -} -#endif // SETPOINT_H diff --git a/IEC61970_17v07/IEC61970/Base/Meas/StringMeasurement.cpp b/IEC61970_17v07/IEC61970/Base/Meas/StringMeasurement.cpp deleted file mode 100644 index f53b3662d..000000000 --- a/IEC61970_17v07/IEC61970/Base/Meas/StringMeasurement.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// StringMeasurement.cpp -// Implementation of the Class StringMeasurement -/////////////////////////////////////////////////////////// - -#include "StringMeasurement.h" - -using IEC61970::Base::Meas::StringMeasurement; - - -StringMeasurement::StringMeasurement(){ - -} - - - -StringMeasurement::~StringMeasurement(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Meas/StringMeasurement.h b/IEC61970_17v07/IEC61970/Base/Meas/StringMeasurement.h deleted file mode 100644 index 8a0f9928b..000000000 --- a/IEC61970_17v07/IEC61970/Base/Meas/StringMeasurement.h +++ /dev/null @@ -1,34 +0,0 @@ -/////////////////////////////////////////////////////////// -// StringMeasurement.h -// Implementation of the Class StringMeasurement -/////////////////////////////////////////////////////////// - -#ifndef STRINGMEASUREMENT_H -#define STRINGMEASUREMENT_H - -#include "IEC61970/Base/Meas/Measurement.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Meas - { - /** - * StringMeasurement represents a measurement with values of type string. - */ - class StringMeasurement : public IEC61970::Base::Meas::Measurement - { - - public: - StringMeasurement(); - virtual ~StringMeasurement(); - - }; - - } - - } - -} -#endif // STRINGMEASUREMENT_H diff --git a/IEC61970_17v07/IEC61970/Base/Meas/StringMeasurementValue.cpp b/IEC61970_17v07/IEC61970/Base/Meas/StringMeasurementValue.cpp deleted file mode 100644 index b167c8a1d..000000000 --- a/IEC61970_17v07/IEC61970/Base/Meas/StringMeasurementValue.cpp +++ /dev/null @@ -1,21 +0,0 @@ -/////////////////////////////////////////////////////////// -// StringMeasurementValue.cpp -// Implementation of the Class StringMeasurementValue -/////////////////////////////////////////////////////////// - -#include "StringMeasurementValue.h" - -using IEC61970::Base::Meas::StringMeasurementValue; - - -StringMeasurementValue::StringMeasurementValue() - : StringMeasurement(nullptr) -{ - -} - - - -StringMeasurementValue::~StringMeasurementValue(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Meas/StringMeasurementValue.h b/IEC61970_17v07/IEC61970/Base/Meas/StringMeasurementValue.h deleted file mode 100644 index 2ac76dc88..000000000 --- a/IEC61970_17v07/IEC61970/Base/Meas/StringMeasurementValue.h +++ /dev/null @@ -1,44 +0,0 @@ -/////////////////////////////////////////////////////////// -// StringMeasurementValue.h -// Implementation of the Class StringMeasurementValue -/////////////////////////////////////////////////////////// - -#ifndef STRINGMEASUREMENTVALUE_H -#define STRINGMEASUREMENTVALUE_H - -#include "IEC61970/Base/Domain/String.h" -#include "IEC61970/Base/Meas/MeasurementValue.h" -#include "IEC61970/Base/Meas/StringMeasurement.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Meas - { - /** - * StringMeasurementValue represents a measurement value of type string. - */ - class StringMeasurementValue : public IEC61970::Base::Meas::MeasurementValue - { - - public: - StringMeasurementValue(); - virtual ~StringMeasurementValue(); - /** - * The value to supervise. - */ - IEC61970::Base::Domain::String value; - /** - * Measurement to which this value is connected. - */ - IEC61970::Base::Meas::StringMeasurement *StringMeasurement; - - }; - - } - - } - -} -#endif // STRINGMEASUREMENTVALUE_H diff --git a/IEC61970_17v07/IEC61970/Base/Meas/Validity.h b/IEC61970_17v07/IEC61970/Base/Meas/Validity.h deleted file mode 100644 index 5d72dae90..000000000 --- a/IEC61970_17v07/IEC61970/Base/Meas/Validity.h +++ /dev/null @@ -1,46 +0,0 @@ -/////////////////////////////////////////////////////////// -// Validity.h -// Implementation of the Class Validity -/////////////////////////////////////////////////////////// - -#ifndef VALIDITY_H -#define VALIDITY_H - -namespace IEC61970 -{ - namespace Base - { - namespace Meas - { - /** - * Validity for MeasurementValue. - */ - enum class Validity - { - /** - * The value is marked good if no abnormal condition of the acquisition function - * or the information source is detected. - */ - _undef = -1, GOOD, - /** - * The value is marked questionable if a supervision function detects an abnormal - * behaviour, however the value could still be valid. The client is responsible - * for determining whether or not values marked "questionable" should be used. - */ - QUESTIONABLE, - /** - * The value is marked invalid when a supervision function recognises abnormal - * conditions of the acquisition function or the information source (missing or - * non-operating updating devices). The value is not defined under this condition. - * The mark invalid is used to indicate to the client that the value may be - * incorrect and shall not be used. - */ - INVALID - }; - - } - - } - -} -#endif // VALIDITY_H diff --git a/IEC61970_17v07/IEC61970/Base/Meas/ValueAliasSet.cpp b/IEC61970_17v07/IEC61970/Base/Meas/ValueAliasSet.cpp deleted file mode 100644 index 72db59625..000000000 --- a/IEC61970_17v07/IEC61970/Base/Meas/ValueAliasSet.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// ValueAliasSet.cpp -// Implementation of the Class ValueAliasSet -/////////////////////////////////////////////////////////// - -#include "ValueAliasSet.h" - -using IEC61970::Base::Meas::ValueAliasSet; - - -ValueAliasSet::ValueAliasSet(){ - -} - - - -ValueAliasSet::~ValueAliasSet(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Meas/ValueAliasSet.h b/IEC61970_17v07/IEC61970/Base/Meas/ValueAliasSet.h deleted file mode 100644 index a42cd21c7..000000000 --- a/IEC61970_17v07/IEC61970/Base/Meas/ValueAliasSet.h +++ /dev/null @@ -1,53 +0,0 @@ -/////////////////////////////////////////////////////////// -// ValueAliasSet.h -// Implementation of the Class ValueAliasSet -/////////////////////////////////////////////////////////// - -#ifndef VALUEALIASSET_H -#define VALUEALIASSET_H - -#include - -#include "IEC61970/Base/Meas/ValueToAlias.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Meas - { - // Forward Declaration - class Discrete; - /** - * Describes the translation of a set of values into a name and is intendend to - * facilitate cusom translations. Each ValueAliasSet has a name, description etc. - * A specific Measurement may represent a discrete state like Open, Closed, - * Intermediate etc. This requires a translation from the MeasurementValue.value - * number to a string, e.g. 0->"Invalid", 1->"Open", 2->"Closed", 3- - * >"Intermediate". Each ValueToAlias member in ValueAliasSet.Value describe a - * mapping for one particular value to a name. - */ - class ValueAliasSet : public IEC61970::Base::Core::IdentifiedObject - { - - public: - ValueAliasSet(); - virtual ~ValueAliasSet(); - /** - * The ValueToAlias mappings included in the set. - */ - std::list Values; - /** - * The Measurements using the set for translation. - */ - std::list Discretes; - - }; - - } - - } - -} -#endif // VALUEALIASSET_H diff --git a/IEC61970_17v07/IEC61970/Base/Meas/ValueToAlias.cpp b/IEC61970_17v07/IEC61970/Base/Meas/ValueToAlias.cpp deleted file mode 100644 index 4cdbc9960..000000000 --- a/IEC61970_17v07/IEC61970/Base/Meas/ValueToAlias.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// ValueToAlias.cpp -// Implementation of the Class ValueToAlias -/////////////////////////////////////////////////////////// - -#include "ValueToAlias.h" - -using IEC61970::Base::Meas::ValueToAlias; - - -ValueToAlias::ValueToAlias(){ - -} - - - -ValueToAlias::~ValueToAlias(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Meas/ValueToAlias.h b/IEC61970_17v07/IEC61970/Base/Meas/ValueToAlias.h deleted file mode 100644 index 32a49f9c8..000000000 --- a/IEC61970_17v07/IEC61970/Base/Meas/ValueToAlias.h +++ /dev/null @@ -1,39 +0,0 @@ -/////////////////////////////////////////////////////////// -// ValueToAlias.h -// Implementation of the Class ValueToAlias -/////////////////////////////////////////////////////////// - -#ifndef VALUETOALIAS_H -#define VALUETOALIAS_H - -#include "IEC61970/Base/Domain/Integer.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Meas - { - /** - * Describes the translation of one particular value into a name, e.g. 1 as "Open". - */ - class ValueToAlias : public IEC61970::Base::Core::IdentifiedObject - { - - public: - ValueToAlias(); - virtual ~ValueToAlias(); - /** - * The value that is mapped. - */ - IEC61970::Base::Domain::Integer value; - - }; - - } - - } - -} -#endif // VALUETOALIAS_H diff --git a/IEC61970_17v07/IEC61970/Base/OperationalLimits/ActivePowerLimit.cpp b/IEC61970_17v07/IEC61970/Base/OperationalLimits/ActivePowerLimit.cpp deleted file mode 100644 index 51d0196b4..000000000 --- a/IEC61970_17v07/IEC61970/Base/OperationalLimits/ActivePowerLimit.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// ActivePowerLimit.cpp -// Implementation of the Class ActivePowerLimit -// Original author: kdd -/////////////////////////////////////////////////////////// - -#include "ActivePowerLimit.h" - -using IEC61970::Base::OperationalLimits::ActivePowerLimit; - - -ActivePowerLimit::ActivePowerLimit(){ - -} - - - -ActivePowerLimit::~ActivePowerLimit(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/OperationalLimits/ActivePowerLimit.h b/IEC61970_17v07/IEC61970/Base/OperationalLimits/ActivePowerLimit.h deleted file mode 100644 index 8c30d3650..000000000 --- a/IEC61970_17v07/IEC61970/Base/OperationalLimits/ActivePowerLimit.h +++ /dev/null @@ -1,40 +0,0 @@ -/////////////////////////////////////////////////////////// -// ActivePowerLimit.h -// Implementation of the Class ActivePowerLimit -// Original author: kdd -/////////////////////////////////////////////////////////// - -#ifndef ACTIVEPOWERLIMIT_H -#define ACTIVEPOWERLIMIT_H - -#include "IEC61970/Base/Domain/ActivePower.h" -#include "IEC61970/Base/OperationalLimits/OperationalLimit.h" - -namespace IEC61970 -{ - namespace Base - { - namespace OperationalLimits - { - /** - * Limit on active power flow. - */ - class ActivePowerLimit : public IEC61970::Base::OperationalLimits::OperationalLimit - { - - public: - ActivePowerLimit(); - virtual ~ActivePowerLimit(); - /** - * Value of active power limit. - */ - IEC61970::Base::Domain::ActivePower value; - - }; - - } - - } - -} -#endif // ACTIVEPOWERLIMIT_H diff --git a/IEC61970_17v07/IEC61970/Base/OperationalLimits/ApparentPowerLimit.cpp b/IEC61970_17v07/IEC61970/Base/OperationalLimits/ApparentPowerLimit.cpp deleted file mode 100644 index daff43d17..000000000 --- a/IEC61970_17v07/IEC61970/Base/OperationalLimits/ApparentPowerLimit.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// ApparentPowerLimit.cpp -// Implementation of the Class ApparentPowerLimit -// Original author: kdd -/////////////////////////////////////////////////////////// - -#include "ApparentPowerLimit.h" - -using IEC61970::Base::OperationalLimits::ApparentPowerLimit; - - -ApparentPowerLimit::ApparentPowerLimit(){ - -} - - - -ApparentPowerLimit::~ApparentPowerLimit(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/OperationalLimits/ApparentPowerLimit.h b/IEC61970_17v07/IEC61970/Base/OperationalLimits/ApparentPowerLimit.h deleted file mode 100644 index 28560bfe6..000000000 --- a/IEC61970_17v07/IEC61970/Base/OperationalLimits/ApparentPowerLimit.h +++ /dev/null @@ -1,40 +0,0 @@ -/////////////////////////////////////////////////////////// -// ApparentPowerLimit.h -// Implementation of the Class ApparentPowerLimit -// Original author: kdd -/////////////////////////////////////////////////////////// - -#ifndef APPARENTPOWERLIMIT_H -#define APPARENTPOWERLIMIT_H - -#include "IEC61970/Base/Domain/ApparentPower.h" -#include "IEC61970/Base/OperationalLimits/OperationalLimit.h" - -namespace IEC61970 -{ - namespace Base - { - namespace OperationalLimits - { - /** - * Apparent power limit. - */ - class ApparentPowerLimit : public IEC61970::Base::OperationalLimits::OperationalLimit - { - - public: - ApparentPowerLimit(); - virtual ~ApparentPowerLimit(); - /** - * The apparent power limit. - */ - IEC61970::Base::Domain::ApparentPower value; - - }; - - } - - } - -} -#endif // APPARENTPOWERLIMIT_H diff --git a/IEC61970_17v07/IEC61970/Base/OperationalLimits/BranchGroup.cpp b/IEC61970_17v07/IEC61970/Base/OperationalLimits/BranchGroup.cpp deleted file mode 100644 index ffe3a4a4f..000000000 --- a/IEC61970_17v07/IEC61970/Base/OperationalLimits/BranchGroup.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// BranchGroup.cpp -// Implementation of the Class BranchGroup -// Original author: kdd -/////////////////////////////////////////////////////////// - -#include "BranchGroup.h" - -using IEC61970::Base::OperationalLimits::BranchGroup; - - -BranchGroup::BranchGroup(){ - -} - - - -BranchGroup::~BranchGroup(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/OperationalLimits/BranchGroup.h b/IEC61970_17v07/IEC61970/Base/OperationalLimits/BranchGroup.h deleted file mode 100644 index b71580449..000000000 --- a/IEC61970_17v07/IEC61970/Base/OperationalLimits/BranchGroup.h +++ /dev/null @@ -1,70 +0,0 @@ -/////////////////////////////////////////////////////////// -// BranchGroup.h -// Implementation of the Class BranchGroup -// Original author: kdd -/////////////////////////////////////////////////////////// - -#ifndef BRANCHGROUP_H -#define BRANCHGROUP_H - -#include - -#include "IEC61970/Base/Domain/ActivePower.h" -#include "IEC61970/Base/Domain/ReactivePower.h" -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/OperationalLimits/BranchGroupTerminal.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Base - { - namespace OperationalLimits - { - /** - * A group of branch terminals whose directed flow summation is to be monitored. A - * branch group need not form a cutset of the network. - */ - class BranchGroup : public IEC61970::Base::Core::IdentifiedObject - { - - public: - BranchGroup(); - virtual ~BranchGroup(); - /** - * The maximum active power flow. - */ - IEC61970::Base::Domain::ActivePower maximumActivePower; - /** - * The maximum reactive power flow. - */ - IEC61970::Base::Domain::ReactivePower maximumReactivePower; - /** - * The minimum active power flow. - */ - IEC61970::Base::Domain::ActivePower minimumActivePower; - /** - * The minimum reactive power flow. - */ - IEC61970::Base::Domain::ReactivePower minimumReactivePower; - /** - * Monitor the active power flow. - */ - IEC61970::Base::Domain::Boolean monitorActivePower; - /** - * Monitor the reactive power flow. - */ - IEC61970::Base::Domain::Boolean monitorReactivePower; - /** - * The directed branch group terminals to be summed. - */ - std::list BranchGroupTerminal; - - }; - - } - - } - -} -#endif // BRANCHGROUP_H diff --git a/IEC61970_17v07/IEC61970/Base/OperationalLimits/BranchGroupTerminal.cpp b/IEC61970_17v07/IEC61970/Base/OperationalLimits/BranchGroupTerminal.cpp deleted file mode 100644 index 207c56c28..000000000 --- a/IEC61970_17v07/IEC61970/Base/OperationalLimits/BranchGroupTerminal.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// BranchGroupTerminal.cpp -// Implementation of the Class BranchGroupTerminal -// Original author: kdd -/////////////////////////////////////////////////////////// - -#include "BranchGroupTerminal.h" - -using IEC61970::Base::OperationalLimits::BranchGroupTerminal; - - -BranchGroupTerminal::BranchGroupTerminal() - : Terminal(nullptr) -{ - -} - - - -BranchGroupTerminal::~BranchGroupTerminal(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/OperationalLimits/BranchGroupTerminal.h b/IEC61970_17v07/IEC61970/Base/OperationalLimits/BranchGroupTerminal.h deleted file mode 100644 index 58824d49c..000000000 --- a/IEC61970_17v07/IEC61970/Base/OperationalLimits/BranchGroupTerminal.h +++ /dev/null @@ -1,46 +0,0 @@ -/////////////////////////////////////////////////////////// -// BranchGroupTerminal.h -// Implementation of the Class BranchGroupTerminal -// Original author: kdd -/////////////////////////////////////////////////////////// - -#ifndef BRANCHGROUPTERMINAL_H -#define BRANCHGROUPTERMINAL_H - -#include "BaseClass.h" -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Core/Terminal.h" - -namespace IEC61970 -{ - namespace Base - { - namespace OperationalLimits - { - /** - * A specific directed terminal flow for a branch group. - */ - class BranchGroupTerminal : public BaseClass - { - - public: - BranchGroupTerminal(); - virtual ~BranchGroupTerminal(); - /** - * The flow into the terminal is summed if set true. The flow out of the - * terminanl is summed if set false. - */ - IEC61970::Base::Domain::Boolean positiveFlowIn; - /** - * The terminal to be summed. - */ - IEC61970::Base::Core::Terminal *Terminal; - - }; - - } - - } - -} -#endif // BRANCHGROUPTERMINAL_H diff --git a/IEC61970_17v07/IEC61970/Base/OperationalLimits/CurrentLimit.cpp b/IEC61970_17v07/IEC61970/Base/OperationalLimits/CurrentLimit.cpp deleted file mode 100644 index 65e3a3fbf..000000000 --- a/IEC61970_17v07/IEC61970/Base/OperationalLimits/CurrentLimit.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// CurrentLimit.cpp -// Implementation of the Class CurrentLimit -// Original author: kdd -/////////////////////////////////////////////////////////// - -#include "CurrentLimit.h" - -using IEC61970::Base::OperationalLimits::CurrentLimit; - - -CurrentLimit::CurrentLimit(){ - -} - - - -CurrentLimit::~CurrentLimit(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/OperationalLimits/CurrentLimit.h b/IEC61970_17v07/IEC61970/Base/OperationalLimits/CurrentLimit.h deleted file mode 100644 index a17a08833..000000000 --- a/IEC61970_17v07/IEC61970/Base/OperationalLimits/CurrentLimit.h +++ /dev/null @@ -1,40 +0,0 @@ -/////////////////////////////////////////////////////////// -// CurrentLimit.h -// Implementation of the Class CurrentLimit -// Original author: kdd -/////////////////////////////////////////////////////////// - -#ifndef CURRENTLIMIT_H -#define CURRENTLIMIT_H - -#include "IEC61970/Base/Domain/CurrentFlow.h" -#include "IEC61970/Base/OperationalLimits/OperationalLimit.h" - -namespace IEC61970 -{ - namespace Base - { - namespace OperationalLimits - { - /** - * Operational limit on current. - */ - class CurrentLimit : public IEC61970::Base::OperationalLimits::OperationalLimit - { - - public: - CurrentLimit(); - virtual ~CurrentLimit(); - /** - * Limit on current flow. - */ - IEC61970::Base::Domain::CurrentFlow value; - - }; - - } - - } - -} -#endif // CURRENTLIMIT_H diff --git a/IEC61970_17v07/IEC61970/Base/OperationalLimits/OperationalLimit.cpp b/IEC61970_17v07/IEC61970/Base/OperationalLimits/OperationalLimit.cpp deleted file mode 100644 index da41b9cfd..000000000 --- a/IEC61970_17v07/IEC61970/Base/OperationalLimits/OperationalLimit.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// OperationalLimit.cpp -// Implementation of the Class OperationalLimit -// Original author: kdd -/////////////////////////////////////////////////////////// - -#include "OperationalLimit.h" - -using IEC61970::Base::OperationalLimits::OperationalLimit; - - -OperationalLimit::OperationalLimit() - : OperationalLimitType(nullptr) -{ - -} - - - -OperationalLimit::~OperationalLimit(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/OperationalLimits/OperationalLimit.h b/IEC61970_17v07/IEC61970/Base/OperationalLimits/OperationalLimit.h deleted file mode 100644 index 84017d1b5..000000000 --- a/IEC61970_17v07/IEC61970/Base/OperationalLimits/OperationalLimit.h +++ /dev/null @@ -1,48 +0,0 @@ -/////////////////////////////////////////////////////////// -// OperationalLimit.h -// Implementation of the Class OperationalLimit -// Original author: kdd -/////////////////////////////////////////////////////////// - -#ifndef OPERATIONALLIMIT_H -#define OPERATIONALLIMIT_H - -#include "IEC61970/Base/OperationalLimits/OperationalLimitType.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Base - { - namespace OperationalLimits - { - /** - * A value associated with a specific kind of limit. - * The sub class value attribute shall be positive. - * The sub class value attribute is inversely proportional to OperationalLimitType. - * acceptableDuration (acceptableDuration for short). A pair of value_x and - * acceptableDuration_x are related to each other as follows: - * if value_1 > value_2 > value_3 >... then - * acceptableDuration_1 < acceptableDuration_2 < acceptableDuration_3 < ... - * A value_x with direction="high" shall be greater than a value_y with - * direction="low". - */ - class OperationalLimit : public IEC61970::Base::Core::IdentifiedObject - { - - public: - OperationalLimit(); - virtual ~OperationalLimit(); - /** - * The limit type associated with this limit. - */ - IEC61970::Base::OperationalLimits::OperationalLimitType *OperationalLimitType; - - }; - - } - - } - -} -#endif // OPERATIONALLIMIT_H diff --git a/IEC61970_17v07/IEC61970/Base/OperationalLimits/OperationalLimitDirectionKind.h b/IEC61970_17v07/IEC61970/Base/OperationalLimits/OperationalLimitDirectionKind.h deleted file mode 100644 index 069ceea42..000000000 --- a/IEC61970_17v07/IEC61970/Base/OperationalLimits/OperationalLimitDirectionKind.h +++ /dev/null @@ -1,43 +0,0 @@ -/////////////////////////////////////////////////////////// -// OperationalLimitDirectionKind.h -// Implementation of the Class OperationalLimitDirectionKind -// Original author: kdd -/////////////////////////////////////////////////////////// - -#ifndef OPERATIONALLIMITDIRECTIONKIND_H -#define OPERATIONALLIMITDIRECTIONKIND_H - -namespace IEC61970 -{ - namespace Base - { - namespace OperationalLimits - { - /** - * The direction attribute describes the side of a limit that is a violation. - */ - enum class OperationalLimitDirectionKind - { - /** - * High means that a monitored value above the limit value is a violation. If - * applied to a terminal flow, the positive direction is into the terminal. - */ - _undef = -1, high, - /** - * Low means a monitored value below the limit is a violation. If applied to a - * terminal flow, the positive direction is into the terminal. - */ - low, - /** - * An absoluteValue limit means that a monitored absolute value above the limit - * value is a violation. - */ - absoluteValue - }; - - } - - } - -} -#endif // OPERATIONALLIMITDIRECTIONKIND_H diff --git a/IEC61970_17v07/IEC61970/Base/OperationalLimits/OperationalLimitSet.cpp b/IEC61970_17v07/IEC61970/Base/OperationalLimits/OperationalLimitSet.cpp deleted file mode 100644 index 6ef011d0c..000000000 --- a/IEC61970_17v07/IEC61970/Base/OperationalLimits/OperationalLimitSet.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// OperationalLimitSet.cpp -// Implementation of the Class OperationalLimitSet -// Original author: kdd -/////////////////////////////////////////////////////////// - -#include "OperationalLimitSet.h" - -using IEC61970::Base::OperationalLimits::OperationalLimitSet; - - -OperationalLimitSet::OperationalLimitSet() - : Equipment(nullptr), Terminal(nullptr) -{ - -} - - - -OperationalLimitSet::~OperationalLimitSet(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/OperationalLimits/OperationalLimitSet.h b/IEC61970_17v07/IEC61970/Base/OperationalLimits/OperationalLimitSet.h deleted file mode 100644 index 86f3b41d7..000000000 --- a/IEC61970_17v07/IEC61970/Base/OperationalLimits/OperationalLimitSet.h +++ /dev/null @@ -1,54 +0,0 @@ -/////////////////////////////////////////////////////////// -// OperationalLimitSet.h -// Implementation of the Class OperationalLimitSet -// Original author: kdd -/////////////////////////////////////////////////////////// - -#ifndef OPERATIONALLIMITSET_H -#define OPERATIONALLIMITSET_H - -#include - -#include "IEC61970/Base/OperationalLimits/OperationalLimit.h" -#include "IEC61970/Base/Core/Equipment.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" -#include "IEC61970/Base/Core/ACDCTerminal.h" - -namespace IEC61970 -{ - namespace Base - { - namespace OperationalLimits - { - /** - * A set of limits associated with equipment. Sets of limits might apply to a - * specific temperature, or season for example. A set of limits may contain - * different severities of limit levels that would apply to the same equipment. - * The set may contain limits of different types such as apparent power and - * current limits or high and low voltage limits that are logically applied - * together as a set. - */ - class OperationalLimitSet : public IEC61970::Base::Core::IdentifiedObject - { - - public: - OperationalLimitSet(); - virtual ~OperationalLimitSet(); - /** - * Values of equipment limits. - */ - std::list OperationalLimitValue; - /** - * The equipment to which the limit set applies. - */ - IEC61970::Base::Core::Equipment *Equipment; - IEC61970::Base::Core::ACDCTerminal *Terminal; - - }; - - } - - } - -} -#endif // OPERATIONALLIMITSET_H diff --git a/IEC61970_17v07/IEC61970/Base/OperationalLimits/OperationalLimitType.cpp b/IEC61970_17v07/IEC61970/Base/OperationalLimits/OperationalLimitType.cpp deleted file mode 100644 index 3ff513aae..000000000 --- a/IEC61970_17v07/IEC61970/Base/OperationalLimits/OperationalLimitType.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// OperationalLimitType.cpp -// Implementation of the Class OperationalLimitType -// Original author: kdd -/////////////////////////////////////////////////////////// - -#include "OperationalLimitType.h" - -using IEC61970::Base::OperationalLimits::OperationalLimitType; - - -OperationalLimitType::OperationalLimitType(){ - -} - - - -OperationalLimitType::~OperationalLimitType(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/OperationalLimits/OperationalLimitType.h b/IEC61970_17v07/IEC61970/Base/OperationalLimits/OperationalLimitType.h deleted file mode 100644 index 457ae3428..000000000 --- a/IEC61970_17v07/IEC61970/Base/OperationalLimits/OperationalLimitType.h +++ /dev/null @@ -1,48 +0,0 @@ -/////////////////////////////////////////////////////////// -// OperationalLimitType.h -// Implementation of the Class OperationalLimitType -// Original author: kdd -/////////////////////////////////////////////////////////// - -#ifndef OPERATIONALLIMITTYPE_H -#define OPERATIONALLIMITTYPE_H - -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/OperationalLimits/OperationalLimitDirectionKind.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Base - { - namespace OperationalLimits - { - /** - * The operational meaning of a category of limits. - */ - class OperationalLimitType : public IEC61970::Base::Core::IdentifiedObject - { - - public: - OperationalLimitType(); - virtual ~OperationalLimitType(); - /** - * The nominal acceptable duration of the limit. Limits are commonly expressed in - * terms of the a time limit for which the limit is normally acceptable. The - * actual acceptable duration of a specific limit may depend on other local - * factors such as temperature or wind speed. - */ - IEC61970::Base::Domain::Seconds acceptableDuration; - /** - * The direction of the limit. - */ - IEC61970::Base::OperationalLimits::OperationalLimitDirectionKind direction = IEC61970::Base::OperationalLimits::OperationalLimitDirectionKind::_undef; - - }; - - } - - } - -} -#endif // OPERATIONALLIMITTYPE_H diff --git a/IEC61970_17v07/IEC61970/Base/OperationalLimits/VoltageLimit.cpp b/IEC61970_17v07/IEC61970/Base/OperationalLimits/VoltageLimit.cpp deleted file mode 100644 index 44d81bd18..000000000 --- a/IEC61970_17v07/IEC61970/Base/OperationalLimits/VoltageLimit.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// VoltageLimit.cpp -// Implementation of the Class VoltageLimit -// Original author: kdd -/////////////////////////////////////////////////////////// - -#include "VoltageLimit.h" - -using IEC61970::Base::OperationalLimits::VoltageLimit; - - -VoltageLimit::VoltageLimit(){ - -} - - - -VoltageLimit::~VoltageLimit(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/OperationalLimits/VoltageLimit.h b/IEC61970_17v07/IEC61970/Base/OperationalLimits/VoltageLimit.h deleted file mode 100644 index 8323aea81..000000000 --- a/IEC61970_17v07/IEC61970/Base/OperationalLimits/VoltageLimit.h +++ /dev/null @@ -1,41 +0,0 @@ -/////////////////////////////////////////////////////////// -// VoltageLimit.h -// Implementation of the Class VoltageLimit -// Original author: kdd -/////////////////////////////////////////////////////////// - -#ifndef VOLTAGELIMIT_H -#define VOLTAGELIMIT_H - -#include "IEC61970/Base/Domain/Voltage.h" -#include "IEC61970/Base/OperationalLimits/OperationalLimit.h" - -namespace IEC61970 -{ - namespace Base - { - namespace OperationalLimits - { - /** - * Operational limit applied to voltage. - */ - class VoltageLimit : public IEC61970::Base::OperationalLimits::OperationalLimit - { - - public: - VoltageLimit(); - virtual ~VoltageLimit(); - /** - * Limit on voltage. High or low limit nature of the limit depends upon the - * properties of the operational limit type. - */ - IEC61970::Base::Domain::Voltage value; - - }; - - } - - } - -} -#endif // VOLTAGELIMIT_H diff --git a/IEC61970_17v07/IEC61970/Base/Protection/CurrentRelay.cpp b/IEC61970_17v07/IEC61970/Base/Protection/CurrentRelay.cpp deleted file mode 100644 index 6016706cc..000000000 --- a/IEC61970_17v07/IEC61970/Base/Protection/CurrentRelay.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// CurrentRelay.cpp -// Implementation of the Class CurrentRelay -/////////////////////////////////////////////////////////// - -#include "CurrentRelay.h" - -using IEC61970::Base::Protection::CurrentRelay; - - -CurrentRelay::CurrentRelay(){ - -} - - - -CurrentRelay::~CurrentRelay(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Protection/CurrentRelay.h b/IEC61970_17v07/IEC61970/Base/Protection/CurrentRelay.h deleted file mode 100644 index 5c6fd6cc3..000000000 --- a/IEC61970_17v07/IEC61970/Base/Protection/CurrentRelay.h +++ /dev/null @@ -1,66 +0,0 @@ -/////////////////////////////////////////////////////////// -// CurrentRelay.h -// Implementation of the Class CurrentRelay -/////////////////////////////////////////////////////////// - -#ifndef CURRENTRELAY_H -#define CURRENTRELAY_H - -#include "IEC61970/Base/Domain/CurrentFlow.h" -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Protection/ProtectionEquipment.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Protection - { - /** - * A device that checks current flow values in any direction or designated - * direction. - */ - class CurrentRelay : public IEC61970::Base::Protection::ProtectionEquipment - { - - public: - CurrentRelay(); - virtual ~CurrentRelay(); - /** - * Current limit number one 1 for inverse time pickup. - */ - IEC61970::Base::Domain::CurrentFlow currentLimit1; - /** - * Current limit number 2 for inverse time pickup. - */ - IEC61970::Base::Domain::CurrentFlow currentLimit2; - /** - * Current limit number 3 for inverse time pickup. - */ - IEC61970::Base::Domain::CurrentFlow currentLimit3; - /** - * Set true if the current relay has inverse time characteristic. - */ - IEC61970::Base::Domain::Boolean inverseTimeFlag; - /** - * Inverse time delay number 1 for current limit number 1. - */ - IEC61970::Base::Domain::Seconds timeDelay1; - /** - * Inverse time delay number 2 for current limit number 2. - */ - IEC61970::Base::Domain::Seconds timeDelay2; - /** - * Inverse time delay number 3 for current limit number 3. - */ - IEC61970::Base::Domain::Seconds timeDelay3; - - }; - - } - - } - -} -#endif // CURRENTRELAY_H diff --git a/IEC61970_17v07/IEC61970/Base/Protection/ProtectionEquipment.cpp b/IEC61970_17v07/IEC61970/Base/Protection/ProtectionEquipment.cpp deleted file mode 100644 index 42efcf45c..000000000 --- a/IEC61970_17v07/IEC61970/Base/Protection/ProtectionEquipment.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// ProtectionEquipment.cpp -// Implementation of the Class ProtectionEquipment -/////////////////////////////////////////////////////////// - -#include "ProtectionEquipment.h" - -using IEC61970::Base::Protection::ProtectionEquipment; - - -ProtectionEquipment::ProtectionEquipment(){ - -} - - - -ProtectionEquipment::~ProtectionEquipment(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Protection/ProtectionEquipment.h b/IEC61970_17v07/IEC61970/Base/Protection/ProtectionEquipment.h deleted file mode 100644 index 81ccb24e5..000000000 --- a/IEC61970_17v07/IEC61970/Base/Protection/ProtectionEquipment.h +++ /dev/null @@ -1,79 +0,0 @@ -/////////////////////////////////////////////////////////// -// ProtectionEquipment.h -// Implementation of the Class ProtectionEquipment -/////////////////////////////////////////////////////////// - -#ifndef PROTECTIONEQUIPMENT_H -#define PROTECTIONEQUIPMENT_H - -#include - -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Domain/UnitSymbol.h" -#include "IEC61970/Base/Wires/ProtectedSwitch.h" -#include "IEC61970/Base/Core/Equipment.h" -#include "IEC61970/Base/Core/ConductingEquipment.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Protection - { - /** - * An electrical device designed to respond to input conditions in a prescribed - * manner and after specified conditions are met to cause contact operation or - * similar abrupt change in associated electric control circuits, or simply to - * display the detected condition. Protection equipment are associated with - * conducting equipment and usually operate circuit breakers. - */ - class ProtectionEquipment : public IEC61970::Base::Core::Equipment - { - - public: - ProtectionEquipment(); - virtual ~ProtectionEquipment(); - /** - * The maximum allowable value. - */ - IEC61970::Base::Domain::Float highLimit; - /** - * The minimum allowable value. - */ - IEC61970::Base::Domain::Float lowLimit; - /** - * Direction same as positive active power flow value. - */ - IEC61970::Base::Domain::Boolean powerDirectionFlag; - /** - * The time delay from detection of abnormal conditions to relay operation. - */ - IEC61970::Base::Domain::Seconds relayDelayTime; - /** - * The unit multiplier of the value. - */ - IEC61970::Base::Domain::UnitMultiplier unitMultiplier = IEC61970::Base::Domain::UnitMultiplier::_undef; - /** - * The unit of measure of the value. - */ - IEC61970::Base::Domain::UnitSymbol unitSymbol = IEC61970::Base::Domain::UnitSymbol::_undef; - /** - * Protected switches operated by this ProtectionEquipment. - */ - std::list ProtectedSwitches; - /** - * Protection equipment may be used to protect specific conducting equipment. - */ - std::list ConductingEquipments; - - }; - - } - - } - -} -#endif // PROTECTIONEQUIPMENT_H diff --git a/IEC61970_17v07/IEC61970/Base/Protection/RecloseSequence.cpp b/IEC61970_17v07/IEC61970/Base/Protection/RecloseSequence.cpp deleted file mode 100644 index 625c0872f..000000000 --- a/IEC61970_17v07/IEC61970/Base/Protection/RecloseSequence.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// RecloseSequence.cpp -// Implementation of the Class RecloseSequence -/////////////////////////////////////////////////////////// - -#include "RecloseSequence.h" - -using IEC61970::Base::Protection::RecloseSequence; - - -RecloseSequence::RecloseSequence(){ - -} - - - -RecloseSequence::~RecloseSequence(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Protection/RecloseSequence.h b/IEC61970_17v07/IEC61970/Base/Protection/RecloseSequence.h deleted file mode 100644 index ff3fb245e..000000000 --- a/IEC61970_17v07/IEC61970/Base/Protection/RecloseSequence.h +++ /dev/null @@ -1,46 +0,0 @@ -/////////////////////////////////////////////////////////// -// RecloseSequence.h -// Implementation of the Class RecloseSequence -/////////////////////////////////////////////////////////// - -#ifndef RECLOSESEQUENCE_H -#define RECLOSESEQUENCE_H - -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Domain/Integer.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Protection - { - /** - * A reclose sequence (open and close) is defined for each possible reclosure of a - * breaker. - */ - class RecloseSequence : public IEC61970::Base::Core::IdentifiedObject - { - - public: - RecloseSequence(); - virtual ~RecloseSequence(); - /** - * Indicates the time lapse before the reclose step will execute a reclose. - */ - IEC61970::Base::Domain::Seconds recloseDelay; - /** - * Indicates the ordinal position of the reclose step relative to other steps in - * the sequence. - */ - IEC61970::Base::Domain::Integer recloseStep; - - }; - - } - - } - -} -#endif // RECLOSESEQUENCE_H diff --git a/IEC61970_17v07/IEC61970/Base/Protection/SynchrocheckRelay.cpp b/IEC61970_17v07/IEC61970/Base/Protection/SynchrocheckRelay.cpp deleted file mode 100644 index d4d4721fa..000000000 --- a/IEC61970_17v07/IEC61970/Base/Protection/SynchrocheckRelay.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// SynchrocheckRelay.cpp -// Implementation of the Class SynchrocheckRelay -/////////////////////////////////////////////////////////// - -#include "SynchrocheckRelay.h" - -using IEC61970::Base::Protection::SynchrocheckRelay; - - -SynchrocheckRelay::SynchrocheckRelay(){ - -} - - - -SynchrocheckRelay::~SynchrocheckRelay(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Protection/SynchrocheckRelay.h b/IEC61970_17v07/IEC61970/Base/Protection/SynchrocheckRelay.h deleted file mode 100644 index 4029d9eef..000000000 --- a/IEC61970_17v07/IEC61970/Base/Protection/SynchrocheckRelay.h +++ /dev/null @@ -1,53 +0,0 @@ -/////////////////////////////////////////////////////////// -// SynchrocheckRelay.h -// Implementation of the Class SynchrocheckRelay -/////////////////////////////////////////////////////////// - -#ifndef SYNCHROCHECKRELAY_H -#define SYNCHROCHECKRELAY_H - -#include "IEC61970/Base/Domain/AngleRadians.h" -#include "IEC61970/Base/Domain/Frequency.h" -#include "IEC61970/Base/Domain/Voltage.h" -#include "IEC61970/Base/Protection/ProtectionEquipment.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Protection - { - /** - * A device that operates when two AC circuits are within the desired limits of - * frequency, phase angle, and voltage, to permit or to cause the paralleling of - * these two circuits. Used to prevent the paralleling of non-synchronous - * topological islands. - */ - class SynchrocheckRelay : public IEC61970::Base::Protection::ProtectionEquipment - { - - public: - SynchrocheckRelay(); - virtual ~SynchrocheckRelay(); - /** - * The maximum allowable voltage vector phase angle difference across the open - * device. - */ - IEC61970::Base::Domain::AngleRadians maxAngleDiff; - /** - * The maximum allowable frequency difference across the open device. - */ - IEC61970::Base::Domain::Frequency maxFreqDiff; - /** - * The maximum allowable difference voltage across the open device. - */ - IEC61970::Base::Domain::Voltage maxVoltDiff; - - }; - - } - - } - -} -#endif // SYNCHROCHECKRELAY_H diff --git a/IEC61970_17v07/IEC61970/Base/SCADA/CommunicationLink.cpp b/IEC61970_17v07/IEC61970/Base/SCADA/CommunicationLink.cpp deleted file mode 100644 index be24fad21..000000000 --- a/IEC61970_17v07/IEC61970/Base/SCADA/CommunicationLink.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// CommunicationLink.cpp -// Implementation of the Class CommunicationLink -/////////////////////////////////////////////////////////// - -#include "CommunicationLink.h" - -using IEC61970::Base::SCADA::CommunicationLink; - - -CommunicationLink::CommunicationLink(){ - -} - - - -CommunicationLink::~CommunicationLink(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/SCADA/CommunicationLink.h b/IEC61970_17v07/IEC61970/Base/SCADA/CommunicationLink.h deleted file mode 100644 index 0ff75727e..000000000 --- a/IEC61970_17v07/IEC61970/Base/SCADA/CommunicationLink.h +++ /dev/null @@ -1,45 +0,0 @@ -/////////////////////////////////////////////////////////// -// CommunicationLink.h -// Implementation of the Class CommunicationLink -/////////////////////////////////////////////////////////// - -#ifndef COMMUNICATIONLINK_H -#define COMMUNICATIONLINK_H - -#include - -#include "IEC61970/Base/SCADA/RemoteUnit.h" -#include "IEC61970/Base/Core/PowerSystemResource.h" - -namespace IEC61970 -{ - namespace Base - { - namespace SCADA - { - /** - * The connection to remote units is through one or more communication links. - * Reduntant links may exist. The CommunicationLink class inherit - * PowerSystemResource. The intention is to allow CommunicationLinks to have - * Measurements. These Measurements can be used to model link status as - * operational, out of service, unit failure etc. - */ - class CommunicationLink : public IEC61970::Base::Core::PowerSystemResource - { - - public: - CommunicationLink(); - virtual ~CommunicationLink(); - /** - * RTUs may be attached to communication links. - */ - std::list RemoteUnits; - - }; - - } - - } - -} -#endif // COMMUNICATIONLINK_H diff --git a/IEC61970_17v07/IEC61970/Base/SCADA/RemoteControl.cpp b/IEC61970_17v07/IEC61970/Base/SCADA/RemoteControl.cpp deleted file mode 100644 index 6936d951d..000000000 --- a/IEC61970_17v07/IEC61970/Base/SCADA/RemoteControl.cpp +++ /dev/null @@ -1,21 +0,0 @@ -/////////////////////////////////////////////////////////// -// RemoteControl.cpp -// Implementation of the Class RemoteControl -/////////////////////////////////////////////////////////// - -#include "RemoteControl.h" - -using IEC61970::Base::SCADA::RemoteControl; - - -RemoteControl::RemoteControl() - : Control(nullptr) -{ - -} - - - -RemoteControl::~RemoteControl(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/SCADA/RemoteControl.h b/IEC61970_17v07/IEC61970/Base/SCADA/RemoteControl.h deleted file mode 100644 index a524a9290..000000000 --- a/IEC61970_17v07/IEC61970/Base/SCADA/RemoteControl.h +++ /dev/null @@ -1,54 +0,0 @@ -/////////////////////////////////////////////////////////// -// RemoteControl.h -// Implementation of the Class RemoteControl -/////////////////////////////////////////////////////////// - -#ifndef REMOTECONTROL_H -#define REMOTECONTROL_H - -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/SCADA/RemotePoint.h" -#include "IEC61970/Base/Meas/Control.h" - -namespace IEC61970 -{ - namespace Base - { - namespace SCADA - { - /** - * Remote controls are ouputs that are sent by the remote unit to actuators in the - * process. - */ - class RemoteControl : public IEC61970::Base::SCADA::RemotePoint - { - - public: - RemoteControl(); - virtual ~RemoteControl(); - /** - * The maximum set point value accepted by the remote control point. - */ - IEC61970::Base::Domain::Float actuatorMaximum; - /** - * The minimum set point value accepted by the remote control point. - */ - IEC61970::Base::Domain::Float actuatorMinimum; - /** - * Set to true if the actuator is remotely controlled. - */ - IEC61970::Base::Domain::Boolean remoteControlled; - /** - * The Control for the RemoteControl point. - */ - IEC61970::Base::Meas::Control *Control; - - }; - - } - - } - -} -#endif // REMOTECONTROL_H diff --git a/IEC61970_17v07/IEC61970/Base/SCADA/RemotePoint.cpp b/IEC61970_17v07/IEC61970/Base/SCADA/RemotePoint.cpp deleted file mode 100644 index 15b82aa90..000000000 --- a/IEC61970_17v07/IEC61970/Base/SCADA/RemotePoint.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// RemotePoint.cpp -// Implementation of the Class RemotePoint -/////////////////////////////////////////////////////////// - -#include "RemotePoint.h" - -using IEC61970::Base::SCADA::RemotePoint; - - -RemotePoint::RemotePoint(){ - -} - - - -RemotePoint::~RemotePoint(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/SCADA/RemotePoint.h b/IEC61970_17v07/IEC61970/Base/SCADA/RemotePoint.h deleted file mode 100644 index bdca4c2fc..000000000 --- a/IEC61970_17v07/IEC61970/Base/SCADA/RemotePoint.h +++ /dev/null @@ -1,35 +0,0 @@ -/////////////////////////////////////////////////////////// -// RemotePoint.h -// Implementation of the Class RemotePoint -/////////////////////////////////////////////////////////// - -#ifndef REMOTEPOINT_H -#define REMOTEPOINT_H - -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Base - { - namespace SCADA - { - /** - * For a RTU remote points correspond to telemetered values or control outputs. - * Other units (e.g. control centers) usually also contain calculated values. - */ - class RemotePoint : public IEC61970::Base::Core::IdentifiedObject - { - - public: - RemotePoint(); - virtual ~RemotePoint(); - - }; - - } - - } - -} -#endif // REMOTEPOINT_H diff --git a/IEC61970_17v07/IEC61970/Base/SCADA/RemoteSource.cpp b/IEC61970_17v07/IEC61970/Base/SCADA/RemoteSource.cpp deleted file mode 100644 index d97fb1827..000000000 --- a/IEC61970_17v07/IEC61970/Base/SCADA/RemoteSource.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// RemoteSource.cpp -// Implementation of the Class RemoteSource -/////////////////////////////////////////////////////////// - -#include "RemoteSource.h" - -using IEC61970::Base::SCADA::RemoteSource; - - -RemoteSource::RemoteSource(){ - -} - - - -RemoteSource::~RemoteSource(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/SCADA/RemoteSource.h b/IEC61970_17v07/IEC61970/Base/SCADA/RemoteSource.h deleted file mode 100644 index 21c4f4d4f..000000000 --- a/IEC61970_17v07/IEC61970/Base/SCADA/RemoteSource.h +++ /dev/null @@ -1,53 +0,0 @@ -/////////////////////////////////////////////////////////// -// RemoteSource.h -// Implementation of the Class RemoteSource -/////////////////////////////////////////////////////////// - -#ifndef REMOTESOURCE_H -#define REMOTESOURCE_H - -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/SCADA/RemotePoint.h" - -namespace IEC61970 -{ - namespace Base - { - namespace SCADA - { - /** - * Remote sources are state variables that are telemetered or calculated within - * the remote unit. - */ - class RemoteSource : public IEC61970::Base::SCADA::RemotePoint - { - - public: - RemoteSource(); - virtual ~RemoteSource(); - /** - * The smallest change in value to be reported. - */ - IEC61970::Base::Domain::Float deadband; - /** - * The time interval between scans. - */ - IEC61970::Base::Domain::Seconds scanInterval; - /** - * The maximum value the telemetry item can return. - */ - IEC61970::Base::Domain::Float sensorMaximum; - /** - * The minimum value the telemetry item can return. - */ - IEC61970::Base::Domain::Float sensorMinimum; - - }; - - } - - } - -} -#endif // REMOTESOURCE_H diff --git a/IEC61970_17v07/IEC61970/Base/SCADA/RemoteUnit.cpp b/IEC61970_17v07/IEC61970/Base/SCADA/RemoteUnit.cpp deleted file mode 100644 index 60ef97173..000000000 --- a/IEC61970_17v07/IEC61970/Base/SCADA/RemoteUnit.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// RemoteUnit.cpp -// Implementation of the Class RemoteUnit -/////////////////////////////////////////////////////////// - -#include "RemoteUnit.h" - -using IEC61970::Base::SCADA::RemoteUnit; - - -RemoteUnit::RemoteUnit(){ - -} - - - -RemoteUnit::~RemoteUnit(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/SCADA/RemoteUnit.h b/IEC61970_17v07/IEC61970/Base/SCADA/RemoteUnit.h deleted file mode 100644 index d7862346d..000000000 --- a/IEC61970_17v07/IEC61970/Base/SCADA/RemoteUnit.h +++ /dev/null @@ -1,52 +0,0 @@ -/////////////////////////////////////////////////////////// -// RemoteUnit.h -// Implementation of the Class RemoteUnit -/////////////////////////////////////////////////////////// - -#ifndef REMOTEUNIT_H -#define REMOTEUNIT_H - -#include - -#include "IEC61970/Base/SCADA/RemoteUnitType.h" -#include "IEC61970/Base/SCADA/RemotePoint.h" -#include "IEC61970/Base/Core/PowerSystemResource.h" - -namespace IEC61970 -{ - namespace Base - { - namespace SCADA - { - /** - * A remote unit can be a RTU, IED, substation control system, control center etc. - * The communication with the remote unit can be through various standard - * protocols (e.g. IEC 61870, IEC 61850) or non standard protocols (e.g. DNP, - * RP570 etc.). A remote unit contain remote data points that might be telemetered, - * collected or calculated. The RemoteUnit class inherit PowerSystemResource. The - * intention is to allow RemotUnits to have Measurements. These Measurements can - * be used to model unit status as operational, out of service, unit failure etc. - */ - class RemoteUnit : public IEC61970::Base::Core::PowerSystemResource - { - - public: - RemoteUnit(); - virtual ~RemoteUnit(); - /** - * Type of remote unit. - */ - IEC61970::Base::SCADA::RemoteUnitType remoteUnitType = IEC61970::Base::SCADA::RemoteUnitType::_undef; - /** - * Remote points this Remote unit contains. - */ - std::list RemotePoints; - - }; - - } - - } - -} -#endif // REMOTEUNIT_H diff --git a/IEC61970_17v07/IEC61970/Base/SCADA/RemoteUnitType.h b/IEC61970_17v07/IEC61970/Base/SCADA/RemoteUnitType.h deleted file mode 100644 index ab7aeb9c5..000000000 --- a/IEC61970_17v07/IEC61970/Base/SCADA/RemoteUnitType.h +++ /dev/null @@ -1,43 +0,0 @@ -/////////////////////////////////////////////////////////// -// RemoteUnitType.h -// Implementation of the Class RemoteUnitType -/////////////////////////////////////////////////////////// - -#ifndef REMOTEUNITTYPE_H -#define REMOTEUNITTYPE_H - -namespace IEC61970 -{ - namespace Base - { - namespace SCADA - { - /** - * Type of remote unit. - */ - enum class RemoteUnitType - { - /** - * Remote terminal unit. - */ - _undef = -1, RTU, - /** - * Substation control system. - */ - SubstationControlSystem, - /** - * Control center. - */ - ControlCenter, - /** - * Intelligent electronic device (IED). - */ - IED - }; - - } - - } - -} -#endif // REMOTEUNITTYPE_H diff --git a/IEC61970_17v07/IEC61970/Base/SCADA/Source.h b/IEC61970_17v07/IEC61970/Base/SCADA/Source.h deleted file mode 100644 index c99ec13e9..000000000 --- a/IEC61970_17v07/IEC61970/Base/SCADA/Source.h +++ /dev/null @@ -1,40 +0,0 @@ -/////////////////////////////////////////////////////////// -// Source.h -// Implementation of the Class Source -/////////////////////////////////////////////////////////// - -#ifndef SOURCE_H -#define SOURCE_H - -namespace IEC61970 -{ - namespace Base - { - namespace SCADA - { - /** - * Source gives information related to the origin of a value. - */ - enum class Source - { - /** - * The value is provided by input from the process I/O or being calculated from - * some function. - */ - _undef = -1, PROCESS, - /** - * The value contains a default value. - */ - DEFAULTED, - /** - * The value is provided by input of an operator or by an automatic source. - */ - SUBSTITUTED - }; - - } - - } - -} -#endif // SOURCE_H diff --git a/IEC61970_17v07/IEC61970/Base/StateVariables/StateVariable.cpp b/IEC61970_17v07/IEC61970/Base/StateVariables/StateVariable.cpp deleted file mode 100644 index fb2c286f2..000000000 --- a/IEC61970_17v07/IEC61970/Base/StateVariables/StateVariable.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// StateVariable.cpp -// Implementation of the Class StateVariable -// Original author: kdd -/////////////////////////////////////////////////////////// - -#include "StateVariable.h" - -using IEC61970::Base::StateVariables::StateVariable; - - -StateVariable::StateVariable(){ - -} - - - -StateVariable::~StateVariable(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/StateVariables/StateVariable.h b/IEC61970_17v07/IEC61970/Base/StateVariables/StateVariable.h deleted file mode 100644 index 9dfa7c417..000000000 --- a/IEC61970_17v07/IEC61970/Base/StateVariables/StateVariable.h +++ /dev/null @@ -1,34 +0,0 @@ -/////////////////////////////////////////////////////////// -// StateVariable.h -// Implementation of the Class StateVariable -// Original author: kdd -/////////////////////////////////////////////////////////// - -#ifndef STATEVARIABLE_H -#define STATEVARIABLE_H -#include "BaseClass.h" - -namespace IEC61970 -{ - namespace Base - { - namespace StateVariables - { - /** - * An abstract class for state variables. - */ - class StateVariable : public BaseClass - { - - public: - StateVariable(); - virtual ~StateVariable(); - - }; - - } - - } - -} -#endif // STATEVARIABLE_H diff --git a/IEC61970_17v07/IEC61970/Base/StateVariables/SvInjection.cpp b/IEC61970_17v07/IEC61970/Base/StateVariables/SvInjection.cpp deleted file mode 100644 index 43611a9e7..000000000 --- a/IEC61970_17v07/IEC61970/Base/StateVariables/SvInjection.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// SvInjection.cpp -// Implementation of the Class SvInjection -// Original author: kdd -/////////////////////////////////////////////////////////// - -#include "SvInjection.h" - -using IEC61970::Base::StateVariables::SvInjection; - - -SvInjection::SvInjection() - : TopologicalNode(nullptr) -{ - -} - - - -SvInjection::~SvInjection(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/StateVariables/SvInjection.h b/IEC61970_17v07/IEC61970/Base/StateVariables/SvInjection.h deleted file mode 100644 index 3b1294d32..000000000 --- a/IEC61970_17v07/IEC61970/Base/StateVariables/SvInjection.h +++ /dev/null @@ -1,62 +0,0 @@ -/////////////////////////////////////////////////////////// -// SvInjection.h -// Implementation of the Class SvInjection -// Original author: kdd -/////////////////////////////////////////////////////////// - -#ifndef SVINJECTION_H -#define SVINJECTION_H - -#include "IEC61970/Base/Wires/SinglePhaseKind.h" -#include "IEC61970/Base/Domain/ActivePower.h" -#include "IEC61970/Base/Domain/ReactivePower.h" -#include "IEC61970/Base/StateVariables/StateVariable.h" -#include "IEC61970/Base/Topology/TopologicalNode.h" - -namespace IEC61970 -{ - namespace Base - { - namespace StateVariables - { - /** - * The SvInjection is reporting the calculated bus injection minus the sum of the - * terminal flows. The terminal flow is positive out from the bus (load sign - * convention) and bus injection has positive flow into the bus. SvInjection may - * have the remainder after state estimation or slack after power flow calculation. - */ - class SvInjection : public IEC61970::Base::StateVariables::StateVariable - { - - public: - SvInjection(); - virtual ~SvInjection(); - /** - * The terminal phase at which the connection is applied. If missing, the - * injection is assumed to be balanced among non-neutral phases. - */ - IEC61970::Base::Wires::SinglePhaseKind phase = IEC61970::Base::Wires::SinglePhaseKind::_undef; - /** - * The active power injected into the bus in addition to injections from equipment - * terminals. Positive sign means injection into the TopologicalNode (bus). - */ - IEC61970::Base::Domain::ActivePower pInjection; - /** - * The reactive power injected into the bus in addition to injections from - * equipment terminals. Positive sign means injection into the TopologicalNode - * (bus). - */ - IEC61970::Base::Domain::ReactivePower qInjection; - /** - * The topological node associated with the flow injection state variable. - */ - IEC61970::Base::Topology::TopologicalNode *TopologicalNode; - - }; - - } - - } - -} -#endif // SVINJECTION_H diff --git a/IEC61970_17v07/IEC61970/Base/StateVariables/SvPowerFlow.cpp b/IEC61970_17v07/IEC61970/Base/StateVariables/SvPowerFlow.cpp deleted file mode 100644 index fe7b9872e..000000000 --- a/IEC61970_17v07/IEC61970/Base/StateVariables/SvPowerFlow.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// SvPowerFlow.cpp -// Implementation of the Class SvPowerFlow -// Original author: kdd -/////////////////////////////////////////////////////////// - -#include "SvPowerFlow.h" - -using IEC61970::Base::StateVariables::SvPowerFlow; - - -SvPowerFlow::SvPowerFlow() - : Terminal(nullptr) -{ - -} - - - -SvPowerFlow::~SvPowerFlow(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/StateVariables/SvPowerFlow.h b/IEC61970_17v07/IEC61970/Base/StateVariables/SvPowerFlow.h deleted file mode 100644 index 43dbe918e..000000000 --- a/IEC61970_17v07/IEC61970/Base/StateVariables/SvPowerFlow.h +++ /dev/null @@ -1,59 +0,0 @@ -/////////////////////////////////////////////////////////// -// SvPowerFlow.h -// Implementation of the Class SvPowerFlow -// Original author: kdd -/////////////////////////////////////////////////////////// - -#ifndef SVPOWERFLOW_H -#define SVPOWERFLOW_H - -#include "IEC61970/Base/Domain/ActivePower.h" -#include "IEC61970/Base/Wires/SinglePhaseKind.h" -#include "IEC61970/Base/Domain/ReactivePower.h" -#include "IEC61970/Base/StateVariables/StateVariable.h" -#include "IEC61970/Base/Core/Terminal.h" - -namespace IEC61970 -{ - namespace Base - { - namespace StateVariables - { - /** - * State variable for power flow. Load convention is used for flow direction. This - * means flow out from the TopologicalNode into the equipment is positive. - */ - class SvPowerFlow : public IEC61970::Base::StateVariables::StateVariable - { - - public: - SvPowerFlow(); - virtual ~SvPowerFlow(); - /** - * The active power flow. Load sign convention is used, i.e. positive sign means - * flow out from a TopologicalNode (bus) into the conducting equipment. - */ - IEC61970::Base::Domain::ActivePower p; - /** - * The individual phase of the flow. If unspecified, then assumed to be balanced - * among phases. - */ - IEC61970::Base::Wires::SinglePhaseKind phase = IEC61970::Base::Wires::SinglePhaseKind::_undef; - /** - * The reactive power flow. Load sign convention is used, i.e. positive sign means - * flow out from a TopologicalNode (bus) into the conducting equipment. - */ - IEC61970::Base::Domain::ReactivePower q; - /** - * The terminal associated with the power flow state variable. - */ - IEC61970::Base::Core::Terminal *Terminal; - - }; - - } - - } - -} -#endif // SVPOWERFLOW_H diff --git a/IEC61970_17v07/IEC61970/Base/StateVariables/SvShuntCompensatorSections.cpp b/IEC61970_17v07/IEC61970/Base/StateVariables/SvShuntCompensatorSections.cpp deleted file mode 100644 index 971346ef2..000000000 --- a/IEC61970_17v07/IEC61970/Base/StateVariables/SvShuntCompensatorSections.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// SvShuntCompensatorSections.cpp -// Implementation of the Class SvShuntCompensatorSections -// Original author: kdd -/////////////////////////////////////////////////////////// - -#include "SvShuntCompensatorSections.h" - -using IEC61970::Base::StateVariables::SvShuntCompensatorSections; - - -SvShuntCompensatorSections::SvShuntCompensatorSections() - : ShuntCompensator(nullptr) -{ - -} - - - -SvShuntCompensatorSections::~SvShuntCompensatorSections(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/StateVariables/SvShuntCompensatorSections.h b/IEC61970_17v07/IEC61970/Base/StateVariables/SvShuntCompensatorSections.h deleted file mode 100644 index b33cefd04..000000000 --- a/IEC61970_17v07/IEC61970/Base/StateVariables/SvShuntCompensatorSections.h +++ /dev/null @@ -1,46 +0,0 @@ -/////////////////////////////////////////////////////////// -// SvShuntCompensatorSections.h -// Implementation of the Class SvShuntCompensatorSections -// Original author: kdd -/////////////////////////////////////////////////////////// - -#ifndef SVSHUNTCOMPENSATORSECTIONS_H -#define SVSHUNTCOMPENSATORSECTIONS_H - -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/StateVariables/StateVariable.h" -#include "IEC61970/Base/Wires/ShuntCompensator.h" - -namespace IEC61970 -{ - namespace Base - { - namespace StateVariables - { - /** - * State variable for the number of sections in service for a shunt compensator. - */ - class SvShuntCompensatorSections : public IEC61970::Base::StateVariables::StateVariable - { - - public: - SvShuntCompensatorSections(); - virtual ~SvShuntCompensatorSections(); - /** - * The number of sections in service as a continous variable. To get integer value - * scale with ShuntCompensator.bPerSection. - */ - IEC61970::Base::Domain::Float sections; - /** - * The shunt compensator for which the state applies. - */ - IEC61970::Base::Wires::ShuntCompensator *ShuntCompensator; - - }; - - } - - } - -} -#endif // SVSHUNTCOMPENSATORSECTIONS_H diff --git a/IEC61970_17v07/IEC61970/Base/StateVariables/SvStatus.cpp b/IEC61970_17v07/IEC61970/Base/StateVariables/SvStatus.cpp deleted file mode 100644 index 96537e5a3..000000000 --- a/IEC61970_17v07/IEC61970/Base/StateVariables/SvStatus.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// SvStatus.cpp -// Implementation of the Class SvStatus -// Original author: kdd -/////////////////////////////////////////////////////////// - -#include "SvStatus.h" - -using IEC61970::Base::StateVariables::SvStatus; - - -SvStatus::SvStatus() - : ConductingEquipment(nullptr) -{ - -} - - - -SvStatus::~SvStatus(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/StateVariables/SvStatus.h b/IEC61970_17v07/IEC61970/Base/StateVariables/SvStatus.h deleted file mode 100644 index 0eb718204..000000000 --- a/IEC61970_17v07/IEC61970/Base/StateVariables/SvStatus.h +++ /dev/null @@ -1,51 +0,0 @@ -/////////////////////////////////////////////////////////// -// SvStatus.h -// Implementation of the Class SvStatus -// Original author: kdd -/////////////////////////////////////////////////////////// - -#ifndef SVSTATUS_H -#define SVSTATUS_H - -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Wires/SinglePhaseKind.h" -#include "IEC61970/Base/StateVariables/StateVariable.h" -#include "IEC61970/Base/Core/ConductingEquipment.h" - -namespace IEC61970 -{ - namespace Base - { - namespace StateVariables - { - /** - * State variable for status. - */ - class SvStatus : public IEC61970::Base::StateVariables::StateVariable - { - - public: - SvStatus(); - virtual ~SvStatus(); - /** - * The in service status as a result of topology processing. - */ - IEC61970::Base::Domain::Boolean inService; - /** - * The individual phase status. If the attribute is unspecified, then three - * phase model is assumed. - */ - IEC61970::Base::Wires::SinglePhaseKind phase = IEC61970::Base::Wires::SinglePhaseKind::_undef; - /** - * The conducting equipment associated with the status state variable. - */ - IEC61970::Base::Core::ConductingEquipment *ConductingEquipment; - - }; - - } - - } - -} -#endif // SVSTATUS_H diff --git a/IEC61970_17v07/IEC61970/Base/StateVariables/SvTapStep.cpp b/IEC61970_17v07/IEC61970/Base/StateVariables/SvTapStep.cpp deleted file mode 100644 index 9a53be6f9..000000000 --- a/IEC61970_17v07/IEC61970/Base/StateVariables/SvTapStep.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// SvTapStep.cpp -// Implementation of the Class SvTapStep -// Original author: kdd -/////////////////////////////////////////////////////////// - -#include "SvTapStep.h" - -using IEC61970::Base::StateVariables::SvTapStep; - - -SvTapStep::SvTapStep() - : TapChanger(nullptr) -{ - -} - - - -SvTapStep::~SvTapStep(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/StateVariables/SvTapStep.h b/IEC61970_17v07/IEC61970/Base/StateVariables/SvTapStep.h deleted file mode 100644 index 87ddf7f0b..000000000 --- a/IEC61970_17v07/IEC61970/Base/StateVariables/SvTapStep.h +++ /dev/null @@ -1,48 +0,0 @@ -/////////////////////////////////////////////////////////// -// SvTapStep.h -// Implementation of the Class SvTapStep -// Original author: kdd -/////////////////////////////////////////////////////////// - -#ifndef SVTAPSTEP_H -#define SVTAPSTEP_H - -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/StateVariables/StateVariable.h" -#include "IEC61970/Base/Wires/TapChanger.h" - -namespace IEC61970 -{ - namespace Base - { - namespace StateVariables - { - /** - * State variable for transformer tap step. This class is to be used for taps - * of LTC (load tap changing) transformers, not fixed tap transformers. - */ - class SvTapStep : public IEC61970::Base::StateVariables::StateVariable - { - - public: - SvTapStep(); - virtual ~SvTapStep(); - /** - * The floating point tap position. This is not the tap ratio, but rather the - * tap step position as defined by the related tap changer model and normally is - * constrained to be within the range of minimum and maximum tap positions. - */ - IEC61970::Base::Domain::Float position; - /** - * The tap changer associated with the tap step state. - */ - IEC61970::Base::Wires::TapChanger *TapChanger; - - }; - - } - - } - -} -#endif // SVTAPSTEP_H diff --git a/IEC61970_17v07/IEC61970/Base/StateVariables/SvVoltage.cpp b/IEC61970_17v07/IEC61970/Base/StateVariables/SvVoltage.cpp deleted file mode 100644 index 76e7bdea7..000000000 --- a/IEC61970_17v07/IEC61970/Base/StateVariables/SvVoltage.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// SvVoltage.cpp -// Implementation of the Class SvVoltage -// Original author: kdd -/////////////////////////////////////////////////////////// - -#include "SvVoltage.h" - -using IEC61970::Base::StateVariables::SvVoltage; - - -SvVoltage::SvVoltage() - : TopologicalNode(nullptr) -{ - -} - - - -SvVoltage::~SvVoltage(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/StateVariables/SvVoltage.h b/IEC61970_17v07/IEC61970/Base/StateVariables/SvVoltage.h deleted file mode 100644 index f0f2de950..000000000 --- a/IEC61970_17v07/IEC61970/Base/StateVariables/SvVoltage.h +++ /dev/null @@ -1,57 +0,0 @@ -/////////////////////////////////////////////////////////// -// SvVoltage.h -// Implementation of the Class SvVoltage -// Original author: kdd -/////////////////////////////////////////////////////////// - -#ifndef SVVOLTAGE_H -#define SVVOLTAGE_H - -#include "IEC61970/Base/Domain/AngleDegrees.h" -#include "IEC61970/Base/Wires/SinglePhaseKind.h" -#include "IEC61970/Base/Domain/Voltage.h" -#include "IEC61970/Base/StateVariables/StateVariable.h" -#include "IEC61970/Base/Topology/TopologicalNode.h" - -namespace IEC61970 -{ - namespace Base - { - namespace StateVariables - { - /** - * State variable for voltage. - */ - class SvVoltage : public IEC61970::Base::StateVariables::StateVariable - { - - public: - SvVoltage(); - virtual ~SvVoltage(); - /** - * The voltage angle of the topological node complex voltage with respect to - * system reference. - */ - IEC61970::Base::Domain::AngleDegrees angle; - /** - * If specified the voltage is the line to ground voltage of the individual phase. - * If unspecified, then the voltage is assumed balanced. - */ - IEC61970::Base::Wires::SinglePhaseKind phase = IEC61970::Base::Wires::SinglePhaseKind::_undef; - /** - * The voltage magnitude at the topological node. - */ - IEC61970::Base::Domain::Voltage v; - /** - * The topological node associated with the voltage state. - */ - IEC61970::Base::Topology::TopologicalNode *TopologicalNode; - - }; - - } - - } - -} -#endif // SVVOLTAGE_H diff --git a/IEC61970_17v07/IEC61970/Base/Topology/BusNameMarker.cpp b/IEC61970_17v07/IEC61970/Base/Topology/BusNameMarker.cpp deleted file mode 100644 index 6aae85c75..000000000 --- a/IEC61970_17v07/IEC61970/Base/Topology/BusNameMarker.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// BusNameMarker.cpp -// Implementation of the Class BusNameMarker -// Original author: kdd -/////////////////////////////////////////////////////////// - -#include "BusNameMarker.h" - -using IEC61970::Base::Topology::BusNameMarker; - - -BusNameMarker::BusNameMarker() - : ReportingGroup(nullptr) -{ - -} - - - -BusNameMarker::~BusNameMarker(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Topology/BusNameMarker.h b/IEC61970_17v07/IEC61970/Base/Topology/BusNameMarker.h deleted file mode 100644 index 9cee8e15c..000000000 --- a/IEC61970_17v07/IEC61970/Base/Topology/BusNameMarker.h +++ /dev/null @@ -1,60 +0,0 @@ -/////////////////////////////////////////////////////////// -// BusNameMarker.h -// Implementation of the Class BusNameMarker -// Original author: kdd -/////////////////////////////////////////////////////////// - -#ifndef BUSNAMEMARKER_H -#define BUSNAMEMARKER_H - -#include - -#include "IEC61970/Base/Domain/Integer.h" -#include "IEC61970/Base/Core/ReportingGroup.h" -#include "IEC61970/Base/Core/ACDCTerminal.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Topology - { - /** - * Used to apply user standard names to topology buses. Typically used for - * "bus/branch" case generation. Associated with one or more terminals that are - * normally connected with the bus name. The associated terminals are normally - * connected by non-retained switches. For a ring bus station configuration, all - * busbar terminals in the ring are typically associated. For a breaker and a - * half scheme, both busbars would normally be associated. For a ring bus, all - * busbars would normally be associated. For a "straight" busbar configuration, - * normally only the main terminal at the busbar would be associated. - */ - class BusNameMarker : public IEC61970::Base::Core::IdentifiedObject - { - - public: - BusNameMarker(); - virtual ~BusNameMarker(); - /** - * Priority of bus name marker for use as topology bus name. Use 0 for don t care. - * Use 1 for highest priority. Use 2 as priority is less than 1 and so on. - */ - IEC61970::Base::Domain::Integer priority; - /** - * The reporting group to which this bus name marker belongs. - */ - IEC61970::Base::Core::ReportingGroup *ReportingGroup; - /** - * The terminals associated with this bus name marker. - */ - std::list Terminal; - - }; - - } - - } - -} -#endif // BUSNAMEMARKER_H diff --git a/IEC61970_17v07/IEC61970/Base/Topology/DCTopologicalNode.cpp b/IEC61970_17v07/IEC61970/Base/Topology/DCTopologicalNode.cpp deleted file mode 100644 index 300d21c81..000000000 --- a/IEC61970_17v07/IEC61970/Base/Topology/DCTopologicalNode.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// DCTopologicalNode.cpp -// Implementation of the Class DCTopologicalNode -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#include "DCTopologicalNode.h" - -using IEC61970::Base::Topology::DCTopologicalNode; - - -DCTopologicalNode::DCTopologicalNode(){ - -} - - - -DCTopologicalNode::~DCTopologicalNode(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Topology/DCTopologicalNode.h b/IEC61970_17v07/IEC61970/Base/Topology/DCTopologicalNode.h deleted file mode 100644 index b97d81d3c..000000000 --- a/IEC61970_17v07/IEC61970/Base/Topology/DCTopologicalNode.h +++ /dev/null @@ -1,35 +0,0 @@ -/////////////////////////////////////////////////////////// -// DCTopologicalNode.h -// Implementation of the Class DCTopologicalNode -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#ifndef DCTOPOLOGICALNODE_H -#define DCTOPOLOGICALNODE_H - -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Topology - { - /** - * DC bus. - */ - class DCTopologicalNode : public IEC61970::Base::Core::IdentifiedObject - { - - public: - DCTopologicalNode(); - virtual ~DCTopologicalNode(); - - }; - - } - - } - -} -#endif // DCTOPOLOGICALNODE_H diff --git a/IEC61970_17v07/IEC61970/Base/Topology/TopologicalIsland.cpp b/IEC61970_17v07/IEC61970/Base/Topology/TopologicalIsland.cpp deleted file mode 100644 index 4810b6f82..000000000 --- a/IEC61970_17v07/IEC61970/Base/Topology/TopologicalIsland.cpp +++ /dev/null @@ -1,21 +0,0 @@ -/////////////////////////////////////////////////////////// -// TopologicalIsland.cpp -// Implementation of the Class TopologicalIsland -/////////////////////////////////////////////////////////// - -#include "TopologicalIsland.h" - -using IEC61970::Base::Topology::TopologicalIsland; - - -TopologicalIsland::TopologicalIsland() - : AngleRefTopologicalNode(nullptr) -{ - -} - - - -TopologicalIsland::~TopologicalIsland(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Topology/TopologicalIsland.h b/IEC61970_17v07/IEC61970/Base/Topology/TopologicalIsland.h deleted file mode 100644 index b9421badc..000000000 --- a/IEC61970_17v07/IEC61970/Base/Topology/TopologicalIsland.h +++ /dev/null @@ -1,50 +0,0 @@ -/////////////////////////////////////////////////////////// -// TopologicalIsland.h -// Implementation of the Class TopologicalIsland -/////////////////////////////////////////////////////////// - -#ifndef TOPOLOGICALISLAND_H -#define TOPOLOGICALISLAND_H - -#include - -#include "IEC61970/Base/Topology/TopologicalNode.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Topology - { - /** - * An electrically connected subset of the network. Topological islands can change - * as the current network state changes: e.g. due to - * - disconnect switches or breakers change state in a SCADA/EMS - * - manual creation, change or deletion of topological nodes in a planning tool. - */ - class TopologicalIsland : public IEC61970::Base::Core::IdentifiedObject - { - - public: - TopologicalIsland(); - virtual ~TopologicalIsland(); - /** - * A topological node belongs to a topological island. - */ - std::list TopologicalNodes; - /** - * The angle reference for the island. Normally there is one TopologicalNode - * that is selected as the angle reference for each island. Other reference - * schemes exist, so the association is typically optional. - */ - IEC61970::Base::Topology::TopologicalNode *AngleRefTopologicalNode; - - }; - - } - - } - -} -#endif // TOPOLOGICALISLAND_H diff --git a/IEC61970_17v07/IEC61970/Base/Topology/TopologicalNode.cpp b/IEC61970_17v07/IEC61970/Base/Topology/TopologicalNode.cpp deleted file mode 100644 index 856d8c49e..000000000 --- a/IEC61970_17v07/IEC61970/Base/Topology/TopologicalNode.cpp +++ /dev/null @@ -1,21 +0,0 @@ -/////////////////////////////////////////////////////////// -// TopologicalNode.cpp -// Implementation of the Class TopologicalNode -/////////////////////////////////////////////////////////// - -#include "TopologicalNode.h" - -using IEC61970::Base::Topology::TopologicalNode; - - -TopologicalNode::TopologicalNode() - : ReportingGroup(nullptr), ConnectivityNodeContainer(nullptr), BaseVoltage(nullptr) -{ - -} - - - -TopologicalNode::~TopologicalNode(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Topology/TopologicalNode.h b/IEC61970_17v07/IEC61970/Base/Topology/TopologicalNode.h deleted file mode 100644 index 4af023458..000000000 --- a/IEC61970_17v07/IEC61970/Base/Topology/TopologicalNode.h +++ /dev/null @@ -1,88 +0,0 @@ -/////////////////////////////////////////////////////////// -// TopologicalNode.h -// Implementation of the Class TopologicalNode -/////////////////////////////////////////////////////////// - -#ifndef TOPOLOGICALNODE_H -#define TOPOLOGICALNODE_H - -#include - -#include "IEC61970/Base/Domain/ActivePower.h" -#include "IEC61970/Base/Domain/ReactivePower.h" -#include "IEC61970/Base/Core/ReportingGroup.h" -#include "IEC61970/Base/Core/ConnectivityNodeContainer.h" -#include "IEC61970/Base/Core/ConnectivityNode.h" -#include "IEC61970/Base/Core/BaseVoltage.h" -#include "IEC61970/Base/Core/Terminal.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Topology - { - /** - * For a detailed substation model a topological node is a set of connectivity - * nodes that, in the current network state, are connected together through any - * type of closed switches, including jumpers. Topological nodes change as the - * current network state changes (i.e., switches, breakers, etc. change state). - * For a planning model, switch statuses are not used to form topological nodes. - * Instead they are manually created or deleted in a model builder tool. - * Topological nodes maintained this way are also called "busses". - */ - class TopologicalNode : public IEC61970::Base::Core::IdentifiedObject - { - - public: - TopologicalNode(); - virtual ~TopologicalNode(); - /** - * The active power injected into the bus at this location in addition to - * injections from equipment. Positive sign means injection into the - * TopologicalNode (bus). - * Starting value for a steady state solution. - */ - IEC61970::Base::Domain::ActivePower pInjection; - /** - * The reactive power injected into the bus at this location in addition to - * injections from equipment. Positive sign means injection into the - * TopologicalNode (bus). - * Starting value for a steady state solution. - */ - IEC61970::Base::Domain::ReactivePower qInjection; - /** - * The reporting group to which the topological node belongs. - */ - IEC61970::Base::Core::ReportingGroup *ReportingGroup; - /** - * The connectivity node container to which the toplogical node belongs. - */ - IEC61970::Base::Core::ConnectivityNodeContainer *ConnectivityNodeContainer; - /** - * The connectivity nodes combine together to form this topological node. May - * depend on the current state of switches in the network. - */ - std::list ConnectivityNodes; - /** - * The base voltage of the topologocial node. - */ - IEC61970::Base::Core::BaseVoltage *BaseVoltage; - /** - * The terminals associated with the topological node. This can be used as an - * alternative to the connectivity node path to terminal, thus making it - * unneccesary to model connectivity nodes in some cases. Note that if - * connectivity nodes are in the model, this association would probably not be - * used as an input specification. - */ - std::list Terminal; - - }; - - } - - } - -} -#endif // TOPOLOGICALNODE_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/ACLineSegment.cpp b/IEC61970_17v07/IEC61970/Base/Wires/ACLineSegment.cpp deleted file mode 100644 index c5ce0193d..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/ACLineSegment.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// ACLineSegment.cpp -// Implementation of the Class ACLineSegment -/////////////////////////////////////////////////////////// - -#include "ACLineSegment.h" - -using IEC61970::Base::Wires::ACLineSegment; - - -ACLineSegment::ACLineSegment(){ - -} - - - -ACLineSegment::~ACLineSegment(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/ACLineSegment.h b/IEC61970_17v07/IEC61970/Base/Wires/ACLineSegment.h deleted file mode 100644 index 8940bfc1e..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/ACLineSegment.h +++ /dev/null @@ -1,99 +0,0 @@ -/////////////////////////////////////////////////////////// -// ACLineSegment.h -// Implementation of the Class ACLineSegment -/////////////////////////////////////////////////////////// - -#ifndef ACLINESEGMENT_H -#define ACLINESEGMENT_H - -#include - -#include "IEC61970/Base/Domain/Susceptance.h" -#include "IEC61970/Base/Domain/Conductance.h" -#include "IEC61970/Base/Domain/Resistance.h" -#include "IEC61970/Base/Domain/Temperature.h" -#include "IEC61970/Base/Domain/Reactance.h" -#include "IEC61970/Base/Wires/Conductor.h" -#include "IEC61970/Base/Wires/Clamp.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * A wire or combination of wires, with consistent electrical characteristics, - * building a single electrical system, used to carry alternating current between - * points in the power system. - * For symmetrical, transposed 3ph lines, it is sufficient to use attributes of - * the line segment, which describe impedances and admittances for the entire - * length of the segment. Additionally impedances can be computed by using length - * and associated per length impedances. - * The BaseVoltage at the two ends of ACLineSegments in a Line shall have the same - * BaseVoltage.nominalVoltage. However, boundary lines may have slightly - * different BaseVoltage.nominalVoltages and variation is allowed. Larger voltage - * difference in general requires use of an equivalent branch. - */ - class ACLineSegment : public IEC61970::Base::Wires::Conductor - { - - public: - ACLineSegment(); - virtual ~ACLineSegment(); - /** - * Zero sequence shunt (charging) susceptance, uniformly distributed, of the - * entire line section. - */ - IEC61970::Base::Domain::Susceptance b0ch; - /** - * Positive sequence shunt (charging) susceptance, uniformly distributed, of the - * entire line section. This value represents the full charging over the full - * length of the line. - */ - IEC61970::Base::Domain::Susceptance bch; - /** - * Zero sequence shunt (charging) conductance, uniformly distributed, of the - * entire line section. - */ - IEC61970::Base::Domain::Conductance g0ch; - /** - * Positive sequence shunt (charging) conductance, uniformly distributed, of the - * entire line section. - */ - IEC61970::Base::Domain::Conductance gch; - /** - * Positive sequence series resistance of the entire line section. - */ - IEC61970::Base::Domain::Resistance r; - /** - * Zero sequence series resistance of the entire line section. - */ - IEC61970::Base::Domain::Resistance r0; - /** - * Maximum permitted temperature at the end of SC for the calculation of minimum - * short-circuit currents. Used for short circuit data exchange according to IEC - * 60909 - */ - IEC61970::Base::Domain::Temperature shortCircuitEndTemperature; - /** - * Positive sequence series reactance of the entire line section. - */ - IEC61970::Base::Domain::Reactance x; - /** - * Zero sequence series reactance of the entire line section. - */ - IEC61970::Base::Domain::Reactance x0; - /** - * The clamps connected to the line segment. - */ - std::list Clamp; - - }; - - } - - } - -} -#endif // ACLINESEGMENT_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/ACLineSegmentPhase.cpp b/IEC61970_17v07/IEC61970/Base/Wires/ACLineSegmentPhase.cpp deleted file mode 100644 index 9a9d8a7c0..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/ACLineSegmentPhase.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// ACLineSegmentPhase.cpp -// Implementation of the Class ACLineSegmentPhase -// Original author: kdemaree -/////////////////////////////////////////////////////////// - -#include "ACLineSegmentPhase.h" - -using IEC61970::Base::Wires::ACLineSegmentPhase; - - -ACLineSegmentPhase::ACLineSegmentPhase() - : ACLineSegment(nullptr) -{ - -} - - - -ACLineSegmentPhase::~ACLineSegmentPhase(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/ACLineSegmentPhase.h b/IEC61970_17v07/IEC61970/Base/Wires/ACLineSegmentPhase.h deleted file mode 100644 index 49e394b4e..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/ACLineSegmentPhase.h +++ /dev/null @@ -1,54 +0,0 @@ -/////////////////////////////////////////////////////////// -// ACLineSegmentPhase.h -// Implementation of the Class ACLineSegmentPhase -// Original author: kdemaree -/////////////////////////////////////////////////////////// - -#ifndef ACLINESEGMENTPHASE_H -#define ACLINESEGMENTPHASE_H - -#include "IEC61970/Base/Wires/SinglePhaseKind.h" -#include "IEC61970/Base/Domain/Integer.h" -#include "IEC61970/Base/Wires/ACLineSegment.h" -#include "IEC61970/Base/Core/PowerSystemResource.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * Represents a single wire of an alternating current line segment. - */ - class ACLineSegmentPhase : public IEC61970::Base::Core::PowerSystemResource - { - - public: - ACLineSegmentPhase(); - virtual ~ACLineSegmentPhase(); - /** - * The phase connection of the wire at both ends. - */ - IEC61970::Base::Wires::SinglePhaseKind phase = IEC61970::Base::Wires::SinglePhaseKind::_undef; - /** - * Number designation for this line segment phase. Each line segment phase within - * a line segment should have a unique sequence number. This is useful for - * unbalanced modeling to bind the mathematical model (PhaseImpedanceData of - * PerLengthPhaseImpedance) with the connectivity model (this class) and the - * physical model (WirePosition) without tight coupling. - */ - IEC61970::Base::Domain::Integer sequenceNumber; - /** - * The line segment to which the phase belongs. - */ - IEC61970::Base::Wires::ACLineSegment *ACLineSegment; - - }; - - } - - } - -} -#endif // ACLINESEGMENTPHASE_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/AsynchronousMachine.cpp b/IEC61970_17v07/IEC61970/Base/Wires/AsynchronousMachine.cpp deleted file mode 100644 index b154db2ef..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/AsynchronousMachine.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// AsynchronousMachine.cpp -// Implementation of the Class AsynchronousMachine -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "AsynchronousMachine.h" - -using IEC61970::Base::Wires::AsynchronousMachine; - - -AsynchronousMachine::AsynchronousMachine(){ - -} - - - -AsynchronousMachine::~AsynchronousMachine(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/AsynchronousMachine.h b/IEC61970_17v07/IEC61970/Base/Wires/AsynchronousMachine.h deleted file mode 100644 index 48221ed65..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/AsynchronousMachine.h +++ /dev/null @@ -1,136 +0,0 @@ -/////////////////////////////////////////////////////////// -// AsynchronousMachine.h -// Implementation of the Class AsynchronousMachine -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef ASYNCHRONOUSMACHINE_H -#define ASYNCHRONOUSMACHINE_H - -#include "IEC61970/Base/Wires/AsynchronousMachineKind.h" -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Domain/PerCent.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/Frequency.h" -#include "IEC61970/Base/Domain/RotationSpeed.h" -#include "IEC61970/Base/Domain/Integer.h" -#include "IEC61970/Base/Domain/ActivePower.h" -#include "IEC61970/Base/Domain/Resistance.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Domain/Reactance.h" -#include "IEC61970/Base/Wires/RotatingMachine.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * A rotating machine whose shaft rotates asynchronously with the electrical field. - * Also known as an induction machine with no external connection to the rotor - * windings, e.g squirrel-cage induction machine. - */ - class AsynchronousMachine : public IEC61970::Base::Wires::RotatingMachine - { - - public: - AsynchronousMachine(); - virtual ~AsynchronousMachine(); - /** - * Indicates the type of Asynchronous Machine (motor or generator). - */ - IEC61970::Base::Wires::AsynchronousMachineKind asynchronousMachineType = IEC61970::Base::Wires::AsynchronousMachineKind::_undef; - /** - * Indicates whether the machine is a converter fed drive. Used for short circuit - * data exchange according to IEC 60909 - */ - IEC61970::Base::Domain::Boolean converterFedDrive; - /** - * Efficiency of the asynchronous machine at nominal operation in percent. - * Indicator for converter drive motors. Used for short circuit data exchange - * according to IEC 60909 - */ - IEC61970::Base::Domain::PerCent efficiency; - /** - * Ratio of locked-rotor current to the rated current of the motor (Ia/Ir). Used - * for short circuit data exchange according to IEC 60909 - */ - IEC61970::Base::Domain::Float iaIrRatio; - /** - * Nameplate data indicates if the machine is 50 or 60 Hz. - */ - IEC61970::Base::Domain::Frequency nominalFrequency; - /** - * Nameplate data. Depends on the slip and number of pole pairs. - */ - IEC61970::Base::Domain::RotationSpeed nominalSpeed; - /** - * Number of pole pairs of stator. Used for short circuit data exchange according - * to IEC 60909 - */ - IEC61970::Base::Domain::Integer polePairNumber; - /** - * Rated mechanical power (Pr in the IEC 60909-0). Used for short circuit data - * exchange according to IEC 60909. - */ - IEC61970::Base::Domain::ActivePower ratedMechanicalPower; - /** - * Indicates for converter drive motors if the power can be reversible. Used for - * short circuit data exchange according to IEC 60909 - */ - IEC61970::Base::Domain::Boolean reversible; - /** - * Damper 1 winding resistance. - */ - IEC61970::Base::Domain::Resistance rr1; - /** - * Damper 2 winding resistance. - */ - IEC61970::Base::Domain::Resistance rr2; - /** - * Locked rotor ratio (R/X). Used for short circuit data exchange according to IEC - * 60909 - */ - IEC61970::Base::Domain::Float rxLockedRotorRatio; - /** - * Transient rotor time constant (greater than tppo). - */ - IEC61970::Base::Domain::Seconds tpo; - /** - * Sub-transient rotor time constant (greater than 0). - */ - IEC61970::Base::Domain::Seconds tppo; - /** - * Damper 1 winding leakage reactance. - */ - IEC61970::Base::Domain::Reactance xlr1; - /** - * Damper 2 winding leakage reactance. - */ - IEC61970::Base::Domain::Reactance xlr2; - /** - * Magnetizing reactance. - */ - IEC61970::Base::Domain::Reactance xm; - /** - * Transient reactance (unsaturated) (greater than or equal to xpp). - */ - IEC61970::Base::Domain::Reactance xp; - /** - * Sub-transient reactance (unsaturated) (greather than Xl). - */ - IEC61970::Base::Domain::Reactance xpp; - /** - * Synchronous reactance (greather than xp). - */ - IEC61970::Base::Domain::Reactance xs; - - }; - - } - - } - -} -#endif // ASYNCHRONOUSMACHINE_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/AsynchronousMachineKind.h b/IEC61970_17v07/IEC61970/Base/Wires/AsynchronousMachineKind.h deleted file mode 100644 index eb619b2c3..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/AsynchronousMachineKind.h +++ /dev/null @@ -1,36 +0,0 @@ -/////////////////////////////////////////////////////////// -// AsynchronousMachineKind.h -// Implementation of the Class AsynchronousMachineKind -// Original author: msphuku2 -/////////////////////////////////////////////////////////// - -#ifndef ASYNCHRONOUSMACHINEKIND_H -#define ASYNCHRONOUSMACHINEKIND_H - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * Kind of Asynchronous Machine. - */ - enum class AsynchronousMachineKind - { - /** - * The Asynchronous Machine is a generator. - */ - generator, _undef = -1, none, - /** - * The Asynchronous Machine is a motor. - */ - motor - }; - - } - - } - -} -#endif // ASYNCHRONOUSMACHINEKIND_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/Breaker.cpp b/IEC61970_17v07/IEC61970/Base/Wires/Breaker.cpp deleted file mode 100644 index bb68aa2db..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/Breaker.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// Breaker.cpp -// Implementation of the Class Breaker -/////////////////////////////////////////////////////////// - -#include "Breaker.h" - -using IEC61970::Base::Wires::Breaker; - - -Breaker::Breaker(){ - -} - - - -Breaker::~Breaker(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/Breaker.h b/IEC61970_17v07/IEC61970/Base/Wires/Breaker.h deleted file mode 100644 index c88fc4531..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/Breaker.h +++ /dev/null @@ -1,42 +0,0 @@ -/////////////////////////////////////////////////////////// -// Breaker.h -// Implementation of the Class Breaker -/////////////////////////////////////////////////////////// - -#ifndef BREAKER_H -#define BREAKER_H - -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Wires/ProtectedSwitch.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * A mechanical switching device capable of making, carrying, and breaking - * currents under normal circuit conditions and also making, carrying for a - * specified time, and breaking currents under specified abnormal circuit - * conditions e.g. those of short circuit. - */ - class Breaker : public IEC61970::Base::Wires::ProtectedSwitch - { - - public: - Breaker(); - virtual ~Breaker(); - /** - * The transition time from open to close. - */ - IEC61970::Base::Domain::Seconds inTransitTime; - - }; - - } - - } - -} -#endif // BREAKER_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/BusbarSection.cpp b/IEC61970_17v07/IEC61970/Base/Wires/BusbarSection.cpp deleted file mode 100644 index 37e5338df..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/BusbarSection.cpp +++ /dev/null @@ -1,21 +0,0 @@ -/////////////////////////////////////////////////////////// -// BusbarSection.cpp -// Implementation of the Class BusbarSection -/////////////////////////////////////////////////////////// - -#include "BusbarSection.h" - -using IEC61970::Base::Wires::BusbarSection; - - -BusbarSection::BusbarSection() - : VoltageControlZone(nullptr) -{ - -} - - - -BusbarSection::~BusbarSection(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/BusbarSection.h b/IEC61970_17v07/IEC61970/Base/Wires/BusbarSection.h deleted file mode 100644 index 7558e4e05..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/BusbarSection.h +++ /dev/null @@ -1,51 +0,0 @@ -/////////////////////////////////////////////////////////// -// BusbarSection.h -// Implementation of the Class BusbarSection -/////////////////////////////////////////////////////////// - -#ifndef BUSBARSECTION_H -#define BUSBARSECTION_H - -#include "IEC61970/Base/Domain/CurrentFlow.h" -#include "IEC61970/Base/Wires/VoltageControlZone.h" -#include "IEC61970/Base/Wires/Connector.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * A conductor, or group of conductors, with negligible impedance, that serve to - * connect other conducting equipment within a single substation. - * Voltage measurements are typically obtained from VoltageTransformers that are - * connected to busbar sections. A bus bar section may have many physical - * terminals but for analysis is modelled with exactly one logical terminal. - */ - class BusbarSection : public IEC61970::Base::Wires::Connector - { - - public: - BusbarSection(); - virtual ~BusbarSection(); - /** - * Maximum allowable peak short-circuit current of busbar (Ipmax in the IEC 60909- - * 0). - * Mechanical limit of the busbar in the substation itself. Used for short circuit - * data exchange according to IEC 60909 - */ - IEC61970::Base::Domain::CurrentFlow ipMax; - /** - * A VoltageControlZone is controlled by a designated BusbarSection. - */ - IEC61970::Base::Wires::VoltageControlZone *VoltageControlZone; - - }; - - } - - } - -} -#endif // BUSBARSECTION_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/Clamp.cpp b/IEC61970_17v07/IEC61970/Base/Wires/Clamp.cpp deleted file mode 100644 index 9050f13fb..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/Clamp.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// Clamp.cpp -// Implementation of the Class Clamp -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#include "Clamp.h" - -using IEC61970::Base::Wires::Clamp; - - -Clamp::Clamp(){ - -} - - - -Clamp::~Clamp(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/Clamp.h b/IEC61970_17v07/IEC61970/Base/Wires/Clamp.h deleted file mode 100644 index 63014bc02..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/Clamp.h +++ /dev/null @@ -1,46 +0,0 @@ -/////////////////////////////////////////////////////////// -// Clamp.h -// Implementation of the Class Clamp -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#ifndef CLAMP_H -#define CLAMP_H - -#include "IEC61970/Base/Domain/Length.h" -#include "IEC61970/Base/Core/ConductingEquipment.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * A Clamp is a galvanic connection at a line segment where other equipment is - * connected. A Clamp does not cut the line segment. - * A Clamp is ConductingEquipment and has one Terminal with an associated - * ConnectivityNode. Any other ConductingEquipment can be connected to the Clamp - * ConnectivityNode. - */ - class Clamp : public IEC61970::Base::Core::ConductingEquipment - { - - public: - Clamp(); - virtual ~Clamp(); - /** - * The length to the place where the clamp is located starting from side one of - * the line segment, i.e. the line segment terminal with sequence number equal to - * 1. - */ - IEC61970::Base::Domain::Length lengthFromTerminal1; - - }; - - } - - } - -} -#endif // CLAMP_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/CompositeSwitch.cpp b/IEC61970_17v07/IEC61970/Base/Wires/CompositeSwitch.cpp deleted file mode 100644 index f8542465d..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/CompositeSwitch.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// CompositeSwitch.cpp -// Implementation of the Class CompositeSwitch -/////////////////////////////////////////////////////////// - -#include "CompositeSwitch.h" - -using IEC61970::Base::Wires::CompositeSwitch; - - -CompositeSwitch::CompositeSwitch(){ - -} - - - -CompositeSwitch::~CompositeSwitch(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/CompositeSwitch.h b/IEC61970_17v07/IEC61970/Base/Wires/CompositeSwitch.h deleted file mode 100644 index 9cd6cb372..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/CompositeSwitch.h +++ /dev/null @@ -1,55 +0,0 @@ -/////////////////////////////////////////////////////////// -// CompositeSwitch.h -// Implementation of the Class CompositeSwitch -/////////////////////////////////////////////////////////// - -#ifndef COMPOSITESWITCH_H -#define COMPOSITESWITCH_H - -#include - -#include "IEC61970/Base/Domain/String.h" -#include "IEC61970/Base/Wires/Switch.h" -#include "IEC61970/Base/Core/Equipment.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * A model of a set of individual Switches normally enclosed within the same - * cabinet and possibly with interlocks that restrict the combination of switch - * positions. These are typically found in medium voltage distribution networks. - * A CompositeSwitch could represent a Ring-Main-Unit (RMU), or pad-mounted - * switchgear, with primitive internal devices such as an internal bus-bar plus 3 - * or 4 internal switches each of which may individually be open or closed. A - * CompositeSwitch and a set of contained Switches can also be used to represent a - * multi-position switch e.g. a switch that can connect a circuit to Ground, Open - * or Busbar. - */ - class CompositeSwitch : public IEC61970::Base::Core::Equipment - { - - public: - CompositeSwitch(); - virtual ~CompositeSwitch(); - /** - * An alphanumeric code that can be used as a reference to extra information such - * as the description of the interlocking scheme if any. - */ - IEC61970::Base::Domain::String compositeSwitchType; - /** - * Switches contained in this Composite switch. - */ - std::list Switches; - - }; - - } - - } - -} -#endif // COMPOSITESWITCH_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/Conductor.cpp b/IEC61970_17v07/IEC61970/Base/Wires/Conductor.cpp deleted file mode 100644 index 2b55362fd..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/Conductor.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// Conductor.cpp -// Implementation of the Class Conductor -/////////////////////////////////////////////////////////// - -#include "Conductor.h" - -using IEC61970::Base::Wires::Conductor; - - -Conductor::Conductor(){ - -} - - - -Conductor::~Conductor(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/Conductor.h b/IEC61970_17v07/IEC61970/Base/Wires/Conductor.h deleted file mode 100644 index b0b1180bf..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/Conductor.h +++ /dev/null @@ -1,41 +0,0 @@ -/////////////////////////////////////////////////////////// -// Conductor.h -// Implementation of the Class Conductor -/////////////////////////////////////////////////////////// - -#ifndef CONDUCTOR_H -#define CONDUCTOR_H - -#include "IEC61970/Base/Domain/Length.h" -#include "IEC61970/Base/Core/ConductingEquipment.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * Combination of conducting material with consistent electrical characteristics, - * building a single electrical system, used to carry current between points in - * the power system. - */ - class Conductor : public IEC61970::Base::Core::ConductingEquipment - { - - public: - Conductor(); - virtual ~Conductor(); - /** - * Segment length for calculating line section capabilities - */ - IEC61970::Base::Domain::Length length; - - }; - - } - - } - -} -#endif // CONDUCTOR_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/Connector.cpp b/IEC61970_17v07/IEC61970/Base/Wires/Connector.cpp deleted file mode 100644 index d2b196ec5..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/Connector.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// Connector.cpp -// Implementation of the Class Connector -/////////////////////////////////////////////////////////// - -#include "Connector.h" - -using IEC61970::Base::Wires::Connector; - - -Connector::Connector(){ - -} - - - -Connector::~Connector(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/Connector.h b/IEC61970_17v07/IEC61970/Base/Wires/Connector.h deleted file mode 100644 index a9a869d19..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/Connector.h +++ /dev/null @@ -1,36 +0,0 @@ -/////////////////////////////////////////////////////////// -// Connector.h -// Implementation of the Class Connector -/////////////////////////////////////////////////////////// - -#ifndef CONNECTOR_H -#define CONNECTOR_H - -#include "IEC61970/Base/Core/ConductingEquipment.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * A conductor, or group of conductors, with negligible impedance, that serve to - * connect other conducting equipment within a single substation and are modelled - * with a single logical terminal. - */ - class Connector : public IEC61970::Base::Core::ConductingEquipment - { - - public: - Connector(); - virtual ~Connector(); - - }; - - } - - } - -} -#endif // CONNECTOR_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/CoolantType.h b/IEC61970_17v07/IEC61970/Base/Wires/CoolantType.h deleted file mode 100644 index 779386e3c..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/CoolantType.h +++ /dev/null @@ -1,39 +0,0 @@ -/////////////////////////////////////////////////////////// -// CoolantType.h -// Implementation of the Class CoolantType -/////////////////////////////////////////////////////////// - -#ifndef COOLANTTYPE_H -#define COOLANTTYPE_H - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * Method of cooling a machine. - */ - enum class CoolantType - { - /** - * Air. - */ - _undef = -1, air, - /** - * Hydrogen gas. - */ - hydrogenGas, - /** - * Water. - */ - water - }; - - } - - } - -} -#endif // COOLANTTYPE_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/Cut.cpp b/IEC61970_17v07/IEC61970/Base/Wires/Cut.cpp deleted file mode 100644 index b31170d89..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/Cut.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// Cut.cpp -// Implementation of the Class Cut -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#include "Cut.h" - -using IEC61970::Base::Wires::Cut; - - -Cut::Cut() - : ACLineSegment(nullptr) -{ - -} - - - -Cut::~Cut(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/Cut.h b/IEC61970_17v07/IEC61970/Base/Wires/Cut.h deleted file mode 100644 index cc9962daa..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/Cut.h +++ /dev/null @@ -1,56 +0,0 @@ -/////////////////////////////////////////////////////////// -// Cut.h -// Implementation of the Class Cut -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#ifndef CUT_H -#define CUT_H - -#include "IEC61970/Base/Domain/Length.h" -#include "IEC61970/Base/Wires/Switch.h" -#include "IEC61970/Base/Wires/ACLineSegment.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * A cut separates a line segment into two parts. The cut appears as a switch - * inserted between these two parts and connects them together. As the cut is - * normally open there is no galvanic connection between the two line segment - * parts. But it is possible to close the cut to get galvanic connection. - * The cut terminals are oriented towards the line segment terminals with the same - * sequence number. Hence the cut terminal with sequence number equal to 1 is - * oriented to the line segment's terminal with sequence number equal to 1. - * The cut terminals also act as connection points for jumpers and other equipment, - * e.g. a mobile generator. To enable this, connectivity nodes are placed at the - * cut terminals. Once the connectivity nodes are in place any conducting - * equipment can be connected at them. - */ - class Cut : public IEC61970::Base::Wires::Switch - { - - public: - Cut(); - virtual ~Cut(); - /** - * The length to the place where the cut is located starting from side one of the - * cut line segment, i.e. the line segment Terminal with sequenceNumber equal to 1. - */ - IEC61970::Base::Domain::Length lengthFromTerminal1; - /** - * The line segment to which the cut is applied. - */ - IEC61970::Base::Wires::ACLineSegment *ACLineSegment; - - }; - - } - - } - -} -#endif // CUT_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/Disconnector.cpp b/IEC61970_17v07/IEC61970/Base/Wires/Disconnector.cpp deleted file mode 100644 index 21ce2535b..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/Disconnector.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// Disconnector.cpp -// Implementation of the Class Disconnector -/////////////////////////////////////////////////////////// - -#include "Disconnector.h" - -using IEC61970::Base::Wires::Disconnector; - - -Disconnector::Disconnector(){ - -} - - - -Disconnector::~Disconnector(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/Disconnector.h b/IEC61970_17v07/IEC61970/Base/Wires/Disconnector.h deleted file mode 100644 index 4271df415..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/Disconnector.h +++ /dev/null @@ -1,37 +0,0 @@ -/////////////////////////////////////////////////////////// -// Disconnector.h -// Implementation of the Class Disconnector -/////////////////////////////////////////////////////////// - -#ifndef DISCONNECTOR_H -#define DISCONNECTOR_H - -#include "IEC61970/Base/Wires/Switch.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * A manually operated or motor operated mechanical switching device used for - * changing the connections in a circuit, or for isolating a circuit or equipment - * from a source of power. It is required to open or close circuits when - * negligible current is broken or made. - */ - class Disconnector : public IEC61970::Base::Wires::Switch - { - - public: - Disconnector(); - virtual ~Disconnector(); - - }; - - } - - } - -} -#endif // DISCONNECTOR_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/EarthFaultCompensator.cpp b/IEC61970_17v07/IEC61970/Base/Wires/EarthFaultCompensator.cpp deleted file mode 100644 index af96d7f51..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/EarthFaultCompensator.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// EarthFaultCompensator.cpp -// Implementation of the Class EarthFaultCompensator -// Original author: namstutz -/////////////////////////////////////////////////////////// - -#include "EarthFaultCompensator.h" - -using IEC61970::Base::Wires::EarthFaultCompensator; - - -EarthFaultCompensator::EarthFaultCompensator(){ - -} - - - -EarthFaultCompensator::~EarthFaultCompensator(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/EarthFaultCompensator.h b/IEC61970_17v07/IEC61970/Base/Wires/EarthFaultCompensator.h deleted file mode 100644 index c54b4f184..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/EarthFaultCompensator.h +++ /dev/null @@ -1,44 +0,0 @@ -/////////////////////////////////////////////////////////// -// EarthFaultCompensator.h -// Implementation of the Class EarthFaultCompensator -// Original author: namstutz -/////////////////////////////////////////////////////////// - -#ifndef EARTHFAULTCOMPENSATOR_H -#define EARTHFAULTCOMPENSATOR_H - -#include "IEC61970/Base/Domain/Resistance.h" -#include "IEC61970/Base/Core/ConductingEquipment.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * A conducting equipment used to represent a connection to ground which is - * typically used to compensate earth faults.. An earth fault compensator device - * modeled with a single terminal implies a second terminal solidly connected to - * ground. If two terminals are modeled, the ground is not assumed and normal - * connection rules apply. - */ - class EarthFaultCompensator : public IEC61970::Base::Core::ConductingEquipment - { - - public: - EarthFaultCompensator(); - virtual ~EarthFaultCompensator(); - /** - * Nominal resistance of device. - */ - IEC61970::Base::Domain::Resistance r; - - }; - - } - - } - -} -#endif // EARTHFAULTCOMPENSATOR_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/EnergyConsumer.cpp b/IEC61970_17v07/IEC61970/Base/Wires/EnergyConsumer.cpp deleted file mode 100644 index 23d4da58d..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/EnergyConsumer.cpp +++ /dev/null @@ -1,21 +0,0 @@ -/////////////////////////////////////////////////////////// -// EnergyConsumer.cpp -// Implementation of the Class EnergyConsumer -/////////////////////////////////////////////////////////// - -#include "EnergyConsumer.h" - -using IEC61970::Base::Wires::EnergyConsumer; - - -EnergyConsumer::EnergyConsumer() - : LoadResponse(nullptr) -{ - -} - - - -EnergyConsumer::~EnergyConsumer(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/EnergyConsumer.h b/IEC61970_17v07/IEC61970/Base/Wires/EnergyConsumer.h deleted file mode 100644 index e78256cbd..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/EnergyConsumer.h +++ /dev/null @@ -1,99 +0,0 @@ -/////////////////////////////////////////////////////////// -// EnergyConsumer.h -// Implementation of the Class EnergyConsumer -/////////////////////////////////////////////////////////// - -#ifndef ENERGYCONSUMER_H -#define ENERGYCONSUMER_H - -#include - -#include "IEC61970/Base/Domain/Integer.h" -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Domain/ActivePower.h" -#include "IEC61970/Base/Domain/PerCent.h" -#include "IEC61970/Base/Wires/PhaseShuntConnectionKind.h" -#include "IEC61970/Base/Domain/ReactivePower.h" -#include "IEC61970/Base/LoadModel/LoadResponseCharacteristic.h" -#include "IEC61970/Base/Wires/EnergyConsumerPhase.h" -#include "IEC61970/Base/Core/ConductingEquipment.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * Generic user of energy - a point of consumption on the power system model. - */ - class EnergyConsumer : public IEC61970::Base::Core::ConductingEquipment - { - - public: - EnergyConsumer(); - virtual ~EnergyConsumer(); - /** - * Number of individual customers represented by this demand. - */ - IEC61970::Base::Domain::Integer customerCount; - /** - * Used for Yn and Zn connections. True if the neutral is solidly grounded. - */ - IEC61970::Base::Domain::Boolean grounded; - /** - * Active power of the load. Load sign convention is used, i.e. positive sign - * means flow out from a node. - * For voltage dependent loads the value is at rated voltage. - * Starting value for a steady state solution. - */ - IEC61970::Base::Domain::ActivePower p; - /** - * Active power of the load that is a fixed quantity. Load sign convention is used, - * i.e. positive sign means flow out from a node. - */ - IEC61970::Base::Domain::ActivePower pfixed; - /** - * Fixed active power as per cent of load group fixed active power. Load sign - * convention is used, i.e. positive sign means flow out from a node. - */ - IEC61970::Base::Domain::PerCent pfixedPct; - /** - * The type of phase connection, such as wye or delta. - */ - IEC61970::Base::Wires::PhaseShuntConnectionKind phaseConnection = IEC61970::Base::Wires::PhaseShuntConnectionKind::_undef; - /** - * Reactive power of the load. Load sign convention is used, i.e. positive sign - * means flow out from a node. - * For voltage dependent loads the value is at rated voltage. - * Starting value for a steady state solution. - */ - IEC61970::Base::Domain::ReactivePower q; - /** - * Reactive power of the load that is a fixed quantity. Load sign convention is - * used, i.e. positive sign means flow out from a node. - */ - IEC61970::Base::Domain::ReactivePower qfixed; - /** - * Fixed reactive power as per cent of load group fixed reactive power. Load sign - * convention is used, i.e. positive sign means flow out from a node. - */ - IEC61970::Base::Domain::PerCent qfixedPct; - /** - * The load response characteristic of this load. If missing, this load is - * assumed to be constant power. - */ - IEC61970::Base::LoadModel::LoadResponseCharacteristic *LoadResponse; - /** - * The individual phase models for this energy consumer. - */ - std::list EnergyConsumerPhase; - - }; - - } - - } - -} -#endif // ENERGYCONSUMER_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/EnergyConsumerPhase.cpp b/IEC61970_17v07/IEC61970/Base/Wires/EnergyConsumerPhase.cpp deleted file mode 100644 index 2f93fc57b..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/EnergyConsumerPhase.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// EnergyConsumerPhase.cpp -// Implementation of the Class EnergyConsumerPhase -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#include "EnergyConsumerPhase.h" - -using IEC61970::Base::Wires::EnergyConsumerPhase; - - -EnergyConsumerPhase::EnergyConsumerPhase(){ - -} - - - -EnergyConsumerPhase::~EnergyConsumerPhase(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/EnergyConsumerPhase.h b/IEC61970_17v07/IEC61970/Base/Wires/EnergyConsumerPhase.h deleted file mode 100644 index 8d54e5aef..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/EnergyConsumerPhase.h +++ /dev/null @@ -1,67 +0,0 @@ -/////////////////////////////////////////////////////////// -// EnergyConsumerPhase.h -// Implementation of the Class EnergyConsumerPhase -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#ifndef ENERGYCONSUMERPHASE_H -#define ENERGYCONSUMERPHASE_H - -#include "IEC61970/Base/Domain/ActivePower.h" -#include "IEC61970/Base/Domain/PerCent.h" -#include "IEC61970/Base/Wires/SinglePhaseKind.h" -#include "IEC61970/Base/Domain/ReactivePower.h" -#include "IEC61970/Base/Core/PowerSystemResource.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * A single phase of an energy consumer. - */ - class EnergyConsumerPhase : public IEC61970::Base::Core::PowerSystemResource - { - - public: - EnergyConsumerPhase(); - virtual ~EnergyConsumerPhase(); - /** - * Active power of the load that is a fixed quantity. Load sign convention is used, - * i.e. positive sign means flow out from a node. - */ - IEC61970::Base::Domain::ActivePower pfixed; - /** - * Fixed active power as per cent of load group fixed active power. Load sign - * convention is used, i.e. positive sign means flow out from a node. - */ - IEC61970::Base::Domain::PerCent pfixedPct; - /** - * Phase of this energy consumer component. If the energy consumer is wye - * connected, the connection is from the indicated phase to the central ground or - * neutral point. If the energy consumer is delta connected, the phase indicates - * an energy consumer connected from the indicated phase to the next logical non- - * neutral phase. - */ - IEC61970::Base::Wires::SinglePhaseKind phase = IEC61970::Base::Wires::SinglePhaseKind::_undef; - /** - * Reactive power of the load that is a fixed quantity. Load sign convention is - * used, i.e. positive sign means flow out from a node. - */ - IEC61970::Base::Domain::ReactivePower qfixed; - /** - * Fixed reactive power as per cent of load group fixed reactive power. Load sign - * convention is used, i.e. positive sign means flow out from a node. - */ - IEC61970::Base::Domain::PerCent qfixedPct; - - }; - - } - - } - -} -#endif // ENERGYCONSUMERPHASE_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/EnergySource.cpp b/IEC61970_17v07/IEC61970/Base/Wires/EnergySource.cpp deleted file mode 100644 index d2acbe48f..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/EnergySource.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// EnergySource.cpp -// Implementation of the Class EnergySource -/////////////////////////////////////////////////////////// - -#include "EnergySource.h" - -using IEC61970::Base::Wires::EnergySource; - - -EnergySource::EnergySource(){ - -} - - - -EnergySource::~EnergySource(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/EnergySource.h b/IEC61970_17v07/IEC61970/Base/Wires/EnergySource.h deleted file mode 100644 index d967eb938..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/EnergySource.h +++ /dev/null @@ -1,89 +0,0 @@ -/////////////////////////////////////////////////////////// -// EnergySource.h -// Implementation of the Class EnergySource -/////////////////////////////////////////////////////////// - -#ifndef ENERGYSOURCE_H -#define ENERGYSOURCE_H - -#include "IEC61970/Base/Domain/ActivePower.h" -#include "IEC61970/Base/Domain/Voltage.h" -#include "IEC61970/Base/Domain/Resistance.h" -#include "IEC61970/Base/Domain/ReactivePower.h" -#include "IEC61970/Base/Domain/AngleRadians.h" -#include "IEC61970/Base/Domain/Reactance.h" -#include "IEC61970/Base/Core/ConductingEquipment.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * A generic equivalent for an energy supplier on a transmission or distribution - * voltage level. - */ - class EnergySource : public IEC61970::Base::Core::ConductingEquipment - { - - public: - EnergySource(); - virtual ~EnergySource(); - /** - * High voltage source active injection. Load sign convention is used, i.e. - * positive sign means flow out from a node. - * Starting value for steady state solutions. - */ - IEC61970::Base::Domain::ActivePower activePower; - /** - * Phase-to-phase nominal voltage. - */ - IEC61970::Base::Domain::Voltage nominalVoltage; - /** - * Positive sequence Thevenin resistance. - */ - IEC61970::Base::Domain::Resistance r; - /** - * Zero sequence Thevenin resistance. - */ - IEC61970::Base::Domain::Resistance r0; - /** - * High voltage source reactive injection. Load sign convention is used, i.e. - * positive sign means flow out from a node. - * Starting value for steady state solutions. - */ - IEC61970::Base::Domain::ReactivePower reactivePower; - /** - * Negative sequence Thevenin resistance. - */ - IEC61970::Base::Domain::Resistance rn; - /** - * Phase angle of a-phase open circuit. - */ - IEC61970::Base::Domain::AngleRadians voltageAngle; - /** - * Phase-to-phase open circuit voltage magnitude. - */ - IEC61970::Base::Domain::Voltage voltageMagnitude; - /** - * Positive sequence Thevenin reactance. - */ - IEC61970::Base::Domain::Reactance x; - /** - * Zero sequence Thevenin reactance. - */ - IEC61970::Base::Domain::Reactance x0; - /** - * Negative sequence Thevenin reactance. - */ - IEC61970::Base::Domain::Reactance xn; - - }; - - } - - } - -} -#endif // ENERGYSOURCE_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/EnergySourcePhase.cpp b/IEC61970_17v07/IEC61970/Base/Wires/EnergySourcePhase.cpp deleted file mode 100644 index 62f194a88..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/EnergySourcePhase.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// EnergySourcePhase.cpp -// Implementation of the Class EnergySourcePhase -// Original author: 222206 -/////////////////////////////////////////////////////////// - -#include "EnergySourcePhase.h" - -using IEC61970::Base::Wires::EnergySourcePhase; - - -EnergySourcePhase::EnergySourcePhase() - : EnergySource(nullptr) -{ - -} - - - -EnergySourcePhase::~EnergySourcePhase(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/EnergySourcePhase.h b/IEC61970_17v07/IEC61970/Base/Wires/EnergySourcePhase.h deleted file mode 100644 index 719334266..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/EnergySourcePhase.h +++ /dev/null @@ -1,48 +0,0 @@ -/////////////////////////////////////////////////////////// -// EnergySourcePhase.h -// Implementation of the Class EnergySourcePhase -// Original author: 222206 -/////////////////////////////////////////////////////////// - -#ifndef ENERGYSOURCEPHASE_H -#define ENERGYSOURCEPHASE_H - -#include "IEC61970/Base/Wires/SinglePhaseKind.h" -#include "IEC61970/Base/Core/PowerSystemResource.h" -#include "IEC61970/Base/Wires/EnergySource.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * Represents the single phase information of an unbalanced energy source. - */ - class EnergySourcePhase : public IEC61970::Base::Core::PowerSystemResource - { - - public: - EnergySourcePhase(); - virtual ~EnergySourcePhase(); - /** - * Phase of this energy source component. If the energy source wye connected, - * the connection is from the indicated phase to the central ground or neutral - * point. If the energy source is delta connected, the phase indicates an energy - * source connected from the indicated phase to the next logical non-neutral phase. - */ - IEC61970::Base::Wires::SinglePhaseKind phase = IEC61970::Base::Wires::SinglePhaseKind::_undef; - /** - * The energy sourceto which the phase belongs. - */ - IEC61970::Base::Wires::EnergySource *EnergySource; - - }; - - } - - } - -} -#endif // ENERGYSOURCEPHASE_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/ExternalNetworkInjection.cpp b/IEC61970_17v07/IEC61970/Base/Wires/ExternalNetworkInjection.cpp deleted file mode 100644 index fa3105de8..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/ExternalNetworkInjection.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExternalNetworkInjection.cpp -// Implementation of the Class ExternalNetworkInjection -// Original author: Jean-Luc -/////////////////////////////////////////////////////////// - -#include "ExternalNetworkInjection.h" - -using IEC61970::Base::Wires::ExternalNetworkInjection; - - -ExternalNetworkInjection::ExternalNetworkInjection(){ - -} - - - -ExternalNetworkInjection::~ExternalNetworkInjection(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/ExternalNetworkInjection.h b/IEC61970_17v07/IEC61970/Base/Wires/ExternalNetworkInjection.h deleted file mode 100644 index 60a8f0ff1..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/ExternalNetworkInjection.h +++ /dev/null @@ -1,141 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExternalNetworkInjection.h -// Implementation of the Class ExternalNetworkInjection -// Original author: Jean-Luc -/////////////////////////////////////////////////////////// - -#ifndef EXTERNALNETWORKINJECTION_H -#define EXTERNALNETWORKINJECTION_H - -#include "IEC61970/Base/Domain/ActivePowerPerFrequency.h" -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Domain/CurrentFlow.h" -#include "IEC61970/Base/Domain/ActivePower.h" -#include "IEC61970/Base/Domain/ReactivePower.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/Integer.h" -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Wires/RegulatingCondEq.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * This class represents external network and it is used for IEC 60909 - * calculations. - */ - class ExternalNetworkInjection : public IEC61970::Base::Wires::RegulatingCondEq - { - - public: - ExternalNetworkInjection(); - virtual ~ExternalNetworkInjection(); - /** - * Power Frequency Bias. This is the change in power injection divided by the - * change in frequency and negated. A positive value of the power frequency bias - * provides additional power injection upon a drop in frequency. - */ - IEC61970::Base::Domain::ActivePowerPerFrequency governorSCD; - /** - * Indicates whether initial symmetrical short-circuit current and power have been - * calculated according to IEC (Ik"). - */ - IEC61970::Base::Domain::Boolean ikSecond; - /** - * Maximum initial symmetrical short-circuit currents (Ik" max) in A (Ik" = - * Sk"/(SQRT(3) Un)). Used for short circuit data exchange according to IEC 60909 - */ - IEC61970::Base::Domain::CurrentFlow maxInitialSymShCCurrent; - /** - * Maximum active power of the injection. - */ - IEC61970::Base::Domain::ActivePower maxP; - /** - * Not for short circuit modelling; It is used for modelling of infeed for load - * flow exchange. If maxQ and minQ are not used ReactiveCapabilityCurve can be - * used - */ - IEC61970::Base::Domain::ReactivePower maxQ; - /** - * Maximum ratio of zero sequence resistance of Network Feeder to its zero - * sequence reactance (R(0)/X(0) max). Used for short circuit data exchange - * according to IEC 60909 - */ - IEC61970::Base::Domain::Float maxR0ToX0Ratio; - /** - * Maximum ratio of positive sequence resistance of Network Feeder to its positive - * sequence reactance (R(1)/X(1) max). Used for short circuit data exchange - * according to IEC 60909 - */ - IEC61970::Base::Domain::Float maxR1ToX1Ratio; - /** - * Maximum ratio of zero sequence impedance to its positive sequence impedance - * (Z(0)/Z(1) max). Used for short circuit data exchange according to IEC 60909 - */ - IEC61970::Base::Domain::Float maxZ0ToZ1Ratio; - /** - * Minimum initial symmetrical short-circuit currents (Ik" min) in A (Ik" = - * Sk"/(SQRT(3) Un)). Used for short circuit data exchange according to IEC 60909 - */ - IEC61970::Base::Domain::CurrentFlow minInitialSymShCCurrent; - /** - * Minimum active power of the injection. - */ - IEC61970::Base::Domain::ActivePower minP; - /** - * Not for short circuit modelling; It is used for modelling of infeed for load - * flow exchange. If maxQ and minQ are not used ReactiveCapabilityCurve can be used - */ - IEC61970::Base::Domain::ReactivePower minQ; - /** - * Indicates whether initial symmetrical short-circuit current and power have been - * calculated according to IEC (Ik"). Used for short circuit data exchange - * according to IEC 6090 - */ - IEC61970::Base::Domain::Float minR0ToX0Ratio; - /** - * Minimum ratio of positive sequence resistance of Network Feeder to its positive - * sequence reactance (R(1)/X(1) min). Used for short circuit data exchange - * according to IEC 60909 - */ - IEC61970::Base::Domain::Float minR1ToX1Ratio; - /** - * Minimum ratio of zero sequence impedance to its positive sequence impedance - * (Z(0)/Z(1) min). Used for short circuit data exchange according to IEC 60909 - */ - IEC61970::Base::Domain::Float minZ0ToZ1Ratio; - /** - * Active power injection. Load sign convention is used, i.e. positive sign means - * flow out from a node. - * Starting value for steady state solutions. - */ - IEC61970::Base::Domain::ActivePower p; - /** - * Reactive power injection. Load sign convention is used, i.e. positive sign - * means flow out from a node. - * Starting value for steady state solutions. - */ - IEC61970::Base::Domain::ReactivePower q; - /** - * Priority of unit for use as powerflow voltage phase angle reference bus - * selection. 0 = don t care (default) 1 = highest priority. 2 is less than 1 and - * so on. - */ - IEC61970::Base::Domain::Integer referencePriority; - /** - * Voltage factor in pu, which was used to calculate short-circuit current Ik" and - * power Sk". - */ - IEC61970::Base::Domain::PU voltageFactor; - - }; - - } - - } - -} -#endif // EXTERNALNETWORKINJECTION_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/FrequencyConverter.cpp b/IEC61970_17v07/IEC61970/Base/Wires/FrequencyConverter.cpp deleted file mode 100644 index 9bab33676..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/FrequencyConverter.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// FrequencyConverter.cpp -// Implementation of the Class FrequencyConverter -/////////////////////////////////////////////////////////// - -#include "FrequencyConverter.h" - -using IEC61970::Base::Wires::FrequencyConverter; - - -FrequencyConverter::FrequencyConverter(){ - -} - - - -FrequencyConverter::~FrequencyConverter(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/FrequencyConverter.h b/IEC61970_17v07/IEC61970/Base/Wires/FrequencyConverter.h deleted file mode 100644 index 1185a524e..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/FrequencyConverter.h +++ /dev/null @@ -1,63 +0,0 @@ -/////////////////////////////////////////////////////////// -// FrequencyConverter.h -// Implementation of the Class FrequencyConverter -/////////////////////////////////////////////////////////// - -#ifndef FREQUENCYCONVERTER_H -#define FREQUENCYCONVERTER_H - -#include "IEC61970/Base/Domain/Frequency.h" -#include "IEC61970/Base/Domain/ActivePower.h" -#include "IEC61970/Base/Domain/Voltage.h" -#include "IEC61970/Base/Wires/RegulatingCondEq.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * A device to convert from one frequency to another (e.g., frequency F1 to F2) - * comprises a pair of FrequencyConverter instances. One converts from F1 to DC, - * the other converts the DC to F2. - */ - class FrequencyConverter : public IEC61970::Base::Wires::RegulatingCondEq - { - - public: - FrequencyConverter(); - virtual ~FrequencyConverter(); - /** - * Frequency on the AC side. - */ - IEC61970::Base::Domain::Frequency frequency; - /** - * The maximum active power on the DC side at which the frequence converter should - * operate. - */ - IEC61970::Base::Domain::ActivePower maxP; - /** - * The maximum voltage on the DC side at which the frequency converter should - * operate. - */ - IEC61970::Base::Domain::Voltage maxU; - /** - * The minimum active power on the DC side at which the frequence converter should - * operate. - */ - IEC61970::Base::Domain::ActivePower minP; - /** - * The minimum voltage on the DC side at which the frequency converter should - * operate. - */ - IEC61970::Base::Domain::Voltage minU; - - }; - - } - - } - -} -#endif // FREQUENCYCONVERTER_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/Fuse.cpp b/IEC61970_17v07/IEC61970/Base/Wires/Fuse.cpp deleted file mode 100644 index 4bdfba1b8..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/Fuse.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// Fuse.cpp -// Implementation of the Class Fuse -/////////////////////////////////////////////////////////// - -#include "Fuse.h" - -using IEC61970::Base::Wires::Fuse; - - -Fuse::Fuse(){ - -} - - - -Fuse::~Fuse(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/Fuse.h b/IEC61970_17v07/IEC61970/Base/Wires/Fuse.h deleted file mode 100644 index 11339ffa1..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/Fuse.h +++ /dev/null @@ -1,36 +0,0 @@ -/////////////////////////////////////////////////////////// -// Fuse.h -// Implementation of the Class Fuse -/////////////////////////////////////////////////////////// - -#ifndef FUSE_H -#define FUSE_H - -#include "IEC61970/Base/Wires/Switch.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * An overcurrent protective device with a circuit opening fusible part that is - * heated and severed by the passage of overcurrent through it. A fuse is - * considered a switching device because it breaks current. - */ - class Fuse : public IEC61970::Base::Wires::Switch - { - - public: - Fuse(); - virtual ~Fuse(); - - }; - - } - - } - -} -#endif // FUSE_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/Ground.cpp b/IEC61970_17v07/IEC61970/Base/Wires/Ground.cpp deleted file mode 100644 index 086c83ab1..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/Ground.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// Ground.cpp -// Implementation of the Class Ground -/////////////////////////////////////////////////////////// - -#include "Ground.h" - -using IEC61970::Base::Wires::Ground; - - -Ground::Ground(){ - -} - - - -Ground::~Ground(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/Ground.h b/IEC61970_17v07/IEC61970/Base/Wires/Ground.h deleted file mode 100644 index e9b920544..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/Ground.h +++ /dev/null @@ -1,35 +0,0 @@ -/////////////////////////////////////////////////////////// -// Ground.h -// Implementation of the Class Ground -/////////////////////////////////////////////////////////// - -#ifndef GROUND_H -#define GROUND_H - -#include "IEC61970/Base/Core/ConductingEquipment.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * A point where the system is grounded used for connecting conducting equipment - * to ground. The power system model can have any number of grounds. - */ - class Ground : public IEC61970::Base::Core::ConductingEquipment - { - - public: - Ground(); - virtual ~Ground(); - - }; - - } - - } - -} -#endif // GROUND_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/GroundDisconnector.cpp b/IEC61970_17v07/IEC61970/Base/Wires/GroundDisconnector.cpp deleted file mode 100644 index af9f6e900..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/GroundDisconnector.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// GroundDisconnector.cpp -// Implementation of the Class GroundDisconnector -/////////////////////////////////////////////////////////// - -#include "GroundDisconnector.h" - -using IEC61970::Base::Wires::GroundDisconnector; - - -GroundDisconnector::GroundDisconnector(){ - -} - - - -GroundDisconnector::~GroundDisconnector(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/GroundDisconnector.h b/IEC61970_17v07/IEC61970/Base/Wires/GroundDisconnector.h deleted file mode 100644 index 74669f330..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/GroundDisconnector.h +++ /dev/null @@ -1,35 +0,0 @@ -/////////////////////////////////////////////////////////// -// GroundDisconnector.h -// Implementation of the Class GroundDisconnector -/////////////////////////////////////////////////////////// - -#ifndef GROUNDDISCONNECTOR_H -#define GROUNDDISCONNECTOR_H - -#include "IEC61970/Base/Wires/Switch.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * A manually operated or motor operated mechanical switching device used for - * isolating a circuit or equipment from ground. - */ - class GroundDisconnector : public IEC61970::Base::Wires::Switch - { - - public: - GroundDisconnector(); - virtual ~GroundDisconnector(); - - }; - - } - - } - -} -#endif // GROUNDDISCONNECTOR_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/GroundingImpedance.cpp b/IEC61970_17v07/IEC61970/Base/Wires/GroundingImpedance.cpp deleted file mode 100644 index 2ef9e6a35..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/GroundingImpedance.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// GroundingImpedance.cpp -// Implementation of the Class GroundingImpedance -// Original author: kdemaree -/////////////////////////////////////////////////////////// - -#include "GroundingImpedance.h" - -using IEC61970::Base::Wires::GroundingImpedance; - - -GroundingImpedance::GroundingImpedance(){ - -} - - - -GroundingImpedance::~GroundingImpedance(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/GroundingImpedance.h b/IEC61970_17v07/IEC61970/Base/Wires/GroundingImpedance.h deleted file mode 100644 index 464a128ab..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/GroundingImpedance.h +++ /dev/null @@ -1,40 +0,0 @@ -/////////////////////////////////////////////////////////// -// GroundingImpedance.h -// Implementation of the Class GroundingImpedance -// Original author: kdemaree -/////////////////////////////////////////////////////////// - -#ifndef GROUNDINGIMPEDANCE_H -#define GROUNDINGIMPEDANCE_H - -#include "IEC61970/Base/Domain/Reactance.h" -#include "IEC61970/Base/Wires/EarthFaultCompensator.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * A fixed impedance device used for grounding. - */ - class GroundingImpedance : public IEC61970::Base::Wires::EarthFaultCompensator - { - - public: - GroundingImpedance(); - virtual ~GroundingImpedance(); - /** - * Reactance of device. - */ - IEC61970::Base::Domain::Reactance x; - - }; - - } - - } - -} -#endif // GROUNDINGIMPEDANCE_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/Jumper.cpp b/IEC61970_17v07/IEC61970/Base/Wires/Jumper.cpp deleted file mode 100644 index 71c59d7c4..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/Jumper.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// Jumper.cpp -// Implementation of the Class Jumper -/////////////////////////////////////////////////////////// - -#include "Jumper.h" - -using IEC61970::Base::Wires::Jumper; - - -Jumper::Jumper(){ - -} - - - -Jumper::~Jumper(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/Jumper.h b/IEC61970_17v07/IEC61970/Base/Wires/Jumper.h deleted file mode 100644 index af8683d37..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/Jumper.h +++ /dev/null @@ -1,36 +0,0 @@ -/////////////////////////////////////////////////////////// -// Jumper.h -// Implementation of the Class Jumper -/////////////////////////////////////////////////////////// - -#ifndef JUMPER_H -#define JUMPER_H - -#include "IEC61970/Base/Wires/Switch.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * A short section of conductor with negligible impedance which can be manually - * removed and replaced if the circuit is de-energized. Note that zero-impedance - * branches can potentially be modeled by other equipment types. - */ - class Jumper : public IEC61970::Base::Wires::Switch - { - - public: - Jumper(); - virtual ~Jumper(); - - }; - - } - - } - -} -#endif // JUMPER_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/Junction.cpp b/IEC61970_17v07/IEC61970/Base/Wires/Junction.cpp deleted file mode 100644 index 934df8312..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/Junction.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// Junction.cpp -// Implementation of the Class Junction -/////////////////////////////////////////////////////////// - -#include "Junction.h" - -using IEC61970::Base::Wires::Junction; - - -Junction::Junction(){ - -} - - - -Junction::~Junction(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/Junction.h b/IEC61970_17v07/IEC61970/Base/Wires/Junction.h deleted file mode 100644 index 69f460ac5..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/Junction.h +++ /dev/null @@ -1,35 +0,0 @@ -/////////////////////////////////////////////////////////// -// Junction.h -// Implementation of the Class Junction -/////////////////////////////////////////////////////////// - -#ifndef JUNCTION_H -#define JUNCTION_H - -#include "IEC61970/Base/Wires/Connector.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * A point where one or more conducting equipments are connected with zero - * resistance. - */ - class Junction : public IEC61970::Base::Wires::Connector - { - - public: - Junction(); - virtual ~Junction(); - - }; - - } - - } - -} -#endif // JUNCTION_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/Line.cpp b/IEC61970_17v07/IEC61970/Base/Wires/Line.cpp deleted file mode 100644 index d32406412..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/Line.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// Line.cpp -// Implementation of the Class Line -/////////////////////////////////////////////////////////// - -#include "Line.h" - -using IEC61970::Base::Wires::Line; - - -Line::Line(){ - -} - - - -Line::~Line(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/Line.h b/IEC61970_17v07/IEC61970/Base/Wires/Line.h deleted file mode 100644 index 9d560c9b6..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/Line.h +++ /dev/null @@ -1,34 +0,0 @@ -/////////////////////////////////////////////////////////// -// Line.h -// Implementation of the Class Line -/////////////////////////////////////////////////////////// - -#ifndef LINE_H -#define LINE_H - -#include "IEC61970/Base/Core/EquipmentContainer.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * Contains equipment beyond a substation belonging to a power transmission line. - */ - class Line : public IEC61970::Base::Core::EquipmentContainer - { - - public: - Line(); - virtual ~Line(); - - }; - - } - - } - -} -#endif // LINE_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/LinearShuntCompensator.cpp b/IEC61970_17v07/IEC61970/Base/Wires/LinearShuntCompensator.cpp deleted file mode 100644 index 8e1c61a6a..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/LinearShuntCompensator.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// LinearShuntCompensator.cpp -// Implementation of the Class LinearShuntCompensator -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#include "LinearShuntCompensator.h" - -using IEC61970::Base::Wires::LinearShuntCompensator; - - -LinearShuntCompensator::LinearShuntCompensator(){ - -} - - - -LinearShuntCompensator::~LinearShuntCompensator(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/LinearShuntCompensator.h b/IEC61970_17v07/IEC61970/Base/Wires/LinearShuntCompensator.h deleted file mode 100644 index abbb77c9d..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/LinearShuntCompensator.h +++ /dev/null @@ -1,53 +0,0 @@ -/////////////////////////////////////////////////////////// -// LinearShuntCompensator.h -// Implementation of the Class LinearShuntCompensator -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#ifndef LINEARSHUNTCOMPENSATOR_H -#define LINEARSHUNTCOMPENSATOR_H - -#include "IEC61970/Base/Domain/Susceptance.h" -#include "IEC61970/Base/Domain/Conductance.h" -#include "IEC61970/Base/Wires/ShuntCompensator.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * A linear shunt compensator has banks or sections with equal admittance values. - */ - class LinearShuntCompensator : public IEC61970::Base::Wires::ShuntCompensator - { - - public: - LinearShuntCompensator(); - virtual ~LinearShuntCompensator(); - /** - * Zero sequence shunt (charging) susceptance per section - */ - IEC61970::Base::Domain::Susceptance b0PerSection; - /** - * Positive sequence shunt (charging) susceptance per section - */ - IEC61970::Base::Domain::Susceptance bPerSection; - /** - * Zero sequence shunt (charging) conductance per section - */ - IEC61970::Base::Domain::Conductance g0PerSection; - /** - * Positive sequence shunt (charging) conductance per section - */ - IEC61970::Base::Domain::Conductance gPerSection; - - }; - - } - - } - -} -#endif // LINEARSHUNTCOMPENSATOR_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/LinearShuntCompensatorPhase.cpp b/IEC61970_17v07/IEC61970/Base/Wires/LinearShuntCompensatorPhase.cpp deleted file mode 100644 index 1f22bd035..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/LinearShuntCompensatorPhase.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// LinearShuntCompensatorPhase.cpp -// Implementation of the Class LinearShuntCompensatorPhase -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#include "LinearShuntCompensatorPhase.h" - -using IEC61970::Base::Wires::LinearShuntCompensatorPhase; - - -LinearShuntCompensatorPhase::LinearShuntCompensatorPhase(){ - -} - - - -LinearShuntCompensatorPhase::~LinearShuntCompensatorPhase(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/LinearShuntCompensatorPhase.h b/IEC61970_17v07/IEC61970/Base/Wires/LinearShuntCompensatorPhase.h deleted file mode 100644 index ec26b2619..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/LinearShuntCompensatorPhase.h +++ /dev/null @@ -1,48 +0,0 @@ -/////////////////////////////////////////////////////////// -// LinearShuntCompensatorPhase.h -// Implementation of the Class LinearShuntCompensatorPhase -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#ifndef LINEARSHUNTCOMPENSATORPHASE_H -#define LINEARSHUNTCOMPENSATORPHASE_H - -#include "IEC61970/Base/Domain/Susceptance.h" -#include "IEC61970/Base/Domain/Conductance.h" -#include "IEC61970/Base/Wires/ShuntCompensatorPhase.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * A per phase linear shunt compensator has banks or sections with equal - * admittance values. - */ - class LinearShuntCompensatorPhase : public IEC61970::Base::Wires::ShuntCompensatorPhase - { - - public: - LinearShuntCompensatorPhase(); - virtual ~LinearShuntCompensatorPhase(); - /** - * Susceptance per section of the phase if shunt compensator is wye connected. - * Susceptance per section phase to phase if shunt compensator is delta connected. - */ - IEC61970::Base::Domain::Susceptance bPerSection; - /** - * Conductance per section for this phase if shunt compensator is wye connected. - * Conductance per section phase to phase if shunt compensator is delta connected. - */ - IEC61970::Base::Domain::Conductance gPerSection; - - }; - - } - - } - -} -#endif // LINEARSHUNTCOMPENSATORPHASE_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/LoadBreakSwitch.cpp b/IEC61970_17v07/IEC61970/Base/Wires/LoadBreakSwitch.cpp deleted file mode 100644 index 6ad740dae..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/LoadBreakSwitch.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// LoadBreakSwitch.cpp -// Implementation of the Class LoadBreakSwitch -/////////////////////////////////////////////////////////// - -#include "LoadBreakSwitch.h" - -using IEC61970::Base::Wires::LoadBreakSwitch; - - -LoadBreakSwitch::LoadBreakSwitch(){ - -} - - - -LoadBreakSwitch::~LoadBreakSwitch(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/LoadBreakSwitch.h b/IEC61970_17v07/IEC61970/Base/Wires/LoadBreakSwitch.h deleted file mode 100644 index 84e4f605e..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/LoadBreakSwitch.h +++ /dev/null @@ -1,35 +0,0 @@ -/////////////////////////////////////////////////////////// -// LoadBreakSwitch.h -// Implementation of the Class LoadBreakSwitch -/////////////////////////////////////////////////////////// - -#ifndef LOADBREAKSWITCH_H -#define LOADBREAKSWITCH_H - -#include "IEC61970/Base/Wires/ProtectedSwitch.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * A mechanical switching device capable of making, carrying, and breaking - * currents under normal operating conditions. - */ - class LoadBreakSwitch : public IEC61970::Base::Wires::ProtectedSwitch - { - - public: - LoadBreakSwitch(); - virtual ~LoadBreakSwitch(); - - }; - - } - - } - -} -#endif // LOADBREAKSWITCH_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/MutualCoupling.cpp b/IEC61970_17v07/IEC61970/Base/Wires/MutualCoupling.cpp deleted file mode 100644 index a4a52069c..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/MutualCoupling.cpp +++ /dev/null @@ -1,21 +0,0 @@ -/////////////////////////////////////////////////////////// -// MutualCoupling.cpp -// Implementation of the Class MutualCoupling -/////////////////////////////////////////////////////////// - -#include "MutualCoupling.h" - -using IEC61970::Base::Wires::MutualCoupling; - - -MutualCoupling::MutualCoupling() - : First_Terminal(nullptr), Second_Terminal(nullptr) -{ - -} - - - -MutualCoupling::~MutualCoupling(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/MutualCoupling.h b/IEC61970_17v07/IEC61970/Base/Wires/MutualCoupling.h deleted file mode 100644 index 6c466dc74..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/MutualCoupling.h +++ /dev/null @@ -1,90 +0,0 @@ -/////////////////////////////////////////////////////////// -// MutualCoupling.h -// Implementation of the Class MutualCoupling -/////////////////////////////////////////////////////////// - -#ifndef MUTUALCOUPLING_H -#define MUTUALCOUPLING_H - -#include "IEC61970/Base/Domain/Susceptance.h" -#include "IEC61970/Base/Domain/Length.h" -#include "IEC61970/Base/Domain/Conductance.h" -#include "IEC61970/Base/Domain/Resistance.h" -#include "IEC61970/Base/Domain/Reactance.h" -#include "IEC61970/Base/Core/Terminal.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * This class represents the zero sequence line mutual coupling. - */ - class MutualCoupling : public IEC61970::Base::Core::IdentifiedObject - { - - public: - MutualCoupling(); - virtual ~MutualCoupling(); - /** - * Zero sequence mutual coupling shunt (charging) susceptance, uniformly - * distributed, of the entire line section. - */ - IEC61970::Base::Domain::Susceptance b0ch; - /** - * Distance to the start of the coupled region from the first line's terminal - * having sequence number equal to 1. - */ - IEC61970::Base::Domain::Length distance11; - /** - * Distance to the end of the coupled region from the first line's terminal with - * sequence number equal to 1. - */ - IEC61970::Base::Domain::Length distance12; - /** - * Distance to the start of coupled region from the second line's terminal with - * sequence number equal to 1. - */ - IEC61970::Base::Domain::Length distance21; - /** - * Distance to the end of coupled region from the second line's terminal with - * sequence number equal to 1. - */ - IEC61970::Base::Domain::Length distance22; - /** - * Zero sequence mutual coupling shunt (charging) conductance, uniformly - * distributed, of the entire line section. - */ - IEC61970::Base::Domain::Conductance g0ch; - /** - * Zero sequence branch-to-branch mutual impedance coupling, resistance. - */ - IEC61970::Base::Domain::Resistance r0; - /** - * Zero sequence branch-to-branch mutual impedance coupling, reactance. - */ - IEC61970::Base::Domain::Reactance x0; - /** - * The starting terminal for the calculation of distances along the first branch - * of the mutual coupling. Normally MutualCoupling would only be used for - * terminals of AC line segments. The first and second terminals of a mutual - * coupling should point to different AC line segments. - */ - IEC61970::Base::Core::Terminal *First_Terminal; - /** - * The starting terminal for the calculation of distances along the second branch - * of the mutual coupling. - */ - IEC61970::Base::Core::Terminal *Second_Terminal; - - }; - - } - - } - -} -#endif // MUTUALCOUPLING_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/NonRotatingEnergy.cpp b/IEC61970_17v07/IEC61970/Base/Wires/NonRotatingEnergy.cpp deleted file mode 100644 index a2cb5b1cc..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/NonRotatingEnergy.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// NonRotatingEnergy.cpp -// Implementation of the Class NonRotatingEnergy -/////////////////////////////////////////////////////////// - -#include "NonRotatingEnergy.h" - -using IEC61970::Base::Wires::NonRotatingEnergy; - - -NonRotatingEnergy::NonRotatingEnergy(){ - -} - - - -NonRotatingEnergy::~NonRotatingEnergy(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/NonRotatingEnergy.h b/IEC61970_17v07/IEC61970/Base/Wires/NonRotatingEnergy.h deleted file mode 100644 index cc7a1e610..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/NonRotatingEnergy.h +++ /dev/null @@ -1,95 +0,0 @@ -/////////////////////////////////////////////////////////// -// NonRotatingEnergy.h -// Implementation of the Class NonRotatingEnergy -/////////////////////////////////////////////////////////// - -#ifndef NONROTATINGENERGY_H -#define NONROTATINGENERGY_H - -#include "IEC61970/Base/Domain/ActivePower.h" -#include "IEC61970/Base/Domain/ReactivePower.h" -#include "IEC61970/Base/Domain/Resistance.h" -#include "IEC61970/Base/Domain/Reactance.h" -#include "IEC61970/Base/Wires/RegulatingCondEq.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * A single terminal energy source which is not considered to be a rotating source. - * Source could be a DC to AC connection with either a single generator or an - * aggregation of generators such as Type 3 and 4 wind turbines, solar, tidal, or - * other types of asynchronous energy production. This class is meant to be a - * single aggregate device which represents single or multiple sources connected - * to the AC network through a single static connection. - */ - class NonRotatingEnergy : public IEC61970::Base::Wires::RegulatingCondEq - { - - public: - NonRotatingEnergy(); - virtual ~NonRotatingEnergy(); - /** - * Maximum active power of the injection. - */ - IEC61970::Base::Domain::ActivePower maxP; - /** - * Maximum reactive power of the injection. - */ - IEC61970::Base::Domain::ReactivePower maxQ; - /** - * Minimum active power of the injection. - */ - IEC61970::Base::Domain::ActivePower minP; - /** - * Minimum reactive power of the injection. - */ - IEC61970::Base::Domain::ReactivePower minQ; - /** - * Active power injection. Load sign convention is used, i.e. positive sign means - * flow out from a node. - * Starting value for steady state solutions. - */ - IEC61970::Base::Domain::ActivePower p; - /** - * Reactive power injection. Load sign convention is used, i.e. positive sign - * means flow out from a node. - * Starting value for steady state solutions. - */ - IEC61970::Base::Domain::ReactivePower q; - /** - * Positive sequence Thevenin resistance. - */ - IEC61970::Base::Domain::Resistance r; - /** - * Zero sequence Thevenin resistance. - */ - IEC61970::Base::Domain::Resistance r0; - /** - * Negative sequence Thevenin resistance. - */ - IEC61970::Base::Domain::Resistance rn; - /** - * Positive sequence Thevenin reactance. - */ - IEC61970::Base::Domain::Reactance x; - /** - * Zero sequence Thevenin reactance. - */ - IEC61970::Base::Domain::Reactance x0; - /** - * Negative sequence Thevenin reactance. - */ - IEC61970::Base::Domain::Reactance xn; - - }; - - } - - } - -} -#endif // NONROTATINGENERGY_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/NonlinearShuntCompensator.cpp b/IEC61970_17v07/IEC61970/Base/Wires/NonlinearShuntCompensator.cpp deleted file mode 100644 index da15cf138..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/NonlinearShuntCompensator.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// NonlinearShuntCompensator.cpp -// Implementation of the Class NonlinearShuntCompensator -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#include "NonlinearShuntCompensator.h" - -using IEC61970::Base::Wires::NonlinearShuntCompensator; - - -NonlinearShuntCompensator::NonlinearShuntCompensator(){ - -} - - - -NonlinearShuntCompensator::~NonlinearShuntCompensator(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/NonlinearShuntCompensator.h b/IEC61970_17v07/IEC61970/Base/Wires/NonlinearShuntCompensator.h deleted file mode 100644 index 08322f212..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/NonlinearShuntCompensator.h +++ /dev/null @@ -1,43 +0,0 @@ -/////////////////////////////////////////////////////////// -// NonlinearShuntCompensator.h -// Implementation of the Class NonlinearShuntCompensator -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#ifndef NONLINEARSHUNTCOMPENSATOR_H -#define NONLINEARSHUNTCOMPENSATOR_H - -#include - -#include "IEC61970/Base/Wires/ShuntCompensator.h" -#include "IEC61970/Base/Wires/NonlinearShuntCompensatorPoint.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * A non linear shunt compensator has bank or section admittance values that - * differs. - */ - class NonlinearShuntCompensator : public IEC61970::Base::Wires::ShuntCompensator - { - - public: - NonlinearShuntCompensator(); - virtual ~NonlinearShuntCompensator(); - /** - * All points of the non-linear shunt compensator. - */ - std::list NonlinearShuntCompensatorPoints; - - }; - - } - - } - -} -#endif // NONLINEARSHUNTCOMPENSATOR_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/NonlinearShuntCompensatorPhase.cpp b/IEC61970_17v07/IEC61970/Base/Wires/NonlinearShuntCompensatorPhase.cpp deleted file mode 100644 index 72dd20a17..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/NonlinearShuntCompensatorPhase.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// NonlinearShuntCompensatorPhase.cpp -// Implementation of the Class NonlinearShuntCompensatorPhase -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#include "NonlinearShuntCompensatorPhase.h" - -using IEC61970::Base::Wires::NonlinearShuntCompensatorPhase; - - -NonlinearShuntCompensatorPhase::NonlinearShuntCompensatorPhase(){ - -} - - - -NonlinearShuntCompensatorPhase::~NonlinearShuntCompensatorPhase(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/NonlinearShuntCompensatorPhase.h b/IEC61970_17v07/IEC61970/Base/Wires/NonlinearShuntCompensatorPhase.h deleted file mode 100644 index 8eb431864..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/NonlinearShuntCompensatorPhase.h +++ /dev/null @@ -1,43 +0,0 @@ -/////////////////////////////////////////////////////////// -// NonlinearShuntCompensatorPhase.h -// Implementation of the Class NonlinearShuntCompensatorPhase -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#ifndef NONLINEARSHUNTCOMPENSATORPHASE_H -#define NONLINEARSHUNTCOMPENSATORPHASE_H - -#include - -#include "IEC61970/Base/Wires/ShuntCompensatorPhase.h" -#include "IEC61970/Base/Wires/NonlinearShuntCompensatorPhasePoint.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * A per phase non linear shunt compensator has bank or section admittance values - * that differs. - */ - class NonlinearShuntCompensatorPhase : public IEC61970::Base::Wires::ShuntCompensatorPhase - { - - public: - NonlinearShuntCompensatorPhase(); - virtual ~NonlinearShuntCompensatorPhase(); - /** - * All points of the non-linear shunt compensator phase. - */ - std::list NonlinearShuntCompensatorPhasePoints; - - }; - - } - - } - -} -#endif // NONLINEARSHUNTCOMPENSATORPHASE_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/NonlinearShuntCompensatorPhasePoint.cpp b/IEC61970_17v07/IEC61970/Base/Wires/NonlinearShuntCompensatorPhasePoint.cpp deleted file mode 100644 index 0901c01e4..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/NonlinearShuntCompensatorPhasePoint.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// NonlinearShuntCompensatorPhasePoint.cpp -// Implementation of the Class NonlinearShuntCompensatorPhasePoint -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#include "NonlinearShuntCompensatorPhasePoint.h" - -using IEC61970::Base::Wires::NonlinearShuntCompensatorPhasePoint; - - -NonlinearShuntCompensatorPhasePoint::NonlinearShuntCompensatorPhasePoint(){ - -} - - - -NonlinearShuntCompensatorPhasePoint::~NonlinearShuntCompensatorPhasePoint(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/NonlinearShuntCompensatorPhasePoint.h b/IEC61970_17v07/IEC61970/Base/Wires/NonlinearShuntCompensatorPhasePoint.h deleted file mode 100644 index 8d7783d99..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/NonlinearShuntCompensatorPhasePoint.h +++ /dev/null @@ -1,50 +0,0 @@ -/////////////////////////////////////////////////////////// -// NonlinearShuntCompensatorPhasePoint.h -// Implementation of the Class NonlinearShuntCompensatorPhasePoint -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#ifndef NONLINEARSHUNTCOMPENSATORPHASEPOINT_H -#define NONLINEARSHUNTCOMPENSATORPHASEPOINT_H - -#include "BaseClass.h" -#include "IEC61970/Base/Domain/Susceptance.h" -#include "IEC61970/Base/Domain/Conductance.h" -#include "IEC61970/Base/Domain/Integer.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * A per phase non linear shunt compensator bank or section admittance value. - */ - class NonlinearShuntCompensatorPhasePoint : public BaseClass - { - - public: - NonlinearShuntCompensatorPhasePoint(); - virtual ~NonlinearShuntCompensatorPhasePoint(); - /** - * Positive sequence shunt (charging) susceptance per section - */ - IEC61970::Base::Domain::Susceptance b; - /** - * Positive sequence shunt (charging) conductance per section - */ - IEC61970::Base::Domain::Conductance g; - /** - * The number of the section. - */ - IEC61970::Base::Domain::Integer sectionNumber; - - }; - - } - - } - -} -#endif // NONLINEARSHUNTCOMPENSATORPHASEPOINT_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/NonlinearShuntCompensatorPoint.cpp b/IEC61970_17v07/IEC61970/Base/Wires/NonlinearShuntCompensatorPoint.cpp deleted file mode 100644 index 7d8565155..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/NonlinearShuntCompensatorPoint.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// NonlinearShuntCompensatorPoint.cpp -// Implementation of the Class NonlinearShuntCompensatorPoint -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#include "NonlinearShuntCompensatorPoint.h" - -using IEC61970::Base::Wires::NonlinearShuntCompensatorPoint; - - -NonlinearShuntCompensatorPoint::NonlinearShuntCompensatorPoint(){ - -} - - - -NonlinearShuntCompensatorPoint::~NonlinearShuntCompensatorPoint(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/NonlinearShuntCompensatorPoint.h b/IEC61970_17v07/IEC61970/Base/Wires/NonlinearShuntCompensatorPoint.h deleted file mode 100644 index efdbe5e60..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/NonlinearShuntCompensatorPoint.h +++ /dev/null @@ -1,58 +0,0 @@ -/////////////////////////////////////////////////////////// -// NonlinearShuntCompensatorPoint.h -// Implementation of the Class NonlinearShuntCompensatorPoint -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#ifndef NONLINEARSHUNTCOMPENSATORPOINT_H -#define NONLINEARSHUNTCOMPENSATORPOINT_H - -#include "BaseClass.h" -#include "IEC61970/Base/Domain/Susceptance.h" -#include "IEC61970/Base/Domain/Conductance.h" -#include "IEC61970/Base/Domain/Integer.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * A non linear shunt compensator bank or section admittance value. - */ - class NonlinearShuntCompensatorPoint : public BaseClass - { - - public: - NonlinearShuntCompensatorPoint(); - virtual ~NonlinearShuntCompensatorPoint(); - /** - * Positive sequence shunt (charging) susceptance per section - */ - IEC61970::Base::Domain::Susceptance b; - /** - * Zero sequence shunt (charging) susceptance per section - */ - IEC61970::Base::Domain::Susceptance b0; - /** - * Positive sequence shunt (charging) conductance per section - */ - IEC61970::Base::Domain::Conductance g; - /** - * Zero sequence shunt (charging) conductance per section - */ - IEC61970::Base::Domain::Conductance g0; - /** - * The number of the section. - */ - IEC61970::Base::Domain::Integer sectionNumber; - - }; - - } - - } - -} -#endif // NONLINEARSHUNTCOMPENSATORPOINT_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/PerLengthImpedance.cpp b/IEC61970_17v07/IEC61970/Base/Wires/PerLengthImpedance.cpp deleted file mode 100644 index 2533c9882..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/PerLengthImpedance.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// PerLengthImpedance.cpp -// Implementation of the Class PerLengthImpedance -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#include "PerLengthImpedance.h" - -using IEC61970::Base::Wires::PerLengthImpedance; - - -PerLengthImpedance::PerLengthImpedance(){ - -} - - - -PerLengthImpedance::~PerLengthImpedance(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/PerLengthImpedance.h b/IEC61970_17v07/IEC61970/Base/Wires/PerLengthImpedance.h deleted file mode 100644 index 1a6dea28f..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/PerLengthImpedance.h +++ /dev/null @@ -1,42 +0,0 @@ -/////////////////////////////////////////////////////////// -// PerLengthImpedance.h -// Implementation of the Class PerLengthImpedance -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#ifndef PERLENGTHIMPEDANCE_H -#define PERLENGTHIMPEDANCE_H - -#include - -#include "IEC61970/Base/Wires/ACLineSegment.h" -#include "IEC61970/Base/Wires/PerLengthLineParameter.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * Common type for per-length impedance electrical catalogues. - */ - class PerLengthImpedance : public IEC61970::Base::Wires::PerLengthLineParameter - { - - public: - PerLengthImpedance(); - virtual ~PerLengthImpedance(); - /** - * All line segments described by this per-length impedance. - */ - std::list ACLineSegments; - - }; - - } - - } - -} -#endif // PERLENGTHIMPEDANCE_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/PerLengthLineParameter.cpp b/IEC61970_17v07/IEC61970/Base/Wires/PerLengthLineParameter.cpp deleted file mode 100644 index d2a1f8c01..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/PerLengthLineParameter.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// PerLengthLineParameter.cpp -// Implementation of the Class PerLengthLineParameter -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#include "PerLengthLineParameter.h" - -using IEC61970::Base::Wires::PerLengthLineParameter; - - -PerLengthLineParameter::PerLengthLineParameter(){ - -} - - - -PerLengthLineParameter::~PerLengthLineParameter(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/PerLengthLineParameter.h b/IEC61970_17v07/IEC61970/Base/Wires/PerLengthLineParameter.h deleted file mode 100644 index 6b723dcd7..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/PerLengthLineParameter.h +++ /dev/null @@ -1,35 +0,0 @@ -/////////////////////////////////////////////////////////// -// PerLengthLineParameter.h -// Implementation of the Class PerLengthLineParameter -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#ifndef PERLENGTHLINEPARAMETER_H -#define PERLENGTHLINEPARAMETER_H - -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * Common type for per-length electrical catalogues describing line parameters. - */ - class PerLengthLineParameter : public IEC61970::Base::Core::IdentifiedObject - { - - public: - PerLengthLineParameter(); - virtual ~PerLengthLineParameter(); - - }; - - } - - } - -} -#endif // PERLENGTHLINEPARAMETER_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/PerLengthPhaseImpedance.cpp b/IEC61970_17v07/IEC61970/Base/Wires/PerLengthPhaseImpedance.cpp deleted file mode 100644 index 20182c298..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/PerLengthPhaseImpedance.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// PerLengthPhaseImpedance.cpp -// Implementation of the Class PerLengthPhaseImpedance -// Original author: Tom -/////////////////////////////////////////////////////////// - -#include "PerLengthPhaseImpedance.h" - -using IEC61970::Base::Wires::PerLengthPhaseImpedance; - - -PerLengthPhaseImpedance::PerLengthPhaseImpedance(){ - -} - - - -PerLengthPhaseImpedance::~PerLengthPhaseImpedance(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/PerLengthPhaseImpedance.h b/IEC61970_17v07/IEC61970/Base/Wires/PerLengthPhaseImpedance.h deleted file mode 100644 index 86a992b70..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/PerLengthPhaseImpedance.h +++ /dev/null @@ -1,49 +0,0 @@ -/////////////////////////////////////////////////////////// -// PerLengthPhaseImpedance.h -// Implementation of the Class PerLengthPhaseImpedance -// Original author: Tom -/////////////////////////////////////////////////////////// - -#ifndef PERLENGTHPHASEIMPEDANCE_H -#define PERLENGTHPHASEIMPEDANCE_H - -#include - -#include "IEC61970/Base/Domain/Integer.h" -#include "IEC61970/Base/Wires/PhaseImpedanceData.h" -#include "IEC61970/Base/Wires/PerLengthImpedance.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * Impedance and admittance parameters per unit length for n-wire unbalanced lines, - * in matrix form. - */ - class PerLengthPhaseImpedance : public IEC61970::Base::Wires::PerLengthImpedance - { - - public: - PerLengthPhaseImpedance(); - virtual ~PerLengthPhaseImpedance(); - /** - * Number of phase, neutral, and other wires retained. Constrains the number of - * matrix elements and the phase codes that can be used with this matrix. - */ - IEC61970::Base::Domain::Integer conductorCount; - /** - * All data that belong to this conductor phase impedance. - */ - std::list PhaseImpedanceData; - - }; - - } - - } - -} -#endif // PERLENGTHPHASEIMPEDANCE_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/PerLengthSequenceImpedance.cpp b/IEC61970_17v07/IEC61970/Base/Wires/PerLengthSequenceImpedance.cpp deleted file mode 100644 index f048f3128..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/PerLengthSequenceImpedance.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// PerLengthSequenceImpedance.cpp -// Implementation of the Class PerLengthSequenceImpedance -// Original author: Tom -/////////////////////////////////////////////////////////// - -#include "PerLengthSequenceImpedance.h" - -using IEC61970::Base::Wires::PerLengthSequenceImpedance; - - -PerLengthSequenceImpedance::PerLengthSequenceImpedance(){ - -} - - - -PerLengthSequenceImpedance::~PerLengthSequenceImpedance(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/PerLengthSequenceImpedance.h b/IEC61970_17v07/IEC61970/Base/Wires/PerLengthSequenceImpedance.h deleted file mode 100644 index 782b31539..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/PerLengthSequenceImpedance.h +++ /dev/null @@ -1,73 +0,0 @@ -/////////////////////////////////////////////////////////// -// PerLengthSequenceImpedance.h -// Implementation of the Class PerLengthSequenceImpedance -// Original author: Tom -/////////////////////////////////////////////////////////// - -#ifndef PERLENGTHSEQUENCEIMPEDANCE_H -#define PERLENGTHSEQUENCEIMPEDANCE_H - -#include "IEC61970/Base/Domain/SusceptancePerLength.h" -#include "IEC61970/Base/Domain/ConductancePerLength.h" -#include "IEC61970/Base/Domain/ResistancePerLength.h" -#include "IEC61970/Base/Domain/ReactancePerLength.h" -#include "IEC61970/Base/Wires/PerLengthImpedance.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * Sequence impedance and admittance parameters per unit length, for transposed - * lines of 1, 2, or 3 phases. For 1-phase lines, define x=x0=xself. For 2-phase - * lines, define x=xs-xm and x0=xs+xm. - */ - class PerLengthSequenceImpedance : public IEC61970::Base::Wires::PerLengthImpedance - { - - public: - PerLengthSequenceImpedance(); - virtual ~PerLengthSequenceImpedance(); - /** - * Zero sequence shunt (charging) susceptance, per unit of length. - */ - IEC61970::Base::Domain::SusceptancePerLength b0ch; - /** - * Positive sequence shunt (charging) susceptance, per unit of length. - */ - IEC61970::Base::Domain::SusceptancePerLength bch; - /** - * Zero sequence shunt (charging) conductance, per unit of length. - */ - IEC61970::Base::Domain::ConductancePerLength g0ch; - /** - * Positive sequence shunt (charging) conductance, per unit of length. - */ - IEC61970::Base::Domain::ConductancePerLength gch; - /** - * Positive sequence series resistance, per unit of length. - */ - IEC61970::Base::Domain::ResistancePerLength r; - /** - * Zero sequence series resistance, per unit of length. - */ - IEC61970::Base::Domain::ResistancePerLength r0; - /** - * Positive sequence series reactance, per unit of length. - */ - IEC61970::Base::Domain::ReactancePerLength x; - /** - * Zero sequence series reactance, per unit of length. - */ - IEC61970::Base::Domain::ReactancePerLength x0; - - }; - - } - - } - -} -#endif // PERLENGTHSEQUENCEIMPEDANCE_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/PetersenCoil.cpp b/IEC61970_17v07/IEC61970/Base/Wires/PetersenCoil.cpp deleted file mode 100644 index 61f0d5435..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/PetersenCoil.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// PetersenCoil.cpp -// Implementation of the Class PetersenCoil -// Original author: kdemaree -/////////////////////////////////////////////////////////// - -#include "PetersenCoil.h" - -using IEC61970::Base::Wires::PetersenCoil; - - -PetersenCoil::PetersenCoil(){ - -} - - - -PetersenCoil::~PetersenCoil(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/PetersenCoil.h b/IEC61970_17v07/IEC61970/Base/Wires/PetersenCoil.h deleted file mode 100644 index 6d5c3667e..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/PetersenCoil.h +++ /dev/null @@ -1,75 +0,0 @@ -/////////////////////////////////////////////////////////// -// PetersenCoil.h -// Implementation of the Class PetersenCoil -// Original author: kdemaree -/////////////////////////////////////////////////////////// - -#ifndef PETERSENCOIL_H -#define PETERSENCOIL_H - -#include "IEC61970/Base/Wires/PetersenCoilModeKind.h" -#include "IEC61970/Base/Domain/Voltage.h" -#include "IEC61970/Base/Domain/CurrentFlow.h" -#include "IEC61970/Base/Domain/Reactance.h" -#include "IEC61970/Base/Wires/EarthFaultCompensator.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * A tunable impedance device normally used to offset line charging during single - * line faults in an ungrounded section of network. - */ - class PetersenCoil : public IEC61970::Base::Wires::EarthFaultCompensator - { - - public: - PetersenCoil(); - virtual ~PetersenCoil(); - /** - * The mode of operation of the Petersen coil. - */ - IEC61970::Base::Wires::PetersenCoilModeKind mode = IEC61970::Base::Wires::PetersenCoilModeKind::_undef; - /** - * The nominal voltage for which the coil is designed. - */ - IEC61970::Base::Domain::Voltage nominalU; - /** - * The offset current that the Petersen coil controller is operating from the - * resonant point. This is normally a fixed amount for which the controller is - * configured and could be positive or negative. Typically 0 to 60 Amperes - * depending on voltage and resonance conditions. - */ - IEC61970::Base::Domain::CurrentFlow offsetCurrent; - /** - * The control current used to control the Petersen coil also known as the - * position current. Typically in the range of 20-200mA. - */ - IEC61970::Base::Domain::CurrentFlow positionCurrent; - /** - * The maximum reactance. - */ - IEC61970::Base::Domain::Reactance xGroundMax; - /** - * The minimum reactance. - */ - IEC61970::Base::Domain::Reactance xGroundMin; - /** - * The nominal reactance. This is the operating point (normally over - * compensation) that is defined based on the resonance point in the healthy - * network condition. The impedance is calculated based on nominal voltage - * divided by position current. - */ - IEC61970::Base::Domain::Reactance xGroundNominal; - - }; - - } - - } - -} -#endif // PETERSENCOIL_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/PetersenCoilModeKind.h b/IEC61970_17v07/IEC61970/Base/Wires/PetersenCoilModeKind.h deleted file mode 100644 index 643a37478..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/PetersenCoilModeKind.h +++ /dev/null @@ -1,40 +0,0 @@ -/////////////////////////////////////////////////////////// -// PetersenCoilModeKind.h -// Implementation of the Class PetersenCoilModeKind -// Original author: kdemaree -/////////////////////////////////////////////////////////// - -#ifndef PETERSENCOILMODEKIND_H -#define PETERSENCOILMODEKIND_H - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * The mode of operation for a Petersen coil. - */ - enum class PetersenCoilModeKind - { - /** - * Fixed position. - */ - _undef = -1, fixed, - /** - * Manual positioning. - */ - manual, - /** - * Automatic positioning. - */ - automaticPositioning - }; - - } - - } - -} -#endif // PETERSENCOILMODEKIND_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/PhaseImpedanceData.cpp b/IEC61970_17v07/IEC61970/Base/Wires/PhaseImpedanceData.cpp deleted file mode 100644 index 8acd97eba..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/PhaseImpedanceData.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// PhaseImpedanceData.cpp -// Implementation of the Class PhaseImpedanceData -// Original author: Tom -/////////////////////////////////////////////////////////// - -#include "PhaseImpedanceData.h" - -using IEC61970::Base::Wires::PhaseImpedanceData; - - -PhaseImpedanceData::PhaseImpedanceData(){ - -} - - - -PhaseImpedanceData::~PhaseImpedanceData(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/PhaseImpedanceData.h b/IEC61970_17v07/IEC61970/Base/Wires/PhaseImpedanceData.h deleted file mode 100644 index 28f87530e..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/PhaseImpedanceData.h +++ /dev/null @@ -1,58 +0,0 @@ -/////////////////////////////////////////////////////////// -// PhaseImpedanceData.h -// Implementation of the Class PhaseImpedanceData -// Original author: Tom -/////////////////////////////////////////////////////////// - -#ifndef PHASEIMPEDANCEDATA_H -#define PHASEIMPEDANCEDATA_H - -#include "BaseClass.h" -#include "IEC61970/Base/Domain/SusceptancePerLength.h" -#include "IEC61970/Base/Domain/ResistancePerLength.h" -#include "IEC61970/Base/Domain/Integer.h" -#include "IEC61970/Base/Domain/ReactancePerLength.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * Triplet of resistance, reactance, and susceptance matrix element values. - */ - class PhaseImpedanceData : public BaseClass - { - - public: - PhaseImpedanceData(); - virtual ~PhaseImpedanceData(); - /** - * Susceptance matrix element value, per length of unit. - */ - IEC61970::Base::Domain::SusceptancePerLength b; - /** - * Resistance matrix element value, per length of unit. - */ - IEC61970::Base::Domain::ResistancePerLength r; - /** - * Column-wise element index, assuming a symmetrical matrix. Ranges from 1 to N + - * N*(N-1)/2, where N is the number of phases possibly including neutral. For - * instance, with N=4, column 1 = [1 2 3 4 ], column 2 = [- 5 6 7 ], column 3 = [- - * - 8 9], column 4 = [- - - 10]. - */ - IEC61970::Base::Domain::Integer sequenceNumber; - /** - * Reactance matrix element value, per length of unit. - */ - IEC61970::Base::Domain::ReactancePerLength x; - - }; - - } - - } - -} -#endif // PHASEIMPEDANCEDATA_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/PhaseShuntConnectionKind.h b/IEC61970_17v07/IEC61970/Base/Wires/PhaseShuntConnectionKind.h deleted file mode 100644 index 349164494..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/PhaseShuntConnectionKind.h +++ /dev/null @@ -1,51 +0,0 @@ -/////////////////////////////////////////////////////////// -// PhaseShuntConnectionKind.h -// Implementation of the Class PhaseShuntConnectionKind -// Original author: kdemaree -/////////////////////////////////////////////////////////// - -#ifndef PHASESHUNTCONNECTIONKIND_H -#define PHASESHUNTCONNECTIONKIND_H - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * The configuration of phase connections for a single terminal device such as a - * load or capacitor. - */ - enum class PhaseShuntConnectionKind - { - /** - * Delta connection. - */ - _undef = -1, D = 1, - /** - * Wye connection. - */ - Y = 2, - /** - * Wye, with neutral brought out for grounding. - */ - Yn = 3, - /** - * Independent winding, for single-phase connections. - */ - I = 4, - /** - * Ground connection; use when explicit connection to ground needs to be expressed - * in combination with the phase code, such as for electrical wire/cable or for - * meters. - */ - G = 5 - }; - - } - - } - -} -#endif // PHASESHUNTCONNECTIONKIND_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/PhaseTapChanger.cpp b/IEC61970_17v07/IEC61970/Base/Wires/PhaseTapChanger.cpp deleted file mode 100644 index b79be6bf4..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/PhaseTapChanger.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// PhaseTapChanger.cpp -// Implementation of the Class PhaseTapChanger -// Original author: kdd -/////////////////////////////////////////////////////////// - -#include "PhaseTapChanger.h" - -using IEC61970::Base::Wires::PhaseTapChanger; - - -PhaseTapChanger::PhaseTapChanger(){ - -} - - - -PhaseTapChanger::~PhaseTapChanger(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/PhaseTapChanger.h b/IEC61970_17v07/IEC61970/Base/Wires/PhaseTapChanger.h deleted file mode 100644 index 56755b4e7..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/PhaseTapChanger.h +++ /dev/null @@ -1,37 +0,0 @@ -/////////////////////////////////////////////////////////// -// PhaseTapChanger.h -// Implementation of the Class PhaseTapChanger -// Original author: kdd -/////////////////////////////////////////////////////////// - -#ifndef PHASETAPCHANGER_H -#define PHASETAPCHANGER_H - -#include "IEC61970/Base/Wires/TapChanger.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * A transformer phase shifting tap model that controls the phase angle difference - * across the power transformer and potentially the active power flow through the - * power transformer. This phase tap model may also impact the voltage magnitude. - */ - class PhaseTapChanger : public IEC61970::Base::Wires::TapChanger - { - - public: - PhaseTapChanger(); - virtual ~PhaseTapChanger(); - - }; - - } - - } - -} -#endif // PHASETAPCHANGER_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/PhaseTapChangerAsymmetrical.cpp b/IEC61970_17v07/IEC61970/Base/Wires/PhaseTapChangerAsymmetrical.cpp deleted file mode 100644 index 8e83b7254..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/PhaseTapChangerAsymmetrical.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// PhaseTapChangerAsymmetrical.cpp -// Implementation of the Class PhaseTapChangerAsymmetrical -// Original author: SELAOST1 -/////////////////////////////////////////////////////////// - -#include "PhaseTapChangerAsymmetrical.h" - -using IEC61970::Base::Wires::PhaseTapChangerAsymmetrical; - - -PhaseTapChangerAsymmetrical::PhaseTapChangerAsymmetrical(){ - -} - - - -PhaseTapChangerAsymmetrical::~PhaseTapChangerAsymmetrical(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/PhaseTapChangerAsymmetrical.h b/IEC61970_17v07/IEC61970/Base/Wires/PhaseTapChangerAsymmetrical.h deleted file mode 100644 index 1d51e5cf7..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/PhaseTapChangerAsymmetrical.h +++ /dev/null @@ -1,47 +0,0 @@ -/////////////////////////////////////////////////////////// -// PhaseTapChangerAsymmetrical.h -// Implementation of the Class PhaseTapChangerAsymmetrical -// Original author: SELAOST1 -/////////////////////////////////////////////////////////// - -#ifndef PHASETAPCHANGERASYMMETRICAL_H -#define PHASETAPCHANGERASYMMETRICAL_H - -#include "IEC61970/Base/Domain/AngleDegrees.h" -#include "IEC61970/Base/Wires/PhaseTapChangerNonLinear.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * Describes the tap model for an asymmetrical phase shifting transformer in which - * the difference voltage vector adds to the primary side voltage. The angle - * between the primary side voltage and the difference voltage is named the - * winding connection angle. The phase shift depends on both the difference - * voltage magnitude and the winding connection angle. - */ - class PhaseTapChangerAsymmetrical : public IEC61970::Base::Wires::PhaseTapChangerNonLinear - { - - public: - PhaseTapChangerAsymmetrical(); - virtual ~PhaseTapChangerAsymmetrical(); - /** - * The phase angle between the in-phase winding and the out-of -phase winding used - * for creating phase shift. The out-of-phase winding produces what is known as - * the difference voltage. Setting this angle to 90 degrees is not the same as a - * symmemtrical transformer. - */ - IEC61970::Base::Domain::AngleDegrees windingConnectionAngle; - - }; - - } - - } - -} -#endif // PHASETAPCHANGERASYMMETRICAL_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/PhaseTapChangerLinear.cpp b/IEC61970_17v07/IEC61970/Base/Wires/PhaseTapChangerLinear.cpp deleted file mode 100644 index 1b3dd8869..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/PhaseTapChangerLinear.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// PhaseTapChangerLinear.cpp -// Implementation of the Class PhaseTapChangerLinear -// Original author: SELAOST1 -/////////////////////////////////////////////////////////// - -#include "PhaseTapChangerLinear.h" - -using IEC61970::Base::Wires::PhaseTapChangerLinear; - - -PhaseTapChangerLinear::PhaseTapChangerLinear(){ - -} - - - -PhaseTapChangerLinear::~PhaseTapChangerLinear(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/PhaseTapChangerLinear.h b/IEC61970_17v07/IEC61970/Base/Wires/PhaseTapChangerLinear.h deleted file mode 100644 index 95c072d34..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/PhaseTapChangerLinear.h +++ /dev/null @@ -1,60 +0,0 @@ -/////////////////////////////////////////////////////////// -// PhaseTapChangerLinear.h -// Implementation of the Class PhaseTapChangerLinear -// Original author: SELAOST1 -/////////////////////////////////////////////////////////// - -#ifndef PHASETAPCHANGERLINEAR_H -#define PHASETAPCHANGERLINEAR_H - -#include "IEC61970/Base/Domain/AngleDegrees.h" -#include "IEC61970/Base/Domain/Reactance.h" -#include "IEC61970/Base/Wires/PhaseTapChanger.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * Describes a tap changer with a linear relation between the tap step and the - * phase angle difference across the transformer. This is a mathematical model - * that is an approximation of a real phase tap changer. - * The phase angle is computed as stepPhaseShitfIncrement times the tap position. - * The secondary side voltage magnitude is the same as at the primary side. - */ - class PhaseTapChangerLinear : public IEC61970::Base::Wires::PhaseTapChanger - { - - public: - PhaseTapChangerLinear(); - virtual ~PhaseTapChangerLinear(); - /** - * Phase shift per step position. A positive value indicates a positive phase - * shift from the winding where the tap is located to the other winding (for a two- - * winding transformer). - * The actual phase shift increment might be more accurately computed from the - * symmetrical or asymmetrical models or a tap step table lookup if those are - * available. - */ - IEC61970::Base::Domain::AngleDegrees stepPhaseShiftIncrement; - /** - * The reactance depend on the tap position according to a "u" shaped curve. The - * maximum reactance (xMax) appear at the low and high tap positions. - */ - IEC61970::Base::Domain::Reactance xMax; - /** - * The reactance depend on the tap position according to a "u" shaped curve. The - * minimum reactance (xMin) appear at the mid tap position. - */ - IEC61970::Base::Domain::Reactance xMin; - - }; - - } - - } - -} -#endif // PHASETAPCHANGERLINEAR_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/PhaseTapChangerNonLinear.cpp b/IEC61970_17v07/IEC61970/Base/Wires/PhaseTapChangerNonLinear.cpp deleted file mode 100644 index ce28642d6..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/PhaseTapChangerNonLinear.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// PhaseTapChangerNonLinear.cpp -// Implementation of the Class PhaseTapChangerNonLinear -// Original author: SELAOST1 -/////////////////////////////////////////////////////////// - -#include "PhaseTapChangerNonLinear.h" - -using IEC61970::Base::Wires::PhaseTapChangerNonLinear; - - -PhaseTapChangerNonLinear::PhaseTapChangerNonLinear(){ - -} - - - -PhaseTapChangerNonLinear::~PhaseTapChangerNonLinear(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/PhaseTapChangerNonLinear.h b/IEC61970_17v07/IEC61970/Base/Wires/PhaseTapChangerNonLinear.h deleted file mode 100644 index e13e1f727..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/PhaseTapChangerNonLinear.h +++ /dev/null @@ -1,55 +0,0 @@ -/////////////////////////////////////////////////////////// -// PhaseTapChangerNonLinear.h -// Implementation of the Class PhaseTapChangerNonLinear -// Original author: SELAOST1 -/////////////////////////////////////////////////////////// - -#ifndef PHASETAPCHANGERNONLINEAR_H -#define PHASETAPCHANGERNONLINEAR_H - -#include "IEC61970/Base/Domain/PerCent.h" -#include "IEC61970/Base/Domain/Reactance.h" -#include "IEC61970/Base/Wires/PhaseTapChanger.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * The non-linear phase tap changer describes the non-linear behavior of a phase - * tap changer. This is a base class for the symmetrical and asymmetrical phase - * tap changer models. The details of these models can be found in the IEC 61970- - * 301 document. - */ - class PhaseTapChangerNonLinear : public IEC61970::Base::Wires::PhaseTapChanger - { - - public: - PhaseTapChangerNonLinear(); - virtual ~PhaseTapChangerNonLinear(); - /** - * The voltage step increment on the out of phase winding specified in percent of - * nominal voltage of the transformer end. - */ - IEC61970::Base::Domain::PerCent voltageStepIncrement; - /** - * The reactance depend on the tap position according to a "u" shaped curve. The - * maximum reactance (xMax) appear at the low and high tap positions. - */ - IEC61970::Base::Domain::Reactance xMax; - /** - * The reactance depend on the tap position according to a "u" shaped curve. The - * minimum reactance (xMin) appear at the mid tap position. - */ - IEC61970::Base::Domain::Reactance xMin; - - }; - - } - - } - -} -#endif // PHASETAPCHANGERNONLINEAR_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/PhaseTapChangerSymmetrical.cpp b/IEC61970_17v07/IEC61970/Base/Wires/PhaseTapChangerSymmetrical.cpp deleted file mode 100644 index 6b1637c9f..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/PhaseTapChangerSymmetrical.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// PhaseTapChangerSymmetrical.cpp -// Implementation of the Class PhaseTapChangerSymmetrical -// Original author: SELAOST1 -/////////////////////////////////////////////////////////// - -#include "PhaseTapChangerSymmetrical.h" - -using IEC61970::Base::Wires::PhaseTapChangerSymmetrical; - - -PhaseTapChangerSymmetrical::PhaseTapChangerSymmetrical(){ - -} - - - -PhaseTapChangerSymmetrical::~PhaseTapChangerSymmetrical(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/PhaseTapChangerSymmetrical.h b/IEC61970_17v07/IEC61970/Base/Wires/PhaseTapChangerSymmetrical.h deleted file mode 100644 index ad4f72063..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/PhaseTapChangerSymmetrical.h +++ /dev/null @@ -1,40 +0,0 @@ -/////////////////////////////////////////////////////////// -// PhaseTapChangerSymmetrical.h -// Implementation of the Class PhaseTapChangerSymmetrical -// Original author: SELAOST1 -/////////////////////////////////////////////////////////// - -#ifndef PHASETAPCHANGERSYMMETRICAL_H -#define PHASETAPCHANGERSYMMETRICAL_H - -#include "IEC61970/Base/Wires/PhaseTapChangerNonLinear.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * Describes a symmetrical phase shifting transformer tap model in which the - * secondary side voltage magnitude is the same as at the primary side. The - * difference voltage magnitude is the base in an equal-sided triangle where the - * sides corresponds to the primary and secondary voltages. The phase angle - * difference corresponds to the top angle and can be expressed as twice the - * arctangent of half the total difference voltage. - */ - class PhaseTapChangerSymmetrical : public IEC61970::Base::Wires::PhaseTapChangerNonLinear - { - - public: - PhaseTapChangerSymmetrical(); - virtual ~PhaseTapChangerSymmetrical(); - - }; - - } - - } - -} -#endif // PHASETAPCHANGERSYMMETRICAL_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/PhaseTapChangerTable.cpp b/IEC61970_17v07/IEC61970/Base/Wires/PhaseTapChangerTable.cpp deleted file mode 100644 index d777141d1..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/PhaseTapChangerTable.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// PhaseTapChangerTable.cpp -// Implementation of the Class PhaseTapChangerTable -// Original author: SELAOST1 -/////////////////////////////////////////////////////////// - -#include "PhaseTapChangerTable.h" - -using IEC61970::Base::Wires::PhaseTapChangerTable; - - -PhaseTapChangerTable::PhaseTapChangerTable(){ - -} - - - -PhaseTapChangerTable::~PhaseTapChangerTable(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/PhaseTapChangerTable.h b/IEC61970_17v07/IEC61970/Base/Wires/PhaseTapChangerTable.h deleted file mode 100644 index df4aa1f21..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/PhaseTapChangerTable.h +++ /dev/null @@ -1,43 +0,0 @@ -/////////////////////////////////////////////////////////// -// PhaseTapChangerTable.h -// Implementation of the Class PhaseTapChangerTable -// Original author: SELAOST1 -/////////////////////////////////////////////////////////// - -#ifndef PHASETAPCHANGERTABLE_H -#define PHASETAPCHANGERTABLE_H - -#include - -#include "IEC61970/Base/Wires/PhaseTapChangerTabular.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * Describes a tabular curve for how the phase angle difference and impedance - * varies with the tap step. - */ - class PhaseTapChangerTable : public IEC61970::Base::Core::IdentifiedObject - { - - public: - PhaseTapChangerTable(); - virtual ~PhaseTapChangerTable(); - /** - * The phase tap changers to which this phase tap table applies. - */ - std::list PhaseTapChangerTabular; - - }; - - } - - } - -} -#endif // PHASETAPCHANGERTABLE_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/PhaseTapChangerTablePoint.cpp b/IEC61970_17v07/IEC61970/Base/Wires/PhaseTapChangerTablePoint.cpp deleted file mode 100644 index 7ec95d939..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/PhaseTapChangerTablePoint.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// PhaseTapChangerTablePoint.cpp -// Implementation of the Class PhaseTapChangerTablePoint -// Original author: SELAOST1 -/////////////////////////////////////////////////////////// - -#include "PhaseTapChangerTablePoint.h" - -using IEC61970::Base::Wires::PhaseTapChangerTablePoint; - - -PhaseTapChangerTablePoint::PhaseTapChangerTablePoint() - : PhaseTapChangerTable(nullptr) -{ - -} - - - -PhaseTapChangerTablePoint::~PhaseTapChangerTablePoint(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/PhaseTapChangerTablePoint.h b/IEC61970_17v07/IEC61970/Base/Wires/PhaseTapChangerTablePoint.h deleted file mode 100644 index cd23f58cc..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/PhaseTapChangerTablePoint.h +++ /dev/null @@ -1,45 +0,0 @@ -/////////////////////////////////////////////////////////// -// PhaseTapChangerTablePoint.h -// Implementation of the Class PhaseTapChangerTablePoint -// Original author: SELAOST1 -/////////////////////////////////////////////////////////// - -#ifndef PHASETAPCHANGERTABLEPOINT_H -#define PHASETAPCHANGERTABLEPOINT_H - -#include "IEC61970/Base/Domain/AngleDegrees.h" -#include "IEC61970/Base/Wires/PhaseTapChangerTable.h" -#include "IEC61970/Base/Wires/TapChangerTablePoint.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * Describes each tap step in the phase tap changer tabular curve. - */ - class PhaseTapChangerTablePoint : public IEC61970::Base::Wires::TapChangerTablePoint - { - - public: - PhaseTapChangerTablePoint(); - virtual ~PhaseTapChangerTablePoint(); - /** - * The angle difference in degrees. - */ - IEC61970::Base::Domain::AngleDegrees angle; - /** - * The table of this point. - */ - IEC61970::Base::Wires::PhaseTapChangerTable *PhaseTapChangerTable; - - }; - - } - - } - -} -#endif // PHASETAPCHANGERTABLEPOINT_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/PhaseTapChangerTabular.cpp b/IEC61970_17v07/IEC61970/Base/Wires/PhaseTapChangerTabular.cpp deleted file mode 100644 index 173a1dc31..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/PhaseTapChangerTabular.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// PhaseTapChangerTabular.cpp -// Implementation of the Class PhaseTapChangerTabular -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#include "PhaseTapChangerTabular.h" - -using IEC61970::Base::Wires::PhaseTapChangerTabular; - - -PhaseTapChangerTabular::PhaseTapChangerTabular(){ - -} - - - -PhaseTapChangerTabular::~PhaseTapChangerTabular(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/PhaseTapChangerTabular.h b/IEC61970_17v07/IEC61970/Base/Wires/PhaseTapChangerTabular.h deleted file mode 100644 index 7dfa5ddf7..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/PhaseTapChangerTabular.h +++ /dev/null @@ -1,32 +0,0 @@ -/////////////////////////////////////////////////////////// -// PhaseTapChangerTabular.h -// Implementation of the Class PhaseTapChangerTabular -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#ifndef PHASETAPCHANGERTABULAR_H -#define PHASETAPCHANGERTABULAR_H - -#include "IEC61970/Base/Wires/PhaseTapChanger.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - class PhaseTapChangerTabular : public IEC61970::Base::Wires::PhaseTapChanger - { - - public: - PhaseTapChangerTabular(); - virtual ~PhaseTapChangerTabular(); - - }; - - } - - } - -} -#endif // PHASETAPCHANGERTABULAR_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/Plant.cpp b/IEC61970_17v07/IEC61970/Base/Wires/Plant.cpp deleted file mode 100644 index 302c280b5..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/Plant.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// Plant.cpp -// Implementation of the Class Plant -/////////////////////////////////////////////////////////// - -#include "Plant.h" - -using IEC61970::Base::Wires::Plant; - - -Plant::Plant(){ - -} - - - -Plant::~Plant(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/Plant.h b/IEC61970_17v07/IEC61970/Base/Wires/Plant.h deleted file mode 100644 index 902ec93fd..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/Plant.h +++ /dev/null @@ -1,34 +0,0 @@ -/////////////////////////////////////////////////////////// -// Plant.h -// Implementation of the Class Plant -/////////////////////////////////////////////////////////// - -#ifndef PLANT_H -#define PLANT_H - -#include "IEC61970/Base/Core/EquipmentContainer.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * A Plant is a collection of equipment for purposes of generation. - */ - class Plant : public IEC61970::Base::Core::EquipmentContainer - { - - public: - Plant(); - virtual ~Plant(); - - }; - - } - - } - -} -#endif // PLANT_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/PowerTransformer.cpp b/IEC61970_17v07/IEC61970/Base/Wires/PowerTransformer.cpp deleted file mode 100644 index abf69700f..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/PowerTransformer.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// PowerTransformer.cpp -// Implementation of the Class PowerTransformer -// Original author: Tom -/////////////////////////////////////////////////////////// - -#include "PowerTransformer.h" - -using IEC61970::Base::Wires::PowerTransformer; - - -PowerTransformer::PowerTransformer(){ - -} - - - -PowerTransformer::~PowerTransformer(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/PowerTransformer.h b/IEC61970_17v07/IEC61970/Base/Wires/PowerTransformer.h deleted file mode 100644 index 51ceeec1c..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/PowerTransformer.h +++ /dev/null @@ -1,123 +0,0 @@ -/////////////////////////////////////////////////////////// -// PowerTransformer.h -// Implementation of the Class PowerTransformer -// Original author: Tom -/////////////////////////////////////////////////////////// - -#ifndef POWERTRANSFORMER_H -#define POWERTRANSFORMER_H - -#include - -#include "IEC61970/Base/Domain/CurrentFlow.h" -#include "IEC61970/Base/Domain/Voltage.h" -#include "IEC61970/Base/Domain/AngleDegrees.h" -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Domain/String.h" -#include "IEC61970/Base/Wires/PowerTransformerEnd.h" -#include "IEC61970/Base/Core/ConductingEquipment.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * An electrical device consisting of two or more coupled windings, with or - * without a magnetic core, for introducing mutual coupling between electric - * circuits. Transformers can be used to control voltage and phase shift (active - * power flow). - * A power transformer may be composed of separate transformer tanks that need not - * be identical. - * A power transformer can be modeled with or without tanks and is intended for - * use in both balanced and unbalanced representations. A power transformer - * typically has two terminals, but may have one (grounding), three or more - * terminals. - * The inherited association ConductingEquipment.BaseVoltage should not be used. - * The association from TransformerEnd to BaseVoltage should be used instead. - */ - class PowerTransformer : public IEC61970::Base::Core::ConductingEquipment - { - - public: - PowerTransformer(); - virtual ~PowerTransformer(); - /** - * The highest operating current (Ib in the IEC 60909-0) before short circuit - * (depends on network configuration and relevant reliability philosophy). It is - * used for calculation of the impedance correction factor KT defined in IEC 60909- - * 0. - */ - IEC61970::Base::Domain::CurrentFlow beforeShCircuitHighestOperatingCurrent; - /** - * The highest operating voltage (Ub in the IEC 60909-0) before short circuit. It - * is used for calculation of the impedance correction factor KT defined in IEC - * 60909-0. This is worst case voltage on the low side winding (Section 3.7.1 in - * the standard). Used to define operating conditions. - */ - IEC61970::Base::Domain::Voltage beforeShCircuitHighestOperatingVoltage; - /** - * The angle of power factor before short circuit (phib in the IEC 60909-0). It is - * used for calculation of the impedance correction factor KT defined in IEC 60909- - * 0. This is the worst case power factor. Used to define operating conditions. - */ - IEC61970::Base::Domain::AngleDegrees beforeShortCircuitAnglePf; - /** - * The minimum operating voltage (uQmin in the IEC 60909-0) at the high voltage - * side (Q side) of the unit transformer of the power station unit. A value well - * established from long-term operating experience of the system. It is used for - * calculation of the impedance correction factor KG defined in IEC 60909-0 - */ - IEC61970::Base::Domain::Voltage highSideMinOperatingU; - /** - * Indicates whether the machine is part of a power station unit. Used for short - * circuit data exchange according to IEC 60909 - */ - IEC61970::Base::Domain::Boolean isPartOfGeneratorUnit; - /** - * It is used to define if the data (other attributes related to short circuit - * data exchange) defines long term operational conditions or not. Used for short - * circuit data exchange according to IEC 60909. - */ - IEC61970::Base::Domain::Boolean operationalValuesConsidered; - /** - * Vector group of the transformer for protective relaying, e.g., Dyn1. For - * unbalanced transformers, this may not be simply determined from the constituent - * winding connections and phase angle dispacements. - * - * The vectorGroup string consists of the following components in the order listed: - * high voltage winding connection, mid voltage winding connection (for three - * winding transformers), phase displacement clock number from 0 to 11, low - * voltage winding connection - * phase displacement clock number from 0 to 11. The winding connections are D - * (delta), Y (wye), YN (wye with neutral), Z (zigzag), ZN (zigzag with neutral), - * A (auto transformer). Upper case means the high voltage, lower case mid or low. - * The high voltage winding always has clock postion 0 and is not included in the - * vector group string. Some examples: YNy0 (two winding wye to wye with no phase - * displacement), YNd11 (two winding wye to delta with 330 degrees phase - * displacement), YNyn0d5 (three winding transformer wye with neutral high - * voltgage, wye with neutral mid voltgage and no phase displacement, delta low - * voltage with 150 degrees displacement). - * - * Phase displacement is defined as the angular difference between the phasors - * representing the voltages between the neutral point (real or imaginary) and the - * corresponding terminals of two windings, a positive sequence voltage system - * being applied to the high-voltage terminals, following each other in - * alphabetical sequence if they are lettered, or in numerical sequence if they - * are numbered: the phasors are assumed to rotate in a counter-clockwise sense. - */ - IEC61970::Base::Domain::String vectorGroup; - /** - * The ends of this power transformer. - */ - std::list PowerTransformerEnd; - - }; - - } - - } - -} -#endif // POWERTRANSFORMER_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/PowerTransformerEnd.cpp b/IEC61970_17v07/IEC61970/Base/Wires/PowerTransformerEnd.cpp deleted file mode 100644 index 782a2ef1d..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/PowerTransformerEnd.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// PowerTransformerEnd.cpp -// Implementation of the Class PowerTransformerEnd -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#include "PowerTransformerEnd.h" - -using IEC61970::Base::Wires::PowerTransformerEnd; - - -PowerTransformerEnd::PowerTransformerEnd(){ - -} - - - -PowerTransformerEnd::~PowerTransformerEnd(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/PowerTransformerEnd.h b/IEC61970_17v07/IEC61970/Base/Wires/PowerTransformerEnd.h deleted file mode 100644 index 6a8d05ebc..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/PowerTransformerEnd.h +++ /dev/null @@ -1,116 +0,0 @@ -/////////////////////////////////////////////////////////// -// PowerTransformerEnd.h -// Implementation of the Class PowerTransformerEnd -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#ifndef POWERTRANSFORMEREND_H -#define POWERTRANSFORMEREND_H - -#include "IEC61970/Base/Domain/Susceptance.h" -#include "IEC61970/Base/Wires/WindingConnection.h" -#include "IEC61970/Base/Domain/Conductance.h" -#include "IEC61970/Base/Domain/Integer.h" -#include "IEC61970/Base/Domain/Resistance.h" -#include "IEC61970/Base/Domain/ApparentPower.h" -#include "IEC61970/Base/Domain/Voltage.h" -#include "IEC61970/Base/Domain/Reactance.h" -#include "IEC61970/Base/Wires/TransformerEnd.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * A PowerTransformerEnd is associated with each Terminal of a PowerTransformer. - * The impedance values r, r0, x, and x0 of a PowerTransformerEnd represents a - * star equivalent as follows - * 1) for a two Terminal PowerTransformer the high voltage PowerTransformerEnd has - * non zero values on r, r0, x, and x0 while the low voltage PowerTransformerEnd - * has zero values for r, r0, x, and x0. - * 2) for a three Terminal PowerTransformer the three PowerTransformerEnds - * represents a star equivalent with each leg in the star represented by r, r0, x, - * and x0 values. - * 3) for a PowerTransformer with more than three Terminals the - * PowerTransformerEnd impedance values cannot be used. Instead use the - * TransformerMeshImpedance or split the transformer into multiple - * PowerTransformers. - */ - class PowerTransformerEnd : public IEC61970::Base::Wires::TransformerEnd - { - - public: - PowerTransformerEnd(); - virtual ~PowerTransformerEnd(); - /** - * Magnetizing branch susceptance (B mag). The value can be positive or negative. - */ - IEC61970::Base::Domain::Susceptance b; - /** - * Zero sequence magnetizing branch susceptance. - */ - IEC61970::Base::Domain::Susceptance b0; - /** - * Kind of connection. - */ - IEC61970::Base::Wires::WindingConnection connectionKind = IEC61970::Base::Wires::WindingConnection::_undef; - /** - * Magnetizing branch conductance. - */ - IEC61970::Base::Domain::Conductance g; - /** - * Zero sequence magnetizing branch conductance (star-model). - */ - IEC61970::Base::Domain::Conductance g0; - /** - * Terminal voltage phase angle displacement where 360 degrees are represented - * with clock hours. The valid values are 0 to 11. For example, for the secondary - * side end of a transformer with vector group code of 'Dyn11', specify the - * connection kind as wye with neutral and specify the phase angle of the clock as - * 11. The clock value of the transformer end number specified as 1, is assumed - * to be zero. Note the transformer end number is not assumed to be the same as - * the terminal sequence number. - */ - IEC61970::Base::Domain::Integer phaseAngleClock; - /** - * Resistance (star-model) of the transformer end. - * The attribute shall be equal or greater than zero for non-equivalent - * transformers. - */ - IEC61970::Base::Domain::Resistance r; - /** - * Zero sequence series resistance (star-model) of the transformer end. - */ - IEC61970::Base::Domain::Resistance r0; - /** - * Normal apparent power rating. - * The attribute shall be a positive value. For a two-winding transformer the - * values for the high and low voltage sides shall be identical. - */ - IEC61970::Base::Domain::ApparentPower ratedS; - /** - * Rated voltage: phase-phase for three-phase windings, and either phase-phase or - * phase-neutral for single-phase windings. - * A high voltage side, as given by TransformerEnd.endNumber, shall have a ratedU - * that is greater or equal than ratedU for the lower voltage sides. - */ - IEC61970::Base::Domain::Voltage ratedU; - /** - * Positive sequence series reactance (star-model) of the transformer end. - */ - IEC61970::Base::Domain::Reactance x; - /** - * Zero sequence series reactance of the transformer end. - */ - IEC61970::Base::Domain::Reactance x0; - - }; - - } - - } - -} -#endif // POWERTRANSFORMEREND_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/ProtectedSwitch.cpp b/IEC61970_17v07/IEC61970/Base/Wires/ProtectedSwitch.cpp deleted file mode 100644 index 29839eaee..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/ProtectedSwitch.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// ProtectedSwitch.cpp -// Implementation of the Class ProtectedSwitch -/////////////////////////////////////////////////////////// - -#include "ProtectedSwitch.h" - -using IEC61970::Base::Wires::ProtectedSwitch; - - -ProtectedSwitch::ProtectedSwitch(){ - -} - - - -ProtectedSwitch::~ProtectedSwitch(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/ProtectedSwitch.h b/IEC61970_17v07/IEC61970/Base/Wires/ProtectedSwitch.h deleted file mode 100644 index c7aaf7b27..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/ProtectedSwitch.h +++ /dev/null @@ -1,48 +0,0 @@ -/////////////////////////////////////////////////////////// -// ProtectedSwitch.h -// Implementation of the Class ProtectedSwitch -/////////////////////////////////////////////////////////// - -#ifndef PROTECTEDSWITCH_H -#define PROTECTEDSWITCH_H - -#include - -#include "IEC61970/Base/Domain/CurrentFlow.h" -#include "IEC61970/Base/Protection/RecloseSequence.h" -#include "IEC61970/Base/Wires/Switch.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * A ProtectedSwitch is a switching device that can be operated by - * ProtectionEquipment. - */ - class ProtectedSwitch : public IEC61970::Base::Wires::Switch - { - - public: - ProtectedSwitch(); - virtual ~ProtectedSwitch(); - /** - * The maximum fault current a breaking device can break safely under prescribed - * conditions of use. - */ - IEC61970::Base::Domain::CurrentFlow breakingCapacity; - /** - * A breaker may have zero or more automatic reclosures after a trip occurs. - */ - std::list RecloseSequences; - - }; - - } - - } - -} -#endif // PROTECTEDSWITCH_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/RatioTapChanger.cpp b/IEC61970_17v07/IEC61970/Base/Wires/RatioTapChanger.cpp deleted file mode 100644 index ee5e2f948..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/RatioTapChanger.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// RatioTapChanger.cpp -// Implementation of the Class RatioTapChanger -// Original author: kdd -/////////////////////////////////////////////////////////// - -#include "RatioTapChanger.h" - -using IEC61970::Base::Wires::RatioTapChanger; - - -RatioTapChanger::RatioTapChanger() - : RatioTapChangerTable(nullptr) -{ - -} - - - -RatioTapChanger::~RatioTapChanger(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/RatioTapChanger.h b/IEC61970_17v07/IEC61970/Base/Wires/RatioTapChanger.h deleted file mode 100644 index 32b856396..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/RatioTapChanger.h +++ /dev/null @@ -1,52 +0,0 @@ -/////////////////////////////////////////////////////////// -// RatioTapChanger.h -// Implementation of the Class RatioTapChanger -// Original author: kdd -/////////////////////////////////////////////////////////// - -#ifndef RATIOTAPCHANGER_H -#define RATIOTAPCHANGER_H - -#include "IEC61970/Base/Domain/PerCent.h" -#include "IEC61970/Base/Wires/TransformerControlMode.h" -#include "IEC61970/Base/Wires/RatioTapChangerTable.h" -#include "IEC61970/Base/Wires/TapChanger.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * A tap changer that changes the voltage ratio impacting the voltage magnitude - * but not the phase angle across the transformer. - */ - class RatioTapChanger : public IEC61970::Base::Wires::TapChanger - { - - public: - RatioTapChanger(); - virtual ~RatioTapChanger(); - /** - * Tap step increment, in per cent of nominal voltage, per step position. - */ - IEC61970::Base::Domain::PerCent stepVoltageIncrement; - /** - * Specifies the regulation control mode (voltage or reactive) of the - * RatioTapChanger. - */ - IEC61970::Base::Wires::TransformerControlMode tculControlMode = IEC61970::Base::Wires::TransformerControlMode::_undef; - /** - * The tap ratio table for this ratio tap changer. - */ - IEC61970::Base::Wires::RatioTapChangerTable *RatioTapChangerTable; - - }; - - } - - } - -} -#endif // RATIOTAPCHANGER_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/RatioTapChangerTable.cpp b/IEC61970_17v07/IEC61970/Base/Wires/RatioTapChangerTable.cpp deleted file mode 100644 index 0ff478125..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/RatioTapChangerTable.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// RatioTapChangerTable.cpp -// Implementation of the Class RatioTapChangerTable -// Original author: SELAOST1 -/////////////////////////////////////////////////////////// - -#include "RatioTapChangerTable.h" - -using IEC61970::Base::Wires::RatioTapChangerTable; - - -RatioTapChangerTable::RatioTapChangerTable(){ - -} - - - -RatioTapChangerTable::~RatioTapChangerTable(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/RatioTapChangerTable.h b/IEC61970_17v07/IEC61970/Base/Wires/RatioTapChangerTable.h deleted file mode 100644 index 9b840f332..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/RatioTapChangerTable.h +++ /dev/null @@ -1,36 +0,0 @@ -/////////////////////////////////////////////////////////// -// RatioTapChangerTable.h -// Implementation of the Class RatioTapChangerTable -// Original author: SELAOST1 -/////////////////////////////////////////////////////////// - -#ifndef RATIOTAPCHANGERTABLE_H -#define RATIOTAPCHANGERTABLE_H - -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * Describes a curve for how the voltage magnitude and impedance varies with the - * tap step. - */ - class RatioTapChangerTable : public IEC61970::Base::Core::IdentifiedObject - { - - public: - RatioTapChangerTable(); - virtual ~RatioTapChangerTable(); - - }; - - } - - } - -} -#endif // RATIOTAPCHANGERTABLE_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/RatioTapChangerTablePoint.cpp b/IEC61970_17v07/IEC61970/Base/Wires/RatioTapChangerTablePoint.cpp deleted file mode 100644 index 52f115103..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/RatioTapChangerTablePoint.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// RatioTapChangerTablePoint.cpp -// Implementation of the Class RatioTapChangerTablePoint -// Original author: SELAOST1 -/////////////////////////////////////////////////////////// - -#include "RatioTapChangerTablePoint.h" - -using IEC61970::Base::Wires::RatioTapChangerTablePoint; - - -RatioTapChangerTablePoint::RatioTapChangerTablePoint() - : RatioTapChangerTable(nullptr) -{ - -} - - - -RatioTapChangerTablePoint::~RatioTapChangerTablePoint(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/RatioTapChangerTablePoint.h b/IEC61970_17v07/IEC61970/Base/Wires/RatioTapChangerTablePoint.h deleted file mode 100644 index 972799d8a..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/RatioTapChangerTablePoint.h +++ /dev/null @@ -1,40 +0,0 @@ -/////////////////////////////////////////////////////////// -// RatioTapChangerTablePoint.h -// Implementation of the Class RatioTapChangerTablePoint -// Original author: SELAOST1 -/////////////////////////////////////////////////////////// - -#ifndef RATIOTAPCHANGERTABLEPOINT_H -#define RATIOTAPCHANGERTABLEPOINT_H - -#include "IEC61970/Base/Wires/RatioTapChangerTable.h" -#include "IEC61970/Base/Wires/TapChangerTablePoint.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * Describes each tap step in the ratio tap changer tabular curve. - */ - class RatioTapChangerTablePoint : public IEC61970::Base::Wires::TapChangerTablePoint - { - - public: - RatioTapChangerTablePoint(); - virtual ~RatioTapChangerTablePoint(); - /** - * Table of this point. - */ - IEC61970::Base::Wires::RatioTapChangerTable *RatioTapChangerTable; - - }; - - } - - } - -} -#endif // RATIOTAPCHANGERTABLEPOINT_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/ReactiveCapabilityCurve.cpp b/IEC61970_17v07/IEC61970/Base/Wires/ReactiveCapabilityCurve.cpp deleted file mode 100644 index 88ec44283..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/ReactiveCapabilityCurve.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// ReactiveCapabilityCurve.cpp -// Implementation of the Class ReactiveCapabilityCurve -/////////////////////////////////////////////////////////// - -#include "ReactiveCapabilityCurve.h" - -using IEC61970::Base::Wires::ReactiveCapabilityCurve; - - -ReactiveCapabilityCurve::ReactiveCapabilityCurve(){ - -} - - - -ReactiveCapabilityCurve::~ReactiveCapabilityCurve(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/ReactiveCapabilityCurve.h b/IEC61970_17v07/IEC61970/Base/Wires/ReactiveCapabilityCurve.h deleted file mode 100644 index b8ecda621..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/ReactiveCapabilityCurve.h +++ /dev/null @@ -1,66 +0,0 @@ -/////////////////////////////////////////////////////////// -// ReactiveCapabilityCurve.h -// Implementation of the Class ReactiveCapabilityCurve -/////////////////////////////////////////////////////////// - -#ifndef REACTIVECAPABILITYCURVE_H -#define REACTIVECAPABILITYCURVE_H - -#include - -#include "IEC61970/Base/Domain/Temperature.h" -#include "IEC61970/Base/Domain/Pressure.h" -#include "IEC61970/Base/Equivalents/EquivalentInjection.h" -#include "IEC61970/Base/Wires/SynchronousMachine.h" -#include "IEC61970/Base/Core/Curve.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * Reactive power rating envelope versus the synchronous machine's active power, - * in both the generating and motoring modes. For each active power value there is - * a corresponding high and low reactive power limit value. Typically there will - * be a separate curve for each coolant condition, such as hydrogen pressure. The - * Y1 axis values represent reactive minimum and the Y2 axis values represent - * reactive maximum. - */ - class ReactiveCapabilityCurve : public IEC61970::Base::Core::Curve - { - - public: - ReactiveCapabilityCurve(); - virtual ~ReactiveCapabilityCurve(); - /** - * The machine's coolant temperature (e.g., ambient air or stator circulating - * water). - */ - IEC61970::Base::Domain::Temperature coolantTemperature; - /** - * The hydrogen coolant pressure - */ - IEC61970::Base::Domain::Pressure hydrogenPressure; - /** - * The equivalent injection using this reactive capability curve. - */ - std::list EquivalentInjection; - /** - * Synchronous machines using this curve as default. - */ - std::list InitiallyUsedBySynchronousMachines; - /** - * Synchronous machines using this curve. - */ - std::list SynchronousMachines; - - }; - - } - - } - -} -#endif // REACTIVECAPABILITYCURVE_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/Recloser.cpp b/IEC61970_17v07/IEC61970/Base/Wires/Recloser.cpp deleted file mode 100644 index f74df33ac..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/Recloser.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// Recloser.cpp -// Implementation of the Class Recloser -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#include "Recloser.h" - -using IEC61970::Base::Wires::Recloser; - - -Recloser::Recloser(){ - -} - - - -Recloser::~Recloser(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/Recloser.h b/IEC61970_17v07/IEC61970/Base/Wires/Recloser.h deleted file mode 100644 index ab6298716..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/Recloser.h +++ /dev/null @@ -1,36 +0,0 @@ -/////////////////////////////////////////////////////////// -// Recloser.h -// Implementation of the Class Recloser -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#ifndef RECLOSER_H -#define RECLOSER_H - -#include "IEC61970/Base/Wires/ProtectedSwitch.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * Pole-mounted fault interrupter with built-in phase and ground relays, current - * transformer (CT), and supplemental controls. - */ - class Recloser : public IEC61970::Base::Wires::ProtectedSwitch - { - - public: - Recloser(); - virtual ~Recloser(); - - }; - - } - - } - -} -#endif // RECLOSER_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/RegulatingCondEq.cpp b/IEC61970_17v07/IEC61970/Base/Wires/RegulatingCondEq.cpp deleted file mode 100644 index 25b0ed8a0..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/RegulatingCondEq.cpp +++ /dev/null @@ -1,21 +0,0 @@ -/////////////////////////////////////////////////////////// -// RegulatingCondEq.cpp -// Implementation of the Class RegulatingCondEq -/////////////////////////////////////////////////////////// - -#include "RegulatingCondEq.h" - -using IEC61970::Base::Wires::RegulatingCondEq; - - -RegulatingCondEq::RegulatingCondEq() - : RegulatingControl(nullptr) -{ - -} - - - -RegulatingCondEq::~RegulatingCondEq(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/RegulatingCondEq.h b/IEC61970_17v07/IEC61970/Base/Wires/RegulatingCondEq.h deleted file mode 100644 index f3f6eb0ed..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/RegulatingCondEq.h +++ /dev/null @@ -1,46 +0,0 @@ -/////////////////////////////////////////////////////////// -// RegulatingCondEq.h -// Implementation of the Class RegulatingCondEq -/////////////////////////////////////////////////////////// - -#ifndef REGULATINGCONDEQ_H -#define REGULATINGCONDEQ_H - -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Wires/RegulatingControl.h" -#include "IEC61970/Base/Core/ConductingEquipment.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * A type of conducting equipment that can regulate a quantity (i.e. voltage or - * flow) at a specific point in the network. - */ - class RegulatingCondEq : public IEC61970::Base::Core::ConductingEquipment - { - - public: - RegulatingCondEq(); - virtual ~RegulatingCondEq(); - /** - * Specifies the regulation status of the equipment. True is regulating, false is - * not regulating. - */ - IEC61970::Base::Domain::Boolean controlEnabled; - /** - * The regulating control scheme in which this equipment participates. - */ - IEC61970::Base::Wires::RegulatingControl *RegulatingControl; - - }; - - } - - } - -} -#endif // REGULATINGCONDEQ_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/RegulatingControl.cpp b/IEC61970_17v07/IEC61970/Base/Wires/RegulatingControl.cpp deleted file mode 100644 index 13257c4c8..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/RegulatingControl.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// RegulatingControl.cpp -// Implementation of the Class RegulatingControl -// Original author: kdd -/////////////////////////////////////////////////////////// - -#include "RegulatingControl.h" - -using IEC61970::Base::Wires::RegulatingControl; - - -RegulatingControl::RegulatingControl(){ - -} - - - -RegulatingControl::~RegulatingControl(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/RegulatingControl.h b/IEC61970_17v07/IEC61970/Base/Wires/RegulatingControl.h deleted file mode 100644 index 283380d7e..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/RegulatingControl.h +++ /dev/null @@ -1,84 +0,0 @@ -/////////////////////////////////////////////////////////// -// RegulatingControl.h -// Implementation of the Class RegulatingControl -// Original author: kdd -/////////////////////////////////////////////////////////// - -#ifndef REGULATINGCONTROL_H -#define REGULATINGCONTROL_H - -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Wires/RegulatingControlModeKind.h" -#include "IEC61970/Base/Core/PhaseCode.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/UnitMultiplier.h" -#include "IEC61970/Base/Core/PowerSystemResource.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * Specifies a set of equipment that works together to control a power system - * quantity such as voltage or flow. - * Remote bus voltage control is possible by specifying the controlled terminal - * located at some place remote from the controlling equipment. - * In case multiple equipment, possibly of different types, control same terminal - * there must be only one RegulatingControl at that terminal. The most specific - * subtype of RegulatingControl shall be used in case such equipment participate - * in the control, e.g. TapChangerControl for tap changers. - * For flow control load sign convention is used, i.e. positive sign means flow - * out from a TopologicalNode (bus) into the conducting equipment. - */ - class RegulatingControl : public IEC61970::Base::Core::PowerSystemResource - { - - public: - RegulatingControl(); - virtual ~RegulatingControl(); - /** - * The regulation is performed in a discrete mode. This applies to equipment with - * discrete controls, e.g. tap changers and shunt compensators. - */ - IEC61970::Base::Domain::Boolean discrete; - /** - * The flag tells if regulation is enabled. - */ - IEC61970::Base::Domain::Boolean enabled; - /** - * The regulating control mode presently available. This specification allows for - * determining the kind of regulation without need for obtaining the units from a - * schedule. - */ - IEC61970::Base::Wires::RegulatingControlModeKind mode = IEC61970::Base::Wires::RegulatingControlModeKind::_undef; - /** - * Phase voltage controlling this regulator, measured at regulator location. - */ - IEC61970::Base::Core::PhaseCode monitoredPhase = IEC61970::Base::Core::PhaseCode::_undef; - /** - * This is a deadband used with discrete control to avoid excessive update of - * controls like tap changers and shunt compensator banks while regulating. - * The units of those appropriate for the mode. - */ - IEC61970::Base::Domain::Float targetDeadband; - /** - * The target value specified for case input. This value can be used for the - * target value without the use of schedules. The value has the units appropriate - * to the mode attribute. - */ - IEC61970::Base::Domain::Float targetValue; - /** - * Specify the multiplier for used for the targetValue. - */ - IEC61970::Base::Domain::UnitMultiplier targetValueUnitMultiplier = IEC61970::Base::Domain::UnitMultiplier::_undef; - - }; - - } - - } - -} -#endif // REGULATINGCONTROL_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/RegulatingControlModeKind.h b/IEC61970_17v07/IEC61970/Base/Wires/RegulatingControlModeKind.h deleted file mode 100644 index 5e2dba236..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/RegulatingControlModeKind.h +++ /dev/null @@ -1,62 +0,0 @@ -/////////////////////////////////////////////////////////// -// RegulatingControlModeKind.h -// Implementation of the Class RegulatingControlModeKind -// Original author: kdd -/////////////////////////////////////////////////////////// - -#ifndef REGULATINGCONTROLMODEKIND_H -#define REGULATINGCONTROLMODEKIND_H - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * The kind of regulation model. For example regulating voltage, reactive power, - * active power, etc. - */ - enum class RegulatingControlModeKind - { - /** - * Voltage is specified. - */ - _undef = -1, voltage, - /** - * Active power is specified. - */ - activePower, - /** - * Reactive power is specified. - */ - reactivePower, - /** - * Current flow is specified. - */ - currentFlow, - /** - * Admittance is specified. - */ - admittance, - /** - * Control switches on/off by time of day. The times may change on the weekend, or - * in different seasons. - */ - timeScheduled, - /** - * Control switches on/off based on the local temperature (i.e., a thermostat). - */ - temperature, - /** - * Power factor is specified. - */ - powerFactor - }; - - } - - } - -} -#endif // REGULATINGCONTROLMODEKIND_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/RegulationSchedule.cpp b/IEC61970_17v07/IEC61970/Base/Wires/RegulationSchedule.cpp deleted file mode 100644 index 7382341c0..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/RegulationSchedule.cpp +++ /dev/null @@ -1,21 +0,0 @@ -/////////////////////////////////////////////////////////// -// RegulationSchedule.cpp -// Implementation of the Class RegulationSchedule -/////////////////////////////////////////////////////////// - -#include "RegulationSchedule.h" - -using IEC61970::Base::Wires::RegulationSchedule; - - -RegulationSchedule::RegulationSchedule() - : RegulatingControl(nullptr) -{ - -} - - - -RegulationSchedule::~RegulationSchedule(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/RegulationSchedule.h b/IEC61970_17v07/IEC61970/Base/Wires/RegulationSchedule.h deleted file mode 100644 index f3607a34d..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/RegulationSchedule.h +++ /dev/null @@ -1,47 +0,0 @@ -/////////////////////////////////////////////////////////// -// RegulationSchedule.h -// Implementation of the Class RegulationSchedule -/////////////////////////////////////////////////////////// - -#ifndef REGULATIONSCHEDULE_H -#define REGULATIONSCHEDULE_H - -#include - -#include "IEC61970/Base/LoadModel/SeasonDayTypeSchedule.h" -#include "IEC61970/Base/Wires/RegulatingControl.h" -#include "IEC61970/Base/Wires/VoltageControlZone.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * A pre-established pattern over time for a controlled variable, e.g., busbar - * voltage. - */ - class RegulationSchedule : public IEC61970::Base::LoadModel::SeasonDayTypeSchedule - { - - public: - RegulationSchedule(); - virtual ~RegulationSchedule(); - /** - * Regulating controls that have this Schedule. - */ - IEC61970::Base::Wires::RegulatingControl *RegulatingControl; - /** - * A VoltageControlZone may have a voltage regulation schedule. - */ - std::list VoltageControlZones; - - }; - - } - - } - -} -#endif // REGULATIONSCHEDULE_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/RotatingMachine.cpp b/IEC61970_17v07/IEC61970/Base/Wires/RotatingMachine.cpp deleted file mode 100644 index 3b8926979..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/RotatingMachine.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// RotatingMachine.cpp -// Implementation of the Class RotatingMachine -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "RotatingMachine.h" - -using IEC61970::Base::Wires::RotatingMachine; - - -RotatingMachine::RotatingMachine() - : HydroPump(nullptr) -{ - -} - - - -RotatingMachine::~RotatingMachine(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/RotatingMachine.h b/IEC61970_17v07/IEC61970/Base/Wires/RotatingMachine.h deleted file mode 100644 index 121605c40..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/RotatingMachine.h +++ /dev/null @@ -1,74 +0,0 @@ -/////////////////////////////////////////////////////////// -// RotatingMachine.h -// Implementation of the Class RotatingMachine -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef ROTATINGMACHINE_H -#define ROTATINGMACHINE_H - -#include "IEC61970/Base/Domain/ActivePower.h" -#include "IEC61970/Base/Domain/ReactivePower.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/ApparentPower.h" -#include "IEC61970/Base/Domain/Voltage.h" -#include "IEC61970/Base/Generation/Production/HydroPump.h" -#include "IEC61970/Base/Wires/RegulatingCondEq.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * A rotating machine which may be used as a generator or motor. - */ - class RotatingMachine : public IEC61970::Base::Wires::RegulatingCondEq - { - - public: - RotatingMachine(); - virtual ~RotatingMachine(); - /** - * Active power injection. Load sign convention is used, i.e. positive sign means - * flow out from a node. - * Starting value for a steady state solution. - */ - IEC61970::Base::Domain::ActivePower p; - /** - * Reactive power injection. Load sign convention is used, i.e. positive sign - * means flow out from a node. - * Starting value for a steady state solution. - */ - IEC61970::Base::Domain::ReactivePower q; - /** - * Power factor (nameplate data). It is primarily used for short circuit data - * exchange according to IEC 60909. - */ - IEC61970::Base::Domain::Float ratedPowerFactor; - /** - * Nameplate apparent power rating for the unit. - * The attribute shall have a positive value. - */ - IEC61970::Base::Domain::ApparentPower ratedS; - /** - * Rated voltage (nameplate data, Ur in IEC 60909-0). It is primarily used for - * short circuit data exchange according to IEC 60909. - */ - IEC61970::Base::Domain::Voltage ratedU; - /** - * The synchronous machine drives the turbine which moves the water from a low - * elevation to a higher elevation. The direction of machine rotation for pumping - * may or may not be the same as for generating. - */ - IEC61970::Base::Generation::Production::HydroPump *HydroPump; - - }; - - } - - } - -} -#endif // ROTATINGMACHINE_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/SVCControlMode.h b/IEC61970_17v07/IEC61970/Base/Wires/SVCControlMode.h deleted file mode 100644 index 4964a9e89..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/SVCControlMode.h +++ /dev/null @@ -1,29 +0,0 @@ -/////////////////////////////////////////////////////////// -// SVCControlMode.h -// Implementation of the Class SVCControlMode -/////////////////////////////////////////////////////////// - -#ifndef SVCCONTROLMODE_H -#define SVCCONTROLMODE_H - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * Static VAr Compensator control mode. - */ - enum class SVCControlMode - { - _undef = -1, reactivePower, - voltage - }; - - } - - } - -} -#endif // SVCCONTROLMODE_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/Sectionaliser.cpp b/IEC61970_17v07/IEC61970/Base/Wires/Sectionaliser.cpp deleted file mode 100644 index 5b678e200..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/Sectionaliser.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// Sectionaliser.cpp -// Implementation of the Class Sectionaliser -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#include "Sectionaliser.h" - -using IEC61970::Base::Wires::Sectionaliser; - - -Sectionaliser::Sectionaliser(){ - -} - - - -Sectionaliser::~Sectionaliser(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/Sectionaliser.h b/IEC61970_17v07/IEC61970/Base/Wires/Sectionaliser.h deleted file mode 100644 index 35759488b..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/Sectionaliser.h +++ /dev/null @@ -1,38 +0,0 @@ -/////////////////////////////////////////////////////////// -// Sectionaliser.h -// Implementation of the Class Sectionaliser -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#ifndef SECTIONALISER_H -#define SECTIONALISER_H - -#include "IEC61970/Base/Wires/Switch.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * Automatic switch that will lock open to isolate a faulted section. It may, or - * may not, have load breaking capability. Its primary purpose is to provide fault - * sectionalising at locations where the fault current is either too high, or too - * low, for proper coordination of fuses. - */ - class Sectionaliser : public IEC61970::Base::Wires::Switch - { - - public: - Sectionaliser(); - virtual ~Sectionaliser(); - - }; - - } - - } - -} -#endif // SECTIONALISER_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/SeriesCompensator.cpp b/IEC61970_17v07/IEC61970/Base/Wires/SeriesCompensator.cpp deleted file mode 100644 index 4b069740d..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/SeriesCompensator.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// SeriesCompensator.cpp -// Implementation of the Class SeriesCompensator -/////////////////////////////////////////////////////////// - -#include "SeriesCompensator.h" - -using IEC61970::Base::Wires::SeriesCompensator; - - -SeriesCompensator::SeriesCompensator(){ - -} - - - -SeriesCompensator::~SeriesCompensator(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/SeriesCompensator.h b/IEC61970_17v07/IEC61970/Base/Wires/SeriesCompensator.h deleted file mode 100644 index 56e0ef2ed..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/SeriesCompensator.h +++ /dev/null @@ -1,69 +0,0 @@ -/////////////////////////////////////////////////////////// -// SeriesCompensator.h -// Implementation of the Class SeriesCompensator -/////////////////////////////////////////////////////////// - -#ifndef SERIESCOMPENSATOR_H -#define SERIESCOMPENSATOR_H - -#include "IEC61970/Base/Domain/Resistance.h" -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Domain/CurrentFlow.h" -#include "IEC61970/Base/Domain/Voltage.h" -#include "IEC61970/Base/Domain/Reactance.h" -#include "IEC61970/Base/Core/ConductingEquipment.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * A Series Compensator is a series capacitor or reactor or an AC transmission - * line without charging susceptance. It is a two terminal device. - */ - class SeriesCompensator : public IEC61970::Base::Core::ConductingEquipment - { - - public: - SeriesCompensator(); - virtual ~SeriesCompensator(); - /** - * Positive sequence resistance. - */ - IEC61970::Base::Domain::Resistance r; - /** - * Zero sequence resistance. - */ - IEC61970::Base::Domain::Resistance r0; - /** - * Describe if a metal oxide varistor (mov) for over voltage protection is - * configured at the series compensator. - */ - IEC61970::Base::Domain::Boolean varistorPresent; - /** - * The maximum current the varistor is designed to handle at specified duration. - */ - IEC61970::Base::Domain::CurrentFlow varistorRatedCurrent; - /** - * The dc voltage at which the varistor start conducting. - */ - IEC61970::Base::Domain::Voltage varistorVoltageThreshold; - /** - * Positive sequence reactance. - */ - IEC61970::Base::Domain::Reactance x; - /** - * Zero sequence reactance. - */ - IEC61970::Base::Domain::Reactance x0; - - }; - - } - - } - -} -#endif // SERIESCOMPENSATOR_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/ShortCircuitRotorKind.h b/IEC61970_17v07/IEC61970/Base/Wires/ShortCircuitRotorKind.h deleted file mode 100644 index e25fe8092..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/ShortCircuitRotorKind.h +++ /dev/null @@ -1,44 +0,0 @@ -/////////////////////////////////////////////////////////// -// ShortCircuitRotorKind.h -// Implementation of the Class ShortCircuitRotorKind -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef SHORTCIRCUITROTORKIND_H -#define SHORTCIRCUITROTORKIND_H - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * Type of rotor, used by short circuit applications. - */ - enum class ShortCircuitRotorKind - { - /** - * Salient pole 1 in the IEC 60909 - */ - _undef = -1, salientPole1, - /** - * Salient pole 2 in IEC 60909 - */ - salientPole2, - /** - * Turbo Series 1 in the IEC 60909 - */ - turboSeries1, - /** - * Turbo series 2 in IEC 60909 - */ - turboSeries2 - }; - - } - - } - -} -#endif // SHORTCIRCUITROTORKIND_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/ShuntCompensator.cpp b/IEC61970_17v07/IEC61970/Base/Wires/ShuntCompensator.cpp deleted file mode 100644 index 06481496a..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/ShuntCompensator.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// ShuntCompensator.cpp -// Implementation of the Class ShuntCompensator -/////////////////////////////////////////////////////////// - -#include "ShuntCompensator.h" - -using IEC61970::Base::Wires::ShuntCompensator; - - -ShuntCompensator::ShuntCompensator(){ - -} - - - -ShuntCompensator::~ShuntCompensator(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/ShuntCompensator.h b/IEC61970_17v07/IEC61970/Base/Wires/ShuntCompensator.h deleted file mode 100644 index 438ed56c0..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/ShuntCompensator.h +++ /dev/null @@ -1,101 +0,0 @@ -/////////////////////////////////////////////////////////// -// ShuntCompensator.h -// Implementation of the Class ShuntCompensator -/////////////////////////////////////////////////////////// - -#ifndef SHUNTCOMPENSATOR_H -#define SHUNTCOMPENSATOR_H - -#include - -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Domain/Integer.h" -#include "IEC61970/Base/Domain/Voltage.h" -#include "IEC61970/Base/Wires/PhaseShuntConnectionKind.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/DateTime.h" -#include "IEC61970/Base/Domain/VoltagePerReactivePower.h" -#include "IEC61970/Base/Wires/RegulatingCondEq.h" -#include "IEC61970/Base/Wires/ShuntCompensatorPhase.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * A shunt capacitor or reactor or switchable bank of shunt capacitors or reactors. - * A section of a shunt compensator is an individual capacitor or reactor. A - * negative value for reactivePerSection indicates that the compensator is a - * reactor. ShuntCompensator is a single terminal device. Ground is implied. - */ - class ShuntCompensator : public IEC61970::Base::Wires::RegulatingCondEq - { - - public: - ShuntCompensator(); - virtual ~ShuntCompensator(); - /** - * Time delay required for the device to be connected or disconnected by automatic - * voltage regulation (AVR). - */ - IEC61970::Base::Domain::Seconds aVRDelay; - /** - * Used for Yn and Zn connections. True if the neutral is solidly grounded. - */ - IEC61970::Base::Domain::Boolean grounded; - /** - * The maximum number of sections that may be switched in. - */ - IEC61970::Base::Domain::Integer maximumSections; - /** - * The voltage at which the nominal reactive power may be calculated. This should - * normally be within 10% of the voltage at which the capacitor is connected to - * the network. - */ - IEC61970::Base::Domain::Voltage nomU; - /** - * The normal number of sections switched in. - */ - IEC61970::Base::Domain::Integer normalSections; - /** - * The type of phase connection, such as wye or delta. - */ - IEC61970::Base::Wires::PhaseShuntConnectionKind phaseConnection = IEC61970::Base::Wires::PhaseShuntConnectionKind::_undef; - /** - * Shunt compensator sections in use. - * Starting value for steady state solution. Non integer values are allowed to - * support continuous variables. The reasons for continuous value are to support - * study cases where no discrete shunt compensators has yet been designed, a - * solutions where a narrow voltage band force the sections to oscillate or - * accommodate for a continuous solution as input. - */ - IEC61970::Base::Domain::Float sections; - /** - * The switch on count since the capacitor count was last reset or initialized. - */ - IEC61970::Base::Domain::Integer switchOnCount; - /** - * The date and time when the capacitor bank was last switched on. - */ - IEC61970::Base::Domain::DateTime switchOnDate; - /** - * Voltage sensitivity required for the device to regulate the bus voltage, in - * voltage/reactive power. - */ - IEC61970::Base::Domain::VoltagePerReactivePower voltageSensitivity; - /** - * The individual phases models for the shunt compensator. - */ - std::list ShuntCompensatorPhase; - - }; - - } - - } - -} -#endif // SHUNTCOMPENSATOR_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/ShuntCompensatorPhase.cpp b/IEC61970_17v07/IEC61970/Base/Wires/ShuntCompensatorPhase.cpp deleted file mode 100644 index d8749fc51..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/ShuntCompensatorPhase.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// ShuntCompensatorPhase.cpp -// Implementation of the Class ShuntCompensatorPhase -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#include "ShuntCompensatorPhase.h" - -using IEC61970::Base::Wires::ShuntCompensatorPhase; - - -ShuntCompensatorPhase::ShuntCompensatorPhase(){ - -} - - - -ShuntCompensatorPhase::~ShuntCompensatorPhase(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/ShuntCompensatorPhase.h b/IEC61970_17v07/IEC61970/Base/Wires/ShuntCompensatorPhase.h deleted file mode 100644 index 80f4199d3..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/ShuntCompensatorPhase.h +++ /dev/null @@ -1,54 +0,0 @@ -/////////////////////////////////////////////////////////// -// ShuntCompensatorPhase.h -// Implementation of the Class ShuntCompensatorPhase -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#ifndef SHUNTCOMPENSATORPHASE_H -#define SHUNTCOMPENSATORPHASE_H - -#include "IEC61970/Base/Domain/Integer.h" -#include "IEC61970/Base/Wires/SinglePhaseKind.h" -#include "IEC61970/Base/Core/PowerSystemResource.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * Single phase of a multi-phase shunt compensator when its attributes might be - * different per phase. - */ - class ShuntCompensatorPhase : public IEC61970::Base::Core::PowerSystemResource - { - - public: - ShuntCompensatorPhase(); - virtual ~ShuntCompensatorPhase(); - /** - * The maximum number of sections that may be switched in for this phase. - */ - IEC61970::Base::Domain::Integer maximumSections; - /** - * For the capacitor phase, the normal number of sections switched in. - */ - IEC61970::Base::Domain::Integer normalSections; - /** - * Phase of this shunt compensator component. If the shunt compensator is wye - * connected, the connection is from the indicated phase to the central ground or - * neutral point. If the shunt compensator is delta connected, the phase - * indicates a shunt compensator connected from the indicated phase to the next - * logical non-neutral phase. - */ - IEC61970::Base::Wires::SinglePhaseKind phase = IEC61970::Base::Wires::SinglePhaseKind::_undef; - - }; - - } - - } - -} -#endif // SHUNTCOMPENSATORPHASE_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/SinglePhaseKind.h b/IEC61970_17v07/IEC61970/Base/Wires/SinglePhaseKind.h deleted file mode 100644 index d9caebc58..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/SinglePhaseKind.h +++ /dev/null @@ -1,53 +0,0 @@ -/////////////////////////////////////////////////////////// -// SinglePhaseKind.h -// Implementation of the Class SinglePhaseKind -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#ifndef SINGLEPHASEKIND_H -#define SINGLEPHASEKIND_H - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * Enumeration of single phase identifiers. Allows designation of single phases - * for both transmission and distribution equipment, circuits and loads. - */ - enum class SinglePhaseKind - { - /** - * Phase A. - */ - _undef = -1, A, - /** - * Phase B. - */ - B, - /** - * Phase C. - */ - C, - /** - * Neutral. - */ - N, - /** - * Secondary phase 1. - */ - s1, - /** - * Secondary phase 2. - */ - s2 - }; - - } - - } - -} -#endif // SINGLEPHASEKIND_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/StaticVarCompensator.cpp b/IEC61970_17v07/IEC61970/Base/Wires/StaticVarCompensator.cpp deleted file mode 100644 index 941972c7e..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/StaticVarCompensator.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// StaticVarCompensator.cpp -// Implementation of the Class StaticVarCompensator -/////////////////////////////////////////////////////////// - -#include "StaticVarCompensator.h" - -using IEC61970::Base::Wires::StaticVarCompensator; - - -StaticVarCompensator::StaticVarCompensator(){ - -} - - - -StaticVarCompensator::~StaticVarCompensator(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/StaticVarCompensator.h b/IEC61970_17v07/IEC61970/Base/Wires/StaticVarCompensator.h deleted file mode 100644 index 7ae223110..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/StaticVarCompensator.h +++ /dev/null @@ -1,77 +0,0 @@ -/////////////////////////////////////////////////////////// -// StaticVarCompensator.h -// Implementation of the Class StaticVarCompensator -/////////////////////////////////////////////////////////// - -#ifndef STATICVARCOMPENSATOR_H -#define STATICVARCOMPENSATOR_H - -#include "IEC61970/Base/Domain/Reactance.h" -#include "IEC61970/Base/Domain/ReactivePower.h" -#include "IEC61970/Base/Domain/VoltagePerReactivePower.h" -#include "IEC61970/Base/Wires/SVCControlMode.h" -#include "IEC61970/Base/Domain/Voltage.h" -#include "IEC61970/Base/Wires/RegulatingCondEq.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * A facility for providing variable and controllable shunt reactive power. The - * SVC typically consists of a stepdown transformer, filter, thyristor-controlled - * reactor, and thyristor-switched capacitor arms. - * - * The SVC may operate in fixed MVar output mode or in voltage control mode. When - * in voltage control mode, the output of the SVC will be proportional to the - * deviation of voltage at the controlled bus from the voltage setpoint. The SVC - * characteristic slope defines the proportion. If the voltage at the controlled - * bus is equal to the voltage setpoint, the SVC MVar output is zero. - */ - class StaticVarCompensator : public IEC61970::Base::Wires::RegulatingCondEq - { - - public: - StaticVarCompensator(); - virtual ~StaticVarCompensator(); - /** - * Maximum available capacitive reactance. - */ - IEC61970::Base::Domain::Reactance capacitiveRating; - /** - * Maximum available inductive reactance. - */ - IEC61970::Base::Domain::Reactance inductiveRating; - /** - * Reactive power injection. Load sign convention is used, i.e. positive sign - * means flow out from a node. - * Starting value for a steady state solution. - */ - IEC61970::Base::Domain::ReactivePower q; - /** - * The characteristics slope of an SVC defines how the reactive power output - * changes in proportion to the difference between the regulated bus voltage and - * the voltage setpoint. - */ - IEC61970::Base::Domain::VoltagePerReactivePower slope; - /** - * SVC control mode. - */ - IEC61970::Base::Wires::SVCControlMode sVCControlMode = IEC61970::Base::Wires::SVCControlMode::_undef; - /** - * The reactive power output of the SVC is proportional to the difference between - * the voltage at the regulated bus and the voltage setpoint. When the regulated - * bus voltage is equal to the voltage setpoint, the reactive power output is zero. - */ - IEC61970::Base::Domain::Voltage voltageSetPoint; - - }; - - } - - } - -} -#endif // STATICVARCOMPENSATOR_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/Switch.cpp b/IEC61970_17v07/IEC61970/Base/Wires/Switch.cpp deleted file mode 100644 index 6c0b613c7..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/Switch.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// Switch.cpp -// Implementation of the Class Switch -/////////////////////////////////////////////////////////// - -#include "Switch.h" - -using IEC61970::Base::Wires::Switch; - - -Switch::Switch(){ - -} - - - -Switch::~Switch(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/Switch.h b/IEC61970_17v07/IEC61970/Base/Wires/Switch.h deleted file mode 100644 index bd6ce4188..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/Switch.h +++ /dev/null @@ -1,80 +0,0 @@ -/////////////////////////////////////////////////////////// -// Switch.h -// Implementation of the Class Switch -/////////////////////////////////////////////////////////// - -#ifndef SWITCH_H -#define SWITCH_H - -#include - -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Domain/CurrentFlow.h" -#include "IEC61970/Base/Domain/Integer.h" -#include "IEC61970/Base/Domain/DateTime.h" -#include "IEC61970/Base/Wires/SwitchPhase.h" -#include "IEC61970/Base/Wires/SwitchSchedule.h" -#include "IEC61970/Base/Core/ConductingEquipment.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * A generic device designed to close, or open, or both, one or more electric - * circuits. All switches are two terminal devices including grounding switches. - */ - class Switch : public IEC61970::Base::Core::ConductingEquipment - { - - public: - Switch(); - virtual ~Switch(); - /** - * The attribute is used in cases when no Measurement for the status value is - * present. If the Switch has a status measurement the Discrete.normalValue is - * expected to match with the Switch.normalOpen. - */ - IEC61970::Base::Domain::Boolean normalOpen; - /** - * The attribute tells if the switch is considered open when used as input to - * topology processing. - */ - IEC61970::Base::Domain::Boolean open; - /** - * The maximum continuous current carrying capacity in amps governed by the device - * material and construction. - */ - IEC61970::Base::Domain::CurrentFlow ratedCurrent; - /** - * Branch is retained in a bus branch model. The flow through retained switches - * will normally be calculated in power flow. - */ - IEC61970::Base::Domain::Boolean retained; - /** - * The switch on count since the switch was last reset or initialized. - */ - IEC61970::Base::Domain::Integer switchOnCount; - /** - * The date and time when the switch was last switched on. - */ - IEC61970::Base::Domain::DateTime switchOnDate; - /** - * The individual switch phases for the switch. - */ - std::list SwitchPhase; - /** - * A Switch can be associated with SwitchSchedules. - */ - std::list SwitchSchedules; - - }; - - } - - } - -} -#endif // SWITCH_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/SwitchPhase.cpp b/IEC61970_17v07/IEC61970/Base/Wires/SwitchPhase.cpp deleted file mode 100644 index 3ae722984..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/SwitchPhase.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// SwitchPhase.cpp -// Implementation of the Class SwitchPhase -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#include "SwitchPhase.h" - -using IEC61970::Base::Wires::SwitchPhase; - - -SwitchPhase::SwitchPhase(){ - -} - - - -SwitchPhase::~SwitchPhase(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/SwitchPhase.h b/IEC61970_17v07/IEC61970/Base/Wires/SwitchPhase.h deleted file mode 100644 index 919e147f5..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/SwitchPhase.h +++ /dev/null @@ -1,59 +0,0 @@ -/////////////////////////////////////////////////////////// -// SwitchPhase.h -// Implementation of the Class SwitchPhase -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#ifndef SWITCHPHASE_H -#define SWITCHPHASE_H - -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Wires/SinglePhaseKind.h" -#include "IEC61970/Base/Core/PowerSystemResource.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * Single phase of a multi-phase switch when its attributes might be different per - * phase. - */ - class SwitchPhase : public IEC61970::Base::Core::PowerSystemResource - { - - public: - SwitchPhase(); - virtual ~SwitchPhase(); - /** - * The attribute tells if the switch is considered closed when used as input to - * topology processing. - */ - IEC61970::Base::Domain::Boolean closed; - /** - * Used in cases when no Measurement for the status value is present. If the - * SwitchPhase has a status measurement the Discrete.normalValue is expected to - * match with this value. - */ - IEC61970::Base::Domain::Boolean normalOpen; - /** - * Phase of this SwitchPhase on the side with terminal sequence number equal 1. - * Should be a phase contained in that terminal’s phases attribute. - */ - IEC61970::Base::Wires::SinglePhaseKind phaseSide1 = IEC61970::Base::Wires::SinglePhaseKind::_undef; - /** - * Phase of this SwitchPhase on the side with terminal sequence number equal 2. - * Should be a phase contained in that terminal’s Terminal.phases attribute. - */ - IEC61970::Base::Wires::SinglePhaseKind phaseSide2 = IEC61970::Base::Wires::SinglePhaseKind::_undef; - - }; - - } - - } - -} -#endif // SWITCHPHASE_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/SwitchSchedule.cpp b/IEC61970_17v07/IEC61970/Base/Wires/SwitchSchedule.cpp deleted file mode 100644 index a536c2c0c..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/SwitchSchedule.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// SwitchSchedule.cpp -// Implementation of the Class SwitchSchedule -// Original author: KLH -/////////////////////////////////////////////////////////// - -#include "SwitchSchedule.h" - -using IEC61970::Base::Wires::SwitchSchedule; - - -SwitchSchedule::SwitchSchedule(){ - -} - - - -SwitchSchedule::~SwitchSchedule(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/SwitchSchedule.h b/IEC61970_17v07/IEC61970/Base/Wires/SwitchSchedule.h deleted file mode 100644 index a1354eb35..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/SwitchSchedule.h +++ /dev/null @@ -1,36 +0,0 @@ -/////////////////////////////////////////////////////////// -// SwitchSchedule.h -// Implementation of the Class SwitchSchedule -// Original author: KLH -/////////////////////////////////////////////////////////// - -#ifndef SWITCHSCHEDULE_H -#define SWITCHSCHEDULE_H - -#include "IEC61970/Base/LoadModel/SeasonDayTypeSchedule.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * A schedule of switch positions. If RegularTimePoint.value1 is 0, the switch is - * open. If 1, the switch is closed. - */ - class SwitchSchedule : public IEC61970::Base::LoadModel::SeasonDayTypeSchedule - { - - public: - SwitchSchedule(); - virtual ~SwitchSchedule(); - - }; - - } - - } - -} -#endif // SWITCHSCHEDULE_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/SynchronousMachine.cpp b/IEC61970_17v07/IEC61970/Base/Wires/SynchronousMachine.cpp deleted file mode 100644 index 0d9053b9e..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/SynchronousMachine.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// SynchronousMachine.cpp -// Implementation of the Class SynchronousMachine -/////////////////////////////////////////////////////////// - -#include "SynchronousMachine.h" - -using IEC61970::Base::Wires::SynchronousMachine; - - -SynchronousMachine::SynchronousMachine(){ - -} - - - -SynchronousMachine::~SynchronousMachine(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/SynchronousMachine.h b/IEC61970_17v07/IEC61970/Base/Wires/SynchronousMachine.h deleted file mode 100644 index 4b325fb7d..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/SynchronousMachine.h +++ /dev/null @@ -1,201 +0,0 @@ -/////////////////////////////////////////////////////////// -// SynchronousMachine.h -// Implementation of the Class SynchronousMachine -/////////////////////////////////////////////////////////// - -#ifndef SYNCHRONOUSMACHINE_H -#define SYNCHRONOUSMACHINE_H - -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Domain/ReactivePower.h" -#include "IEC61970/Base/Domain/ActivePower.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Wires/CoolantType.h" -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Domain/Resistance.h" -#include "IEC61970/Base/Domain/Reactance.h" -#include "IEC61970/Base/Domain/CurrentFlow.h" -#include "IEC61970/Base/Domain/Voltage.h" -#include "IEC61970/Base/Wires/SynchronousMachineOperatingMode.h" -#include "IEC61970/Base/Domain/PerCent.h" -#include "IEC61970/Base/Domain/Integer.h" -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Wires/ShortCircuitRotorKind.h" -#include "IEC61970/Base/Wires/SynchronousMachineKind.h" -#include "IEC61970/Base/Wires/RotatingMachine.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * An electromechanical device that operates with shaft rotating synchronously - * with the network. It is a single machine operating either as a generator or - * synchronous condenser or pump. - */ - class SynchronousMachine : public IEC61970::Base::Wires::RotatingMachine - { - - public: - SynchronousMachine(); - virtual ~SynchronousMachine(); - /** - * Time delay required when switching from Automatic Voltage Regulation (AVR) to - * Manual for a lagging MVAr violation. - */ - IEC61970::Base::Domain::Seconds aVRToManualLag; - /** - * Time delay required when switching from Automatic Voltage Regulation (AVR) to - * Manual for a leading MVAr violation. - */ - IEC61970::Base::Domain::Seconds aVRToManualLead; - /** - * Default base reactive power value. This value represents the initial reactive - * power that can be used by any application function. - */ - IEC61970::Base::Domain::ReactivePower baseQ; - /** - * Active power consumed when in condenser mode operation. - */ - IEC61970::Base::Domain::ActivePower condenserP; - /** - * Temperature or pressure of coolant medium - */ - IEC61970::Base::Domain::Float coolantCondition; - /** - * Method of cooling the machine. - */ - IEC61970::Base::Wires::CoolantType coolantType = IEC61970::Base::Wires::CoolantType::_undef; - /** - * Indicates whether or not the generator is earthed. Used for short circuit data - * exchange according to IEC 60909 - */ - IEC61970::Base::Domain::Boolean earthing; - /** - * Generator star point earthing resistance (Re). Used for short circuit data - * exchange according to IEC 60909 - */ - IEC61970::Base::Domain::Resistance earthingStarPointR; - /** - * Generator star point earthing reactance (Xe). Used for short circuit data - * exchange according to IEC 60909 - */ - IEC61970::Base::Domain::Reactance earthingStarPointX; - /** - * Steady-state short-circuit current (in A for the profile) of generator with - * compound excitation during 3-phase short circuit. - * - Ikk=0: Generator with no compound excitation. - * - Ikk?0: Generator with compound excitation. - * Ikk is used to calculate the minimum steady-state short-circuit current for - * generators with compound excitation - * (Section 4.6.1.2 in the IEC 60909-0) - * Used only for single fed short circuit on a generator. (Section 4.3.4.2. in the - * IEC 60909-0) - */ - IEC61970::Base::Domain::CurrentFlow ikk; - /** - * Time delay required when switching from Manual to Automatic Voltage Regulation. - * This value is used in the accelerating power reference frame for powerflow - * solutions - */ - IEC61970::Base::Domain::Seconds manualToAVR; - /** - * Maximum reactive power limit. This is the maximum (nameplate) limit for the - * unit. - */ - IEC61970::Base::Domain::ReactivePower maxQ; - /** - * Maximum voltage limit for the unit. - */ - IEC61970::Base::Domain::Voltage maxU; - /** - * Minimum reactive power limit for the unit. - */ - IEC61970::Base::Domain::ReactivePower minQ; - /** - * Minimum voltage limit for the unit. - */ - IEC61970::Base::Domain::Voltage minU; - /** - * Factor to calculate the breaking current (Section 4.5.2.1 in the IEC 60909-0). - * Used only for single fed short circuit on a generator (Section 4.3.4.2. in the - * IEC 60909-0). - */ - IEC61970::Base::Domain::Float mu; - /** - * Current mode of operation. - */ - IEC61970::Base::Wires::SynchronousMachineOperatingMode operatingMode = IEC61970::Base::Wires::SynchronousMachineOperatingMode::_undef; - /** - * Percent of the coordinated reactive control that comes from this machine. - */ - IEC61970::Base::Domain::PerCent qPercent; - /** - * Equivalent resistance (RG) of generator. RG is considered for the calculation - * of all currents, except for the calculation of the peak current ip. Used for - * short circuit data exchange according to IEC 60909 - */ - IEC61970::Base::Domain::Resistance r; - /** - * Zero sequence resistance of the synchronous machine. - */ - IEC61970::Base::Domain::Resistance r0; - /** - * Negative sequence resistance. - */ - IEC61970::Base::Domain::Resistance r2; - /** - * Priority of unit for use as powerflow voltage phase angle reference bus - * selection. 0 = don t care (default) 1 = highest priority. 2 is less than 1 and - * so on. - */ - IEC61970::Base::Domain::Integer referencePriority; - /** - * Direct-axis subtransient reactance saturated, also known as Xd"sat. - */ - IEC61970::Base::Domain::PU satDirectSubtransX; - /** - * Direct-axes saturated synchronous reactance (xdsat); reciprocal of short- - * circuit ration. Used for short circuit data exchange, only for single fed short - * circuit on a generator. (Section 4.3.4.2. in the IEC 60909-0). - */ - IEC61970::Base::Domain::PU satDirectSyncX; - /** - * Saturated Direct-axis transient reactance. The attribute is primarily used for - * short circuit calculations according to ANSI. - */ - IEC61970::Base::Domain::PU satDirectTransX; - /** - * Type of rotor, used by short circuit applications, only for single fed short - * circuit according to IEC 60909. - */ - IEC61970::Base::Wires::ShortCircuitRotorKind shortCircuitRotorType = IEC61970::Base::Wires::ShortCircuitRotorKind::_undef; - /** - * Modes that this synchronous machine can operate in. - */ - IEC61970::Base::Wires::SynchronousMachineKind type = IEC61970::Base::Wires::SynchronousMachineKind::_undef; - /** - * Range of generator voltage regulation (PG in the IEC 60909-0) used for - * calculation of the impedance correction factor KG defined in IEC 60909-0 - * This attribute is used to describe the operating voltage of the generating unit. - */ - IEC61970::Base::Domain::PerCent voltageRegulationRange; - /** - * Zero sequence reactance of the synchronous machine. - */ - IEC61970::Base::Domain::Reactance x0; - /** - * Negative sequence reactance. - */ - IEC61970::Base::Domain::Reactance x2; - - }; - - } - - } - -} -#endif // SYNCHRONOUSMACHINE_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/SynchronousMachineKind.h b/IEC61970_17v07/IEC61970/Base/Wires/SynchronousMachineKind.h deleted file mode 100644 index c1f7d8277..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/SynchronousMachineKind.h +++ /dev/null @@ -1,34 +0,0 @@ -/////////////////////////////////////////////////////////// -// SynchronousMachineKind.h -// Implementation of the Class SynchronousMachineKind -/////////////////////////////////////////////////////////// - -#ifndef SYNCHRONOUSMACHINEKIND_H -#define SYNCHRONOUSMACHINEKIND_H - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * Synchronous machine type. - */ - enum class SynchronousMachineKind - { - generator, - condenser, - _undef = -1, generatorOrCondenser, - motor, - generatorOrMotor, - motorOrCondenser, - generatorOrCondenserOrMotor - }; - - } - - } - -} -#endif // SYNCHRONOUSMACHINEKIND_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/SynchronousMachineOperatingMode.h b/IEC61970_17v07/IEC61970/Base/Wires/SynchronousMachineOperatingMode.h deleted file mode 100644 index 1cdc3a5ad..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/SynchronousMachineOperatingMode.h +++ /dev/null @@ -1,30 +0,0 @@ -/////////////////////////////////////////////////////////// -// SynchronousMachineOperatingMode.h -// Implementation of the Class SynchronousMachineOperatingMode -/////////////////////////////////////////////////////////// - -#ifndef SYNCHRONOUSMACHINEOPERATINGMODE_H -#define SYNCHRONOUSMACHINEOPERATINGMODE_H - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * Synchronous machine operating mode. - */ - enum class SynchronousMachineOperatingMode - { - _undef = -1, generator, - condenser, - motor - }; - - } - - } - -} -#endif // SYNCHRONOUSMACHINEOPERATINGMODE_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/TapChanger.cpp b/IEC61970_17v07/IEC61970/Base/Wires/TapChanger.cpp deleted file mode 100644 index b6b793174..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/TapChanger.cpp +++ /dev/null @@ -1,21 +0,0 @@ -/////////////////////////////////////////////////////////// -// TapChanger.cpp -// Implementation of the Class TapChanger -/////////////////////////////////////////////////////////// - -#include "TapChanger.h" - -using IEC61970::Base::Wires::TapChanger; - - -TapChanger::TapChanger() - : TapChangerControl(nullptr) -{ - -} - - - -TapChanger::~TapChanger(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/TapChanger.h b/IEC61970_17v07/IEC61970/Base/Wires/TapChanger.h deleted file mode 100644 index 1d0b0be13..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/TapChanger.h +++ /dev/null @@ -1,99 +0,0 @@ -/////////////////////////////////////////////////////////// -// TapChanger.h -// Implementation of the Class TapChanger -/////////////////////////////////////////////////////////// - -#ifndef TAPCHANGER_H -#define TAPCHANGER_H - -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Domain/Integer.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Domain/Voltage.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Wires/TapChangerControl.h" -#include "IEC61970/Base/Core/PowerSystemResource.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * Mechanism for changing transformer winding tap positions. - */ - class TapChanger : public IEC61970::Base::Core::PowerSystemResource - { - - public: - TapChanger(); - virtual ~TapChanger(); - /** - * Specifies the regulation status of the equipment. True is regulating, false is - * not regulating. - */ - IEC61970::Base::Domain::Boolean controlEnabled; - /** - * Highest possible tap step position, advance from neutral. - * The attribute shall be greater than lowStep. - */ - IEC61970::Base::Domain::Integer highStep; - /** - * For an LTC, the delay for initial tap changer operation (first step change) - */ - IEC61970::Base::Domain::Seconds initialDelay; - /** - * Lowest possible tap step position, retard from neutral - */ - IEC61970::Base::Domain::Integer lowStep; - /** - * Specifies whether or not a TapChanger has load tap changing capabilities. - */ - IEC61970::Base::Domain::Boolean ltcFlag; - /** - * The neutral tap step position for this winding. - * The attribute shall be equal or greater than lowStep and equal or less than - * highStep. - */ - IEC61970::Base::Domain::Integer neutralStep; - /** - * Voltage at which the winding operates at the neutral tap setting. - */ - IEC61970::Base::Domain::Voltage neutralU; - /** - * The tap step position used in "normal" network operation for this winding. For - * a "Fixed" tap changer indicates the current physical tap setting. - * The attribute shall be equal or greater than lowStep and equal or less than - * highStep. - */ - IEC61970::Base::Domain::Integer normalStep; - /** - * Tap changer position. - * Starting step for a steady state solution. Non integer values are allowed to - * support continuous tap variables. The reasons for continuous value are to - * support study cases where no discrete tap changers has yet been designed, a - * solutions where a narrow voltage band force the tap step to oscillate or - * accommodate for a continuous solution as input. - * The attribute shall be equal or greater than lowStep and equal or less than - * highStep. - */ - IEC61970::Base::Domain::Float step; - /** - * For an LTC, the delay for subsequent tap changer operation (second and later - * step changes) - */ - IEC61970::Base::Domain::Seconds subsequentDelay; - /** - * The regulating control scheme in which this tap changer participates. - */ - IEC61970::Base::Wires::TapChangerControl *TapChangerControl; - - }; - - } - - } - -} -#endif // TAPCHANGER_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/TapChangerControl.cpp b/IEC61970_17v07/IEC61970/Base/Wires/TapChangerControl.cpp deleted file mode 100644 index f63405a48..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/TapChangerControl.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// TapChangerControl.cpp -// Implementation of the Class TapChangerControl -// Original author: Tom -/////////////////////////////////////////////////////////// - -#include "TapChangerControl.h" - -using IEC61970::Base::Wires::TapChangerControl; - - -TapChangerControl::TapChangerControl(){ - -} - - - -TapChangerControl::~TapChangerControl(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/TapChangerControl.h b/IEC61970_17v07/IEC61970/Base/Wires/TapChangerControl.h deleted file mode 100644 index 45a3c7627..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/TapChangerControl.h +++ /dev/null @@ -1,66 +0,0 @@ -/////////////////////////////////////////////////////////// -// TapChangerControl.h -// Implementation of the Class TapChangerControl -// Original author: Tom -/////////////////////////////////////////////////////////// - -#ifndef TAPCHANGERCONTROL_H -#define TAPCHANGERCONTROL_H - -#include "IEC61970/Base/Domain/Voltage.h" -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Domain/Resistance.h" -#include "IEC61970/Base/Domain/Reactance.h" -#include "IEC61970/Base/Wires/RegulatingControl.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * Describes behavior specific to tap changers, e.g. how the voltage at the end of - * a line varies with the load level and compensation of the voltage drop by tap - * adjustment. - */ - class TapChangerControl : public IEC61970::Base::Wires::RegulatingControl - { - - public: - TapChangerControl(); - virtual ~TapChangerControl(); - /** - * Maximum allowed regulated voltage on the PT secondary, regardless of line drop - * compensation. Sometimes referred to as first-house protection. - */ - IEC61970::Base::Domain::Voltage limitVoltage; - /** - * If true, the line drop compensation is to be applied. - */ - IEC61970::Base::Domain::Boolean lineDropCompensation; - /** - * Line drop compensator resistance setting for normal (forward) power flow. - */ - IEC61970::Base::Domain::Resistance lineDropR; - /** - * Line drop compensator reactance setting for normal (forward) power flow. - */ - IEC61970::Base::Domain::Reactance lineDropX; - /** - * Line drop compensator resistance setting for reverse power flow. - */ - IEC61970::Base::Domain::Resistance reverseLineDropR; - /** - * Line drop compensator reactance setting for reverse power flow. - */ - IEC61970::Base::Domain::Reactance reverseLineDropX; - - }; - - } - - } - -} -#endif // TAPCHANGERCONTROL_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/TapChangerTablePoint.cpp b/IEC61970_17v07/IEC61970/Base/Wires/TapChangerTablePoint.cpp deleted file mode 100644 index f6e842dbb..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/TapChangerTablePoint.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// TapChangerTablePoint.cpp -// Implementation of the Class TapChangerTablePoint -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#include "TapChangerTablePoint.h" - -using IEC61970::Base::Wires::TapChangerTablePoint; - - -TapChangerTablePoint::TapChangerTablePoint(){ - -} - - - -TapChangerTablePoint::~TapChangerTablePoint(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/TapChangerTablePoint.h b/IEC61970_17v07/IEC61970/Base/Wires/TapChangerTablePoint.h deleted file mode 100644 index 368425d14..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/TapChangerTablePoint.h +++ /dev/null @@ -1,77 +0,0 @@ -/////////////////////////////////////////////////////////// -// TapChangerTablePoint.h -// Implementation of the Class TapChangerTablePoint -// Original author: selaost1 -/////////////////////////////////////////////////////////// - -#ifndef TAPCHANGERTABLEPOINT_H -#define TAPCHANGERTABLEPOINT_H - -#include "BaseClass.h" -#include "IEC61970/Base/Domain/PerCent.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/Integer.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - class TapChangerTablePoint : public BaseClass - { - - public: - TapChangerTablePoint(); - virtual ~TapChangerTablePoint(); - /** - * The magnetizing branch susceptance deviation in percent of nominal value. The - * actual susceptance is calculated as follows: - * calculated magnetizing susceptance = b(nominal) * (1 + b(from this class)/100). - * The b(nominal) is defined as the static magnetizing susceptance on the - * associated power transformer end or ends. This model assumes the star - * impedance (pi model) form. - */ - IEC61970::Base::Domain::PerCent b; - /** - * The magnetizing branch conductance deviation in percent of nominal value. The - * actual conductance is calculated as follows: - * calculated magnetizing conductance = g(nominal) * (1 + g(from this class)/100). - * The g(nominal) is defined as the static magnetizing conductance on the - * associated power transformer end or ends. This model assumes the star - * impedance (pi model) form. - */ - IEC61970::Base::Domain::PerCent g; - /** - * The resistance deviation in percent of nominal value. The actual reactance is - * calculated as follows: - * calculated resistance = r(nominal) * (1 + r(from this class)/100). The - * r(nominal) is defined as the static resistance on the associated power - * transformer end or ends. This model assumes the star impedance (pi model) form. - */ - IEC61970::Base::Domain::PerCent r; - /** - * The voltage ratio in per unit. Hence this is a value close to one. - */ - IEC61970::Base::Domain::Float ratio; - /** - * The tap step. - */ - IEC61970::Base::Domain::Integer step; - /** - * The series reactance deviation in percent of nominal value. The actual - * reactance is calculated as follows: - * calculated reactance = x(nominal) * (1 + x(from this class)/100). The - * x(nominal) is defined as the static series reactance on the associated power - * transformer end or ends. This model assumes the star impedance (pi model) form. - */ - IEC61970::Base::Domain::PerCent x; - - }; - - } - - } - -} -#endif // TAPCHANGERTABLEPOINT_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/TapSchedule.cpp b/IEC61970_17v07/IEC61970/Base/Wires/TapSchedule.cpp deleted file mode 100644 index 0ea20e40e..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/TapSchedule.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// TapSchedule.cpp -// Implementation of the Class TapSchedule -// Original author: KLH -/////////////////////////////////////////////////////////// - -#include "TapSchedule.h" - -using IEC61970::Base::Wires::TapSchedule; - - -TapSchedule::TapSchedule() - : TapChanger(nullptr) -{ - -} - - - -TapSchedule::~TapSchedule(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/TapSchedule.h b/IEC61970_17v07/IEC61970/Base/Wires/TapSchedule.h deleted file mode 100644 index 1edcfb992..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/TapSchedule.h +++ /dev/null @@ -1,40 +0,0 @@ -/////////////////////////////////////////////////////////// -// TapSchedule.h -// Implementation of the Class TapSchedule -// Original author: KLH -/////////////////////////////////////////////////////////// - -#ifndef TAPSCHEDULE_H -#define TAPSCHEDULE_H - -#include "IEC61970/Base/LoadModel/SeasonDayTypeSchedule.h" -#include "IEC61970/Base/Wires/TapChanger.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * A pre-established pattern over time for a tap step. - */ - class TapSchedule : public IEC61970::Base::LoadModel::SeasonDayTypeSchedule - { - - public: - TapSchedule(); - virtual ~TapSchedule(); - /** - * A TapSchedule is associated with a TapChanger. - */ - IEC61970::Base::Wires::TapChanger *TapChanger; - - }; - - } - - } - -} -#endif // TAPSCHEDULE_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/TransformerControlMode.h b/IEC61970_17v07/IEC61970/Base/Wires/TransformerControlMode.h deleted file mode 100644 index 40136eb9b..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/TransformerControlMode.h +++ /dev/null @@ -1,35 +0,0 @@ -/////////////////////////////////////////////////////////// -// TransformerControlMode.h -// Implementation of the Class TransformerControlMode -/////////////////////////////////////////////////////////// - -#ifndef TRANSFORMERCONTROLMODE_H -#define TRANSFORMERCONTROLMODE_H - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * Control modes for a transformer. - */ - enum class TransformerControlMode - { - /** - * Voltage control - */ - _undef = -1, volt, - /** - * Reactive power flow control - */ - reactive - }; - - } - - } - -} -#endif // TRANSFORMERCONTROLMODE_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/TransformerCoreAdmittance.cpp b/IEC61970_17v07/IEC61970/Base/Wires/TransformerCoreAdmittance.cpp deleted file mode 100644 index bfce650e0..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/TransformerCoreAdmittance.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// TransformerCoreAdmittance.cpp -// Implementation of the Class TransformerCoreAdmittance -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#include "TransformerCoreAdmittance.h" - -using IEC61970::Base::Wires::TransformerCoreAdmittance; - - -TransformerCoreAdmittance::TransformerCoreAdmittance(){ - -} - - - -TransformerCoreAdmittance::~TransformerCoreAdmittance(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/TransformerCoreAdmittance.h b/IEC61970_17v07/IEC61970/Base/Wires/TransformerCoreAdmittance.h deleted file mode 100644 index f5e07156d..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/TransformerCoreAdmittance.h +++ /dev/null @@ -1,61 +0,0 @@ -/////////////////////////////////////////////////////////// -// TransformerCoreAdmittance.h -// Implementation of the Class TransformerCoreAdmittance -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#ifndef TRANSFORMERCOREADMITTANCE_H -#define TRANSFORMERCOREADMITTANCE_H - -#include - -#include "IEC61970/Base/Domain/Susceptance.h" -#include "IEC61970/Base/Domain/Conductance.h" -#include "IEC61970/Base/Wires/TransformerEnd.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * The transformer core admittance. Used to specify the core admittance of a - * transformer in a manner that can be shared among power transformers. - */ - class TransformerCoreAdmittance : public IEC61970::Base::Core::IdentifiedObject - { - - public: - TransformerCoreAdmittance(); - virtual ~TransformerCoreAdmittance(); - /** - * Magnetizing branch susceptance (B mag). The value can be positive or negative. - */ - IEC61970::Base::Domain::Susceptance b; - /** - * Zero sequence magnetizing branch susceptance. - */ - IEC61970::Base::Domain::Susceptance b0; - /** - * Magnetizing branch conductance (G mag). - */ - IEC61970::Base::Domain::Conductance g; - /** - * Zero sequence magnetizing branch conductance. - */ - IEC61970::Base::Domain::Conductance g0; - /** - * All transformer ends having this core admittance. - */ - std::list TransformerEnd; - - }; - - } - - } - -} -#endif // TRANSFORMERCOREADMITTANCE_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/TransformerEnd.cpp b/IEC61970_17v07/IEC61970/Base/Wires/TransformerEnd.cpp deleted file mode 100644 index 193025783..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/TransformerEnd.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// TransformerEnd.cpp -// Implementation of the Class TransformerEnd -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#include "TransformerEnd.h" - -using IEC61970::Base::Wires::TransformerEnd; - - -TransformerEnd::TransformerEnd() - : PhaseTapChanger(nullptr), StarImpedance(nullptr), RatioTapChanger(nullptr), BaseVoltage(nullptr), Terminal(nullptr) -{ - -} - - - -TransformerEnd::~TransformerEnd(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/TransformerEnd.h b/IEC61970_17v07/IEC61970/Base/Wires/TransformerEnd.h deleted file mode 100644 index b726d42df..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/TransformerEnd.h +++ /dev/null @@ -1,106 +0,0 @@ -/////////////////////////////////////////////////////////// -// TransformerEnd.h -// Implementation of the Class TransformerEnd -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#ifndef TRANSFORMEREND_H -#define TRANSFORMEREND_H - -#include "IEC61970/Base/Domain/PerCent.h" -#include "IEC61970/Base/Domain/Integer.h" -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Domain/Voltage.h" -#include "IEC61970/Base/Domain/Resistance.h" -#include "IEC61970/Base/Domain/Reactance.h" -#include "IEC61970/Base/Wires/PhaseTapChanger.h" -#include "IEC61970/Base/Wires/TransformerStarImpedance.h" -#include "IEC61970/Base/Wires/RatioTapChanger.h" -#include "IEC61970/Base/Core/BaseVoltage.h" -#include "IEC61970/Base/Core/Terminal.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * A conducting connection point of a power transformer. It corresponds to a - * physical transformer winding terminal. In earlier CIM versions, the - * TransformerWinding class served a similar purpose, but this class is more - * flexible because it associates to terminal but is not a specialization of - * ConductingEquipment. - */ - class TransformerEnd : public IEC61970::Base::Core::IdentifiedObject - { - - public: - TransformerEnd(); - virtual ~TransformerEnd(); - /** - * Core shunt magnetizing susceptance in the saturation region. - */ - IEC61970::Base::Domain::PerCent bmagSat; - /** - * Number for this transformer end, corresponding to the end's order in the power - * transformer vector group or phase angle clock number. Highest voltage winding - * should be 1. Each end within a power transformer should have a unique - * subsequent end number. Note the transformer end number need not match the - * terminal sequence number. - */ - IEC61970::Base::Domain::Integer endNumber; - /** - * (for Yn and Zn connections) True if the neutral is solidly grounded. - */ - IEC61970::Base::Domain::Boolean grounded; - /** - * The reference voltage at which the magnetizing saturation measurements were made - */ - IEC61970::Base::Domain::Voltage magBaseU; - /** - * Core magnetizing saturation curve knee flux level. - */ - IEC61970::Base::Domain::PerCent magSatFlux; - /** - * (for Yn and Zn connections) Resistance part of neutral impedance where - * 'grounded' is true. - */ - IEC61970::Base::Domain::Resistance rground; - /** - * (for Yn and Zn connections) Reactive part of neutral impedance where 'grounded' - * is true. - */ - IEC61970::Base::Domain::Reactance xground; - /** - * Phase tap changer associated with this transformer end. - */ - IEC61970::Base::Wires::PhaseTapChanger *PhaseTapChanger; - /** - * (accurate for 2- or 3-winding transformers only) Pi-model impedances of this - * transformer end. By convention, for a two winding transformer, the full values - * of the transformer should be entered on the high voltage end (endNumber=1). - */ - IEC61970::Base::Wires::TransformerStarImpedance *StarImpedance; - /** - * Ratio tap changer associated with this transformer end. - */ - IEC61970::Base::Wires::RatioTapChanger *RatioTapChanger; - /** - * Base voltage of the transformer end. This is essential for PU calculation. - */ - IEC61970::Base::Core::BaseVoltage *BaseVoltage; - /** - * Terminal of the power transformer to which this transformer end belongs. - */ - IEC61970::Base::Core::Terminal *Terminal; - - }; - - } - - } - -} -#endif // TRANSFORMEREND_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/TransformerMeshImpedance.cpp b/IEC61970_17v07/IEC61970/Base/Wires/TransformerMeshImpedance.cpp deleted file mode 100644 index fd0cc9483..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/TransformerMeshImpedance.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// TransformerMeshImpedance.cpp -// Implementation of the Class TransformerMeshImpedance -// Original author: LOO -/////////////////////////////////////////////////////////// - -#include "TransformerMeshImpedance.h" - -using IEC61970::Base::Wires::TransformerMeshImpedance; - - -TransformerMeshImpedance::TransformerMeshImpedance() - : FromTransformerEnd(nullptr) -{ - -} - - - -TransformerMeshImpedance::~TransformerMeshImpedance(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/TransformerMeshImpedance.h b/IEC61970_17v07/IEC61970/Base/Wires/TransformerMeshImpedance.h deleted file mode 100644 index 898db3a32..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/TransformerMeshImpedance.h +++ /dev/null @@ -1,71 +0,0 @@ -/////////////////////////////////////////////////////////// -// TransformerMeshImpedance.h -// Implementation of the Class TransformerMeshImpedance -// Original author: LOO -/////////////////////////////////////////////////////////// - -#ifndef TRANSFORMERMESHIMPEDANCE_H -#define TRANSFORMERMESHIMPEDANCE_H - -#include - -#include "IEC61970/Base/Domain/Resistance.h" -#include "IEC61970/Base/Domain/Reactance.h" -#include "IEC61970/Base/Wires/TransformerEnd.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * Transformer mesh impedance (Delta-model) between transformer ends. - * The typical case is that this class describes the impedance between two - * transformer ends pair-wise, i.e. the cardinalities at both tranformer end - * associations are 1. But in cases where two or more transformer ends are modeled - * the cardinalities are larger than 1. - */ - class TransformerMeshImpedance : public IEC61970::Base::Core::IdentifiedObject - { - - public: - TransformerMeshImpedance(); - virtual ~TransformerMeshImpedance(); - /** - * Resistance between the 'from' and the 'to' end, seen from the 'from' end. - */ - IEC61970::Base::Domain::Resistance r; - /** - * Zero-sequence resistance between the 'from' and the 'to' end, seen from the - * 'from' end. - */ - IEC61970::Base::Domain::Resistance r0; - /** - * Reactance between the 'from' and the 'to' end, seen from the 'from' end. - */ - IEC61970::Base::Domain::Reactance x; - /** - * Zero-sequence reactance between the 'from' and the 'to' end, seen from the - * 'from' end. - */ - IEC61970::Base::Domain::Reactance x0; - /** - * All transformer ends this mesh impedance is connected to. - */ - std::list ToTransformerEnd; - /** - * From end this mesh impedance is connected to. It determines the voltage - * reference. - */ - IEC61970::Base::Wires::TransformerEnd *FromTransformerEnd; - - }; - - } - - } - -} -#endif // TRANSFORMERMESHIMPEDANCE_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/TransformerStarImpedance.cpp b/IEC61970_17v07/IEC61970/Base/Wires/TransformerStarImpedance.cpp deleted file mode 100644 index 60e0ba3ec..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/TransformerStarImpedance.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// TransformerStarImpedance.cpp -// Implementation of the Class TransformerStarImpedance -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#include "TransformerStarImpedance.h" - -using IEC61970::Base::Wires::TransformerStarImpedance; - - -TransformerStarImpedance::TransformerStarImpedance(){ - -} - - - -TransformerStarImpedance::~TransformerStarImpedance(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/TransformerStarImpedance.h b/IEC61970_17v07/IEC61970/Base/Wires/TransformerStarImpedance.h deleted file mode 100644 index 42ea7dc47..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/TransformerStarImpedance.h +++ /dev/null @@ -1,57 +0,0 @@ -/////////////////////////////////////////////////////////// -// TransformerStarImpedance.h -// Implementation of the Class TransformerStarImpedance -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#ifndef TRANSFORMERSTARIMPEDANCE_H -#define TRANSFORMERSTARIMPEDANCE_H - -#include "IEC61970/Base/Domain/Resistance.h" -#include "IEC61970/Base/Domain/Reactance.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * Transformer star impedance (Pi-model) that accurately reflects impedance for - * transformers with 2 or 3 windings. For transformers with 4 or more windings, - * you must use TransformerMeshImpedance class. - * For transmission networks use PowerTransformerEnd impedances (r, r0, x, x0, b, - * b0, g and g0). - */ - class TransformerStarImpedance : public IEC61970::Base::Core::IdentifiedObject - { - - public: - TransformerStarImpedance(); - virtual ~TransformerStarImpedance(); - /** - * Resistance of the transformer end. - */ - IEC61970::Base::Domain::Resistance r; - /** - * Zero sequence series resistance of the transformer end. - */ - IEC61970::Base::Domain::Resistance r0; - /** - * Positive sequence series reactance of the transformer end. - */ - IEC61970::Base::Domain::Reactance x; - /** - * Zero sequence series reactance of the transformer end. - */ - IEC61970::Base::Domain::Reactance x0; - - }; - - } - - } - -} -#endif // TRANSFORMERSTARIMPEDANCE_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/TransformerTank.cpp b/IEC61970_17v07/IEC61970/Base/Wires/TransformerTank.cpp deleted file mode 100644 index 83ed1e2ff..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/TransformerTank.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// TransformerTank.cpp -// Implementation of the Class TransformerTank -// Original author: Tom -/////////////////////////////////////////////////////////// - -#include "TransformerTank.h" - -using IEC61970::Base::Wires::TransformerTank; - - -TransformerTank::TransformerTank() - : PowerTransformer(nullptr) -{ - -} - - - -TransformerTank::~TransformerTank(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/TransformerTank.h b/IEC61970_17v07/IEC61970/Base/Wires/TransformerTank.h deleted file mode 100644 index 26f238c09..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/TransformerTank.h +++ /dev/null @@ -1,43 +0,0 @@ -/////////////////////////////////////////////////////////// -// TransformerTank.h -// Implementation of the Class TransformerTank -// Original author: Tom -/////////////////////////////////////////////////////////// - -#ifndef TRANSFORMERTANK_H -#define TRANSFORMERTANK_H - -#include "IEC61970/Base/Wires/PowerTransformer.h" -#include "IEC61970/Base/Core/Equipment.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * An assembly of two or more coupled windings that transform electrical power - * between voltage levels. These windings are bound on a common core and place in - * the same tank. Transformer tank can be used to model both single-phase and 3- - * phase transformers. - */ - class TransformerTank : public IEC61970::Base::Core::Equipment - { - - public: - TransformerTank(); - virtual ~TransformerTank(); - /** - * Bank this transformer belongs to. - */ - IEC61970::Base::Wires::PowerTransformer *PowerTransformer; - - }; - - } - - } - -} -#endif // TRANSFORMERTANK_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/TransformerTankEnd.cpp b/IEC61970_17v07/IEC61970/Base/Wires/TransformerTankEnd.cpp deleted file mode 100644 index c5c39757e..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/TransformerTankEnd.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// TransformerTankEnd.cpp -// Implementation of the Class TransformerTankEnd -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#include "TransformerTankEnd.h" - -using IEC61970::Base::Wires::TransformerTankEnd; - - -TransformerTankEnd::TransformerTankEnd() - : TransformerTank(nullptr) -{ - -} - - - -TransformerTankEnd::~TransformerTankEnd(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/TransformerTankEnd.h b/IEC61970_17v07/IEC61970/Base/Wires/TransformerTankEnd.h deleted file mode 100644 index 62827ac3c..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/TransformerTankEnd.h +++ /dev/null @@ -1,47 +0,0 @@ -/////////////////////////////////////////////////////////// -// TransformerTankEnd.h -// Implementation of the Class TransformerTankEnd -// Original author: T. Kostic -/////////////////////////////////////////////////////////// - -#ifndef TRANSFORMERTANKEND_H -#define TRANSFORMERTANKEND_H - -#include "IEC61970/Base/Core/PhaseCode.h" -#include "IEC61970/Base/Wires/TransformerEnd.h" -#include "IEC61970/Base/Wires/TransformerTank.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * Transformer tank end represents an individual winding for unbalanced models or - * for transformer tanks connected into a bank (and bank is modelled with the - * PowerTransformer). - */ - class TransformerTankEnd : public IEC61970::Base::Wires::TransformerEnd - { - - public: - TransformerTankEnd(); - virtual ~TransformerTankEnd(); - /** - * Describes the phases carried by a conducting equipment. - */ - IEC61970::Base::Core::PhaseCode phases = IEC61970::Base::Core::PhaseCode::_undef; - /** - * Transformer this winding belongs to. - */ - IEC61970::Base::Wires::TransformerTank *TransformerTank; - - }; - - } - - } - -} -#endif // TRANSFORMERTANKEND_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/VoltageControlZone.cpp b/IEC61970_17v07/IEC61970/Base/Wires/VoltageControlZone.cpp deleted file mode 100644 index 59815d3db..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/VoltageControlZone.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// VoltageControlZone.cpp -// Implementation of the Class VoltageControlZone -/////////////////////////////////////////////////////////// - -#include "VoltageControlZone.h" - -using IEC61970::Base::Wires::VoltageControlZone; - - -VoltageControlZone::VoltageControlZone(){ - -} - - - -VoltageControlZone::~VoltageControlZone(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/VoltageControlZone.h b/IEC61970_17v07/IEC61970/Base/Wires/VoltageControlZone.h deleted file mode 100644 index 7912c8cf3..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/VoltageControlZone.h +++ /dev/null @@ -1,36 +0,0 @@ -/////////////////////////////////////////////////////////// -// VoltageControlZone.h -// Implementation of the Class VoltageControlZone -/////////////////////////////////////////////////////////// - -#ifndef VOLTAGECONTROLZONE_H -#define VOLTAGECONTROLZONE_H - -#include "IEC61970/Base/Core/PowerSystemResource.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * An area of the power system network which is defined for secondary voltage - * control purposes. A voltage control zone consists of a collection of - * substations with a designated bus bar section whose voltage will be controlled. - */ - class VoltageControlZone : public IEC61970::Base::Core::PowerSystemResource - { - - public: - VoltageControlZone(); - virtual ~VoltageControlZone(); - - }; - - } - - } - -} -#endif // VOLTAGECONTROLZONE_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/WindTurbineType3or4.cpp b/IEC61970_17v07/IEC61970/Base/Wires/WindTurbineType3or4.cpp deleted file mode 100644 index 3b37c408d..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/WindTurbineType3or4.cpp +++ /dev/null @@ -1,19 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindTurbineType3or4.cpp -// Implementation of the Class WindTurbineType3or4 -/////////////////////////////////////////////////////////// - -#include "WindTurbineType3or4.h" - -using IEC61970::Base::Wires::WindTurbineType3or4; - - -WindTurbineType3or4::WindTurbineType3or4(){ - -} - - - -WindTurbineType3or4::~WindTurbineType3or4(){ - -} diff --git a/IEC61970_17v07/IEC61970/Base/Wires/WindTurbineType3or4.h b/IEC61970_17v07/IEC61970/Base/Wires/WindTurbineType3or4.h deleted file mode 100644 index aea683da1..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/WindTurbineType3or4.h +++ /dev/null @@ -1,35 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindTurbineType3or4.h -// Implementation of the Class WindTurbineType3or4 -/////////////////////////////////////////////////////////// - -#ifndef WINDTURBINETYPE3OR4_H -#define WINDTURBINETYPE3OR4_H - -#include "IEC61970/Base/Wires/NonRotatingEnergy.h" - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * Either a single generator or an aggregation of generators of Type 3 and 4 wind - * turbines. - */ - class WindTurbineType3or4 : public IEC61970::Base::Wires::NonRotatingEnergy - { - - public: - WindTurbineType3or4(); - virtual ~WindTurbineType3or4(); - - }; - - } - - } - -} -#endif // WINDTURBINETYPE3OR4_H diff --git a/IEC61970_17v07/IEC61970/Base/Wires/WindingConnection.h b/IEC61970_17v07/IEC61970/Base/Wires/WindingConnection.h deleted file mode 100644 index a9b965fff..000000000 --- a/IEC61970_17v07/IEC61970/Base/Wires/WindingConnection.h +++ /dev/null @@ -1,55 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindingConnection.h -// Implementation of the Class WindingConnection -/////////////////////////////////////////////////////////// - -#ifndef WINDINGCONNECTION_H -#define WINDINGCONNECTION_H - -namespace IEC61970 -{ - namespace Base - { - namespace Wires - { - /** - * Winding connection type. - */ - enum class WindingConnection - { - /** - * Delta - */ - _undef = -1, D, - /** - * Wye - */ - Y, - /** - * ZigZag - */ - Z, - /** - * Wye, with neutral brought out for grounding. - */ - Yn, - /** - * ZigZag, with neutral brought out for grounding. - */ - Zn, - /** - * Autotransformer common winding - */ - A, - /** - * Independent winding, for single-phase connections - */ - I - }; - - } - - } - -} -#endif // WINDINGCONNECTION_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardInterconnections/RemoteInputSignal.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardInterconnections/RemoteInputSignal.cpp deleted file mode 100644 index f5388caac..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardInterconnections/RemoteInputSignal.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// RemoteInputSignal.cpp -// Implementation of the Class RemoteInputSignal -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#include "RemoteInputSignal.h" - -using IEC61970::Dynamics::StandardInterconnections::RemoteInputSignal; - - -RemoteInputSignal::RemoteInputSignal() - : Terminal(nullptr) -{ - -} - - - -RemoteInputSignal::~RemoteInputSignal(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardInterconnections/RemoteInputSignal.h b/IEC61970_17v07/IEC61970/Dynamics/StandardInterconnections/RemoteInputSignal.h deleted file mode 100644 index 66653f40b..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardInterconnections/RemoteInputSignal.h +++ /dev/null @@ -1,46 +0,0 @@ -/////////////////////////////////////////////////////////// -// RemoteInputSignal.h -// Implementation of the Class RemoteInputSignal -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#ifndef REMOTEINPUTSIGNAL_H -#define REMOTEINPUTSIGNAL_H - -#include "IEC61970/Dynamics/StandardInterconnections/RemoteSignalKind.h" -#include "IEC61970/Base/Core/Terminal.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardInterconnections - { - /** - * Supports connection to a terminal associated with a remote bus from which an - * input signal of a specific type is coming. - */ - class RemoteInputSignal : public IEC61970::Base::Core::IdentifiedObject - { - - public: - RemoteInputSignal(); - virtual ~RemoteInputSignal(); - /** - * Type of input signal. - */ - IEC61970::Dynamics::StandardInterconnections::RemoteSignalKind remoteSignalType = IEC61970::Dynamics::StandardInterconnections::RemoteSignalKind::_undef; - /** - * Remote terminal with which this input signal is associated. - */ - IEC61970::Base::Core::Terminal *Terminal; - - }; - - } - - } - -} -#endif // REMOTEINPUTSIGNAL_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardInterconnections/RemoteSignalKind.h b/IEC61970_17v07/IEC61970/Dynamics/StandardInterconnections/RemoteSignalKind.h deleted file mode 100644 index 1dd908118..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardInterconnections/RemoteSignalKind.h +++ /dev/null @@ -1,64 +0,0 @@ -/////////////////////////////////////////////////////////// -// RemoteSignalKind.h -// Implementation of the Class RemoteSignalKind -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#ifndef REMOTESIGNALKIND_H -#define REMOTESIGNALKIND_H - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardInterconnections - { - /** - * Type of input signal coming from remote bus. - */ - enum class RemoteSignalKind - { - /** - * Input is voltage frequency from remote terminal bus. - */ - _undef = -1, remoteBusVoltageFrequency, - /** - * Input is voltage frequency deviation from remote terminal bus. - */ - remoteBusVoltageFrequencyDeviation, - /** - * Input is frequency from remote terminal bus. - */ - remoteBusFrequency, - /** - * Input is frequency deviation from remote terminal bus. - */ - remoteBusFrequencyDeviation, - /** - * Input is voltage amplitude from remote terminal bus. - */ - remoteBusVoltageAmplitude, - /** - * Input is voltage from remote terminal bus. - */ - remoteBusVoltage, - /** - * Input is branch current amplitude from remote terminal bus. - */ - remoteBranchCurrentAmplitude, - /** - * Input is branch current amplitude derivative from remote terminal bus. - */ - remoteBusVoltageAmplitudeDerivative, - /** - * Input is PU voltage derivative from remote terminal bus. - */ - remotePuBusVoltageDerivative - }; - - } - - } - -} -#endif // REMOTESIGNALKIND_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/AsynchronousMachineDynamics/AsynchronousMachineDynamics.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/AsynchronousMachineDynamics/AsynchronousMachineDynamics.cpp deleted file mode 100644 index 301a2469a..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/AsynchronousMachineDynamics/AsynchronousMachineDynamics.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// AsynchronousMachineDynamics.cpp -// Implementation of the Class AsynchronousMachineDynamics -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "AsynchronousMachineDynamics.h" - -using IEC61970::Dynamics::StandardModels::AsynchronousMachineDynamics::AsynchronousMachineDynamics; - - -AsynchronousMachineDynamics::AsynchronousMachineDynamics() - : AsynchronousMachine(nullptr) -{ - -} - - - -AsynchronousMachineDynamics::~AsynchronousMachineDynamics(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/AsynchronousMachineDynamics/AsynchronousMachineDynamics.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/AsynchronousMachineDynamics/AsynchronousMachineDynamics.h deleted file mode 100644 index b7eb543bc..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/AsynchronousMachineDynamics/AsynchronousMachineDynamics.h +++ /dev/null @@ -1,54 +0,0 @@ -/////////////////////////////////////////////////////////// -// AsynchronousMachineDynamics.h -// Implementation of the Class AsynchronousMachineDynamics -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef ASYNCHRONOUSMACHINEDYNAMICS_H -#define ASYNCHRONOUSMACHINEDYNAMICS_H - -#include "IEC61970/Base/Wires/AsynchronousMachine.h" -#include "IEC61970/Dynamics/StandardModels/RotatingMachineDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace AsynchronousMachineDynamics - { - /** - * Asynchronous machine whose behaviour is described by reference to a standard - * model expressed in either time constant reactance form or equivalent circuit - * form or by definition of a user-defined model. - * - * Parameter Notes: - *
    - *
  1. Asynchronous machine parameters such as Xl, Xs etc. are actually - * used as inductances (L) in the model, but are commonly referred to as - * reactances since, at nominal frequency, the per unit values are the same. - * However, some references use the symbol L instead of X.
  2. - *
- */ - class AsynchronousMachineDynamics : public IEC61970::Dynamics::StandardModels::RotatingMachineDynamics - { - - public: - AsynchronousMachineDynamics(); - virtual ~AsynchronousMachineDynamics(); - /** - * Asynchronous machine to which this asynchronous machine dynamics model applies. - */ - IEC61970::Base::Wires::AsynchronousMachine *AsynchronousMachine; - - }; - - } - - } - - } - -} -#endif // ASYNCHRONOUSMACHINEDYNAMICS_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/AsynchronousMachineDynamics/AsynchronousMachineEquivalentCircuit.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/AsynchronousMachineDynamics/AsynchronousMachineEquivalentCircuit.cpp deleted file mode 100644 index dd6de32b9..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/AsynchronousMachineDynamics/AsynchronousMachineEquivalentCircuit.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// AsynchronousMachineEquivalentCircuit.cpp -// Implementation of the Class AsynchronousMachineEquivalentCircuit -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#include "AsynchronousMachineEquivalentCircuit.h" - -using IEC61970::Dynamics::StandardModels::AsynchronousMachineDynamics::AsynchronousMachineEquivalentCircuit; - - -AsynchronousMachineEquivalentCircuit::AsynchronousMachineEquivalentCircuit(){ - -} - - - -AsynchronousMachineEquivalentCircuit::~AsynchronousMachineEquivalentCircuit(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/AsynchronousMachineDynamics/AsynchronousMachineEquivalentCircuit.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/AsynchronousMachineDynamics/AsynchronousMachineEquivalentCircuit.h deleted file mode 100644 index 581a0073b..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/AsynchronousMachineDynamics/AsynchronousMachineEquivalentCircuit.h +++ /dev/null @@ -1,85 +0,0 @@ -/////////////////////////////////////////////////////////// -// AsynchronousMachineEquivalentCircuit.h -// Implementation of the Class AsynchronousMachineEquivalentCircuit -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#ifndef ASYNCHRONOUSMACHINEEQUIVALENTCIRCUIT_H -#define ASYNCHRONOUSMACHINEEQUIVALENTCIRCUIT_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Dynamics/StandardModels/AsynchronousMachineDynamics/AsynchronousMachineDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace AsynchronousMachineDynamics - { - /** - * The electrical equations of all variations of the asynchronous model are based - * on the AsynchronousEquivalentCircuit diagram for the direct and quadrature axes, - * with two equivalent rotor windings in each axis. - * - * Equations for conversion between Equivalent Circuit and Time Constant - * Reactance forms: - * Xs = Xm + Xl - * X' = Xl + Xm * Xlr1 / (Xm + Xlr1) - * X'' = Xl + Xm * Xlr1* Xlr2 / (Xm * - * Xlr1 + Xm * Xlr2 + Xlr1 * Xlr2) - * T'o = (Xm + Xlr1) / (omega0 * - * Rr1) - * T''o = (Xm * Xlr1 + Xm * Xlr2 + Xlr1 - * * Xlr2) / (omega0 * Rr2 * (Xm + - * Xlr1) - * - * Same equations using CIM attributes from - * AsynchronousMachineTimeConstantReactance class on left of = sign and - * AsynchronousMachineEquivalentCircuit class on right (except as noted): - * xs = xm + RotatingMachineDynamics.statorLeakageReactance - * xp = RotatingMachineDynamics.statorLeakageReactance + xm * xlr1 / (xm + xlr1) - * xpp = RotatingMachineDynamics.statorLeakageReactance + xm * xlr1* xlr2 / (xm * - * xlr1 + xm * xlr2 + xlr1 * xlr2) - * tpo = (xm + xlr1) / (2*pi*nominal frequency * rr1) - * tppo = (xm * xlr1 + xm * xlr2 + xlr1 * xlr2) / (2*pi*nominal frequency * rr2 * - * (xm + xlr1). - */ - class AsynchronousMachineEquivalentCircuit : public IEC61970::Dynamics::StandardModels::AsynchronousMachineDynamics::AsynchronousMachineDynamics - { - - public: - AsynchronousMachineEquivalentCircuit(); - virtual ~AsynchronousMachineEquivalentCircuit(); - /** - * Damper 1 winding resistance. - */ - IEC61970::Base::Domain::PU rr1; - /** - * Damper 2 winding resistance. - */ - IEC61970::Base::Domain::PU rr2; - /** - * Damper 1 winding leakage reactance. - */ - IEC61970::Base::Domain::PU xlr1; - /** - * Damper 2 winding leakage reactance. - */ - IEC61970::Base::Domain::PU xlr2; - /** - * Magnetizing reactance. - */ - IEC61970::Base::Domain::PU xm; - - }; - - } - - } - - } - -} -#endif // ASYNCHRONOUSMACHINEEQUIVALENTCIRCUIT_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/AsynchronousMachineDynamics/AsynchronousMachineTimeConstantReactance.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/AsynchronousMachineDynamics/AsynchronousMachineTimeConstantReactance.cpp deleted file mode 100644 index 97dd023cc..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/AsynchronousMachineDynamics/AsynchronousMachineTimeConstantReactance.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// AsynchronousMachineTimeConstantReactance.cpp -// Implementation of the Class AsynchronousMachineTimeConstantReactance -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#include "AsynchronousMachineTimeConstantReactance.h" - -using IEC61970::Dynamics::StandardModels::AsynchronousMachineDynamics::AsynchronousMachineTimeConstantReactance; - - -AsynchronousMachineTimeConstantReactance::AsynchronousMachineTimeConstantReactance(){ - -} - - - -AsynchronousMachineTimeConstantReactance::~AsynchronousMachineTimeConstantReactance(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/AsynchronousMachineDynamics/AsynchronousMachineTimeConstantReactance.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/AsynchronousMachineDynamics/AsynchronousMachineTimeConstantReactance.h deleted file mode 100644 index 68b23e4c0..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/AsynchronousMachineDynamics/AsynchronousMachineTimeConstantReactance.h +++ /dev/null @@ -1,84 +0,0 @@ -/////////////////////////////////////////////////////////// -// AsynchronousMachineTimeConstantReactance.h -// Implementation of the Class AsynchronousMachineTimeConstantReactance -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#ifndef ASYNCHRONOUSMACHINETIMECONSTANTREACTANCE_H -#define ASYNCHRONOUSMACHINETIMECONSTANTREACTANCE_H - -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Dynamics/StandardModels/AsynchronousMachineDynamics/AsynchronousMachineDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace AsynchronousMachineDynamics - { - /** - * Parameter Notes: - *
    - *
  1. If X'' = X', a single cage (one equivalent rotor winding per - * axis) is modelled.
  2. - *
  3. The “p” in the attribute names is a substitution for a “prime” in the - * usual parameter notation, e.g. tpo refers to T'o.
  4. - *
- * - * The parameters used for models expressed in time constant reactance form - * include: - *
    - *
  • RotatingMachine.ratedS (MVAbase)
  • - *
  • RotatingMachineDynamics.damping (D)
  • - *
  • RotatingMachineDynamics.inertia (H)
  • - *
  • RotatingMachineDynamics.saturationFactor (S1)
  • - *
  • RotatingMachineDynamics.saturationFactor120 (S12)
  • - *
  • RotatingMachineDynamics.statorLeakageReactance (Xl)
  • - *
  • RotatingMachineDynamics.statorResistance (Rs)
  • - *
  • .xs (Xs)
  • - *
  • .xp (X')
  • - *
  • .xpp (X'')
  • - *
  • .tpo (T'o)
  • - *
  • .tppo (T''o).
  • - *
- */ - class AsynchronousMachineTimeConstantReactance : public IEC61970::Dynamics::StandardModels::AsynchronousMachineDynamics::AsynchronousMachineDynamics - { - - public: - AsynchronousMachineTimeConstantReactance(); - virtual ~AsynchronousMachineTimeConstantReactance(); - /** - * Transient rotor time constant (T'o) (> T''o). Typical Value = 5. - */ - IEC61970::Base::Domain::Seconds tpo; - /** - * Subtransient rotor time constant (T''o) (> 0). Typical Value = 0.03. - */ - IEC61970::Base::Domain::Seconds tppo; - /** - * Transient reactance (unsaturated) (X') (>=X''). Typical Value = 0.5. - */ - IEC61970::Base::Domain::PU xp; - /** - * Subtransient reactance (unsaturated) (X'') (> Xl). Typical Value = 0.2. - */ - IEC61970::Base::Domain::PU xpp; - /** - * Synchronous reactance (Xs) (>= X'). Typical Value = 1.8. - */ - IEC61970::Base::Domain::PU xs; - - }; - - } - - } - - } - -} -#endif // ASYNCHRONOUSMACHINETIMECONSTANTREACTANCE_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/DiscontinuousExcitationControlDynamics/DiscExcContIEEEDEC1A.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/DiscontinuousExcitationControlDynamics/DiscExcContIEEEDEC1A.cpp deleted file mode 100644 index 391bf8150..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/DiscontinuousExcitationControlDynamics/DiscExcContIEEEDEC1A.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// DiscExcContIEEEDEC1A.cpp -// Implementation of the Class DiscExcContIEEEDEC1A -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#include "DiscExcContIEEEDEC1A.h" - -using IEC61970::Dynamics::StandardModels::DiscontinuousExcitationControlDynamics::DiscExcContIEEEDEC1A; - - -DiscExcContIEEEDEC1A::DiscExcContIEEEDEC1A(){ - -} - - - -DiscExcContIEEEDEC1A::~DiscExcContIEEEDEC1A(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/DiscontinuousExcitationControlDynamics/DiscExcContIEEEDEC1A.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/DiscontinuousExcitationControlDynamics/DiscExcContIEEEDEC1A.h deleted file mode 100644 index 642bf907c..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/DiscontinuousExcitationControlDynamics/DiscExcContIEEEDEC1A.h +++ /dev/null @@ -1,123 +0,0 @@ -/////////////////////////////////////////////////////////// -// DiscExcContIEEEDEC1A.h -// Implementation of the Class DiscExcContIEEEDEC1A -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#ifndef DISCEXCCONTIEEEDEC1A_H -#define DISCEXCCONTIEEEDEC1A_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/DiscontinuousExcitationControlDynamics/DiscontinuousExcitationControlDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace DiscontinuousExcitationControlDynamics - { - /** - * The class represents IEEE Type DEC1A discontinuous excitation control model - * that boosts generator excitation to a level higher than that demanded by the - * voltage regulator and stabilizer immediately following a system fault. - * - * Reference: IEEE Standard 421.5-2005 Section 12.2. - */ - class DiscExcContIEEEDEC1A : public IEC61970::Dynamics::StandardModels::DiscontinuousExcitationControlDynamics::DiscontinuousExcitationControlDynamics - { - - public: - DiscExcContIEEEDEC1A(); - virtual ~DiscExcContIEEEDEC1A(); - /** - * Speed change reference (ESC). Typical Value = 0.0015. - */ - IEC61970::Base::Domain::PU esc; - /** - * Discontinuous controller gain (KAN). Typical Value = - * 400. - */ - IEC61970::Base::Domain::PU kan; - /** - * Terminal voltage limiter gain (KETL). Typical Value = - * 47. - */ - IEC61970::Base::Domain::PU ketl; - /** - * Discontinuous controller time constant (TAN). Typical - * Value = 0.08. - */ - IEC61970::Base::Domain::Seconds tan; - /** - * Time constant (TD). Typical Value = 0.03. - */ - IEC61970::Base::Domain::Seconds td; - /** - * Time constant (TL1). Typical Value = 0.025. - */ - IEC61970::Base::Domain::Seconds tl1; - /** - * Time constant (TL2). Typical Value = 1.25. - */ - IEC61970::Base::Domain::Seconds tl2; - /** - * DEC washout time constant (TW5). Typical - * Value = 5. - */ - IEC61970::Base::Domain::Seconds tw5; - /** - * Regulator voltage reference (VAL). Typical Value = 5. - * 5. - */ - IEC61970::Base::Domain::PU val; - /** - * Limiter for Van (VANMAX). - */ - IEC61970::Base::Domain::PU vanmax; - /** - * Limiter (VOMAX). Typical Value = 0.3. - */ - IEC61970::Base::Domain::PU vomax; - /** - * Limiter (VOMIN). Typical Value = 0.1. - */ - IEC61970::Base::Domain::PU vomin; - /** - * Limiter (VSMAX). Typical Value = 0.2. - */ - IEC61970::Base::Domain::PU vsmax; - /** - * Limiter (VSMIN). Typical Value = -0.066. - */ - IEC61970::Base::Domain::PU vsmin; - /** - * Terminal voltage level reference (VTC). Typical Value - * = 0.95. - */ - IEC61970::Base::Domain::PU vtc; - /** - * Voltage reference (VTLMT). Typical Value = 1.1. - */ - IEC61970::Base::Domain::PU vtlmt; - /** - * Voltage limits (VTM). Typical Value = 1.13. - */ - IEC61970::Base::Domain::PU vtm; - /** - * Voltage limits (VTN). Typical Value = 1.12. - */ - IEC61970::Base::Domain::PU vtn; - - }; - - } - - } - - } - -} -#endif // DISCEXCCONTIEEEDEC1A_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/DiscontinuousExcitationControlDynamics/DiscExcContIEEEDEC2A.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/DiscontinuousExcitationControlDynamics/DiscExcContIEEEDEC2A.cpp deleted file mode 100644 index 52b500fdf..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/DiscontinuousExcitationControlDynamics/DiscExcContIEEEDEC2A.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// DiscExcContIEEEDEC2A.cpp -// Implementation of the Class DiscExcContIEEEDEC2A -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#include "DiscExcContIEEEDEC2A.h" - -using IEC61970::Dynamics::StandardModels::DiscontinuousExcitationControlDynamics::DiscExcContIEEEDEC2A; - - -DiscExcContIEEEDEC2A::DiscExcContIEEEDEC2A(){ - -} - - - -DiscExcContIEEEDEC2A::~DiscExcContIEEEDEC2A(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/DiscontinuousExcitationControlDynamics/DiscExcContIEEEDEC2A.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/DiscontinuousExcitationControlDynamics/DiscExcContIEEEDEC2A.h deleted file mode 100644 index 2208e9116..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/DiscontinuousExcitationControlDynamics/DiscExcContIEEEDEC2A.h +++ /dev/null @@ -1,65 +0,0 @@ -/////////////////////////////////////////////////////////// -// DiscExcContIEEEDEC2A.h -// Implementation of the Class DiscExcContIEEEDEC2A -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#ifndef DISCEXCCONTIEEEDEC2A_H -#define DISCEXCCONTIEEEDEC2A_H - -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Dynamics/StandardModels/DiscontinuousExcitationControlDynamics/DiscontinuousExcitationControlDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace DiscontinuousExcitationControlDynamics - { - /** - * The class represents IEEE Type DEC2A model for the discontinuous excitation - * control. This system provides transient excitation boosting via an open-loop - * control as initiated by a trigger signal generated remotely. - * - * Reference: IEEE Standard 421.5-2005 Section 12.3. - */ - class DiscExcContIEEEDEC2A : public IEC61970::Dynamics::StandardModels::DiscontinuousExcitationControlDynamics::DiscontinuousExcitationControlDynamics - { - - public: - DiscExcContIEEEDEC2A(); - virtual ~DiscExcContIEEEDEC2A(); - /** - * Discontinuous controller time constant (TD1). - */ - IEC61970::Base::Domain::Seconds td1; - /** - * Discontinuous controller washout time constant (TD2). - */ - IEC61970::Base::Domain::Seconds td2; - /** - * Limiter (VDMAX). - */ - IEC61970::Base::Domain::PU vdmax; - /** - * Limiter (VDMIN). - */ - IEC61970::Base::Domain::PU vdmin; - /** - * Discontinuous controller input reference (VK). - */ - IEC61970::Base::Domain::PU vk; - - }; - - } - - } - - } - -} -#endif // DISCEXCCONTIEEEDEC2A_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/DiscontinuousExcitationControlDynamics/DiscExcContIEEEDEC3A.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/DiscontinuousExcitationControlDynamics/DiscExcContIEEEDEC3A.cpp deleted file mode 100644 index c0fa7b216..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/DiscontinuousExcitationControlDynamics/DiscExcContIEEEDEC3A.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// DiscExcContIEEEDEC3A.cpp -// Implementation of the Class DiscExcContIEEEDEC3A -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#include "DiscExcContIEEEDEC3A.h" - -using IEC61970::Dynamics::StandardModels::DiscontinuousExcitationControlDynamics::DiscExcContIEEEDEC3A; - - -DiscExcContIEEEDEC3A::DiscExcContIEEEDEC3A(){ - -} - - - -DiscExcContIEEEDEC3A::~DiscExcContIEEEDEC3A(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/DiscontinuousExcitationControlDynamics/DiscExcContIEEEDEC3A.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/DiscontinuousExcitationControlDynamics/DiscExcContIEEEDEC3A.h deleted file mode 100644 index 7ba009e16..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/DiscontinuousExcitationControlDynamics/DiscExcContIEEEDEC3A.h +++ /dev/null @@ -1,54 +0,0 @@ -/////////////////////////////////////////////////////////// -// DiscExcContIEEEDEC3A.h -// Implementation of the Class DiscExcContIEEEDEC3A -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#ifndef DISCEXCCONTIEEEDEC3A_H -#define DISCEXCCONTIEEEDEC3A_H - -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Dynamics/StandardModels/DiscontinuousExcitationControlDynamics/DiscontinuousExcitationControlDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace DiscontinuousExcitationControlDynamics - { - /** - * The class represents IEEE Type DEC3A model. In some systems, the stabilizer - * output is disconnected from the regulator immediately following a severe fault - * to prevent the stabilizer from competing with action of voltage regulator - * during the first swing. - * - * Reference: IEEE Standard 421.5-2005 Section 12.4. - */ - class DiscExcContIEEEDEC3A : public IEC61970::Dynamics::StandardModels::DiscontinuousExcitationControlDynamics::DiscontinuousExcitationControlDynamics - { - - public: - DiscExcContIEEEDEC3A(); - virtual ~DiscExcContIEEEDEC3A(); - /** - * Reset time delay (TDR). - */ - IEC61970::Base::Domain::Seconds tdr; - /** - * Terminal undervoltage comparison level (VTMIN). - */ - IEC61970::Base::Domain::PU vtmin; - - }; - - } - - } - - } - -} -#endif // DISCEXCCONTIEEEDEC3A_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/DiscontinuousExcitationControlDynamics/DiscontinuousExcitationControlDynamics.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/DiscontinuousExcitationControlDynamics/DiscontinuousExcitationControlDynamics.cpp deleted file mode 100644 index 5c61b3b79..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/DiscontinuousExcitationControlDynamics/DiscontinuousExcitationControlDynamics.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// DiscontinuousExcitationControlDynamics.cpp -// Implementation of the Class DiscontinuousExcitationControlDynamics -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#include "DiscontinuousExcitationControlDynamics.h" - -using IEC61970::Dynamics::StandardModels::DiscontinuousExcitationControlDynamics::DiscontinuousExcitationControlDynamics; - - -DiscontinuousExcitationControlDynamics::DiscontinuousExcitationControlDynamics() - : ExcitationSystemDynamics(nullptr), RemoteInputSignal(nullptr) -{ - -} - - - -DiscontinuousExcitationControlDynamics::~DiscontinuousExcitationControlDynamics(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/DiscontinuousExcitationControlDynamics/DiscontinuousExcitationControlDynamics.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/DiscontinuousExcitationControlDynamics/DiscontinuousExcitationControlDynamics.h deleted file mode 100644 index 9a979fffc..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/DiscontinuousExcitationControlDynamics/DiscontinuousExcitationControlDynamics.h +++ /dev/null @@ -1,52 +0,0 @@ -/////////////////////////////////////////////////////////// -// DiscontinuousExcitationControlDynamics.h -// Implementation of the Class DiscontinuousExcitationControlDynamics -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#ifndef DISCONTINUOUSEXCITATIONCONTROLDYNAMICS_H -#define DISCONTINUOUSEXCITATIONCONTROLDYNAMICS_H - -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" -#include "IEC61970/Dynamics/StandardModels/DynamicsFunctionBlock.h" -#include "IEC61970/Dynamics/StandardInterconnections/RemoteInputSignal.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace DiscontinuousExcitationControlDynamics - { - /** - * Discontinuous excitation control function block whose behaviour is described by - * reference to a standard model or by definition of a user- - * defined model. - */ - class DiscontinuousExcitationControlDynamics : public IEC61970::Dynamics::StandardModels::DynamicsFunctionBlock - { - - public: - DiscontinuousExcitationControlDynamics(); - virtual ~DiscontinuousExcitationControlDynamics(); - /** - * Excitation system model with which this discontinuous excitation control model - * is associated. - */ - IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics *ExcitationSystemDynamics; - /** - * Remote input signal used by this discontinuous excitation control system model. - */ - IEC61970::Dynamics::StandardInterconnections::RemoteInputSignal *RemoteInputSignal; - - }; - - } - - } - - } - -} -#endif // DISCONTINUOUSEXCITATIONCONTROLDYNAMICS_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/DynamicsFunctionBlock.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/DynamicsFunctionBlock.cpp deleted file mode 100644 index a86a5a321..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/DynamicsFunctionBlock.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// DynamicsFunctionBlock.cpp -// Implementation of the Class DynamicsFunctionBlock -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#include "DynamicsFunctionBlock.h" - -using IEC61970::Dynamics::StandardModels::DynamicsFunctionBlock; - - -DynamicsFunctionBlock::DynamicsFunctionBlock(){ - -} - - - -DynamicsFunctionBlock::~DynamicsFunctionBlock(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/DynamicsFunctionBlock.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/DynamicsFunctionBlock.h deleted file mode 100644 index 7839002b4..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/DynamicsFunctionBlock.h +++ /dev/null @@ -1,42 +0,0 @@ -/////////////////////////////////////////////////////////// -// DynamicsFunctionBlock.h -// Implementation of the Class DynamicsFunctionBlock -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#ifndef DYNAMICSFUNCTIONBLOCK_H -#define DYNAMICSFUNCTIONBLOCK_H - -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - /** - * Abstract parent class for all Dynamics function blocks. - */ - class DynamicsFunctionBlock : public IEC61970::Base::Core::IdentifiedObject - { - - public: - DynamicsFunctionBlock(); - virtual ~DynamicsFunctionBlock(); - /** - * Function block used indicator. - * true = use of function block is enabled - * false = use of function block is disabled. - */ - IEC61970::Base::Domain::Boolean enabled; - - }; - - } - - } - -} -#endif // DYNAMICSFUNCTIONBLOCK_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAC1A.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAC1A.cpp deleted file mode 100644 index 45d13e428..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAC1A.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcAC1A.cpp -// Implementation of the Class ExcAC1A -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#include "ExcAC1A.h" - -using IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC1A; - - -ExcAC1A::ExcAC1A(){ - -} - - - -ExcAC1A::~ExcAC1A(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAC1A.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAC1A.h deleted file mode 100644 index dee9980ac..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAC1A.h +++ /dev/null @@ -1,143 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcAC1A.h -// Implementation of the Class ExcAC1A -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#ifndef EXCAC1A_H -#define EXCAC1A_H - -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace ExcitationSystemDynamics - { - /** - * Modified IEEE AC1A alternator-supplied rectifier excitation system with - * different rate feedback source. - */ - class ExcAC1A : public IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics - { - - public: - ExcAC1A(); - virtual ~ExcAC1A(); - /** - * Indicates if both HV gate and LV gate are active (HVLVgates). - * true = gates are used - * false = gates are not used. - * Typical Value = true. - */ - IEC61970::Base::Domain::Boolean hvlvgates; - /** - * Voltage regulator gain (Ka). Typical Value = 400. - */ - IEC61970::Base::Domain::PU ka; - /** - * Rectifier loading factor proportional to commutating reactance (Kc). Typical - * Value = 0.2. - */ - IEC61970::Base::Domain::PU kc; - /** - * Demagnetizing factor, a function of exciter alternator reactances (Kd). - * Typical Value = 0.38. - */ - IEC61970::Base::Domain::PU kd; - /** - * Exciter constant related to self-excited field (Ke). Typical Value = 1. - */ - IEC61970::Base::Domain::PU ke; - /** - * Excitation control system stabilizer gains (Kf). Typical Value = 0.03. - */ - IEC61970::Base::Domain::PU kf; - /** - * Coefficient to allow different usage of the model (Kf1). Typical Value = 0. - */ - IEC61970::Base::Domain::PU kf1; - /** - * Coefficient to allow different usage of the model (Kf2). Typical Value = 1. - */ - IEC61970::Base::Domain::PU kf2; - /** - * Coefficient to allow different usage of the model-speed coefficient (Ks). - * Typical Value = 0. - */ - IEC61970::Base::Domain::PU ks; - /** - * Exciter saturation function value at the corresponding exciter voltage, Ve1, - * back of commutating reactance (Se[Ve1]). Typical Value = 0.1. - */ - IEC61970::Base::Domain::Float seve1; - /** - * Exciter saturation function value at the corresponding exciter voltage, Ve2, - * back of commutating reactance (Se[Ve2]). Typical Value = 0.03. - */ - IEC61970::Base::Domain::Float seve2; - /** - * Voltage regulator time constant (Ta). Typical Value = 0.02. - */ - IEC61970::Base::Domain::Seconds ta; - /** - * Voltage regulator time constant (Tb). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tb; - /** - * Voltage regulator time constant (Tc). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tc; - /** - * Exciter time constant, integration rate associated with exciter control (Te). - * Typical Value = 0.8. - */ - IEC61970::Base::Domain::Seconds te; - /** - * Excitation control system stabilizer time constant (Tf). Typical Value = 1. - */ - IEC61970::Base::Domain::Seconds tf; - /** - * Maximum voltage regulator output (Vamax). Typical Value = 14.5. - */ - IEC61970::Base::Domain::PU vamax; - /** - * Minimum voltage regulator output (Vamin). Typical Value = -14.5. - */ - IEC61970::Base::Domain::PU vamin; - /** - * Exciter alternator output voltages back of commutating reactance at which - * saturation is defined (Ve1). Typical Value = 4.18. - */ - IEC61970::Base::Domain::PU ve1; - /** - * Exciter alternator output voltages back of commutating reactance at which - * saturation is defined (Ve2). Typical Value = 3.14. - */ - IEC61970::Base::Domain::PU ve2; - /** - * Maximum voltage regulator outputs (Vrmax). Typical Value = 6.03. - */ - IEC61970::Base::Domain::PU vrmax; - /** - * Minimum voltage regulator outputs (Rrmin). Typical Value = -5.43. - */ - IEC61970::Base::Domain::PU vrmin; - - }; - - } - - } - - } - -} -#endif // EXCAC1A_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAC2A.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAC2A.cpp deleted file mode 100644 index 4e619449d..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAC2A.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcAC2A.cpp -// Implementation of the Class ExcAC2A -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "ExcAC2A.h" - -using IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC2A; - - -ExcAC2A::ExcAC2A(){ - -} - - - -ExcAC2A::~ExcAC2A(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAC2A.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAC2A.h deleted file mode 100644 index 406375a7f..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAC2A.h +++ /dev/null @@ -1,175 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcAC2A.h -// Implementation of the Class ExcAC2A -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef EXCAC2A_H -#define EXCAC2A_H - -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace ExcitationSystemDynamics - { - /** - * Modified IEEE AC2A alternator-supplied rectifier excitation system with - * different field current limit. - */ - class ExcAC2A : public IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics - { - - public: - ExcAC2A(); - virtual ~ExcAC2A(); - /** - * Indicates if HV gate is active (HVgate). - * true = gate is used - * false = gate is not used. - * Typical Value = true. - */ - IEC61970::Base::Domain::Boolean hvgate; - /** - * Voltage regulator gain (Ka). Typical Value = 400. - */ - IEC61970::Base::Domain::PU ka; - /** - * Second stage regulator gain (Kb) (>0). Exciter field current controller gain. - * Typical Value = 25. - */ - IEC61970::Base::Domain::PU kb; - /** - * Second stage regulator gain (Kb1). It is exciter field current controller gain - * used as alternative to Kb to represent a variant of the ExcAC2A model. Typical - * Value = 25. - */ - IEC61970::Base::Domain::PU kb1; - /** - * Rectifier loading factor proportional to commutating reactance (Kc). Typical - * Value = 0.28. - */ - IEC61970::Base::Domain::PU kc; - /** - * Demagnetizing factor, a function of exciter alternator reactances (Kd). - * Typical Value = 0.35. - */ - IEC61970::Base::Domain::PU kd; - /** - * Exciter constant related to self-excited field (Ke). Typical Value = 1. - */ - IEC61970::Base::Domain::PU ke; - /** - * Excitation control system stabilizer gains (Kf). Typical Value = 0.03. - */ - IEC61970::Base::Domain::PU kf; - /** - * Exciter field current feedback gain (Kh). Typical Value = 1. - */ - IEC61970::Base::Domain::PU kh; - /** - * Exciter field current limiter gain (Kl). Typical Value = 10. - */ - IEC61970::Base::Domain::PU kl; - /** - * Coefficient to allow different usage of the model (Kl1). Typical Value = 1. - */ - IEC61970::Base::Domain::PU kl1; - /** - * Coefficient to allow different usage of the model-speed coefficient (Ks). - * Typical Value = 0. - */ - IEC61970::Base::Domain::PU ks; - /** - * Indicates if LV gate is active (LVgate). - * true = gate is used - * false = gate is not used. - * Typical Value = true. - */ - IEC61970::Base::Domain::Boolean lvgate; - /** - * Exciter saturation function value at the corresponding exciter voltage, - * Ve1, back of commutating reactance (Se[Ve1]). Typical - * Value = 0.037. - */ - IEC61970::Base::Domain::Float seve1; - /** - * Exciter saturation function value at the corresponding exciter voltage, - * Ve2, back of commutating reactance (Se[Ve2]). Typical - * Value = 0.012. - */ - IEC61970::Base::Domain::Float seve2; - /** - * Voltage regulator time constant (Ta). Typical Value = 0.02. - */ - IEC61970::Base::Domain::Seconds ta; - /** - * Voltage regulator time constant (Tb). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tb; - /** - * Voltage regulator time constant (Tc). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tc; - /** - * Exciter time constant, integration rate associated with exciter control (Te). - * Typical Value = 0.6. - */ - IEC61970::Base::Domain::Seconds te; - /** - * Excitation control system stabilizer time constant (Tf). Typical Value = 1. - */ - IEC61970::Base::Domain::Seconds tf; - /** - * Maximum voltage regulator output (Vamax). Typical Value = 8. - */ - IEC61970::Base::Domain::PU vamax; - /** - * Minimum voltage regulator output (Vamin). Typical Value = -8. - */ - IEC61970::Base::Domain::PU vamin; - /** - * Exciter alternator output voltages back of commutating reactance at which - * saturation is defined (Ve1). Typical Value = 4.4. - */ - IEC61970::Base::Domain::PU ve1; - /** - * Exciter alternator output voltages back of commutating reactance at which - * saturation is defined (Ve2). Typical Value = 3.3. - */ - IEC61970::Base::Domain::PU ve2; - /** - * Exciter field current limit reference (Vfemax). Typical Value = 4.4. - */ - IEC61970::Base::Domain::PU vfemax; - /** - * Maximum exciter field current (Vlr). Typical Value = 4.4. - */ - IEC61970::Base::Domain::PU vlr; - /** - * Maximum voltage regulator outputs (Vrmax). Typical Value = 105. - */ - IEC61970::Base::Domain::PU vrmax; - /** - * Minimum voltage regulator outputs (Vrmin). Typical Value = -95. - */ - IEC61970::Base::Domain::PU vrmin; - - }; - - } - - } - - } - -} -#endif // EXCAC2A_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAC3A.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAC3A.cpp deleted file mode 100644 index ed89abf18..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAC3A.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcAC3A.cpp -// Implementation of the Class ExcAC3A -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "ExcAC3A.h" - -using IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC3A; - - -ExcAC3A::ExcAC3A(){ - -} - - - -ExcAC3A::~ExcAC3A(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAC3A.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAC3A.h deleted file mode 100644 index e8339063c..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAC3A.h +++ /dev/null @@ -1,161 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcAC3A.h -// Implementation of the Class ExcAC3A -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef EXCAC3A_H -#define EXCAC3A_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace ExcitationSystemDynamics - { - /** - * Modified IEEE AC3A alternator-supplied rectifier excitation system with - * different field current limit. - */ - class ExcAC3A : public IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics - { - - public: - ExcAC3A(); - virtual ~ExcAC3A(); - /** - * Value of EFD at which feedback gain changes (Efdn). Typical Value = 2. - * 36. - */ - IEC61970::Base::Domain::PU efdn; - /** - * Voltage regulator gain (Ka). Typical Value = 45.62. - */ - IEC61970::Base::Domain::Seconds ka; - /** - * Rectifier loading factor proportional to commutating reactance (Kc). Typical - * Value = 0.104. - */ - IEC61970::Base::Domain::PU kc; - /** - * Demagnetizing factor, a function of exciter alternator reactances (Kd). - * Typical Value = 0.499. - */ - IEC61970::Base::Domain::PU kd; - /** - * Exciter constant related to self-excited field (Ke). Typical Value = 1. - */ - IEC61970::Base::Domain::PU ke; - /** - * Excitation control system stabilizer gains (Kf). Typical Value = 0.143. - */ - IEC61970::Base::Domain::PU kf; - /** - * Coefficient to allow different usage of the model (Kf1). Typical Value = 1. - */ - IEC61970::Base::Domain::PU kf1; - /** - * Coefficient to allow different usage of the model (Kf2). Typical Value = 0. - */ - IEC61970::Base::Domain::PU kf2; - /** - * Gain used in the minimum field voltage limiter loop (Klv). Typical Value = 0. - * 194. - */ - IEC61970::Base::Domain::PU klv; - /** - * Excitation control system stabilizer gain (Kn). Typical Value =0.05. - */ - IEC61970::Base::Domain::PU kn; - /** - * Constant associated with regulator and alternator field power supply (Kr). - * Typical Value =3.77. - */ - IEC61970::Base::Domain::PU kr; - /** - * Coefficient to allow different usage of the model-speed coefficient (Ks). - * Typical Value = 0. - */ - IEC61970::Base::Domain::PU ks; - /** - * Exciter saturation function value at the corresponding exciter voltage, - * Ve1, back of commutating reactance (Se[Ve1]). Typical - * Value = 1.143. - */ - IEC61970::Base::Domain::Float seve1; - /** - * Exciter saturation function value at the corresponding exciter voltage, - * Ve2, back of commutating reactance (Se[Ve2]). Typical - * Value = 0.1. - */ - IEC61970::Base::Domain::Float seve2; - /** - * Voltage regulator time constant (Ta). Typical Value = 0.013. - */ - IEC61970::Base::Domain::PU ta; - /** - * Voltage regulator time constant (Tb). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tb; - /** - * Voltage regulator time constant (Tc). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tc; - /** - * Exciter time constant, integration rate associated with exciter control (Te). - * Typical Value = 1.17. - */ - IEC61970::Base::Domain::Seconds te; - /** - * Excitation control system stabilizer time constant (Tf). Typical Value = 1. - */ - IEC61970::Base::Domain::Seconds tf; - /** - * Maximum voltage regulator output (Vamax). Typical Value = 1. - */ - IEC61970::Base::Domain::PU vamax; - /** - * Minimum voltage regulator output (Vamin). Typical Value = -0.95. - */ - IEC61970::Base::Domain::PU vamin; - /** - * Exciter alternator output voltages back of commutating reactance at which - * saturation is defined (Ve1) equals Vemax (Ve1). Typical Value = 6.24. - */ - IEC61970::Base::Domain::PU ve1; - /** - * Exciter alternator output voltages back of commutating reactance at which - * saturation is defined (Ve2). Typical Value = 4.68. - */ - IEC61970::Base::Domain::PU ve2; - /** - * Minimum exciter voltage output (Vemin). Typical Value = 0.1. - */ - IEC61970::Base::Domain::PU vemin; - /** - * Exciter field current limit reference (Vfemax). Typical Value = 16. - */ - IEC61970::Base::Domain::PU vfemax; - /** - * Field voltage used in the minimum field voltage limiter loop (Vlv). Typical - * Value = 0.79. - */ - IEC61970::Base::Domain::PU vlv; - - }; - - } - - } - - } - -} -#endif // EXCAC3A_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAC4A.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAC4A.cpp deleted file mode 100644 index 6175e167a..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAC4A.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcAC4A.cpp -// Implementation of the Class ExcAC4A -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "ExcAC4A.h" - -using IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC4A; - - -ExcAC4A::ExcAC4A(){ - -} - - - -ExcAC4A::~ExcAC4A(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAC4A.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAC4A.h deleted file mode 100644 index c7598c507..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAC4A.h +++ /dev/null @@ -1,79 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcAC4A.h -// Implementation of the Class ExcAC4A -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef EXCAC4A_H -#define EXCAC4A_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace ExcitationSystemDynamics - { - /** - * Modified IEEE AC4A alternator-supplied rectifier excitation system with - * different minimum controller output. - */ - class ExcAC4A : public IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics - { - - public: - ExcAC4A(); - virtual ~ExcAC4A(); - /** - * Voltage regulator gain (Ka). Typical Value = 200. - */ - IEC61970::Base::Domain::PU ka; - /** - * Rectifier loading factor proportional to commutating reactance (Kc). Typical - * Value = 0. - */ - IEC61970::Base::Domain::PU kc; - /** - * Voltage regulator time constant (Ta). Typical Value = 0.015. - */ - IEC61970::Base::Domain::Seconds ta; - /** - * Voltage regulator time constant (Tb). Typical Value = 10. - */ - IEC61970::Base::Domain::Seconds tb; - /** - * Voltage regulator time constant (Tc). Typical Value = 1. - */ - IEC61970::Base::Domain::Seconds tc; - /** - * Maximum voltage regulator input limit (Vimax). Typical Value = 10. - */ - IEC61970::Base::Domain::PU vimax; - /** - * Minimum voltage regulator input limit (Vimin). Typical Value = -10. - */ - IEC61970::Base::Domain::PU vimin; - /** - * Maximum voltage regulator output (Vrmax). Typical Value = 5.64. - */ - IEC61970::Base::Domain::PU vrmax; - /** - * Minimum voltage regulator output (Vrmin). Typical Value = -4.53. - */ - IEC61970::Base::Domain::PU vrmin; - - }; - - } - - } - - } - -} -#endif // EXCAC4A_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAC5A.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAC5A.cpp deleted file mode 100644 index 16e11f0ab..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAC5A.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcAC5A.cpp -// Implementation of the Class ExcAC5A -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "ExcAC5A.h" - -using IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC5A; - - -ExcAC5A::ExcAC5A(){ - -} - - - -ExcAC5A::~ExcAC5A(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAC5A.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAC5A.h deleted file mode 100644 index 8db5ca3a4..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAC5A.h +++ /dev/null @@ -1,121 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcAC5A.h -// Implementation of the Class ExcAC5A -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef EXCAC5A_H -#define EXCAC5A_H - -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace ExcitationSystemDynamics - { - /** - * Modified IEEE AC5A alternator-supplied rectifier excitation system with - * different minimum controller output. - */ - class ExcAC5A : public IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics - { - - public: - ExcAC5A(); - virtual ~ExcAC5A(); - /** - * Coefficient to allow different usage of the model (a). Typical Value = 1. - */ - IEC61970::Base::Domain::Float a; - /** - * Exciter voltage at which exciter saturation is defined (Efd1). Typical Value = - * 5.6. - */ - IEC61970::Base::Domain::PU efd1; - /** - * Exciter voltage at which exciter saturation is defined (Efd2). Typical Value = - * 4.2. - */ - IEC61970::Base::Domain::PU efd2; - /** - * Voltage regulator gain (Ka). Typical Value = 400. - */ - IEC61970::Base::Domain::PU ka; - /** - * Exciter constant related to self-excited field (Ke). Typical Value = 1. - */ - IEC61970::Base::Domain::PU ke; - /** - * Excitation control system stabilizer gains (Kf). Typical Value = 0.03. - */ - IEC61970::Base::Domain::PU kf; - /** - * Coefficient to allow different usage of the model-speed coefficient (Ks). - * Typical Value = 0. - */ - IEC61970::Base::Domain::PU ks; - /** - * Exciter saturation function value at the corresponding exciter voltage, Efd1 - * (SE[Efd1]). Typical Value = 0.86. - */ - IEC61970::Base::Domain::Float seefd1; - /** - * Exciter saturation function value at the corresponding exciter voltage, Efd2 - * (SE[Efd2]). Typical Value = 0.5. - */ - IEC61970::Base::Domain::Float seefd2; - /** - * Voltage regulator time constant (Ta). Typical Value = 0.02. - */ - IEC61970::Base::Domain::Seconds ta; - /** - * Voltage regulator time constant (Tb). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tb; - /** - * Voltage regulator time constant (Tc). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tc; - /** - * Exciter time constant, integration rate associated with exciter control (Te). - * Typical Value = 0.8. - */ - IEC61970::Base::Domain::Seconds te; - /** - * Excitation control system stabilizer time constant (Tf1). Typical Value = 1. - */ - IEC61970::Base::Domain::Seconds tf1; - /** - * Excitation control system stabilizer time constant (Tf2). Typical Value = 0.8. - */ - IEC61970::Base::Domain::Seconds tf2; - /** - * Excitation control system stabilizer time constant (Tf3). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tf3; - /** - * Maximum voltage regulator output (Vrmax). Typical Value = 7.3. - */ - IEC61970::Base::Domain::PU vrmax; - /** - * Minimum voltage regulator output (Vrmin). Typical Value =-7.3. - */ - IEC61970::Base::Domain::PU vrmin; - - }; - - } - - } - - } - -} -#endif // EXCAC5A_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAC6A.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAC6A.cpp deleted file mode 100644 index 373b3f4d4..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAC6A.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcAC6A.cpp -// Implementation of the Class ExcAC6A -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "ExcAC6A.h" - -using IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC6A; - - -ExcAC6A::ExcAC6A(){ - -} - - - -ExcAC6A::~ExcAC6A(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAC6A.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAC6A.h deleted file mode 100644 index 2abdfa75f..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAC6A.h +++ /dev/null @@ -1,143 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcAC6A.h -// Implementation of the Class ExcAC6A -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef EXCAC6A_H -#define EXCAC6A_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace ExcitationSystemDynamics - { - /** - * Modified IEEE AC6A alternator-supplied rectifier excitation system with speed - * input. - */ - class ExcAC6A : public IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics - { - - public: - ExcAC6A(); - virtual ~ExcAC6A(); - /** - * Voltage regulator gain (Ka). Typical Value = 536. - */ - IEC61970::Base::Domain::PU ka; - /** - * Rectifier loading factor proportional to commutating reactance (Kc). Typical - * Value = 0.173. - */ - IEC61970::Base::Domain::PU kc; - /** - * Demagnetizing factor, a function of exciter alternator reactances (Kd). - * Typical Value = 1.91. - */ - IEC61970::Base::Domain::PU kd; - /** - * Exciter constant related to self-excited field (Ke). Typical Value = 1.6. - */ - IEC61970::Base::Domain::PU ke; - /** - * Exciter field current limiter gain (Kh). Typical Value = 92. - */ - IEC61970::Base::Domain::PU kh; - /** - * Coefficient to allow different usage of the model-speed coefficient (Ks). - * Typical Value = 0. - */ - IEC61970::Base::Domain::PU ks; - /** - * Exciter saturation function value at the corresponding exciter voltage, Ve1, - * back of commutating reactance (Se[Ve1]). Typical Value = 0.214. - */ - IEC61970::Base::Domain::Float seve1; - /** - * Exciter saturation function value at the corresponding exciter voltage, Ve2, - * back of commutating reactance (Se[Ve2]). Typical Value = 0.044. - */ - IEC61970::Base::Domain::Float seve2; - /** - * Voltage regulator time constant (Ta). Typical Value = 0.086. - */ - IEC61970::Base::Domain::Seconds ta; - /** - * Voltage regulator time constant (Tb). Typical Value = 9. - */ - IEC61970::Base::Domain::Seconds tb; - /** - * Voltage regulator time constant (Tc). Typical Value = 3. - */ - IEC61970::Base::Domain::Seconds tc; - /** - * Exciter time constant, integration rate associated with exciter control (Te). - * Typical Value = 1. - */ - IEC61970::Base::Domain::Seconds te; - /** - * Exciter field current limiter time constant (Th). Typical Value = 0.08. - */ - IEC61970::Base::Domain::Seconds th; - /** - * Exciter field current limiter time constant (Tj). Typical Value = 0.02. - */ - IEC61970::Base::Domain::Seconds tj; - /** - * Voltage regulator time constant (Tk). Typical Value = 0.18. - */ - IEC61970::Base::Domain::Seconds tk; - /** - * Maximum voltage regulator output (Vamax). Typical Value = 75. - */ - IEC61970::Base::Domain::PU vamax; - /** - * Minimum voltage regulator output (Vamin). Typical Value = -75. - */ - IEC61970::Base::Domain::PU vamin; - /** - * Exciter alternator output voltages back of commutating reactance at which - * saturation is defined (Ve1). Typical Value = 7.4. - */ - IEC61970::Base::Domain::PU ve1; - /** - * Exciter alternator output voltages back of commutating reactance at which - * saturation is defined (Ve2). Typical Value = 5.55. - */ - IEC61970::Base::Domain::PU ve2; - /** - * Exciter field current limit reference (Vfelim). Typical Value = 19. - */ - IEC61970::Base::Domain::PU vfelim; - /** - * Maximum field current limiter signal reference (Vhmax). Typical Value = 75. - */ - IEC61970::Base::Domain::PU vhmax; - /** - * Maximum voltage regulator output (Vrmax). Typical Value = 44. - */ - IEC61970::Base::Domain::PU vrmax; - /** - * Minimum voltage regulator output (Vrmin). Typical Value = -36. - */ - IEC61970::Base::Domain::PU vrmin; - - }; - - } - - } - - } - -} -#endif // EXCAC6A_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAC8B.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAC8B.cpp deleted file mode 100644 index b4f5b87a0..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAC8B.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcAC8B.cpp -// Implementation of the Class ExcAC8B -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "ExcAC8B.h" - -using IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC8B; - - -ExcAC8B::ExcAC8B(){ - -} - - - -ExcAC8B::~ExcAC8B(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAC8B.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAC8B.h deleted file mode 100644 index c7a6567b5..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAC8B.h +++ /dev/null @@ -1,173 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcAC8B.h -// Implementation of the Class ExcAC8B -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef EXCAC8B_H -#define EXCAC8B_H - -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace ExcitationSystemDynamics - { - /** - * Modified IEEE AC8B alternator-supplied rectifier excitation system with speed - * input and input limiter. - */ - class ExcAC8B : public IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics - { - - public: - ExcAC8B(); - virtual ~ExcAC8B(); - /** - * Input limiter indicator. - * true = input limiter Vimax and Vimin is considered - * false = input limiter Vimax and Vimin is not considered. - * Typical Value = true. - */ - IEC61970::Base::Domain::Boolean inlim; - /** - * Voltage regulator gain (Ka). Typical Value = 1. - */ - IEC61970::Base::Domain::PU ka; - /** - * Rectifier loading factor proportional to commutating reactance (Kc). Typical - * Value = 0.55. - */ - IEC61970::Base::Domain::PU kc; - /** - * Demagnetizing factor, a function of exciter alternator reactances (Kd). - * Typical Value = 1.1. - */ - IEC61970::Base::Domain::PU kd; - /** - * Voltage regulator derivative gain (Kdr). Typical Value = 10. - */ - IEC61970::Base::Domain::PU kdr; - /** - * Exciter constant related to self-excited field (Ke). Typical Value = 1. - */ - IEC61970::Base::Domain::PU ke; - /** - * Voltage regulator integral gain (Kir). Typical Value = 5. - */ - IEC61970::Base::Domain::PU kir; - /** - * Voltage regulator proportional gain (Kpr). Typical Value = 80. - */ - IEC61970::Base::Domain::PU kpr; - /** - * Coefficient to allow different usage of the model-speed coefficient (Ks). - * Typical Value = 0. - */ - IEC61970::Base::Domain::PU ks; - /** - * PID limiter indicator. - * true = input limiter Vpidmax and Vpidmin is considered - * false = input limiter Vpidmax and Vpidmin is not considered. - * Typical Value = true. - */ - IEC61970::Base::Domain::Boolean pidlim; - /** - * Exciter saturation function value at the corresponding exciter voltage, - * Ve1, back of commutating reactance (Se[Ve1]). Typical Value = 0.3. - */ - IEC61970::Base::Domain::Float seve1; - /** - * Exciter saturation function value at the corresponding exciter voltage, - * Ve2, back of commutating reactance (Se[Ve2]). Typical Value = 3. - */ - IEC61970::Base::Domain::Float seve2; - /** - * Voltage regulator time constant (Ta). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds ta; - /** - * Lag time constant (Tdr). Typical Value = 0.1. - */ - IEC61970::Base::Domain::Seconds tdr; - /** - * Exciter time constant, integration rate associated with exciter control (Te). - * Typical Value = 1.2. - */ - IEC61970::Base::Domain::Seconds te; - /** - * Selector for the limiter on the block [1/sTe]. - * See diagram for meaning of true and false. - * Typical Value = false. - */ - IEC61970::Base::Domain::Boolean telim; - /** - * Exciter alternator output voltages back of commutating reactance at which - * saturation is defined (Ve1) equals VEMAX (Ve1). Typical - * Value = 6.5. - */ - IEC61970::Base::Domain::PU ve1; - /** - * Exciter alternator output voltages back of commutating reactance at which - * saturation is defined (Ve2). Typical Value = 9. - */ - IEC61970::Base::Domain::PU ve2; - /** - * Minimum exciter voltage output (Vemin). Typical Value = 0. - */ - IEC61970::Base::Domain::PU vemin; - /** - * Exciter field current limit reference (Vfemax). Typical Value = 6. - */ - IEC61970::Base::Domain::PU vfemax; - /** - * Input signal maximum (Vimax). Typical Value = 35. - */ - IEC61970::Base::Domain::PU vimax; - /** - * Input signal minimum (Vimin). Typical Value = -10. - */ - IEC61970::Base::Domain::PU vimin; - /** - * PID maximum controller output (Vpidmax). Typical Value = 35. - */ - IEC61970::Base::Domain::PU vpidmax; - /** - * PID minimum controller output (Vpidmin). Typical Value = -10. - */ - IEC61970::Base::Domain::PU vpidmin; - /** - * Maximum voltage regulator output (Vrmax). Typical Value = 35. - */ - IEC61970::Base::Domain::PU vrmax; - /** - * Minimum voltage regulator output (Vrmin). Typical Value = 0. - */ - IEC61970::Base::Domain::PU vrmin; - /** - * Multiply by generator's terminal voltage indicator. - * true =the limits Vrmax and Vrmin are multiplied by the generator’s terminal - * voltage to represent a thyristor power stage fed from the generator terminals - * false = limits are not multiplied by generator's terminal voltage. - * Typical Value = false. - */ - IEC61970::Base::Domain::Boolean vtmult; - - }; - - } - - } - - } - -} -#endif // EXCAC8B_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcANS.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcANS.cpp deleted file mode 100644 index aedc96464..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcANS.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcANS.cpp -// Implementation of the Class ExcANS -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#include "ExcANS.h" - -using IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcANS; - - -ExcANS::ExcANS(){ - -} - - - -ExcANS::~ExcANS(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcANS.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcANS.h deleted file mode 100644 index b87c0883f..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcANS.h +++ /dev/null @@ -1,109 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcANS.h -// Implementation of the Class ExcANS -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#ifndef EXCANS_H -#define EXCANS_H - -#include "IEC61970/Base/Domain/Integer.h" -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace ExcitationSystemDynamics - { - /** - * Italian excitation system. It represents static field voltage or excitation - * current feedback excitation system. - */ - class ExcANS : public IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics - { - - public: - ExcANS(); - virtual ~ExcANS(); - /** - * Governor Control Flag (BLINT). - * 0 = lead-lag regulator - * 1 = proportional integral regulator. - * Typical Value = 0. - */ - IEC61970::Base::Domain::Integer blint; - /** - * Minimum exciter current (IFMN). Typical Value = -5.2. - */ - IEC61970::Base::Domain::PU ifmn; - /** - * Maximum exciter current (IFMX). Typical Value = 6.5. - */ - IEC61970::Base::Domain::PU ifmx; - /** - * Exciter gain (K2). Typical Value = 20. - */ - IEC61970::Base::Domain::Float k2; - /** - * AVR gain (K3). Typical Value = 1000. - */ - IEC61970::Base::Domain::Float k3; - /** - * Ceiling factor (KCE). Typical Value = 1. - */ - IEC61970::Base::Domain::Float kce; - /** - * Feedback enabling (KRVECC). - * 0 = Open loop control - * 1 = Closed loop control. - * Typical Value = 1. - */ - IEC61970::Base::Domain::Integer krvecc; - /** - * Rate feedback signal flag (KVFIF). - * 0 = output voltage of the exciter - * 1 = exciter field current. - * Typical Value = 0. - */ - IEC61970::Base::Domain::Integer kvfif; - /** - * Time constant (T1). Typical Value = 20. - */ - IEC61970::Base::Domain::Seconds t1; - /** - * Time constant (T2). Typical Value = 0.05. - */ - IEC61970::Base::Domain::Seconds t2; - /** - * Time constant (T3). Typical Value = 1.6. - */ - IEC61970::Base::Domain::Seconds t3; - /** - * Exciter time constant (TB). Typical Value = 0.04. - */ - IEC61970::Base::Domain::Seconds tb; - /** - * Maximum AVR output (VRMN). Typical Value = -5.2. - */ - IEC61970::Base::Domain::PU vrmn; - /** - * Minimum AVR output (VRMX). Typical Value = 6.5. - */ - IEC61970::Base::Domain::PU vrmx; - - }; - - } - - } - - } - -} -#endif // EXCANS_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAVR1.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAVR1.cpp deleted file mode 100644 index b6fb376a2..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAVR1.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcAVR1.cpp -// Implementation of the Class ExcAVR1 -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#include "ExcAVR1.h" - -using IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR1; - - -ExcAVR1::ExcAVR1(){ - -} - - - -ExcAVR1::~ExcAVR1(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAVR1.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAVR1.h deleted file mode 100644 index 73bb65372..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAVR1.h +++ /dev/null @@ -1,91 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcAVR1.h -// Implementation of the Class ExcAVR1 -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#ifndef EXCAVR1_H -#define EXCAVR1_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace ExcitationSystemDynamics - { - /** - * Italian excitation system corresponding to IEEE (1968) Type 1 Model. It - * represents exciter dynamo and electromechanical regulator. - */ - class ExcAVR1 : public IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics - { - - public: - ExcAVR1(); - virtual ~ExcAVR1(); - /** - * Field voltage value 1 (E1). Typical Value = 4.18. - */ - IEC61970::Base::Domain::PU e1; - /** - * Field voltage value 2 (E2). Typical Value = 3.14. - */ - IEC61970::Base::Domain::PU e2; - /** - * AVR gain (KA). Typical Value = 500. - */ - IEC61970::Base::Domain::Float ka; - /** - * Rate feedback gain (KF). Typical Value = 0.02. - */ - IEC61970::Base::Domain::Float kf; - /** - * Saturation factor at E1 (S(E1)). Typical Value = 0.1. - */ - IEC61970::Base::Domain::Float se1; - /** - * Saturation factor at E2 (S(E2)). Typical Value = 0.03. - */ - IEC61970::Base::Domain::Float se2; - /** - * AVR time constant (TA). Typical Value = 0.2. - */ - IEC61970::Base::Domain::Seconds ta; - /** - * AVR time constant (TB). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tb; - /** - * Exciter time constant (TE). Typical Value = 1. - */ - IEC61970::Base::Domain::Seconds te; - /** - * Rate feedback time constant (TF). Typical Value = 1. - */ - IEC61970::Base::Domain::Seconds tf; - /** - * Maximum AVR output (VRMN). Typical Value = -6. - */ - IEC61970::Base::Domain::PU vrmn; - /** - * Minimum AVR output (VRMX). Typical Value = 7. - */ - IEC61970::Base::Domain::PU vrmx; - - }; - - } - - } - - } - -} -#endif // EXCAVR1_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAVR2.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAVR2.cpp deleted file mode 100644 index 60788bd87..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAVR2.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcAVR2.cpp -// Implementation of the Class ExcAVR2 -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#include "ExcAVR2.h" - -using IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR2; - - -ExcAVR2::ExcAVR2(){ - -} - - - -ExcAVR2::~ExcAVR2(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAVR2.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAVR2.h deleted file mode 100644 index ce5dbef13..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAVR2.h +++ /dev/null @@ -1,96 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcAVR2.h -// Implementation of the Class ExcAVR2 -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#ifndef EXCAVR2_H -#define EXCAVR2_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace ExcitationSystemDynamics - { - /** - * Italian excitation system corresponding to IEEE (1968) Type 2 Model. It - * represents alternator and rotating diodes and electromechanic voltage - * regulators. - */ - class ExcAVR2 : public IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics - { - - public: - ExcAVR2(); - virtual ~ExcAVR2(); - /** - * Field voltage value 1 (E1). Typical Value = 4.18. - */ - IEC61970::Base::Domain::PU e1; - /** - * Field voltage value 2 (E2). Typical Value = 3.14. - */ - IEC61970::Base::Domain::PU e2; - /** - * AVR gain (KA). Typical Value = 500. - */ - IEC61970::Base::Domain::Float ka; - /** - * Rate feedback gain (KF). Typical Value = 0.02. - */ - IEC61970::Base::Domain::Float kf; - /** - * Saturation factor at E1 (S(E1)). Typical Value = 0.1. - */ - IEC61970::Base::Domain::Float se1; - /** - * Saturation factor at E2 (S(E2)). Typical Value = 0.03. - */ - IEC61970::Base::Domain::Float se2; - /** - * AVR time constant (TA). Typical Value = 0.02. - */ - IEC61970::Base::Domain::Seconds ta; - /** - * AVR time constant (TB). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tb; - /** - * Exciter time constant (TE). Typical Value = 1. - */ - IEC61970::Base::Domain::Seconds te; - /** - * Rate feedback time constant (TF1). Typical Value = 1. - */ - IEC61970::Base::Domain::Seconds tf1; - /** - * Rate feedback time constant (TF2). Typical Value = 1. - */ - IEC61970::Base::Domain::Seconds tf2; - /** - * Maximum AVR output (VRMN). Typical Value = -6. - */ - IEC61970::Base::Domain::PU vrmn; - /** - * Minimum AVR output (VRMX). Typical Value = 7. - */ - IEC61970::Base::Domain::PU vrmx; - - }; - - } - - } - - } - -} -#endif // EXCAVR2_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAVR3.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAVR3.cpp deleted file mode 100644 index 91f4a47c4..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAVR3.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcAVR3.cpp -// Implementation of the Class ExcAVR3 -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#include "ExcAVR3.h" - -using IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR3; - - -ExcAVR3::ExcAVR3(){ - -} - - - -ExcAVR3::~ExcAVR3(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAVR3.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAVR3.h deleted file mode 100644 index 09c19e1c0..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAVR3.h +++ /dev/null @@ -1,90 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcAVR3.h -// Implementation of the Class ExcAVR3 -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#ifndef EXCAVR3_H -#define EXCAVR3_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace ExcitationSystemDynamics - { - /** - * Italian excitation system. It represents exciter dynamo and electric regulator. - */ - class ExcAVR3 : public IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics - { - - public: - ExcAVR3(); - virtual ~ExcAVR3(); - /** - * Field voltage value 1 (E1). Typical Value = 4.18. - */ - IEC61970::Base::Domain::PU e1; - /** - * Field voltage value 2 (E2). Typical Value = 3.14. - */ - IEC61970::Base::Domain::PU e2; - /** - * AVR gain (KA). Typical Value = 3000. - */ - IEC61970::Base::Domain::Float ka; - /** - * Saturation factor at E1 (S(E1)). Typical Value = 0.1. - */ - IEC61970::Base::Domain::Float se1; - /** - * Saturation factor at E2 (S(E2)). Typical Value = 0.03. - */ - IEC61970::Base::Domain::Float se2; - /** - * AVR time constant (T1). Typical Value = 220. - */ - IEC61970::Base::Domain::Seconds t1; - /** - * AVR time constant (T2). Typical Value = 1.6. - */ - IEC61970::Base::Domain::Seconds t2; - /** - * AVR time constant (T3). Typical Value = 0.66. - */ - IEC61970::Base::Domain::Seconds t3; - /** - * AVR time constant (T4). Typical Value = 0.07. - */ - IEC61970::Base::Domain::Seconds t4; - /** - * Exciter time constant (TE). Typical Value = 1. - */ - IEC61970::Base::Domain::Seconds te; - /** - * Maximum AVR output (VRMN). Typical Value = -7.5. - */ - IEC61970::Base::Domain::PU vrmn; - /** - * Minimum AVR output (VRMX). Typical Value = 7.5. - */ - IEC61970::Base::Domain::PU vrmx; - - }; - - } - - } - - } - -} -#endif // EXCAVR3_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAVR4.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAVR4.cpp deleted file mode 100644 index c44ee1641..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAVR4.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcAVR4.cpp -// Implementation of the Class ExcAVR4 -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#include "ExcAVR4.h" - -using IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR4; - - -ExcAVR4::ExcAVR4(){ - -} - - - -ExcAVR4::~ExcAVR4(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAVR4.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAVR4.h deleted file mode 100644 index a1e114a2d..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAVR4.h +++ /dev/null @@ -1,103 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcAVR4.h -// Implementation of the Class ExcAVR4 -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#ifndef EXCAVR4_H -#define EXCAVR4_H - -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace ExcitationSystemDynamics - { - /** - * Italian excitation system. It represents static exciter and electric voltage - * regulator. - */ - class ExcAVR4 : public IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics - { - - public: - ExcAVR4(); - virtual ~ExcAVR4(); - /** - * AVR output voltage dependency selector (Imul). - * true = selector is connected - * false = selector is not connected. - * Typical Value = true. - */ - IEC61970::Base::Domain::Boolean imul; - /** - * AVR gain (KA). Typical Value = 300. - */ - IEC61970::Base::Domain::Float ka; - /** - * Exciter gain (KE). Typical Value = 1. - */ - IEC61970::Base::Domain::Float ke; - /** - * Exciter internal reactance (KIF). Typical Value = 0. - */ - IEC61970::Base::Domain::Float kif; - /** - * AVR time constant (T1). Typical Value = 4.8. - */ - IEC61970::Base::Domain::Seconds t1; - /** - * Exciter current feedback time constant (T1IF). Typical Value = 60. - */ - IEC61970::Base::Domain::Seconds t1if; - /** - * AVR time constant (T2). Typical Value = 1.5. - */ - IEC61970::Base::Domain::Seconds t2; - /** - * AVR time constant (T3). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds t3; - /** - * AVR time constant (T4). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds t4; - /** - * Exciter current feedback time constant (TIF). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tif; - /** - * Minimum exciter output (VFMN). Typical Value = 0. - */ - IEC61970::Base::Domain::PU vfmn; - /** - * Maximum exciter output (VFMX). Typical Value = 5. - */ - IEC61970::Base::Domain::PU vfmx; - /** - * Maximum AVR output (VRMN). Typical Value = 0. - */ - IEC61970::Base::Domain::PU vrmn; - /** - * Minimum AVR output (VRMX). Typical Value = 5. - */ - IEC61970::Base::Domain::PU vrmx; - - }; - - } - - } - - } - -} -#endif // EXCAVR4_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAVR5.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAVR5.cpp deleted file mode 100644 index a50209bc4..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAVR5.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcAVR5.cpp -// Implementation of the Class ExcAVR5 -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#include "ExcAVR5.h" - -using IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR5; - - -ExcAVR5::ExcAVR5(){ - -} - - - -ExcAVR5::~ExcAVR5(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAVR5.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAVR5.h deleted file mode 100644 index 341422dc9..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAVR5.h +++ /dev/null @@ -1,55 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcAVR5.h -// Implementation of the Class ExcAVR5 -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#ifndef EXCAVR5_H -#define EXCAVR5_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace ExcitationSystemDynamics - { - /** - * Manual excitation control with field circuit resistance. This model can be used - * as a very simple representation of manual voltage control. - */ - class ExcAVR5 : public IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics - { - - public: - ExcAVR5(); - virtual ~ExcAVR5(); - /** - * Gain (Ka). - */ - IEC61970::Base::Domain::PU ka; - /** - * Effective Output Resistance (Rex). Rex represents the effective output - * resistance seen by the excitation system. - */ - IEC61970::Base::Domain::PU rex; - /** - * Time constant (Ta). - */ - IEC61970::Base::Domain::Seconds ta; - - }; - - } - - } - - } - -} -#endif // EXCAVR5_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAVR7.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAVR7.cpp deleted file mode 100644 index 6b1f80481..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAVR7.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcAVR7.cpp -// Implementation of the Class ExcAVR7 -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#include "ExcAVR7.h" - -using IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR7; - - -ExcAVR7::ExcAVR7(){ - -} - - - -ExcAVR7::~ExcAVR7(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAVR7.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAVR7.h deleted file mode 100644 index c842112d0..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcAVR7.h +++ /dev/null @@ -1,125 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcAVR7.h -// Implementation of the Class ExcAVR7 -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#ifndef EXCAVR7_H -#define EXCAVR7_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace ExcitationSystemDynamics - { - /** - * IVO excitation system. - */ - class ExcAVR7 : public IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics - { - - public: - ExcAVR7(); - virtual ~ExcAVR7(); - /** - * Lead coefficient (A1). Typical Value = 0.5. - */ - IEC61970::Base::Domain::PU a1; - /** - * Lag coefficient (A2). Typical Value = 0.5. - */ - IEC61970::Base::Domain::PU a2; - /** - * Lead coefficient (A3). Typical Value = 0.5. - */ - IEC61970::Base::Domain::PU a3; - /** - * Lag coefficient (A4). Typical Value = 0.5. - */ - IEC61970::Base::Domain::PU a4; - /** - * Lead coefficient (A5). Typical Value = 0.5. - */ - IEC61970::Base::Domain::PU a5; - /** - * Lag coefficient (A6). Typical Value = 0.5. - */ - IEC61970::Base::Domain::PU a6; - /** - * Gain (K1). Typical Value = 1. - */ - IEC61970::Base::Domain::PU k1; - /** - * Gain (K3). Typical Value = 3. - */ - IEC61970::Base::Domain::PU k3; - /** - * Gain (K5). Typical Value = 1. - */ - IEC61970::Base::Domain::PU k5; - /** - * Lead time constant (T1). Typical Value = 0.05. - */ - IEC61970::Base::Domain::Seconds t1; - /** - * Lag time constant (T2). Typical Value = 0.1. - */ - IEC61970::Base::Domain::Seconds t2; - /** - * Lead time constant (T3). Typical Value = 0.1. - */ - IEC61970::Base::Domain::Seconds t3; - /** - * Lag time constant (T4). Typical Value = 0.1. - */ - IEC61970::Base::Domain::Seconds t4; - /** - * Lead time constant (T5). Typical Value = 0.1. - */ - IEC61970::Base::Domain::Seconds t5; - /** - * Lag time constant (T6). Typical Value = 0.1. - */ - IEC61970::Base::Domain::Seconds t6; - /** - * Lead-lag max. limit (Vmax1). Typical Value = 5. - */ - IEC61970::Base::Domain::PU vmax1; - /** - * Lead-lag max. limit (Vmax3). Typical Value = 5. - */ - IEC61970::Base::Domain::PU vmax3; - /** - * Lead-lag max. limit (Vmax5). Typical Value = 5. - */ - IEC61970::Base::Domain::PU vmax5; - /** - * Lead-lag min. limit (Vmin1). Typical Value = -5. - */ - IEC61970::Base::Domain::PU vmin1; - /** - * Lead-lag min. limit (Vmin3). Typical Value = -5. - */ - IEC61970::Base::Domain::PU vmin3; - /** - * Lead-lag min. limit (Vmin5). Typical Value = -2. - */ - IEC61970::Base::Domain::PU vmin5; - - }; - - } - - } - - } - -} -#endif // EXCAVR7_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcBBC.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcBBC.cpp deleted file mode 100644 index f0316159a..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcBBC.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcBBC.cpp -// Implementation of the Class ExcBBC -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "ExcBBC.h" - -using IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcBBC; - - -ExcBBC::ExcBBC(){ - -} - - - -ExcBBC::~ExcBBC(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcBBC.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcBBC.h deleted file mode 100644 index e5b7ab52c..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcBBC.h +++ /dev/null @@ -1,93 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcBBC.h -// Implementation of the Class ExcBBC -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef EXCBBC_H -#define EXCBBC_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace ExcitationSystemDynamics - { - /** - * Transformer fed static excitation system (static with ABB regulator). This - * model represents a static excitation system in which a gated thyristor bridge - * fed by a transformer at the main generator terminals feeds the main generator - * directly. - */ - class ExcBBC : public IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics - { - - public: - ExcBBC(); - virtual ~ExcBBC(); - /** - * Maximum open circuit exciter voltage (Efdmax). Typical Value = 5. - */ - IEC61970::Base::Domain::PU efdmax; - /** - * Minimum open circuit exciter voltage (Efdmin). Typical Value = -5. - */ - IEC61970::Base::Domain::PU efdmin; - /** - * Steady state gain (K). Typical Value = 300. - */ - IEC61970::Base::Domain::PU k; - /** - * Supplementary signal routing selector (switch). - * true = Vs connected to 3rd summing point - * false = Vs connected to 1st summing point (see diagram). - * Typical Value = true. - */ -//warning Member "switch" is renamed to "routing_selector", this does not comply the CIM standard! - IEC61970::Base::Domain::Boolean routing_selector; - /** - * Controller time constant (T1). Typical Value = 6. - */ - IEC61970::Base::Domain::Seconds t1; - /** - * Controller time constant (T2). Typical Value = 1. - */ - IEC61970::Base::Domain::Seconds t2; - /** - * Lead/lag time constant (T3). Typical Value = 0.05. - */ - IEC61970::Base::Domain::Seconds t3; - /** - * Lead/lag time constant (T4). Typical Value = 0.01. - */ - IEC61970::Base::Domain::Seconds t4; - /** - * Maximum control element output (Vrmax). Typical Value = 5. - */ - IEC61970::Base::Domain::PU vrmax; - /** - * Minimum control element output (Vrmin). Typical Value = -5. - */ - IEC61970::Base::Domain::PU vrmin; - /** - * Effective excitation transformer reactance (Xe). Typical Value = 0.05. - */ - IEC61970::Base::Domain::PU xe; - - }; - - } - - } - - } - -} -#endif // EXCBBC_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcCZ.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcCZ.cpp deleted file mode 100644 index 957eae727..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcCZ.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcCZ.cpp -// Implementation of the Class ExcCZ -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "ExcCZ.h" - -using IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcCZ; - - -ExcCZ::ExcCZ(){ - -} - - - -ExcCZ::~ExcCZ(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcCZ.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcCZ.h deleted file mode 100644 index 56d67c66a..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcCZ.h +++ /dev/null @@ -1,81 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcCZ.h -// Implementation of the Class ExcCZ -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef EXCCZ_H -#define EXCCZ_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace ExcitationSystemDynamics - { - /** - * Czech Proportion/Integral Exciter. - */ - class ExcCZ : public IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics - { - - public: - ExcCZ(); - virtual ~ExcCZ(); - /** - * Exciter output maximum limit (Efdmax). - */ - IEC61970::Base::Domain::PU efdmax; - /** - * Exciter output minimum limit (Efdmin). - */ - IEC61970::Base::Domain::PU efdmin; - /** - * Regulator gain (Ka). - */ - IEC61970::Base::Domain::PU ka; - /** - * Exciter constant related to self-excited field (Ke). - */ - IEC61970::Base::Domain::PU ke; - /** - * Regulator proportional gain (Kp). - */ - IEC61970::Base::Domain::PU kp; - /** - * Regulator time constant (Ta). - */ - IEC61970::Base::Domain::Seconds ta; - /** - * Regulator integral time constant (Tc). - */ - IEC61970::Base::Domain::Seconds tc; - /** - * Exciter time constant, integration rate associated with exciter control (Te). - */ - IEC61970::Base::Domain::Seconds te; - /** - * Voltage regulator maximum limit (Vrmax). - */ - IEC61970::Base::Domain::PU vrmax; - /** - * Voltage regulator minimum limit (Vrmin). - */ - IEC61970::Base::Domain::PU vrmin; - - }; - - } - - } - - } - -} -#endif // EXCCZ_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcDC1A.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcDC1A.cpp deleted file mode 100644 index 66b624dcf..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcDC1A.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcDC1A.cpp -// Implementation of the Class ExcDC1A -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "ExcDC1A.h" - -using IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC1A; - - -ExcDC1A::ExcDC1A(){ - -} - - - -ExcDC1A::~ExcDC1A(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcDC1A.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcDC1A.h deleted file mode 100644 index 8cecd454f..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcDC1A.h +++ /dev/null @@ -1,126 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcDC1A.h -// Implementation of the Class ExcDC1A -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef EXCDC1A_H -#define EXCDC1A_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace ExcitationSystemDynamics - { - /** - * Modified IEEE DC1A direct current commutator exciter with speed input and - * without underexcitation limiters (UEL) inputs. - */ - class ExcDC1A : public IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics - { - - public: - ExcDC1A(); - virtual ~ExcDC1A(); - /** - * Maximum voltage exciter output limiter (Efdmax). Typical Value = 99. - */ - IEC61970::Base::Domain::PU edfmax; - /** - * Exciter voltage at which exciter saturation is defined (Efd1). Typical Value = - * 3.1. - */ - IEC61970::Base::Domain::PU efd1; - /** - * Exciter voltage at which exciter saturation is defined (Efd2). Typical Value = - * 2.3. - */ - IEC61970::Base::Domain::PU efd2; - /** - * Minimum voltage exciter output limiter (Efdmin). Typical Value = -99. - */ - IEC61970::Base::Domain::PU efdmin; - /** - * (exclim). - * IEEE standard is ambiguous about lower limit on exciter output. - * true = a lower limit of zero is applied to integrator output - * false = a lower limit of zero is not applied to integrator output. - * Typical Value = true. - */ - IEC61970::Base::Domain::Boolean exclim; - /** - * Voltage regulator gain (Ka). Typical Value = 46. - */ - IEC61970::Base::Domain::PU ka; - /** - * Exciter constant related to self-excited field (Ke). Typical Value = 0. - */ - IEC61970::Base::Domain::PU ke; - /** - * Excitation control system stabilizer gain (Kf). Typical Value = 0.1. - */ - IEC61970::Base::Domain::PU kf; - /** - * Coefficient to allow different usage of the model-speed coefficient (Ks). - * Typical Value = 0. - */ - IEC61970::Base::Domain::PU ks; - /** - * Exciter saturation function value at the corresponding exciter voltage, Efd1 - * (Se[Eefd1]). Typical Value = 0.33. - */ - IEC61970::Base::Domain::Float seefd1; - /** - * Exciter saturation function value at the corresponding exciter voltage, Efd1 - * (Se[Eefd1]). Typical Value = 0.33. - */ - IEC61970::Base::Domain::Float seefd2; - /** - * Voltage regulator time constant (Ta). Typical Value = 0.06. - */ - IEC61970::Base::Domain::Seconds ta; - /** - * Voltage regulator time constant (Tb). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tb; - /** - * Voltage regulator time constant (Tc). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tc; - /** - * Exciter time constant, integration rate associated with exciter control (Te). - * Typical Value = 0.46. - */ - IEC61970::Base::Domain::Seconds te; - /** - * Excitation control system stabilizer time constant (Tf). Typical Value = 1. - */ - IEC61970::Base::Domain::Seconds tf; - /** - * Maximum voltage regulator output (Vrmax). Typical Value = 1. - */ - IEC61970::Base::Domain::PU vrmax; - /** - * Minimum voltage regulator output (Vrmin). Typical Value = -0.9. - */ - IEC61970::Base::Domain::PU vrmin; - - }; - - } - - } - - } - -} -#endif // EXCDC1A_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcDC2A.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcDC2A.cpp deleted file mode 100644 index 537d65aab..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcDC2A.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcDC2A.cpp -// Implementation of the Class ExcDC2A -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "ExcDC2A.h" - -using IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC2A; - - -ExcDC2A::ExcDC2A(){ - -} - - - -ExcDC2A::~ExcDC2A(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcDC2A.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcDC2A.h deleted file mode 100644 index 2940107e5..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcDC2A.h +++ /dev/null @@ -1,133 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcDC2A.h -// Implementation of the Class ExcDC2A -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef EXCDC2A_H -#define EXCDC2A_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace ExcitationSystemDynamics - { - /** - * Modified IEEE DC2A direct current commutator exciters with speed input, one - * more leg block in feedback loop and without underexcitation limiters (UEL) - * inputs. DC type 2 excitation system model with added speed multiplier, added - * lead-lag, and voltage-dependent limits. - */ - class ExcDC2A : public IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics - { - - public: - ExcDC2A(); - virtual ~ExcDC2A(); - /** - * Exciter voltage at which exciter saturation is defined (Efd1). Typical Value = - * 3.05. - */ - IEC61970::Base::Domain::PU efd1; - /** - * Exciter voltage at which exciter saturation is defined (Efd2). Typical Value = - * 2.29. - */ - IEC61970::Base::Domain::PU efd2; - /** - * (exclim). IEEE standard is ambiguous about lower limit on exciter output. - * true = a lower limit of zero is applied to integrator output - * false = a lower limit of zero is not applied to integrator output. - * Typical Value = true. - */ - IEC61970::Base::Domain::Boolean exclim; - /** - * Voltage regulator gain (Ka). Typical Value = 300. - */ - IEC61970::Base::Domain::PU ka; - /** - * Exciter constant related to self-excited field (Ke). If Ke is entered as zero, - * the model calculates an effective value of Ke such that the initial condition - * value of Vr is zero. The zero value of Ke is not changed. If Ke is entered as - * non-zero, its value is used directly, without change. Typical Value = 1. - */ - IEC61970::Base::Domain::PU ke; - /** - * Excitation control system stabilizer gain (Kf). Typical Value = 0.1. - */ - IEC61970::Base::Domain::PU kf; - /** - * Coefficient to allow different usage of the model-speed coefficient (Ks). - * Typical Value = 0. - */ - IEC61970::Base::Domain::PU ks; - /** - * Exciter saturation function value at the corresponding exciter voltage, Efd1 - * (Se[Eefd1]). Typical Value = 0.279. - */ - IEC61970::Base::Domain::Float seefd1; - /** - * Exciter saturation function value at the corresponding exciter voltage, Efd2 - * (Se[Efd2]). Typical Value = 0.117. - */ - IEC61970::Base::Domain::Float seefd2; - /** - * Voltage regulator time constant (Ta). Typical Value = 0.01. - */ - IEC61970::Base::Domain::Seconds ta; - /** - * Voltage regulator time constant (Tb). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tb; - /** - * Voltage regulator time constant (Tc). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tc; - /** - * Exciter time constant, integration rate associated with exciter control (Te). - * Typical Value = 1.33. - */ - IEC61970::Base::Domain::Seconds te; - /** - * Excitation control system stabilizer time constant (Tf). Typical Value = 0.675. - */ - IEC61970::Base::Domain::Seconds tf; - /** - * Excitation control system stabilizer time constant (Tf1). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tf1; - /** - * Maximum voltage regulator output (Vrmax). Typical Value = 4.95. - */ - IEC61970::Base::Domain::PU vrmax; - /** - * Minimum voltage regulator output (Vrmin). Typical Value = -4.9. - */ - IEC61970::Base::Domain::PU vrmin; - /** - * (Vtlim). - * true = limiter at the block [Ka/(1+sTa)] is dependent on Vt - * false = limiter at the block is not dependent on Vt. - * Typical Value = true. - */ - IEC61970::Base::Domain::Boolean vtlim; - - }; - - } - - } - - } - -} -#endif // EXCDC2A_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcDC3A.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcDC3A.cpp deleted file mode 100644 index f6ce265cb..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcDC3A.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcDC3A.cpp -// Implementation of the Class ExcDC3A -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "ExcDC3A.h" - -using IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC3A; - - -ExcDC3A::ExcDC3A(){ - -} - - - -ExcDC3A::~ExcDC3A(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcDC3A.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcDC3A.h deleted file mode 100644 index 7bc582bb4..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcDC3A.h +++ /dev/null @@ -1,123 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcDC3A.h -// Implementation of the Class ExcDC3A -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef EXCDC3A_H -#define EXCDC3A_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace ExcitationSystemDynamics - { - /** - * This is modified IEEE DC3A direct current commutator exciters with speed input, - * and death band. DC old type 4. - */ - class ExcDC3A : public IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics - { - - public: - ExcDC3A(); - virtual ~ExcDC3A(); - /** - * Maximum voltage exciter output limiter (Efdmax). Typical Value = 99. - */ - IEC61970::Base::Domain::PU edfmax; - /** - * Exciter voltage at which exciter saturation is defined (Efd1). Typical Value = - * 2.6. - */ - IEC61970::Base::Domain::PU efd1; - /** - * Exciter voltage at which exciter saturation is defined (Efd2). Typical Value = - * 3.45. - */ - IEC61970::Base::Domain::PU efd2; - /** - * (Efdlim). - * true = exciter output limiter is active - * false = exciter output limiter not active. - * Typical Value = true. - */ - IEC61970::Base::Domain::Boolean efdlim; - /** - * Minimum voltage exciter output limiter (Efdmin). Typical Value = -99. - */ - IEC61970::Base::Domain::PU efdmin; - /** - * (exclim). IEEE standard is ambiguous about lower limit on exciter output. - * true = a lower limit of zero is applied to integrator output - * false = a lower limit of zero not applied to integrator output. - * Typical Value = true. - */ - IEC61970::Base::Domain::Boolean exclim; - /** - * Exciter constant related to self-excited field (Ke). Typical Value = 1. - */ - IEC61970::Base::Domain::PU ke; - /** - * Death band (Kr). If Kr is not zero, the voltage regulator input changes at a - * constant rate if Verr > Kr or Verr < -Kr as per the IEEE (1968) Type 4 model. - * If Kr is zero, the error signal drives the voltage regulator continuously as - * per the IEEE (1980) DC3 and IEEE (1992, 2005) DC3A models. Typical Value = 0. - */ - IEC61970::Base::Domain::PU kr; - /** - * Coefficient to allow different usage of the model-speed coefficient (Ks). - * Typical Value = 0. - */ - IEC61970::Base::Domain::PU ks; - /** - * Fast raise/lower contact setting (Kv). Typical Value = 0.05. - */ - IEC61970::Base::Domain::PU kv; - /** - * Exciter saturation function value at the corresponding exciter voltage, Efd1 - * (Se[Eefd1]). Typical Value = 0.1. - */ - IEC61970::Base::Domain::Float seefd1; - /** - * Exciter saturation function value at the corresponding exciter voltage, Efd2 - * (Se[Efd2]). Typical Value = 0.35. - */ - IEC61970::Base::Domain::Float seefd2; - /** - * Exciter time constant, integration rate associated with exciter control (Te). - * Typical Value = 1.83. - */ - IEC61970::Base::Domain::Seconds te; - /** - * Rheostat travel time (Trh). Typical Value = 20. - */ - IEC61970::Base::Domain::Seconds trh; - /** - * Maximum voltage regulator output (Vrmax). Typical Value = 5. - */ - IEC61970::Base::Domain::PU vrmax; - /** - * Minimum voltage regulator output (Vrmin). Typical Value = 0. - */ - IEC61970::Base::Domain::PU vrmin; - - }; - - } - - } - - } - -} -#endif // EXCDC3A_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcDC3A1.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcDC3A1.cpp deleted file mode 100644 index 5dd1bb033..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcDC3A1.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcDC3A1.cpp -// Implementation of the Class ExcDC3A1 -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#include "ExcDC3A1.h" - -using IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC3A1; - - -ExcDC3A1::ExcDC3A1(){ - -} - - - -ExcDC3A1::~ExcDC3A1(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcDC3A1.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcDC3A1.h deleted file mode 100644 index 432588e70..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcDC3A1.h +++ /dev/null @@ -1,105 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcDC3A1.h -// Implementation of the Class ExcDC3A1 -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#ifndef EXCDC3A1_H -#define EXCDC3A1_H - -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace ExcitationSystemDynamics - { - /** - * This is modified old IEEE type 3 excitation system. - */ - class ExcDC3A1 : public IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics - { - - public: - ExcDC3A1(); - virtual ~ExcDC3A1(); - /** - * (exclim). - * true = lower limit of zero is applied to integrator output - * false = lower limit of zero not applied to integrator output. - * Typical Value = true. - */ - IEC61970::Base::Domain::Boolean exclim; - /** - * Voltage regulator gain (Ka). Typical Value = 300. - */ - IEC61970::Base::Domain::PU ka; - /** - * Exciter constant related to self-excited field (Ke). Typical Value = 1. - */ - IEC61970::Base::Domain::PU ke; - /** - * Excitation control system stabilizer gain (Kf). Typical Value = 0.1. - */ - IEC61970::Base::Domain::PU kf; - /** - * Potential circuit gain coefficient (Ki). Typical Value = 4.83. - */ - IEC61970::Base::Domain::PU ki; - /** - * Potential circuit gain coefficient (Kp). Typical Value = 4.37. - */ - IEC61970::Base::Domain::PU kp; - /** - * Voltage regulator time constant (Ta). Typical Value = 0.01. - */ - IEC61970::Base::Domain::Seconds ta; - /** - * Exciter time constant, integration rate associated with exciter control (Te). - * Typical Value = 1.83. - */ - IEC61970::Base::Domain::Seconds te; - /** - * Excitation control system stabilizer time constant (Tf). Typical Value = 0.675. - */ - IEC61970::Base::Domain::Seconds tf; - /** - * Available exciter voltage limiter (Vb1max). Typical Value = 11.63. - */ - IEC61970::Base::Domain::PU vb1max; - /** - * Vb limiter indicator. - * true = exciter Vbmax limiter is active - * false = Vb1max is active. - * Typical Value = true. - */ - IEC61970::Base::Domain::Boolean vblim; - /** - * Available exciter voltage limiter (Vbmax). Typical Value = 11.63. - */ - IEC61970::Base::Domain::PU vbmax; - /** - * Maximum voltage regulator output (Vrmax). Typical Value = 5. - */ - IEC61970::Base::Domain::PU vrmax; - /** - * Minimum voltage regulator output (Vrmin). Typical Value = 0. - */ - IEC61970::Base::Domain::PU vrmin; - - }; - - } - - } - - } - -} -#endif // EXCDC3A1_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcELIN1.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcELIN1.cpp deleted file mode 100644 index 642965a11..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcELIN1.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcELIN1.cpp -// Implementation of the Class ExcELIN1 -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "ExcELIN1.h" - -using IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcELIN1; - - -ExcELIN1::ExcELIN1(){ - -} - - - -ExcELIN1::~ExcELIN1(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcELIN1.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcELIN1.h deleted file mode 100644 index a5f609154..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcELIN1.h +++ /dev/null @@ -1,107 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcELIN1.h -// Implementation of the Class ExcELIN1 -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef EXCELIN1_H -#define EXCELIN1_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace ExcitationSystemDynamics - { - /** - * Static PI transformer fed excitation system: ELIN (VATECH) - simplified model. - * This model represents an all-static excitation system. A PI voltage controller - * establishes a desired field current set point for a proportional current - * controller. The integrator of the PI controller has a follow-up input to match - * its signal to the present field current. A power system stabilizer with power - * input is included in the model. - */ - class ExcELIN1 : public IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics - { - - public: - ExcELIN1(); - virtual ~ExcELIN1(); - /** - * Controller follow up dead band (Dpnf). Typical Value = 0. - */ - IEC61970::Base::Domain::PU dpnf; - /** - * Maximum open circuit excitation voltage (Efmax). Typical Value = 5. - */ - IEC61970::Base::Domain::PU efmax; - /** - * Minimum open circuit excitation voltage (Efmin). Typical Value = -5. - */ - IEC61970::Base::Domain::PU efmin; - /** - * Stabilizer Gain 1 (Ks1). Typical Value = 0. - */ - IEC61970::Base::Domain::PU ks1; - /** - * Stabilizer Gain 2 (Ks2). Typical Value = 0. - */ - IEC61970::Base::Domain::PU ks2; - /** - * Stabilizer Limit Output (smax). Typical Value = 0.1. - */ - IEC61970::Base::Domain::PU smax; - /** - * Current transducer time constant (Tfi). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tfi; - /** - * Controller reset time constant (Tnu). Typical Value = 2. - */ - IEC61970::Base::Domain::Seconds tnu; - /** - * Stabilizer Phase Lag Time Constant (Ts1). Typical Value = 1. - */ - IEC61970::Base::Domain::Seconds ts1; - /** - * Stabilizer Filter Time Constant (Ts2). Typical Value = 1. - */ - IEC61970::Base::Domain::Seconds ts2; - /** - * Stabilizer parameters (Tsw). Typical Value = 3. - */ - IEC61970::Base::Domain::Seconds tsw; - /** - * Current controller gain (Vpi). Typical Value = 12.45. - */ - IEC61970::Base::Domain::PU vpi; - /** - * Controller follow up gain (Vpnf). Typical Value = 2. - */ - IEC61970::Base::Domain::PU vpnf; - /** - * Voltage controller proportional gain (Vpu). Typical Value = 34.5. - */ - IEC61970::Base::Domain::PU vpu; - /** - * Excitation transformer effective reactance (Xe) (>=0). Xe represents the - * regulation of the transformer/rectifier unit. Typical Value = 0.06. - */ - IEC61970::Base::Domain::PU xe; - - }; - - } - - } - - } - -} -#endif // EXCELIN1_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcELIN2.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcELIN2.cpp deleted file mode 100644 index 8954c088f..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcELIN2.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcELIN2.cpp -// Implementation of the Class ExcELIN2 -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "ExcELIN2.h" - -using IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcELIN2; - - -ExcELIN2::ExcELIN2(){ - -} - - - -ExcELIN2::~ExcELIN2(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcELIN2.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcELIN2.h deleted file mode 100644 index 82fb82f0e..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcELIN2.h +++ /dev/null @@ -1,159 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcELIN2.h -// Implementation of the Class ExcELIN2 -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef EXCELIN2_H -#define EXCELIN2_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace ExcitationSystemDynamics - { - /** - * Detailed Excitation System Model - ELIN (VATECH). This model represents an all- - * static excitation system. A PI voltage controller establishes a desired field - * current set point for a proportional current controller. The integrator of the - * PI controller has a follow-up input to match its signal to the present field - * current. Power system stabilizer models used in conjunction with this - * excitation system model: PssELIN2, PssIEEE2B, Pss2B. - */ - class ExcELIN2 : public IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics - { - - public: - ExcELIN2(); - virtual ~ExcELIN2(); - /** - * Gain (Efdbas). Typical Value = 0.1. - */ - IEC61970::Base::Domain::PU efdbas; - /** - * Limiter (Iefmax). Typical Value = 1. - */ - IEC61970::Base::Domain::PU iefmax; - /** - * Minimum open circuit excitation voltage (Iefmax2). Typical Value = -5. - */ - IEC61970::Base::Domain::PU iefmax2; - /** - * Limiter (Iefmin). Typical Value = 1. - */ - IEC61970::Base::Domain::PU iefmin; - /** - * Voltage regulator input gain (K1). Typical Value = 0. - */ - IEC61970::Base::Domain::PU k1; - /** - * Voltage regulator input limit (K1ec). Typical Value = 2. - */ - IEC61970::Base::Domain::PU k1ec; - /** - * Gain (K2). Typical Value = 5. - */ - IEC61970::Base::Domain::PU k2; - /** - * Gain (K3). Typical Value = 0.1. - */ - IEC61970::Base::Domain::PU k3; - /** - * Gain (K4). Typical Value = 0. - */ - IEC61970::Base::Domain::PU k4; - /** - * Voltage controller derivative gain (Kd1). Typical Value = 34.5. - */ - IEC61970::Base::Domain::PU kd1; - /** - * Gain (Ke2). Typical Value = 0.1. - */ - IEC61970::Base::Domain::PU ke2; - /** - * Gain (Ketb). Typical Value = 0.06. - */ - IEC61970::Base::Domain::PU ketb; - /** - * Controller follow up gain (PID1max). Typical Value = 2. - */ - IEC61970::Base::Domain::PU pid1max; - /** - * Exciter saturation function value at the corresponding exciter voltage, Ve1, - * back of commutating reactance (Se[Ve1]). Typical Value = 0. - */ - IEC61970::Base::Domain::PU seve1; - /** - * Exciter saturation function value at the corresponding exciter voltage, Ve2, - * back of commutating reactance (Se[Ve2]). Typical Value = 1. - */ - IEC61970::Base::Domain::PU seve2; - /** - * Voltage controller derivative washout time constant (Tb1). Typical Value = 12. - * 45. - */ - IEC61970::Base::Domain::Seconds tb1; - /** - * Time constant (Te). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds te; - /** - * Time Constant (Te2). Typical Value = 1. - */ - IEC61970::Base::Domain::Seconds te2; - /** - * Controller follow up dead band (Ti1). Typical Value = 0. - */ - IEC61970::Base::Domain::PU ti1; - /** - * Time constant (Ti3). Typical Value = 3. - */ - IEC61970::Base::Domain::Seconds ti3; - /** - * Time constant (Ti4). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds ti4; - /** - * Time constant (Tr4). Typical Value = 1. - */ - IEC61970::Base::Domain::Seconds tr4; - /** - * Limiter (Upmax). Typical Value = 3. - */ - IEC61970::Base::Domain::PU upmax; - /** - * Limiter (Upmin). Typical Value = 0. - */ - IEC61970::Base::Domain::PU upmin; - /** - * Exciter alternator output voltages back of commutating reactance at which - * saturation is defined (Ve1). Typical Value = 3. - */ - IEC61970::Base::Domain::PU ve1; - /** - * Exciter alternator output voltages back of commutating reactance at which - * saturation is defined (Ve2). Typical Value = 0. - */ - IEC61970::Base::Domain::PU ve2; - /** - * Excitation transformer effective reactance (Xp). Typical Value = 1. - */ - IEC61970::Base::Domain::PU xp; - - }; - - } - - } - - } - -} -#endif // EXCELIN2_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcHU.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcHU.cpp deleted file mode 100644 index 633229d2d..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcHU.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcHU.cpp -// Implementation of the Class ExcHU -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "ExcHU.h" - -using IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcHU; - - -ExcHU::ExcHU(){ - -} - - - -ExcHU::~ExcHU(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcHU.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcHU.h deleted file mode 100644 index 6f7e53b9f..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcHU.h +++ /dev/null @@ -1,94 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcHU.h -// Implementation of the Class ExcHU -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef EXCHU_H -#define EXCHU_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace ExcitationSystemDynamics - { - /** - * Hungarian Excitation System Model, with built-in voltage transducer. - */ - class ExcHU : public IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics - { - - public: - ExcHU(); - virtual ~ExcHU(); - /** - * Major loop PI tag gain factor (Ae). Typical Value = 3. - */ - IEC61970::Base::Domain::PU ae; - /** - * Minor loop PI tag gain factor (Ai). Typical Value = 22. - */ - IEC61970::Base::Domain::PU ai; - /** - * AVR constant (Atr). Typical Value = 2.19. - */ - IEC61970::Base::Domain::PU atr; - /** - * Field voltage control signal upper limit on AVR base (Emax). Typical Value = 0. - * 996. - */ - IEC61970::Base::Domain::PU emax; - /** - * Field voltage control signal lower limit on AVR base (Emin). Typical Value = - - * 0.866. - */ - IEC61970::Base::Domain::PU emin; - /** - * Major loop PI tag output signal upper limit (Imax). Typical Value = 2.19. - */ - IEC61970::Base::Domain::PU imax; - /** - * Major loop PI tag output signal lower limit (Imin). Typical Value = 0.1. - */ - IEC61970::Base::Domain::PU imin; - /** - * Voltage base conversion constant (Ke). Typical Value = 4.666. - */ - IEC61970::Base::Domain::Float ke; - /** - * Current base conversion constant (Ki). Typical Value = 0.21428. - */ - IEC61970::Base::Domain::Float ki; - /** - * Major loop PI tag integration time constant (Te). Typical Value = 0.154. - */ - IEC61970::Base::Domain::Seconds te; - /** - * Minor loop PI control tag integration time constant (Ti). Typical Value = 0. - * 01333. - */ - IEC61970::Base::Domain::Seconds ti; - /** - * Filter time constant (Tr). If a voltage compensator is used in conjunction with - * this excitation system model, Tr should be set to 0. Typical Value = 0.01. - */ - IEC61970::Base::Domain::Seconds tr; - - }; - - } - - } - - } - -} -#endif // EXCHU_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEAC1A.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEAC1A.cpp deleted file mode 100644 index a0905a8bb..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEAC1A.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcIEEEAC1A.cpp -// Implementation of the Class ExcIEEEAC1A -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "ExcIEEEAC1A.h" - -using IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC1A; - - -ExcIEEEAC1A::ExcIEEEAC1A(){ - -} - - - -ExcIEEEAC1A::~ExcIEEEAC1A(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEAC1A.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEAC1A.h deleted file mode 100644 index 73092cb33..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEAC1A.h +++ /dev/null @@ -1,131 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcIEEEAC1A.h -// Implementation of the Class ExcIEEEAC1A -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef EXCIEEEAC1A_H -#define EXCIEEEAC1A_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace ExcitationSystemDynamics - { - /** - * The class represents IEEE Std 421.5-2005 type AC1A model. The model represents - * the field-controlled alternator-rectifier excitation systems designated Type - * AC1A. These excitation systems consist of an alternator main exciter with non- - * controlled rectifiers. - * - * Reference: IEEE Standard 421.5-2005 Section 6.1. - */ - class ExcIEEEAC1A : public IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics - { - - public: - ExcIEEEAC1A(); - virtual ~ExcIEEEAC1A(); - /** - * Voltage regulator gain (KA). Typical Value = 400. - */ - IEC61970::Base::Domain::PU ka; - /** - * Rectifier loading factor proportional to commutating reactance (KC). - * Typical Value = 0.2. - */ - IEC61970::Base::Domain::PU kc; - /** - * Demagnetizing factor, a function of exciter alternator reactances - * (KD). Typical Value = 0.38. - */ - IEC61970::Base::Domain::PU kd; - /** - * Exciter constant related to self-excited field (KE). Typical Value - * = 1. - */ - IEC61970::Base::Domain::PU ke; - /** - * Excitation control system stabilizer gains (KF). Typical Value = 0. - * 03. - */ - IEC61970::Base::Domain::PU kf; - /** - * Exciter saturation function value at the corresponding exciter voltage, - * VE1, back of commutating reactance (SE[VE1]). - * Typical Value = 0.1. - */ - IEC61970::Base::Domain::Float seve1; - /** - * Exciter saturation function value at the corresponding exciter voltage, - * VE2, back of commutating reactance (SE[VE2]). - * Typical Value = 0.03. - */ - IEC61970::Base::Domain::Float seve2; - /** - * Voltage regulator time constant (TA). Typical Value = 0.02. - */ - IEC61970::Base::Domain::Seconds ta; - /** - * Voltage regulator time constant (TB). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tb; - /** - * Voltage regulator time constant (TC). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tc; - /** - * Exciter time constant, integration rate associated with exciter control - * (TE). Typical Value = 0.8. - */ - IEC61970::Base::Domain::Seconds te; - /** - * Excitation control system stabilizer time constant (TF). Typical - * Value = 1. - */ - IEC61970::Base::Domain::Seconds tf; - /** - * Maximum voltage regulator output (VAMAX). Typical Value = 14.5. - */ - IEC61970::Base::Domain::PU vamax; - /** - * Minimum voltage regulator output (VAMIN). Typical Value = -14.5. - */ - IEC61970::Base::Domain::PU vamin; - /** - * Exciter alternator output voltages back of commutating reactance at which - * saturation is defined (VE1). Typical Value = 4.18. - */ - IEC61970::Base::Domain::PU ve1; - /** - * Exciter alternator output voltages back of commutating reactance at which - * saturation is defined (VE2). Typical Value = 3.14. - */ - IEC61970::Base::Domain::PU ve2; - /** - * Maximum voltage regulator outputs (VRMAX). Typical Value = 6.03. - */ - IEC61970::Base::Domain::PU vrmax; - /** - * Minimum voltage regulator outputs (VRMIN). Typical Value = -5.43. - */ - IEC61970::Base::Domain::PU vrmin; - - }; - - } - - } - - } - -} -#endif // EXCIEEEAC1A_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEAC2A.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEAC2A.cpp deleted file mode 100644 index 45a809107..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEAC2A.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcIEEEAC2A.cpp -// Implementation of the Class ExcIEEEAC2A -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#include "ExcIEEEAC2A.h" - -using IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC2A; - - -ExcIEEEAC2A::ExcIEEEAC2A(){ - -} - - - -ExcIEEEAC2A::~ExcIEEEAC2A(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEAC2A.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEAC2A.h deleted file mode 100644 index d7b850532..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEAC2A.h +++ /dev/null @@ -1,144 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcIEEEAC2A.h -// Implementation of the Class ExcIEEEAC2A -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#ifndef EXCIEEEAC2A_H -#define EXCIEEEAC2A_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace ExcitationSystemDynamics - { - /** - * The class represents IEEE Std 421.5-2005 type AC2A model. The model represents - * a high initial response field-controlled alternator-rectifier excitation system. - * The alternator main exciter is used with non-controlled rectifiers. The Type - * AC2A model is similar to that of Type AC1A except for the inclusion of exciter - * time constant compensation and exciter field current limiting elements. - * - * Reference: IEEE Standard 421.5-2005 Section 6.2. - */ - class ExcIEEEAC2A : public IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics - { - - public: - ExcIEEEAC2A(); - virtual ~ExcIEEEAC2A(); - /** - * Voltage regulator gain (KA). Typical Value = 400. - */ - IEC61970::Base::Domain::PU ka; - /** - * Second stage regulator gain (KB). Typical Value = 25. - */ - IEC61970::Base::Domain::PU kb; - /** - * Rectifier loading factor proportional to commutating reactance (KC). - * Typical Value = 0.28. - */ - IEC61970::Base::Domain::PU kc; - /** - * Demagnetizing factor, a function of exciter alternator reactances - * (KD). Typical Value = 0.35. - */ - IEC61970::Base::Domain::PU kd; - /** - * Exciter constant related to self-excited field (KE). Typical Value - * = 1. - */ - IEC61970::Base::Domain::PU ke; - /** - * Excitation control system stabilizer gains (KF). Typical Value = 0. - * 03. - */ - IEC61970::Base::Domain::PU kf; - /** - * Exciter field current feedback gain (KH). Typical Value = 1. - */ - IEC61970::Base::Domain::PU kh; - /** - * Exciter saturation function value at the corresponding exciter voltage, - * VE1, back of commutating reactance (SE[VE1]). - * Typical Value = 0.037. - */ - IEC61970::Base::Domain::Float seve1; - /** - * Exciter saturation function value at the corresponding exciter voltage, - * VE2, back of commutating reactance (SE[VE2]). - * Typical Value = 0.012. - */ - IEC61970::Base::Domain::Float seve2; - /** - * Voltage regulator time constant (TA). Typical Value = 0.02. - */ - IEC61970::Base::Domain::Seconds ta; - /** - * Voltage regulator time constant (TB). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tb; - /** - * Voltage regulator time constant (TC). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tc; - /** - * Exciter time constant, integration rate associated with exciter control - * (TE). Typical Value = 0.6. - */ - IEC61970::Base::Domain::Seconds te; - /** - * Excitation control system stabilizer time constant (TF). Typical - * Value = 1. - */ - IEC61970::Base::Domain::Seconds tf; - /** - * Maximum voltage regulator output (VAMAX). Typical Value = 8. - */ - IEC61970::Base::Domain::PU vamax; - /** - * Minimum voltage regulator output (VAMIN). Typical Value = -8. - */ - IEC61970::Base::Domain::PU vamin; - /** - * Exciter alternator output voltages back of commutating reactance at which - * saturation is defined (VE1). Typical Value = 4.4. - */ - IEC61970::Base::Domain::PU ve1; - /** - * Exciter alternator output voltages back of commutating reactance at which - * saturation is defined (VE2). Typical Value = 3.3. - */ - IEC61970::Base::Domain::PU ve2; - /** - * Exciter field current limit reference (VFEMAX). Typical Value = 4.4. - */ - IEC61970::Base::Domain::PU vfemax; - /** - * Maximum voltage regulator outputs (VRMAX). Typical Value = 105. - */ - IEC61970::Base::Domain::PU vrmax; - /** - * Minimum voltage regulator outputs (VRMIN). Typical Value = -95. - */ - IEC61970::Base::Domain::PU vrmin; - - }; - - } - - } - - } - -} -#endif // EXCIEEEAC2A_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEAC3A.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEAC3A.cpp deleted file mode 100644 index a6b4f24de..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEAC3A.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcIEEEAC3A.cpp -// Implementation of the Class ExcIEEEAC3A -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#include "ExcIEEEAC3A.h" - -using IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC3A; - - -ExcIEEEAC3A::ExcIEEEAC3A(){ - -} - - - -ExcIEEEAC3A::~ExcIEEEAC3A(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEAC3A.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEAC3A.h deleted file mode 100644 index e1907e0ba..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEAC3A.h +++ /dev/null @@ -1,153 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcIEEEAC3A.h -// Implementation of the Class ExcIEEEAC3A -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#ifndef EXCIEEEAC3A_H -#define EXCIEEEAC3A_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace ExcitationSystemDynamics - { - /** - * The class represents IEEE Std 421.5-2005 type AC3A model. The model represents - * the field-controlled alternator-rectifier excitation systems designated Type - * AC3A. These excitation systems include an alternator main exciter with non- - * controlled rectifiers. The exciter employs self-excitation, and the voltage - * regulator power is derived from the exciter output voltage. Therefore, this - * system has an additional nonlinearity, simulated by the use of a multiplier - * whose inputs are the voltage regulator command signal, Va, and the - * exciter output voltage, Efd, times KR. This - * model is applicable to excitation systems employing static voltage regulators. - * - * - * Reference: IEEE Standard 421.5-2005 Section 6.3. - */ - class ExcIEEEAC3A : public IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics - { - - public: - ExcIEEEAC3A(); - virtual ~ExcIEEEAC3A(); - /** - * Value of EFD at which feedback gain changes (EFDN). Typical - * Value = 2.36. - */ - IEC61970::Base::Domain::PU efdn; - /** - * Voltage regulator gain (KA). Typical Value = 45.62. - */ - IEC61970::Base::Domain::PU ka; - /** - * Rectifier loading factor proportional to commutating reactance (KC). - * Typical Value = 0.104. - */ - IEC61970::Base::Domain::PU kc; - /** - * Demagnetizing factor, a function of exciter alternator reactances - * (KD). Typical Value = 0.499. - */ - IEC61970::Base::Domain::PU kd; - /** - * Exciter constant related to self-excited field (KE). Typical Value - * = 1. - */ - IEC61970::Base::Domain::PU ke; - /** - * Excitation control system stabilizer gains (KF). Typical Value = 0. - * 143. - */ - IEC61970::Base::Domain::PU kf; - /** - * Excitation control system stabilizer gain (KN). Typical Value = 0. - * 05. - */ - IEC61970::Base::Domain::PU kn; - /** - * Constant associated with regulator and alternator field power supply - * (KR). Typical Value = 3.77. - */ - IEC61970::Base::Domain::PU kr; - /** - * Exciter saturation function value at the corresponding exciter voltage, - * VE1, back of commutating reactance (SE[VE1]). - * Typical Value = 1.143. - */ - IEC61970::Base::Domain::Float seve1; - /** - * Exciter saturation function value at the corresponding exciter voltage, - * VE2, back of commutating reactance (SE[VE2]). - * Typical Value = 0.1. - */ - IEC61970::Base::Domain::Float seve2; - /** - * Voltage regulator time constant (TA). Typical Value = 0.013. - */ - IEC61970::Base::Domain::Seconds ta; - /** - * Voltage regulator time constant (TB). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tb; - /** - * Voltage regulator time constant (TC). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tc; - /** - * Exciter time constant, integration rate associated with exciter control - * (TE). Typical Value = 1.17. - */ - IEC61970::Base::Domain::Seconds te; - /** - * Excitation control system stabilizer time constant (TF). Typical - * Value = 1. - */ - IEC61970::Base::Domain::Seconds tf; - /** - * Maximum voltage regulator output (VAMAX). Typical Value = 1. - */ - IEC61970::Base::Domain::PU vamax; - /** - * Minimum voltage regulator output (VAMIN). Typical Value = -0.95. - */ - IEC61970::Base::Domain::PU vamin; - /** - * Exciter alternator output voltages back of commutating reactance at which - * saturation is defined (VE1) equals VEMAX (VE1). - * Typical Value = 6.24. - */ - IEC61970::Base::Domain::PU ve1; - /** - * Exciter alternator output voltages back of commutating reactance at which - * saturation is defined (VE2). Typical Value = 4.68. - */ - IEC61970::Base::Domain::PU ve2; - /** - * Minimum exciter voltage output (VEMIN). Typical Value = 0.1. - */ - IEC61970::Base::Domain::PU vemin; - /** - * Exciter field current limit reference (VFEMAX). Typical Value = 16. - */ - IEC61970::Base::Domain::PU vfemax; - - }; - - } - - } - - } - -} -#endif // EXCIEEEAC3A_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEAC4A.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEAC4A.cpp deleted file mode 100644 index 6b50b6bc0..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEAC4A.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcIEEEAC4A.cpp -// Implementation of the Class ExcIEEEAC4A -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#include "ExcIEEEAC4A.h" - -using IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC4A; - - -ExcIEEEAC4A::ExcIEEEAC4A(){ - -} - - - -ExcIEEEAC4A::~ExcIEEEAC4A(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEAC4A.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEAC4A.h deleted file mode 100644 index b8e57eb2c..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEAC4A.h +++ /dev/null @@ -1,88 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcIEEEAC4A.h -// Implementation of the Class ExcIEEEAC4A -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#ifndef EXCIEEEAC4A_H -#define EXCIEEEAC4A_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace ExcitationSystemDynamics - { - /** - * The class represents IEEE Std 421.5-2005 type AC4A model. The model represents - * type AC4A alternator-supplied controlled-rectifier excitation system which is - * quite different from the other type ac systems. This high initial response - * excitation system utilizes a full thyristor bridge in the exciter output - * circuit. The voltage regulator controls the firing of the thyristor bridges. - * The exciter alternator uses an independent voltage regulator to control its - * output voltage to a constant value. These effects are not modeled; however, - * transient loading effects on the exciter alternator are included. - * - * - * Reference: IEEE Standard 421.5-2005 Section 6.4. - */ - class ExcIEEEAC4A : public IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics - { - - public: - ExcIEEEAC4A(); - virtual ~ExcIEEEAC4A(); - /** - * Voltage regulator gain (KA). Typical Value = 200. - */ - IEC61970::Base::Domain::PU ka; - /** - * Rectifier loading factor proportional to commutating reactance (KC). - * Typical Value = 0. - */ - IEC61970::Base::Domain::PU kc; - /** - * Voltage regulator time constant (TA). Typical Value = 0.015. - */ - IEC61970::Base::Domain::Seconds ta; - /** - * Voltage regulator time constant (TB). Typical Value = 10. - */ - IEC61970::Base::Domain::Seconds tb; - /** - * Voltage regulator time constant (TC). Typical Value = 1. - */ - IEC61970::Base::Domain::Seconds tc; - /** - * Maximum voltage regulator input limit (VIMAX). Typical Value = 10. - */ - IEC61970::Base::Domain::PU vimax; - /** - * Minimum voltage regulator input limit (VIMIN). Typical Value = -10. - */ - IEC61970::Base::Domain::PU vimin; - /** - * Maximum voltage regulator output (VRMAX). Typical Value = 5.64. - */ - IEC61970::Base::Domain::PU vrmax; - /** - * Minimum voltage regulator output (VRMIN). Typical Value = -4.53. - */ - IEC61970::Base::Domain::PU vrmin; - - }; - - } - - } - - } - -} -#endif // EXCIEEEAC4A_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEAC5A.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEAC5A.cpp deleted file mode 100644 index b984d9376..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEAC5A.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcIEEEAC5A.cpp -// Implementation of the Class ExcIEEEAC5A -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#include "ExcIEEEAC5A.h" - -using IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC5A; - - -ExcIEEEAC5A::ExcIEEEAC5A(){ - -} - - - -ExcIEEEAC5A::~ExcIEEEAC5A(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEAC5A.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEAC5A.h deleted file mode 100644 index 5f7de5576..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEAC5A.h +++ /dev/null @@ -1,118 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcIEEEAC5A.h -// Implementation of the Class ExcIEEEAC5A -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#ifndef EXCIEEEAC5A_H -#define EXCIEEEAC5A_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace ExcitationSystemDynamics - { - /** - * The class represents IEEE Std 421.5-2005 type AC5A model. The model represents - * a simplified model for brushless excitation systems. The regulator is supplied - * from a source, such as a permanent magnet generator, which is not affected by - * system disturbances. Unlike other ac models, this model uses loaded rather - * than open circuit exciter saturation data in the same way as it is used for the - * dc models. Because the model has been widely implemented by the industry, it - * is sometimes used to represent other types of systems when either detailed data - * for them are not available or simplified models are required. - * - * - * Reference: IEEE Standard 421.5-2005 Section 6.5. - */ - class ExcIEEEAC5A : public IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics - { - - public: - ExcIEEEAC5A(); - virtual ~ExcIEEEAC5A(); - /** - * Exciter voltage at which exciter saturation is defined (EFD1). - * Typical Value = 5.6. - */ - IEC61970::Base::Domain::PU efd1; - /** - * Exciter voltage at which exciter saturation is defined (EFD2). - * Typical Value = 4.2. - */ - IEC61970::Base::Domain::PU efd2; - /** - * Voltage regulator gain (KA). Typical Value = 400. - */ - IEC61970::Base::Domain::PU ka; - /** - * Exciter constant related to self-excited field (KE). Typical Value - * = 1. - */ - IEC61970::Base::Domain::PU ke; - /** - * Excitation control system stabilizer gains (KF). Typical Value = 0. - * 03. - */ - IEC61970::Base::Domain::PU kf; - /** - * Exciter saturation function value at the corresponding exciter voltage, - * EFD1 (SE[EFD1]). Typical Value = 0.86. - */ - IEC61970::Base::Domain::Float seefd1; - /** - * Exciter saturation function value at the corresponding exciter voltage, - * EFD2 (SE[EFD2]). Typical Value = 0.5. - */ - IEC61970::Base::Domain::Float seefd2; - /** - * Voltage regulator time constant (TA). Typical Value = 0.02. - */ - IEC61970::Base::Domain::Seconds ta; - /** - * Exciter time constant, integration rate associated with exciter control - * (TE). Typical Value = 0.8. - */ - IEC61970::Base::Domain::Seconds te; - /** - * Excitation control system stabilizer time constant (TF1). Typical - * Value = 1. - */ - IEC61970::Base::Domain::Seconds tf1; - /** - * Excitation control system stabilizer time constant (TF2). Typical - * Value = 1. - */ - IEC61970::Base::Domain::Seconds tf2; - /** - * Excitation control system stabilizer time constant (TF3). Typical - * Value = 1. - */ - IEC61970::Base::Domain::Seconds tf3; - /** - * Maximum voltage regulator output (VRMAX). Typical Value = 7.3. - */ - IEC61970::Base::Domain::PU vrmax; - /** - * Minimum voltage regulator output (VRMIN). Typical Value = -7.3. - */ - IEC61970::Base::Domain::PU vrmin; - - }; - - } - - } - - } - -} -#endif // EXCIEEEAC5A_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEAC6A.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEAC6A.cpp deleted file mode 100644 index 9947af862..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEAC6A.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcIEEEAC6A.cpp -// Implementation of the Class ExcIEEEAC6A -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#include "ExcIEEEAC6A.h" - -using IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC6A; - - -ExcIEEEAC6A::ExcIEEEAC6A(){ - -} - - - -ExcIEEEAC6A::~ExcIEEEAC6A(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEAC6A.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEAC6A.h deleted file mode 100644 index 44dc780dc..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEAC6A.h +++ /dev/null @@ -1,151 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcIEEEAC6A.h -// Implementation of the Class ExcIEEEAC6A -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#ifndef EXCIEEEAC6A_H -#define EXCIEEEAC6A_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace ExcitationSystemDynamics - { - /** - * The class represents IEEE Std 421.5-2005 type AC6A model. The model represents - * field-controlled alternator-rectifier excitation systems with system-supplied - * electronic voltage regulators. The maximum output of the regulator, - * VR, is a function of terminal voltage, - * VT. The field current limiter included - * in the original model AC6A remains in the 2005 update. - * - * Reference: IEEE Standard 421.5-2005 Section 6.6. - */ - class ExcIEEEAC6A : public IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics - { - - public: - ExcIEEEAC6A(); - virtual ~ExcIEEEAC6A(); - /** - * Voltage regulator gain (KA). Typical Value = 536. - */ - IEC61970::Base::Domain::PU ka; - /** - * Rectifier loading factor proportional to commutating reactance (KC). - * Typical Value = 0.173. - */ - IEC61970::Base::Domain::PU kc; - /** - * Demagnetizing factor, a function of exciter alternator reactances - * (KD). Typical Value = 1.91. - */ - IEC61970::Base::Domain::PU kd; - /** - * Exciter constant related to self-excited field (KE). Typical Value - * = 1.6. - */ - IEC61970::Base::Domain::PU ke; - /** - * Exciter field current limiter gain (KH). Typical Value = 92. - */ - IEC61970::Base::Domain::PU kh; - /** - * Exciter saturation function value at the corresponding exciter voltage, - * VE1, back of commutating reactance (SE[VE1]). - * Typical Value = 0.214. - */ - IEC61970::Base::Domain::Float seve1; - /** - * Exciter saturation function value at the corresponding exciter voltage, - * VE2, back of commutating reactance (SE[VE2]). - * Typical Value = 0.044. - */ - IEC61970::Base::Domain::Float seve2; - /** - * Voltage regulator time constant (TA). Typical Value = 0.086. - */ - IEC61970::Base::Domain::Seconds ta; - /** - * Voltage regulator time constant (TB). Typical Value = 9. - */ - IEC61970::Base::Domain::Seconds tb; - /** - * Voltage regulator time constant (TC). Typical Value = 3. - */ - IEC61970::Base::Domain::Seconds tc; - /** - * Exciter time constant, integration rate associated with exciter control - * (TE). Typical Value = 1. - */ - IEC61970::Base::Domain::Seconds te; - /** - * Exciter field current limiter time constant (TH). Typical Value = 0. - * 08. - */ - IEC61970::Base::Domain::Seconds th; - /** - * Exciter field current limiter time constant (TJ). Typical Value = 0. - * 02. - */ - IEC61970::Base::Domain::Seconds tj; - /** - * Voltage regulator time constant (TK). Typical Value = 0.18. - */ - IEC61970::Base::Domain::Seconds tk; - /** - * Maximum voltage regulator output (VAMAX). Typical Value = 75. - */ - IEC61970::Base::Domain::PU vamax; - /** - * Minimum voltage regulator output (VAMIN). Typical Value = -75. - */ - IEC61970::Base::Domain::PU vamin; - /** - * Exciter alternator output voltages back of commutating reactance at which - * saturation is defined (VE1) equals VEMAX (VE1). - * Typical Value = 7.4. - */ - IEC61970::Base::Domain::PU ve1; - /** - * Exciter alternator output voltages back of commutating reactance at which - * saturation is defined (VE2). Typical Value = 5.55. - */ - IEC61970::Base::Domain::PU ve2; - /** - * Exciter field current limit reference (VFELIM). Typical Value = 19. - */ - IEC61970::Base::Domain::PU vfelim; - /** - * Maximum field current limiter signal reference (VHMAX). Typical - * Value = 75. - */ - IEC61970::Base::Domain::PU vhmax; - /** - * Maximum voltage regulator output (VRMAX). Typical Value = 44. - */ - IEC61970::Base::Domain::PU vrmax; - /** - * Minimum voltage regulator output (VRMIN). Typical Value = -36. - */ - IEC61970::Base::Domain::PU vrmin; - - }; - - } - - } - - } - -} -#endif // EXCIEEEAC6A_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEAC7B.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEAC7B.cpp deleted file mode 100644 index 2ac3fb2c5..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEAC7B.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcIEEEAC7B.cpp -// Implementation of the Class ExcIEEEAC7B -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#include "ExcIEEEAC7B.h" - -using IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC7B; - - -ExcIEEEAC7B::ExcIEEEAC7B(){ - -} - - - -ExcIEEEAC7B::~ExcIEEEAC7B(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEAC7B.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEAC7B.h deleted file mode 100644 index 97ed5ece1..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEAC7B.h +++ /dev/null @@ -1,169 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcIEEEAC7B.h -// Implementation of the Class ExcIEEEAC7B -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#ifndef EXCIEEEAC7B_H -#define EXCIEEEAC7B_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace ExcitationSystemDynamics - { - /** - * The class represents IEEE Std 421.5-2005 type AC7B model. The model represents - * excitation systems which consist of an ac alternator with either stationary or - * rotating rectifiers to produce the dc field requirements. It is an upgrade to - * earlier ac excitation systems, which replace only the controls but retain the - * ac alternator and diode rectifier bridge. - * - * Reference: IEEE Standard 421.5-2005 Section 6.7. - * - * Note: In the IEEE Standard 421.5 – 2005, the [1 / sTE] block - * is shown as [1 / (1 + sTE)], which is incorrect. - */ - class ExcIEEEAC7B : public IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics - { - - public: - ExcIEEEAC7B(); - virtual ~ExcIEEEAC7B(); - /** - * Rectifier loading factor proportional to commutating reactance (KC). - * Typical Value = 0.18. - */ - IEC61970::Base::Domain::PU kc; - /** - * Demagnetizing factor, a function of exciter alternator reactances - * (KD). Typical Value = 0.02. - */ - IEC61970::Base::Domain::PU kd; - /** - * Voltage regulator derivative gain (KDR). Typical Value = 0. - */ - IEC61970::Base::Domain::PU kdr; - /** - * Exciter constant related to self-excited field (KE). Typical Value - * = 1. - */ - IEC61970::Base::Domain::PU ke; - /** - * Excitation control system stabilizer gain (KF1). Typical Value = 0. - * 212. - */ - IEC61970::Base::Domain::PU kf1; - /** - * Excitation control system stabilizer gain (KF2). Typical Value = 0. - */ - IEC61970::Base::Domain::PU kf2; - /** - * Excitation control system stabilizer gain (KF3). Typical Value = 0. - */ - IEC61970::Base::Domain::PU kf3; - /** - * Voltage regulator integral gain (KIA). Typical Value = 59.69. - */ - IEC61970::Base::Domain::PU kia; - /** - * Voltage regulator integral gain (KIR). Typical Value = 4.24. - */ - IEC61970::Base::Domain::PU kir; - /** - * Exciter field voltage lower limit parameter (KL). Typical Value = - * 10. - */ - IEC61970::Base::Domain::PU kl; - /** - * Potential circuit gain coefficient (KP). Typical Value = 4.96. - */ - IEC61970::Base::Domain::PU kp; - /** - * Voltage regulator proportional gain (KPA). Typical Value = 65.36. - */ - IEC61970::Base::Domain::PU kpa; - /** - * Voltage regulator proportional gain (KPR). Typical Value = 4.24. - */ - IEC61970::Base::Domain::PU kpr; - /** - * Exciter saturation function value at the corresponding exciter voltage, - * VE1, back of commutating reactance (SE[VE1]). - * Typical Value = 0.44. - */ - IEC61970::Base::Domain::Float seve1; - /** - * Exciter saturation function value at the corresponding exciter voltage, - * VE2, back of commutating reactance (SE[VE2]). - * Typical Value = 0.075. - */ - IEC61970::Base::Domain::Float seve2; - /** - * Lag time constant (TDR). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tdr; - /** - * Exciter time constant, integration rate associated with exciter control - * (TE). Typical Value = 1.1. - */ - IEC61970::Base::Domain::Seconds te; - /** - * Excitation control system stabilizer time constant (TF). Typical - * Value = 1. - */ - IEC61970::Base::Domain::Seconds tf; - /** - * Maximum voltage regulator output (VAMAX). Typical Value = 1. - */ - IEC61970::Base::Domain::PU vamax; - /** - * Minimum voltage regulator output (VAMIN). Typical Value = -0.95. - */ - IEC61970::Base::Domain::PU vamin; - /** - * Exciter alternator output voltages back of commutating reactance at which - * saturation is defined (VE1) equals VEMAX (VE1). - * Typical Value = 6.3. - */ - IEC61970::Base::Domain::PU ve1; - /** - * Exciter alternator output voltages back of commutating reactance at which - * saturation is defined (VE2). Typical Value = 3.02. - */ - IEC61970::Base::Domain::PU ve2; - /** - * Minimum exciter voltage output (VEMIN). Typical Value = 0. - */ - IEC61970::Base::Domain::PU vemin; - /** - * Exciter field current limit reference (VFEMAX). Typical Value = 6.9. - */ - IEC61970::Base::Domain::PU vfemax; - /** - * Maximum voltage regulator output (VRMAX). Typical Value = 5.79. - */ - IEC61970::Base::Domain::PU vrmax; - /** - * Minimum voltage regulator output (VRMIN). Typical Value = -5.79. - */ - IEC61970::Base::Domain::PU vrmin; - - }; - - } - - } - - } - -} -#endif // EXCIEEEAC7B_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEAC8B.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEAC8B.cpp deleted file mode 100644 index 1cbf92e5a..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEAC8B.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcIEEEAC8B.cpp -// Implementation of the Class ExcIEEEAC8B -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#include "ExcIEEEAC8B.h" - -using IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC8B; - - -ExcIEEEAC8B::ExcIEEEAC8B(){ - -} - - - -ExcIEEEAC8B::~ExcIEEEAC8B(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEAC8B.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEAC8B.h deleted file mode 100644 index 0a70ab6e3..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEAC8B.h +++ /dev/null @@ -1,144 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcIEEEAC8B.h -// Implementation of the Class ExcIEEEAC8B -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#ifndef EXCIEEEAC8B_H -#define EXCIEEEAC8B_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace ExcitationSystemDynamics - { - /** - * The class represents IEEE Std 421.5-2005 type AC8B model. This model represents - * a PID voltage regulator with either a brushless exciter or dc exciter. The AVR - * in this model consists of PID control, with separate constants for the - * proportional (KPR), integral - * (KIR), and derivative (KDR) - * gains. The representation of the brushless exciter (TE, - * KE, SE, - * KC, KD) is similar to the - * model Type AC2A. The Type AC8B model can be used to represent static voltage - * regulators applied to brushless excitation systems. Digitally based voltage - * regulators feeding dc rotating main exciters can be represented with the AC - * Type AC8B model with the parameters KC and - * KD set to 0. For thyristor power stages fed from the - * generator terminals, the limits VRMAX and - * VRMIN should be a function of terminal voltage: - * VT * VRMAX and - * VT * VRMIN. - * - * - * Reference: IEEE Standard 421.5-2005 Section 6.8. - */ - class ExcIEEEAC8B : public IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics - { - - public: - ExcIEEEAC8B(); - virtual ~ExcIEEEAC8B(); - /** - * Voltage regulator gain (KA). Typical Value = 1. - */ - IEC61970::Base::Domain::PU ka; - /** - * Rectifier loading factor proportional to commutating reactance (KC). - * Typical Value = 0.55. - */ - IEC61970::Base::Domain::PU kc; - /** - * Demagnetizing factor, a function of exciter alternator reactances - * (KD). Typical Value = 1.1. - */ - IEC61970::Base::Domain::PU kd; - /** - * Voltage regulator derivative gain (KDR). Typical Value = 10. - */ - IEC61970::Base::Domain::PU kdr; - /** - * Exciter constant related to self-excited field (KE). Typical Value - * = 1. - */ - IEC61970::Base::Domain::PU ke; - /** - * Voltage regulator integral gain (KIR). Typical Value = 5. - */ - IEC61970::Base::Domain::PU kir; - /** - * Voltage regulator proportional gain (KPR). Typical Value = 80. - */ - IEC61970::Base::Domain::PU kpr; - /** - * Exciter saturation function value at the corresponding exciter voltage, - * VE1, back of commutating reactance (SE[VE1]). - * Typical Value = 0.3. - */ - IEC61970::Base::Domain::Float seve1; - /** - * Exciter saturation function value at the corresponding exciter voltage, - * VE2, back of commutating reactance (SE[VE2]). - * Typical Value = 3. - */ - IEC61970::Base::Domain::Float seve2; - /** - * Voltage regulator time constant (TA). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds ta; - /** - * Lag time constant (TDR). Typical Value = 0.1. - */ - IEC61970::Base::Domain::Seconds tdr; - /** - * Exciter time constant, integration rate associated with exciter control - * (TE). Typical Value = 1.2. - */ - IEC61970::Base::Domain::Seconds te; - /** - * Exciter alternator output voltages back of commutating reactance at which - * saturation is defined (VE1) equals VEMAX (VE1). - * Typical Value = 6.5. - */ - IEC61970::Base::Domain::PU ve1; - /** - * Exciter alternator output voltages back of commutating reactance at which - * saturation is defined (VE2). Typical Value = 9. - */ - IEC61970::Base::Domain::PU ve2; - /** - * Minimum exciter voltage output (VEMIN). Typical Value = 0. - */ - IEC61970::Base::Domain::PU vemin; - /** - * Exciter field current limit reference (VFEMAX). Typical Value = 6. - */ - IEC61970::Base::Domain::PU vfemax; - /** - * Maximum voltage regulator output (VRMAX). Typical Value = 35. - */ - IEC61970::Base::Domain::PU vrmax; - /** - * Minimum voltage regulator output (VRMIN). Typical Value = 0. - */ - IEC61970::Base::Domain::PU vrmin; - - }; - - } - - } - - } - -} -#endif // EXCIEEEAC8B_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEDC1A.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEDC1A.cpp deleted file mode 100644 index e4dfda035..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEDC1A.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcIEEEDC1A.cpp -// Implementation of the Class ExcIEEEDC1A -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#include "ExcIEEEDC1A.h" - -using IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC1A; - - -ExcIEEEDC1A::ExcIEEEDC1A(){ - -} - - - -ExcIEEEDC1A::~ExcIEEEDC1A(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEDC1A.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEDC1A.h deleted file mode 100644 index ccda01eee..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEDC1A.h +++ /dev/null @@ -1,129 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcIEEEDC1A.h -// Implementation of the Class ExcIEEEDC1A -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#ifndef EXCIEEEDC1A_H -#define EXCIEEEDC1A_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace ExcitationSystemDynamics - { - /** - * The class represents IEEE Std 421.5-2005 type DC1A model. This model represents - * field-controlled dc commutator exciters with continuously acting voltage - * regulators (especially the direct-acting rheostatic, rotating amplifier, and - * magnetic amplifier types). Because this model has been widely implemented by - * the industry, it is sometimes used to represent other types of systems when - * detailed data for them are not available or when a simplified model is required. - * - * - * - * Reference: IEEE Standard 421.5-2005 Section 5.1. - */ - class ExcIEEEDC1A : public IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics - { - - public: - ExcIEEEDC1A(); - virtual ~ExcIEEEDC1A(); - /** - * Exciter voltage at which exciter saturation is defined (EFD1). - * Typical Value = 3.1. - */ - IEC61970::Base::Domain::PU efd1; - /** - * Exciter voltage at which exciter saturation is defined (EFD2). - * Typical Value = 2.3. - */ - IEC61970::Base::Domain::PU efd2; - /** - * (exclim). IEEE standard is ambiguous about lower limit on exciter output. - * true = a lower limit of zero is applied to integrator output - * false = a lower limit of zero is not applied to integrator output. - * Typical Value = true. - */ - IEC61970::Base::Domain::Boolean exclim; - /** - * Voltage regulator gain (KA). Typical Value = 46. - */ - IEC61970::Base::Domain::PU ka; - /** - * Exciter constant related to self-excited field (KE). Typical Value - * = 0. - */ - IEC61970::Base::Domain::PU ke; - /** - * Excitation control system stabilizer gain (KF). Typical Value = 0.1. - */ - IEC61970::Base::Domain::PU kf; - /** - * Exciter saturation function value at the corresponding exciter voltage, - * EFD1 (SE[EFD1]). Typical Value = 0.33. - */ - IEC61970::Base::Domain::Float seefd1; - /** - * Exciter saturation function value at the corresponding exciter voltage, - * EFD2 (SE[EFD2]). Typical Value = 0.1. - */ - IEC61970::Base::Domain::Float seefd2; - /** - * Voltage regulator time constant (TA). Typical Value = 0.06. - */ - IEC61970::Base::Domain::Seconds ta; - /** - * Voltage regulator time constant (TB). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tb; - /** - * Voltage regulator time constant (TC). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tc; - /** - * Exciter time constant, integration rate associated with exciter control - * (TE). Typical Value = 0.46. - */ - IEC61970::Base::Domain::Seconds te; - /** - * Excitation control system stabilizer time constant (TF). Typical - * Value = 1. - */ - IEC61970::Base::Domain::Seconds tf; - /** - * UEL input (uelin). - * true = input is connected to the HV gate - * false = input connects to the error signal. - * Typical Value = true. - */ - IEC61970::Base::Domain::Boolean uelin; - /** - * Maximum voltage regulator output (VRMAX). Typical Value = 1. - */ - IEC61970::Base::Domain::PU vrmax; - /** - * Minimum voltage regulator output (VRMIN). Typical Value = -0.9. - */ - IEC61970::Base::Domain::PU vrmin; - - }; - - } - - } - - } - -} -#endif // EXCIEEEDC1A_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEDC2A.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEDC2A.cpp deleted file mode 100644 index 5e59f916d..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEDC2A.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcIEEEDC2A.cpp -// Implementation of the Class ExcIEEEDC2A -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#include "ExcIEEEDC2A.h" - -using IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC2A; - - -ExcIEEEDC2A::ExcIEEEDC2A(){ - -} - - - -ExcIEEEDC2A::~ExcIEEEDC2A(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEDC2A.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEDC2A.h deleted file mode 100644 index f600e01c2..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEDC2A.h +++ /dev/null @@ -1,128 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcIEEEDC2A.h -// Implementation of the Class ExcIEEEDC2A -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#ifndef EXCIEEEDC2A_H -#define EXCIEEEDC2A_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace ExcitationSystemDynamics - { - /** - * The class represents IEEE Std 421.5-2005 type DC2A model. This model represents - * represent field-controlled dc commutator exciters with continuously acting - * voltage regulators having supplies obtained from the generator or auxiliary bus. - * It differs from the Type DC1A model only in the voltage regulator output - * limits, which are now proportional to terminal voltage - * VT. - * It is representative of solid-state replacements for various forms of older - * mechanical and rotating amplifier regulating equipment connected to dc - * commutator exciters. - * - * Reference: IEEE Standard 421.5-2005 Section 5.2. - */ - class ExcIEEEDC2A : public IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics - { - - public: - ExcIEEEDC2A(); - virtual ~ExcIEEEDC2A(); - /** - * Exciter voltage at which exciter saturation is defined (EFD1). - * Typical Value = 3.05. - */ - IEC61970::Base::Domain::PU efd1; - /** - * Exciter voltage at which exciter saturation is defined (EFD2). - * Typical Value = 2.29. - */ - IEC61970::Base::Domain::PU efd2; - /** - * (exclim). IEEE standard is ambiguous about lower limit on exciter output. - * Typical Value = - 999 which means that there is no limit applied. - */ - IEC61970::Base::Domain::PU exclim; - /** - * Voltage regulator gain (KA). Typical Value = 300. - */ - IEC61970::Base::Domain::PU ka; - /** - * Exciter constant related to self-excited field (KE). Typical Value - * = 1. - */ - IEC61970::Base::Domain::PU ke; - /** - * Excitation control system stabilizer gain (KF). Typical Value = 0.1. - */ - IEC61970::Base::Domain::PU kf; - /** - * Exciter saturation function value at the corresponding exciter voltage, - * EFD1 (SE[EFD1]). Typical Value = 0.279. - */ - IEC61970::Base::Domain::Float seefd1; - /** - * Exciter saturation function value at the corresponding exciter voltage, - * EFD2 (SE[EFD2]). Typical Value = 0.117. - */ - IEC61970::Base::Domain::Float seefd2; - /** - * Voltage regulator time constant (TA). Typical Value = 0.01. - */ - IEC61970::Base::Domain::Seconds ta; - /** - * Voltage regulator time constant (TB). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tb; - /** - * Voltage regulator time constant (TC). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tc; - /** - * Exciter time constant, integration rate associated with exciter control - * (TE). Typical Value = 1.33. - */ - IEC61970::Base::Domain::Seconds te; - /** - * Excitation control system stabilizer time constant (TF). Typical - * Value = 0.675. - */ - IEC61970::Base::Domain::Seconds tf; - /** - * UEL input (uelin). - * true = input is connected to the HV gate - * false = input connects to the error signal. - * Typical Value = true. - */ - IEC61970::Base::Domain::Boolean uelin; - /** - * Maximum voltage regulator output (VRMAX). Typical Value = 4.95. - */ - IEC61970::Base::Domain::PU vrmax; - /** - * Minimum voltage regulator output (VRMIN). Typical Value = -4.9. - */ - IEC61970::Base::Domain::PU vrmin; - - }; - - } - - } - - } - -} -#endif // EXCIEEEDC2A_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEDC3A.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEDC3A.cpp deleted file mode 100644 index 9143d15da..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEDC3A.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcIEEEDC3A.cpp -// Implementation of the Class ExcIEEEDC3A -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#include "ExcIEEEDC3A.h" - -using IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC3A; - - -ExcIEEEDC3A::ExcIEEEDC3A(){ - -} - - - -ExcIEEEDC3A::~ExcIEEEDC3A(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEDC3A.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEDC3A.h deleted file mode 100644 index 025e1b5ac..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEDC3A.h +++ /dev/null @@ -1,108 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcIEEEDC3A.h -// Implementation of the Class ExcIEEEDC3A -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#ifndef EXCIEEEDC3A_H -#define EXCIEEEDC3A_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace ExcitationSystemDynamics - { - /** - * The class represents IEEE Std 421.5-2005 type DC3A model. This model represents - * represent older systems, in particular those dc commutator exciters with non- - * continuously acting regulators that were commonly used before the development - * of the continuously acting varieties. These systems respond at basically two - * different rates, depending upon the magnitude of voltage error. For small - * errors, adjustment is made periodically with a signal to a motor-operated - * rheostat. Larger errors cause resistors to be quickly shorted or inserted and a - * strong forcing signal applied to the exciter. Continuous motion of the motor- - * operated rheostat occurs for these larger error signals, even though it is - * bypassed by contactor action. - * - * - * Reference: IEEE Standard 421.5-2005 Section 5.3. - */ - class ExcIEEEDC3A : public IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics - { - - public: - ExcIEEEDC3A(); - virtual ~ExcIEEEDC3A(); - /** - * Exciter voltage at which exciter saturation is defined (EFD1). - * Typical Value = 3.375. - */ - IEC61970::Base::Domain::PU efd1; - /** - * Exciter voltage at which exciter saturation is defined (EFD2). - * Typical Value = 3.15. - */ - IEC61970::Base::Domain::PU efd2; - /** - * (exclim). IEEE standard is ambiguous about lower limit on exciter output. - * true = a lower limit of zero is applied to integrator output - * false = a lower limit of zero is not applied to integrator output. - * Typical Value = true. - */ - IEC61970::Base::Domain::Boolean exclim; - /** - * Exciter constant related to self-excited field (KE). Typical Value - * = 0.05. - */ - IEC61970::Base::Domain::PU ke; - /** - * Fast raise/lower contact setting (KV). Typical Value = 0.05. - */ - IEC61970::Base::Domain::PU kv; - /** - * Exciter saturation function value at the corresponding exciter voltage, - * EFD1 (SE[EFD1]). Typical Value = 0.267. - */ - IEC61970::Base::Domain::Float seefd1; - /** - * Exciter saturation function value at the corresponding exciter voltage, - * EFD2 (SE[EFD2]). Typical Value = 0.068. - */ - IEC61970::Base::Domain::Float seefd2; - /** - * Exciter time constant, integration rate associated with exciter control - * (TE). Typical Value = 0.5. - */ - IEC61970::Base::Domain::Seconds te; - /** - * Rheostat travel time (TRH). Typical Value = 20. - */ - IEC61970::Base::Domain::Seconds trh; - /** - * Maximum voltage regulator output (VRMAX). Typical Value = 1. - */ - IEC61970::Base::Domain::PU vrmax; - /** - * Minimum voltage regulator output (VRMIN). Typical Value = 0. - */ - IEC61970::Base::Domain::PU vrmin; - - }; - - } - - } - - } - -} -#endif // EXCIEEEDC3A_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEDC4B.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEDC4B.cpp deleted file mode 100644 index 924fd14df..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEDC4B.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcIEEEDC4B.cpp -// Implementation of the Class ExcIEEEDC4B -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#include "ExcIEEEDC4B.h" - -using IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC4B; - - -ExcIEEEDC4B::ExcIEEEDC4B(){ - -} - - - -ExcIEEEDC4B::~ExcIEEEDC4B(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEDC4B.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEDC4B.h deleted file mode 100644 index b0c8b819f..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEDC4B.h +++ /dev/null @@ -1,137 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcIEEEDC4B.h -// Implementation of the Class ExcIEEEDC4B -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#ifndef EXCIEEEDC4B_H -#define EXCIEEEDC4B_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace ExcitationSystemDynamics - { - /** - * The class represents IEEE Std 421.5-2005 type DC4B model. These excitation - * systems utilize a field-controlled dc commutator exciter with a continuously - * acting voltage regulator having supplies obtained from the generator or - * auxiliary bus. - * - * Reference: IEEE Standard 421.5-2005 Section 5.4. - */ - class ExcIEEEDC4B : public IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics - { - - public: - ExcIEEEDC4B(); - virtual ~ExcIEEEDC4B(); - /** - * Exciter voltage at which exciter saturation is defined (EFD1). - * Typical Value = 1.75. - */ - IEC61970::Base::Domain::PU efd1; - /** - * Exciter voltage at which exciter saturation is defined (EFD2). - * Typical Value = 2.33. - */ - IEC61970::Base::Domain::PU efd2; - /** - * Voltage regulator gain (KA). Typical Value = 1. - */ - IEC61970::Base::Domain::PU ka; - /** - * Regulator derivative gain (KD). Typical Value = 20. - */ - IEC61970::Base::Domain::PU kd; - /** - * Exciter constant related to self-excited field (KE). Typical Value - * = 1. - */ - IEC61970::Base::Domain::PU ke; - /** - * Excitation control system stabilizer gain (KF). Typical Value = 0. - */ - IEC61970::Base::Domain::PU kf; - /** - * Regulator integral gain (KI). Typical Value = 20. - */ - IEC61970::Base::Domain::PU ki; - /** - * Regulator proportional gain (KP). Typical Value = 20. - */ - IEC61970::Base::Domain::PU kp; - /** - * OEL input (OELin). - * true = LV gate - * false = subtract from error signal. - * Typical Value = true. - */ - IEC61970::Base::Domain::Boolean oelin; - /** - * Exciter saturation function value at the corresponding exciter voltage, - * EFD1 (SE[EFD1]). Typical Value = 0.08. - */ - IEC61970::Base::Domain::Float seefd1; - /** - * Exciter saturation function value at the corresponding exciter voltage, - * EFD2 (SE[EFD2]). Typical Value = 0.27. - */ - IEC61970::Base::Domain::Float seefd2; - /** - * Voltage regulator time constant (TA). Typical Value = 0.2. - */ - IEC61970::Base::Domain::Seconds ta; - /** - * Regulator derivative filter time constant(TD). Typical Value = 0.01. - */ - IEC61970::Base::Domain::Seconds td; - /** - * Exciter time constant, integration rate associated with exciter control - * (TE). Typical Value = 0.8. - */ - IEC61970::Base::Domain::Seconds te; - /** - * Excitation control system stabilizer time constant (TF). Typical - * Value = 1. - */ - IEC61970::Base::Domain::Seconds tf; - /** - * UEL input (UELin). - * true = HV gate - * false = add to error signal. - * Typical Value = true. - */ - IEC61970::Base::Domain::Boolean uelin; - /** - * Minimum exciter voltage output(VEMIN). Typical Value = 0. - */ - IEC61970::Base::Domain::PU vemin; - /** - * Maximum voltage regulator output (VRMAX). Typical Value = 2.7. - */ - IEC61970::Base::Domain::PU vrmax; - /** - * Minimum voltage regulator output (VRMIN). Typical Value = -0.9. - */ - IEC61970::Base::Domain::PU vrmin; - - }; - - } - - } - - } - -} -#endif // EXCIEEEDC4B_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEST1A.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEST1A.cpp deleted file mode 100644 index 8a1b27b60..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEST1A.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcIEEEST1A.cpp -// Implementation of the Class ExcIEEEST1A -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#include "ExcIEEEST1A.h" - -using IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST1A; - - -ExcIEEEST1A::ExcIEEEST1A(){ - -} - - - -ExcIEEEST1A::~ExcIEEEST1A(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEST1A.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEST1A.h deleted file mode 100644 index 461856795..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEST1A.h +++ /dev/null @@ -1,131 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcIEEEST1A.h -// Implementation of the Class ExcIEEEST1A -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#ifndef EXCIEEEST1A_H -#define EXCIEEEST1A_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEST1AUELselectorKind.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace ExcitationSystemDynamics - { - /** - * The class represents IEEE Std 421.5-2005 type ST1A model. This model represents - * systems in which excitation power is supplied through a transformer from the - * generator terminals (or the unit’s auxiliary bus) and is regulated by a - * controlled rectifier. The maximum exciter voltage available from such systems - * is directly related to the generator terminal voltage. - * - * Reference: IEEE Standard 421.5-2005 Section 7.1. - */ - class ExcIEEEST1A : public IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics - { - - public: - ExcIEEEST1A(); - virtual ~ExcIEEEST1A(); - /** - * Exciter output current limit reference (ILR). Typical Value = 0. - */ - IEC61970::Base::Domain::PU ilr; - /** - * Voltage regulator gain (KA). Typical Value = 190. - */ - IEC61970::Base::Domain::PU ka; - /** - * Rectifier loading factor proportional to commutating reactance (KC). - * Typical Value = 0.08. - */ - IEC61970::Base::Domain::PU kc; - /** - * Excitation control system stabilizer gains (KF). Typical Value = 0. - */ - IEC61970::Base::Domain::PU kf; - /** - * Exciter output current limiter gain (KLR). Typical Value = 0. - */ - IEC61970::Base::Domain::PU klr; - /** - * Selector of the Power System Stabilizer (PSS) input (PSSin). - * true = PSS input (Vs) added to error signal - * false = PSS input (Vs) added to voltage regulator output. - * Typical Value = true. - */ - IEC61970::Base::Domain::Boolean pssin; - /** - * Voltage regulator time constant (TA). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds ta; - /** - * Voltage regulator time constant (TB). Typical Value = 10. - */ - IEC61970::Base::Domain::Seconds tb; - /** - * Voltage regulator time constant (TB1). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tb1; - /** - * Voltage regulator time constant (TC). Typical Value = 1. - */ - IEC61970::Base::Domain::Seconds tc; - /** - * Voltage regulator time constant (TC1). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tc1; - /** - * Excitation control system stabilizer time constant (TF). Typical - * Value = 1. - */ - IEC61970::Base::Domain::Seconds tf; - /** - * Selector of the connection of the UEL input (UELin). Typical Value = - * ignoreUELsignal. - */ - IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST1AUELselectorKind uelin = IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST1AUELselectorKind::_undef; - /** - * Maximum voltage regulator output (VAMAX). Typical Value = 14.5. - */ - IEC61970::Base::Domain::PU vamax; - /** - * Minimum voltage regulator output (VAMIN). Typical Value = -14.5. - */ - IEC61970::Base::Domain::PU vamin; - /** - * Maximum voltage regulator input limit (VIMAX). Typical Value = 999. - */ - IEC61970::Base::Domain::PU vimax; - /** - * Minimum voltage regulator input limit (VIMIN). Typical Value = -999. - */ - IEC61970::Base::Domain::PU vimin; - /** - * Maximum voltage regulator outputs (VRMAX). Typical Value = 7.8. - */ - IEC61970::Base::Domain::PU vrmax; - /** - * Minimum voltage regulator outputs (VRMIN). Typical Value = -6.7. - */ - IEC61970::Base::Domain::PU vrmin; - - }; - - } - - } - - } - -} -#endif // EXCIEEEST1A_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEST1AUELselectorKind.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEST1AUELselectorKind.h deleted file mode 100644 index e6d214479..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEST1AUELselectorKind.h +++ /dev/null @@ -1,48 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcIEEEST1AUELselectorKind.h -// Implementation of the Class ExcIEEEST1AUELselectorKind -// Original author: civanov -/////////////////////////////////////////////////////////// - -#ifndef EXCIEEEST1AUELSELECTORKIND_H -#define EXCIEEEST1AUELSELECTORKIND_H - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace ExcitationSystemDynamics - { - /** - * Type of connection for the UEL input used in ExcIEEEST1A. - */ - enum class ExcIEEEST1AUELselectorKind - { - /** - * Ignore UEL signal. - */ - _undef = -1, ignoreUELsignal, - /** - * UEL input HV gate with voltage regulator output. - */ - inputHVgateVoltageOutput, - /** - * UEL input HV gate with error signal. - */ - inputHVgateErrorSignal, - /** - * UEL input added to error signal. - */ - inputAddedToErrorSignal - }; - - } - - } - - } - -} -#endif // EXCIEEEST1AUELSELECTORKIND_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEST2A.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEST2A.cpp deleted file mode 100644 index 0006d138b..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEST2A.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcIEEEST2A.cpp -// Implementation of the Class ExcIEEEST2A -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#include "ExcIEEEST2A.h" - -using IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST2A; - - -ExcIEEEST2A::ExcIEEEST2A(){ - -} - - - -ExcIEEEST2A::~ExcIEEEST2A(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEST2A.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEST2A.h deleted file mode 100644 index 790f5b4ff..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEST2A.h +++ /dev/null @@ -1,109 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcIEEEST2A.h -// Implementation of the Class ExcIEEEST2A -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#ifndef EXCIEEEST2A_H -#define EXCIEEEST2A_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace ExcitationSystemDynamics - { - /** - * The class represents IEEE Std 421.5-2005 type ST2A model. Some static systems - * utilize both current and voltage sources (generator terminal quantities) to - * comprise the power source. The regulator controls the exciter output through - * controlled saturation of the power transformer components. These compound- - * source rectifier excitation systems are designated Type ST2A and are - * represented by ExcIEEEST2A. - * - * Reference: IEEE Standard 421.5-2005 Section 7.2. - */ - class ExcIEEEST2A : public IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics - { - - public: - ExcIEEEST2A(); - virtual ~ExcIEEEST2A(); - /** - * Maximum field voltage (EFDMax). Typical Value = 99. - */ - IEC61970::Base::Domain::PU efdmax; - /** - * Voltage regulator gain (KA). Typical Value = 120. - */ - IEC61970::Base::Domain::PU ka; - /** - * Rectifier loading factor proportional to commutating reactance (KC). - * Typical Value = 1.82. - */ - IEC61970::Base::Domain::PU kc; - /** - * Exciter constant related to self-excited field (KE). Typical Value - * = 1. - */ - IEC61970::Base::Domain::PU ke; - /** - * Excitation control system stabilizer gains (KF). Typical Value = 0. - * 05. - */ - IEC61970::Base::Domain::PU kf; - /** - * Potential circuit gain coefficient (KI). Typical Value = 8. - */ - IEC61970::Base::Domain::PU ki; - /** - * Potential circuit gain coefficient (KP). Typical Value = 4.88. - */ - IEC61970::Base::Domain::PU kp; - /** - * Voltage regulator time constant (TA). Typical Value = 0.15. - */ - IEC61970::Base::Domain::Seconds ta; - /** - * Exciter time constant, integration rate associated with exciter control - * (TE). Typical Value = 0.5. - */ - IEC61970::Base::Domain::Seconds te; - /** - * Excitation control system stabilizer time constant (TF). Typical - * Value = 1. - */ - IEC61970::Base::Domain::Seconds tf; - /** - * UEL input (UELin). - * true = HV gate - * false = add to error signal. - * Typical Value = true. - */ - IEC61970::Base::Domain::Boolean uelin; - /** - * Maximum voltage regulator outputs (VRMAX). Typical Value = 1. - */ - IEC61970::Base::Domain::PU vrmax; - /** - * Minimum voltage regulator outputs (VRMIN). Typical Value = 0. - */ - IEC61970::Base::Domain::PU vrmin; - - }; - - } - - } - - } - -} -#endif // EXCIEEEST2A_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEST3A.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEST3A.cpp deleted file mode 100644 index 442fc09df..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEST3A.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcIEEEST3A.cpp -// Implementation of the Class ExcIEEEST3A -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#include "ExcIEEEST3A.h" - -using IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST3A; - - -ExcIEEEST3A::ExcIEEEST3A(){ - -} - - - -ExcIEEEST3A::~ExcIEEEST3A(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEST3A.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEST3A.h deleted file mode 100644 index 51f9ae786..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEST3A.h +++ /dev/null @@ -1,142 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcIEEEST3A.h -// Implementation of the Class ExcIEEEST3A -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#ifndef EXCIEEEST3A_H -#define EXCIEEEST3A_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Domain/AngleDegrees.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace ExcitationSystemDynamics - { - /** - * The class represents IEEE Std 421.5-2005 type ST3A model. Some static systems - * utilize a field voltage control loop to linearize the exciter control - * characteristic. This also makes the output independent of supply source - * variations until supply limitations are reached. These systems utilize a - * variety of controlled-rectifier designs: full thyristor complements or hybrid - * bridges - * in either series or shunt configurations. The power source may consist of only - * a potential source, either fed from the machine terminals or from internal - * windings. Some designs may have compound power sources utilizing both machine - * potential and current. These power sources are represented as phasor - * combinations of machine terminal current and voltage and are accommodated by - * suitable parameters in model Type ST3A which is represented by ExcIEEEST3A. - * - * - * Reference: IEEE Standard 421.5-2005 Section 7.3. - */ - class ExcIEEEST3A : public IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics - { - - public: - ExcIEEEST3A(); - virtual ~ExcIEEEST3A(); - /** - * Voltage regulator gain (KA). This is parameter K in the IEEE Std. - * Typical Value = 200. - */ - IEC61970::Base::Domain::PU ka; - /** - * Rectifier loading factor proportional to commutating reactance (KC). - * Typical Value = 0.2. - */ - IEC61970::Base::Domain::PU kc; - /** - * Feedback gain constant of the inner loop field regulator (KG). - * Typical Value = 1. - */ - IEC61970::Base::Domain::PU kg; - /** - * Potential circuit gain coefficient (KI). Typical Value = 0. - */ - IEC61970::Base::Domain::PU ki; - /** - * Forward gain constant of the inner loop field regulator (KM). - * Typical Value = 7.93. - */ - IEC61970::Base::Domain::PU km; - /** - * Potential circuit gain coefficient (KP). Typical Value = 6.15. - */ - IEC61970::Base::Domain::PU kp; - /** - * Voltage regulator time constant (TA). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds ta; - /** - * Voltage regulator time constant (TB). Typical Value = 10. - */ - IEC61970::Base::Domain::Seconds tb; - /** - * Voltage regulator time constant (TC). Typical Value = 1. - */ - IEC61970::Base::Domain::Seconds tc; - /** - * Potential circuit phase angle (thetap). Typical Value = 0. - */ - IEC61970::Base::Domain::AngleDegrees thetap; - /** - * Forward time constant of inner loop field regulator (TM). Typical - * Value = 0.4. - */ - IEC61970::Base::Domain::Seconds tm; - /** - * Maximum excitation voltage (VBMax). Typical Value = 6.9. - */ - IEC61970::Base::Domain::PU vbmax; - /** - * Maximum inner loop feedback voltage (VGMax). Typical Value = 5.8. - */ - IEC61970::Base::Domain::PU vgmax; - /** - * Maximum voltage regulator input limit (VIMAX). Typical Value = 0.2. - */ - IEC61970::Base::Domain::PU vimax; - /** - * Minimum voltage regulator input limit (VIMIN). Typical Value = -0.2. - */ - IEC61970::Base::Domain::PU vimin; - /** - * Maximum inner loop output (VMMax). Typical Value = 1. - */ - IEC61970::Base::Domain::PU vmmax; - /** - * Minimum inner loop output (VMMin). Typical Value = 0. - */ - IEC61970::Base::Domain::PU vmmin; - /** - * Maximum voltage regulator output (VRMAX). Typical Value = 10. - */ - IEC61970::Base::Domain::PU vrmax; - /** - * Minimum voltage regulator output (VRMIN). Typical Value = -10. - */ - IEC61970::Base::Domain::PU vrmin; - /** - * Reactance associated with potential source (XL). Typical Value = 0. - * 081. - */ - IEC61970::Base::Domain::PU xl; - - }; - - } - - } - - } - -} -#endif // EXCIEEEST3A_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEST4B.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEST4B.cpp deleted file mode 100644 index 7ee40b0ef..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEST4B.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcIEEEST4B.cpp -// Implementation of the Class ExcIEEEST4B -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#include "ExcIEEEST4B.h" - -using IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST4B; - - -ExcIEEEST4B::ExcIEEEST4B(){ - -} - - - -ExcIEEEST4B::~ExcIEEEST4B(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEST4B.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEST4B.h deleted file mode 100644 index 3f4086510..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEST4B.h +++ /dev/null @@ -1,116 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcIEEEST4B.h -// Implementation of the Class ExcIEEEST4B -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#ifndef EXCIEEEST4B_H -#define EXCIEEEST4B_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Domain/AngleDegrees.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace ExcitationSystemDynamics - { - /** - * The class represents IEEE Std 421.5-2005 type ST4B model. This model is a - * variation of the Type ST3A model, with a proportional plus integral (PI) - * regulator block replacing the lag-lead regulator characteristic that is in the - * ST3A model. Both potential and compound source rectifier excitation systems are - * modeled. The PI regulator blocks have non-windup limits that are represented. - * The voltage regulator of this model is typically implemented digitally. - * - * Reference: IEEE Standard 421.5-2005 Section 7.4. - */ - class ExcIEEEST4B : public IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics - { - - public: - ExcIEEEST4B(); - virtual ~ExcIEEEST4B(); - /** - * Rectifier loading factor proportional to commutating reactance (KC). - * Typical Value = 0.113. - */ - IEC61970::Base::Domain::PU kc; - /** - * Feedback gain constant of the inner loop field regulator (KG). - * Typical Value = 0. - */ - IEC61970::Base::Domain::PU kg; - /** - * Potential circuit gain coefficient (KI). Typical Value = 0. - */ - IEC61970::Base::Domain::PU ki; - /** - * Voltage regulator integral gain output (KIM). Typical Value = 0. - */ - IEC61970::Base::Domain::PU kim; - /** - * Voltage regulator integral gain (KIR). Typical Value = 10.75. - */ - IEC61970::Base::Domain::PU kir; - /** - * Potential circuit gain coefficient (KP). Typical Value = 9.3. - */ - IEC61970::Base::Domain::PU kp; - /** - * Voltage regulator proportional gain output (KPM). Typical Value = 1. - */ - IEC61970::Base::Domain::PU kpm; - /** - * Voltage regulator proportional gain (KPR). Typical Value = 10.75. - */ - IEC61970::Base::Domain::PU kpr; - /** - * Voltage regulator time constant (TA). Typical Value = 0.02. - */ - IEC61970::Base::Domain::Seconds ta; - /** - * Potential circuit phase angle (thetap). Typical Value = 0. - */ - IEC61970::Base::Domain::AngleDegrees thetap; - /** - * Maximum excitation voltage (VBMax). Typical Value = 11.63. - */ - IEC61970::Base::Domain::PU vbmax; - /** - * Maximum inner loop output (VMMax). Typical Value = 99. - */ - IEC61970::Base::Domain::PU vmmax; - /** - * Minimum inner loop output (VMMin). Typical Value = -99. - */ - IEC61970::Base::Domain::PU vmmin; - /** - * Maximum voltage regulator output (VRMAX). Typical Value = 1. - */ - IEC61970::Base::Domain::PU vrmax; - /** - * Minimum voltage regulator output (VRMIN). Typical Value = -0.87. - */ - IEC61970::Base::Domain::PU vrmin; - /** - * Reactance associated with potential source (XL). Typical Value = 0. - * 124. - */ - IEC61970::Base::Domain::PU xl; - - }; - - } - - } - - } - -} -#endif // EXCIEEEST4B_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEST5B.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEST5B.cpp deleted file mode 100644 index 9c101f2e5..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEST5B.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcIEEEST5B.cpp -// Implementation of the Class ExcIEEEST5B -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#include "ExcIEEEST5B.h" - -using IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST5B; - - -ExcIEEEST5B::ExcIEEEST5B(){ - -} - - - -ExcIEEEST5B::~ExcIEEEST5B(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEST5B.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEST5B.h deleted file mode 100644 index 79c0ef816..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEST5B.h +++ /dev/null @@ -1,117 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcIEEEST5B.h -// Implementation of the Class ExcIEEEST5B -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#ifndef EXCIEEEST5B_H -#define EXCIEEEST5B_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace ExcitationSystemDynamics - { - /** - * The class represents IEEE Std 421.5-2005 type ST5B model. The Type ST5B - * excitation system is a variation of the Type ST1A model, with alternative - * overexcitation and underexcitation inputs and additional limits. - * - * Reference: IEEE Standard 421.5-2005 Section 7.5. - * - * Note: the block diagram in the IEEE 421.5 standard has input signal Vc and does - * not indicate the summation point with Vref. The implementation of the - * ExcIEEEST5B shall consider summation point with Vref. - */ - class ExcIEEEST5B : public IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics - { - - public: - ExcIEEEST5B(); - virtual ~ExcIEEEST5B(); - /** - * Rectifier regulation factor (KC). Typical Value = 0.004. - */ - IEC61970::Base::Domain::PU kc; - /** - * Regulator gain (KR). Typical Value = 200. - */ - IEC61970::Base::Domain::PU kr; - /** - * Firing circuit time constant (T1). Typical Value = 0.004. - */ - IEC61970::Base::Domain::Seconds t1; - /** - * Regulator lag time constant (TB1). Typical Value = 6. - */ - IEC61970::Base::Domain::Seconds tb1; - /** - * Regulator lag time constant (TB2). Typical Value = 0.01. - */ - IEC61970::Base::Domain::Seconds tb2; - /** - * Regulator lead time constant (TC1). Typical Value = 0.8. - */ - IEC61970::Base::Domain::Seconds tc1; - /** - * Regulator lead time constant (TC2). Typical Value = 0.08. - */ - IEC61970::Base::Domain::Seconds tc2; - /** - * OEL lag time constant (TOB1). Typical Value = 2. - */ - IEC61970::Base::Domain::Seconds tob1; - /** - * OEL lag time constant (TOB2). Typical Value = 0.08. - */ - IEC61970::Base::Domain::Seconds tob2; - /** - * OEL lead time constant (TOC1). Typical Value = 0.1. - */ - IEC61970::Base::Domain::Seconds toc1; - /** - * OEL lead time constant (TOC2). Typical Value = 0.08. - */ - IEC61970::Base::Domain::Seconds toc2; - /** - * UEL lag time constant (TUB1). Typical Value = 10. - */ - IEC61970::Base::Domain::Seconds tub1; - /** - * UEL lag time constant (TUB2). Typical Value = 0.05. - */ - IEC61970::Base::Domain::Seconds tub2; - /** - * UEL lead time constant (TUC1). Typical Value = 2. - */ - IEC61970::Base::Domain::Seconds tuc1; - /** - * UEL lead time constant (TUC2). Typical Value = 0.1. - */ - IEC61970::Base::Domain::Seconds tuc2; - /** - * Maximum voltage regulator output (VRMAX). Typical Value = 5. - */ - IEC61970::Base::Domain::PU vrmax; - /** - * Minimum voltage regulator output (VRMIN). Typical Value = -4. - */ - IEC61970::Base::Domain::PU vrmin; - - }; - - } - - } - - } - -} -#endif // EXCIEEEST5B_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEST6B.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEST6B.cpp deleted file mode 100644 index b739d38ec..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEST6B.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcIEEEST6B.cpp -// Implementation of the Class ExcIEEEST6B -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#include "ExcIEEEST6B.h" - -using IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST6B; - - -ExcIEEEST6B::ExcIEEEST6B(){ - -} - - - -ExcIEEEST6B::~ExcIEEEST6B(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEST6B.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEST6B.h deleted file mode 100644 index cf5d1bf8e..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEST6B.h +++ /dev/null @@ -1,108 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcIEEEST6B.h -// Implementation of the Class ExcIEEEST6B -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#ifndef EXCIEEEST6B_H -#define EXCIEEEST6B_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcST6BOELselectorKind.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace ExcitationSystemDynamics - { - /** - * The class represents IEEE Std 421.5-2005 type ST6B model. This model consists - * of a PI voltage regulator with an inner loop field voltage regulator and pre- - * control. The field voltage regulator implements a proportional control. The pre- - * control and the delay in the feedback circuit increase the dynamic response. - * - * Reference: IEEE Standard 421.5-2005 Section 7.6. - */ - class ExcIEEEST6B : public IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics - { - - public: - ExcIEEEST6B(); - virtual ~ExcIEEEST6B(); - /** - * Exciter output current limit reference (ILR). Typical Value = 4.164. - */ - IEC61970::Base::Domain::PU ilr; - /** - * Exciter output current limit adjustment (KCI). Typical Value = 1. - * 0577. - */ - IEC61970::Base::Domain::PU kci; - /** - * Pre-control gain constant of the inner loop field regulator (KFF). - * Typical Value = 1. - */ - IEC61970::Base::Domain::PU kff; - /** - * Feedback gain constant of the inner loop field regulator (KG). - * Typical Value = 1. - */ - IEC61970::Base::Domain::PU kg; - /** - * Voltage regulator integral gain (KIA). Typical Value = 45.094. - */ - IEC61970::Base::Domain::PU kia; - /** - * Exciter output current limiter gain (KLR). Typical Value = 17.33. - */ - IEC61970::Base::Domain::PU klr; - /** - * Forward gain constant of the inner loop field regulator (KM). - * Typical Value = 1. - */ - IEC61970::Base::Domain::PU km; - /** - * Voltage regulator proportional gain (KPA). Typical Value = 18.038. - */ - IEC61970::Base::Domain::PU kpa; - /** - * OEL input selector (OELin). Typical Value = noOELinput. - */ - IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST6BOELselectorKind oelin = IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST6BOELselectorKind::_undef; - /** - * Feedback time constant of inner loop field voltage regulator (TG). - * Typical Value = 0.02. - */ - IEC61970::Base::Domain::Seconds tg; - /** - * Maximum voltage regulator output (VAMAX). Typical Value = 4.81. - */ - IEC61970::Base::Domain::PU vamax; - /** - * Minimum voltage regulator output (VAMIN). Typical Value = -3.85. - */ - IEC61970::Base::Domain::PU vamin; - /** - * Maximum voltage regulator output (VRMAX). Typical Value = 4.81. - */ - IEC61970::Base::Domain::PU vrmax; - /** - * Minimum voltage regulator output (VRMIN). Typical Value = -3.85. - */ - IEC61970::Base::Domain::PU vrmin; - - }; - - } - - } - - } - -} -#endif // EXCIEEEST6B_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEST7B.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEST7B.cpp deleted file mode 100644 index 27e62144a..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEST7B.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcIEEEST7B.cpp -// Implementation of the Class ExcIEEEST7B -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#include "ExcIEEEST7B.h" - -using IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST7B; - - -ExcIEEEST7B::ExcIEEEST7B(){ - -} - - - -ExcIEEEST7B::~ExcIEEEST7B(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEST7B.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEST7B.h deleted file mode 100644 index ee434da92..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcIEEEST7B.h +++ /dev/null @@ -1,120 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcIEEEST7B.h -// Implementation of the Class ExcIEEEST7B -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#ifndef EXCIEEEST7B_H -#define EXCIEEEST7B_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcST7BOELselectorKind.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcST7BUELselectorKind.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace ExcitationSystemDynamics - { - /** - * The class represents IEEE Std 421.5-2005 type ST7B model. This model is - * representative of static potential-source excitation systems. In this system, - * the AVR consists of a PI voltage regulator. A phase lead-lag filter in series - * allows introduction of a derivative function, typically used with brushless - * excitation systems. In that case, the regulator is of the PID type. In addition, - * the terminal voltage channel includes a phase lead-lag filter. The AVR - * includes the appropriate inputs on its reference for overexcitation limiter - * (OEL1), underexcitation limiter (UEL), stator current limiter (SCL), and - * current compensator (DROOP). All these limitations, when they work at voltage - * reference level, keep the PSS (VS signal from Type PSS1A, PSS2A, or PSS2B) in - * operation. However, the UEL limitation can also be transferred to the high - * value (HV) gate acting on the output signal. In addition, the output signal - * passes through a low value (LV) gate for a ceiling overexcitation limiter - * (OEL2). - * - * Reference: IEEE Standard 421.5-2005 Section 7.7. - */ - class ExcIEEEST7B : public IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics - { - - public: - ExcIEEEST7B(); - virtual ~ExcIEEEST7B(); - /** - * High-value gate feedback gain (KH). Typical Value 1. - */ - IEC61970::Base::Domain::PU kh; - /** - * Voltage regulator integral gain (KIA). Typical Value = 1. - */ - IEC61970::Base::Domain::PU kia; - /** - * Low-value gate feedback gain (KL). Typical Value 1. - */ - IEC61970::Base::Domain::PU kl; - /** - * Voltage regulator proportional gain (KPA). Typical Value = 40. - */ - IEC61970::Base::Domain::PU kpa; - /** - * OEL input selector (OELin). Typical Value = noOELinput. - */ - IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST7BOELselectorKind oelin = IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST7BOELselectorKind::_undef; - /** - * Regulator lag time constant (TB). Typical Value 1. - */ - IEC61970::Base::Domain::Seconds tb; - /** - * Regulator lead time constant (TC). Typical Value 1. - */ - IEC61970::Base::Domain::Seconds tc; - /** - * Excitation control system stabilizer time constant (TF). Typical - * Value 1. - */ - IEC61970::Base::Domain::Seconds tf; - /** - * Feedback time constant of inner loop field voltage regulator (TG). - * Typical Value 1. - */ - IEC61970::Base::Domain::Seconds tg; - /** - * Feedback time constant (TIA). Typical Value = 3. - */ - IEC61970::Base::Domain::Seconds tia; - /** - * UEL input selector (UELin). Typical Value = noUELinput. - */ - IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST7BUELselectorKind uelin = IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST7BUELselectorKind::_undef; - /** - * Maximum voltage reference signal (VMAX). Typical Value = 1.1. - */ - IEC61970::Base::Domain::PU vmax; - /** - * Minimum voltage reference signal (VMIN). Typical Value = 0.9. - */ - IEC61970::Base::Domain::PU vmin; - /** - * Maximum voltage regulator output (VRMAX). Typical Value = 5. - */ - IEC61970::Base::Domain::PU vrmax; - /** - * Minimum voltage regulator output (VRMIN). Typical Value = -4.5. - */ - IEC61970::Base::Domain::PU vrmin; - - }; - - } - - } - - } - -} -#endif // EXCIEEEST7B_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcOEX3T.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcOEX3T.cpp deleted file mode 100644 index c79eaab51..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcOEX3T.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcOEX3T.cpp -// Implementation of the Class ExcOEX3T -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#include "ExcOEX3T.h" - -using IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcOEX3T; - - -ExcOEX3T::ExcOEX3T(){ - -} - - - -ExcOEX3T::~ExcOEX3T(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcOEX3T.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcOEX3T.h deleted file mode 100644 index 2bd1d7937..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcOEX3T.h +++ /dev/null @@ -1,118 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcOEX3T.h -// Implementation of the Class ExcOEX3T -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#ifndef EXCOEX3T_H -#define EXCOEX3T_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace ExcitationSystemDynamics - { - /** - * Modified IEEE Type ST1 Excitation System with semi-continuous and acting - * terminal voltage limiter. - */ - class ExcOEX3T : public IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics - { - - public: - ExcOEX3T(); - virtual ~ExcOEX3T(); - /** - * Saturation parameter (E1). - */ - IEC61970::Base::Domain::PU e1; - /** - * Saturation parameter (E2). - */ - IEC61970::Base::Domain::PU e2; - /** - * Gain (KA). - */ - IEC61970::Base::Domain::PU ka; - /** - * Gain (KC). - */ - IEC61970::Base::Domain::PU kc; - /** - * Gain (KD). - */ - IEC61970::Base::Domain::PU kd; - /** - * Gain (KE). - */ - IEC61970::Base::Domain::PU ke; - /** - * Gain (KF). - */ - IEC61970::Base::Domain::PU kf; - /** - * Saturation parameter (SE(E1)). - */ - IEC61970::Base::Domain::PU see1; - /** - * Saturation parameter (SE(E2)). - */ - IEC61970::Base::Domain::PU see2; - /** - * Time constant (T1). - */ - IEC61970::Base::Domain::Seconds t1; - /** - * Time constant (T2). - */ - IEC61970::Base::Domain::Seconds t2; - /** - * Time constant (T3). - */ - IEC61970::Base::Domain::Seconds t3; - /** - * Time constant (T4). - */ - IEC61970::Base::Domain::Seconds t4; - /** - * Time constant (T5). - */ - IEC61970::Base::Domain::Seconds t5; - /** - * Time constant (T6). - */ - IEC61970::Base::Domain::Seconds t6; - /** - * Time constant (TE). - */ - IEC61970::Base::Domain::Seconds te; - /** - * Time constant (TF). - */ - IEC61970::Base::Domain::Seconds tf; - /** - * Limiter (VRMAX). - */ - IEC61970::Base::Domain::PU vrmax; - /** - * Limiter (VRMIN). - */ - IEC61970::Base::Domain::PU vrmin; - - }; - - } - - } - - } - -} -#endif // EXCOEX3T_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcPIC.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcPIC.cpp deleted file mode 100644 index 30c473aaa..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcPIC.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcPIC.cpp -// Implementation of the Class ExcPIC -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "ExcPIC.h" - -using IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcPIC; - - -ExcPIC::ExcPIC(){ - -} - - - -ExcPIC::~ExcPIC(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcPIC.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcPIC.h deleted file mode 100644 index 053013abf..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcPIC.h +++ /dev/null @@ -1,135 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcPIC.h -// Implementation of the Class ExcPIC -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef EXCPIC_H -#define EXCPIC_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace ExcitationSystemDynamics - { - /** - * Proportional/Integral Regulator Excitation System Model. This model can be - * used to represent excitation systems with a proportional-integral (PI) voltage - * regulator controller. - */ - class ExcPIC : public IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics - { - - public: - ExcPIC(); - virtual ~ExcPIC(); - /** - * Field voltage value 1 (E1). Typical Value = 0. - */ - IEC61970::Base::Domain::PU e1; - /** - * Field voltage value 2 (E2). Typical Value = 0. - */ - IEC61970::Base::Domain::PU e2; - /** - * Exciter maximum limit (Efdmax). Typical Value = 8. - */ - IEC61970::Base::Domain::PU efdmax; - /** - * Exciter minimum limit (Efdmin). Typical Value = -0.87. - */ - IEC61970::Base::Domain::PU efdmin; - /** - * PI controller gain (Ka). Typical Value = 3.15. - */ - IEC61970::Base::Domain::PU ka; - /** - * Exciter regulation factor (Kc). Typical Value = 0.08. - */ - IEC61970::Base::Domain::PU kc; - /** - * Exciter constant (Ke). Typical Value = 0. - */ - IEC61970::Base::Domain::PU ke; - /** - * Rate feedback gain (Kf). Typical Value = 0. - */ - IEC61970::Base::Domain::PU kf; - /** - * Current source gain (Ki). Typical Value = 0. - */ - IEC61970::Base::Domain::PU ki; - /** - * Potential source gain (Kp). Typical Value = 6.5. - */ - IEC61970::Base::Domain::PU kp; - /** - * Saturation factor at E1 (Se1). Typical Value = 0. - */ - IEC61970::Base::Domain::PU se1; - /** - * Saturation factor at E2 (Se2). Typical Value = 0. - */ - IEC61970::Base::Domain::PU se2; - /** - * PI controller time constant (Ta1). Typical Value = 1. - */ - IEC61970::Base::Domain::Seconds ta1; - /** - * Voltage regulator time constant (Ta2). Typical Value = 0.01. - */ - IEC61970::Base::Domain::Seconds ta2; - /** - * Lead time constant (Ta3). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds ta3; - /** - * Lag time constant (Ta4). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds ta4; - /** - * Exciter time constant (Te). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds te; - /** - * Rate feedback time constant (Tf1). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tf1; - /** - * Rate feedback lag time constant (Tf2). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tf2; - /** - * PI maximum limit (Vr1). Typical Value = 1. - */ - IEC61970::Base::Domain::PU vr1; - /** - * PI minimum limit (Vr2). Typical Value = -0.87. - */ - IEC61970::Base::Domain::PU vr2; - /** - * Voltage regulator maximum limit (Vrmax). Typical Value = 1. - */ - IEC61970::Base::Domain::PU vrmax; - /** - * Voltage regulator minimum limit (Vrmin). Typical Value = -0.87. - */ - IEC61970::Base::Domain::PU vrmin; - - }; - - } - - } - - } - -} -#endif // EXCPIC_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcREXS.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcREXS.cpp deleted file mode 100644 index db94f1449..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcREXS.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcREXS.cpp -// Implementation of the Class ExcREXS -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "ExcREXS.h" - -using IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcREXS; - - -ExcREXS::ExcREXS(){ - -} - - - -ExcREXS::~ExcREXS(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcREXS.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcREXS.h deleted file mode 100644 index 49639b00b..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcREXS.h +++ /dev/null @@ -1,190 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcREXS.h -// Implementation of the Class ExcREXS -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef EXCREXS_H -#define EXCREXS_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcREXSFeedbackSignalKind.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace ExcitationSystemDynamics - { - /** - * General Purpose Rotating Excitation System Model. This model can be used to - * represent a wide range of excitation systems whose DC power source is an AC or - * DC generator. It encompasses IEEE type AC1, AC2, DC1, and DC2 excitation system - * models. - */ - class ExcREXS : public IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics - { - - public: - ExcREXS(); - virtual ~ExcREXS(); - /** - * Field voltage value 1 (E1). Typical Value = 3. - */ - IEC61970::Base::Domain::PU e1; - /** - * Field voltage value 2 (E2). Typical Value = 4. - */ - IEC61970::Base::Domain::PU e2; - /** - * Rate feedback signal flag (Fbf). Typical Value = fieldCurrent. - */ - IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcREXSFeedbackSignalKind fbf = IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcREXSFeedbackSignalKind::_undef; - /** - * Limit type flag (Flimf). Typical Value = 0. - */ - IEC61970::Base::Domain::PU flimf; - /** - * Rectifier regulation factor (Kc). Typical Value = 0.05. - */ - IEC61970::Base::Domain::PU kc; - /** - * Exciter regulation factor (Kd). Typical Value = 2. - */ - IEC61970::Base::Domain::PU kd; - /** - * Exciter field proportional constant (Ke). Typical Value = 1. - */ - IEC61970::Base::Domain::PU ke; - /** - * Field voltage feedback gain (Kefd). Typical Value = 0. - */ - IEC61970::Base::Domain::PU kefd; - /** - * Rate feedback gain (Kf). Typical Value = 0.05. - */ - IEC61970::Base::Domain::Seconds kf; - /** - * Field voltage controller feedback gain (Kh). Typical Value = 0. - */ - IEC61970::Base::Domain::PU kh; - /** - * Field Current Regulator Integral Gain (Kii). Typical Value = 0. - */ - IEC61970::Base::Domain::PU kii; - /** - * Field Current Regulator Proportional Gain (Kip). Typical Value = 1. - */ - IEC61970::Base::Domain::PU kip; - /** - * Coefficient to allow different usage of the model-speed coefficient (Ks). - * Typical Value = 0. - */ - IEC61970::Base::Domain::PU ks; - /** - * Voltage Regulator Integral Gain (Kvi). Typical Value = 0. - */ - IEC61970::Base::Domain::PU kvi; - /** - * Voltage Regulator Proportional Gain (Kvp). Typical Value = 2800. - */ - IEC61970::Base::Domain::PU kvp; - /** - * V/Hz limiter gain (Kvphz). Typical Value = 0. - */ - IEC61970::Base::Domain::PU kvphz; - /** - * Pickup speed of V/Hz limiter (Nvphz). Typical Value = 0. - */ - IEC61970::Base::Domain::PU nvphz; - /** - * Saturation factor at E1 (Se1). Typical Value = 0.0001. - */ - IEC61970::Base::Domain::PU se1; - /** - * Saturation factor at E2 (Se2). Typical Value = 0.001. - */ - IEC61970::Base::Domain::PU se2; - /** - * Voltage Regulator time constant (Ta). Typical Value = 0.01. - */ - IEC61970::Base::Domain::Seconds ta; - /** - * Lag time constant (Tb1). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tb1; - /** - * Lag time constant (Tb2). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tb2; - /** - * Lead time constant (Tc1). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tc1; - /** - * Lead time constant (Tc2). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tc2; - /** - * Exciter field time constant (Te). Typical Value = 1.2. - */ - IEC61970::Base::Domain::Seconds te; - /** - * Rate feedback time constant (Tf). Typical Value = 1. - */ - IEC61970::Base::Domain::Seconds tf; - /** - * Feedback lead time constant (Tf1). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tf1; - /** - * Feedback lag time constant (Tf2). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tf2; - /** - * Field current Bridge time constant (Tp). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tp; - /** - * Maximum compounding voltage (Vcmax). Typical Value = 0. - */ - IEC61970::Base::Domain::PU vcmax; - /** - * Maximum Exciter Field Current (Vfmax). Typical Value = 47. - */ - IEC61970::Base::Domain::PU vfmax; - /** - * Minimum Exciter Field Current (Vfmin). Typical Value = -20. - */ - IEC61970::Base::Domain::PU vfmin; - /** - * Voltage Regulator Input Limit (Vimax). Typical Value = 0.1. - */ - IEC61970::Base::Domain::PU vimax; - /** - * Maximum controller output (Vrmax). Typical Value = 47. - */ - IEC61970::Base::Domain::PU vrmax; - /** - * Minimum controller output (Vrmin). Typical Value = -20. - */ - IEC61970::Base::Domain::PU vrmin; - /** - * Exciter compounding reactance (Xc). Typical Value = 0. - */ - IEC61970::Base::Domain::PU xc; - - }; - - } - - } - - } - -} -#endif // EXCREXS_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcREXSFeedbackSignalKind.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcREXSFeedbackSignalKind.h deleted file mode 100644 index a4cd51cc6..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcREXSFeedbackSignalKind.h +++ /dev/null @@ -1,45 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcREXSFeedbackSignalKind.h -// Implementation of the Class ExcREXSFeedbackSignalKind -// Original author: civanov -/////////////////////////////////////////////////////////// - -#ifndef EXCREXSFEEDBACKSIGNALKIND_H -#define EXCREXSFEEDBACKSIGNALKIND_H - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace ExcitationSystemDynamics - { - /** - * Type of rate feedback signals. - */ - enum class ExcREXSFeedbackSignalKind - { - /** - * The voltage regulator output voltage is used. It is the same as exciter field - * voltage. - */ - _undef = -1, fieldVoltage, - /** - * The exciter field current is used. - */ - fieldCurrent, - /** - * The output voltage of the exciter is used. - */ - outputVoltage - }; - - } - - } - - } - -} -#endif // EXCREXSFEEDBACKSIGNALKIND_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcSCRX.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcSCRX.cpp deleted file mode 100644 index d1f38bce5..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcSCRX.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcSCRX.cpp -// Implementation of the Class ExcSCRX -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "ExcSCRX.h" - -using IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcSCRX; - - -ExcSCRX::ExcSCRX(){ - -} - - - -ExcSCRX::~ExcSCRX(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcSCRX.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcSCRX.h deleted file mode 100644 index 1e8724259..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcSCRX.h +++ /dev/null @@ -1,81 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcSCRX.h -// Implementation of the Class ExcSCRX -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef EXCSCRX_H -#define EXCSCRX_H - -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace ExcitationSystemDynamics - { - /** - * Simple excitation system model representing generic characteristics of many - * excitation systems; intended for use where negative field current may be a - * problem. - */ - class ExcSCRX : public IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics - { - - public: - ExcSCRX(); - virtual ~ExcSCRX(); - /** - * Power source switch (Cswitch). - * true = fixed voltage of 1.0 PU - * false = generator terminal voltage. - */ - IEC61970::Base::Domain::Boolean cswitch; - /** - * Maximum field voltage output (Emax). Typical Value = 5. - */ - IEC61970::Base::Domain::PU emax; - /** - * Minimum field voltage output (Emin). Typical Value = 0. - */ - IEC61970::Base::Domain::PU emin; - /** - * Gain (K) (>0). Typical Value = 200. - */ - IEC61970::Base::Domain::PU k; - /** - * Rc/Rfd - ratio of field discharge resistance to field winding resistance - * (RcRfd). Typical Value = 0. - */ - IEC61970::Base::Domain::Float rcrfd; - /** - * Ta/Tb - gain reduction ratio of lag-lead element (TaTb). The parameter Ta is - * not defined explicitly. Typical Value = 0.1. - */ - IEC61970::Base::Domain::Float tatb; - /** - * Denominator time constant of lag-lead block (Tb). Typical Value = 10. - */ - IEC61970::Base::Domain::Seconds tb; - /** - * Time constant of gain block (Te) (>0). Typical Value = 0.02. - */ - IEC61970::Base::Domain::Seconds te; - - }; - - } - - } - - } - -} -#endif // EXCSCRX_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcSEXS.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcSEXS.cpp deleted file mode 100644 index 748571fda..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcSEXS.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcSEXS.cpp -// Implementation of the Class ExcSEXS -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "ExcSEXS.h" - -using IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcSEXS; - - -ExcSEXS::ExcSEXS(){ - -} - - - -ExcSEXS::~ExcSEXS(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcSEXS.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcSEXS.h deleted file mode 100644 index adbf6d38b..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcSEXS.h +++ /dev/null @@ -1,82 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcSEXS.h -// Implementation of the Class ExcSEXS -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef EXCSEXS_H -#define EXCSEXS_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace ExcitationSystemDynamics - { - /** - * Simplified Excitation System Model. - */ - class ExcSEXS : public IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics - { - - public: - ExcSEXS(); - virtual ~ExcSEXS(); - /** - * Field voltage clipping maximum limit (Efdmax). Typical Value = 5. - */ - IEC61970::Base::Domain::PU efdmax; - /** - * Field voltage clipping minimum limit (Efdmin). Typical Value = -5. - */ - IEC61970::Base::Domain::PU efdmin; - /** - * Maximum field voltage output (Emax). Typical Value = 5. - */ - IEC61970::Base::Domain::PU emax; - /** - * Minimum field voltage output (Emin). Typical Value = -5. - */ - IEC61970::Base::Domain::PU emin; - /** - * Gain (K) (>0). Typical Value = 100. - */ - IEC61970::Base::Domain::PU k; - /** - * PI controller gain (Kc). Typical Value = 0.08. - */ - IEC61970::Base::Domain::PU kc; - /** - * Ta/Tb - gain reduction ratio of lag-lead element (TaTb). Typical Value = 0.1. - */ - IEC61970::Base::Domain::Float tatb; - /** - * Denominator time constant of lag-lead block (Tb). Typical Value = 10. - */ - IEC61970::Base::Domain::Seconds tb; - /** - * PI controller phase lead time constant (Tc). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tc; - /** - * Time constant of gain block (Te). Typical Value = 0.05. - */ - IEC61970::Base::Domain::Seconds te; - - }; - - } - - } - - } - -} -#endif // EXCSEXS_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcSK.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcSK.cpp deleted file mode 100644 index 0f0a8f3d8..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcSK.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcSK.cpp -// Implementation of the Class ExcSK -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "ExcSK.h" - -using IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcSK; - - -ExcSK::ExcSK(){ - -} - - - -ExcSK::~ExcSK(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcSK.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcSK.h deleted file mode 100644 index 1b0868a3b..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcSK.h +++ /dev/null @@ -1,183 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcSK.h -// Implementation of the Class ExcSK -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef EXCSK_H -#define EXCSK_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Domain/ApparentPower.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace ExcitationSystemDynamics - { - /** - * Slovakian Excitation System Model. UEL and secondary voltage control are - * included in this model. When this model is used, there cannot be a separate - * underexcitation limiter or VAr controller model. - */ - class ExcSK : public IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics - { - - public: - ExcSK(); - virtual ~ExcSK(); - /** - * Field voltage clipping limit (Efdmax). - */ - IEC61970::Base::Domain::PU efdmax; - /** - * Field voltage clipping limit (Efdmin). - */ - IEC61970::Base::Domain::PU efdmin; - /** - * Maximum field voltage output (Emax). Typical Value = 20. - */ - IEC61970::Base::Domain::PU emax; - /** - * Minimum field voltage output (Emin). Typical Value = -20. - */ - IEC61970::Base::Domain::PU emin; - /** - * Gain (K). Typical Value = 1. - */ - IEC61970::Base::Domain::PU k; - /** - * Parameter of underexcitation limit (K1). Typical Value = 0.1364. - */ - IEC61970::Base::Domain::PU k1; - /** - * Parameter of underexcitation limit (K2). Typical Value = -0.3861. - */ - IEC61970::Base::Domain::PU k2; - /** - * PI controller gain (Kc). Typical Value = 70. - */ - IEC61970::Base::Domain::PU kc; - /** - * Rectifier regulation factor (Kce). Typical Value = 0. - */ - IEC61970::Base::Domain::PU kce; - /** - * Exciter internal reactance (Kd). Typical Value = 0. - */ - IEC61970::Base::Domain::PU kd; - /** - * P controller gain (Kgob). Typical Value = 10. - */ - IEC61970::Base::Domain::PU kgob; - /** - * PI controller gain (Kp). Typical Value = 1. - */ - IEC61970::Base::Domain::PU kp; - /** - * PI controller gain of integral component (Kqi). Typical Value = 0. - */ - IEC61970::Base::Domain::PU kqi; - /** - * Rate of rise of the reactive power (Kqob). - */ - IEC61970::Base::Domain::PU kqob; - /** - * PI controller gain (Kqp). Typical Value = 0. - */ - IEC61970::Base::Domain::PU kqp; - /** - * Dead band of reactive power (nq). Determines the range of sensitivity. - * Typical Value = 0.001. - */ - IEC61970::Base::Domain::PU nq; - /** - * Secondary voltage control state (Qc_on_off). - * true = secondary voltage control is ON - * false = secondary voltage control is OFF. - * Typical Value = false. - */ - IEC61970::Base::Domain::Boolean qconoff; - /** - * Desired value (setpoint) of reactive power, manual setting (Qz). - */ - IEC61970::Base::Domain::PU qz; - /** - * Selector to apply automatic calculation in secondary controller model. - * true = automatic calculation is activated - * false = manual set is active; the use of desired value of reactive power (Qz) - * is required. - * Typical Value = true. - */ - IEC61970::Base::Domain::Boolean remote; - /** - * Apparent power of the unit (Sbase). Unit = MVA. Typical Value = 259. - */ - IEC61970::Base::Domain::ApparentPower sbase; - /** - * PI controller phase lead time constant (Tc). Typical Value = 8. - */ - IEC61970::Base::Domain::Seconds tc; - /** - * Time constant of gain block (Te). Typical Value = 0.1. - */ - IEC61970::Base::Domain::Seconds te; - /** - * PI controller phase lead time constant (Ti). Typical Value = 2. - */ - IEC61970::Base::Domain::Seconds ti; - /** - * Time constant (Tp). Typical Value = 0.1. - */ - IEC61970::Base::Domain::Seconds tp; - /** - * Voltage transducer time constant (Tr). Typical Value = 0.01. - */ - IEC61970::Base::Domain::Seconds tr; - /** - * Maximum error (Uimax). Typical Value = 10. - */ - IEC61970::Base::Domain::PU uimax; - /** - * Minimum error (UImin). Typical Value = -10. - */ - IEC61970::Base::Domain::PU uimin; - /** - * Maximum controller output (URmax). Typical Value = 10. - */ - IEC61970::Base::Domain::PU urmax; - /** - * Minimum controller output (URmin). Typical Value = -10. - */ - IEC61970::Base::Domain::PU urmin; - /** - * Maximum terminal voltage input (Vtmax). Determines the range of voltage dead - * band. Typical Value = 1.05. - */ - IEC61970::Base::Domain::PU vtmax; - /** - * Minimum terminal voltage input (Vtmin). Determines the range of voltage dead - * band. Typical Value = 0.95. - */ - IEC61970::Base::Domain::PU vtmin; - /** - * Maximum output (Yp). Minimum output = 0. Typical Value = 1. - */ - IEC61970::Base::Domain::PU yp; - - }; - - } - - } - - } - -} -#endif // EXCSK_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcST1A.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcST1A.cpp deleted file mode 100644 index d7986a53e..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcST1A.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcST1A.cpp -// Implementation of the Class ExcST1A -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "ExcST1A.h" - -using IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST1A; - - -ExcST1A::ExcST1A(){ - -} - - - -ExcST1A::~ExcST1A(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcST1A.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcST1A.h deleted file mode 100644 index c4bdef806..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcST1A.h +++ /dev/null @@ -1,115 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcST1A.h -// Implementation of the Class ExcST1A -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef EXCST1A_H -#define EXCST1A_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace ExcitationSystemDynamics - { - /** - * Modification of an old IEEE ST1A static excitation system without - * overexcitation limiter (OEL) and underexcitation limiter (UEL). - */ - class ExcST1A : public IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics - { - - public: - ExcST1A(); - virtual ~ExcST1A(); - /** - * Exciter output current limit reference (Ilr). Typical Value = 0. - */ - IEC61970::Base::Domain::PU ilr; - /** - * Voltage regulator gain (Ka). Typical Value = 190. - */ - IEC61970::Base::Domain::PU ka; - /** - * Rectifier loading factor proportional to commutating reactance (Kc). Typical - * Value = 0.05. - */ - IEC61970::Base::Domain::PU kc; - /** - * Excitation control system stabilizer gains (Kf). Typical Value = 0. - */ - IEC61970::Base::Domain::PU kf; - /** - * Exciter output current limiter gain (Klr). Typical Value = 0. - */ - IEC61970::Base::Domain::PU klr; - /** - * Voltage regulator time constant (Ta). Typical Value = 0.02. - */ - IEC61970::Base::Domain::Seconds ta; - /** - * Voltage regulator time constant (Tb). Typical Value = 10. - */ - IEC61970::Base::Domain::Seconds tb; - /** - * Voltage regulator time constant (Tb1). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tb1; - /** - * Voltage regulator time constant (Tc). Typical Value = 1. - */ - IEC61970::Base::Domain::Seconds tc; - /** - * Voltage regulator time constant (Tc1). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tc1; - /** - * Excitation control system stabilizer time constant (Tf). Typical Value = 1. - */ - IEC61970::Base::Domain::Seconds tf; - /** - * Maximum voltage regulator output (Vamax). Typical Value = 999. - */ - IEC61970::Base::Domain::PU vamax; - /** - * Minimum voltage regulator output (Vamin). Typical Value = -999. - */ - IEC61970::Base::Domain::PU vamin; - /** - * Maximum voltage regulator input limit (Vimax). Typical Value = 999. - */ - IEC61970::Base::Domain::PU vimax; - /** - * Minimum voltage regulator input limit (Vimin). Typical Value = -999. - */ - IEC61970::Base::Domain::PU vimin; - /** - * Maximum voltage regulator outputs (Vrmax). Typical Value = 7.8. - */ - IEC61970::Base::Domain::PU vrmax; - /** - * Minimum voltage regulator outputs (Vrmin). Typical Value = -6.7. - */ - IEC61970::Base::Domain::PU vrmin; - /** - * Excitation xfmr effective reactance (Xe). Typical Value = 0.04. - */ - IEC61970::Base::Domain::PU xe; - - }; - - } - - } - - } - -} -#endif // EXCST1A_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcST2A.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcST2A.cpp deleted file mode 100644 index e3d99dc51..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcST2A.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcST2A.cpp -// Implementation of the Class ExcST2A -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "ExcST2A.h" - -using IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST2A; - - -ExcST2A::ExcST2A(){ - -} - - - -ExcST2A::~ExcST2A(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcST2A.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcST2A.h deleted file mode 100644 index 389306958..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcST2A.h +++ /dev/null @@ -1,108 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcST2A.h -// Implementation of the Class ExcST2A -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef EXCST2A_H -#define EXCST2A_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace ExcitationSystemDynamics - { - /** - * Modified IEEE ST2A static excitation system - another lead-lag block added to - * match the model defined by WECC. - */ - class ExcST2A : public IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics - { - - public: - ExcST2A(); - virtual ~ExcST2A(); - /** - * Maximum field voltage (Efdmax). Typical Value = 99. - */ - IEC61970::Base::Domain::PU efdmax; - /** - * Voltage regulator gain (Ka). Typical Value = 120. - */ - IEC61970::Base::Domain::PU ka; - /** - * Rectifier loading factor proportional to commutating reactance (Kc). Typical - * Value = 1.82. - */ - IEC61970::Base::Domain::PU kc; - /** - * Exciter constant related to self-excited field (Ke). Typical Value = 1. - */ - IEC61970::Base::Domain::PU ke; - /** - * Excitation control system stabilizer gains (Kf). Typical Value = 0.05. - */ - IEC61970::Base::Domain::PU kf; - /** - * Potential circuit gain coefficient (Ki). Typical Value = 8. - */ - IEC61970::Base::Domain::PU ki; - /** - * Potential circuit gain coefficient (Kp). Typical Value = 4.88. - */ - IEC61970::Base::Domain::PU kp; - /** - * Voltage regulator time constant (Ta). Typical Value = 0.15. - */ - IEC61970::Base::Domain::Seconds ta; - /** - * Voltage regulator time constant (Tb). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tb; - /** - * Voltage regulator time constant (Tc). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tc; - /** - * Exciter time constant, integration rate associated with exciter control (Te). - * Typical Value = 0.5. - */ - IEC61970::Base::Domain::Seconds te; - /** - * Excitation control system stabilizer time constant (Tf). Typical Value = 0.7. - */ - IEC61970::Base::Domain::Seconds tf; - /** - * UEL input (UELin). - * true = HV gate - * false = add to error signal. - * Typical Value = false. - */ - IEC61970::Base::Domain::Boolean uelin; - /** - * Maximum voltage regulator outputs (Vrmax). Typical Value = 1. - */ - IEC61970::Base::Domain::PU vrmax; - /** - * Minimum voltage regulator outputs (Vrmin). Typical Value = -1. - */ - IEC61970::Base::Domain::PU vrmin; - - }; - - } - - } - - } - -} -#endif // EXCST2A_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcST3A.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcST3A.cpp deleted file mode 100644 index f9d0ffb9b..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcST3A.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcST3A.cpp -// Implementation of the Class ExcST3A -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "ExcST3A.h" - -using IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST3A; - - -ExcST3A::ExcST3A(){ - -} - - - -ExcST3A::~ExcST3A(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcST3A.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcST3A.h deleted file mode 100644 index d17197b49..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcST3A.h +++ /dev/null @@ -1,127 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcST3A.h -// Implementation of the Class ExcST3A -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef EXCST3A_H -#define EXCST3A_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Domain/AngleDegrees.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace ExcitationSystemDynamics - { - /** - * Modified IEEE ST3A static excitation system with added speed multiplier. - */ - class ExcST3A : public IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics - { - - public: - ExcST3A(); - virtual ~ExcST3A(); - /** - * Maximum AVR output (Efdmax). Typical Value = 6.9. - */ - IEC61970::Base::Domain::PU efdmax; - /** - * Rectifier loading factor proportional to commutating reactance (Kc). Typical - * Value = 1.1. - */ - IEC61970::Base::Domain::PU kc; - /** - * Feedback gain constant of the inner loop field regulator (Kg). Typical Value = - * 1. - */ - IEC61970::Base::Domain::PU kg; - /** - * Potential circuit gain coefficient (Ki). Typical Value = 4.83. - */ - IEC61970::Base::Domain::PU ki; - /** - * AVR gain (Kj). Typical Value = 200. - */ - IEC61970::Base::Domain::PU kj; - /** - * Forward gain constant of the inner loop field regulator (Km). Typical Value = - * 7.04. - */ - IEC61970::Base::Domain::PU km; - /** - * Potential source gain (Kp) (>0). Typical Value = 4.37. - */ - IEC61970::Base::Domain::PU kp; - /** - * Coefficient to allow different usage of the model-speed coefficient (Ks). - * Typical Value = 0. - */ - IEC61970::Base::Domain::PU ks; - /** - * Coefficient to allow different usage of the model-speed coefficient (Ks1). - * Typical Value = 0. - */ - IEC61970::Base::Domain::PU ks1; - /** - * Voltage regulator time constant (Tb). Typical Value = 6.67. - */ - IEC61970::Base::Domain::Seconds tb; - /** - * Voltage regulator time constant (Tc). Typical Value = 1. - */ - IEC61970::Base::Domain::Seconds tc; - /** - * Potential circuit phase angle (thetap). Typical Value = 20. - */ - IEC61970::Base::Domain::AngleDegrees thetap; - /** - * Forward time constant of inner loop field regulator (Tm). Typical Value = 1. - */ - IEC61970::Base::Domain::Seconds tm; - /** - * Maximum excitation voltage (Vbmax). Typical Value = 8.63. - */ - IEC61970::Base::Domain::PU vbmax; - /** - * Maximum inner loop feedback voltage (Vgmax). Typical Value = 6.53. - */ - IEC61970::Base::Domain::PU vgmax; - /** - * Maximum voltage regulator input limit (Vimax). Typical Value = 0.2. - */ - IEC61970::Base::Domain::PU vimax; - /** - * Minimum voltage regulator input limit (Vimin). Typical Value = -0.2. - */ - IEC61970::Base::Domain::PU vimin; - /** - * Maximum voltage regulator output (Vrmax). Typical Value = 1. - */ - IEC61970::Base::Domain::PU vrmax; - /** - * Minimum voltage regulator output (Vrmin). Typical Value = 0. - */ - IEC61970::Base::Domain::PU vrmin; - /** - * Reactance associated with potential source (Xl). Typical Value = 0.09. - */ - IEC61970::Base::Domain::PU xl; - - }; - - } - - } - - } - -} -#endif // EXCST3A_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcST4B.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcST4B.cpp deleted file mode 100644 index 2c0635e5c..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcST4B.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcST4B.cpp -// Implementation of the Class ExcST4B -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "ExcST4B.h" - -using IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST4B; - - -ExcST4B::ExcST4B(){ - -} - - - -ExcST4B::~ExcST4B(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcST4B.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcST4B.h deleted file mode 100644 index b11b9ea3a..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcST4B.h +++ /dev/null @@ -1,128 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcST4B.h -// Implementation of the Class ExcST4B -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef EXCST4B_H -#define EXCST4B_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Domain/AngleDegrees.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace ExcitationSystemDynamics - { - /** - * Modified IEEE ST4B static excitation system with maximum inner loop feedback - * gain Vgmax. - */ - class ExcST4B : public IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics - { - - public: - ExcST4B(); - virtual ~ExcST4B(); - /** - * Rectifier loading factor proportional to commutating reactance (Kc). Typical - * Value = 0.113. - */ - IEC61970::Base::Domain::PU kc; - /** - * Feedback gain constant of the inner loop field regulator (Kg). Typical Value = - * 0. - */ - IEC61970::Base::Domain::PU kg; - /** - * Potential circuit gain coefficient (Ki). Typical Value = 0. - */ - IEC61970::Base::Domain::PU ki; - /** - * Voltage regulator integral gain output (Kim). Typical Value = 0. - */ - IEC61970::Base::Domain::PU kim; - /** - * Voltage regulator integral gain (Kir). Typical Value = 10.75. - */ - IEC61970::Base::Domain::PU kir; - /** - * Potential circuit gain coefficient (Kp). Typical Value = 9.3. - */ - IEC61970::Base::Domain::PU kp; - /** - * Voltage regulator proportional gain output (Kpm). Typical Value = 1. - */ - IEC61970::Base::Domain::PU kpm; - /** - * Voltage regulator proportional gain (Kpr). Typical Value = 10.75. - */ - IEC61970::Base::Domain::PU kpr; - /** - * Selector (LVgate). - * true = LVgate is part of the block diagram - * false = LVgate is not part of the block diagram. - * Typical Value = false. - */ - IEC61970::Base::Domain::Boolean lvgate; - /** - * Voltage regulator time constant (Ta). Typical Value = 0.02. - */ - IEC61970::Base::Domain::Seconds ta; - /** - * Potential circuit phase angle (thetap). Typical Value = 0. - */ - IEC61970::Base::Domain::AngleDegrees thetap; - /** - * Selector (Uel). - * true = UEL is part of block diagram - * false = UEL is not part of block diagram. - * Typical Value = false. - */ - IEC61970::Base::Domain::Boolean uel; - /** - * Maximum excitation voltage (Vbmax). Typical Value = 11.63. - */ - IEC61970::Base::Domain::PU vbmax; - /** - * Maximum inner loop feedback voltage (Vgmax). Typical Value = 5.8. - */ - IEC61970::Base::Domain::PU vgmax; - /** - * Maximum inner loop output (Vmmax). Typical Value = 99. - */ - IEC61970::Base::Domain::PU vmmax; - /** - * Minimum inner loop output (Vmmin). Typical Value = -99. - */ - IEC61970::Base::Domain::PU vmmin; - /** - * Maximum voltage regulator output (Vrmax). Typical Value = 1. - */ - IEC61970::Base::Domain::PU vrmax; - /** - * Minimum voltage regulator output (Vrmin). Typical Value = -0.87. - */ - IEC61970::Base::Domain::PU vrmin; - /** - * Reactance associated with potential source (Xl). Typical Value = 0.124. - */ - IEC61970::Base::Domain::PU xl; - - }; - - } - - } - - } - -} -#endif // EXCST4B_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcST6B.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcST6B.cpp deleted file mode 100644 index f737cfad7..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcST6B.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcST6B.cpp -// Implementation of the Class ExcST6B -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "ExcST6B.h" - -using IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST6B; - - -ExcST6B::ExcST6B(){ - -} - - - -ExcST6B::~ExcST6B(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcST6B.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcST6B.h deleted file mode 100644 index 09a30d01c..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcST6B.h +++ /dev/null @@ -1,149 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcST6B.h -// Implementation of the Class ExcST6B -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef EXCST6B_H -#define EXCST6B_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcST6BOELselectorKind.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace ExcitationSystemDynamics - { - /** - * Modified IEEE ST6B static excitation system with PID controller and optional - * inner feedbacks loop. - */ - class ExcST6B : public IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics - { - - public: - ExcST6B(); - virtual ~ExcST6B(); - /** - * Exciter output current limit reference (Ilr). Typical Value = 4.164. - */ - IEC61970::Base::Domain::PU ilr; - /** - * Selector (K1). - * true = feedback is from Ifd - * false = feedback is not from Ifd. - * Typical Value = true. - */ - IEC61970::Base::Domain::Boolean k1; - /** - * Exciter output current limit adjustment (Kcl). Typical Value = 1.0577. - */ - IEC61970::Base::Domain::PU kcl; - /** - * Pre-control gain constant of the inner loop field regulator (Kff). Typical - * Value = 1. - */ - IEC61970::Base::Domain::PU kff; - /** - * Feedback gain constant of the inner loop field regulator (Kg). Typical Value = - * 1. - */ - IEC61970::Base::Domain::PU kg; - /** - * Voltage regulator integral gain (Kia). Typical Value = 45.094. - */ - IEC61970::Base::Domain::PU kia; - /** - * Exciter output current limit adjustment (Kcl). Typical Value = 17.33. - */ - IEC61970::Base::Domain::PU klr; - /** - * Forward gain constant of the inner loop field regulator (Km). Typical Value = - * 1. - */ - IEC61970::Base::Domain::PU km; - /** - * Voltage regulator proportional gain (Kpa). Typical Value = 18.038. - */ - IEC61970::Base::Domain::PU kpa; - /** - * Voltage regulator derivative gain (Kvd). Typical Value = 0. - */ - IEC61970::Base::Domain::PU kvd; - /** - * OEL input selector (OELin). Typical Value = noOELinput. - */ - IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST6BOELselectorKind oelin = IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST6BOELselectorKind::_undef; - /** - * Feedback time constant of inner loop field voltage regulator (Tg). Typical - * Value = 0.02. - */ - IEC61970::Base::Domain::Seconds tg; - /** - * Rectifier firing time constant (Ts). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds ts; - /** - * Voltage regulator derivative gain (Tvd). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tvd; - /** - * Maximum voltage regulator output (Vamax). Typical Value = 4.81. - */ - IEC61970::Base::Domain::PU vamax; - /** - * Minimum voltage regulator output (Vamin). Typical Value = -3.85. - */ - IEC61970::Base::Domain::PU vamin; - /** - * Selector (Vilim). - * true = Vimin-Vimax limiter is active - * false = Vimin-Vimax limiter is not active. - * Typical Value = true. - */ - IEC61970::Base::Domain::Boolean vilim; - /** - * Maximum voltage regulator input limit (Vimax). Typical Value = 10. - */ - IEC61970::Base::Domain::PU vimax; - /** - * Minimum voltage regulator input limit (Vimin). Typical Value = -10. - */ - IEC61970::Base::Domain::PU vimin; - /** - * Selector (Vmult). - * true = multiply regulator output by terminal voltage - * false = do not multiply regulator output by terminal voltage. - * Typical Value = true. - */ - IEC61970::Base::Domain::Boolean vmult; - /** - * Maximum voltage regulator output (Vrmax). Typical Value = 4.81. - */ - IEC61970::Base::Domain::PU vrmax; - /** - * Minimum voltage regulator output (Vrmin). Typical Value = -3.85. - */ - IEC61970::Base::Domain::PU vrmin; - /** - * Excitation source reactance (Xc). Typical Value = 0.05. - */ - IEC61970::Base::Domain::PU xc; - - }; - - } - - } - - } - -} -#endif // EXCST6B_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcST6BOELselectorKind.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcST6BOELselectorKind.h deleted file mode 100644 index bb57ca5ef..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcST6BOELselectorKind.h +++ /dev/null @@ -1,44 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcST6BOELselectorKind.h -// Implementation of the Class ExcST6BOELselectorKind -// Original author: civanov -/////////////////////////////////////////////////////////// - -#ifndef EXCST6BOELSELECTORKIND_H -#define EXCST6BOELSELECTORKIND_H - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace ExcitationSystemDynamics - { - /** - * Type of connection for the OEL input used for static excitation systems type 6B. - */ - enum class ExcST6BOELselectorKind - { - /** - * No OEL input is used. - */ - _undef = -1, noOELinput, - /** - * The connection is before UEL. - */ - beforeUEL, - /** - * The connection is after UEL. - */ - afterUEL - }; - - } - - } - - } - -} -#endif // EXCST6BOELSELECTORKIND_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcST7B.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcST7B.cpp deleted file mode 100644 index cee6cdf45..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcST7B.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcST7B.cpp -// Implementation of the Class ExcST7B -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "ExcST7B.h" - -using IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST7B; - - -ExcST7B::ExcST7B(){ - -} - - - -ExcST7B::~ExcST7B(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcST7B.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcST7B.h deleted file mode 100644 index 009b00655..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcST7B.h +++ /dev/null @@ -1,109 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcST7B.h -// Implementation of the Class ExcST7B -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef EXCST7B_H -#define EXCST7B_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcST7BOELselectorKind.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcST7BUELselectorKind.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace ExcitationSystemDynamics - { - /** - * Modified IEEE ST7B static excitation system without stator current limiter - * (SCL) and current compensator (DROOP) inputs. - */ - class ExcST7B : public IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics - { - - public: - ExcST7B(); - virtual ~ExcST7B(); - /** - * High-value gate feedback gain (Kh). Typical Value = 1. - */ - IEC61970::Base::Domain::PU kh; - /** - * Voltage regulator integral gain (Kia). Typical Value = 1. - */ - IEC61970::Base::Domain::PU kia; - /** - * Low-value gate feedback gain (Kl). Typical Value = 1. - */ - IEC61970::Base::Domain::PU kl; - /** - * Voltage regulator proportional gain (Kpa). Typical Value = 40. - */ - IEC61970::Base::Domain::PU kpa; - /** - * OEL input selector (OELin). Typical Value = noOELinput. - */ - IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST7BOELselectorKind oelin = IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST7BOELselectorKind::_undef; - /** - * Regulator lag time constant (Tb). Typical Value = 1. - */ - IEC61970::Base::Domain::Seconds tb; - /** - * Regulator lead time constant (Tc). Typical Value = 1. - */ - IEC61970::Base::Domain::Seconds tc; - /** - * Excitation control system stabilizer time constant (Tf). Typical Value = 1. - */ - IEC61970::Base::Domain::Seconds tf; - /** - * Feedback time constant of inner loop field voltage regulator (Tg). Typical - * Value = 1. - */ - IEC61970::Base::Domain::Seconds tg; - /** - * Feedback time constant (Tia). Typical Value = 3. - */ - IEC61970::Base::Domain::Seconds tia; - /** - * Rectifier firing time constant (Ts). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds ts; - /** - * UEL input selector (UELin). Typical Value = noUELinput. - */ - IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST7BUELselectorKind uelin = IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST7BUELselectorKind::_undef; - /** - * Maximum voltage reference signal (Vmax). Typical Value = 1.1. - */ - IEC61970::Base::Domain::PU vmax; - /** - * Minimum voltage reference signal (Vmin). Typical Value = 0.9. - */ - IEC61970::Base::Domain::PU vmin; - /** - * Maximum voltage regulator output (Vrmax). Typical Value = 5. - */ - IEC61970::Base::Domain::PU vrmax; - /** - * Minimum voltage regulator output (Vrmin). Typical Value = -4.5. - */ - IEC61970::Base::Domain::PU vrmin; - - }; - - } - - } - - } - -} -#endif // EXCST7B_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcST7BOELselectorKind.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcST7BOELselectorKind.h deleted file mode 100644 index 6a2c5a2ef..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcST7BOELselectorKind.h +++ /dev/null @@ -1,48 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcST7BOELselectorKind.h -// Implementation of the Class ExcST7BOELselectorKind -// Original author: civanov -/////////////////////////////////////////////////////////// - -#ifndef EXCST7BOELSELECTORKIND_H -#define EXCST7BOELSELECTORKIND_H - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace ExcitationSystemDynamics - { - /** - * Type of connection for the OEL input used for static excitation systems type 7B. - */ - enum class ExcST7BOELselectorKind - { - /** - * No OEL input is used. - */ - _undef = -1, noOELinput, - /** - * The signal is added to Vref. - */ - addVref, - /** - * The signal is connected in the input of the LV gate. - */ - inputLVgate, - /** - * The signal is connected in the output of the LV gate. - */ - outputLVgate - }; - - } - - } - - } - -} -#endif // EXCST7BOELSELECTORKIND_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcST7BUELselectorKind.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcST7BUELselectorKind.h deleted file mode 100644 index c72ee6d9b..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcST7BUELselectorKind.h +++ /dev/null @@ -1,48 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcST7BUELselectorKind.h -// Implementation of the Class ExcST7BUELselectorKind -// Original author: civanov -/////////////////////////////////////////////////////////// - -#ifndef EXCST7BUELSELECTORKIND_H -#define EXCST7BUELSELECTORKIND_H - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace ExcitationSystemDynamics - { - /** - * Type of connection for the UEL input used for static excitation systems type 7B. - */ - enum class ExcST7BUELselectorKind - { - /** - * No UEL input is used. - */ - _undef = -1, noUELinput, - /** - * The signal is added to Vref. - */ - addVref, - /** - * The signal is connected in the input of the HV gate. - */ - inputHVgate, - /** - * The signal is connected in the output of the HV gate. - */ - outputHVgate - }; - - } - - } - - } - -} -#endif // EXCST7BUELSELECTORKIND_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.cpp deleted file mode 100644 index 8c7cb488e..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcitationSystemDynamics.cpp -// Implementation of the Class ExcitationSystemDynamics -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "ExcitationSystemDynamics.h" - -using IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics; - - -ExcitationSystemDynamics::ExcitationSystemDynamics() - : SynchronousMachineDynamics(nullptr) -{ - -} - - - -ExcitationSystemDynamics::~ExcitationSystemDynamics(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h deleted file mode 100644 index e3171361d..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h +++ /dev/null @@ -1,46 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcitationSystemDynamics.h -// Implementation of the Class ExcitationSystemDynamics -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef EXCITATIONSYSTEMDYNAMICS_H -#define EXCITATIONSYSTEMDYNAMICS_H - -#include "IEC61970/Dynamics/StandardModels/SynchronousMachineDynamics/SynchronousMachineDynamics.h" -#include "IEC61970/Dynamics/StandardModels/DynamicsFunctionBlock.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace ExcitationSystemDynamics - { - /** - * Excitation system function block whose behavior is described by reference to a - * standard model or by definition of a user-defined model. - * - */ - class ExcitationSystemDynamics : public IEC61970::Dynamics::StandardModels::DynamicsFunctionBlock - { - - public: - ExcitationSystemDynamics(); - virtual ~ExcitationSystemDynamics(); - /** - * Synchronous machine model with which this excitation system model is associated. - */ - IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::SynchronousMachineDynamics *SynchronousMachineDynamics; - - }; - - } - - } - - } - -} -#endif // EXCITATIONSYSTEMDYNAMICS_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/LoadDynamics/GenericNonLinearLoadModelKind.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/LoadDynamics/GenericNonLinearLoadModelKind.h deleted file mode 100644 index e6fb73715..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/LoadDynamics/GenericNonLinearLoadModelKind.h +++ /dev/null @@ -1,40 +0,0 @@ -/////////////////////////////////////////////////////////// -// GenericNonLinearLoadModelKind.h -// Implementation of the Class GenericNonLinearLoadModelKind -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#ifndef GENERICNONLINEARLOADMODELKIND_H -#define GENERICNONLINEARLOADMODELKIND_H - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace LoadDynamics - { - /** - * Type of generic non-linear load model. - */ - enum class GenericNonLinearLoadModelKind - { - /** - * Exponential recovery model. - */ - _undef = -1, exponentialRecovery, - /** - * Load adaptive model. - */ - loadAdaptive - }; - - } - - } - - } - -} -#endif // GENERICNONLINEARLOADMODELKIND_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/LoadDynamics/LoadAggregate.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/LoadDynamics/LoadAggregate.cpp deleted file mode 100644 index 498f45fb5..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/LoadDynamics/LoadAggregate.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// LoadAggregate.cpp -// Implementation of the Class LoadAggregate -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#include "LoadAggregate.h" - -using IEC61970::Dynamics::StandardModels::LoadDynamics::LoadAggregate; - - -LoadAggregate::LoadAggregate(){ - -} - - - -LoadAggregate::~LoadAggregate(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/LoadDynamics/LoadAggregate.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/LoadDynamics/LoadAggregate.h deleted file mode 100644 index 6ae4a5146..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/LoadDynamics/LoadAggregate.h +++ /dev/null @@ -1,43 +0,0 @@ -/////////////////////////////////////////////////////////// -// LoadAggregate.h -// Implementation of the Class LoadAggregate -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#ifndef LOADAGGREGATE_H -#define LOADAGGREGATE_H - -#include "IEC61970/Dynamics/StandardModels/LoadDynamics/LoadDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace LoadDynamics - { - /** - * Standard aggregate load model comprised of static and/or dynamic components. A - * static load model represents the sensitivity of the real and reactive power - * consumed by the load to the amplitude and frequency of the bus voltage. A - * dynamic load model can used to represent the aggregate response of the motor - * components of the load. - */ - class LoadAggregate : public IEC61970::Dynamics::StandardModels::LoadDynamics::LoadDynamics - { - - public: - LoadAggregate(); - virtual ~LoadAggregate(); - - }; - - } - - } - - } - -} -#endif // LOADAGGREGATE_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/LoadDynamics/LoadComposite.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/LoadDynamics/LoadComposite.cpp deleted file mode 100644 index 83fe78791..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/LoadDynamics/LoadComposite.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// LoadComposite.cpp -// Implementation of the Class LoadComposite -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#include "LoadComposite.h" - -using IEC61970::Dynamics::StandardModels::LoadDynamics::LoadComposite; - - -LoadComposite::LoadComposite(){ - -} - - - -LoadComposite::~LoadComposite(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/LoadDynamics/LoadComposite.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/LoadDynamics/LoadComposite.h deleted file mode 100644 index ac5e1830c..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/LoadDynamics/LoadComposite.h +++ /dev/null @@ -1,89 +0,0 @@ -/////////////////////////////////////////////////////////// -// LoadComposite.h -// Implementation of the Class LoadComposite -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#ifndef LOADCOMPOSITE_H -#define LOADCOMPOSITE_H - -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/LoadDynamics/LoadDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace LoadDynamics - { - /** - * This models combines static load and induction motor load effects. - * The dynamics of the motor are simplified by linearizing the induction machine - * equations. - */ - class LoadComposite : public IEC61970::Dynamics::StandardModels::LoadDynamics::LoadDynamics - { - - public: - LoadComposite(); - virtual ~LoadComposite(); - /** - * Active load-frequency dependence index (dynamic) (Epfd). Typical Value = 1.5. - */ - IEC61970::Base::Domain::Float epfd; - /** - * Active load-frequency dependence index (static) (Epfs). Typical Value = 1.5. - */ - IEC61970::Base::Domain::Float epfs; - /** - * Active load-voltage dependence index (dynamic) (Epvd). Typical Value = 0.7. - */ - IEC61970::Base::Domain::Float epvd; - /** - * Active load-voltage dependence index (static) (Epvs). Typical Value = 0.7. - */ - IEC61970::Base::Domain::Float epvs; - /** - * Reactive load-frequency dependence index (dynamic) (Eqfd). Typical Value = 0. - */ - IEC61970::Base::Domain::Float eqfd; - /** - * Reactive load-frequency dependence index (static) (Eqfs). Typical Value = 0. - */ - IEC61970::Base::Domain::Float eqfs; - /** - * Reactive load-voltage dependence index (dynamic) (Eqvd). Typical Value = 2. - */ - IEC61970::Base::Domain::Float eqvd; - /** - * Reactive load-voltage dependence index (static) (Eqvs). Typical Value = 2. - */ - IEC61970::Base::Domain::Float eqvs; - /** - * Inertia constant (H). Typical Value = 2.5. - */ - IEC61970::Base::Domain::Seconds h; - /** - * Loading factor – ratio of initial P to motor MVA base (Lfrac). Typical Value = - * 0.8. - */ - IEC61970::Base::Domain::Float lfrac; - /** - * Fraction of constant-power load to be represented by this motor model (Pfrac) - * (>=0.0 and <=1.0). Typical Value = 0.5. - */ - IEC61970::Base::Domain::Float pfrac; - - }; - - } - - } - - } - -} -#endif // LOADCOMPOSITE_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/LoadDynamics/LoadDynamics.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/LoadDynamics/LoadDynamics.cpp deleted file mode 100644 index 12a8e10bf..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/LoadDynamics/LoadDynamics.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// LoadDynamics.cpp -// Implementation of the Class LoadDynamics -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "LoadDynamics.h" - -using IEC61970::Dynamics::StandardModels::LoadDynamics::LoadDynamics; - - -LoadDynamics::LoadDynamics(){ - -} - - - -LoadDynamics::~LoadDynamics(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/LoadDynamics/LoadDynamics.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/LoadDynamics/LoadDynamics.h deleted file mode 100644 index 9282a0412..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/LoadDynamics/LoadDynamics.h +++ /dev/null @@ -1,57 +0,0 @@ -/////////////////////////////////////////////////////////// -// LoadDynamics.h -// Implementation of the Class LoadDynamics -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef LOADDYNAMICS_H -#define LOADDYNAMICS_H - -#include - -#include "IEC61970/Base/Core/IdentifiedObject.h" -#include "IEC61970/Base/Wires/EnergyConsumer.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace LoadDynamics - { - /** - * Load whose behaviour is described by reference to a standard model or by definition of a user-defined model. - * - * A standard feature of dynamic load behaviour modelling is the ability to - * associate the same behaviour to multiple energy consumers by means of a single - * aggregate load definition. Aggregate loads are used to represent all or part - * of the real and reactive load from one or more loads in the static (power flow) - * data. This load is usually the aggregation of many individual load devices and - * the load model is approximate representation of the aggregate response of the - * load devices to system disturbances. The load model is always applied to - * individual bus loads (energy consumers) but a single set of load model - * parameters can used for all loads in the grouping. - */ - class LoadDynamics : public IEC61970::Base::Core::IdentifiedObject - { - - public: - LoadDynamics(); - virtual ~LoadDynamics(); - /** - * Energy consumer to which this dynamics load model applies. - */ - std::list EnergyConsumer; - - }; - - } - - } - - } - -} -#endif // LOADDYNAMICS_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/LoadDynamics/LoadGenericNonLinear.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/LoadDynamics/LoadGenericNonLinear.cpp deleted file mode 100644 index 366db98ee..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/LoadDynamics/LoadGenericNonLinear.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// LoadGenericNonLinear.cpp -// Implementation of the Class LoadGenericNonLinear -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#include "LoadGenericNonLinear.h" - -using IEC61970::Dynamics::StandardModels::LoadDynamics::LoadGenericNonLinear; - - -LoadGenericNonLinear::LoadGenericNonLinear(){ - -} - - - -LoadGenericNonLinear::~LoadGenericNonLinear(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/LoadDynamics/LoadGenericNonLinear.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/LoadDynamics/LoadGenericNonLinear.h deleted file mode 100644 index f39fbef17..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/LoadDynamics/LoadGenericNonLinear.h +++ /dev/null @@ -1,82 +0,0 @@ -/////////////////////////////////////////////////////////// -// LoadGenericNonLinear.h -// Implementation of the Class LoadGenericNonLinear -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#ifndef LOADGENERICNONLINEAR_H -#define LOADGENERICNONLINEAR_H - -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Dynamics/StandardModels/LoadDynamics/GenericNonLinearLoadModelKind.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/LoadDynamics/LoadDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace LoadDynamics - { - /** - * These load models (known also as generic non-linear dynamic (GNLD) load models) - * can be used in mid-term and long-term voltage stability simulations (i.e., to - * study voltage collapse), as they can replace a more detailed representation of - * aggregate load, including induction motors, thermostatically controlled and - * static loads. - */ - class LoadGenericNonLinear : public IEC61970::Dynamics::StandardModels::LoadDynamics::LoadDynamics - { - - public: - LoadGenericNonLinear(); - virtual ~LoadGenericNonLinear(); - /** - * Steady state voltage index for reactive power (BS). - */ - IEC61970::Base::Domain::Float bs; - /** - * Transient voltage index for reactive power (BT). - */ - IEC61970::Base::Domain::Float bt; - /** - * Type of generic non-linear load model. - */ - IEC61970::Dynamics::StandardModels::LoadDynamics::GenericNonLinearLoadModelKind genericNonLinearLoadModelType = IEC61970::Dynamics::StandardModels::LoadDynamics::GenericNonLinearLoadModelKind::_undef; - /** - * Steady state voltage index for active power (LS). - */ - IEC61970::Base::Domain::Float ls; - /** - * Transient voltage index for active power (LT). - */ - IEC61970::Base::Domain::Float lt; - /** - * Dynamic portion of active load (PT). - */ - IEC61970::Base::Domain::Float pt; - /** - * Dynamic portion of reactive load (QT). - */ - IEC61970::Base::Domain::Float qt; - /** - * Time constant of lag function of active power (TP). - */ - IEC61970::Base::Domain::Seconds tp; - /** - * Time constant of lag function of reactive power (TQ). - */ - IEC61970::Base::Domain::Seconds tq; - - }; - - } - - } - - } - -} -#endif // LOADGENERICNONLINEAR_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/LoadDynamics/LoadMotor.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/LoadDynamics/LoadMotor.cpp deleted file mode 100644 index baec4a176..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/LoadDynamics/LoadMotor.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// LoadMotor.cpp -// Implementation of the Class LoadMotor -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "LoadMotor.h" - -using IEC61970::Dynamics::StandardModels::LoadDynamics::LoadMotor; - - -LoadMotor::LoadMotor() - : LoadAggregate(nullptr) -{ - -} - - - -LoadMotor::~LoadMotor(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/LoadDynamics/LoadMotor.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/LoadDynamics/LoadMotor.h deleted file mode 100644 index 1028a52a0..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/LoadDynamics/LoadMotor.h +++ /dev/null @@ -1,127 +0,0 @@ -/////////////////////////////////////////////////////////// -// LoadMotor.h -// Implementation of the Class LoadMotor -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef LOADMOTOR_H -#define LOADMOTOR_H - -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" -#include "IEC61970/Dynamics/StandardModels/LoadDynamics/LoadAggregate.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace LoadDynamics - { - /** - * Aggregate induction motor load. This model is used to represent a fraction of - * an ordinary load as "induction motor load". It allows load that is treated as - * ordinary constant power in power flow analysis to be represented by an - * induction motor in dynamic simulation. If Lpp = 0. or Lpp = - * Lp, or Tppo = 0., only one cage is represented. Magnetic - * saturation is not modelled. Either a "one-cage" or "two-cage" model of the - * induction machine can be modelled. Magnetic saturation is not modelled. - * - * This model is intended for representation of aggregations of many motors - * dispersed through a load represented at a high voltage bus but where there is - * no information on the characteristics of individual motors. - * - * This model treats a fraction of the constant power part of a load as a motor. - * During initialisation, the initial power drawn by the motor is set equal to - * Pfrac times the constant P part of the static load. The - * remainder of the load is left as static load. - * - * The reactive power demand of the motor is calculated during initialisation as a - * function of voltage at the load bus. This reactive power demand may be less - * than or greater than the constant Q component of the load. If the - * motor's reactive demand is greater than the constant Q component of the - * load, the model inserts a shunt capacitor at the terminal of the motor to bring - * its reactive demand down to equal the constant Q reactive load. - * If a motor model and a static load model are both present for a load, the motor - * Pfrac is assumed to be subtracted from the power flow constant P - * load before the static load model is applied. The remainder of the load, if - * any, is then represented by the static load model. - */ - class LoadMotor : public IEC61970::Base::Core::IdentifiedObject - { - - public: - LoadMotor(); - virtual ~LoadMotor(); - /** - * Damping factor (D). Unit = delta P/delta speed. Typical Value = 2. - */ - IEC61970::Base::Domain::Float d; - /** - * Inertia constant (H) (not=0). Typical Value = 0.4. - */ - IEC61970::Base::Domain::Seconds h; - /** - * Loading factor – ratio of initial P to motor MVA base (Lfac). Typical Value = - * 0.8. - */ - IEC61970::Base::Domain::Float lfac; - /** - * Transient reactance (Lp). Typical Value = 0.15. - */ - IEC61970::Base::Domain::PU lp; - /** - * Subtransient reactance (Lpp). Typical Value = 0.15. - */ - IEC61970::Base::Domain::PU lpp; - /** - * Synchronous reactance (Ls). Typical Value = 3.2. - */ - IEC61970::Base::Domain::PU ls; - /** - * Fraction of constant-power load to be represented by this motor model (Pfrac) - * (>=0.0 and <=1.0). Typical Value = 0.3. - */ - IEC61970::Base::Domain::Float pfrac; - /** - * Stator resistance (Ra). Typical Value = 0. - */ - IEC61970::Base::Domain::PU ra; - /** - * Circuit breaker operating time (Tbkr). Typical Value = 0.08. - */ - IEC61970::Base::Domain::Seconds tbkr; - /** - * Transient rotor time constant (Tpo) (not=0). Typical Value = 1. - */ - IEC61970::Base::Domain::Seconds tpo; - /** - * Subtransient rotor time constant (Tppo). Typical Value = 0.02. - */ - IEC61970::Base::Domain::Seconds tppo; - /** - * Voltage trip pickup time (Tv). Typical Value = 0.1. - */ - IEC61970::Base::Domain::Seconds tv; - /** - * Voltage threshold for tripping (Vt). Typical Value = 0.7. - */ - IEC61970::Base::Domain::PU vt; - /** - * Aggregate load to which this aggregate motor (dynamic) load belongs. - */ - IEC61970::Dynamics::StandardModels::LoadDynamics::LoadAggregate *LoadAggregate; - - }; - - } - - } - - } - -} -#endif // LOADMOTOR_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/LoadDynamics/LoadStatic.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/LoadDynamics/LoadStatic.cpp deleted file mode 100644 index c0bf7e01c..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/LoadDynamics/LoadStatic.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// LoadStatic.cpp -// Implementation of the Class LoadStatic -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "LoadStatic.h" - -using IEC61970::Dynamics::StandardModels::LoadDynamics::LoadStatic; - - -LoadStatic::LoadStatic() - : LoadAggregate(nullptr) -{ - -} - - - -LoadStatic::~LoadStatic(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/LoadDynamics/LoadStatic.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/LoadDynamics/LoadStatic.h deleted file mode 100644 index c2151e0f8..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/LoadDynamics/LoadStatic.h +++ /dev/null @@ -1,133 +0,0 @@ -/////////////////////////////////////////////////////////// -// LoadStatic.h -// Implementation of the Class LoadStatic -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef LOADSTATIC_H -#define LOADSTATIC_H - -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Dynamics/StandardModels/LoadDynamics/StaticLoadModelKind.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" -#include "IEC61970/Dynamics/StandardModels/LoadDynamics/LoadAggregate.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace LoadDynamics - { - /** - * General static load model representing the sensitivity of the real and reactive - * power consumed by the load to the amplitude and frequency of the bus voltage. - */ - class LoadStatic : public IEC61970::Base::Core::IdentifiedObject - { - - public: - LoadStatic(); - virtual ~LoadStatic(); - /** - * First term voltage exponent for active power (Ep1). Used only when . - * staticLoadModelType = exponential. - */ - IEC61970::Base::Domain::Float ep1; - /** - * Second term voltage exponent for active power (Ep2). Used only when . - * staticLoadModelType = exponential. - */ - IEC61970::Base::Domain::Float ep2; - /** - * Third term voltage exponent for active power (Ep3). Used only when . - * staticLoadModelType = exponential. - */ - IEC61970::Base::Domain::Float ep3; - /** - * First term voltage exponent for reactive power (Eq1). Used only when . - * staticLoadModelType = exponential. - */ - IEC61970::Base::Domain::Float eq1; - /** - * Second term voltage exponent for reactive power (Eq2). Used only when . - * staticLoadModelType = exponential. - */ - IEC61970::Base::Domain::Float eq2; - /** - * Third term voltage exponent for reactive power (Eq3). Used only when . - * staticLoadModelType = exponential. - */ - IEC61970::Base::Domain::Float eq3; - /** - * First term voltage coefficient for active power (Kp1). Not used when . - * staticLoadModelType = constantZ. - */ - IEC61970::Base::Domain::Float kp1; - /** - * Second term voltage coefficient for active power (Kp2). Not used when . - * staticLoadModelType = constantZ. - */ - IEC61970::Base::Domain::Float kp2; - /** - * Third term voltage coefficient for active power (Kp3). Not used when . - * staticLoadModelType = constantZ. - */ - IEC61970::Base::Domain::Float kp3; - /** - * Frequency coefficient for active power (Kp4). Must be non-zero when . - * staticLoadModelType = ZIP2. Not used for all other values of . - * staticLoadModelType. - */ - IEC61970::Base::Domain::Float kp4; - /** - * Frequency deviation coefficient for active power (Kpf). Not used when . - * staticLoadModelType = constantZ. - */ - IEC61970::Base::Domain::Float kpf; - /** - * First term voltage coefficient for reactive power (Kq1). Not used when . - * staticLoadModelType = constantZ. - */ - IEC61970::Base::Domain::Float kq1; - /** - * Second term voltage coefficient for reactive power (Kq2). Not used when . - * staticLoadModelType = constantZ. - */ - IEC61970::Base::Domain::Float kq2; - /** - * Third term voltage coefficient for reactive power (Kq3). Not used when . - * staticLoadModelType = constantZ. - */ - IEC61970::Base::Domain::Float kq3; - /** - * Frequency coefficient for reactive power (Kq4). Must be non-zero when . - * staticLoadModelType = ZIP2. Not used for all other values of . - * staticLoadModelType. - */ - IEC61970::Base::Domain::Float kq4; - /** - * Frequency deviation coefficient for reactive power (Kqf). Not used when . - * staticLoadModelType = constantZ. - */ - IEC61970::Base::Domain::Float kqf; - /** - * Type of static load model. Typical Value = constantZ. - */ - IEC61970::Dynamics::StandardModels::LoadDynamics::StaticLoadModelKind staticLoadModelType = IEC61970::Dynamics::StandardModels::LoadDynamics::StaticLoadModelKind::_undef; - /** - * Aggregate load to which this aggregate static load belongs. - */ - IEC61970::Dynamics::StandardModels::LoadDynamics::LoadAggregate *LoadAggregate; - - }; - - } - - } - - } - -} -#endif // LOADSTATIC_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/LoadDynamics/StaticLoadModelKind.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/LoadDynamics/StaticLoadModelKind.h deleted file mode 100644 index c32f890a2..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/LoadDynamics/StaticLoadModelKind.h +++ /dev/null @@ -1,58 +0,0 @@ -/////////////////////////////////////////////////////////// -// StaticLoadModelKind.h -// Implementation of the Class StaticLoadModelKind -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef STATICLOADMODELKIND_H -#define STATICLOADMODELKIND_H - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace LoadDynamics - { - /** - * Type of static load model. - */ - enum class StaticLoadModelKind - { - /** - * Exponential P and Q equations are used and the following attributes are - * required: - * kp1, kp2, kp3, kpf, ep1, ep2, ep3 - * kq1, kq2, kq3, kqf, eq1, eq2, eq3. - */ - _undef = -1, exponential, - /** - * ZIP1 P and Q equations are used and the following attributes are required: - * kp1, kp2, kp3, kpf - * kq1, kq2, kq3, kqf. - */ - zIP1, - /** - * This model separates the frequency-dependent load (primarily motors) from other - * load. ZIP2 P and Q equations are used and the following attributes are - * required: - * kp1, kp2, kp3, kq4, kpf - * kq1, kq2, kq3, kq4, kqf. - */ - zIP2, - /** - * The load is represented as a constant impedance. ConstantZ P and Q equations - * are used and no attributes are required. - */ - constantZ - }; - - } - - } - - } - -} -#endif // STATICLOADMODELKIND_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/MechanicalLoadDynamics/MechLoad1.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/MechanicalLoadDynamics/MechLoad1.cpp deleted file mode 100644 index b40f8a433..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/MechanicalLoadDynamics/MechLoad1.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// MechLoad1.cpp -// Implementation of the Class MechLoad1 -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "MechLoad1.h" - -using IEC61970::Dynamics::StandardModels::MechanicalLoadDynamics::MechLoad1; - - -MechLoad1::MechLoad1(){ - -} - - - -MechLoad1::~MechLoad1(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/MechanicalLoadDynamics/MechLoad1.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/MechanicalLoadDynamics/MechLoad1.h deleted file mode 100644 index baed3b501..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/MechanicalLoadDynamics/MechLoad1.h +++ /dev/null @@ -1,56 +0,0 @@ -/////////////////////////////////////////////////////////// -// MechLoad1.h -// Implementation of the Class MechLoad1 -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef MECHLOAD1_H -#define MECHLOAD1_H - -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Dynamics/StandardModels/MechanicalLoadDynamics/MechanicalLoadDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace MechanicalLoadDynamics - { - /** - * Mechanical load model type 1. - */ - class MechLoad1 : public IEC61970::Dynamics::StandardModels::MechanicalLoadDynamics::MechanicalLoadDynamics - { - - public: - MechLoad1(); - virtual ~MechLoad1(); - /** - * Speed squared coefficient (a). - */ - IEC61970::Base::Domain::Float a; - /** - * Speed coefficient (b). - */ - IEC61970::Base::Domain::Float b; - /** - * Speed to the exponent coefficient (d). - */ - IEC61970::Base::Domain::Float d; - /** - * Exponent (e). - */ - IEC61970::Base::Domain::Float e; - - }; - - } - - } - - } - -} -#endif // MECHLOAD1_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/MechanicalLoadDynamics/MechanicalLoadDynamics.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/MechanicalLoadDynamics/MechanicalLoadDynamics.cpp deleted file mode 100644 index 1d97ec641..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/MechanicalLoadDynamics/MechanicalLoadDynamics.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// MechanicalLoadDynamics.cpp -// Implementation of the Class MechanicalLoadDynamics -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "MechanicalLoadDynamics.h" - -using IEC61970::Dynamics::StandardModels::MechanicalLoadDynamics::MechanicalLoadDynamics; - - -MechanicalLoadDynamics::MechanicalLoadDynamics() - : AsynchronousMachineDynamics(nullptr), SynchronousMachineDynamics(nullptr) -{ - -} - - - -MechanicalLoadDynamics::~MechanicalLoadDynamics(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/MechanicalLoadDynamics/MechanicalLoadDynamics.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/MechanicalLoadDynamics/MechanicalLoadDynamics.h deleted file mode 100644 index 5b50570bc..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/MechanicalLoadDynamics/MechanicalLoadDynamics.h +++ /dev/null @@ -1,51 +0,0 @@ -/////////////////////////////////////////////////////////// -// MechanicalLoadDynamics.h -// Implementation of the Class MechanicalLoadDynamics -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef MECHANICALLOADDYNAMICS_H -#define MECHANICALLOADDYNAMICS_H - -#include "IEC61970/Dynamics/StandardModels/AsynchronousMachineDynamics/AsynchronousMachineDynamics.h" -#include "IEC61970/Dynamics/StandardModels/SynchronousMachineDynamics/SynchronousMachineDynamics.h" -#include "IEC61970/Dynamics/StandardModels/DynamicsFunctionBlock.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace MechanicalLoadDynamics - { - /** - * Mechanical load function block whose behavior is described by reference to a - * standard model or by definition of a user-defined model. - * - */ - class MechanicalLoadDynamics : public IEC61970::Dynamics::StandardModels::DynamicsFunctionBlock - { - - public: - MechanicalLoadDynamics(); - virtual ~MechanicalLoadDynamics(); - /** - * Asynchronous machine model with which this mechanical load model is associated. - */ - IEC61970::Dynamics::StandardModels::AsynchronousMachineDynamics::AsynchronousMachineDynamics *AsynchronousMachineDynamics; - /** - * Synchronous machine model with which this mechanical load model is associated. - */ - IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::SynchronousMachineDynamics *SynchronousMachineDynamics; - - }; - - } - - } - - } - -} -#endif // MECHANICALLOADDYNAMICS_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/OverexcitationLimiterDynamics/OverexcLim2.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/OverexcitationLimiterDynamics/OverexcLim2.cpp deleted file mode 100644 index 76f32ab8a..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/OverexcitationLimiterDynamics/OverexcLim2.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// OverexcLim2.cpp -// Implementation of the Class OverexcLim2 -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#include "OverexcLim2.h" - -using IEC61970::Dynamics::StandardModels::OverexcitationLimiterDynamics::OverexcLim2; - - -OverexcLim2::OverexcLim2(){ - -} - - - -OverexcLim2::~OverexcLim2(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/OverexcitationLimiterDynamics/OverexcLim2.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/OverexcitationLimiterDynamics/OverexcLim2.h deleted file mode 100644 index 2f0e7d6f0..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/OverexcitationLimiterDynamics/OverexcLim2.h +++ /dev/null @@ -1,59 +0,0 @@ -/////////////////////////////////////////////////////////// -// OverexcLim2.h -// Implementation of the Class OverexcLim2 -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#ifndef OVEREXCLIM2_H -#define OVEREXCLIM2_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Dynamics/StandardModels/OverexcitationLimiterDynamics/OverexcitationLimiterDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace OverexcitationLimiterDynamics - { - /** - * Different from LimIEEEOEL, LimOEL2 has a fixed pickup threshold and reduces the - * excitation set-point by mean of non-windup integral regulator. - * Irated is the rated machine excitation current (calculated from nameplate - * conditions: Vnom, Pnom, CosPhinom). - */ - class OverexcLim2 : public IEC61970::Dynamics::StandardModels::OverexcitationLimiterDynamics::OverexcitationLimiterDynamics - { - - public: - OverexcLim2(); - virtual ~OverexcLim2(); - /** - * Limit value of rated field current (IFDLIM). Typical Value = 1.05. - */ - IEC61970::Base::Domain::PU ifdlim; - /** - * Gain Over excitation limiter (KOI). Typical Value = 0.1. - */ - IEC61970::Base::Domain::PU koi; - /** - * Maximum error signal (VOIMAX). Typical Value = 0. - */ - IEC61970::Base::Domain::PU voimax; - /** - * Minimum error signal (VOIMIN). Typical Value = -9999. - */ - IEC61970::Base::Domain::PU voimin; - - }; - - } - - } - - } - -} -#endif // OVEREXCLIM2_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/OverexcitationLimiterDynamics/OverexcLimIEEE.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/OverexcitationLimiterDynamics/OverexcLimIEEE.cpp deleted file mode 100644 index 42f02dd39..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/OverexcitationLimiterDynamics/OverexcLimIEEE.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// OverexcLimIEEE.cpp -// Implementation of the Class OverexcLimIEEE -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#include "OverexcLimIEEE.h" - -using IEC61970::Dynamics::StandardModels::OverexcitationLimiterDynamics::OverexcLimIEEE; - - -OverexcLimIEEE::OverexcLimIEEE(){ - -} - - - -OverexcLimIEEE::~OverexcLimIEEE(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/OverexcitationLimiterDynamics/OverexcLimIEEE.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/OverexcitationLimiterDynamics/OverexcLimIEEE.h deleted file mode 100644 index 53a8e6d81..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/OverexcitationLimiterDynamics/OverexcLimIEEE.h +++ /dev/null @@ -1,74 +0,0 @@ -/////////////////////////////////////////////////////////// -// OverexcLimIEEE.h -// Implementation of the Class OverexcLimIEEE -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#ifndef OVEREXCLIMIEEE_H -#define OVEREXCLIMIEEE_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Dynamics/StandardModels/OverexcitationLimiterDynamics/OverexcitationLimiterDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace OverexcitationLimiterDynamics - { - /** - * The over excitation limiter model is intended to represent the significant - * features of OELs necessary for some large-scale system studies. It is the - * result of a pragmatic approach to obtain a model that can be widely applied - * with attainable data from generator owners. An attempt to include all - * variations in the functionality of OELs and duplicate how they interact with - * the rest of the excitation systems would likely result in a level of - * application insufficient for the studies for which they are intended. - * - * Reference: IEEE OEL 421.5-2005 Section 9. - */ - class OverexcLimIEEE : public IEC61970::Dynamics::StandardModels::OverexcitationLimiterDynamics::OverexcitationLimiterDynamics - { - - public: - OverexcLimIEEE(); - virtual ~OverexcLimIEEE(); - /** - * OEL pickup/drop-out hysteresis (HYST). Typical Value = 0.03. - */ - IEC61970::Base::Domain::PU hyst; - /** - * OEL timed field current limit (IFDLIM). Typical Value = 1.05. - */ - IEC61970::Base::Domain::PU ifdlim; - /** - * OEL instantaneous field current limit (IFDMAX). Typical Value = 1.5. - */ - IEC61970::Base::Domain::PU ifdmax; - /** - * OEL timed field current limiter pickup level (ITFPU). Typical Value - * = 1.05. - */ - IEC61970::Base::Domain::PU itfpu; - /** - * OEL cooldown gain (KCD). Typical Value = 1. - */ - IEC61970::Base::Domain::PU kcd; - /** - * OEL ramped limit rate (KRAMP). Unit = PU/sec. Typical Value = 10. - */ - IEC61970::Base::Domain::Float kramp; - - }; - - } - - } - - } - -} -#endif // OVEREXCLIMIEEE_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/OverexcitationLimiterDynamics/OverexcLimX1.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/OverexcitationLimiterDynamics/OverexcLimX1.cpp deleted file mode 100644 index 8cc244522..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/OverexcitationLimiterDynamics/OverexcLimX1.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// OverexcLimX1.cpp -// Implementation of the Class OverexcLimX1 -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#include "OverexcLimX1.h" - -using IEC61970::Dynamics::StandardModels::OverexcitationLimiterDynamics::OverexcLimX1; - - -OverexcLimX1::OverexcLimX1(){ - -} - - - -OverexcLimX1::~OverexcLimX1(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/OverexcitationLimiterDynamics/OverexcLimX1.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/OverexcitationLimiterDynamics/OverexcLimX1.h deleted file mode 100644 index e8dd48e6f..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/OverexcitationLimiterDynamics/OverexcLimX1.h +++ /dev/null @@ -1,87 +0,0 @@ -/////////////////////////////////////////////////////////// -// OverexcLimX1.h -// Implementation of the Class OverexcLimX1 -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#ifndef OVEREXCLIMX1_H -#define OVEREXCLIMX1_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/OverexcitationLimiterDynamics/OverexcitationLimiterDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace OverexcitationLimiterDynamics - { - /** - * Field voltage over excitation limiter. - */ - class OverexcLimX1 : public IEC61970::Dynamics::StandardModels::OverexcitationLimiterDynamics::OverexcitationLimiterDynamics - { - - public: - OverexcLimX1(); - virtual ~OverexcLimX1(); - /** - * Low voltage point on the inverse time characteristic (EFD1). - * Typical Value = 1.1. - */ - IEC61970::Base::Domain::PU efd1; - /** - * Mid voltage point on the inverse time characteristic (EFD2). - * Typical Value = 1.2. - */ - IEC61970::Base::Domain::PU efd2; - /** - * High voltage point on the inverse time characteristic (EFD3). - * Typical Value = 1.5. - */ - IEC61970::Base::Domain::PU efd3; - /** - * Desired field voltage (EFDDES). Typical Value = 0.9. - */ - IEC61970::Base::Domain::PU efddes; - /** - * Rated field voltage (EFDRATED). Typical Value = 1.05. - */ - IEC61970::Base::Domain::PU efdrated; - /** - * Gain (KMX). Typical Value = 0.01. - */ - IEC61970::Base::Domain::PU kmx; - /** - * Time to trip the exciter at the low voltage point on the inverse time - * characteristic (TIME1). Typical Value = 120. - */ - IEC61970::Base::Domain::Seconds t1; - /** - * Time to trip the exciter at the mid voltage point on the inverse time - * characteristic (TIME2). Typical Value = 40. - */ - IEC61970::Base::Domain::Seconds t2; - /** - * Time to trip the exciter at the high voltage point on the inverse time - * characteristic (TIME3). Typical Value = 15. - */ - IEC61970::Base::Domain::Seconds t3; - /** - * Low voltage limit (VLOW) (>0). - */ - IEC61970::Base::Domain::PU vlow; - - }; - - } - - } - - } - -} -#endif // OVEREXCLIMX1_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/OverexcitationLimiterDynamics/OverexcLimX2.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/OverexcitationLimiterDynamics/OverexcLimX2.cpp deleted file mode 100644 index 8f0353857..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/OverexcitationLimiterDynamics/OverexcLimX2.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// OverexcLimX2.cpp -// Implementation of the Class OverexcLimX2 -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#include "OverexcLimX2.h" - -using IEC61970::Dynamics::StandardModels::OverexcitationLimiterDynamics::OverexcLimX2; - - -OverexcLimX2::OverexcLimX2(){ - -} - - - -OverexcLimX2::~OverexcLimX2(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/OverexcitationLimiterDynamics/OverexcLimX2.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/OverexcitationLimiterDynamics/OverexcLimX2.h deleted file mode 100644 index 382d03ecd..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/OverexcitationLimiterDynamics/OverexcLimX2.h +++ /dev/null @@ -1,98 +0,0 @@ -/////////////////////////////////////////////////////////// -// OverexcLimX2.h -// Implementation of the Class OverexcLimX2 -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#ifndef OVEREXCLIMX2_H -#define OVEREXCLIMX2_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/OverexcitationLimiterDynamics/OverexcitationLimiterDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace OverexcitationLimiterDynamics - { - /** - * Field Voltage or Current overexcitation limiter designed to protect the - * generator field of an AC machine with automatic excitation control from - * overheating due to prolonged overexcitation. - */ - class OverexcLimX2 : public IEC61970::Dynamics::StandardModels::OverexcitationLimiterDynamics::OverexcitationLimiterDynamics - { - - public: - OverexcLimX2(); - virtual ~OverexcLimX2(); - /** - * Low voltage or current point on the inverse time characteristic - * (EFD1). Typical Value = 1.1. - */ - IEC61970::Base::Domain::PU efd1; - /** - * Mid voltage or current point on the inverse time characteristic - * (EFD2). Typical Value = 1.2. - */ - IEC61970::Base::Domain::PU efd2; - /** - * High voltage or current point on the inverse time characteristic - * (EFD3). Typical Value = 1.5. - */ - IEC61970::Base::Domain::PU efd3; - /** - * Desired field voltage if m=F or field current if m=T (EFDDES). - * Typical Value = 1. - */ - IEC61970::Base::Domain::PU efddes; - /** - * Rated field voltage if m=F or field current if m=T (EFDRATED). - * Typical Value = 1.05. - */ - IEC61970::Base::Domain::PU efdrated; - /** - * Gain (KMX). Typical Value = 0.002. - */ - IEC61970::Base::Domain::PU kmx; - /** - * (m). - * true = IFD limiting - * false = EFD limiting. - */ - IEC61970::Base::Domain::Boolean m; - /** - * Time to trip the exciter at the low voltage or current point on the inverse - * time characteristic (TIME1). Typical Value = 120. - */ - IEC61970::Base::Domain::Seconds t1; - /** - * Time to trip the exciter at the mid voltage or current point on the inverse - * time characteristic (TIME2). Typical Value = 40. - */ - IEC61970::Base::Domain::Seconds t2; - /** - * Time to trip the exciter at the high voltage or current point on the inverse - * time characteristic (TIME3). Typical Value = 15. - */ - IEC61970::Base::Domain::Seconds t3; - /** - * Low voltage limit (VLOW) (>0). - */ - IEC61970::Base::Domain::PU vlow; - - }; - - } - - } - - } - -} -#endif // OVEREXCLIMX2_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/OverexcitationLimiterDynamics/OverexcitationLimiterDynamics.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/OverexcitationLimiterDynamics/OverexcitationLimiterDynamics.cpp deleted file mode 100644 index 8b11107fc..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/OverexcitationLimiterDynamics/OverexcitationLimiterDynamics.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// OverexcitationLimiterDynamics.cpp -// Implementation of the Class OverexcitationLimiterDynamics -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#include "OverexcitationLimiterDynamics.h" - -using IEC61970::Dynamics::StandardModels::OverexcitationLimiterDynamics::OverexcitationLimiterDynamics; - - -OverexcitationLimiterDynamics::OverexcitationLimiterDynamics() - : ExcitationSystemDynamics(nullptr) -{ - -} - - - -OverexcitationLimiterDynamics::~OverexcitationLimiterDynamics(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/OverexcitationLimiterDynamics/OverexcitationLimiterDynamics.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/OverexcitationLimiterDynamics/OverexcitationLimiterDynamics.h deleted file mode 100644 index 3824e73af..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/OverexcitationLimiterDynamics/OverexcitationLimiterDynamics.h +++ /dev/null @@ -1,47 +0,0 @@ -/////////////////////////////////////////////////////////// -// OverexcitationLimiterDynamics.h -// Implementation of the Class OverexcitationLimiterDynamics -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#ifndef OVEREXCITATIONLIMITERDYNAMICS_H -#define OVEREXCITATIONLIMITERDYNAMICS_H - -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" -#include "IEC61970/Dynamics/StandardModels/DynamicsFunctionBlock.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace OverexcitationLimiterDynamics - { - /** - * OOverexcitation limiter function block whose - * behaviour is described by reference to a standard model or by definition of a user-defined model. - */ - class OverexcitationLimiterDynamics : public IEC61970::Dynamics::StandardModels::DynamicsFunctionBlock - { - - public: - OverexcitationLimiterDynamics(); - virtual ~OverexcitationLimiterDynamics(); - /** - * Excitation system model with which this overexcitation limiter model is - * associated. - */ - IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics *ExcitationSystemDynamics; - - }; - - } - - } - - } - -} -#endif // OVEREXCITATIONLIMITERDYNAMICS_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PFVArControllerType1Dynamics/PFVArControllerType1Dynamics.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PFVArControllerType1Dynamics/PFVArControllerType1Dynamics.cpp deleted file mode 100644 index 7835263f7..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PFVArControllerType1Dynamics/PFVArControllerType1Dynamics.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// PFVArControllerType1Dynamics.cpp -// Implementation of the Class PFVArControllerType1Dynamics -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#include "PFVArControllerType1Dynamics.h" - -using IEC61970::Dynamics::StandardModels::PFVArControllerType1Dynamics::PFVArControllerType1Dynamics; - - -PFVArControllerType1Dynamics::PFVArControllerType1Dynamics() - : ExcitationSystemDynamics(nullptr), RemoteInputSignal(nullptr) -{ - -} - - - -PFVArControllerType1Dynamics::~PFVArControllerType1Dynamics(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PFVArControllerType1Dynamics/PFVArControllerType1Dynamics.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PFVArControllerType1Dynamics/PFVArControllerType1Dynamics.h deleted file mode 100644 index fea3b5332..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PFVArControllerType1Dynamics/PFVArControllerType1Dynamics.h +++ /dev/null @@ -1,52 +0,0 @@ -/////////////////////////////////////////////////////////// -// PFVArControllerType1Dynamics.h -// Implementation of the Class PFVArControllerType1Dynamics -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#ifndef PFVARCONTROLLERTYPE1DYNAMICS_H -#define PFVARCONTROLLERTYPE1DYNAMICS_H - -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" -#include "IEC61970/Dynamics/StandardModels/DynamicsFunctionBlock.h" -#include "IEC61970/Dynamics/StandardInterconnections/RemoteInputSignal.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace PFVArControllerType1Dynamics - { - /** - * Power Factor or VAr controller Type I function block whose behaviour is - * described by reference to a standard model or by - * definition of a user-defined model. - */ - class PFVArControllerType1Dynamics : public IEC61970::Dynamics::StandardModels::DynamicsFunctionBlock - { - - public: - PFVArControllerType1Dynamics(); - virtual ~PFVArControllerType1Dynamics(); - /** - * Excitation system model with which this Power Factor or VAr controller Type I - * model is associated. - */ - IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics *ExcitationSystemDynamics; - /** - * Remote input signal used by this Power Factor or VAr controller Type I model. - */ - IEC61970::Dynamics::StandardInterconnections::RemoteInputSignal *RemoteInputSignal; - - }; - - } - - } - - } - -} -#endif // PFVARCONTROLLERTYPE1DYNAMICS_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PFVArControllerType1Dynamics/PFVArType1IEEEPFController.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PFVArControllerType1Dynamics/PFVArType1IEEEPFController.cpp deleted file mode 100644 index fb7d94da1..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PFVArControllerType1Dynamics/PFVArType1IEEEPFController.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// PFVArType1IEEEPFController.cpp -// Implementation of the Class PFVArType1IEEEPFController -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#include "PFVArType1IEEEPFController.h" - -using IEC61970::Dynamics::StandardModels::PFVArControllerType1Dynamics::PFVArType1IEEEPFController; - - -PFVArType1IEEEPFController::PFVArType1IEEEPFController(){ - -} - - - -PFVArType1IEEEPFController::~PFVArType1IEEEPFController(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PFVArControllerType1Dynamics/PFVArType1IEEEPFController.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PFVArControllerType1Dynamics/PFVArType1IEEEPFController.h deleted file mode 100644 index f8cfa7f6b..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PFVArControllerType1Dynamics/PFVArType1IEEEPFController.h +++ /dev/null @@ -1,84 +0,0 @@ -/////////////////////////////////////////////////////////// -// PFVArType1IEEEPFController.h -// Implementation of the Class PFVArType1IEEEPFController -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#ifndef PFVARTYPE1IEEEPFCONTROLLER_H -#define PFVARTYPE1IEEEPFCONTROLLER_H - -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Dynamics/StandardModels/PFVArControllerType1Dynamics/PFVArControllerType1Dynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace PFVArControllerType1Dynamics - { - /** - * The class represents IEEE PF Controller Type 1 which operates by moving the - * voltage reference directly. - * - * Reference: IEEE Standard 421.5-2005 Section 11.2. - */ - class PFVArType1IEEEPFController : public IEC61970::Dynamics::StandardModels::PFVArControllerType1Dynamics::PFVArControllerType1Dynamics - { - - public: - PFVArType1IEEEPFController(); - virtual ~PFVArType1IEEEPFController(); - /** - * Overexcitation Flag (OVEX) - * true = overexcited - * false = underexcited. - */ - IEC61970::Base::Domain::Boolean ovex; - /** - * PF controller time delay (TPFC). Typical Value = 5. - */ - IEC61970::Base::Domain::Seconds tpfc; - /** - * Minimum machine terminal current needed to enable pf/var controller - * (VITMIN). - */ - IEC61970::Base::Domain::PU vitmin; - /** - * Synchronous machine power factor (VPF). - */ - IEC61970::Base::Domain::PU vpf; - /** - * PF controller dead band (VPFC_BW). Typical Value = 0. - * 05. - */ - IEC61970::Base::Domain::Float vpfcbw; - /** - * PF controller reference (VPFREF). - */ - IEC61970::Base::Domain::PU vpfref; - /** - * Maximum machine terminal voltage needed for pf/var controller to be enabled - * (VVTMAX). - */ - IEC61970::Base::Domain::PU vvtmax; - /** - * Minimum machine terminal voltage needed to enable pf/var controller - * (VVTMIN). - */ - IEC61970::Base::Domain::PU vvtmin; - - }; - - } - - } - - } - -} -#endif // PFVARTYPE1IEEEPFCONTROLLER_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PFVArControllerType1Dynamics/PFVArType1IEEEVArController.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PFVArControllerType1Dynamics/PFVArType1IEEEVArController.cpp deleted file mode 100644 index b944c706d..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PFVArControllerType1Dynamics/PFVArType1IEEEVArController.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// PFVArType1IEEEVArController.cpp -// Implementation of the Class PFVArType1IEEEVArController -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#include "PFVArType1IEEEVArController.h" - -using IEC61970::Dynamics::StandardModels::PFVArControllerType1Dynamics::PFVArType1IEEEVArController; - - -PFVArType1IEEEVArController::PFVArType1IEEEVArController(){ - -} - - - -PFVArType1IEEEVArController::~PFVArType1IEEEVArController(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PFVArControllerType1Dynamics/PFVArType1IEEEVArController.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PFVArControllerType1Dynamics/PFVArType1IEEEVArController.h deleted file mode 100644 index 59279cb22..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PFVArControllerType1Dynamics/PFVArType1IEEEVArController.h +++ /dev/null @@ -1,72 +0,0 @@ -/////////////////////////////////////////////////////////// -// PFVArType1IEEEVArController.h -// Implementation of the Class PFVArType1IEEEVArController -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#ifndef PFVARTYPE1IEEEVARCONTROLLER_H -#define PFVARTYPE1IEEEVARCONTROLLER_H - -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Dynamics/StandardModels/PFVArControllerType1Dynamics/PFVArControllerType1Dynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace PFVArControllerType1Dynamics - { - /** - * The class represents IEEE VAR Controller Type 1 which operates by moving the - * voltage reference directly. - * - * Reference: IEEE Standard 421.5-2005 Section 11.3. - */ - class PFVArType1IEEEVArController : public IEC61970::Dynamics::StandardModels::PFVArControllerType1Dynamics::PFVArControllerType1Dynamics - { - - public: - PFVArType1IEEEVArController(); - virtual ~PFVArType1IEEEVArController(); - /** - * Var controller time delay (TVARC). Typical Value = 5. - */ - IEC61970::Base::Domain::Seconds tvarc; - /** - * Synchronous machine power factor (VVAR). - */ - IEC61970::Base::Domain::PU vvar; - /** - * Var controller dead band (VVARC_BW). Typical Value = - * 0.02. - */ - IEC61970::Base::Domain::Float vvarcbw; - /** - * Var controller reference (VVARREF). - */ - IEC61970::Base::Domain::PU vvarref; - /** - * Maximum machine terminal voltage needed for pf/var controller to be enabled - * (VVTMAX). - */ - IEC61970::Base::Domain::PU vvtmax; - /** - * Minimum machine terminal voltage needed to enable pf/var controller - * (VVTMIN). - */ - IEC61970::Base::Domain::PU vvtmin; - - }; - - } - - } - - } - -} -#endif // PFVARTYPE1IEEEVARCONTROLLER_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PFVArControllerType2Dynamics/PFVArControllerType2Dynamics.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PFVArControllerType2Dynamics/PFVArControllerType2Dynamics.cpp deleted file mode 100644 index 69a4c14f7..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PFVArControllerType2Dynamics/PFVArControllerType2Dynamics.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// PFVArControllerType2Dynamics.cpp -// Implementation of the Class PFVArControllerType2Dynamics -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#include "PFVArControllerType2Dynamics.h" - -using IEC61970::Dynamics::StandardModels::PFVArControllerType2Dynamics::PFVArControllerType2Dynamics; - - -PFVArControllerType2Dynamics::PFVArControllerType2Dynamics() - : ExcitationSystemDynamics(nullptr) -{ - -} - - - -PFVArControllerType2Dynamics::~PFVArControllerType2Dynamics(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PFVArControllerType2Dynamics/PFVArControllerType2Dynamics.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PFVArControllerType2Dynamics/PFVArControllerType2Dynamics.h deleted file mode 100644 index 030a79247..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PFVArControllerType2Dynamics/PFVArControllerType2Dynamics.h +++ /dev/null @@ -1,47 +0,0 @@ -/////////////////////////////////////////////////////////// -// PFVArControllerType2Dynamics.h -// Implementation of the Class PFVArControllerType2Dynamics -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#ifndef PFVARCONTROLLERTYPE2DYNAMICS_H -#define PFVARCONTROLLERTYPE2DYNAMICS_H - -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" -#include "IEC61970/Dynamics/StandardModels/DynamicsFunctionBlock.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace PFVArControllerType2Dynamics - { - /** - * Power Factor or VAr controller Type II function block whose behaviour is - * described by reference to a standard model or by - * definition of a user-defined model. - */ - class PFVArControllerType2Dynamics : public IEC61970::Dynamics::StandardModels::DynamicsFunctionBlock - { - - public: - PFVArControllerType2Dynamics(); - virtual ~PFVArControllerType2Dynamics(); - /** - * Excitation system model with which this Power Factor or VAr controller Type II - * is associated. - */ - IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics *ExcitationSystemDynamics; - - }; - - } - - } - - } - -} -#endif // PFVARCONTROLLERTYPE2DYNAMICS_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PFVArControllerType2Dynamics/PFVArType2Common1.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PFVArControllerType2Dynamics/PFVArType2Common1.cpp deleted file mode 100644 index 9fa2cd557..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PFVArControllerType2Dynamics/PFVArType2Common1.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// PFVArType2Common1.cpp -// Implementation of the Class PFVArType2Common1 -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#include "PFVArType2Common1.h" - -using IEC61970::Dynamics::StandardModels::PFVArControllerType2Dynamics::PFVArType2Common1; - - -PFVArType2Common1::PFVArType2Common1(){ - -} - - - -PFVArType2Common1::~PFVArType2Common1(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PFVArControllerType2Dynamics/PFVArType2Common1.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PFVArControllerType2Dynamics/PFVArType2Common1.h deleted file mode 100644 index 99eff45cd..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PFVArControllerType2Dynamics/PFVArType2Common1.h +++ /dev/null @@ -1,69 +0,0 @@ -/////////////////////////////////////////////////////////// -// PFVArType2Common1.h -// Implementation of the Class PFVArType2Common1 -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#ifndef PFVARTYPE2COMMON1_H -#define PFVARTYPE2COMMON1_H - -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Dynamics/StandardModels/PFVArControllerType2Dynamics/PFVArControllerType2Dynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace PFVArControllerType2Dynamics - { - /** - * Power factor / Reactive power regulator. This model represents the power factor - * or reactive power controller such as the Basler SCP-250. The controller - * measures power factor or reactive power (PU on generator rated power) and - * compares it with the operator's set point. - */ - class PFVArType2Common1 : public IEC61970::Dynamics::StandardModels::PFVArControllerType2Dynamics::PFVArControllerType2Dynamics - { - - public: - PFVArType2Common1(); - virtual ~PFVArType2Common1(); - /** - * Selector (J). - * true = control mode for reactive power - * false = control mode for power factor. - */ - IEC61970::Base::Domain::Boolean j; - /** - * Reset gain (Ki). - */ - IEC61970::Base::Domain::PU ki; - /** - * Proportional gain (Kp). - */ - IEC61970::Base::Domain::PU kp; - /** - * Output limit (max). - */ - IEC61970::Base::Domain::PU max; - /** - * Reference value of reactive power or power factor (Ref). - * The reference value is initialised by this model. This initialisation may - * override the value exchanged by this attribute to represent a plant operator's - * change of the reference setting. - */ - IEC61970::Base::Domain::PU ref; - - }; - - } - - } - - } - -} -#endif // PFVARTYPE2COMMON1_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PFVArControllerType2Dynamics/PFVArType2IEEEPFController.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PFVArControllerType2Dynamics/PFVArType2IEEEPFController.cpp deleted file mode 100644 index 2c5460cd9..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PFVArControllerType2Dynamics/PFVArType2IEEEPFController.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// PFVArType2IEEEPFController.cpp -// Implementation of the Class PFVArType2IEEEPFController -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#include "PFVArType2IEEEPFController.h" - -using IEC61970::Dynamics::StandardModels::PFVArControllerType2Dynamics::PFVArType2IEEEPFController; - - -PFVArType2IEEEPFController::PFVArType2IEEEPFController(){ - -} - - - -PFVArType2IEEEPFController::~PFVArType2IEEEPFController(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PFVArControllerType2Dynamics/PFVArType2IEEEPFController.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PFVArControllerType2Dynamics/PFVArType2IEEEPFController.h deleted file mode 100644 index 15cbaaec5..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PFVArControllerType2Dynamics/PFVArType2IEEEPFController.h +++ /dev/null @@ -1,82 +0,0 @@ -/////////////////////////////////////////////////////////// -// PFVArType2IEEEPFController.h -// Implementation of the Class PFVArType2IEEEPFController -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#ifndef PFVARTYPE2IEEEPFCONTROLLER_H -#define PFVARTYPE2IEEEPFCONTROLLER_H - -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Dynamics/StandardModels/PFVArControllerType2Dynamics/PFVArControllerType2Dynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace PFVArControllerType2Dynamics - { - /** - * The class represents IEEE PF Controller Type 2 which is a summing point type - * controller and makes up the outside loop of a two-loop system. This controller - * is implemented as a slow PI type controller. The voltage regulator forms the - * inner loop and is implemented as a fast controller. - * - * Reference: IEEE Standard 421.5-2005 Section 11.4. - */ - class PFVArType2IEEEPFController : public IEC61970::Dynamics::StandardModels::PFVArControllerType2Dynamics::PFVArControllerType2Dynamics - { - - public: - PFVArType2IEEEPFController(); - virtual ~PFVArType2IEEEPFController(); - /** - * Overexcitation or under excitation flag (EXLON) - * true = 1 (not in the overexcitation or underexcitation state, integral action - * is active) - * false = 0 (in the overexcitation or underexcitation state, so integral action - * is disabled to allow the limiter to play its role). - */ - IEC61970::Base::Domain::Boolean exlon; - /** - * Integral gain of the pf controller (KI). Typical - * Value = 1. - */ - IEC61970::Base::Domain::PU ki; - /** - * Proportional gain of the pf controller (KP). Typical - * Value = 1. - */ - IEC61970::Base::Domain::PU kp; - /** - * Power factor reference (PFREF). - */ - IEC61970::Base::Domain::PU pfref; - /** - * Maximum output of the pf controller (VCLMT). Typical - * Value = 0.1. - */ - IEC61970::Base::Domain::PU vclmt; - /** - * Voltage regulator reference (VREF). - */ - IEC61970::Base::Domain::PU vref; - /** - * Generator sensing voltage (VS). - */ - IEC61970::Base::Domain::Float vs; - - }; - - } - - } - - } - -} -#endif // PFVARTYPE2IEEEPFCONTROLLER_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PFVArControllerType2Dynamics/PFVArType2IEEEVArController.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PFVArControllerType2Dynamics/PFVArType2IEEEVArController.cpp deleted file mode 100644 index 930621f71..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PFVArControllerType2Dynamics/PFVArType2IEEEVArController.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// PFVArType2IEEEVArController.cpp -// Implementation of the Class PFVArType2IEEEVArController -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#include "PFVArType2IEEEVArController.h" - -using IEC61970::Dynamics::StandardModels::PFVArControllerType2Dynamics::PFVArType2IEEEVArController; - - -PFVArType2IEEEVArController::PFVArType2IEEEVArController(){ - -} - - - -PFVArType2IEEEVArController::~PFVArType2IEEEVArController(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PFVArControllerType2Dynamics/PFVArType2IEEEVArController.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PFVArControllerType2Dynamics/PFVArType2IEEEVArController.h deleted file mode 100644 index 7c7de8493..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PFVArControllerType2Dynamics/PFVArType2IEEEVArController.h +++ /dev/null @@ -1,79 +0,0 @@ -/////////////////////////////////////////////////////////// -// PFVArType2IEEEVArController.h -// Implementation of the Class PFVArType2IEEEVArController -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#ifndef PFVARTYPE2IEEEVARCONTROLLER_H -#define PFVARTYPE2IEEEVARCONTROLLER_H - -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Dynamics/StandardModels/PFVArControllerType2Dynamics/PFVArControllerType2Dynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace PFVArControllerType2Dynamics - { - /** - * The class represents IEEE VAR Controller Type 2 which is a summing point type - * controller. It makes up the outside loop of a two-loop system. This controller - * is implemented as a slow PI type controller, and the voltage regulator forms - * the inner loop and is implemented as a fast controller. - * - * Reference: IEEE Standard 421.5-2005 Section 11.5. - */ - class PFVArType2IEEEVArController : public IEC61970::Dynamics::StandardModels::PFVArControllerType2Dynamics::PFVArControllerType2Dynamics - { - - public: - PFVArType2IEEEVArController(); - virtual ~PFVArType2IEEEVArController(); - /** - * Overexcitation or under excitation flag (EXLON) - * true = 1 (not in the overexcitation or underexcitation state, integral action - * is active) - * false = 0 (in the overexcitation or underexcitation state, so integral action - * is disabled to allow the limiter to play its role). - */ - IEC61970::Base::Domain::Boolean exlon; - /** - * Integral gain of the pf controller (KI). - */ - IEC61970::Base::Domain::PU ki; - /** - * Proportional gain of the pf controller (KP). - */ - IEC61970::Base::Domain::PU kp; - /** - * Reactive power reference (QREF). - */ - IEC61970::Base::Domain::PU qref; - /** - * Maximum output of the pf controller (VCLMT). - */ - IEC61970::Base::Domain::PU vclmt; - /** - * Voltage regulator reference (VREF). - */ - IEC61970::Base::Domain::PU vref; - /** - * Generator sensing voltage (VS). - */ - IEC61970::Base::Domain::Float vs; - - }; - - } - - } - - } - -} -#endif // PFVARTYPE2IEEEVARCONTROLLER_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/InputSignalKind.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/InputSignalKind.h deleted file mode 100644 index 048e9fa42..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/InputSignalKind.h +++ /dev/null @@ -1,76 +0,0 @@ -/////////////////////////////////////////////////////////// -// InputSignalKind.h -// Implementation of the Class InputSignalKind -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef INPUTSIGNALKIND_H -#define INPUTSIGNALKIND_H - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace PowerSystemStabilizerDynamics - { - /** - * Input signal type. In Dynamics modelling, commonly represented by j parameter. - */ - enum class InputSignalKind - { - /** - * Input signal is rotor or shaft speed (angular frequency). - */ - _undef = -1, rotorSpeed, - /** - * Input signal is rotor or shaft angular frequency deviation. - */ - rotorAngularFrequencyDeviation, - /** - * Input signal is bus voltage frequency. This could be a - * terminal frequency or remote frequency. - */ - busFrequency, - /** - * Input signal is deviation of bus voltage frequency. This - * could be a terminal frequency deviation or remote frequency deviation. - */ - busFrequencyDeviation, - /** - * Input signal is generator electrical power on rated S. - */ - generatorElectricalPower, - /** - * Input signal is generating accelerating power. - */ - generatorAcceleratingPower, - /** - * Input signal is bus voltage. This could be a terminal - * voltage or remote voltage. - */ - busVoltage, - /** - * Input signal is derivative of bus voltage. This could be - * a terminal voltage derivative or remote voltage derivative. - */ - busVoltageDerivative, - /** - * Input signal is amplitude of remote branch current. - */ - branchCurrent, - /** - * Input signal is generator field current. - */ - fieldCurrent - }; - - } - - } - - } - -} -#endif // INPUTSIGNALKIND_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PowerSystemStabilizerDynamics.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PowerSystemStabilizerDynamics.cpp deleted file mode 100644 index b332de294..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PowerSystemStabilizerDynamics.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// PowerSystemStabilizerDynamics.cpp -// Implementation of the Class PowerSystemStabilizerDynamics -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "PowerSystemStabilizerDynamics.h" - -using IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PowerSystemStabilizerDynamics; - - -PowerSystemStabilizerDynamics::PowerSystemStabilizerDynamics() - : ExcitationSystemDynamics(nullptr) -{ - -} - - - -PowerSystemStabilizerDynamics::~PowerSystemStabilizerDynamics(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PowerSystemStabilizerDynamics.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PowerSystemStabilizerDynamics.h deleted file mode 100644 index cac5dea46..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PowerSystemStabilizerDynamics.h +++ /dev/null @@ -1,54 +0,0 @@ -/////////////////////////////////////////////////////////// -// PowerSystemStabilizerDynamics.h -// Implementation of the Class PowerSystemStabilizerDynamics -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef POWERSYSTEMSTABILIZERDYNAMICS_H -#define POWERSYSTEMSTABILIZERDYNAMICS_H - -#include - -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" -#include "IEC61970/Dynamics/StandardModels/DynamicsFunctionBlock.h" -#include "IEC61970/Dynamics/StandardInterconnections/RemoteInputSignal.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace PowerSystemStabilizerDynamics - { - /** - * Power system stabilizer function block whose behaviour is described by - * reference to a standard model or by definition of a user- - * defined model. - */ - class PowerSystemStabilizerDynamics : public IEC61970::Dynamics::StandardModels::DynamicsFunctionBlock - { - - public: - PowerSystemStabilizerDynamics(); - virtual ~PowerSystemStabilizerDynamics(); - /** - * Excitation system model with which this power system stabilizer model is - * associated. - */ - IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics *ExcitationSystemDynamics; - /** - * Remote input signal used by this power system stabilizer model. - */ - std::list RemoteInputSignal; - - }; - - } - - } - - } - -} -#endif // POWERSYSTEMSTABILIZERDYNAMICS_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/Pss1.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/Pss1.cpp deleted file mode 100644 index 93ad24b73..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/Pss1.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// Pss1.cpp -// Implementation of the Class Pss1 -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#include "Pss1.h" - -using IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss1; - - -Pss1::Pss1(){ - -} - - - -Pss1::~Pss1(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/Pss1.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/Pss1.h deleted file mode 100644 index 791944c3f..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/Pss1.h +++ /dev/null @@ -1,107 +0,0 @@ -/////////////////////////////////////////////////////////// -// Pss1.h -// Implementation of the Class Pss1 -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#ifndef PSS1_H -#define PSS1_H - -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PowerSystemStabilizerDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace PowerSystemStabilizerDynamics - { - /** - * Italian PSS - three input PSS (speed, frequency, power). - */ - class Pss1 : public IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PowerSystemStabilizerDynamics - { - - public: - Pss1(); - virtual ~Pss1(); - /** - * Frequency power input gain (KF). Typical Value = 5. - */ - IEC61970::Base::Domain::Float kf; - /** - * Electric power input gain (KPE). Typical Value = 0.3. - */ - IEC61970::Base::Domain::Float kpe; - /** - * PSS gain (KS). Typical Value = 1. - */ - IEC61970::Base::Domain::Float ks; - /** - * Shaft speed power input gain (KW). Typical Value = 0. - */ - IEC61970::Base::Domain::Float kw; - /** - * Minimum power PSS enabling (PMIN). Typical Value = 0.25. - */ - IEC61970::Base::Domain::PU pmin; - /** - * Lead/lag time constant (T10). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds t10; - /** - * Washout (T5). Typical Value = 3.5. - */ - IEC61970::Base::Domain::Seconds t5; - /** - * Filter time constant (T6). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds t6; - /** - * Lead/lag time constant (T7). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds t7; - /** - * Lead/lag time constant (T8). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds t8; - /** - * Lead/lag time constant (T9). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds t9; - /** - * Electric power filter time constant (TPE). Typical Value = 0.05. - */ - IEC61970::Base::Domain::Seconds tpe; - /** - * Signal selector (VadAt). - * true = closed (Generator Power is greater than - * Pmin) - * false = open (Pe is smaller than Pmin). - * Typical Value = true. - */ - IEC61970::Base::Domain::Boolean vadat; - /** - * Stabilizer output max limit (VSMN). Typical Value = -0.06. - */ - IEC61970::Base::Domain::PU vsmn; - /** - * Stabilizer output min limit (VSMX). Typical Value = 0.06. - */ - IEC61970::Base::Domain::PU vsmx; - - }; - - } - - } - - } - -} -#endif // PSS1_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/Pss1A.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/Pss1A.cpp deleted file mode 100644 index ca0530c12..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/Pss1A.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// Pss1A.cpp -// Implementation of the Class Pss1A -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#include "Pss1A.h" - -using IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss1A; - - -Pss1A::Pss1A(){ - -} - - - -Pss1A::~Pss1A(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/Pss1A.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/Pss1A.h deleted file mode 100644 index acbfb34b5..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/Pss1A.h +++ /dev/null @@ -1,134 +0,0 @@ -/////////////////////////////////////////////////////////// -// Pss1A.h -// Implementation of the Class Pss1A -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#ifndef PSS1A_H -#define PSS1A_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/InputSignalKind.h" -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PowerSystemStabilizerDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace PowerSystemStabilizerDynamics - { - /** - * Single input power system stabilizer. It is a modified version in order to - * allow representation of various vendors' implementations on PSS type 1A. - */ - class Pss1A : public IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PowerSystemStabilizerDynamics - { - - public: - Pss1A(); - virtual ~Pss1A(); - /** - * Notch filter parameter (A1). - */ - IEC61970::Base::Domain::PU a1; - /** - * Notch filter parameter (A2). - */ - IEC61970::Base::Domain::PU a2; - /** - * Notch filter parameter (A3). - */ - IEC61970::Base::Domain::PU a3; - /** - * Notch filter parameter (A4). - */ - IEC61970::Base::Domain::PU a4; - /** - * Notch filter parameter (A5). - */ - IEC61970::Base::Domain::PU a5; - /** - * Notch filter parameter (A6). - */ - IEC61970::Base::Domain::PU a6; - /** - * Notch filter parameter (A7). - */ - IEC61970::Base::Domain::PU a7; - /** - * Notch filter parameter (A8). - */ - IEC61970::Base::Domain::PU a8; - /** - * Type of input signal. - */ - IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::InputSignalKind inputSignalType = IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::InputSignalKind::_undef; - /** - * Selector (Kd). - * true = e-sTdelay used - * false = e-sTdelay not used. - */ - IEC61970::Base::Domain::Boolean kd; - /** - * Stabilizer gain (Ks). - */ - IEC61970::Base::Domain::PU ks; - /** - * Lead/lag time constant (T1). - */ - IEC61970::Base::Domain::Seconds t1; - /** - * Lead/lag time constant (T2). - */ - IEC61970::Base::Domain::Seconds t2; - /** - * Lead/lag time constant (T3). - */ - IEC61970::Base::Domain::Seconds t3; - /** - * Lead/lag time constant (T4). - */ - IEC61970::Base::Domain::Seconds t4; - /** - * Washout time constant (T5). - */ - IEC61970::Base::Domain::Seconds t5; - /** - * Transducer time constant (T6). - */ - IEC61970::Base::Domain::Seconds t6; - /** - * Time constant (Tdelay). - */ - IEC61970::Base::Domain::Seconds tdelay; - /** - * Stabilizer input cutoff threshold (Vcl). - */ - IEC61970::Base::Domain::PU vcl; - /** - * Stabilizer input cutoff threshold (Vcu). - */ - IEC61970::Base::Domain::PU vcu; - /** - * Maximum stabilizer output (Vrmax). - */ - IEC61970::Base::Domain::PU vrmax; - /** - * Minimum stabilizer output (Vrmin). - */ - IEC61970::Base::Domain::PU vrmin; - - }; - - } - - } - - } - -} -#endif // PSS1A_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/Pss2B.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/Pss2B.cpp deleted file mode 100644 index 49f1a4505..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/Pss2B.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// Pss2B.cpp -// Implementation of the Class Pss2B -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#include "Pss2B.h" - -using IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss2B; - - -Pss2B::Pss2B(){ - -} - - - -Pss2B::~Pss2B(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/Pss2B.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/Pss2B.h deleted file mode 100644 index 54cbce789..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/Pss2B.h +++ /dev/null @@ -1,169 +0,0 @@ -/////////////////////////////////////////////////////////// -// Pss2B.h -// Implementation of the Class Pss2B -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#ifndef PSS2B_H -#define PSS2B_H - -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/InputSignalKind.h" -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Integer.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PowerSystemStabilizerDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace PowerSystemStabilizerDynamics - { - /** - * Modified IEEE PSS2B Model. Extra lead/lag (or rate) block added at end (up to - * 4 lead/lags total). - */ - class Pss2B : public IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PowerSystemStabilizerDynamics - { - - public: - Pss2B(); - virtual ~Pss2B(); - /** - * Numerator constant (a). Typical Value = 1. - */ - IEC61970::Base::Domain::Float a; - /** - * Type of input signal #1. Typical Value = rotorSpeed. - */ - IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::InputSignalKind inputSignal1Type = IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::InputSignalKind::_undef; - /** - * Type of input signal #2. Typical Value = generatorElectricalPower. - */ - IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::InputSignalKind inputSignal2Type = IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::InputSignalKind::_undef; - /** - * Stabilizer gain (Ks1). Typical Value = 12. - */ - IEC61970::Base::Domain::PU ks1; - /** - * Gain on signal #2 (Ks2). Typical Value = 0.2. - */ - IEC61970::Base::Domain::PU ks2; - /** - * Gain on signal #2 input before ramp-tracking filter (Ks3). Typical Value = 1. - */ - IEC61970::Base::Domain::PU ks3; - /** - * Gain on signal #2 input after ramp-tracking filter (Ks4). Typical Value = 1. - */ - IEC61970::Base::Domain::PU ks4; - /** - * Denominator order of ramp tracking filter (M). Typical Value = 5. - */ - IEC61970::Base::Domain::Integer m; - /** - * Order of ramp tracking filter (N). Typical Value = 1. - */ - IEC61970::Base::Domain::Integer n; - /** - * Lead/lag time constant (T1). Typical Value = 0.12. - */ - IEC61970::Base::Domain::Seconds t1; - /** - * Lead/lag time constant (T10). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds t10; - /** - * Lead/lag time constant (T11). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds t11; - /** - * Lead/lag time constant (T2). Typical Value = 0.02. - */ - IEC61970::Base::Domain::Seconds t2; - /** - * Lead/lag time constant (T3). Typical Value = 0.3. - */ - IEC61970::Base::Domain::Seconds t3; - /** - * Lead/lag time constant (T4). Typical Value = 0.02. - */ - IEC61970::Base::Domain::Seconds t4; - /** - * Time constant on signal #1 (T6). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds t6; - /** - * Time constant on signal #2 (T7). Typical Value = 2. - */ - IEC61970::Base::Domain::Seconds t7; - /** - * Lead of ramp tracking filter (T8). Typical Value = 0.2. - */ - IEC61970::Base::Domain::Seconds t8; - /** - * Lag of ramp tracking filter (T9). Typical Value = 0.1. - */ - IEC61970::Base::Domain::Seconds t9; - /** - * Lead constant (Ta). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds ta; - /** - * Lag time constant (Tb). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tb; - /** - * First washout on signal #1 (Tw1). Typical Value = 2. - */ - IEC61970::Base::Domain::Seconds tw1; - /** - * Second washout on signal #1 (Tw2). Typical Value = 2. - */ - IEC61970::Base::Domain::Seconds tw2; - /** - * First washout on signal #2 (Tw3). Typical Value = 2. - */ - IEC61970::Base::Domain::Seconds tw3; - /** - * Second washout on signal #2 (Tw4). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tw4; - /** - * Input signal #1 max limit (Vsi1max). Typical Value = 2. - */ - IEC61970::Base::Domain::PU vsi1max; - /** - * Input signal #1 min limit (Vsi1min). Typical Value = -2. - */ - IEC61970::Base::Domain::PU vsi1min; - /** - * Input signal #2 max limit (Vsi2max). Typical Value = 2. - */ - IEC61970::Base::Domain::PU vsi2max; - /** - * Input signal #2 min limit (Vsi2min). Typical Value = -2. - */ - IEC61970::Base::Domain::PU vsi2min; - /** - * Stabilizer output max limit (Vstmax). Typical Value = 0.1. - */ - IEC61970::Base::Domain::PU vstmax; - /** - * Stabilizer output min limit (Vstmin). Typical Value = -0.1. - */ - IEC61970::Base::Domain::PU vstmin; - - }; - - } - - } - - } - -} -#endif // PSS2B_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/Pss2ST.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/Pss2ST.cpp deleted file mode 100644 index 4949d56a1..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/Pss2ST.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// Pss2ST.cpp -// Implementation of the Class Pss2ST -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#include "Pss2ST.h" - -using IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss2ST; - - -Pss2ST::Pss2ST(){ - -} - - - -Pss2ST::~Pss2ST(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/Pss2ST.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/Pss2ST.h deleted file mode 100644 index e8bcb9dfe..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/Pss2ST.h +++ /dev/null @@ -1,114 +0,0 @@ -/////////////////////////////////////////////////////////// -// Pss2ST.h -// Implementation of the Class Pss2ST -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#ifndef PSS2ST_H -#define PSS2ST_H - -#include "IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/InputSignalKind.h" -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PowerSystemStabilizerDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace PowerSystemStabilizerDynamics - { - /** - * PTI Microprocessor-Based Stabilizer type 1. - */ - class Pss2ST : public IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PowerSystemStabilizerDynamics - { - - public: - Pss2ST(); - virtual ~Pss2ST(); - /** - * Type of input signal #1. Typical Value = rotorAngularFrequencyDeviation. - */ - IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::InputSignalKind inputSignal1Type = IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::InputSignalKind::_undef; - /** - * Type of input signal #2. Typical Value = generatorElectricalPower. - */ - IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::InputSignalKind inputSignal2Type = IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::InputSignalKind::_undef; - /** - * Gain (K1). - */ - IEC61970::Base::Domain::PU k1; - /** - * Gain (K2). - */ - IEC61970::Base::Domain::PU k2; - /** - * Limiter (Lsmax). - */ - IEC61970::Base::Domain::PU lsmax; - /** - * Limiter (Lsmin). - */ - IEC61970::Base::Domain::PU lsmin; - /** - * Time constant (T1). - */ - IEC61970::Base::Domain::Seconds t1; - /** - * Time constant (T10). - */ - IEC61970::Base::Domain::Seconds t10; - /** - * Time constant (T2). - */ - IEC61970::Base::Domain::Seconds t2; - /** - * Time constant (T3). - */ - IEC61970::Base::Domain::Seconds t3; - /** - * Time constant (T4). - */ - IEC61970::Base::Domain::Seconds t4; - /** - * Time constant (T5). - */ - IEC61970::Base::Domain::Seconds t5; - /** - * Time constant (T6). - */ - IEC61970::Base::Domain::Seconds t6; - /** - * Time constant (T7). - */ - IEC61970::Base::Domain::Seconds t7; - /** - * Time constant (T8). - */ - IEC61970::Base::Domain::Seconds t8; - /** - * Time constant (T9). - */ - IEC61970::Base::Domain::Seconds t9; - /** - * Cutoff limiter (Vcl). - */ - IEC61970::Base::Domain::PU vcl; - /** - * Cutoff limiter (Vcu). - */ - IEC61970::Base::Domain::PU vcu; - - }; - - } - - } - - } - -} -#endif // PSS2ST_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/Pss5.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/Pss5.cpp deleted file mode 100644 index 0dfbdab43..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/Pss5.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// Pss5.cpp -// Implementation of the Class Pss5 -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#include "Pss5.h" - -using IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss5; - - -Pss5::Pss5(){ - -} - - - -Pss5::~Pss5(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/Pss5.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/Pss5.h deleted file mode 100644 index 804fd8c15..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/Pss5.h +++ /dev/null @@ -1,121 +0,0 @@ -/////////////////////////////////////////////////////////// -// Pss5.h -// Implementation of the Class Pss5 -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#ifndef PSS5_H -#define PSS5_H - -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PowerSystemStabilizerDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace PowerSystemStabilizerDynamics - { - /** - * Italian PSS - Detailed PSS. - */ - class Pss5 : public IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PowerSystemStabilizerDynamics - { - - public: - Pss5(); - virtual ~Pss5(); - /** - * Selector for Second washout enabling (CTW2). - * true = second washout filter is bypassed - * false = second washout filter in use. - * Typical Value = true. - */ - IEC61970::Base::Domain::Boolean ctw2; - /** - * Stabilizer output dead band (DeadBand). Typical Value = 0. - */ - IEC61970::Base::Domain::PU deadband; - /** - * Selector for Frequency/shaft speed input (IsFreq). - * true = speed - * false = frequency. - * Typical Value = true. - */ - IEC61970::Base::Domain::Boolean isfreq; - /** - * Frequency/shaft speed input gain (KF). Typical Value = 5. - */ - IEC61970::Base::Domain::Float kf; - /** - * Electric power input gain (KPE). Typical Value = 0.3. - */ - IEC61970::Base::Domain::Float kpe; - /** - * PSS gain (KPSS). Typical Value = 1. - */ - IEC61970::Base::Domain::Float kpss; - /** - * Minimum power PSS enabling (Pmn). Typical Value = 0.25. - */ - IEC61970::Base::Domain::PU pmm; - /** - * Lead/lag time constant (TL1). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tl1; - /** - * Lead/lag time constant (TL2). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tl2; - /** - * Lead/lag time constant (TL3). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tl3; - /** - * Lead/lag time constant (TL4). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tl4; - /** - * Electric power filter time constant (TPE). Typical Value = 0.05. - */ - IEC61970::Base::Domain::Seconds tpe; - /** - * First WashOut (Tw1). Typical Value = 3.5. - */ - IEC61970::Base::Domain::Seconds tw1; - /** - * Second WashOut (Tw2). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tw2; - /** - * Signal selector (VadAtt). - * true = closed (Generator Power is greater than - * Pmin) - * false = open (Pe is smaller than Pmin). - * Typical Value = true. - */ - IEC61970::Base::Domain::Boolean vadat; - /** - * Stabilizer output max limit (VSMN). Typical Value = -0.1. - */ - IEC61970::Base::Domain::PU vsmn; - /** - * Stabilizer output min limit (VSMX). Typical Value = 0.1. - */ - IEC61970::Base::Domain::PU vsmx; - - }; - - } - - } - - } - -} -#endif // PSS5_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssELIN2.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssELIN2.cpp deleted file mode 100644 index dc648e757..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssELIN2.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// PssELIN2.cpp -// Implementation of the Class PssELIN2 -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#include "PssELIN2.h" - -using IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssELIN2; - - -PssELIN2::PssELIN2(){ - -} - - - -PssELIN2::~PssELIN2(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssELIN2.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssELIN2.h deleted file mode 100644 index df72c104c..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssELIN2.h +++ /dev/null @@ -1,86 +0,0 @@ -/////////////////////////////////////////////////////////// -// PssELIN2.h -// Implementation of the Class PssELIN2 -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#ifndef PSSELIN2_H -#define PSSELIN2_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PowerSystemStabilizerDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace PowerSystemStabilizerDynamics - { - /** - * Power system stabilizer typically associated with ExcELIN2 (though PssIEEE2B or - * Pss2B can also be used). - */ - class PssELIN2 : public IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PowerSystemStabilizerDynamics - { - - public: - PssELIN2(); - virtual ~PssELIN2(); - /** - * Coefficient (a_PSS). Typical Value = 0.1. - */ - IEC61970::Base::Domain::PU apss; - /** - * Gain (Ks1). Typical Value = 1. - */ - IEC61970::Base::Domain::PU ks1; - /** - * Gain (Ks2). Typical Value = 0.1. - */ - IEC61970::Base::Domain::PU ks2; - /** - * Coefficient (p_PSS) (>=0 and <=4). Typical Value = 0.1. - */ - IEC61970::Base::Domain::PU ppss; - /** - * PSS limiter (psslim). Typical Value = 0.1. - */ - IEC61970::Base::Domain::PU psslim; - /** - * Time constant (Ts1). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds ts1; - /** - * Time constant (Ts2). Typical Value = 1. - */ - IEC61970::Base::Domain::Seconds ts2; - /** - * Time constant (Ts3). Typical Value = 1. - */ - IEC61970::Base::Domain::Seconds ts3; - /** - * Time constant (Ts4). Typical Value = 0.1. - */ - IEC61970::Base::Domain::Seconds ts4; - /** - * Time constant (Ts5). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds ts5; - /** - * Time constant (Ts6). Typical Value = 1. - */ - IEC61970::Base::Domain::Seconds ts6; - - }; - - } - - } - - } - -} -#endif // PSSELIN2_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssIEEE1A.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssIEEE1A.cpp deleted file mode 100644 index 83453f28a..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssIEEE1A.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// PssIEEE1A.cpp -// Implementation of the Class PssIEEE1A -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "PssIEEE1A.h" - -using IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE1A; - - -PssIEEE1A::PssIEEE1A(){ - -} - - - -PssIEEE1A::~PssIEEE1A(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssIEEE1A.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssIEEE1A.h deleted file mode 100644 index dab8e5746..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssIEEE1A.h +++ /dev/null @@ -1,94 +0,0 @@ -/////////////////////////////////////////////////////////// -// PssIEEE1A.h -// Implementation of the Class PssIEEE1A -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef PSSIEEE1A_H -#define PSSIEEE1A_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/InputSignalKind.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PowerSystemStabilizerDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace PowerSystemStabilizerDynamics - { - /** - * The class represents IEEE Std 421.5-2005 type PSS1A power system stabilizer - * model. PSS1A is the generalized form of a PSS with a single input. Some common - * stabilizer input signals are speed, frequency, and power. - * - * Reference: IEEE 1A 421.5-2005 Section 8.1. - */ - class PssIEEE1A : public IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PowerSystemStabilizerDynamics - { - - public: - PssIEEE1A(); - virtual ~PssIEEE1A(); - /** - * PSS signal conditioning frequency filter constant (A1). Typical Value = 0.061. - */ - IEC61970::Base::Domain::PU a1; - /** - * PSS signal conditioning frequency filter constant (A2). Typical Value = 0.0017. - */ - IEC61970::Base::Domain::PU a2; - /** - * Type of input signal. Typical Value = rotorAngularFrequencyDeviation. - */ - IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::InputSignalKind inputSignalType = IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::InputSignalKind::_undef; - /** - * Stabilizer gain (Ks). Typical Value = 5. - */ - IEC61970::Base::Domain::PU ks; - /** - * Lead/lag time constant (T1). Typical Value = 0.3. - */ - IEC61970::Base::Domain::Seconds t1; - /** - * Lead/lag time constant (T2). Typical Value = 0.03. - */ - IEC61970::Base::Domain::Seconds t2; - /** - * Lead/lag time constant (T3). Typical Value = 0.3. - */ - IEC61970::Base::Domain::Seconds t3; - /** - * Lead/lag time constant (T4). Typical Value = 0.03. - */ - IEC61970::Base::Domain::Seconds t4; - /** - * Washout time constant (T5). Typical Value = 10. - */ - IEC61970::Base::Domain::Seconds t5; - /** - * Transducer time constant (T6). Typical Value = 0.01. - */ - IEC61970::Base::Domain::Seconds t6; - /** - * Maximum stabilizer output (Vrmax). Typical Value = 0.05. - */ - IEC61970::Base::Domain::PU vrmax; - /** - * Minimum stabilizer output (Vrmin). Typical Value = -0.05. - */ - IEC61970::Base::Domain::PU vrmin; - - }; - - } - - } - - } - -} -#endif // PSSIEEE1A_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssIEEE2B.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssIEEE2B.cpp deleted file mode 100644 index f21f3100d..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssIEEE2B.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// PssIEEE2B.cpp -// Implementation of the Class PssIEEE2B -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "PssIEEE2B.h" - -using IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE2B; - - -PssIEEE2B::PssIEEE2B(){ - -} - - - -PssIEEE2B::~PssIEEE2B(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssIEEE2B.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssIEEE2B.h deleted file mode 100644 index b55f47558..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssIEEE2B.h +++ /dev/null @@ -1,156 +0,0 @@ -/////////////////////////////////////////////////////////// -// PssIEEE2B.h -// Implementation of the Class PssIEEE2B -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef PSSIEEE2B_H -#define PSSIEEE2B_H - -#include "IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/InputSignalKind.h" -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Integer.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PowerSystemStabilizerDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace PowerSystemStabilizerDynamics - { - /** - * The class represents IEEE Std 421.5-2005 type PSS2B power system stabilizer - * model. This stabilizer model is designed to represent a variety of dual-input - * stabilizers, which normally use combinations of power and speed or frequency to - * derive the stabilizing signal. - * - * Reference: IEEE 2B 421.5-2005 Section 8.2. - */ - class PssIEEE2B : public IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PowerSystemStabilizerDynamics - { - - public: - PssIEEE2B(); - virtual ~PssIEEE2B(); - /** - * Type of input signal #1. Typical Value = rotorSpeed. - */ - IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::InputSignalKind inputSignal1Type = IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::InputSignalKind::_undef; - /** - * Type of input signal #2. Typical Value = generatorElectricalPower. - */ - IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::InputSignalKind inputSignal2Type = IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::InputSignalKind::_undef; - /** - * Stabilizer gain (Ks1). Typical Value = 12. - */ - IEC61970::Base::Domain::PU ks1; - /** - * Gain on signal #2 (Ks2). Typical Value = 0.2. - */ - IEC61970::Base::Domain::PU ks2; - /** - * Gain on signal #2 input before ramp-tracking filter (Ks3). Typical Value = 1. - */ - IEC61970::Base::Domain::PU ks3; - /** - * Denominator order of ramp tracking filter (M). Typical Value = 5. - */ - IEC61970::Base::Domain::Integer m; - /** - * Order of ramp tracking filter (N). Typical Value = 1. - */ - IEC61970::Base::Domain::Integer n; - /** - * Lead/lag time constant (T1). Typical Value = 0.12. - */ - IEC61970::Base::Domain::Seconds t1; - /** - * Lead/lag time constant (T10). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds t10; - /** - * Lead/lag time constant (T11). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds t11; - /** - * Lead/lag time constant (T2). Typical Value = 0.02. - */ - IEC61970::Base::Domain::Seconds t2; - /** - * Lead/lag time constant (T3). Typical Value = 0.3. - */ - IEC61970::Base::Domain::Seconds t3; - /** - * Lead/lag time constant (T4). Typical Value = 0.02. - */ - IEC61970::Base::Domain::Seconds t4; - /** - * Time constant on signal #1 (T6). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds t6; - /** - * Time constant on signal #2 (T7). Typical Value = 2. - */ - IEC61970::Base::Domain::Seconds t7; - /** - * Lead of ramp tracking filter (T8). Typical Value = 0.2. - */ - IEC61970::Base::Domain::Seconds t8; - /** - * Lag of ramp tracking filter (T9). Typical Value = 0.1. - */ - IEC61970::Base::Domain::Seconds t9; - /** - * First washout on signal #1 (Tw1). Typical Value = 2. - */ - IEC61970::Base::Domain::Seconds tw1; - /** - * Second washout on signal #1 (Tw2). Typical Value = 2. - */ - IEC61970::Base::Domain::Seconds tw2; - /** - * First washout on signal #2 (Tw3). Typical Value = 2. - */ - IEC61970::Base::Domain::Seconds tw3; - /** - * Second washout on signal #2 (Tw4). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tw4; - /** - * Input signal #1 max limit (Vsi1max). Typical Value = 2. - */ - IEC61970::Base::Domain::PU vsi1max; - /** - * Input signal #1 min limit (Vsi1min). Typical Value = -2. - */ - IEC61970::Base::Domain::PU vsi1min; - /** - * Input signal #2 max limit (Vsi2max). Typical Value = 2. - */ - IEC61970::Base::Domain::PU vsi2max; - /** - * Input signal #2 min limit (Vsi2min). Typical Value = -2. - */ - IEC61970::Base::Domain::PU vsi2min; - /** - * Stabilizer output max limit (Vstmax). Typical Value = 0.1. - */ - IEC61970::Base::Domain::PU vstmax; - /** - * Stabilizer output min limit (Vstmin). Typical Value = -0.1. - */ - IEC61970::Base::Domain::PU vstmin; - - }; - - } - - } - - } - -} -#endif // PSSIEEE2B_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssIEEE3B.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssIEEE3B.cpp deleted file mode 100644 index 8274808ba..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssIEEE3B.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// PssIEEE3B.cpp -// Implementation of the Class PssIEEE3B -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "PssIEEE3B.h" - -using IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE3B; - - -PssIEEE3B::PssIEEE3B(){ - -} - - - -PssIEEE3B::~PssIEEE3B(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssIEEE3B.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssIEEE3B.h deleted file mode 100644 index 9d489b634..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssIEEE3B.h +++ /dev/null @@ -1,123 +0,0 @@ -/////////////////////////////////////////////////////////// -// PssIEEE3B.h -// Implementation of the Class PssIEEE3B -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef PSSIEEE3B_H -#define PSSIEEE3B_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/InputSignalKind.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PowerSystemStabilizerDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace PowerSystemStabilizerDynamics - { - /** - * The class represents IEEE Std 421.5-2005 type PSS3B power system stabilizer - * model. The PSS model PSS3B has dual inputs of electrical power and rotor - * angular frequency deviation. The signals are used to derive an equivalent - * mechanical power signal. - * - * Reference: IEEE 3B 421.5-2005 Section 8.3. - */ - class PssIEEE3B : public IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PowerSystemStabilizerDynamics - { - - public: - PssIEEE3B(); - virtual ~PssIEEE3B(); - /** - * Notch filter parameter (A1). Typical Value = 0.359. - */ - IEC61970::Base::Domain::PU a1; - /** - * Notch filter parameter (A2). Typical Value = 0.586. - */ - IEC61970::Base::Domain::PU a2; - /** - * Notch filter parameter (A3). Typical Value = 0.429. - */ - IEC61970::Base::Domain::PU a3; - /** - * Notch filter parameter (A4). Typical Value = 0.564. - */ - IEC61970::Base::Domain::PU a4; - /** - * Notch filter parameter (A5). Typical Value = 0.001. - */ - IEC61970::Base::Domain::PU a5; - /** - * Notch filter parameter (A6). Typical Value = 0. - */ - IEC61970::Base::Domain::PU a6; - /** - * Notch filter parameter (A7). Typical Value = 0.031. - */ - IEC61970::Base::Domain::PU a7; - /** - * Notch filter parameter (A8). Typical Value = 0. - */ - IEC61970::Base::Domain::PU a8; - /** - * Type of input signal #1. Typical Value = generatorElectricalPower. - */ - IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::InputSignalKind inputSignal1Type = IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::InputSignalKind::_undef; - /** - * Type of input signal #2. Typical Value = rotorSpeed. - */ - IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::InputSignalKind inputSignal2Type = IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::InputSignalKind::_undef; - /** - * Gain on signal # 1 (Ks1). Typical Value = -0.602. - */ - IEC61970::Base::Domain::PU ks1; - /** - * Gain on signal # 2 (Ks2). Typical Value = 30.12. - */ - IEC61970::Base::Domain::PU ks2; - /** - * Transducer time constant (T1). Typical Value = 0.012. - */ - IEC61970::Base::Domain::Seconds t1; - /** - * Transducer time constant (T2). Typical Value = 0.012. - */ - IEC61970::Base::Domain::Seconds t2; - /** - * Washout time constant (Tw1). Typical Value = 0.3. - */ - IEC61970::Base::Domain::Seconds tw1; - /** - * Washout time constant (Tw2). Typical Value = 0.3. - */ - IEC61970::Base::Domain::Seconds tw2; - /** - * Washout time constant (Tw3). Typical Value = 0.6. - */ - IEC61970::Base::Domain::Seconds tw3; - /** - * Stabilizer output max limit (Vstmax). Typical Value = 0.1. - */ - IEC61970::Base::Domain::PU vstmax; - /** - * Stabilizer output min limit (Vstmin). Typical Value = -0.1. - */ - IEC61970::Base::Domain::PU vstmin; - - }; - - } - - } - - } - -} -#endif // PSSIEEE3B_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssIEEE4B.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssIEEE4B.cpp deleted file mode 100644 index 2997f0034..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssIEEE4B.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// PssIEEE4B.cpp -// Implementation of the Class PssIEEE4B -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "PssIEEE4B.h" - -using IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B; - - -PssIEEE4B::PssIEEE4B(){ - -} - - - -PssIEEE4B::~PssIEEE4B(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssIEEE4B.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssIEEE4B.h deleted file mode 100644 index 635777f8f..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssIEEE4B.h +++ /dev/null @@ -1,325 +0,0 @@ -/////////////////////////////////////////////////////////// -// PssIEEE4B.h -// Implementation of the Class PssIEEE4B -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef PSSIEEE4B_H -#define PSSIEEE4B_H - -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PowerSystemStabilizerDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace PowerSystemStabilizerDynamics - { - /** - * The class represents IEEE Std 421.5-2005 type PSS2B power system stabilizer - * model. The PSS4B model represents a structure based on multiple working - * frequency bands. Three separate bands, respectively dedicated to the low-, - * intermediate- and high-frequency modes of oscillations, are used in this delta- - * omega (speed input) PSS. - * - * Reference: IEEE 4B 421.5-2005 Section 8.4. - */ - class PssIEEE4B : public IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PowerSystemStabilizerDynamics - { - - public: - PssIEEE4B(); - virtual ~PssIEEE4B(); - /** - * Notch filter 1 (high-frequency band): Three dB bandwidth (Bwi). - */ - IEC61970::Base::Domain::Float bwh1; - /** - * Notch filter 2 (high-frequency band): Three dB bandwidth (Bwi). - */ - IEC61970::Base::Domain::Float bwh2; - /** - * Notch filter 1 (low-frequency band): Three dB bandwidth (Bwi). - */ - IEC61970::Base::Domain::Float bwl1; - /** - * Notch filter 2 (low-frequency band): Three dB bandwidth (Bwi). - */ - IEC61970::Base::Domain::Float bwl2; - /** - * High band gain (KH). Typical Value = 120. - */ - IEC61970::Base::Domain::PU kh; - /** - * High band differential filter gain (KH1). Typical Value = 66. - */ - IEC61970::Base::Domain::PU kh1; - /** - * High band first lead-lag blocks coefficient (KH11). Typical Value = - * 1. - */ - IEC61970::Base::Domain::PU kh11; - /** - * High band first lead-lag blocks coefficient (KH17). Typical Value = - * 1. - */ - IEC61970::Base::Domain::PU kh17; - /** - * High band differential filter gain (KH2). Typical Value = 66. - */ - IEC61970::Base::Domain::PU kh2; - /** - * Intermediate band gain (KI). Typical Value = 30. - */ - IEC61970::Base::Domain::PU ki; - /** - * Intermediate band differential filter gain (KI1). Typical Value = - * 66. - */ - IEC61970::Base::Domain::PU ki1; - /** - * Intermediate band first lead-lag blocks coefficient (KI11). Typical - * Value = 1. - */ - IEC61970::Base::Domain::PU ki11; - /** - * Intermediate band first lead-lag blocks coefficient (KI17). Typical - * Value = 1. - */ - IEC61970::Base::Domain::PU ki17; - /** - * Intermediate band differential filter gain (KI2). Typical Value = - * 66. - */ - IEC61970::Base::Domain::PU ki2; - /** - * Low band gain (KL). Typical Value = 7.5. - */ - IEC61970::Base::Domain::PU kl; - /** - * Low band differential filter gain (KL1). Typical Value = 66. - */ - IEC61970::Base::Domain::PU kl1; - /** - * Low band first lead-lag blocks coefficient (KL11). Typical Value = - * 1. - */ - IEC61970::Base::Domain::PU kl11; - /** - * Low band first lead-lag blocks coefficient (KL17). Typical Value = - * 1. - */ - IEC61970::Base::Domain::PU kl17; - /** - * Low band differential filter gain (KL2). Typical Value = 66. - */ - IEC61970::Base::Domain::PU kl2; - /** - * Notch filter 1 (high-frequency band): filter frequency (omegani). - */ - IEC61970::Base::Domain::Float omeganh1; - /** - * Notch filter 2 (high-frequency band): filter frequency (omegani). - */ - IEC61970::Base::Domain::Float omeganh2; - /** - * Notch filter 1 (low-frequency band): filter frequency (omegani). - */ - IEC61970::Base::Domain::Float omeganl1; - /** - * Notch filter 2 (low-frequency band): filter frequency (omegani). - */ - IEC61970::Base::Domain::Float omeganl2; - /** - * High band time constant (TH1). Typical Value = 0.01513. - */ - IEC61970::Base::Domain::Seconds th1; - /** - * High band time constant (TH10). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds th10; - /** - * High band time constant (TH11). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds th11; - /** - * High band time constant (TH12). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds th12; - /** - * High band time constant (TH2). Typical Value = 0.01816. - */ - IEC61970::Base::Domain::Seconds th2; - /** - * High band time constant (TH3). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds th3; - /** - * High band time constant (TH4). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds th4; - /** - * High band time constant (TH5). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds th5; - /** - * High band time constant (TH6). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds th6; - /** - * High band time constant (TH7). Typical Value = 0.01816. - */ - IEC61970::Base::Domain::Seconds th7; - /** - * High band time constant (TH8). Typical Value = 0.02179. - */ - IEC61970::Base::Domain::Seconds th8; - /** - * High band time constant (TH9). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds th9; - /** - * Intermediate band time constant (TI1). Typical Value = 0.173. - */ - IEC61970::Base::Domain::Seconds ti1; - /** - * Intermediate band time constant (TI11). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds ti10; - /** - * Intermediate band time constant (TI11). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds ti11; - /** - * Intermediate band time constant (TI2). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds ti12; - /** - * Intermediate band time constant (TI2). Typical Value = 0.2075. - */ - IEC61970::Base::Domain::Seconds ti2; - /** - * Intermediate band time constant (TI3). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds ti3; - /** - * Intermediate band time constant (TI4). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds ti4; - /** - * Intermediate band time constant (TI5). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds ti5; - /** - * Intermediate band time constant (TI6). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds ti6; - /** - * Intermediate band time constant (TI7). Typical Value = 0.2075. - */ - IEC61970::Base::Domain::Seconds ti7; - /** - * Intermediate band time constant (TI8). Typical Value = 0.2491. - */ - IEC61970::Base::Domain::Seconds ti8; - /** - * Intermediate band time constant (TI9). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds ti9; - /** - * Low band time constant (TL1). Typical Value = 1.73. - */ - IEC61970::Base::Domain::Seconds tl1; - /** - * Low band time constant (TL10). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tl10; - /** - * Low band time constant (TL11). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tl11; - /** - * Low band time constant (TL12). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tl12; - /** - * Low band time constant (TL2). Typical Value = 2.075. - */ - IEC61970::Base::Domain::Seconds tl2; - /** - * Low band time constant (TL3). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tl3; - /** - * Low band time constant (TL4). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tl4; - /** - * Low band time constant (TL5). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tl5; - /** - * Low band time constant (TL6). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tl6; - /** - * Low band time constant (TL7). Typical Value = 2.075. - */ - IEC61970::Base::Domain::Seconds tl7; - /** - * Low band time constant (TL8). Typical Value = 2.491. - */ - IEC61970::Base::Domain::Seconds tl8; - /** - * Low band time constant (TL9). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tl9; - /** - * High band output maximum limit (VHmax). Typical Value = 0.6. - */ - IEC61970::Base::Domain::PU vhmax; - /** - * High band output minimum limit (VHmin). Typical Value = -0.6. - */ - IEC61970::Base::Domain::PU vhmin; - /** - * Intermediate band output maximum limit (VImax). Typical Value = 0.6. - */ - IEC61970::Base::Domain::PU vimax; - /** - * Intermediate band output minimum limit (VImin). Typical Value = -0. - * 6. - */ - IEC61970::Base::Domain::PU vimin; - /** - * Low band output maximum limit (VLmax). Typical Value = 0.075. - */ - IEC61970::Base::Domain::PU vlmax; - /** - * Low band output minimum limit (VLmin). Typical Value = -0.075. - */ - IEC61970::Base::Domain::PU vlmin; - /** - * PSS output maximum limit (VSTmax). Typical Value = 0.15. - */ - IEC61970::Base::Domain::PU vstmax; - /** - * PSS output minimum limit (VSTmin). Typical Value = -0.15. - */ - IEC61970::Base::Domain::PU vstmin; - - }; - - } - - } - - } - -} -#endif // PSSIEEE4B_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssPTIST1.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssPTIST1.cpp deleted file mode 100644 index 2356817f0..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssPTIST1.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// PssPTIST1.cpp -// Implementation of the Class PssPTIST1 -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "PssPTIST1.h" - -using IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssPTIST1; - - -PssPTIST1::PssPTIST1(){ - -} - - - -PssPTIST1::~PssPTIST1(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssPTIST1.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssPTIST1.h deleted file mode 100644 index 5036f93bd..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssPTIST1.h +++ /dev/null @@ -1,85 +0,0 @@ -/////////////////////////////////////////////////////////// -// PssPTIST1.h -// Implementation of the Class PssPTIST1 -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef PSSPTIST1_H -#define PSSPTIST1_H - -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PowerSystemStabilizerDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace PowerSystemStabilizerDynamics - { - /** - * PTI Microprocessor-Based Stabilizer type 1. - */ - class PssPTIST1 : public IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PowerSystemStabilizerDynamics - { - - public: - PssPTIST1(); - virtual ~PssPTIST1(); - /** - * Time step related to activation of controls (Dtc). Typical Value = 0.025. - */ - IEC61970::Base::Domain::Seconds dtc; - /** - * Time step frequency calculation (Dtf). Typical Value = 0.025. - */ - IEC61970::Base::Domain::Seconds dtf; - /** - * Time step active power calculation (Dtp). Typical Value = 0.0125. - */ - IEC61970::Base::Domain::Seconds dtp; - /** - * Gain (K). Typical Value = 9. - */ - IEC61970::Base::Domain::PU k; - /** - * (M). M=2*H. Typical Value = 5. - */ - IEC61970::Base::Domain::PU m; - /** - * Time constant (T1). Typical Value = 0.3. - */ - IEC61970::Base::Domain::Seconds t1; - /** - * Time constant (T2). Typical Value = 1. - */ - IEC61970::Base::Domain::Seconds t2; - /** - * Time constant (T3). Typical Value = 0.2. - */ - IEC61970::Base::Domain::Seconds t3; - /** - * Time constant (T4). Typical Value = 0.05. - */ - IEC61970::Base::Domain::Seconds t4; - /** - * Time constant (Tf). Typical Value = 0.2. - */ - IEC61970::Base::Domain::Seconds tf; - /** - * Time constant (Tp). Typical Value = 0.2. - */ - IEC61970::Base::Domain::Seconds tp; - - }; - - } - - } - - } - -} -#endif // PSSPTIST1_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssPTIST3.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssPTIST3.cpp deleted file mode 100644 index d302348bb..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssPTIST3.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// PssPTIST3.cpp -// Implementation of the Class PssPTIST3 -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "PssPTIST3.h" - -using IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssPTIST3; - - -PssPTIST3::PssPTIST3(){ - -} - - - -PssPTIST3::~PssPTIST3(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssPTIST3.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssPTIST3.h deleted file mode 100644 index 110dee87b..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssPTIST3.h +++ /dev/null @@ -1,184 +0,0 @@ -/////////////////////////////////////////////////////////// -// PssPTIST3.h -// Implementation of the Class PssPTIST3 -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef PSSPTIST3_H -#define PSSPTIST3_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PowerSystemStabilizerDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace PowerSystemStabilizerDynamics - { - /** - * PTI Microprocessor-Based Stabilizer type 3. - */ - class PssPTIST3 : public IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PowerSystemStabilizerDynamics - { - - public: - PssPTIST3(); - virtual ~PssPTIST3(); - /** - * Filter coefficient (A0). - */ - IEC61970::Base::Domain::PU a0; - /** - * Limiter (Al). - */ - IEC61970::Base::Domain::PU a1; - /** - * Filter coefficient (A2). - */ - IEC61970::Base::Domain::PU a2; - /** - * Filter coefficient (A3). - */ - IEC61970::Base::Domain::PU a3; - /** - * Filter coefficient (A4). - */ - IEC61970::Base::Domain::PU a4; - /** - * Filter coefficient (A5). - */ - IEC61970::Base::Domain::PU a5; - /** - * Limiter (Al). - */ - IEC61970::Base::Domain::PU al; - /** - * Threshold value above which output averaging will be bypassed (Athres). - * Typical Value = 0.005. - */ - IEC61970::Base::Domain::PU athres; - /** - * Filter coefficient (B0). - */ - IEC61970::Base::Domain::PU b0; - /** - * Filter coefficient (B1). - */ - IEC61970::Base::Domain::PU b1; - /** - * Filter coefficient (B2). - */ - IEC61970::Base::Domain::PU b2; - /** - * Filter coefficient (B3). - */ - IEC61970::Base::Domain::PU b3; - /** - * Filter coefficient (B4). - */ - IEC61970::Base::Domain::PU b4; - /** - * Filter coefficient (B5). - */ - IEC61970::Base::Domain::PU b5; - /** - * Limiter (Dl). - */ - IEC61970::Base::Domain::PU dl; - /** - * Time step related to activation of controls (0.03 for 50 Hz) (Dtc). Typical - * Value = 0.025. - */ - IEC61970::Base::Domain::Seconds dtc; - /** - * Time step frequency calculation (0.03 for 50 Hz) (Dtf). Typical Value = 0.025. - */ - IEC61970::Base::Domain::Seconds dtf; - /** - * Time step active power calculation (0.015 for 50 Hz) (Dtp). Typical Value = 0. - * 0125. - */ - IEC61970::Base::Domain::Seconds dtp; - /** - * Digital/analog output switch (Isw). - * true = produce analog output - * false = convert to digital output, using tap selection table. - */ - IEC61970::Base::Domain::Boolean isw; - /** - * Gain (K). Typical Value = 9. - */ - IEC61970::Base::Domain::PU k; - /** - * Threshold value (Lthres). - */ - IEC61970::Base::Domain::PU lthres; - /** - * (M). M=2*H. Typical Value = 5. - */ - IEC61970::Base::Domain::PU m; - /** - * Number of control outputs to average (Nav) (1 <= Nav <= 16). Typical Value = 4. - */ - IEC61970::Base::Domain::Float nav; - /** - * Number of counts at limit to active limit function (Ncl) (>0). - */ - IEC61970::Base::Domain::Float ncl; - /** - * Number of counts until reset after limit function is triggered (Ncr). - */ - IEC61970::Base::Domain::Float ncr; - /** - * (Pmin). - */ - IEC61970::Base::Domain::PU pmin; - /** - * Time constant (T1). Typical Value = 0.3. - */ - IEC61970::Base::Domain::Seconds t1; - /** - * Time constant (T2). Typical Value = 1. - */ - IEC61970::Base::Domain::Seconds t2; - /** - * Time constant (T3). Typical Value = 0.2. - */ - IEC61970::Base::Domain::Seconds t3; - /** - * Time constant (T4). Typical Value = 0.05. - */ - IEC61970::Base::Domain::Seconds t4; - /** - * Time constant (T5). - */ - IEC61970::Base::Domain::Seconds t5; - /** - * Time constant (T6). - */ - IEC61970::Base::Domain::Seconds t6; - /** - * Time constant (Tf). Typical Value = 0.2. - */ - IEC61970::Base::Domain::Seconds tf; - /** - * Time constant (Tp). Typical Value = 0.2. - */ - IEC61970::Base::Domain::Seconds tp; - - }; - - } - - } - - } - -} -#endif // PSSPTIST3_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssSB4.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssSB4.cpp deleted file mode 100644 index 3b19e5429..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssSB4.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// PssSB4.cpp -// Implementation of the Class PssSB4 -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "PssSB4.h" - -using IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssSB4; - - -PssSB4::PssSB4(){ - -} - - - -PssSB4::~PssSB4(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssSB4.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssSB4.h deleted file mode 100644 index 0b8b93629..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssSB4.h +++ /dev/null @@ -1,85 +0,0 @@ -/////////////////////////////////////////////////////////// -// PssSB4.h -// Implementation of the Class PssSB4 -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef PSSSB4_H -#define PSSSB4_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PowerSystemStabilizerDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace PowerSystemStabilizerDynamics - { - /** - * Power sensitive stabilizer model. - */ - class PssSB4 : public IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PowerSystemStabilizerDynamics - { - - public: - PssSB4(); - virtual ~PssSB4(); - /** - * Gain (Kx). - */ - IEC61970::Base::Domain::PU kx; - /** - * Time constant (Ta). - */ - IEC61970::Base::Domain::Seconds ta; - /** - * Time constant (Tb). - */ - IEC61970::Base::Domain::Seconds tb; - /** - * Time constant (Tc). - */ - IEC61970::Base::Domain::Seconds tc; - /** - * Time constant (Td). - */ - IEC61970::Base::Domain::Seconds td; - /** - * Time constant (Te). - */ - IEC61970::Base::Domain::Seconds te; - /** - * Time constant (Tt). - */ - IEC61970::Base::Domain::Seconds tt; - /** - * Reset time constant (Tx1). - */ - IEC61970::Base::Domain::Seconds tx1; - /** - * Time constant (Tx2). - */ - IEC61970::Base::Domain::Seconds tx2; - /** - * Limiter (Vsmax). - */ - IEC61970::Base::Domain::PU vsmax; - /** - * Limiter (Vsmin). - */ - IEC61970::Base::Domain::PU vsmin; - - }; - - } - - } - - } - -} -#endif // PSSSB4_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssSH.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssSH.cpp deleted file mode 100644 index 8bd733178..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssSH.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// PssSH.cpp -// Implementation of the Class PssSH -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "PssSH.h" - -using IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssSH; - - -PssSH::PssSH(){ - -} - - - -PssSH::~PssSH(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssSH.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssSH.h deleted file mode 100644 index cffc2e3fd..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssSH.h +++ /dev/null @@ -1,94 +0,0 @@ -/////////////////////////////////////////////////////////// -// PssSH.h -// Implementation of the Class PssSH -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef PSSSH_H -#define PSSSH_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PowerSystemStabilizerDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace PowerSystemStabilizerDynamics - { - /** - * Model for Siemens “H infinity” power system stabilizer with generator - * electrical power input. - */ - class PssSH : public IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PowerSystemStabilizerDynamics - { - - public: - PssSH(); - virtual ~PssSH(); - /** - * Main gain (K). Typical Value = 1. - */ - IEC61970::Base::Domain::PU k; - /** - * Gain 0 (K0). Typical Value = 0.012. - */ - IEC61970::Base::Domain::PU k0; - /** - * Gain 1 (K1). Typical Value = 0.488. - */ - IEC61970::Base::Domain::PU k1; - /** - * Gain 2 (K2). Typical Value = 0.064. - */ - IEC61970::Base::Domain::PU k2; - /** - * Gain 3 (K3). Typical Value = 0.224. - */ - IEC61970::Base::Domain::PU k3; - /** - * Gain 4 (K4). Typical Value = 0.1. - */ - IEC61970::Base::Domain::PU k4; - /** - * Time constant 1 (T1). Typical Value = 0.076. - */ - IEC61970::Base::Domain::Seconds t1; - /** - * Time constant 2 (T2). Typical Value = 0.086. - */ - IEC61970::Base::Domain::Seconds t2; - /** - * Time constant 3 (T3). Typical Value = 1.068. - */ - IEC61970::Base::Domain::Seconds t3; - /** - * Time constant 4 (T4). Typical Value = 1.913. - */ - IEC61970::Base::Domain::Seconds t4; - /** - * Input time constant (Td). Typical Value = 10. - */ - IEC61970::Base::Domain::Seconds td; - /** - * Output maximum limit (Vsmax). Typical Value = 0.1. - */ - IEC61970::Base::Domain::PU vsmax; - /** - * Output minimum limit (Vsmin). Typical Value = -0.1. - */ - IEC61970::Base::Domain::PU vsmin; - - }; - - } - - } - - } - -} -#endif // PSSSH_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssSK.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssSK.cpp deleted file mode 100644 index 066056e46..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssSK.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// PssSK.cpp -// Implementation of the Class PssSK -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "PssSK.h" - -using IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssSK; - - -PssSK::PssSK(){ - -} - - - -PssSK::~PssSK(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssSK.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssSK.h deleted file mode 100644 index 52ee07484..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssSK.h +++ /dev/null @@ -1,85 +0,0 @@ -/////////////////////////////////////////////////////////// -// PssSK.h -// Implementation of the Class PssSK -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef PSSSK_H -#define PSSSK_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PowerSystemStabilizerDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace PowerSystemStabilizerDynamics - { - /** - * PSS Slovakian type – three inputs. - */ - class PssSK : public IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PowerSystemStabilizerDynamics - { - - public: - PssSK(); - virtual ~PssSK(); - /** - * Gain P (K1). Typical Value = -0.3. - */ - IEC61970::Base::Domain::PU k1; - /** - * Gain fe (K2). Typical Value = -0.15. - */ - IEC61970::Base::Domain::PU k2; - /** - * Gain If (K3). Typical Value = 10. - */ - IEC61970::Base::Domain::PU k3; - /** - * Denominator time constant (T1). Typical Value = 0.3. - */ - IEC61970::Base::Domain::Seconds t1; - /** - * Filter time constant (T2). Typical Value = 0.35. - */ - IEC61970::Base::Domain::Seconds t2; - /** - * Denominator time constant (T3). Typical Value = 0.22. - */ - IEC61970::Base::Domain::Seconds t3; - /** - * Filter time constant (T4). Typical Value = 0.02. - */ - IEC61970::Base::Domain::Seconds t4; - /** - * Denominator time constant (T5). Typical Value = 0.02. - */ - IEC61970::Base::Domain::Seconds t5; - /** - * Filter time constant (T6). Typical Value = 0.02. - */ - IEC61970::Base::Domain::Seconds t6; - /** - * Stabilizer output max limit (Vsmax). Typical Value = 0.4. - */ - IEC61970::Base::Domain::PU vsmax; - /** - * Stabilizer output min limit (Vsmin). Typical Value = -0.4. - */ - IEC61970::Base::Domain::PU vsmin; - - }; - - } - - } - - } - -} -#endif // PSSSK_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssWECC.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssWECC.cpp deleted file mode 100644 index 952b038ef..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssWECC.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// PssWECC.cpp -// Implementation of the Class PssWECC -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "PssWECC.h" - -using IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssWECC; - - -PssWECC::PssWECC(){ - -} - - - -PssWECC::~PssWECC(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssWECC.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssWECC.h deleted file mode 100644 index 9e4382936..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PssWECC.h +++ /dev/null @@ -1,115 +0,0 @@ -/////////////////////////////////////////////////////////// -// PssWECC.h -// Implementation of the Class PssWECC -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef PSSWECC_H -#define PSSWECC_H - -#include "IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/InputSignalKind.h" -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PowerSystemStabilizerDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace PowerSystemStabilizerDynamics - { - /** - * Dual input Power System Stabilizer, based on IEEE type 2, with modified output - * limiter defined by WECC (Western Electricity Coordinating Council, USA). - */ - class PssWECC : public IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PowerSystemStabilizerDynamics - { - - public: - PssWECC(); - virtual ~PssWECC(); - /** - * Type of input signal #1. - */ - IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::InputSignalKind inputSignal1Type = IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::InputSignalKind::_undef; - /** - * Type of input signal #2. - */ - IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::InputSignalKind inputSignal2Type = IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::InputSignalKind::_undef; - /** - * Input signal 1 gain (K1). - */ - IEC61970::Base::Domain::PU k1; - /** - * Input signal 2 gain (K2). - */ - IEC61970::Base::Domain::PU k2; - /** - * Input signal 1 transducer time constant (T1). - */ - IEC61970::Base::Domain::Seconds t1; - /** - * Lag time constant (T10). - */ - IEC61970::Base::Domain::Seconds t10; - /** - * Input signal 2 transducer time constant (T2). - */ - IEC61970::Base::Domain::Seconds t2; - /** - * Stabilizer washout time constant (T3). - */ - IEC61970::Base::Domain::Seconds t3; - /** - * Stabilizer washout time lag constant (T4) (>0). - */ - IEC61970::Base::Domain::Seconds t4; - /** - * Lead time constant (T5). - */ - IEC61970::Base::Domain::Seconds t5; - /** - * Lag time constant (T6). - */ - IEC61970::Base::Domain::Seconds t6; - /** - * Lead time constant (T7). - */ - IEC61970::Base::Domain::Seconds t7; - /** - * Lag time constant (T8). - */ - IEC61970::Base::Domain::Seconds t8; - /** - * Lead time constant (T9). - */ - IEC61970::Base::Domain::Seconds t9; - /** - * Minimum value for voltage compensator output (VCL). - */ - IEC61970::Base::Domain::PU vcl; - /** - * Maximum value for voltage compensator output (VCU). - */ - IEC61970::Base::Domain::PU vcu; - /** - * Maximum output signal (Vsmax). - */ - IEC61970::Base::Domain::PU vsmax; - /** - * Minimum output signal (Vsmin). - */ - IEC61970::Base::Domain::PU vsmin; - - }; - - } - - } - - } - -} -#endif // PSSWECC_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/RotatingMachineDynamics.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/RotatingMachineDynamics.cpp deleted file mode 100644 index 0f59e0e2b..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/RotatingMachineDynamics.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// RotatingMachineDynamics.cpp -// Implementation of the Class RotatingMachineDynamics -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#include "RotatingMachineDynamics.h" - -using IEC61970::Dynamics::StandardModels::RotatingMachineDynamics; - - -RotatingMachineDynamics::RotatingMachineDynamics(){ - -} - - - -RotatingMachineDynamics::~RotatingMachineDynamics(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/RotatingMachineDynamics.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/RotatingMachineDynamics.h deleted file mode 100644 index 8d3d9950a..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/RotatingMachineDynamics.h +++ /dev/null @@ -1,78 +0,0 @@ -/////////////////////////////////////////////////////////// -// RotatingMachineDynamics.h -// Implementation of the Class RotatingMachineDynamics -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#ifndef ROTATINGMACHINEDYNAMICS_H -#define ROTATINGMACHINEDYNAMICS_H - -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Dynamics/StandardModels/DynamicsFunctionBlock.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - /** - * Abstract parent class for all synchronous and asynchronous machine standard - * models. - */ - class RotatingMachineDynamics : public IEC61970::Dynamics::StandardModels::DynamicsFunctionBlock - { - - public: - RotatingMachineDynamics(); - virtual ~RotatingMachineDynamics(); - /** - * Damping torque coefficient (D). A proportionality constant that, when - * multiplied by the angular velocity of the rotor poles with respect to the - * magnetic field (frequency), results in the damping torque. This value is often - * zero when the sources of damping torques (generator damper windings, load - * damping effects, etc.) are modelled in detail. Typical Value = 0. - */ - IEC61970::Base::Domain::Float damping; - /** - * Inertia constant of generator or motor and mechanical load (H) (>0). This is - * the specification for the stored energy in the rotating mass when operating at - * rated speed. For a generator, this includes the generator plus all other - * elements (turbine, exciter) on the same shaft and has units of MW*sec. For a - * motor, it includes the motor plus its mechanical load. Conventional units are - * per unit on the generator MVA base, usually expressed as MW*second/MVA or just - * second. This value is used in the accelerating power reference frame for - * operator training simulator solutions. Typical Value = 3. - */ - IEC61970::Base::Domain::Seconds inertia; - /** - * Saturation factor at rated terminal voltage (S1) (> or =0). Not used by - * simplified model. Defined by defined by S(E1) in the - * SynchronousMachineSaturationParameters diagram. Typical Value = 0.02. - */ - IEC61970::Base::Domain::Float saturationFactor; - /** - * Saturation factor at 120% of rated terminal voltage (S12) (> or =S1). Not used - * by the simplified model, defined by S(E2) in the - * SynchronousMachineSaturationParameters diagram. Typical Value = 0.12. - */ - IEC61970::Base::Domain::Float saturationFactor120; - /** - * Stator leakage reactance (Xl) (> or =0). Typical Value = 0.15. - */ - IEC61970::Base::Domain::PU statorLeakageReactance; - /** - * Stator (armature) resistance (Rs) (> or =0). Typical Value = 0.005. - */ - IEC61970::Base::Domain::PU statorResistance; - - }; - - } - - } - -} -#endif // ROTATINGMACHINEDYNAMICS_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/SynchronousMachineDynamics/IfdBaseKind.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/SynchronousMachineDynamics/IfdBaseKind.h deleted file mode 100644 index acdb24789..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/SynchronousMachineDynamics/IfdBaseKind.h +++ /dev/null @@ -1,51 +0,0 @@ -/////////////////////////////////////////////////////////// -// IfdBaseKind.h -// Implementation of the Class IfdBaseKind -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef IFDBASEKIND_H -#define IFDBASEKIND_H - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace SynchronousMachineDynamics - { - /** - * Excitation base system mode. - */ - enum class IfdBaseKind - { - /** - * Air gap line mode. ifdBaseValue is computed, not defined by the user, in this - * mode. - */ - _undef = -1, ifag, - /** - * No load system with saturation mode. ifdBaseValue is computed, not defined by - * the user, in this mode. - */ - ifnl, - /** - * Full load system mode. ifdBaseValue is computed, not defined by the user, in - * this mode. - */ - iffl, - /** - * Free mode. ifdBaseValue is defined by the user in this mode. - */ - other - }; - - } - - } - - } - -} -#endif // IFDBASEKIND_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/SynchronousMachineDynamics/RotorKind.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/SynchronousMachineDynamics/RotorKind.h deleted file mode 100644 index b963bb42d..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/SynchronousMachineDynamics/RotorKind.h +++ /dev/null @@ -1,40 +0,0 @@ -/////////////////////////////////////////////////////////// -// RotorKind.h -// Implementation of the Class RotorKind -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#ifndef ROTORKIND_H -#define ROTORKIND_H - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace SynchronousMachineDynamics - { - /** - * Type of rotor on physical machine. - */ - enum class RotorKind - { - /** - * Round rotor type of synchronous machine. - */ - _undef = -1, roundRotor, - /** - * Salient pole type of synchronous machine. - */ - salientPole - }; - - } - - } - - } - -} -#endif // ROTORKIND_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/SynchronousMachineDynamics/SynchronousMachineDetailed.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/SynchronousMachineDynamics/SynchronousMachineDetailed.cpp deleted file mode 100644 index 0b2c95571..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/SynchronousMachineDynamics/SynchronousMachineDetailed.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// SynchronousMachineDetailed.cpp -// Implementation of the Class SynchronousMachineDetailed -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#include "SynchronousMachineDetailed.h" - -using IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::SynchronousMachineDetailed; - - -SynchronousMachineDetailed::SynchronousMachineDetailed(){ - -} - - - -SynchronousMachineDetailed::~SynchronousMachineDetailed(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/SynchronousMachineDynamics/SynchronousMachineDetailed.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/SynchronousMachineDynamics/SynchronousMachineDetailed.h deleted file mode 100644 index f02eacc01..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/SynchronousMachineDynamics/SynchronousMachineDetailed.h +++ /dev/null @@ -1,79 +0,0 @@ -/////////////////////////////////////////////////////////// -// SynchronousMachineDetailed.h -// Implementation of the Class SynchronousMachineDetailed -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#ifndef SYNCHRONOUSMACHINEDETAILED_H -#define SYNCHRONOUSMACHINEDETAILED_H - -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Dynamics/StandardModels/SynchronousMachineDynamics/IfdBaseKind.h" -#include "IEC61970/Base/Domain/CurrentFlow.h" -#include "IEC61970/Dynamics/StandardModels/SynchronousMachineDynamics/SynchronousMachineDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace SynchronousMachineDynamics - { - /** - * All synchronous machine detailed types use a subset of the same data parameters - * and input/output variables. - * The several variations differ in the following ways: - *
    - *
  • The number of equivalent windings that are included
  • - *
  • The way in which saturation is incorporated into the model.
  • - *
  • Whether or not “subtransient saliency” (X''q not = X''d) is - * represented.
  • - *
- * Note: It is not necessary for each simulation tool to have separate - * models for each of the model types. The same model can often be used for - * several types by alternative logic within the model. Also, differences in - * saturation representation may not result in significant model performance - * differences so model substitutions are often acceptable. - */ - class SynchronousMachineDetailed : public IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::SynchronousMachineDynamics - { - - public: - SynchronousMachineDetailed(); - virtual ~SynchronousMachineDetailed(); - /** - * Ratio of Efd bases of exciter and generator models. Typical Value = 1. - */ - IEC61970::Base::Domain::Float efdBaseRatio; - /** - * Excitation base system mode. Typical Value = ifag. - */ - IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::IfdBaseKind ifdBaseType = IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::IfdBaseKind::_undef; - /** - * Ifd base current if .ifdBaseType = other. - * Not needed if .ifdBaseType not = other. - * Unit = A. Typical Value = 0. - */ - IEC61970::Base::Domain::CurrentFlow ifdBaseValue; - /** - * Q-axis saturation factor at 120% of rated terminal voltage (S12q) (>=S1q). - * Typical Value = 0.12. - */ - IEC61970::Base::Domain::Float saturationFactor120QAxis; - /** - * Q-axis saturation factor at rated terminal voltage (S1q) (>= 0). Typical Value - * = 0.02. - */ - IEC61970::Base::Domain::Float saturationFactorQAxis; - - }; - - } - - } - - } - -} -#endif // SYNCHRONOUSMACHINEDETAILED_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/SynchronousMachineDynamics/SynchronousMachineDynamics.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/SynchronousMachineDynamics/SynchronousMachineDynamics.cpp deleted file mode 100644 index 9bcf8fecb..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/SynchronousMachineDynamics/SynchronousMachineDynamics.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// SynchronousMachineDynamics.cpp -// Implementation of the Class SynchronousMachineDynamics -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#include "SynchronousMachineDynamics.h" - -using IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::SynchronousMachineDynamics; - - -SynchronousMachineDynamics::SynchronousMachineDynamics() - : SynchronousMachine(nullptr) -{ - -} - - - -SynchronousMachineDynamics::~SynchronousMachineDynamics(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/SynchronousMachineDynamics/SynchronousMachineDynamics.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/SynchronousMachineDynamics/SynchronousMachineDynamics.h deleted file mode 100644 index cdbb9a9c2..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/SynchronousMachineDynamics/SynchronousMachineDynamics.h +++ /dev/null @@ -1,76 +0,0 @@ -/////////////////////////////////////////////////////////// -// SynchronousMachineDynamics.h -// Implementation of the Class SynchronousMachineDynamics -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#ifndef SYNCHRONOUSMACHINEDYNAMICS_H -#define SYNCHRONOUSMACHINEDYNAMICS_H - -#include - -#include "IEC61970/Base/Wires/SynchronousMachine.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/TurbineGovernorDynamics.h" -#include "IEC61970/Dynamics/StandardModels/RotatingMachineDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace SynchronousMachineDynamics - { - /** - * Synchronous machine whose behaviour is described by reference to a standard - * model expressed in one of the following forms: - *
    - *
  • simplified (or classical), where a group of generators or motors is not - * modelled in detail
  • - *
- *
    - *
  • detailed, in equivalent circuit form
  • - *
  • detailed, in time constant reactance form
  • - *
- * or by definition of a user-defined model. - * - * Note: It is a common practice to represent - * small generators by a negative load rather than by a dynamic generator model - * when performing dynamics simulations. In this case a SynchronousMachine in the - * static model is not represented by anything in the dynamics model, instead it - * is treated as ordinary load. - * - * Parameter Notes: - *
    - *
  1. Synchronous machine parameters such as Xl, Xd, - * Xp etc. are actually used as inductances (L) in the models, but - * are commonly referred to as reactances since, at nominal frequency, the per - * unit values are the same. However, some references use the symbol L instead of - * X.
  2. - *
- */ - class SynchronousMachineDynamics : public IEC61970::Dynamics::StandardModels::RotatingMachineDynamics - { - - public: - SynchronousMachineDynamics(); - virtual ~SynchronousMachineDynamics(); - /** - * Synchronous machine to which synchronous machine dynamics model applies. - */ - IEC61970::Base::Wires::SynchronousMachine *SynchronousMachine; - /** - * Turbine-governor model associated with this synchronous machine model. - */ - std::list TurbineGovernorDynamics; - - }; - - } - - } - - } - -} -#endif // SYNCHRONOUSMACHINEDYNAMICS_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/SynchronousMachineDynamics/SynchronousMachineEquivalentCircuit.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/SynchronousMachineDynamics/SynchronousMachineEquivalentCircuit.cpp deleted file mode 100644 index c90d40b02..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/SynchronousMachineDynamics/SynchronousMachineEquivalentCircuit.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// SynchronousMachineEquivalentCircuit.cpp -// Implementation of the Class SynchronousMachineEquivalentCircuit -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#include "SynchronousMachineEquivalentCircuit.h" - -using IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::SynchronousMachineEquivalentCircuit; - - -SynchronousMachineEquivalentCircuit::SynchronousMachineEquivalentCircuit(){ - -} - - - -SynchronousMachineEquivalentCircuit::~SynchronousMachineEquivalentCircuit(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/SynchronousMachineDynamics/SynchronousMachineEquivalentCircuit.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/SynchronousMachineDynamics/SynchronousMachineEquivalentCircuit.h deleted file mode 100644 index 95797a5cb..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/SynchronousMachineDynamics/SynchronousMachineEquivalentCircuit.h +++ /dev/null @@ -1,129 +0,0 @@ -/////////////////////////////////////////////////////////// -// SynchronousMachineEquivalentCircuit.h -// Implementation of the Class SynchronousMachineEquivalentCircuit -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#ifndef SYNCHRONOUSMACHINEEQUIVALENTCIRCUIT_H -#define SYNCHRONOUSMACHINEEQUIVALENTCIRCUIT_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Dynamics/StandardModels/SynchronousMachineDynamics/SynchronousMachineDetailed.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace SynchronousMachineDynamics - { - /** - * The electrical equations for all variations of the synchronous models are based - * on the SynchronousEquivalentCircuit diagram for the direct and quadrature axes. - * - * - * Equations for conversion between Equivalent Circuit and Time Constant - * Reactance forms: - * Xd = Xad + Xl - * X’d = Xl + Xad * Xfd / (Xad + Xfd) - * X”d = Xl + Xad * Xfd * X1d / (Xad * - * Xfd + Xad * X1d + Xfd * X1d) - * Xq = Xaq + Xl - * X’q = Xl + Xaq * X1q / (Xaq+ X1q) - * X”q = Xl + Xaq * X1q* X2q / (Xaq * - * X1q + Xaq * X2q + X1q * X2q) - * T’do = (Xad + Xfd) / (omega0 * - * Rfd) - * T”do = (Xad * Xfd + Xad * X1d + Xfd * - * X1d) / (omega0 * R1d * (Xad + - * Xfd) - * T’qo = (Xaq + X1q) / (omega0 * - * R1q) - * T”qo = (Xaq * X1q + Xaq * X2q + X1q * - * X2q)/ (omega0 * R2q * (Xaq + - * X1q) - * - * Same equations using CIM attributes from - * SynchronousMachineTimeConstantReactance class on left of = sign and - * SynchronousMachineEquivalentCircuit class on right (except as noted): - * xDirectSync = xad + RotatingMachineDynamics.statorLeakageReactance - * xDirectTrans = RotatingMachineDynamics.statorLeakageReactance + xad * xfd / - * (xad + xfd) - * xDirectSubtrans = RotatingMachineDynamics.statorLeakageReactance + xad * xfd * - * x1d / (xad * xfd + xad * x1d + xfd * x1d) - * xQuadSync = xaq + RotatingMachineDynamics.statorLeakageReactance - * xQuadTrans = RotatingMachineDynamics.statorLeakageReactance + xaq * x1q / (xaq+ - * x1q) - * xQuadSubtrans = RotatingMachineDynamics.statorLeakageReactance + xaq * x1q* x2q - * / (xaq * x1q + xaq * x2q + x1q * x2q) - * tpdo = (xad + xfd) / (2*pi*nominal frequency * rfd) - * tppdo = (xad * xfd + xad * x1d + xfd * x1d) / (2*pi*nominal frequency * r1d * - * (xad + xfd) - * tpqo = (xaq + x1q) / (2*pi*nominal frequency * r1q) - * tppqo = (xaq * x1q + xaq * x2q + x1q * x2q)/ (2*pi*nominal frequency * r2q * - * (xaq + x1q). - * - * Are only valid for a simplified model where "Canay" reactance is zero. - */ - class SynchronousMachineEquivalentCircuit : public IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::SynchronousMachineDetailed - { - - public: - SynchronousMachineEquivalentCircuit(); - virtual ~SynchronousMachineEquivalentCircuit(); - /** - * D-axis damper 1 winding resistance. - */ - IEC61970::Base::Domain::PU r1d; - /** - * Q-axis damper 1 winding resistance. - */ - IEC61970::Base::Domain::PU r1q; - /** - * Q-axis damper 2 winding resistance. - */ - IEC61970::Base::Domain::PU r2q; - /** - * Field winding resistance. - */ - IEC61970::Base::Domain::PU rfd; - /** - * D-axis damper 1 winding leakage reactance. - */ - IEC61970::Base::Domain::PU x1d; - /** - * Q-axis damper 1 winding leakage reactance. - */ - IEC61970::Base::Domain::PU x1q; - /** - * Q-axis damper 2 winding leakage reactance. - */ - IEC61970::Base::Domain::PU x2q; - /** - * D-axis mutual reactance. - */ - IEC61970::Base::Domain::PU xad; - /** - * Q-axis mutual reactance. - */ - IEC61970::Base::Domain::PU xaq; - /** - * Differential mutual (“Canay”) reactance. - */ - IEC61970::Base::Domain::PU xf1d; - /** - * Field winding leakage reactance. - */ - IEC61970::Base::Domain::PU xfd; - - }; - - } - - } - - } - -} -#endif // SYNCHRONOUSMACHINEEQUIVALENTCIRCUIT_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/SynchronousMachineDynamics/SynchronousMachineModelKind.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/SynchronousMachineDynamics/SynchronousMachineModelKind.h deleted file mode 100644 index ac9d06eba..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/SynchronousMachineDynamics/SynchronousMachineModelKind.h +++ /dev/null @@ -1,54 +0,0 @@ -/////////////////////////////////////////////////////////// -// SynchronousMachineModelKind.h -// Implementation of the Class SynchronousMachineModelKind -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#ifndef SYNCHRONOUSMACHINEMODELKIND_H -#define SYNCHRONOUSMACHINEMODELKIND_H - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace SynchronousMachineDynamics - { - /** - * Type of synchronous machine model used in Dynamic simulation applications. - */ - enum class SynchronousMachineModelKind - { - /** - * Subtransient synchronous machine model. - */ - _undef = -1, subtransient, - /** - * WECC Type F variant of subtransient synchronous machine model. - */ - subtransientTypeF, - /** - * WECC Type J variant of subtransient synchronous machine model. - */ - subtransientTypeJ, - /** - * Simplified version of subtransient synchronous machine model where magnetic - * coupling between the direct and quadrature axes is ignored. - */ - subtransientSimplified, - /** - * Simplified version of a subtransient synchronous machine model with no damper - * circuit on d-axis. - */ - subtransientSimplifiedDirectAxis - }; - - } - - } - - } - -} -#endif // SYNCHRONOUSMACHINEMODELKIND_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/SynchronousMachineDynamics/SynchronousMachineSimplified.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/SynchronousMachineDynamics/SynchronousMachineSimplified.cpp deleted file mode 100644 index c9a48e943..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/SynchronousMachineDynamics/SynchronousMachineSimplified.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// SynchronousMachineSimplified.cpp -// Implementation of the Class SynchronousMachineSimplified -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#include "SynchronousMachineSimplified.h" - -using IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::SynchronousMachineSimplified; - - -SynchronousMachineSimplified::SynchronousMachineSimplified(){ - -} - - - -SynchronousMachineSimplified::~SynchronousMachineSimplified(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/SynchronousMachineDynamics/SynchronousMachineSimplified.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/SynchronousMachineDynamics/SynchronousMachineSimplified.h deleted file mode 100644 index 536b252ed..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/SynchronousMachineDynamics/SynchronousMachineSimplified.h +++ /dev/null @@ -1,56 +0,0 @@ -/////////////////////////////////////////////////////////// -// SynchronousMachineSimplified.h -// Implementation of the Class SynchronousMachineSimplified -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#ifndef SYNCHRONOUSMACHINESIMPLIFIED_H -#define SYNCHRONOUSMACHINESIMPLIFIED_H - -#include "IEC61970/Dynamics/StandardModels/SynchronousMachineDynamics/SynchronousMachineDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace SynchronousMachineDynamics - { - /** - * The simplified model represents a synchronous generator as a constant internal - * voltage behind an impedance (Rs + jXp) as shown in the Simplified - * diagram. - * - * Since internal voltage is held constant, there is no Efd input and any - * excitation system model will be ignored. There is also no Ifd output. - * - * This model should not be used for representing a real generator except, perhaps, - * small generators whose response is insignificant. - * - * The parameters used for the Simplified model include: - *
    - *
  • RotatingMachineDynamics.damping (D)
  • - *
  • RotatingMachineDynamics.inertia (H)
  • - *
  • RotatingMachineDynamics.statorLeakageReactance (used to exchange jXp for - * SynchronousMachineSimplified)
  • - *
  • RotatingMachineDynamics.statorResistance (Rs).
  • - *
- */ - class SynchronousMachineSimplified : public IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::SynchronousMachineDynamics - { - - public: - SynchronousMachineSimplified(); - virtual ~SynchronousMachineSimplified(); - - }; - - } - - } - - } - -} -#endif // SYNCHRONOUSMACHINESIMPLIFIED_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/SynchronousMachineDynamics/SynchronousMachineTimeConstantReactance.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/SynchronousMachineDynamics/SynchronousMachineTimeConstantReactance.cpp deleted file mode 100644 index 4347c83a3..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/SynchronousMachineDynamics/SynchronousMachineTimeConstantReactance.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// SynchronousMachineTimeConstantReactance.cpp -// Implementation of the Class SynchronousMachineTimeConstantReactance -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#include "SynchronousMachineTimeConstantReactance.h" - -using IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::SynchronousMachineTimeConstantReactance; - - -SynchronousMachineTimeConstantReactance::SynchronousMachineTimeConstantReactance(){ - -} - - - -SynchronousMachineTimeConstantReactance::~SynchronousMachineTimeConstantReactance(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/SynchronousMachineDynamics/SynchronousMachineTimeConstantReactance.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/SynchronousMachineDynamics/SynchronousMachineTimeConstantReactance.h deleted file mode 100644 index 59873821c..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/SynchronousMachineDynamics/SynchronousMachineTimeConstantReactance.h +++ /dev/null @@ -1,150 +0,0 @@ -/////////////////////////////////////////////////////////// -// SynchronousMachineTimeConstantReactance.h -// Implementation of the Class SynchronousMachineTimeConstantReactance -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#ifndef SYNCHRONOUSMACHINETIMECONSTANTREACTANCE_H -#define SYNCHRONOUSMACHINETIMECONSTANTREACTANCE_H - -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Dynamics/StandardModels/SynchronousMachineDynamics/SynchronousMachineModelKind.h" -#include "IEC61970/Dynamics/StandardModels/SynchronousMachineDynamics/RotorKind.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Dynamics/StandardModels/SynchronousMachineDynamics/SynchronousMachineDetailed.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace SynchronousMachineDynamics - { - /** - * Synchronous machine detailed modelling types are defined by the combination of - * the attributes SynchronousMachineTimeConstantReactance.modelType and - * SynchronousMachineTimeConstantReactance.rotorType. - * - * Parameter notes: - *
    - *
  1. The “p” in the time-related attribute names is a substitution for a - * “prime” in the usual parameter notation, e.g. tpdo refers to T'do.
  2. - *
- * - * The parameters used for models expressed in time constant reactance form - * include: - *
    - *
  • RotatingMachine.ratedS (MVAbase)
  • - *
  • RotatingMachineDynamics.damping (D)
  • - *
  • RotatingMachineDynamics.inertia (H)
  • - *
  • RotatingMachineDynamics.saturationFactor (S1)
  • - *
  • RotatingMachineDynamics.saturationFactor120 (S12)
  • - *
  • RotatingMachineDynamics.statorLeakageReactance (Xl)
  • - *
  • RotatingMachineDynamics.statorResistance (Rs)
  • - *
  • SynchronousMachineTimeConstantReactance.ks (Ks)
  • - *
  • SynchronousMachineDetailed.saturationFactorQAxis (S1q)
  • - *
  • SynchronousMachineDetailed.saturationFactor120QAxis (S12q)
  • - *
  • SynchronousMachineDetailed.efdBaseRatio
  • - *
  • SynchronousMachineDetailed.ifdBaseType
  • - *
  • SynchronousMachineDetailed.ifdBaseValue, if present
  • - *
  • .xDirectSync (Xd)
  • - *
  • .xDirectTrans (X'd)
  • - *
  • .xDirectSubtrans (X''d)
  • - *
  • .xQuadSync (Xq)
  • - *
  • .xQuadTrans (X'q)
  • - *
  • .xQuadSubtrans (X''q)
  • - *
  • .tpdo (T'do)
  • - *
  • .tppdo (T''do)
  • - *
  • .tpqo (T'qo)
  • - *
  • .tppqo (T''qo)
  • - *
  • .tc.
  • - *
- */ - class SynchronousMachineTimeConstantReactance : public IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::SynchronousMachineDetailed - { - - public: - SynchronousMachineTimeConstantReactance(); - virtual ~SynchronousMachineTimeConstantReactance(); - /** - * Saturation loading correction factor (Ks) (>= 0). Used only by Type J model. - * Typical Value = 0. - */ - IEC61970::Base::Domain::Float ks; - /** - * Type of synchronous machine model used in Dynamic simulation applications. - */ - IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::SynchronousMachineModelKind modelType = IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::SynchronousMachineModelKind::_undef; - /** - * Type of rotor on physical machine. - */ - IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::RotorKind rotorType = IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::RotorKind::_undef; - /** - * Damping time constant for “Canay” reactance. Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tc; - /** - * Direct-axis transient rotor time constant (T'do) (> T''do). Typical Value = 5. - */ - IEC61970::Base::Domain::Seconds tpdo; - /** - * Direct-axis subtransient rotor time constant (T''do) (> 0). Typical Value = 0. - * 03. - */ - IEC61970::Base::Domain::Seconds tppdo; - /** - * Quadrature-axis subtransient rotor time constant (T''qo) (> 0). Typical Value = - * 0.03. - */ - IEC61970::Base::Domain::Seconds tppqo; - /** - * Quadrature-axis transient rotor time constant (T'qo) (> T''qo). Typical Value = - * 0.5. - */ - IEC61970::Base::Domain::Seconds tpqo; - /** - * Direct-axis subtransient reactance (unsaturated) (X''d) (> Xl). Typical Value - * = 0.2. - */ - IEC61970::Base::Domain::PU xDirectSubtrans; - /** - * Direct-axis synchronous reactance (Xd) (>= X'd). - * The quotient of a sustained value of that AC component of armature voltage that - * is produced by the total direct-axis flux due to direct-axis armature current - * and the value of the AC component of this current, the machine running at rated - * speed. Typical Value = 1.8. - */ - IEC61970::Base::Domain::PU xDirectSync; - /** - * Direct-axis transient reactance (unsaturated) (X'd) (> =X''d). Typical Value = - * 0.5. - */ - IEC61970::Base::Domain::PU xDirectTrans; - /** - * Quadrature-axis subtransient reactance (X''q) (> Xl). Typical Value = 0.2. - */ - IEC61970::Base::Domain::PU xQuadSubtrans; - /** - * Quadrature-axis synchronous reactance (Xq) (> =X'q). - * The ratio of the component of reactive armature voltage, due to the quadrature- - * axis component of armature current, to this component of current, under steady - * state conditions and at rated frequency. Typical Value = 1.6. - */ - IEC61970::Base::Domain::PU xQuadSync; - /** - * Quadrature-axis transient reactance (X'q) (> =X''q). Typical Value = 0.3. - */ - IEC61970::Base::Domain::PU xQuadTrans; - - }; - - } - - } - - } - -} -#endif // SYNCHRONOUSMACHINETIMECONSTANTREACTANCE_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/DroopSignalFeedbackKind.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/DroopSignalFeedbackKind.h deleted file mode 100644 index 0d10c93ed..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/DroopSignalFeedbackKind.h +++ /dev/null @@ -1,51 +0,0 @@ -/////////////////////////////////////////////////////////// -// DroopSignalFeedbackKind.h -// Implementation of the Class DroopSignalFeedbackKind -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#ifndef DROOPSIGNALFEEDBACKKIND_H -#define DROOPSIGNALFEEDBACKKIND_H - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace TurbineGovernorDynamics - { - /** - * Governor droop signal feedback source. - */ - enum class DroopSignalFeedbackKind - { - /** - * Electrical power feedback (connection indicated as 1 in the block diagrams of - * models, e.g. GovCT1, GovCT2). - */ - _undef = -1, electricalPower, - /** - * No droop signal feedback, is isochronous governor. - */ - none, - /** - * Fuel valve stroke feedback (true stroke) (connection indicated as 2 in the - * block diagrams of model, e.g. GovCT1, GovCT2). - */ - fuelValveStroke, - /** - * Governor output feedback (requested stroke) (connection indicated as 3 in the - * block diagrams of models, e.g. GovCT1, GovCT2). - */ - governorOutput - }; - - } - - } - - } - -} -#endif // DROOPSIGNALFEEDBACKKIND_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/FrancisGovernorControlKind.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/FrancisGovernorControlKind.h deleted file mode 100644 index 93f43a67b..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/FrancisGovernorControlKind.h +++ /dev/null @@ -1,44 +0,0 @@ -/////////////////////////////////////////////////////////// -// FrancisGovernorControlKind.h -// Implementation of the Class FrancisGovernorControlKind -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#ifndef FRANCISGOVERNORCONTROLKIND_H -#define FRANCISGOVERNORCONTROLKIND_H - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace TurbineGovernorDynamics - { - /** - * Governor control flag for Francis hydro model. - */ - enum class FrancisGovernorControlKind - { - /** - * Mechanic-hydraulic regulator with tacho-accelerometer (Cflag = 1). - */ - _undef = -1, mechanicHydrolicTachoAccelerator, - /** - * Mechanic-hydraulic regulator with transient feedback (Cflag=2). - */ - mechanicHydraulicTransientFeedback, - /** - * Electromechanical and electrohydraulic regulator (Cflag=3). - */ - electromechanicalElectrohydraulic - }; - - } - - } - - } - -} -#endif // FRANCISGOVERNORCONTROLKIND_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovCT1.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovCT1.cpp deleted file mode 100644 index 25cfac41e..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovCT1.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovCT1.cpp -// Implementation of the Class GovCT1 -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "GovCT1.h" - -using IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT1; - - -GovCT1::GovCT1(){ - -} - - - -GovCT1::~GovCT1(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovCT1.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovCT1.h deleted file mode 100644 index fecef7ffd..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovCT1.h +++ /dev/null @@ -1,225 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovCT1.h -// Implementation of the Class GovCT1 -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef GOVCT1_H -#define GOVCT1_H - -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/ActivePower.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/DroopSignalFeedbackKind.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/TurbineGovernorDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace TurbineGovernorDynamics - { - /** - * General model for any prime mover with a PID governor, used primarily for - * combustion turbine and combined cycle units. - * This model can be used to represent a variety of prime movers controlled by PID - * governors. It is suitable, for example, for representation of - *
    - *
  • gas turbine and single shaft combined cycle turbines
  • - *
- *
    - *
  • diesel engines with modern electronic or digital governors
  • - *
- *
    - *
  • steam turbines where steam is supplied from a large boiler drum or a large - * header whose pressure is substantially constant over the period under study - *
  • - *
  • simple hydro turbines in dam configurations where the water column length - * is short and water inertia effects are minimal.
  • - *
- * Additional information on this model is available in the 2012 IEEE report, - * Dynamic Models for Turbine-Governors in Power System Studies, - * section 3.1.2.3 page 3-4 (GGOV1). - */ - class GovCT1 : public IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::TurbineGovernorDynamics - { - - public: - GovCT1(); - virtual ~GovCT1(); - /** - * Acceleration limiter setpoint (Aset). Unit = PU/sec. Typical Value = 0.01. - */ - IEC61970::Base::Domain::Float aset; - /** - * Speed governor dead band in per unit speed (db). In the majority of - * applications, it is recommended that this value be set to zero. Typical Value - * = 0. - */ - IEC61970::Base::Domain::PU db; - /** - * Speed sensitivity coefficient (Dm). Dm can represent either the variation of - * the engine power with the shaft speed or the variation of maximum power - * capability with shaft speed. If it is positive it describes the falling slope - * of the engine speed verses power characteristic as speed increases. A slightly - * falling characteristic is typical for reciprocating engines and some aero- - * derivative turbines. If it is negative the engine power is assumed to be - * unaffected by the shaft speed, but the maximum permissible fuel flow is taken - * to fall with falling shaft speed. This is characteristic of single-shaft - * industrial turbines due to exhaust temperature limits. Typical Value = 0. - */ - IEC61970::Base::Domain::PU dm; - /** - * Acceleration limiter gain (Ka). Typical Value = 10. - */ - IEC61970::Base::Domain::PU ka; - /** - * Governor derivative gain (Kdgov). Typical Value = 0. - */ - IEC61970::Base::Domain::PU kdgov; - /** - * Governor integral gain (Kigov). Typical Value = 2. - */ - IEC61970::Base::Domain::PU kigov; - /** - * Load limiter integral gain for PI controller (Kiload). Typical Value = 0.67. - */ - IEC61970::Base::Domain::PU kiload; - /** - * Power controller (reset) gain (Kimw). The default value of 0.01 corresponds to - * a reset time of 100 seconds. A value of 0.001 corresponds to a relatively slow - * acting load controller. Typical Value = 0.01. - */ - IEC61970::Base::Domain::PU kimw; - /** - * Governor proportional gain (Kpgov). Typical Value = 10. - */ - IEC61970::Base::Domain::PU kpgov; - /** - * Load limiter proportional gain for PI controller (Kpload). Typical Value = 2. - */ - IEC61970::Base::Domain::PU kpload; - /** - * Turbine gain (Kturb) (>0). Typical Value = 1.5. - */ - IEC61970::Base::Domain::PU kturb; - /** - * Load limiter reference value (Ldref). Typical Value = 1. - */ - IEC61970::Base::Domain::PU ldref; - /** - * Maximum value for speed error signal (maxerr). Typical Value = 0.05. - */ - IEC61970::Base::Domain::PU maxerr; - /** - * Minimum value for speed error signal (minerr). Typical Value = -0.05. - */ - IEC61970::Base::Domain::PU minerr; - /** - * Base for power values (MWbase) (> 0). Unit = MW. - */ - IEC61970::Base::Domain::ActivePower mwbase; - /** - * Permanent droop (R). Typical Value = 0.04. - */ - IEC61970::Base::Domain::PU r; - /** - * Minimum valve closing rate (Rclose). Unit = PU/sec. Typical Value = -0.1. - */ - IEC61970::Base::Domain::Float rclose; - /** - * Maximum rate of load limit decrease (Rdown). Typical Value = -99. - */ - IEC61970::Base::Domain::PU rdown; - /** - * Maximum valve opening rate (Ropen). Unit = PU/sec. Typical Value = 0.10. - */ - IEC61970::Base::Domain::Float ropen; - /** - * Feedback signal for droop (Rselect). Typical Value = electricalPower. - */ - IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::DroopSignalFeedbackKind rselect = IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::DroopSignalFeedbackKind::_undef; - /** - * Maximum rate of load limit increase (Rup). Typical Value = 99. - */ - IEC61970::Base::Domain::PU rup; - /** - * Acceleration limiter time constant (Ta) (>0). Typical Value = 0.1. - */ - IEC61970::Base::Domain::Seconds ta; - /** - * Actuator time constant (Tact). Typical Value = 0.5. - */ - IEC61970::Base::Domain::Seconds tact; - /** - * Turbine lag time constant (Tb) (>0). Typical Value = 0.5. - */ - IEC61970::Base::Domain::Seconds tb; - /** - * Turbine lead time constant (Tc). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tc; - /** - * Governor derivative controller time constant (Tdgov). Typical Value = 1. - */ - IEC61970::Base::Domain::Seconds tdgov; - /** - * Transport time delay for diesel engine used in representing diesel engines - * where there is a small but measurable transport delay between a change in fuel - * flow setting and the development of torque (Teng). Teng should be zero in all - * but special cases where this transport delay is of particular concern. Typical - * Value = 0. - */ - IEC61970::Base::Domain::Seconds teng; - /** - * Load Limiter time constant (Tfload) (>0). Typical Value = 3. - */ - IEC61970::Base::Domain::Seconds tfload; - /** - * Electrical power transducer time constant (Tpelec) (>0). Typical Value = 1. - */ - IEC61970::Base::Domain::Seconds tpelec; - /** - * Temperature detection lead time constant (Tsa). Typical Value = 4. - */ - IEC61970::Base::Domain::Seconds tsa; - /** - * Temperature detection lag time constant (Tsb). Typical Value = 5. - */ - IEC61970::Base::Domain::Seconds tsb; - /** - * Maximum valve position limit (Vmax). Typical Value = 1. - */ - IEC61970::Base::Domain::PU vmax; - /** - * Minimum valve position limit (Vmin). Typical Value = 0.15. - */ - IEC61970::Base::Domain::PU vmin; - /** - * No load fuel flow (Wfnl). Typical Value = 0.2. - */ - IEC61970::Base::Domain::PU wfnl; - /** - * Switch for fuel source characteristic to recognize that fuel flow, for a given - * fuel valve stroke, can be proportional to engine speed (Wfspd). - * true = fuel flow proportional to speed (for some gas turbines and diesel - * engines with positive displacement fuel injectors) - * false = fuel control system keeps fuel flow independent of engine speed. - * Typical Value = true. - */ - IEC61970::Base::Domain::Boolean wfspd; - - }; - - } - - } - - } - -} -#endif // GOVCT1_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovCT2.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovCT2.cpp deleted file mode 100644 index e7784c578..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovCT2.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovCT2.cpp -// Implementation of the Class GovCT2 -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "GovCT2.h" - -using IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT2; - - -GovCT2::GovCT2(){ - -} - - - -GovCT2::~GovCT2(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovCT2.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovCT2.h deleted file mode 100644 index fcd363074..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovCT2.h +++ /dev/null @@ -1,293 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovCT2.h -// Implementation of the Class GovCT2 -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef GOVCT2_H -#define GOVCT2_H - -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Frequency.h" -#include "IEC61970/Base/Domain/ActivePower.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/DroopSignalFeedbackKind.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/TurbineGovernorDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace TurbineGovernorDynamics - { - /** - * General governor model with frequency-dependent fuel flow limit. This model is - * a modification of the GovCT1 model in order to represent the frequency- - * dependent fuel flow limit of a specific gas turbine manufacturer. - */ - class GovCT2 : public IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::TurbineGovernorDynamics - { - - public: - GovCT2(); - virtual ~GovCT2(); - /** - * Acceleration limiter setpoint (Aset). Unit = PU/sec. Typical Value = 10. - */ - IEC61970::Base::Domain::Float aset; - /** - * Speed governor dead band in per unit speed (db). In the majority of - * applications, it is recommended that this value be set to zero. Typical Value - * = 0. - */ - IEC61970::Base::Domain::PU db; - /** - * Speed sensitivity coefficient (Dm). Dm can represent either the variation of - * the engine power with the shaft speed or the variation of maximum power - * capability with shaft speed. If it is positive it describes the falling slope - * of the engine speed verses power characteristic as speed increases. A slightly - * falling characteristic is typical for reciprocating engines and some aero- - * derivative turbines. If it is negative the engine power is assumed to be - * unaffected by the shaft speed, but the maximum permissible fuel flow is taken - * to fall with falling shaft speed. This is characteristic of single-shaft - * industrial turbines due to exhaust temperature limits. Typical Value = 0. - */ - IEC61970::Base::Domain::PU dm; - /** - * Frequency threshold 1 (Flim1). Unit = Hz. Typical Value = 59. - */ - IEC61970::Base::Domain::Frequency flim1; - /** - * Frequency threshold 10 (Flim10). Unit = Hz. Typical Value = 0. - */ - IEC61970::Base::Domain::Frequency flim10; - /** - * Frequency threshold 2 (Flim2). Unit = Hz. Typical Value = 0. - */ - IEC61970::Base::Domain::Frequency flim2; - /** - * Frequency threshold 3 (Flim3). Unit = Hz. Typical Value = 0. - */ - IEC61970::Base::Domain::Frequency flim3; - /** - * Frequency threshold 4 (Flim4). Unit = Hz. Typical Value = 0. - */ - IEC61970::Base::Domain::Frequency flim4; - /** - * Frequency threshold 5 (Flim5). Unit = Hz. Typical Value = 0. - */ - IEC61970::Base::Domain::Frequency flim5; - /** - * Frequency threshold 6 (Flim6). Unit = Hz. Typical Value = 0. - */ - IEC61970::Base::Domain::Frequency flim6; - /** - * Frequency threshold 7 (Flim7). Unit = Hz. Typical Value = 0. - */ - IEC61970::Base::Domain::Frequency flim7; - /** - * Frequency threshold 8 (Flim8). Unit = Hz. Typical Value = 0. - */ - IEC61970::Base::Domain::Frequency flim8; - /** - * Frequency threshold 9 (Flim9). Unit = Hz. Typical Value = 0. - */ - IEC61970::Base::Domain::Frequency flim9; - /** - * Acceleration limiter Gain (Ka). Typical Value = 10. - */ - IEC61970::Base::Domain::PU ka; - /** - * Governor derivative gain (Kdgov). Typical Value = 0. - */ - IEC61970::Base::Domain::PU kdgov; - /** - * Governor integral gain (Kigov). Typical Value = 0.45. - */ - IEC61970::Base::Domain::PU kigov; - /** - * Load limiter integral gain for PI controller (Kiload). Typical Value = 1. - */ - IEC61970::Base::Domain::PU kiload; - /** - * Power controller (reset) gain (Kimw). The default value of 0.01 corresponds to - * a reset time of 100 seconds. A value of 0.001 corresponds to a relatively slow - * acting load controller. Typical Value = 0. - */ - IEC61970::Base::Domain::PU kimw; - /** - * Governor proportional gain (Kpgov). Typical Value = 4. - */ - IEC61970::Base::Domain::PU kpgov; - /** - * Load limiter proportional gain for PI controller (Kpload). Typical Value = 1. - */ - IEC61970::Base::Domain::PU kpload; - /** - * Turbine gain (Kturb). Typical Value = 1.9168. - */ - IEC61970::Base::Domain::PU kturb; - /** - * Load limiter reference value (Ldref). Typical Value = 1. - */ - IEC61970::Base::Domain::PU ldref; - /** - * Maximum value for speed error signal (Maxerr). Typical Value = 1. - */ - IEC61970::Base::Domain::PU maxerr; - /** - * Minimum value for speed error signal (Minerr). Typical Value = -1. - */ - IEC61970::Base::Domain::PU minerr; - /** - * Base for power values (MWbase) (> 0). Unit = MW. - */ - IEC61970::Base::Domain::ActivePower mwbase; - /** - * Power limit 1 (Plim1). Typical Value = 0.8325. - */ - IEC61970::Base::Domain::PU plim1; - /** - * Power limit 10 (Plim10). Typical Value = 0. - */ - IEC61970::Base::Domain::PU plim10; - /** - * Power limit 2 (Plim2). Typical Value = 0. - */ - IEC61970::Base::Domain::PU plim2; - /** - * Power limit 3 (Plim3). Typical Value = 0. - */ - IEC61970::Base::Domain::PU plim3; - /** - * Power limit 4 (Plim4). Typical Value = 0. - */ - IEC61970::Base::Domain::PU plim4; - /** - * Power limit 5 (Plim5). Typical Value = 0. - */ - IEC61970::Base::Domain::PU plim5; - /** - * Power limit 6 (Plim6). Typical Value = 0. - */ - IEC61970::Base::Domain::PU plim6; - /** - * Power limit 7 (Plim7). Typical Value = 0. - */ - IEC61970::Base::Domain::PU plim7; - /** - * Power limit 8 (Plim8). Typical Value = 0. - */ - IEC61970::Base::Domain::PU plim8; - /** - * Power Limit 9 (Plim9). Typical Value = 0. - */ - IEC61970::Base::Domain::PU plim9; - /** - * Ramp rate for frequency-dependent power limit (Prate). Typical Value = 0.017. - */ - IEC61970::Base::Domain::PU prate; - /** - * Permanent droop (R). Typical Value = 0.05. - */ - IEC61970::Base::Domain::PU r; - /** - * Minimum valve closing rate (Rclose). Unit = PU/sec. Typical Value = -99. - */ - IEC61970::Base::Domain::Float rclose; - /** - * Maximum rate of load limit decrease (Rdown). Typical Value = -99. - */ - IEC61970::Base::Domain::PU rdown; - /** - * Maximum valve opening rate (Ropen). Unit = PU/sec. Typical Value = 99. - */ - IEC61970::Base::Domain::Float ropen; - /** - * Feedback signal for droop (Rselect). Typical Value = electricalPower. - */ - IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::DroopSignalFeedbackKind rselect = IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::DroopSignalFeedbackKind::_undef; - /** - * Maximum rate of load limit increase (Rup). Typical Value = 99. - */ - IEC61970::Base::Domain::PU rup; - /** - * Acceleration limiter time constant (Ta). Typical Value = 1. - */ - IEC61970::Base::Domain::Seconds ta; - /** - * Actuator time constant (Tact). Typical Value = 0.4. - */ - IEC61970::Base::Domain::Seconds tact; - /** - * Turbine lag time constant (Tb). Typical Value = 0.1. - */ - IEC61970::Base::Domain::Seconds tb; - /** - * Turbine lead time constant (Tc). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tc; - /** - * Governor derivative controller time constant (Tdgov). Typical Value = 1. - */ - IEC61970::Base::Domain::Seconds tdgov; - /** - * Transport time delay for diesel engine used in representing diesel engines - * where there is a small but measurable transport delay between a change in fuel - * flow setting and the development of torque (Teng). Teng should be zero in all - * but special cases where this transport delay is of particular concern. Typical - * Value = 0. - */ - IEC61970::Base::Domain::Seconds teng; - /** - * Load Limiter time constant (Tfload). Typical Value = 3. - */ - IEC61970::Base::Domain::Seconds tfload; - /** - * Electrical power transducer time constant (Tpelec). Typical Value = 2.5. - */ - IEC61970::Base::Domain::Seconds tpelec; - /** - * Temperature detection lead time constant (Tsa). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tsa; - /** - * Temperature detection lag time constant (Tsb). Typical Value = 50. - */ - IEC61970::Base::Domain::Seconds tsb; - /** - * Maximum valve position limit (Vmax). Typical Value = 1. - */ - IEC61970::Base::Domain::PU vmax; - /** - * Minimum valve position limit (Vmin). Typical Value = 0.175. - */ - IEC61970::Base::Domain::PU vmin; - /** - * No load fuel flow (Wfnl). Typical Value = 0.187. - */ - IEC61970::Base::Domain::PU wfnl; - /** - * Switch for fuel source characteristic to recognize that fuel flow, for a given - * fuel valve stroke, can be proportional to engine speed (Wfspd). - * true = fuel flow proportional to speed (for some gas turbines and diesel - * engines with positive displacement fuel injectors) - * false = fuel control system keeps fuel flow independent of engine speed. - * Typical Value = false. - */ - IEC61970::Base::Domain::Boolean wfspd; - - }; - - } - - } - - } - -} -#endif // GOVCT2_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovGAST.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovGAST.cpp deleted file mode 100644 index 2b0d0ac66..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovGAST.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovGAST.cpp -// Implementation of the Class GovGAST -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "GovGAST.h" - -using IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST; - - -GovGAST::GovGAST(){ - -} - - - -GovGAST::~GovGAST(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovGAST.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovGAST.h deleted file mode 100644 index 02add745c..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovGAST.h +++ /dev/null @@ -1,88 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovGAST.h -// Implementation of the Class GovGAST -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef GOVGAST_H -#define GOVGAST_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/ActivePower.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/TurbineGovernorDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace TurbineGovernorDynamics - { - /** - * Single shaft gas turbine. - */ - class GovGAST : public IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::TurbineGovernorDynamics - { - - public: - GovGAST(); - virtual ~GovGAST(); - /** - * Ambient temperature load limit (Load Limit). Typical Value = 1. - */ - IEC61970::Base::Domain::PU at; - /** - * Turbine damping factor (Dturb). Typical Value = 0.18. - */ - IEC61970::Base::Domain::PU dturb; - /** - * Temperature limiter gain (Kt). Typical Value = 3. - */ - IEC61970::Base::Domain::PU kt; - /** - * Base for power values (MWbase) (> 0). - */ - IEC61970::Base::Domain::ActivePower mwbase; - /** - * Permanent droop (R). Typical Value = 0.04. - */ - IEC61970::Base::Domain::PU r; - /** - * Governor mechanism time constant (T1). T1 represents the natural valve - * positioning time constant of the governor for small disturbances, as seen when - * rate limiting is not in effect. Typical Value = 0.5. - */ - IEC61970::Base::Domain::Seconds t1; - /** - * Turbine power time constant (T2). T2 represents delay due to internal energy - * storage of the gas turbine engine. T2 can be used to give a rough approximation - * to the delay associated with acceleration of the compressor spool of a multi- - * shaft engine, or with the compressibility of gas in the plenum of a the free - * power turbine of an aero-derivative unit, for example. Typical Value = 0.5. - */ - IEC61970::Base::Domain::Seconds t2; - /** - * Turbine exhaust temperature time constant (T3). Typical Value = 3. - */ - IEC61970::Base::Domain::Seconds t3; - /** - * Maximum turbine power, PU of MWbase (Vmax). Typical Value = 1. - */ - IEC61970::Base::Domain::PU vmax; - /** - * Minimum turbine power, PU of MWbase (Vmin). Typical Value = 0. - */ - IEC61970::Base::Domain::PU vmin; - - }; - - } - - } - - } - -} -#endif // GOVGAST_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovGAST1.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovGAST1.cpp deleted file mode 100644 index 412469a9f..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovGAST1.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovGAST1.cpp -// Implementation of the Class GovGAST1 -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#include "GovGAST1.h" - -using IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST1; - - -GovGAST1::GovGAST1(){ - -} - - - -GovGAST1::~GovGAST1(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovGAST1.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovGAST1.h deleted file mode 100644 index b6ac2db17..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovGAST1.h +++ /dev/null @@ -1,188 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovGAST1.h -// Implementation of the Class GovGAST1 -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#ifndef GOVGAST1_H -#define GOVGAST1_H - -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/Frequency.h" -#include "IEC61970/Base/Domain/ActivePower.h" -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/TurbineGovernorDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace TurbineGovernorDynamics - { - /** - * Modified single shaft gas turbine. - */ - class GovGAST1 : public IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::TurbineGovernorDynamics - { - - public: - GovGAST1(); - virtual ~GovGAST1(); - /** - * Turbine power time constant numerator scale factor (a). Typical Value = 0.8. - */ - IEC61970::Base::Domain::Float a; - /** - * Turbine power time constant denominator scale factor (b). Typical Value = 1. - */ - IEC61970::Base::Domain::Float b; - /** - * Intentional dead-band width (db1). Unit = Hz. Typical Value = 0. - */ - IEC61970::Base::Domain::Frequency db1; - /** - * Unintentional dead-band (db2). Unit = MW. Typical Value = 0. - */ - IEC61970::Base::Domain::ActivePower db2; - /** - * Intentional db hysteresis (eps). Unit = Hz. Typical Value = 0. - */ - IEC61970::Base::Domain::Frequency eps; - /** - * Fuel flow at zero power output (Fidle). Typical Value = 0.18. - */ - IEC61970::Base::Domain::PU fidle; - /** - * Nonlinear gain point 1, PU gv (Gv1). Typical Value = 0. - */ - IEC61970::Base::Domain::PU gv1; - /** - * Nonlinear gain point 2,PU gv (Gv2). Typical Value = 0. - */ - IEC61970::Base::Domain::PU gv2; - /** - * Nonlinear gain point 3, PU gv (Gv3). Typical Value = 0. - */ - IEC61970::Base::Domain::PU gv3; - /** - * Nonlinear gain point 4, PU gv (Gv4). Typical Value = 0. - */ - IEC61970::Base::Domain::PU gv4; - /** - * Nonlinear gain point 5, PU gv (Gv5). Typical Value = 0. - */ - IEC61970::Base::Domain::PU gv5; - /** - * Nonlinear gain point 6, PU gv (Gv6). Typical Value = 0. - */ - IEC61970::Base::Domain::PU gv6; - /** - * Governor gain (Ka). Typical Value = 0. - */ - IEC61970::Base::Domain::PU ka; - /** - * Temperature limiter gain (Kt). Typical Value = 3. - */ - IEC61970::Base::Domain::PU kt; - /** - * Ambient temperature load limit (Lmax). Lmax is the turbine power output - * corresponding to the limiting exhaust gas temperature. Typical Value = 1. - */ - IEC61970::Base::Domain::PU lmax; - /** - * Valve position change allowed at fast rate (Loadinc). Typical Value = 0.05. - */ - IEC61970::Base::Domain::PU loadinc; - /** - * Maximum long term fuel valve opening rate (Ltrate). Typical Value = 0.02. - */ - IEC61970::Base::Domain::Float ltrate; - /** - * Base for power values (MWbase) (> 0). Unit = MW. - */ - IEC61970::Base::Domain::ActivePower mwbase; - /** - * Nonlinear gain point 1, PU power (Pgv1). Typical Value = 0. - */ - IEC61970::Base::Domain::PU pgv1; - /** - * Nonlinear gain point 2, PU power (Pgv2). Typical Value = 0. - */ - IEC61970::Base::Domain::PU pgv2; - /** - * Nonlinear gain point 3, PU power (Pgv3). Typical Value = 0. - */ - IEC61970::Base::Domain::PU pgv3; - /** - * Nonlinear gain point 4, PU power (Pgv4). Typical Value = 0. - */ - IEC61970::Base::Domain::PU pgv4; - /** - * Nonlinear gain point 5, PU power (Pgv5). Typical Value = 0. - */ - IEC61970::Base::Domain::PU pgv5; - /** - * Nonlinear gain point 6, PU power (Pgv6). Typical Value = 0. - */ - IEC61970::Base::Domain::PU pgv6; - /** - * Permanent droop (R). Typical Value = 0.04. - */ - IEC61970::Base::Domain::PU r; - /** - * Maximum fuel valve opening rate (Rmax). Unit = PU/sec. Typical Value = 1. - */ - IEC61970::Base::Domain::Float rmax; - /** - * Governor mechanism time constant (T1). T1 represents the natural valve - * positioning time constant of the governor for small disturbances, as seen when - * rate limiting is not in effect. Typical Value = 0.5. - */ - IEC61970::Base::Domain::Seconds t1; - /** - * Turbine power time constant (T2). T2 represents delay due to internal energy - * storage of the gas turbine engine. T2 can be used to give a rough approximation - * to the delay associated with acceleration of the compressor spool of a multi- - * shaft engine, or with the compressibility of gas in the plenum of the free - * power turbine of an aero-derivative unit, for example. Typical Value = 0.5. - */ - IEC61970::Base::Domain::Seconds t2; - /** - * Turbine exhaust temperature time constant (T3). T3 represents delay in the - * exhaust temperature and load limiting system. Typical Value = 3. - */ - IEC61970::Base::Domain::Seconds t3; - /** - * Governor lead time constant (T4). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds t4; - /** - * Governor lag time constant (T5). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds t5; - /** - * Valve position averaging time constant (Tltr). Typical Value = 10. - */ - IEC61970::Base::Domain::Seconds tltr; - /** - * Maximum turbine power, PU of MWbase (Vmax). Typical Value = 1. - */ - IEC61970::Base::Domain::PU vmax; - /** - * Minimum turbine power, PU of MWbase (Vmin). Typical Value = 0. - */ - IEC61970::Base::Domain::PU vmin; - - }; - - } - - } - - } - -} -#endif // GOVGAST1_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovGAST2.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovGAST2.cpp deleted file mode 100644 index af765ffb5..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovGAST2.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovGAST2.cpp -// Implementation of the Class GovGAST2 -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "GovGAST2.h" - -using IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST2; - - -GovGAST2::GovGAST2(){ - -} - - - -GovGAST2::~GovGAST2(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovGAST2.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovGAST2.h deleted file mode 100644 index f2e6eede6..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovGAST2.h +++ /dev/null @@ -1,179 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovGAST2.h -// Implementation of the Class GovGAST2 -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef GOVGAST2_H -#define GOVGAST2_H - -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Domain/ActivePower.h" -#include "IEC61970/Base/Domain/Temperature.h" -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/TurbineGovernorDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace TurbineGovernorDynamics - { - /** - * Gas turbine model. - */ - class GovGAST2 : public IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::TurbineGovernorDynamics - { - - public: - GovGAST2(); - virtual ~GovGAST2(); - /** - * Valve positioner (A). - */ - IEC61970::Base::Domain::Float a; - /** - * Exhaust temperature Parameter (Af1). Unit = per unit temperature. Based on - * temperature in degrees C. - */ - IEC61970::Base::Domain::PU af1; - /** - * Coefficient equal to 0.5(1-speed) (Af2). - */ - IEC61970::Base::Domain::PU af2; - /** - * Valve positioner (B). - */ - IEC61970::Base::Domain::Float b; - /** - * (Bf1). Bf1 = E(1-w) where E (speed sensitivity coefficient) is 0.55 to 0.65 x - * Tr. Unit = per unit temperature. Based on temperature in degrees C. - */ - IEC61970::Base::Domain::PU bf1; - /** - * Turbine Torque Coefficient Khhv (depends on heating value of fuel - * stream in combustion chamber) (Bf2). - */ - IEC61970::Base::Domain::PU bf2; - /** - * Valve positioner (C). - */ - IEC61970::Base::Domain::Float c; - /** - * Coefficient defining fuel flow where power output is 0% (Cf2). Synchronous but - * no output. Typically 0.23 x Khhv (23% fuel flow). - */ - IEC61970::Base::Domain::PU cf2; - /** - * Combustion reaction time delay (Ecr). - */ - IEC61970::Base::Domain::Seconds ecr; - /** - * Turbine and exhaust delay (Etd). - */ - IEC61970::Base::Domain::Seconds etd; - /** - * Ratio of Fuel Adjustment (K3). - */ - IEC61970::Base::Domain::PU k3; - /** - * Gain of radiation shield (K4). - */ - IEC61970::Base::Domain::PU k4; - /** - * Gain of radiation shield (K5). - */ - IEC61970::Base::Domain::PU k5; - /** - * Minimum fuel flow (K6). - */ - IEC61970::Base::Domain::PU k6; - /** - * Fuel system feedback (Kf). - */ - IEC61970::Base::Domain::PU kf; - /** - * Base for power values (MWbase) (> 0). Unit = MW. - */ - IEC61970::Base::Domain::ActivePower mwbase; - /** - * Fuel Control Time Constant (T). - */ - IEC61970::Base::Domain::Seconds t; - /** - * Radiation shield time constant (T3). - */ - IEC61970::Base::Domain::Seconds t3; - /** - * Thermocouple time constant (T4). - */ - IEC61970::Base::Domain::Seconds t4; - /** - * Temperature control time constant (T5). - */ - IEC61970::Base::Domain::Seconds t5; - /** - * Temperature control (Tc). Unit = °F or °C depending on constants Af1 and Bf1. - */ - IEC61970::Base::Domain::Temperature tc; - /** - * Compressor discharge time constant (Tcd). - */ - IEC61970::Base::Domain::Seconds tcd; - /** - * Fuel system time constant (Tf). - */ - IEC61970::Base::Domain::Seconds tf; - /** - * Maximum Turbine limit (Tmax). - */ - IEC61970::Base::Domain::PU tmax; - /** - * Minimum Turbine limit (Tmin). - */ - IEC61970::Base::Domain::PU tmin; - /** - * Rated temperature (Tr). Unit = °C depending on parameters Af1 and Bf1. - */ - IEC61970::Base::Domain::Temperature tr; - /** - * Turbine rating (Trate). Unit = MW. - */ - IEC61970::Base::Domain::ActivePower trate; - /** - * Temperature controller integration rate (Tt). - */ - IEC61970::Base::Domain::Seconds tt; - /** - * Governor gain (1/droop) on turbine rating (W). - */ - IEC61970::Base::Domain::PU w; - /** - * Governor lead time constant (X). - */ - IEC61970::Base::Domain::Seconds x; - /** - * Governor lag time constant (Y) (>0). - */ - IEC61970::Base::Domain::Seconds y; - /** - * Governor mode (Z). - * true = Droop - * false = ISO. - */ - IEC61970::Base::Domain::Boolean z; - - }; - - } - - } - - } - -} -#endif // GOVGAST2_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovGAST3.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovGAST3.cpp deleted file mode 100644 index 0dc9e8f39..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovGAST3.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovGAST3.cpp -// Implementation of the Class GovGAST3 -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#include "GovGAST3.h" - -using IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST3; - - -GovGAST3::GovGAST3(){ - -} - - - -GovGAST3::~GovGAST3(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovGAST3.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovGAST3.h deleted file mode 100644 index 86df1666b..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovGAST3.h +++ /dev/null @@ -1,131 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovGAST3.h -// Implementation of the Class GovGAST3 -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#ifndef GOVGAST3_H -#define GOVGAST3_H - -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Temperature.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/TurbineGovernorDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace TurbineGovernorDynamics - { - /** - * Generic turbogas with acceleration and temperature controller. - */ - class GovGAST3 : public IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::TurbineGovernorDynamics - { - - public: - GovGAST3(); - virtual ~GovGAST3(); - /** - * Acceleration limit set-point (Bca). Unit = 1/s. Typical Value = 0.01. - */ - IEC61970::Base::Domain::Float bca; - /** - * Droop (bp). Typical Value = 0.05. - */ - IEC61970::Base::Domain::PU bp; - /** - * Exhaust temperature variation due to fuel flow increasing from 0 to 1 PU - * (deltaTc). Typical Value = 390. - */ - IEC61970::Base::Domain::Temperature dtc; - /** - * Minimum fuel flow (Ka). Typical Value = 0.23. - */ - IEC61970::Base::Domain::PU ka; - /** - * Fuel system feedback (KAC). Typical Value = 0. - */ - IEC61970::Base::Domain::Float kac; - /** - * Acceleration control integral gain (Kca). Unit = 1/s. Typical Value = 100. - */ - IEC61970::Base::Domain::Float kca; - /** - * Gain of radiation shield (Ksi). Typical Value = 0.8. - */ - IEC61970::Base::Domain::Float ksi; - /** - * Coefficient of transfer function of fuel valve positioner (Ky). Typical Value - * = 1. - */ - IEC61970::Base::Domain::Float ky; - /** - * Fuel flow maximum negative error value (MNEF). Typical Value = -0. - * 05. - */ - IEC61970::Base::Domain::PU mnef; - /** - * Fuel flow maximum positive error value (MXEF). Typical Value = 0.05. - */ - IEC61970::Base::Domain::PU mxef; - /** - * Minimum fuel flow (RCMN). Typical Value = -0.1. - */ - IEC61970::Base::Domain::PU rcmn; - /** - * Maximum fuel flow (RCMX). Typical Value = 1. - */ - IEC61970::Base::Domain::PU rcmx; - /** - * Fuel control time constant (Tac). Typical Value = 0.1. - */ - IEC61970::Base::Domain::Seconds tac; - /** - * Compressor discharge volume time constant (Tc). Typical Value = 0.2. - */ - IEC61970::Base::Domain::Seconds tc; - /** - * Temperature controller derivative gain (Td). Typical Value = 3.3. - */ - IEC61970::Base::Domain::Seconds td; - /** - * Turbine rated exhaust temperature correspondent to Pm=1 PU (Tfen). Typical - * Value = 540. - */ - IEC61970::Base::Domain::Temperature tfen; - /** - * Time constant of speed governor (Tg). Typical Value = 0.05. - */ - IEC61970::Base::Domain::Seconds tg; - /** - * Time constant of radiation shield (Tsi). Typical Value = 15. - */ - IEC61970::Base::Domain::Seconds tsi; - /** - * Temperature controller integration rate (Tt). Typical Value = 250. - */ - IEC61970::Base::Domain::Temperature tt; - /** - * Time constant of thermocouple (Ttc). Typical Value = 2.5. - */ - IEC61970::Base::Domain::Seconds ttc; - /** - * Time constant of fuel valve positioner (Ty). Typical Value = 0.2. - */ - IEC61970::Base::Domain::Seconds ty; - - }; - - } - - } - - } - -} -#endif // GOVGAST3_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovGAST4.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovGAST4.cpp deleted file mode 100644 index 716de5263..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovGAST4.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovGAST4.cpp -// Implementation of the Class GovGAST4 -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#include "GovGAST4.h" - -using IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST4; - - -GovGAST4::GovGAST4(){ - -} - - - -GovGAST4::~GovGAST4(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovGAST4.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovGAST4.h deleted file mode 100644 index ad92f3c76..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovGAST4.h +++ /dev/null @@ -1,86 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovGAST4.h -// Implementation of the Class GovGAST4 -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#ifndef GOVGAST4_H -#define GOVGAST4_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/TurbineGovernorDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace TurbineGovernorDynamics - { - /** - * Generic turbogas. - */ - class GovGAST4 : public IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::TurbineGovernorDynamics - { - - public: - GovGAST4(); - virtual ~GovGAST4(); - /** - * Droop (bp). Typical Value = 0.05. - */ - IEC61970::Base::Domain::PU bp; - /** - * Compressor gain (Ktm). Typical Value = 0. - */ - IEC61970::Base::Domain::PU ktm; - /** - * Fuel flow maximum negative error value (MNEF). Typical Value = -0. - * 05. - */ - IEC61970::Base::Domain::PU mnef; - /** - * Fuel flow maximum positive error value (MXEF). Typical Value = 0.05. - */ - IEC61970::Base::Domain::PU mxef; - /** - * Minimum valve opening (RYMN). Typical Value = 0. - */ - IEC61970::Base::Domain::PU rymn; - /** - * Maximum valve opening (RYMX). Typical Value = 1.1. - */ - IEC61970::Base::Domain::PU rymx; - /** - * Maximum gate opening velocity (TA). Typical Value = 3. - */ - IEC61970::Base::Domain::Seconds ta; - /** - * Maximum gate closing velocity (Tc). Typical Value = 0.5. - */ - IEC61970::Base::Domain::Seconds tc; - /** - * Fuel control time constant (Tcm). Typical Value = 0.1. - */ - IEC61970::Base::Domain::Seconds tcm; - /** - * Compressor discharge volume time constant (Tm). Typical Value = 0.2. - */ - IEC61970::Base::Domain::Seconds tm; - /** - * Time constant of fuel valve positioner (Ty). Typical Value = 0.1. - */ - IEC61970::Base::Domain::Seconds tv; - - }; - - } - - } - - } - -} -#endif // GOVGAST4_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovGASTWD.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovGASTWD.cpp deleted file mode 100644 index 4794e5f61..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovGASTWD.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovGASTWD.cpp -// Implementation of the Class GovGASTWD -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "GovGASTWD.h" - -using IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGASTWD; - - -GovGASTWD::GovGASTWD(){ - -} - - - -GovGASTWD::~GovGASTWD(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovGASTWD.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovGASTWD.h deleted file mode 100644 index a967f2614..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovGASTWD.h +++ /dev/null @@ -1,179 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovGASTWD.h -// Implementation of the Class GovGASTWD -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef GOVGASTWD_H -#define GOVGASTWD_H - -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Domain/ActivePower.h" -#include "IEC61970/Base/Domain/Temperature.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/TurbineGovernorDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace TurbineGovernorDynamics - { - /** - * Woodward Gas turbine governor model. - */ - class GovGASTWD : public IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::TurbineGovernorDynamics - { - - public: - GovGASTWD(); - virtual ~GovGASTWD(); - /** - * Valve positioner (A). - */ - IEC61970::Base::Domain::Float a; - /** - * Exhaust temperature Parameter (Af1). - */ - IEC61970::Base::Domain::PU af1; - /** - * Coefficient equal to 0.5(1-speed) (Af2). - */ - IEC61970::Base::Domain::PU af2; - /** - * Valve positioner (B). - */ - IEC61970::Base::Domain::Float b; - /** - * (Bf1). Bf1 = E(1-w) where E (speed sensitivity coefficient) is 0.55 to 0.65 x - * Tr. - */ - IEC61970::Base::Domain::PU bf1; - /** - * Turbine Torque Coefficient Khhv (depends on heating value of fuel - * stream in combustion chamber) (Bf2). - */ - IEC61970::Base::Domain::PU bf2; - /** - * Valve positioner (C). - */ - IEC61970::Base::Domain::Float c; - /** - * Coefficient defining fuel flow where power output is 0% (Cf2). Synchronous but - * no output. Typically 0.23 x Khhv (23% fuel flow). - */ - IEC61970::Base::Domain::PU cf2; - /** - * Combustion reaction time delay (Ecr). - */ - IEC61970::Base::Domain::Seconds ecr; - /** - * Turbine and exhaust delay (Etd). - */ - IEC61970::Base::Domain::Seconds etd; - /** - * Ratio of Fuel Adjustment (K3). - */ - IEC61970::Base::Domain::PU k3; - /** - * Gain of radiation shield (K4). - */ - IEC61970::Base::Domain::PU k4; - /** - * Gain of radiation shield (K5). - */ - IEC61970::Base::Domain::PU k5; - /** - * Minimum fuel flow (K6). - */ - IEC61970::Base::Domain::PU k6; - /** - * Drop Governor Gain (Kd). - */ - IEC61970::Base::Domain::PU kd; - /** - * (Kdroop). - */ - IEC61970::Base::Domain::PU kdroop; - /** - * Fuel system feedback (Kf). - */ - IEC61970::Base::Domain::PU kf; - /** - * Isochronous Governor Gain (Ki). - */ - IEC61970::Base::Domain::PU ki; - /** - * PID Proportional gain (Kp). - */ - IEC61970::Base::Domain::PU kp; - /** - * Base for power values (MWbase) (> 0). Unit = MW. - */ - IEC61970::Base::Domain::ActivePower mwbase; - /** - * Fuel Control Time Constant (T). - */ - IEC61970::Base::Domain::Seconds t; - /** - * Radiation shield time constant (T3). - */ - IEC61970::Base::Domain::Seconds t3; - /** - * Thermocouple time constant (T4). - */ - IEC61970::Base::Domain::Seconds t4; - /** - * Temperature control time constant (T5). - */ - IEC61970::Base::Domain::Seconds t5; - /** - * Temperature control (Tc). - */ - IEC61970::Base::Domain::Temperature tc; - /** - * Compressor discharge time constant (Tcd). - */ - IEC61970::Base::Domain::Seconds tcd; - /** - * Power transducer time constant (Td). - */ - IEC61970::Base::Domain::Seconds td; - /** - * Fuel system time constant (Tf). - */ - IEC61970::Base::Domain::Seconds tf; - /** - * Maximum Turbine limit (Tmax). - */ - IEC61970::Base::Domain::PU tmax; - /** - * Minimum Turbine limit (Tmin). - */ - IEC61970::Base::Domain::PU tmin; - /** - * Rated temperature (Tr). - */ - IEC61970::Base::Domain::Temperature tr; - /** - * Turbine rating (Trate). Unit = MW. - */ - IEC61970::Base::Domain::ActivePower trate; - /** - * Temperature controller integration rate (Tt). - */ - IEC61970::Base::Domain::Seconds tt; - - }; - - } - - } - - } - -} -#endif // GOVGASTWD_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydro1.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydro1.cpp deleted file mode 100644 index c4958d78d..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydro1.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovHydro1.cpp -// Implementation of the Class GovHydro1 -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "GovHydro1.h" - -using IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro1; - - -GovHydro1::GovHydro1(){ - -} - - - -GovHydro1::~GovHydro1(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydro1.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydro1.h deleted file mode 100644 index 14ecd8d39..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydro1.h +++ /dev/null @@ -1,99 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovHydro1.h -// Implementation of the Class GovHydro1 -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef GOVHYDRO1_H -#define GOVHYDRO1_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/ActivePower.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/TurbineGovernorDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace TurbineGovernorDynamics - { - /** - * Basic Hydro turbine governor model. - */ - class GovHydro1 : public IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::TurbineGovernorDynamics - { - - public: - GovHydro1(); - virtual ~GovHydro1(); - /** - * Turbine gain (At) (>0). Typical Value = 1.2. - */ - IEC61970::Base::Domain::PU at; - /** - * Turbine damping factor (Dturb) (>=0). Typical Value = 0.5. - */ - IEC61970::Base::Domain::PU dturb; - /** - * Maximum gate opening (Gmax) (>0). Typical Value = 1. - */ - IEC61970::Base::Domain::PU gmax; - /** - * Minimum gate opening (Gmin) (>=0). Typical Value = 0. - */ - IEC61970::Base::Domain::PU gmin; - /** - * Turbine nominal head (hdam). Typical Value = 1. - */ - IEC61970::Base::Domain::PU hdam; - /** - * Base for power values (MWbase) (> 0). Unit = MW. - */ - IEC61970::Base::Domain::ActivePower mwbase; - /** - * No-load flow at nominal head (qnl) (>=0). Typical Value = 0.08. - */ - IEC61970::Base::Domain::PU qnl; - /** - * Permanent droop (R) (>0). Typical Value = 0.04. - */ - IEC61970::Base::Domain::PU rperm; - /** - * Temporary droop (r) (>R). Typical Value = 0.3. - */ - IEC61970::Base::Domain::PU rtemp; - /** - * Filter time constant (Tf) (>0). Typical Value = 0.05. - */ - IEC61970::Base::Domain::Seconds tf; - /** - * Gate servo time constant (Tg) (>0). Typical Value = 0.5. - */ - IEC61970::Base::Domain::Seconds tg; - /** - * Washout time constant (Tr) (>0). Typical Value = 5. - */ - IEC61970::Base::Domain::Seconds tr; - /** - * Water inertia time constant (Tw) (>0). Typical Value = 1. - */ - IEC61970::Base::Domain::Seconds tw; - /** - * Maximum gate velocity (Vlem) (>0). Typical Value = 0.2. - */ - IEC61970::Base::Domain::Float velm; - - }; - - } - - } - - } - -} -#endif // GOVHYDRO1_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydro2.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydro2.cpp deleted file mode 100644 index 41db6122d..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydro2.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovHydro2.cpp -// Implementation of the Class GovHydro2 -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "GovHydro2.h" - -using IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro2; - - -GovHydro2::GovHydro2(){ - -} - - - -GovHydro2::~GovHydro2(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydro2.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydro2.h deleted file mode 100644 index bde27ad28..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydro2.h +++ /dev/null @@ -1,161 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovHydro2.h -// Implementation of the Class GovHydro2 -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef GOVHYDRO2_H -#define GOVHYDRO2_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Frequency.h" -#include "IEC61970/Base/Domain/ActivePower.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/TurbineGovernorDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace TurbineGovernorDynamics - { - /** - * IEEE hydro turbine governor model represents plants with straightforward - * penstock configurations and hydraulic-dashpot governors. - */ - class GovHydro2 : public IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::TurbineGovernorDynamics - { - - public: - GovHydro2(); - virtual ~GovHydro2(); - /** - * Turbine numerator multiplier (Aturb). Typical Value = -1. - */ - IEC61970::Base::Domain::PU aturb; - /** - * Turbine denominator multiplier (Bturb). Typical Value = 0.5. - */ - IEC61970::Base::Domain::PU bturb; - /** - * Intentional deadband width (db1). Unit = Hz. Typical Value = 0. - */ - IEC61970::Base::Domain::Frequency db1; - /** - * Unintentional deadband (db2). Unit = MW. Typical Value = 0. - */ - IEC61970::Base::Domain::ActivePower db2; - /** - * Intentional db hysteresis (eps). Unit = Hz. Typical Value = 0. - */ - IEC61970::Base::Domain::Frequency eps; - /** - * Nonlinear gain point 1, PU gv (Gv1). Typical Value = 0. - */ - IEC61970::Base::Domain::PU gv1; - /** - * Nonlinear gain point 2, PU gv (Gv2). Typical Value = 0. - */ - IEC61970::Base::Domain::PU gv2; - /** - * Nonlinear gain point 3, PU gv (Gv3). Typical Value = 0. - */ - IEC61970::Base::Domain::PU gv3; - /** - * Nonlinear gain point 4, PU gv (Gv4). Typical Value = 0. - */ - IEC61970::Base::Domain::PU gv4; - /** - * Nonlinear gain point 5, PU gv (Gv5). Typical Value = 0. - */ - IEC61970::Base::Domain::PU gv5; - /** - * Nonlinear gain point 6, PU gv (Gv6). Typical Value = 0. - */ - IEC61970::Base::Domain::PU gv6; - /** - * Turbine gain (Kturb). Typical Value = 1. - */ - IEC61970::Base::Domain::PU kturb; - /** - * Base for power values (MWbase) (> 0). Unit = MW. - */ - IEC61970::Base::Domain::ActivePower mwbase; - /** - * Nonlinear gain point 1, PU power (Pgv1). Typical Value = 0. - */ - IEC61970::Base::Domain::PU pgv1; - /** - * Nonlinear gain point 2, PU power (Pgv2). Typical Value = 0. - */ - IEC61970::Base::Domain::PU pgv2; - /** - * Nonlinear gain point 3, PU power (Pgv3). Typical Value = 0. - */ - IEC61970::Base::Domain::PU pgv3; - /** - * Nonlinear gain point 4, PU power (Pgv4). Typical Value = 0. - */ - IEC61970::Base::Domain::PU pgv4; - /** - * Nonlinear gain point 5, PU power (Pgv5). Typical Value = 0. - */ - IEC61970::Base::Domain::PU pgv5; - /** - * Nonlinear gain point 6, PU power (Pgv6). Typical Value = 0. - */ - IEC61970::Base::Domain::PU pgv6; - /** - * Maximum gate opening (Pmax). Typical Value = 1. - */ - IEC61970::Base::Domain::PU pmax; - /** - * Minimum gate opening; (Pmin). Typical Value = 0. - */ - IEC61970::Base::Domain::PU pmin; - /** - * Permanent droop (Rperm). Typical Value = 0.05. - */ - IEC61970::Base::Domain::PU rperm; - /** - * Temporary droop (Rtemp). Typical Value = 0.5. - */ - IEC61970::Base::Domain::PU rtemp; - /** - * Gate servo time constant (Tg). Typical Value = 0.5. - */ - IEC61970::Base::Domain::Seconds tg; - /** - * Pilot servo valve time constant (Tp). Typical Value = 0.03. - */ - IEC61970::Base::Domain::Seconds tp; - /** - * Dashpot time constant (Tr). Typical Value = 12. - */ - IEC61970::Base::Domain::Seconds tr; - /** - * Water inertia time constant (Tw). Typical Value = 2. - */ - IEC61970::Base::Domain::Seconds tw; - /** - * Maximum gate closing velocity (Uc) (<0). Unit = PU/sec. Typical Value = -0.1. - */ - IEC61970::Base::Domain::Float uc; - /** - * Maximum gate opening velocity (Uo). Unit = PU/sec. Typical Value = 0.1. - */ - IEC61970::Base::Domain::Float uo; - - }; - - } - - } - - } - -} -#endif // GOVHYDRO2_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydro3.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydro3.cpp deleted file mode 100644 index 51d312ec4..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydro3.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovHydro3.cpp -// Implementation of the Class GovHydro3 -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "GovHydro3.h" - -using IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro3; - - -GovHydro3::GovHydro3(){ - -} - - - -GovHydro3::~GovHydro3(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydro3.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydro3.h deleted file mode 100644 index a73c2101e..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydro3.h +++ /dev/null @@ -1,198 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovHydro3.h -// Implementation of the Class GovHydro3 -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef GOVHYDRO3_H -#define GOVHYDRO3_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Frequency.h" -#include "IEC61970/Base/Domain/ActivePower.h" -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/TurbineGovernorDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace TurbineGovernorDynamics - { - /** - * Modified IEEE Hydro Governor-Turbine Model. - * - * This model differs from that defined in the IEEE modeling guideline paper in - * that the limits on gate position and velocity do not permit "wind up" of the - * upstream signals. - */ - class GovHydro3 : public IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::TurbineGovernorDynamics - { - - public: - GovHydro3(); - virtual ~GovHydro3(); - /** - * Turbine gain (At). Typical Value = 1.2. - */ - IEC61970::Base::Domain::PU at; - /** - * Intentional dead-band width (db1). Unit = Hz. Typical Value = 0. - */ - IEC61970::Base::Domain::Frequency db1; - /** - * Unintentional dead-band (db2). Unit = MW. Typical Value = 0. - */ - IEC61970::Base::Domain::ActivePower db2; - /** - * Turbine damping factor (Dturb). Typical Value = 0.2. - */ - IEC61970::Base::Domain::PU dturb; - /** - * Intentional db hysteresis (eps). Unit = Hz. Typical Value = 0. - */ - IEC61970::Base::Domain::Frequency eps; - /** - * Governor control flag (Cflag). - * true = PID control is active - * false = double derivative control is active. - * Typical Value = true. - */ - IEC61970::Base::Domain::Boolean governorControl; - /** - * Nonlinear gain point 1, PU gv (Gv1). Typical Value = 0. - */ - IEC61970::Base::Domain::PU gv1; - /** - * Nonlinear gain point 2, PU gv (Gv2). Typical Value = 0. - */ - IEC61970::Base::Domain::PU gv2; - /** - * Nonlinear gain point 3, PU gv (Gv3). Typical Value = 0. - */ - IEC61970::Base::Domain::PU gv3; - /** - * Nonlinear gain point 4, PU gv (Gv4). Typical Value = 0. - */ - IEC61970::Base::Domain::PU gv4; - /** - * Nonlinear gain point 5, PU gv (Gv5). Typical Value = 0. - */ - IEC61970::Base::Domain::PU gv5; - /** - * Nonlinear gain point 6, PU gv (Gv6). Typical Value = 0. - */ - IEC61970::Base::Domain::PU gv6; - /** - * Turbine nominal head (H0). Typical Value = 1. - */ - IEC61970::Base::Domain::PU h0; - /** - * Derivative gain (K1). Typical Value = 0.01. - */ - IEC61970::Base::Domain::PU k1; - /** - * Double derivative gain, if Cflag = -1 (K2). Typical Value = 2.5. - */ - IEC61970::Base::Domain::PU k2; - /** - * Gate servo gain (Kg). Typical Value = 2. - */ - IEC61970::Base::Domain::PU kg; - /** - * Integral gain (Ki). Typical Value = 0.5. - */ - IEC61970::Base::Domain::PU ki; - /** - * Base for power values (MWbase) (> 0). Unit = MW. - */ - IEC61970::Base::Domain::ActivePower mwbase; - /** - * Nonlinear gain point 1, PU power (Pgv1). Typical Value = 0. - */ - IEC61970::Base::Domain::PU pgv1; - /** - * Nonlinear gain point 2, PU power (Pgv2). Typical Value = 0. - */ - IEC61970::Base::Domain::PU pgv2; - /** - * Nonlinear gain point 3, PU power (Pgv3). Typical Value = 0. - */ - IEC61970::Base::Domain::PU pgv3; - /** - * Nonlinear gain point 4, PU power (Pgv4). Typical Value = 0. - */ - IEC61970::Base::Domain::PU pgv4; - /** - * Nonlinear gain point 5, PU power (Pgv5). Typical Value = 0. - */ - IEC61970::Base::Domain::PU pgv5; - /** - * Nonlinear gain point 6, PU power (Pgv6). Typical Value = 0. - */ - IEC61970::Base::Domain::PU pgv6; - /** - * Maximum gate opening, PU of MWbase (Pmax). Typical Value = 1. - */ - IEC61970::Base::Domain::PU pmax; - /** - * Minimum gate opening, PU of MWbase (Pmin). Typical Value = 0. - */ - IEC61970::Base::Domain::PU pmin; - /** - * No-load turbine flow at nominal head (Qnl). Typical Value = 0.08. - */ - IEC61970::Base::Domain::PU qnl; - /** - * Steady-state droop, PU, for electrical power feedback (Relec). Typical Value = - * 0.05. - */ - IEC61970::Base::Domain::PU relec; - /** - * Steady-state droop, PU, for governor output feedback (Rgate). Typical Value = - * 0. - */ - IEC61970::Base::Domain::PU rgate; - /** - * Input filter time constant (Td). Typical Value = 0.05. - */ - IEC61970::Base::Domain::Seconds td; - /** - * Washout time constant (Tf). Typical Value = 0.1. - */ - IEC61970::Base::Domain::Seconds tf; - /** - * Gate servo time constant (Tp). Typical Value = 0.05. - */ - IEC61970::Base::Domain::Seconds tp; - /** - * Power feedback time constant (Tt). Typical Value = 0.2. - */ - IEC61970::Base::Domain::Seconds tt; - /** - * Water inertia time constant (Tw). Typical Value = 1. - */ - IEC61970::Base::Domain::Seconds tw; - /** - * Maximum gate closing velocity (Velcl). Unit = PU/sec. Typical Value = -0.2. - */ - IEC61970::Base::Domain::Float velcl; - /** - * Maximum gate opening velocity (Velop). Unit = PU/sec. Typical Value = 0.2. - */ - IEC61970::Base::Domain::Float velop; - - }; - - } - - } - - } - -} -#endif // GOVHYDRO3_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydro4.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydro4.cpp deleted file mode 100644 index 69d805eaf..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydro4.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovHydro4.cpp -// Implementation of the Class GovHydro4 -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "GovHydro4.h" - -using IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro4; - - -GovHydro4::GovHydro4(){ - -} - - - -GovHydro4::~GovHydro4(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydro4.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydro4.h deleted file mode 100644 index 660a0692b..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydro4.h +++ /dev/null @@ -1,217 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovHydro4.h -// Implementation of the Class GovHydro4 -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef GOVHYDRO4_H -#define GOVHYDRO4_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/Frequency.h" -#include "IEC61970/Base/Domain/ActivePower.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/TurbineGovernorDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace TurbineGovernorDynamics - { - /** - * Hydro turbine and governor. Represents plants with straight-forward penstock - * configurations and hydraulic governors of traditional 'dashpot' type. This - * model can be used to represent simple, Francis, Pelton or Kaplan turbines. - */ - class GovHydro4 : public IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::TurbineGovernorDynamics - { - - public: - GovHydro4(); - virtual ~GovHydro4(); - /** - * Turbine gain (At). Typical Value = 1.2. - */ - IEC61970::Base::Domain::PU at; - /** - * Kaplan blade servo point 0 (Bgv0). Typical Value = 0. - */ - IEC61970::Base::Domain::PU bgv0; - /** - * Kaplan blade servo point 1 (Bgv1). Typical Value = 0. - */ - IEC61970::Base::Domain::PU bgv1; - /** - * Kaplan blade servo point 2 (Bgv2). - * Typical Value = 0. Typical Value Francis = 0, Kaplan = 0.1. - */ - IEC61970::Base::Domain::PU bgv2; - /** - * Kaplan blade servo point 3 (Bgv3). - * Typical Value = 0. Typical Value Francis = 0, Kaplan = 0.667. - */ - IEC61970::Base::Domain::PU bgv3; - /** - * Kaplan blade servo point 4 (Bgv4). - * Typical Value = 0. Typical Value Francis = 0, Kaplan = 0.9. - */ - IEC61970::Base::Domain::PU bgv4; - /** - * Kaplan blade servo point 5 (Bgv5). - * Typical Value = 0. Typical Value Francis = 0, Kaplan = 1. - */ - IEC61970::Base::Domain::PU bgv5; - /** - * Maximum blade adjustment factor (Bmax). - * Typical Value = 0. Typical Value Francis = 0, Kaplan = 1.1276. - */ - IEC61970::Base::Domain::Float bmax; - /** - * Intentional deadband width (db1). Unit = Hz. Typical Value = 0. - */ - IEC61970::Base::Domain::Frequency db1; - /** - * Unintentional dead-band (db2). Unit = MW. Typical Value = 0. - */ - IEC61970::Base::Domain::ActivePower db2; - /** - * Turbine damping factor (Dturb). Unit = delta P (PU of MWbase) / delta speed - * (PU). - * Typical Value = 0.5. Typical Value Francis = 1.1, Kaplan = 1.1. - */ - IEC61970::Base::Domain::PU dturb; - /** - * Intentional db hysteresis (eps). Unit = Hz. Typical Value = 0. - */ - IEC61970::Base::Domain::Frequency eps; - /** - * Maximum gate opening, PU of MWbase (Gmax). Typical Value = 1. - */ - IEC61970::Base::Domain::PU gmax; - /** - * Minimum gate opening, PU of MWbase (Gmin). Typical Value = 0. - */ - IEC61970::Base::Domain::PU gmin; - /** - * Nonlinear gain point 0, PU gv (Gv0). - * Typical Value = 0. Typical Value Francis = 0.1, Kaplan = 0.1. - */ - IEC61970::Base::Domain::PU gv0; - /** - * Nonlinear gain point 1, PU gv (Gv1). - * Typical Value = 0. Typical Value Francis = 0.4, Kaplan = 0.4. - */ - IEC61970::Base::Domain::PU gv1; - /** - * Nonlinear gain point 2, PU gv (Gv2). - * Typical Value = 0. Typical Value Francis = 0.5, Kaplan = 0.5. - */ - IEC61970::Base::Domain::PU gv2; - /** - * Nonlinear gain point 3, PU gv (Gv3). - * Typical Value = 0. Typical Value Francis = 0.7, Kaplan = 0.7. - */ - IEC61970::Base::Domain::PU gv3; - /** - * Nonlinear gain point 4, PU gv (Gv4). - * Typical Value = 0. Typical Value Francis = 0.8, Kaplan = 0.8. - */ - IEC61970::Base::Domain::PU gv4; - /** - * Nonlinear gain point 5, PU gv (Gv5). - * Typical Value = 0. Typical Value Francis = 0.9, Kaplan = 0.9. - */ - IEC61970::Base::Domain::PU gv5; - /** - * Head available at dam (hdam). Typical Value = 1. - */ - IEC61970::Base::Domain::PU hdam; - /** - * Base for power values (MWbase) (>0). Unit = MW. - */ - IEC61970::Base::Domain::ActivePower mwbase; - /** - * Nonlinear gain point 0, PU power (Pgv0). Typical Value = 0. - */ - IEC61970::Base::Domain::PU pgv0; - /** - * Nonlinear gain point 1, PU power (Pgv1). - * Typical Value = 0. Typical Value Francis = 0.42, Kaplan = 0.35. - */ - IEC61970::Base::Domain::PU pgv1; - /** - * Nonlinear gain point 2, PU power (Pgv2). - * Typical Value = 0. Typical Value Francis = 0.56, Kaplan = 0.468. - */ - IEC61970::Base::Domain::PU pgv2; - /** - * Nonlinear gain point 3, PU power (Pgv3). - * Typical Value = 0. Typical Value Francis = 0.8, Kaplan = 0.796. - */ - IEC61970::Base::Domain::PU pgv3; - /** - * Nonlinear gain point 4, PU power (Pgv4). - * Typical Value = 0. Typical Value Francis = 0.9, Kaplan = 0.917. - */ - IEC61970::Base::Domain::PU pgv4; - /** - * Nonlinear gain point 5, PU power (Pgv5). - * Typical Value = 0. Typical Value Francis = 0.97, Kaplan = 0.99. - */ - IEC61970::Base::Domain::PU pgv5; - /** - * No-load flow at nominal head (Qnl). - * Typical Value = 0.08. Typical Value Francis = 0, Kaplan = 0. - */ - IEC61970::Base::Domain::PU qn1; - /** - * Permanent droop (Rperm). Typical Value = 0.05. - */ - IEC61970::Base::Domain::Seconds rperm; - /** - * Temporary droop (Rtemp). Typical Value = 0.3. - */ - IEC61970::Base::Domain::Seconds rtemp; - /** - * Blade servo time constant (Tblade). Typical Value = 100. - */ - IEC61970::Base::Domain::Seconds tblade; - /** - * Gate servo time constant (Tg) (>0). Typical Value = 0.5. - */ - IEC61970::Base::Domain::Seconds tg; - /** - * Pilot servo time constant (Tp). Typical Value = 0.1. - */ - IEC61970::Base::Domain::Seconds tp; - /** - * Dashpot time constant (Tr) (>0). Typical Value = 5. - */ - IEC61970::Base::Domain::Seconds tr; - /** - * Water inertia time constant (Tw) (>0). Typical Value = 1. - */ - IEC61970::Base::Domain::Seconds tw; - /** - * Max gate closing velocity (Uc). Typical Value = 0.2. - */ - IEC61970::Base::Domain::Float uc; - /** - * Max gate opening velocity (Uo). Typical Vlaue = 0.2. - */ - IEC61970::Base::Domain::Float uo; - - }; - - } - - } - - } - -} -#endif // GOVHYDRO4_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroDD.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroDD.cpp deleted file mode 100644 index 54be80e61..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroDD.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovHydroDD.cpp -// Implementation of the Class GovHydroDD -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "GovHydroDD.h" - -using IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroDD; - - -GovHydroDD::GovHydroDD(){ - -} - - - -GovHydroDD::~GovHydroDD(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroDD.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroDD.h deleted file mode 100644 index d3f7eb257..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroDD.h +++ /dev/null @@ -1,190 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovHydroDD.h -// Implementation of the Class GovHydroDD -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef GOVHYDRODD_H -#define GOVHYDRODD_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Frequency.h" -#include "IEC61970/Base/Domain/ActivePower.h" -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/TurbineGovernorDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace TurbineGovernorDynamics - { - /** - * Double derivative hydro governor and turbine. - */ - class GovHydroDD : public IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::TurbineGovernorDynamics - { - - public: - GovHydroDD(); - virtual ~GovHydroDD(); - /** - * Turbine numerator multiplier (Aturb) (note 3). Typical Value = -1. - */ - IEC61970::Base::Domain::PU aturb; - /** - * Turbine denominator multiplier (Bturb) (note 3). Typical Value = 0.5. - */ - IEC61970::Base::Domain::PU bturb; - /** - * Intentional dead-band width (db1). Unit = Hz. Typical Value = 0. - */ - IEC61970::Base::Domain::Frequency db1; - /** - * Unintentional dead-band (db2). Unit = MW. Typical Value = 0. - */ - IEC61970::Base::Domain::ActivePower db2; - /** - * Intentional db hysteresis (eps). Unit = Hz. Typical Value = 0. - */ - IEC61970::Base::Domain::Frequency eps; - /** - * Maximum gate opening (Gmax). Typical Value = 0. - */ - IEC61970::Base::Domain::PU gmax; - /** - * Minimum gate opening (Gmin). Typical Value = 0. - */ - IEC61970::Base::Domain::PU gmin; - /** - * Nonlinear gain point 1, PU gv (Gv1). Typical Value = 0. - */ - IEC61970::Base::Domain::PU gv1; - /** - * Nonlinear gain point 2, PU gv (Gv2). Typical Value = 0. - */ - IEC61970::Base::Domain::PU gv2; - /** - * Nonlinear gain point 3, PU gv (Gv3). Typical Value = 0. - */ - IEC61970::Base::Domain::PU gv3; - /** - * Nonlinear gain point 4, PU gv (Gv4). Typical Value = 0. - */ - IEC61970::Base::Domain::PU gv4; - /** - * Nonlinear gain point 5, PU gv (Gv5). Typical Value = 0. - */ - IEC61970::Base::Domain::PU gv5; - /** - * Nonlinear gain point 6, PU gv (Gv6). Typical Value = 0. - */ - IEC61970::Base::Domain::PU gv6; - /** - * Input signal switch (Flag). - * true = Pe input is used - * false = feedback is received from CV. - * Flag is normally dependent on Tt. If Tf is zero, Flag is set to false. If Tf - * is not zero, Flag is set to true. - * Typical Value = true. - */ - IEC61970::Base::Domain::Boolean inputSignal; - /** - * Single derivative gain (K1). Typical Value = 3.6. - */ - IEC61970::Base::Domain::PU k1; - /** - * Double derivative gain (K2). Typical Value = 0.2. - */ - IEC61970::Base::Domain::PU k2; - /** - * Gate servo gain (Kg). Typical Value = 3. - */ - IEC61970::Base::Domain::PU kg; - /** - * Integral gain (Ki). Typical Value = 1. - */ - IEC61970::Base::Domain::PU ki; - /** - * Base for power values (MWbase) (>0). Unit = MW. - */ - IEC61970::Base::Domain::ActivePower mwbase; - /** - * Nonlinear gain point 1, PU power (Pgv1). Typical Value = 0. - */ - IEC61970::Base::Domain::PU pgv1; - /** - * Nonlinear gain point 2, PU power (Pgv2). Typical Value = 0. - */ - IEC61970::Base::Domain::PU pgv2; - /** - * Nonlinear gain point 3, PU power (Pgv3). Typical Value = 0. - */ - IEC61970::Base::Domain::PU pgv3; - /** - * Nonlinear gain point 4, PU power (Pgv4). Typical Value = 0. - */ - IEC61970::Base::Domain::PU pgv4; - /** - * Nonlinear gain point 5, PU power (Pgv5). Typical Value = 0. - */ - IEC61970::Base::Domain::PU pgv5; - /** - * Nonlinear gain point 6, PU power (Pgv6). Typical Value = 0. - */ - IEC61970::Base::Domain::PU pgv6; - /** - * Maximum gate opening, PU of MWbase (Pmax). Typical Value = 1. - */ - IEC61970::Base::Domain::PU pmax; - /** - * Minimum gate opening, PU of MWbase (Pmin). Typical Value = 0. - */ - IEC61970::Base::Domain::PU pmin; - /** - * Steady state droop (R). Typical Value = 0.05. - */ - IEC61970::Base::Domain::PU r; - /** - * Input filter time constant (Td). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds td; - /** - * Washout time constant (Tf). Typical Value = 0.1. - */ - IEC61970::Base::Domain::Seconds tf; - /** - * Gate servo time constant (Tp). Typical Value = 0.35. - */ - IEC61970::Base::Domain::Seconds tp; - /** - * Power feedback time constant (Tt). Typical Value = 0.02. - */ - IEC61970::Base::Domain::Seconds tt; - /** - * Turbine time constant (Tturb) (note 3). Typical Value = 0.8. - */ - IEC61970::Base::Domain::Seconds tturb; - /** - * Maximum gate closing velocity (Velcl). Unit = PU/sec. Typical Value = -0.14. - */ - IEC61970::Base::Domain::Float velcl; - /** - * Maximum gate opening velocity (Velop). Unit = PU/sec. Typical Value = 0.09. - */ - IEC61970::Base::Domain::Float velop; - - }; - - } - - } - - } - -} -#endif // GOVHYDRODD_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroFrancis.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroFrancis.cpp deleted file mode 100644 index 077ecc65d..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroFrancis.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovHydroFrancis.cpp -// Implementation of the Class GovHydroFrancis -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#include "GovHydroFrancis.h" - -using IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroFrancis; - - -GovHydroFrancis::GovHydroFrancis(){ - -} - - - -GovHydroFrancis::~GovHydroFrancis(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroFrancis.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroFrancis.h deleted file mode 100644 index 6baabe11a..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroFrancis.h +++ /dev/null @@ -1,170 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovHydroFrancis.h -// Implementation of the Class GovHydroFrancis -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#ifndef GOVHYDROFRANCIS_H -#define GOVHYDROFRANCIS_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Area.h" -#include "IEC61970/Base/Domain/Frequency.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/FrancisGovernorControlKind.h" -#include "IEC61970/Base/Domain/Length.h" -#include "IEC61970/Base/Domain/VolumeFlowRate.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/TurbineGovernorDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace TurbineGovernorDynamics - { - /** - * Detailed hydro unit - Francis model. This model can be used to represent three - * types of governors. - * A schematic of the hydraulic system of detailed hydro unit models, like Francis - * and Pelton, is provided in the DetailedHydroModelHydraulicSystem diagram. - */ - class GovHydroFrancis : public IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::TurbineGovernorDynamics - { - - public: - GovHydroFrancis(); - virtual ~GovHydroFrancis(); - /** - * Opening section Seff at the maximum efficiency (Am). Typical Value - * = 0.7. - */ - IEC61970::Base::Domain::PU am; - /** - * Area of the surge tank (AV0). Unit = m2. Typical Value = - * 30. - */ - IEC61970::Base::Domain::Area av0; - /** - * Area of the compensation tank (AV1). Unit = m2. Typical - * Value = 700. - */ - IEC61970::Base::Domain::Area av1; - /** - * Droop (Bp). Typical Value = 0.05. - */ - IEC61970::Base::Domain::PU bp; - /** - * Intentional dead-band width (DB1). Unit = Hz. Typical Value = 0. - */ - IEC61970::Base::Domain::Frequency db1; - /** - * Maximum efficiency (EtaMax). Typical Value = 1.05. - */ - IEC61970::Base::Domain::PU etamax; - /** - * Governor control flag (Cflag). Typical Value = - * mechanicHydrolicTachoAccelerator. - */ - IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::FrancisGovernorControlKind governorControl = IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::FrancisGovernorControlKind::_undef; - /** - * Head of compensation chamber water level with respect to the level of penstock - * (H1). Unit = m. Typical Value = 4. - */ - IEC61970::Base::Domain::Length h1; - /** - * Head of surge tank water level with respect to the level of penstock - * (H2). Unit = m. Typical Value = 40. - */ - IEC61970::Base::Domain::Length h2; - /** - * Rated hydraulic head (Hn). Unit = m. Typical Value = 250. - */ - IEC61970::Base::Domain::Length hn; - /** - * Penstock loss coefficient (due to friction) (Kc). Typical Value = 0.025. - */ - IEC61970::Base::Domain::PU kc; - /** - * Water tunnel and surge chamber loss coefficient (due to friction) (Kg). - * Typical Value = 0.025. - */ - IEC61970::Base::Domain::PU kg; - /** - * Washout gain (Kt). Typical Value = 0.25. - */ - IEC61970::Base::Domain::PU kt; - /** - * No-load turbine flow at nominal head (Qc0). Typical Value = 0.21. - */ - IEC61970::Base::Domain::PU qc0; - /** - * Rated flow (Qn). Unit = m3/s. Typical Value = 40. - */ - IEC61970::Base::Domain::VolumeFlowRate qn; - /** - * Derivative gain (Ta). Typical Value = 3. - */ - IEC61970::Base::Domain::Seconds ta; - /** - * Washout time constant (Td). Typical Value = 3. - */ - IEC61970::Base::Domain::Seconds td; - /** - * Gate servo time constant (Ts). Typical Value = 0.5. - */ - IEC61970::Base::Domain::Seconds ts; - /** - * Water inertia time constant (Twnc). Typical Value = 1. - */ - IEC61970::Base::Domain::Seconds twnc; - /** - * Water tunnel and surge chamber inertia time constant (Twng). Typical Value = 3. - */ - IEC61970::Base::Domain::Seconds twng; - /** - * Derivative feedback gain (Tx). Typical Value = 1. - */ - IEC61970::Base::Domain::Seconds tx; - /** - * Maximum gate opening velocity (Va). Unit = PU/sec. Typical Value = 0.011. - */ - IEC61970::Base::Domain::Float va; - /** - * Maximum gate opening (ValvMax). Typical Value = 1. - */ - IEC61970::Base::Domain::PU valvmax; - /** - * Minimum gate opening (ValvMin). Typical Value = 0. - */ - IEC61970::Base::Domain::PU valvmin; - /** - * Maximum gate closing velocity (Vc). Unit = PU/sec. Typical Value = -0.011. - */ - IEC61970::Base::Domain::Float vc; - /** - * Water tunnel and surge chamber simulation (Tflag). - * true = enable of water tunnel and surge chamber simulation - * false = inhibit of water tunnel and surge chamber simulation. - * Typical Value = false. - */ - IEC61970::Base::Domain::Boolean waterTunnelSurgeChamberSimulation; - /** - * Head of upper water level with respect to the level of penstock (Zsfc). Unit = - * m. Typical Value = 25. - */ - IEC61970::Base::Domain::Length zsfc; - - }; - - } - - } - - } - -} -#endif // GOVHYDROFRANCIS_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroIEEE0.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroIEEE0.cpp deleted file mode 100644 index 4c7dd27c5..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroIEEE0.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovHydroIEEE0.cpp -// Implementation of the Class GovHydroIEEE0 -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "GovHydroIEEE0.h" - -using IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroIEEE0; - - -GovHydroIEEE0::GovHydroIEEE0(){ - -} - - - -GovHydroIEEE0::~GovHydroIEEE0(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroIEEE0.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroIEEE0.h deleted file mode 100644 index 8bde1ad8d..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroIEEE0.h +++ /dev/null @@ -1,82 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovHydroIEEE0.h -// Implementation of the Class GovHydroIEEE0 -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef GOVHYDROIEEE0_H -#define GOVHYDROIEEE0_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/ActivePower.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/TurbineGovernorDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace TurbineGovernorDynamics - { - /** - * IEEE Simplified Hydro Governor-Turbine Model. Used for Mechanical-Hydraulic - * and Electro-Hydraulic turbine governors, with our without steam feedback. - * Typical values given are for Mechanical-Hydraulic. - * - * Reference: IEEE Transactions on Power Apparatus and - * Systems - * November/December 1973, Volume PAS-92, Number 6 - * Dynamic Models for Steam and Hydro Turbines in - * Power System Studies, Page 1904. - */ - class GovHydroIEEE0 : public IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::TurbineGovernorDynamics - { - - public: - GovHydroIEEE0(); - virtual ~GovHydroIEEE0(); - /** - * Governor gain (K). - */ - IEC61970::Base::Domain::PU k; - /** - * Base for power values (MWbase) (> 0). Unit = MW. - */ - IEC61970::Base::Domain::ActivePower mwbase; - /** - * Gate maximum (Pmax). - */ - IEC61970::Base::Domain::PU pmax; - /** - * Gate minimum (Pmin). - */ - IEC61970::Base::Domain::PU pmin; - /** - * Governor lag time constant (T1). Typical Value = 0.25. - */ - IEC61970::Base::Domain::Seconds t1; - /** - * Governor lead time constant (T2). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds t2; - /** - * Gate actuator time constant (T3). Typical Value = 0.1. - */ - IEC61970::Base::Domain::Seconds t3; - /** - * Water starting time (T4). - */ - IEC61970::Base::Domain::Seconds t4; - - }; - - } - - } - - } - -} -#endif // GOVHYDROIEEE0_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroIEEE2.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroIEEE2.cpp deleted file mode 100644 index 035b4892a..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroIEEE2.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovHydroIEEE2.cpp -// Implementation of the Class GovHydroIEEE2 -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#include "GovHydroIEEE2.h" - -using IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroIEEE2; - - -GovHydroIEEE2::GovHydroIEEE2(){ - -} - - - -GovHydroIEEE2::~GovHydroIEEE2(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroIEEE2.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroIEEE2.h deleted file mode 100644 index 23f401d81..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroIEEE2.h +++ /dev/null @@ -1,154 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovHydroIEEE2.h -// Implementation of the Class GovHydroIEEE2 -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#ifndef GOVHYDROIEEE2_H -#define GOVHYDROIEEE2_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/ActivePower.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/TurbineGovernorDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace TurbineGovernorDynamics - { - /** - * IEEE hydro turbine governor model represents plants with straightforward - * penstock configurations and hydraulic-dashpot governors. - * - * Reference: IEEE Transactions on Power Apparatus and - * Systems - * November/December 1973, Volume PAS-92, Number 6 - * Dynamic Models for Steam and Hydro Turbines in - * Power System Studies, Page 1904. - */ - class GovHydroIEEE2 : public IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::TurbineGovernorDynamics - { - - public: - GovHydroIEEE2(); - virtual ~GovHydroIEEE2(); - /** - * Turbine numerator multiplier (Aturb). Typical Value = -1. - */ - IEC61970::Base::Domain::PU aturb; - /** - * Turbine denominator multiplier (Bturb). Typical Value = 0.5. - */ - IEC61970::Base::Domain::PU bturb; - /** - * Nonlinear gain point 1, PU gv (Gv1). Typical Value = 0. - */ - IEC61970::Base::Domain::PU gv1; - /** - * Nonlinear gain point 2, PU gv (Gv2). Typical Value = 0. - */ - IEC61970::Base::Domain::PU gv2; - /** - * Nonlinear gain point 3, PU gv (Gv3). Typical Value = 0. - */ - IEC61970::Base::Domain::PU gv3; - /** - * Nonlinear gain point 4, PU gv (Gv4). Typical Value = 0. - */ - IEC61970::Base::Domain::PU gv4; - /** - * Nonlinear gain point 5, PU gv (Gv5). Typical Value = 0. - */ - IEC61970::Base::Domain::PU gv5; - /** - * Nonlinear gain point 6, PU gv (Gv6). Typical Value = 0. - */ - IEC61970::Base::Domain::PU gv6; - /** - * Turbine gain (Kturb). Typical Value = 1. - */ - IEC61970::Base::Domain::PU kturb; - /** - * Base for power values (MWbase) (> 0). Unit = MW. - */ - IEC61970::Base::Domain::ActivePower mwbase; - /** - * Nonlinear gain point 1, PU power (Pgv1). Typical Value = 0. - */ - IEC61970::Base::Domain::PU pgv1; - /** - * Nonlinear gain point 2, PU power (Pgv2). Typical Value = 0. - */ - IEC61970::Base::Domain::PU pgv2; - /** - * Nonlinear gain point 3, PU power (Pgv3). Typical Value = 0. - */ - IEC61970::Base::Domain::PU pgv3; - /** - * Nonlinear gain point 4, PU power (Pgv4). Typical Value = 0. - */ - IEC61970::Base::Domain::PU pgv4; - /** - * Nonlinear gain point 5, PU power (Pgv5). Typical Value = 0. - */ - IEC61970::Base::Domain::PU pgv5; - /** - * Nonlinear gain point 6, PU power (Pgv6). Typical Value = 0. - */ - IEC61970::Base::Domain::PU pgv6; - /** - * Maximum gate opening (Pmax). Typical Value = 1. - */ - IEC61970::Base::Domain::PU pmax; - /** - * Minimum gate opening (Pmin). Typical Value = 0. - */ - IEC61970::Base::Domain::PU pmin; - /** - * Permanent droop (Rperm). Typical Value = 0.05. - */ - IEC61970::Base::Domain::PU rperm; - /** - * Temporary droop (Rtemp). Typical Value = 0.5. - */ - IEC61970::Base::Domain::PU rtemp; - /** - * Gate servo time constant (Tg). Typical Value = 0.5. - */ - IEC61970::Base::Domain::Seconds tg; - /** - * Pilot servo valve time constant (Tp). Typical Value = 0.03. - */ - IEC61970::Base::Domain::Seconds tp; - /** - * Dashpot time constant (Tr). Typical Value = 12. - */ - IEC61970::Base::Domain::Seconds tr; - /** - * Water inertia time constant (Tw). Typical Value = 2. - */ - IEC61970::Base::Domain::Seconds tw; - /** - * Maximum gate closing velocity (Uc) (<0). Typical Value = -0.1. - */ - IEC61970::Base::Domain::Float uc; - /** - * Maximum gate opening velocity (Uo). Unit = PU/sec. Typical Value = 0.1. - */ - IEC61970::Base::Domain::Float uo; - - }; - - } - - } - - } - -} -#endif // GOVHYDROIEEE2_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroPID.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroPID.cpp deleted file mode 100644 index eb1fee445..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroPID.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovHydroPID.cpp -// Implementation of the Class GovHydroPID -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "GovHydroPID.h" - -using IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPID; - - -GovHydroPID::GovHydroPID(){ - -} - - - -GovHydroPID::~GovHydroPID(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroPID.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroPID.h deleted file mode 100644 index 9dbe39311..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroPID.h +++ /dev/null @@ -1,181 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovHydroPID.h -// Implementation of the Class GovHydroPID -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef GOVHYDROPID_H -#define GOVHYDROPID_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Frequency.h" -#include "IEC61970/Base/Domain/ActivePower.h" -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/TurbineGovernorDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace TurbineGovernorDynamics - { - /** - * PID governor and turbine. - */ - class GovHydroPID : public IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::TurbineGovernorDynamics - { - - public: - GovHydroPID(); - virtual ~GovHydroPID(); - /** - * Turbine numerator multiplier (Aturb) (note 3). Typical Value -1. - */ - IEC61970::Base::Domain::PU aturb; - /** - * Turbine denominator multiplier (Bturb) (note 3). Typical Value = 0.5. - */ - IEC61970::Base::Domain::PU bturb; - /** - * Intentional dead-band width (db1). Unit = Hz. Typical Value = 0. - */ - IEC61970::Base::Domain::Frequency db1; - /** - * Unintentional dead-band (db2). Unit = MW. Typical Value = 0. - */ - IEC61970::Base::Domain::ActivePower db2; - /** - * Intentional db hysteresis (eps). Unit = Hz. Typical Value = 0. - */ - IEC61970::Base::Domain::Frequency eps; - /** - * Nonlinear gain point 1, PU gv (Gv1). Typical Value = 0. - */ - IEC61970::Base::Domain::PU gv1; - /** - * Nonlinear gain point 2, PU gv (Gv2). Typical Value = 0. - */ - IEC61970::Base::Domain::PU gv2; - /** - * Nonlinear gain point 3, PU gv (Gv3). Typical Value = 0. - */ - IEC61970::Base::Domain::PU gv3; - /** - * Nonlinear gain point 4, PU gv (Gv4). Typical Value = 0. - */ - IEC61970::Base::Domain::PU gv4; - /** - * Nonlinear gain point 5, PU gv (Gv5). Typical Value = 0. - */ - IEC61970::Base::Domain::PU gv5; - /** - * Nonlinear gain point 6, PU gv (Gv6). Typical Value = 0. - */ - IEC61970::Base::Domain::PU gv6; - /** - * Input signal switch (Flag). - * true = Pe input is used - * false = feedback is received from CV. - * Flag is normally dependent on Tt. If Tf is zero, Flag is set to false. If Tf - * is not zero, Flag is set to true. Typical Value = true. - */ - IEC61970::Base::Domain::Boolean inputSignal; - /** - * Derivative gain (Kd). Typical Value = 1.11. - */ - IEC61970::Base::Domain::PU kd; - /** - * Gate servo gain (Kg). Typical Value = 2.5. - */ - IEC61970::Base::Domain::PU kg; - /** - * Integral gain (Ki). Typical Value = 0.36. - */ - IEC61970::Base::Domain::PU ki; - /** - * Proportional gain (Kp). Typical Value = 0.1. - */ - IEC61970::Base::Domain::PU kp; - /** - * Base for power values (MWbase) (>0). Unit = MW. - */ - IEC61970::Base::Domain::ActivePower mwbase; - /** - * Nonlinear gain point 1, PU power (Pgv1). Typical Value = 0. - */ - IEC61970::Base::Domain::PU pgv1; - /** - * Nonlinear gain point 2, PU power (Pgv2). Typical Value = 0. - */ - IEC61970::Base::Domain::PU pgv2; - /** - * Nonlinear gain point 3, PU power (Pgv3). Typical Value = 0. - */ - IEC61970::Base::Domain::PU pgv3; - /** - * Nonlinear gain point 4, PU power (Pgv4). Typical Value = 0. - */ - IEC61970::Base::Domain::PU pgv4; - /** - * Nonlinear gain point 5, PU power (Pgv5). Typical Value = 0. - */ - IEC61970::Base::Domain::PU pgv5; - /** - * Nonlinear gain point 6, PU power (Pgv6). Typical Value = 0. - */ - IEC61970::Base::Domain::PU pgv6; - /** - * Maximum gate opening, PU of MWbase (Pmax). Typical Value = 1. - */ - IEC61970::Base::Domain::PU pmax; - /** - * Minimum gate opening, PU of MWbase (Pmin). Typical Value = 0. - */ - IEC61970::Base::Domain::PU pmin; - /** - * Steady state droop (R). Typical Value = 0.05. - */ - IEC61970::Base::Domain::PU r; - /** - * Input filter time constant (Td). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds td; - /** - * Washout time constant (Tf). Typical Value = 0.1. - */ - IEC61970::Base::Domain::Seconds tf; - /** - * Gate servo time constant (Tp). Typical Value = 0.35. - */ - IEC61970::Base::Domain::Seconds tp; - /** - * Power feedback time constant (Tt). Typical Value = 0.02. - */ - IEC61970::Base::Domain::Seconds tt; - /** - * Turbine time constant (Tturb) (note 3). Typical Value = 0.8. - */ - IEC61970::Base::Domain::Seconds tturb; - /** - * Maximum gate closing velocity (Velcl). Unit = PU/sec. Typical Value = -0.14. - */ - IEC61970::Base::Domain::Float velcl; - /** - * Maximum gate opening velocity (Velop). Unit = PU/sec. Typical Value = 0.09. - */ - IEC61970::Base::Domain::Float velop; - - }; - - } - - } - - } - -} -#endif // GOVHYDROPID_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroPID2.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroPID2.cpp deleted file mode 100644 index c5c5a233d..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroPID2.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovHydroPID2.cpp -// Implementation of the Class GovHydroPID2 -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "GovHydroPID2.h" - -using IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPID2; - - -GovHydroPID2::GovHydroPID2(){ - -} - - - -GovHydroPID2::~GovHydroPID2(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroPID2.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroPID2.h deleted file mode 100644 index a73d1b59c..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroPID2.h +++ /dev/null @@ -1,136 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovHydroPID2.h -// Implementation of the Class GovHydroPID2 -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef GOVHYDROPID2_H -#define GOVHYDROPID2_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/ActivePower.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/TurbineGovernorDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace TurbineGovernorDynamics - { - /** - * Hydro turbine and governor. Represents plants with straight forward penstock - * configurations and "three term" electro-hydraulic governors (i.e. Woodard - * electronic). - */ - class GovHydroPID2 : public IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::TurbineGovernorDynamics - { - - public: - GovHydroPID2(); - virtual ~GovHydroPID2(); - /** - * Factor multiplying Tw (Atw). Typical Value = 0. - */ - IEC61970::Base::Domain::PU atw; - /** - * Turbine damping factor (D). Unit = delta P / delta speed. Typical Value = 0. - */ - IEC61970::Base::Domain::PU d; - /** - * Feedback signal type flag (Flag). - * true = use gate position feedback signal - * false = use Pe. - */ - IEC61970::Base::Domain::Boolean feedbackSignal; - /** - * Gate opening at speed no load (G0). Typical Value = 0. - */ - IEC61970::Base::Domain::PU g0; - /** - * Intermediate gate opening (G1). Typical Value = 0. - */ - IEC61970::Base::Domain::PU g1; - /** - * Intermediate gate opening (G2). Typical Value = 0. - */ - IEC61970::Base::Domain::PU g2; - /** - * Maximum gate opening (Gmax). Typical Value = 0. - */ - IEC61970::Base::Domain::PU gmax; - /** - * Minimum gate opening (Gmin). Typical Value = 0. - */ - IEC61970::Base::Domain::PU gmin; - /** - * Derivative gain (Kd). Typical Value = 0. - */ - IEC61970::Base::Domain::PU kd; - /** - * Reset gain (Ki). Unit = PU/ sec. Typical Value = 0. - */ - IEC61970::Base::Domain::Float ki; - /** - * Proportional gain (Kp). Typical Value = 0. - */ - IEC61970::Base::Domain::PU kp; - /** - * Base for power values (MWbase) (>0). Unit = MW. - */ - IEC61970::Base::Domain::ActivePower mwbase; - /** - * Power at gate opening G1 (P1). Typical Value = 0. - */ - IEC61970::Base::Domain::PU p1; - /** - * Power at gate opening G2 (P2). Typical Value = 0. - */ - IEC61970::Base::Domain::PU p2; - /** - * Power at full opened gate (P3). Typical Value = 0. - */ - IEC61970::Base::Domain::PU p3; - /** - * Permanent drop (Rperm). Typical Value = 0. - */ - IEC61970::Base::Domain::PU rperm; - /** - * Controller time constant (Ta) (>0). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds ta; - /** - * Gate servo time constant (Tb) (>0). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tb; - /** - * Speed detector time constant (Treg). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds treg; - /** - * Water inertia time constant (Tw) (>0). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tw; - /** - * Maximum gate opening velocity (Velmax). Unit = PU/sec. Typical Value = 0. - */ - IEC61970::Base::Domain::Float velmax; - /** - * Maximum gate closing velocity (Velmin). Unit = PU/sec. Typical Value = 0. - */ - IEC61970::Base::Domain::Float velmin; - - }; - - } - - } - - } - -} -#endif // GOVHYDROPID2_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroPelton.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroPelton.cpp deleted file mode 100644 index 9aee5a62d..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroPelton.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovHydroPelton.cpp -// Implementation of the Class GovHydroPelton -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#include "GovHydroPelton.h" - -using IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPelton; - - -GovHydroPelton::GovHydroPelton(){ - -} - - - -GovHydroPelton::~GovHydroPelton(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroPelton.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroPelton.h deleted file mode 100644 index 355f8cbde..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroPelton.h +++ /dev/null @@ -1,178 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovHydroPelton.h -// Implementation of the Class GovHydroPelton -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#ifndef GOVHYDROPELTON_H -#define GOVHYDROPELTON_H - -#include "IEC61970/Base/Domain/Area.h" -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Frequency.h" -#include "IEC61970/Base/Domain/Length.h" -#include "IEC61970/Base/Domain/VolumeFlowRate.h" -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/TurbineGovernorDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace TurbineGovernorDynamics - { - /** - * Detailed hydro unit - Pelton model. This model can be used to represent the - * dynamic related to water tunnel and surge chamber. - * A schematic of the hydraulic system of detailed hydro unit models, like Francis - * and Pelton, is located under the GovHydroFrancis class. - */ - class GovHydroPelton : public IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::TurbineGovernorDynamics - { - - public: - GovHydroPelton(); - virtual ~GovHydroPelton(); - /** - * Area of the surge tank (AV0). Unit = m2. Typical Value = - * 30. - */ - IEC61970::Base::Domain::Area av0; - /** - * Area of the compensation tank (AV1). Unit = m2. Typical - * Value = 700. - */ - IEC61970::Base::Domain::Area av1; - /** - * Droop (bp). Typical Value = 0.05. - */ - IEC61970::Base::Domain::PU bp; - /** - * Intentional dead-band width (DB1). Unit = Hz. Typical Value = 0. - */ - IEC61970::Base::Domain::Frequency db1; - /** - * Intentional dead-band width of valve opening error (DB2). Unit = Hz. Typical - * Value = 0.01. - */ - IEC61970::Base::Domain::Frequency db2; - /** - * Head of compensation chamber water level with respect to the level of penstock - * (H1). Unit = m. Typical Value = 4. - */ - IEC61970::Base::Domain::Length h1; - /** - * Head of surge tank water level with respect to the level of penstock - * (H2). Unit = m. Typical Value = 40. - */ - IEC61970::Base::Domain::Length h2; - /** - * Rated hydraulic head (Hn). Unit = m. Typical Value = 250. - */ - IEC61970::Base::Domain::Length hn; - /** - * Penstock loss coefficient (due to friction) (Kc). Typical Value = 0.025. - */ - IEC61970::Base::Domain::PU kc; - /** - * Water tunnel and surge chamber loss coefficient (due to friction) (Kg). - * Typical Value = -0.025. - */ - IEC61970::Base::Domain::PU kg; - /** - * No-load turbine flow at nominal head (Qc0). Typical Value = 0.05. - */ - IEC61970::Base::Domain::PU qc0; - /** - * Rated flow (Qn). Unit = m3/s. Typical Value = 40. - */ - IEC61970::Base::Domain::VolumeFlowRate qn; - /** - * Simplified Pelton model simulation (Sflag). - * true = enable of simplified Pelton model simulation - * false = enable of complete Pelton model simulation (non linear gain). - * Typical Value = false. - */ - IEC61970::Base::Domain::Boolean simplifiedPelton; - /** - * Static compensating characteristic (Cflag). - * true = enable of static compensating characteristic - * false = inhibit of static compensating characteristic. - * Typical Value = false. - */ - IEC61970::Base::Domain::Boolean staticCompensating; - /** - * Derivative gain (accelerometer time constant) (Ta). Typical Value = 3. - */ - IEC61970::Base::Domain::Seconds ta; - /** - * Gate servo time constant (Ts). Typical Value = 0.15. - */ - IEC61970::Base::Domain::Seconds ts; - /** - * Servomotor integrator time constant (TV). Typical Value = 0.3. - */ - IEC61970::Base::Domain::Seconds tv; - /** - * Water inertia time constant (Twnc). Typical Value = 1. - */ - IEC61970::Base::Domain::Seconds twnc; - /** - * Water tunnel and surge chamber inertia time constant (Twng). Typical Value = 3. - */ - IEC61970::Base::Domain::Seconds twng; - /** - * Electronic integrator time constant (Tx). Typical Value = 0.5. - */ - IEC61970::Base::Domain::Seconds tx; - /** - * Maximum gate opening velocity (Va). Unit = PU/sec. Typical Value = 0.016. - */ - IEC61970::Base::Domain::Float va; - /** - * Maximum gate opening (ValvMax). Typical Value = 1. - */ - IEC61970::Base::Domain::PU valvmax; - /** - * Minimum gate opening (ValvMin). Typical Value = 0. - */ - IEC61970::Base::Domain::PU valvmin; - /** - * Maximum servomotor valve opening velocity (Vav). Typical Value = 0.017. - */ - IEC61970::Base::Domain::PU vav; - /** - * Maximum gate closing velocity (Vc). Unit = PU/sec. Typical Value = -0.016. - */ - IEC61970::Base::Domain::Float vc; - /** - * Maximum servomotor valve closing velocity (Vcv). Typical Value = -0.017. - */ - IEC61970::Base::Domain::PU vcv; - /** - * Water tunnel and surge chamber simulation (Tflag). - * true = enable of water tunnel and surge chamber simulation - * false = inhibit of water tunnel and surge chamber simulation. - * Typical Value = false. - */ - IEC61970::Base::Domain::Boolean waterTunnelSurgeChamberSimulation; - /** - * Head of upper water level with respect to the level of penstock (Zsfc). Unit = - * m. Typical Value = 25. - */ - IEC61970::Base::Domain::Length zsfc; - - }; - - } - - } - - } - -} -#endif // GOVHYDROPELTON_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroR.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroR.cpp deleted file mode 100644 index f9cd11088..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroR.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovHydroR.cpp -// Implementation of the Class GovHydroR -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "GovHydroR.h" - -using IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroR; - - -GovHydroR::GovHydroR(){ - -} - - - -GovHydroR::~GovHydroR(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroR.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroR.h deleted file mode 100644 index 18005245e..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroR.h +++ /dev/null @@ -1,217 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovHydroR.h -// Implementation of the Class GovHydroR -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef GOVHYDROR_H -#define GOVHYDROR_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Frequency.h" -#include "IEC61970/Base/Domain/ActivePower.h" -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/TurbineGovernorDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace TurbineGovernorDynamics - { - /** - * Fourth order lead-lag governor and hydro turbine. - */ - class GovHydroR : public IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::TurbineGovernorDynamics - { - - public: - GovHydroR(); - virtual ~GovHydroR(); - /** - * Turbine gain (At). Typical Value = 1.2. - */ - IEC61970::Base::Domain::PU at; - /** - * Intentional dead-band width (db1). Unit = Hz. Typical Value = 0. - */ - IEC61970::Base::Domain::Frequency db1; - /** - * Unintentional dead-band (db2). Unit = MW. Typical Value = 0. - */ - IEC61970::Base::Domain::ActivePower db2; - /** - * Turbine damping factor (Dturb). Typical Value = 0.2. - */ - IEC61970::Base::Domain::PU dturb; - /** - * Intentional db hysteresis (eps). Unit = Hz. Typical Value = 0. - */ - IEC61970::Base::Domain::Frequency eps; - /** - * Maximum governor output (Gmax). Typical Value = 1.05. - */ - IEC61970::Base::Domain::PU gmax; - /** - * Minimum governor output (Gmin). Typical Value = -0.05. - */ - IEC61970::Base::Domain::PU gmin; - /** - * Nonlinear gain point 1, PU gv (Gv1). Typical Value = 0. - */ - IEC61970::Base::Domain::PU gv1; - /** - * Nonlinear gain point 2, PU gv (Gv2). Typical Value = 0. - */ - IEC61970::Base::Domain::PU gv2; - /** - * Nonlinear gain point 3, PU gv (Gv3). Typical Value = 0. - */ - IEC61970::Base::Domain::PU gv3; - /** - * Nonlinear gain point 4, PU gv (Gv4). Typical Value = 0. - */ - IEC61970::Base::Domain::PU gv4; - /** - * Nonlinear gain point 5, PU gv (Gv5). Typical Value = 0. - */ - IEC61970::Base::Domain::PU gv5; - /** - * Nonlinear gain point 6, PU gv (Gv6). Typical Value = 0. - */ - IEC61970::Base::Domain::PU gv6; - /** - * Turbine nominal head (H0). Typical Value = 1. - */ - IEC61970::Base::Domain::PU h0; - /** - * Input signal switch (Flag). - * true = Pe input is used - * false = feedback is received from CV. - * Flag is normally dependent on Tt. If Tf is zero, Flag is set to false. If Tf - * is not zero, Flag is set to true. Typical Value = true. - */ - IEC61970::Base::Domain::Boolean inputSignal; - /** - * Gate servo gain (Kg). Typical Value = 2. - */ - IEC61970::Base::Domain::PU kg; - /** - * Integral gain (Ki). Typical Value = 0.5. - */ - IEC61970::Base::Domain::PU ki; - /** - * Base for power values (MWbase) (>0). Unit = MW. - */ - IEC61970::Base::Domain::ActivePower mwbase; - /** - * Nonlinear gain point 1, PU power (Pgv1). Typical Value = 0. - */ - IEC61970::Base::Domain::PU pgv1; - /** - * Nonlinear gain point 2, PU power (Pgv2). Typical Value = 0. - */ - IEC61970::Base::Domain::PU pgv2; - /** - * Nonlinear gain point 3, PU power (Pgv3). Typical Value = 0. - */ - IEC61970::Base::Domain::PU pgv3; - /** - * Nonlinear gain point 4, PU power (Pgv4). Typical Value = 0. - */ - IEC61970::Base::Domain::PU pgv4; - /** - * Nonlinear gain point 5, PU power (Pgv5). Typical Value = 0. - */ - IEC61970::Base::Domain::PU pgv5; - /** - * Nonlinear gain point 6, PU power (Pgv6). Typical Value = 0. - */ - IEC61970::Base::Domain::PU pgv6; - /** - * Maximum gate opening, PU of MWbase (Pmax). Typical Value = 1. - */ - IEC61970::Base::Domain::PU pmax; - /** - * Minimum gate opening, PU of MWbase (Pmin). Typical Value = 0. - */ - IEC61970::Base::Domain::PU pmin; - /** - * No-load turbine flow at nominal head (Qnl). Typical Value = 0.08. - */ - IEC61970::Base::Domain::PU qnl; - /** - * Steady-state droop (R). Typical Value = 0.05. - */ - IEC61970::Base::Domain::PU r; - /** - * Lead time constant 1 (T1). Typical Value = 1.5. - */ - IEC61970::Base::Domain::Seconds t1; - /** - * Lag time constant 1 (T2). Typical Value = 0.1. - */ - IEC61970::Base::Domain::Seconds t2; - /** - * Lead time constant 2 (T3). Typical Value = 1.5. - */ - IEC61970::Base::Domain::Seconds t3; - /** - * Lag time constant 2 (T4). Typical Value = 0.1. - */ - IEC61970::Base::Domain::Seconds t4; - /** - * Lead time constant 3 (T5). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds t5; - /** - * Lag time constant 3 (T6). Typical Value = 0.05. - */ - IEC61970::Base::Domain::Seconds t6; - /** - * Lead time constant 4 (T7). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds t7; - /** - * Lag time constant 4 (T8). Typical Value = 0.05. - */ - IEC61970::Base::Domain::Seconds t8; - /** - * Input filter time constant (Td). Typical Value = 0.05. - */ - IEC61970::Base::Domain::Seconds td; - /** - * Gate servo time constant (Tp). Typical Value = 0.05. - */ - IEC61970::Base::Domain::Seconds tp; - /** - * Power feedback time constant (Tt). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tt; - /** - * Water inertia time constant (Tw). Typical Value = 1. - */ - IEC61970::Base::Domain::Seconds tw; - /** - * Maximum gate closing velocity (Velcl). Unit = PU/sec. Typical Value = -0.2. - */ - IEC61970::Base::Domain::Float velcl; - /** - * Maximum gate opening velocity (Velop). Unit = PU/sec. Typical Value = 0.2. - */ - IEC61970::Base::Domain::Float velop; - - }; - - } - - } - - } - -} -#endif // GOVHYDROR_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroWEH.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroWEH.cpp deleted file mode 100644 index af776c929..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroWEH.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovHydroWEH.cpp -// Implementation of the Class GovHydroWEH -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "GovHydroWEH.h" - -using IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWEH; - - -GovHydroWEH::GovHydroWEH(){ - -} - - - -GovHydroWEH::~GovHydroWEH(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroWEH.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroWEH.h deleted file mode 100644 index 2ae46b5e3..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroWEH.h +++ /dev/null @@ -1,306 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovHydroWEH.h -// Implementation of the Class GovHydroWEH -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef GOVHYDROWEH_H -#define GOVHYDROWEH_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Domain/ActivePower.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/TurbineGovernorDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace TurbineGovernorDynamics - { - /** - * Woodward Electric Hydro Governor Model. - */ - class GovHydroWEH : public IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::TurbineGovernorDynamics - { - - public: - GovHydroWEH(); - virtual ~GovHydroWEH(); - /** - * Speed Dead Band (db). - */ - IEC61970::Base::Domain::PU db; - /** - * Value to allow the integral controller to advance beyond the gate limits (Dicn). - */ - IEC61970::Base::Domain::PU dicn; - /** - * Value to allow the Pilot valve controller to advance beyond the gate limits - * (Dpv). - */ - IEC61970::Base::Domain::PU dpv; - /** - * Turbine damping factor (Dturb). Unit = delta P (PU of MWbase) / delta speed - * (PU). - */ - IEC61970::Base::Domain::PU dturb; - /** - * Feedback signal selection (Sw). - * true = PID Output (if R-Perm-Gate=droop and R-Perm-Pe=0) - * false = Electrical Power (if R-Perm-Gate=0 and R-Perm-Pe=droop) or - * false = Gate Position (if R-Perm-Gate=droop and R-Perm-Pe=0). - */ - IEC61970::Base::Domain::Boolean feedbackSignal; - /** - * Flow Gate 1 (Fl1). Flow value for gate position point 1 for lookup table - * representing water flow through the turbine as a function of gate position to - * produce steady state flow. - */ - IEC61970::Base::Domain::PU fl1; - /** - * Flow Gate 2 (Fl2). Flow value for gate position point 2 for lookup table - * representing water flow through the turbine as a function of gate position to - * produce steady state flow. - */ - IEC61970::Base::Domain::PU fl2; - /** - * Flow Gate 3 (Fl3). Flow value for gate position point 3 for lookup table - * representing water flow through the turbine as a function of gate position to - * produce steady state flow. - */ - IEC61970::Base::Domain::PU fl3; - /** - * Flow Gate 4 (Fl4). Flow value for gate position point 4 for lookup table - * representing water flow through the turbine as a function of gate position to - * produce steady state flow. - */ - IEC61970::Base::Domain::PU fl4; - /** - * Flow Gate 5 (Fl5). Flow value for gate position point 5 for lookup table - * representing water flow through the turbine as a function of gate position to - * produce steady state flow. - */ - IEC61970::Base::Domain::PU fl5; - /** - * Flow P1 (Fp1). Turbine Flow value for point 1 for lookup table representing - * per unit mechanical power on machine MVA rating as a function of turbine flow. - */ - IEC61970::Base::Domain::PU fp1; - /** - * Flow P10 (Fp10). Turbine Flow value for point 10 for lookup table representing - * per unit mechanical power on machine MVA rating as a function of turbine flow. - */ - IEC61970::Base::Domain::PU fp10; - /** - * Flow P2 (Fp2). Turbine Flow value for point 2 for lookup table representing - * per unit mechanical power on machine MVA rating as a function of turbine flow. - */ - IEC61970::Base::Domain::PU fp2; - /** - * Flow P3 (Fp3). Turbine Flow value for point 3 for lookup table representing - * per unit mechanical power on machine MVA rating as a function of turbine flow. - */ - IEC61970::Base::Domain::PU fp3; - /** - * Flow P4 (Fp4). Turbine Flow value for point 4 for lookup table representing - * per unit mechanical power on machine MVA rating as a function of turbine flow. - */ - IEC61970::Base::Domain::PU fp4; - /** - * Flow P5 (Fp5). Turbine Flow value for point 5 for lookup table representing - * per unit mechanical power on machine MVA rating as a function of turbine flow. - */ - IEC61970::Base::Domain::PU fp5; - /** - * Flow P6 (Fp6). Turbine Flow value for point 6 for lookup table representing - * per unit mechanical power on machine MVA rating as a function of turbine flow. - */ - IEC61970::Base::Domain::PU fp6; - /** - * Flow P7 (Fp7). Turbine Flow value for point 7 for lookup table representing - * per unit mechanical power on machine MVA rating as a function of turbine flow. - */ - IEC61970::Base::Domain::PU fp7; - /** - * Flow P8 (Fp8). Turbine Flow value for point 8 for lookup table representing - * per unit mechanical power on machine MVA rating as a function of turbine flow. - */ - IEC61970::Base::Domain::PU fp8; - /** - * Flow P9 (Fp9). Turbine Flow value for point 9 for lookup table representing - * per unit mechanical power on machine MVA rating as a function of turbine flow. - */ - IEC61970::Base::Domain::PU fp9; - /** - * Maximum Gate Position (Gmax). - */ - IEC61970::Base::Domain::PU gmax; - /** - * Minimum Gate Position (Gmin). - */ - IEC61970::Base::Domain::PU gmin; - /** - * Maximum gate closing rate (Gtmxcl). - */ - IEC61970::Base::Domain::PU gtmxcl; - /** - * Maximum gate opening rate (Gtmxop). - */ - IEC61970::Base::Domain::PU gtmxop; - /** - * Gate 1 (Gv1). Gate Position value for point 1 for lookup table representing - * water flow through the turbine as a function of gate position to produce steady - * state flow. - */ - IEC61970::Base::Domain::PU gv1; - /** - * Gate 2 (Gv2). Gate Position value for point 2 for lookup table representing - * water flow through the turbine as a function of gate position to produce steady - * state flow. - */ - IEC61970::Base::Domain::PU gv2; - /** - * Gate 3 (Gv3). Gate Position value for point 3 for lookup table representing - * water flow through the turbine as a function of gate position to produce steady - * state flow. - */ - IEC61970::Base::Domain::PU gv3; - /** - * Gate 4 (Gv4). Gate Position value for point 4 for lookup table representing - * water flow through the turbine as a function of gate position to produce steady - * state flow. - */ - IEC61970::Base::Domain::PU gv4; - /** - * Gate 5 (Gv5). Gate Position value for point 5 for lookup table representing - * water flow through the turbine as a function of gate position to produce steady - * state flow. - */ - IEC61970::Base::Domain::PU gv5; - /** - * Derivative controller derivative gain (Kd). - */ - IEC61970::Base::Domain::PU kd; - /** - * Derivative controller Integral gain (Ki). - */ - IEC61970::Base::Domain::PU ki; - /** - * Derivative control gain (Kp). - */ - IEC61970::Base::Domain::PU kp; - /** - * Base for power values (MWbase) (>0). Unit = MW. - */ - IEC61970::Base::Domain::ActivePower mwbase; - /** - * Pmss Flow P1 (Pmss1). Mechanical Power output Pmss for Turbine Flow point 1 - * for lookup table representing per unit mechanical power on machine MVA rating - * as a function of turbine flow. - */ - IEC61970::Base::Domain::PU pmss1; - /** - * Pmss Flow P10 (Pmss10). Mechanical Power output Pmss for Turbine Flow point 10 - * for lookup table representing per unit mechanical power on machine MVA rating - * as a function of turbine flow. - */ - IEC61970::Base::Domain::PU pmss10; - /** - * Pmss Flow P2 (Pmss2). Mechanical Power output Pmss for Turbine Flow point 2 - * for lookup table representing per unit mechanical power on machine MVA rating - * as a function of turbine flow. - */ - IEC61970::Base::Domain::PU pmss2; - /** - * Pmss Flow P3 (Pmss3). Mechanical Power output Pmss for Turbine Flow point 3 - * for lookup table representing per unit mechanical power on machine MVA rating - * as a function of turbine flow. - */ - IEC61970::Base::Domain::PU pmss3; - /** - * Pmss Flow P4 (Pmss4). Mechanical Power output Pmss for Turbine Flow point 4 - * for lookup table representing per unit mechanical power on machine MVA rating - * as a function of turbine flow. - */ - IEC61970::Base::Domain::PU pmss4; - /** - * Pmss Flow P5 (Pmss5). Mechanical Power output Pmss for Turbine Flow point 5 - * for lookup table representing per unit mechanical power on machine MVA rating - * as a function of turbine flow. - */ - IEC61970::Base::Domain::PU pmss5; - /** - * Pmss Flow P6 (Pmss6). Mechanical Power output Pmss for Turbine Flow point 6 - * for lookup table representing per unit mechanical power on machine MVA rating - * as a function of turbine flow. - */ - IEC61970::Base::Domain::PU pmss6; - /** - * Pmss Flow P7 (Pmss7). Mechanical Power output Pmss for Turbine Flow point 7 - * for lookup table representing per unit mechanical power on machine MVA rating - * as a function of turbine flow. - */ - IEC61970::Base::Domain::PU pmss7; - /** - * Pmss Flow P8 (Pmss8). Mechanical Power output Pmss for Turbine Flow point 8 - * for lookup table representing per unit mechanical power on machine MVA rating - * as a function of turbine flow. - */ - IEC61970::Base::Domain::PU pmss8; - /** - * Pmss Flow P9 (Pmss9). Mechanical Power output Pmss for Turbine Flow point 9 - * for lookup table representing per unit mechanical power on machine MVA rating - * as a function of turbine flow. - */ - IEC61970::Base::Domain::PU pmss9; - /** - * Permanent droop for governor output feedback (R-Perm-Gate). - */ - IEC61970::Base::Domain::Float rpg; - /** - * Permanent droop for electrical power feedback (R-Perm-Pe). - */ - IEC61970::Base::Domain::Float rpp; - /** - * Derivative controller time constant to limit the derivative characteristic - * beyond a breakdown frequency to avoid amplification of high-frequency noise - * (Td). - */ - IEC61970::Base::Domain::Seconds td; - /** - * Distributive Valve time lag time constant (Tdv). - */ - IEC61970::Base::Domain::Seconds tdv; - /** - * Value to allow the Distribution valve controller to advance beyond the gate - * movement rate limit (Tg). - */ - IEC61970::Base::Domain::Seconds tg; - /** - * Pilot Valve time lag time constant (Tp). - */ - IEC61970::Base::Domain::Seconds tp; - /** - * Electrical power droop time constant (Tpe). - */ - IEC61970::Base::Domain::Seconds tpe; - /** - * Water inertia time constant (Tw) (>0). - */ - IEC61970::Base::Domain::Seconds tw; - - }; - - } - - } - - } - -} -#endif // GOVHYDROWEH_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroWPID.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroWPID.cpp deleted file mode 100644 index c201dd8fc..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroWPID.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovHydroWPID.cpp -// Implementation of the Class GovHydroWPID -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "GovHydroWPID.h" - -using IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWPID; - - -GovHydroWPID::GovHydroWPID(){ - -} - - - -GovHydroWPID::~GovHydroWPID(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroWPID.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroWPID.h deleted file mode 100644 index c76ff9904..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovHydroWPID.h +++ /dev/null @@ -1,130 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovHydroWPID.h -// Implementation of the Class GovHydroWPID -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef GOVHYDROWPID_H -#define GOVHYDROWPID_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/ActivePower.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/TurbineGovernorDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace TurbineGovernorDynamics - { - /** - * Woodward PID Hydro Governor. - */ - class GovHydroWPID : public IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::TurbineGovernorDynamics - { - - public: - GovHydroWPID(); - virtual ~GovHydroWPID(); - /** - * Turbine damping factor (D). Unit = delta P / delta speed. - */ - IEC61970::Base::Domain::PU d; - /** - * Gate opening Limit Maximum (Gatmax). - */ - IEC61970::Base::Domain::PU gatmax; - /** - * Gate opening Limit Minimum (Gatmin). - */ - IEC61970::Base::Domain::PU gatmin; - /** - * Gate position 1 (Gv1). - */ - IEC61970::Base::Domain::PU gv1; - /** - * Gate position 2 (Gv2). - */ - IEC61970::Base::Domain::PU gv2; - /** - * Gate position 3 (Gv3). - */ - IEC61970::Base::Domain::PU gv3; - /** - * Derivative gain (Kd). Typical Value = 1.11. - */ - IEC61970::Base::Domain::PU kd; - /** - * Reset gain (Ki). Typical Value = 0.36. - */ - IEC61970::Base::Domain::PU ki; - /** - * Proportional gain (Kp). Typical Value = 0.1. - */ - IEC61970::Base::Domain::PU kp; - /** - * Base for power values (MWbase) (>0). Unit = MW. - */ - IEC61970::Base::Domain::ActivePower mwbase; - /** - * Output at Gv1 PU of MWbase (Pgv1). - */ - IEC61970::Base::Domain::PU pgv1; - /** - * Output at Gv2 PU of MWbase (Pgv2). - */ - IEC61970::Base::Domain::PU pgv2; - /** - * Output at Gv3 PU of MWbase (Pgv3). - */ - IEC61970::Base::Domain::PU pgv3; - /** - * Maximum Power Output (Pmax). - */ - IEC61970::Base::Domain::PU pmax; - /** - * Minimum Power Output (Pmin). - */ - IEC61970::Base::Domain::PU pmin; - /** - * Permanent drop (Reg). - */ - IEC61970::Base::Domain::PU reg; - /** - * Controller time constant (Ta) (>0). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds ta; - /** - * Gate servo time constant (Tb) (>0). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tb; - /** - * Speed detector time constant (Treg). - */ - IEC61970::Base::Domain::Seconds treg; - /** - * Water inertia time constant (Tw) (>0). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tw; - /** - * Maximum gate opening velocity (Velmax). Unit = PU/sec. Typical Value = 0. - */ - IEC61970::Base::Domain::PU velmax; - /** - * Maximum gate closing velocity (Velmin). Unit = PU/sec. Typical Value = 0. - */ - IEC61970::Base::Domain::PU velmin; - - }; - - } - - } - - } - -} -#endif // GOVHYDROWPID_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteam0.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteam0.cpp deleted file mode 100644 index b2d5c87ce..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteam0.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovSteam0.cpp -// Implementation of the Class GovSteam0 -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "GovSteam0.h" - -using IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteam0; - - -GovSteam0::GovSteam0(){ - -} - - - -GovSteam0::~GovSteam0(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteam0.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteam0.h deleted file mode 100644 index 3c80926c7..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteam0.h +++ /dev/null @@ -1,75 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovSteam0.h -// Implementation of the Class GovSteam0 -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef GOVSTEAM0_H -#define GOVSTEAM0_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/ActivePower.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/TurbineGovernorDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace TurbineGovernorDynamics - { - /** - * A simplified steam turbine governor model. - */ - class GovSteam0 : public IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::TurbineGovernorDynamics - { - - public: - GovSteam0(); - virtual ~GovSteam0(); - /** - * Turbine damping coefficient (Dt). Unit = delta P / delta speed. Typical Value - * = 0. - */ - IEC61970::Base::Domain::PU dt; - /** - * Base for power values (MWbase) (>0). Unit = MW. - */ - IEC61970::Base::Domain::ActivePower mwbase; - /** - * Permanent droop (R). Typical Value = 0.05. - */ - IEC61970::Base::Domain::PU r; - /** - * Steam bowl time constant (T1). Typical Value = 0.5. - */ - IEC61970::Base::Domain::Seconds t1; - /** - * Numerator time constant of T2/T3 block (T2). Typical Value = 3. - */ - IEC61970::Base::Domain::Seconds t2; - /** - * Reheater time constant (T3). Typical Value = 10. - */ - IEC61970::Base::Domain::Seconds t3; - /** - * Maximum valve position, PU of mwcap (Vmax). Typical Value = 1. - */ - IEC61970::Base::Domain::PU vmax; - /** - * Minimum valve position, PU of mwcap (Vmin). Typical Value = 0. - */ - IEC61970::Base::Domain::PU vmin; - - }; - - } - - } - - } - -} -#endif // GOVSTEAM0_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteam1.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteam1.cpp deleted file mode 100644 index 212f8179e..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteam1.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovSteam1.cpp -// Implementation of the Class GovSteam1 -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#include "GovSteam1.h" - -using IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteam1; - - -GovSteam1::GovSteam1(){ - -} - - - -GovSteam1::~GovSteam1(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteam1.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteam1.h deleted file mode 100644 index f80c4371d..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteam1.h +++ /dev/null @@ -1,211 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovSteam1.h -// Implementation of the Class GovSteam1 -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#ifndef GOVSTEAM1_H -#define GOVSTEAM1_H - -#include "IEC61970/Base/Domain/Frequency.h" -#include "IEC61970/Base/Domain/ActivePower.h" -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/TurbineGovernorDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace TurbineGovernorDynamics - { - /** - * Steam turbine governor model, based on the GovSteamIEEE1 model (with optional - * deadband and nonlinear valve gain added). - */ - class GovSteam1 : public IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::TurbineGovernorDynamics - { - - public: - GovSteam1(); - virtual ~GovSteam1(); - /** - * Intentional deadband width (db1). Unit = Hz. Typical Value = 0. - */ - IEC61970::Base::Domain::Frequency db1; - /** - * Unintentional deadband (db2). Unit = MW. Typical Value = 0. - */ - IEC61970::Base::Domain::ActivePower db2; - /** - * Intentional db hysteresis (eps). Unit = Hz. Typical Value = 0. - */ - IEC61970::Base::Domain::Frequency eps; - /** - * Nonlinear gain valve position point 1 (GV1). Typical Value = 0. - */ - IEC61970::Base::Domain::PU gv1; - /** - * Nonlinear gain valve position point 2 (GV2). Typical Value = 0.4. - */ - IEC61970::Base::Domain::PU gv2; - /** - * Nonlinear gain valve position point 3 (GV3). Typical Value = 0.5. - */ - IEC61970::Base::Domain::PU gv3; - /** - * Nonlinear gain valve position point 4 (GV4). Typical Value = 0.6. - */ - IEC61970::Base::Domain::PU gv4; - /** - * Nonlinear gain valve position point 5 (GV5). Typical Value = 1. - */ - IEC61970::Base::Domain::PU gv5; - /** - * Nonlinear gain valve position point 6 (GV6). Typical Value = 0. - */ - IEC61970::Base::Domain::PU gv6; - /** - * Governor gain (reciprocal of droop) (K) (>0). Typical Value = 25. - */ - IEC61970::Base::Domain::PU k; - /** - * Fraction of HP shaft power after first boiler pass (K1). Typical Value = 0.2. - */ - IEC61970::Base::Domain::Float k1; - /** - * Fraction of LP shaft power after first boiler pass (K2). Typical Value = 0. - */ - IEC61970::Base::Domain::Float k2; - /** - * Fraction of HP shaft power after second boiler pass (K3). Typical Value = 0.3. - */ - IEC61970::Base::Domain::Float k3; - /** - * Fraction of LP shaft power after second boiler pass (K4). Typical Value = 0. - */ - IEC61970::Base::Domain::Float k4; - /** - * Fraction of HP shaft power after third boiler pass (K5). Typical Value = 0.5. - */ - IEC61970::Base::Domain::Float k5; - /** - * Fraction of LP shaft power after third boiler pass (K6). Typical Value = 0. - */ - IEC61970::Base::Domain::Float k6; - /** - * Fraction of HP shaft power after fourth boiler pass (K7). Typical Value = 0. - */ - IEC61970::Base::Domain::Float k7; - /** - * Fraction of LP shaft power after fourth boiler pass (K8). Typical Value = 0. - */ - IEC61970::Base::Domain::Float k8; - /** - * Base for power values (MWbase) (>0). Unit = MW. - */ - IEC61970::Base::Domain::ActivePower mwbase; - /** - * Nonlinear gain power value point 1 (Pgv1). Typical Value = 0. - */ - IEC61970::Base::Domain::PU pgv1; - /** - * Nonlinear gain power value point 2 (Pgv2). Typical Value = 0.75. - */ - IEC61970::Base::Domain::PU pgv2; - /** - * Nonlinear gain power value point 3 (Pgv3). Typical Value = 0.91. - */ - IEC61970::Base::Domain::PU pgv3; - /** - * Nonlinear gain power value point 4 (Pgv4). Typical Value = 0.98. - */ - IEC61970::Base::Domain::PU pgv4; - /** - * Nonlinear gain power value point 5 (Pgv5). Typical Value = 1. - */ - IEC61970::Base::Domain::PU pgv5; - /** - * Nonlinear gain power value point 6 (Pgv6). Typical Value = 0. - */ - IEC61970::Base::Domain::PU pgv6; - /** - * Maximum valve opening (Pmax) (> Pmin). Typical Value = 1. - */ - IEC61970::Base::Domain::PU pmax; - /** - * Minimum valve opening (Pmin) (>=0). Typical Value = 0. - */ - IEC61970::Base::Domain::PU pmin; - /** - * Intentional deadband indicator. - * true = intentional deadband is applied - * false = intentional deadband is not applied. - * Typical Value = true. - */ - IEC61970::Base::Domain::Boolean sdb1; - /** - * Unintentional deadband location. - * true = intentional deadband is applied before point "A" - * false = intentional deadband is applied after point "A". - * Typical Value = true. - */ - IEC61970::Base::Domain::Boolean sdb2; - /** - * Governor lag time constant (T1). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds t1; - /** - * Governor lead time constant (T2). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds t2; - /** - * Valve positioner time constant (T3) (>0). Typical Value = 0.1. - */ - IEC61970::Base::Domain::Seconds t3; - /** - * Inlet piping/steam bowl time constant (T4). Typical Value = 0.3. - */ - IEC61970::Base::Domain::Seconds t4; - /** - * Time constant of second boiler pass (T5). Typical Value = 5. - */ - IEC61970::Base::Domain::Seconds t5; - /** - * Time constant of third boiler pass (T6). Typical Value = 0.5. - */ - IEC61970::Base::Domain::Seconds t6; - /** - * Time constant of fourth boiler pass (T7). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds t7; - /** - * Maximum valve closing velocity (Uc) (<0). Unit = PU/sec. Typical Value = -10. - */ - IEC61970::Base::Domain::Float uc; - /** - * Maximum valve opening velocity (Uo) (>0). Unit = PU/sec. Typical Value = 1. - */ - IEC61970::Base::Domain::Float uo; - /** - * Nonlinear valve characteristic. - * true = nonlinear valve characteristic is used - * false = nonlinear valve characteristic is not used. - * Typical Value = true. - */ - IEC61970::Base::Domain::Boolean valve; - - }; - - } - - } - - } - -} -#endif // GOVSTEAM1_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteam2.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteam2.cpp deleted file mode 100644 index 8af5f6bea..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteam2.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovSteam2.cpp -// Implementation of the Class GovSteam2 -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#include "GovSteam2.h" - -using IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteam2; - - -GovSteam2::GovSteam2(){ - -} - - - -GovSteam2::~GovSteam2(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteam2.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteam2.h deleted file mode 100644 index 44e363b29..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteam2.h +++ /dev/null @@ -1,74 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovSteam2.h -// Implementation of the Class GovSteam2 -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#ifndef GOVSTEAM2_H -#define GOVSTEAM2_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/TurbineGovernorDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace TurbineGovernorDynamics - { - /** - * Simplified governor model. - */ - class GovSteam2 : public IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::TurbineGovernorDynamics - { - - public: - GovSteam2(); - virtual ~GovSteam2(); - /** - * Frequency dead band (DBF). Typical Value = 0. - */ - IEC61970::Base::Domain::PU dbf; - /** - * Governor gain (reciprocal of droop) (K). Typical Value = 20. - */ - IEC61970::Base::Domain::Float k; - /** - * Fuel flow maximum negative error value (MNEF). Typical Value = -1. - */ - IEC61970::Base::Domain::PU mnef; - /** - * Fuel flow maximum positive error value (MXEF). Typical Value = 1. - */ - IEC61970::Base::Domain::PU mxef; - /** - * Maximum fuel flow (PMAX). Typical Value = 1. - */ - IEC61970::Base::Domain::PU pmax; - /** - * Minimum fuel flow (PMIN). Typical Value = 0. - */ - IEC61970::Base::Domain::PU pmin; - /** - * Governor lag time constant (T1) (>0). Typical Value = 0.45. - */ - IEC61970::Base::Domain::Seconds t1; - /** - * Governor lead time constant (T2) (may be 0). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds t2; - - }; - - } - - } - - } - -} -#endif // GOVSTEAM2_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteamCC.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteamCC.cpp deleted file mode 100644 index 88ba388af..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteamCC.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovSteamCC.cpp -// Implementation of the Class GovSteamCC -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "GovSteamCC.h" - -using IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamCC; - - -GovSteamCC::GovSteamCC(){ - -} - - - -GovSteamCC::~GovSteamCC(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteamCC.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteamCC.h deleted file mode 100644 index 8decfd828..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteamCC.h +++ /dev/null @@ -1,110 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovSteamCC.h -// Implementation of the Class GovSteamCC -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef GOVSTEAMCC_H -#define GOVSTEAMCC_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/ActivePower.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/TurbineGovernorDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace TurbineGovernorDynamics - { - /** - * Cross compound turbine governor model. - */ - class GovSteamCC : public IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::TurbineGovernorDynamics - { - - public: - GovSteamCC(); - virtual ~GovSteamCC(); - /** - * HP damping factor (Dhp). Typical Value = 0. - */ - IEC61970::Base::Domain::PU dhp; - /** - * LP damping factor (Dlp). Typical Value = 0. - */ - IEC61970::Base::Domain::PU dlp; - /** - * Fraction of HP power ahead of reheater (Fhp). Typical Value = 0.3. - */ - IEC61970::Base::Domain::PU fhp; - /** - * Fraction of LP power ahead of reheater (Flp). Typical Value = 0.7. - */ - IEC61970::Base::Domain::PU flp; - /** - * Base for power values (MWbase) (>0). Unit = MW. - */ - IEC61970::Base::Domain::ActivePower mwbase; - /** - * Maximum HP value position (Pmaxhp). Typical Value = 1. - */ - IEC61970::Base::Domain::PU pmaxhp; - /** - * Maximum LP value position (Pmaxlp). Typical Value = 1. - */ - IEC61970::Base::Domain::PU pmaxlp; - /** - * HP governor droop (Rhp). Typical Value = 0.05. - */ - IEC61970::Base::Domain::PU rhp; - /** - * LP governor droop (Rlp). Typical Value = 0.05. - */ - IEC61970::Base::Domain::PU rlp; - /** - * HP governor time constant (T1hp). Typical Value = 0.1. - */ - IEC61970::Base::Domain::Seconds t1hp; - /** - * LP governor time constant (T1lp). Typical Value = 0.1. - */ - IEC61970::Base::Domain::Seconds t1lp; - /** - * HP turbine time constant (T3hp). Typical Value = 0.1. - */ - IEC61970::Base::Domain::Seconds t3hp; - /** - * LP turbine time constant (T3lp). Typical Value = 0.1. - */ - IEC61970::Base::Domain::Seconds t3lp; - /** - * HP turbine time constant (T4hp). Typical Value = 0.1. - */ - IEC61970::Base::Domain::Seconds t4hp; - /** - * LP turbine time constant (T4lp). Typical Value = 0.1. - */ - IEC61970::Base::Domain::Seconds t4lp; - /** - * HP reheater time constant (T5hp). Typical Value = 10. - */ - IEC61970::Base::Domain::Seconds t5hp; - /** - * LP reheater time constant (T5lp). Typical Value = 10. - */ - IEC61970::Base::Domain::Seconds t5lp; - - }; - - } - - } - - } - -} -#endif // GOVSTEAMCC_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteamEU.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteamEU.cpp deleted file mode 100644 index 81aabc03d..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteamEU.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovSteamEU.cpp -// Implementation of the Class GovSteamEU -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "GovSteamEU.h" - -using IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamEU; - - -GovSteamEU::GovSteamEU(){ - -} - - - -GovSteamEU::~GovSteamEU(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteamEU.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteamEU.h deleted file mode 100644 index 956cbfb24..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteamEU.h +++ /dev/null @@ -1,186 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovSteamEU.h -// Implementation of the Class GovSteamEU -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef GOVSTEAMEU_H -#define GOVSTEAMEU_H - -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/ActivePower.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/TurbineGovernorDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace TurbineGovernorDynamics - { - /** - * Simplified model of boiler and steam turbine with PID governor. - */ - class GovSteamEU : public IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::TurbineGovernorDynamics - { - - public: - GovSteamEU(); - virtual ~GovSteamEU(); - /** - * Control valves rate closing limit (Chc). Unit = PU/sec. Typical Value = -3.3. - */ - IEC61970::Base::Domain::Float chc; - /** - * Control valves rate opening limit (Cho). Unit = PU/sec. Typical Value = 0.17. - */ - IEC61970::Base::Domain::Float cho; - /** - * Intercept valves rate closing limit (Cic). Typical Value = -2.2. - */ - IEC61970::Base::Domain::PU cic; - /** - * Intercept valves rate opening limit (Cio). Typical Value = 0.123. - */ - IEC61970::Base::Domain::PU cio; - /** - * Dead band of the frequency corrector (db1). Typical Value = 0. - */ - IEC61970::Base::Domain::PU db1; - /** - * Dead band of the speed governor (db2). Typical Value = 0.0004. - */ - IEC61970::Base::Domain::PU db2; - /** - * Maximum control valve position (Hhpmax). Typical Value = 1. - */ - IEC61970::Base::Domain::PU hhpmax; - /** - * Gain of the power controller (Ke). Typical Value = 0.65. - */ - IEC61970::Base::Domain::PU ke; - /** - * Gain of the frequency corrector (Kfcor). Typical Value = 20. - */ - IEC61970::Base::Domain::PU kfcor; - /** - * Fraction of total turbine output generated by HP part (Khp). Typical Value = 0. - * 277. - */ - IEC61970::Base::Domain::PU khp; - /** - * Fraction of total turbine output generated by HP part (Klp). Typical Value = 0. - * 723. - */ - IEC61970::Base::Domain::PU klp; - /** - * Gain of the speed governor (Kwcor). Typical Value = 20. - */ - IEC61970::Base::Domain::PU kwcor; - /** - * Base for power values (MWbase) (>0). Unit = MW. - */ - IEC61970::Base::Domain::ActivePower mwbase; - /** - * Maximal active power of the turbine (Pmax). Typical Value = 1. - */ - IEC61970::Base::Domain::PU pmax; - /** - * Maximum low pressure limit (Prhmax). Typical Value = 1.4. - */ - IEC61970::Base::Domain::PU prhmax; - /** - * Intercept valves transfer limit (Simx). Typical Value = 0.425. - */ - IEC61970::Base::Domain::PU simx; - /** - * Boiler time constant (Tb). Typical Value = 100. - */ - IEC61970::Base::Domain::Seconds tb; - /** - * Derivative time constant of the power controller (Tdp). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tdp; - /** - * Electro hydraulic transducer (Ten). Typical Value = 0.1. - */ - IEC61970::Base::Domain::Seconds ten; - /** - * Frequency transducer time constant (Tf). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tf; - /** - * Time constant of the power controller (Tfp). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tfp; - /** - * High pressure (HP) time constant of the turbine (Thp). Typical Value = 0.31. - */ - IEC61970::Base::Domain::Seconds thp; - /** - * Integral time constant of the power controller (Tip). Typical Value = 2. - */ - IEC61970::Base::Domain::Seconds tip; - /** - * Low pressure(LP) time constant of the turbine (Tlp). Typical Value = 0.45. - */ - IEC61970::Base::Domain::Seconds tlp; - /** - * Power transducer time constant (Tp). Typical Value = 0.07. - */ - IEC61970::Base::Domain::Seconds tp; - /** - * Reheater time constant of the turbine (Trh). Typical Value = 8. - */ - IEC61970::Base::Domain::Seconds trh; - /** - * Control valves servo time constant (Tvhp). Typical Value = 0.1. - */ - IEC61970::Base::Domain::Seconds tvhp; - /** - * Intercept valves servo time constant (Tvip). Typical Value = 0.15. - */ - IEC61970::Base::Domain::Seconds tvip; - /** - * Speed transducer time constant (Tw). Typical Value = 0.02. - */ - IEC61970::Base::Domain::Seconds tw; - /** - * Upper limit for frequency correction (Wfmax). Typical Value = 0.05. - */ - IEC61970::Base::Domain::PU wfmax; - /** - * Lower limit for frequency correction (Wfmin). Typical Value = -0.05. - */ - IEC61970::Base::Domain::PU wfmin; - /** - * Emergency speed control lower limit (wmax1). Typical Value = 1.025. - */ - IEC61970::Base::Domain::PU wmax1; - /** - * Emergency speed control upper limit (wmax2). Typical Value = 1.05. - */ - IEC61970::Base::Domain::PU wmax2; - /** - * Upper limit for the speed governor (Wwmax). Typical Value = 0.1. - */ - IEC61970::Base::Domain::PU wwmax; - /** - * Lower limit for the speed governor frequency correction (Wwmin). Typical Value - * = -1. - */ - IEC61970::Base::Domain::PU wwmin; - - }; - - } - - } - - } - -} -#endif // GOVSTEAMEU_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteamFV2.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteamFV2.cpp deleted file mode 100644 index bb00746a6..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteamFV2.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovSteamFV2.cpp -// Implementation of the Class GovSteamFV2 -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "GovSteamFV2.h" - -using IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV2; - - -GovSteamFV2::GovSteamFV2(){ - -} - - - -GovSteamFV2::~GovSteamFV2(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteamFV2.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteamFV2.h deleted file mode 100644 index 422d3045f..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteamFV2.h +++ /dev/null @@ -1,97 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovSteamFV2.h -// Implementation of the Class GovSteamFV2 -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef GOVSTEAMFV2_H -#define GOVSTEAMFV2_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/ActivePower.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/TurbineGovernorDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace TurbineGovernorDynamics - { - /** - * Steam turbine governor with reheat time constants and modeling of the effects - * of fast valve closing to reduce mechanical power. - */ - class GovSteamFV2 : public IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::TurbineGovernorDynamics - { - - public: - GovSteamFV2(); - virtual ~GovSteamFV2(); - /** - * (Dt). - */ - IEC61970::Base::Domain::PU dt; - /** - * Fraction of the turbine power developed by turbine sections not involved in - * fast valving (K). - */ - IEC61970::Base::Domain::PU k; - /** - * Alternate Base used instead of Machine base in equipment model if necessary - * (MWbase) (>0). Unit = MW. - */ - IEC61970::Base::Domain::ActivePower mwbase; - /** - * (R). - */ - IEC61970::Base::Domain::PU r; - /** - * Governor time constant (T1). - */ - IEC61970::Base::Domain::Seconds t1; - /** - * Reheater time constant (T3). - */ - IEC61970::Base::Domain::Seconds t3; - /** - * Time after initial time for valve to close (Ta). - */ - IEC61970::Base::Domain::Seconds ta; - /** - * Time after initial time for valve to begin opening (Tb). - */ - IEC61970::Base::Domain::Seconds tb; - /** - * Time after initial time for valve to become fully open (Tc). - */ - IEC61970::Base::Domain::Seconds tc; - /** - * Initial time to begin fast valving (Ti). - */ - IEC61970::Base::Domain::Seconds ti; - /** - * Time constant with which power falls off after intercept valve closure (Tt). - */ - IEC61970::Base::Domain::Seconds tt; - /** - * (Vmax). - */ - IEC61970::Base::Domain::PU vmax; - /** - * (Vmin). - */ - IEC61970::Base::Domain::PU vmin; - - }; - - } - - } - - } - -} -#endif // GOVSTEAMFV2_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteamFV3.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteamFV3.cpp deleted file mode 100644 index f4c6f9494..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteamFV3.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovSteamFV3.cpp -// Implementation of the Class GovSteamFV3 -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "GovSteamFV3.h" - -using IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV3; - - -GovSteamFV3::GovSteamFV3(){ - -} - - - -GovSteamFV3::~GovSteamFV3(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteamFV3.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteamFV3.h deleted file mode 100644 index bdea62778..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteamFV3.h +++ /dev/null @@ -1,123 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovSteamFV3.h -// Implementation of the Class GovSteamFV3 -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef GOVSTEAMFV3_H -#define GOVSTEAMFV3_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/ActivePower.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/TurbineGovernorDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace TurbineGovernorDynamics - { - /** - * Simplified GovSteamIEEE1 Steam turbine governor model with Prmax limit and fast - * valving. - */ - class GovSteamFV3 : public IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::TurbineGovernorDynamics - { - - public: - GovSteamFV3(); - virtual ~GovSteamFV3(); - /** - * Governor gain, (reciprocal of droop) (K). Typical Value = 20. - */ - IEC61970::Base::Domain::PU k; - /** - * Fraction of turbine power developed after first boiler pass (K1). Typical - * Value = 0.2. - */ - IEC61970::Base::Domain::PU k1; - /** - * Fraction of turbine power developed after second boiler pass (K2). Typical - * Value = 0.2. - */ - IEC61970::Base::Domain::PU k2; - /** - * Fraction of hp turbine power developed after crossover or third boiler pass - * (K3). Typical Value = 0.6. - */ - IEC61970::Base::Domain::PU k3; - /** - * Base for power values (MWbase) (>0). Unit = MW. - */ - IEC61970::Base::Domain::ActivePower mwbase; - /** - * Maximum valve opening, PU of MWbase (Pmax). Typical Value = 1. - */ - IEC61970::Base::Domain::PU pmax; - /** - * Minimum valve opening, PU of MWbase (Pmin). Typical Value = 0. - */ - IEC61970::Base::Domain::PU pmin; - /** - * Max. pressure in reheater (Prmax). Typical Value = 1. - */ - IEC61970::Base::Domain::PU prmax; - /** - * Governor lead time constant (T1). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds t1; - /** - * Governor lag time constant (T2). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds t2; - /** - * Valve positioner time constant (T3). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds t3; - /** - * Inlet piping/steam bowl time constant (T4). Typical Value = 0.2. - */ - IEC61970::Base::Domain::Seconds t4; - /** - * Time constant of second boiler pass (i.e. reheater) (T5). Typical Value = 0.5. - */ - IEC61970::Base::Domain::Seconds t5; - /** - * Time constant of crossover or third boiler pass (T6). Typical Value = 10. - */ - IEC61970::Base::Domain::Seconds t6; - /** - * Time to close intercept valve (IV) (Ta). Typical Value = 0.97. - */ - IEC61970::Base::Domain::Seconds ta; - /** - * Time until IV starts to reopen (Tb). Typical Value = 0.98. - */ - IEC61970::Base::Domain::Seconds tb; - /** - * Time until IV is fully open (Tc). Typical Value = 0.99. - */ - IEC61970::Base::Domain::Seconds tc; - /** - * Maximum valve closing velocity (Uc). Unit = PU/sec. Typical Value = -1. - */ - IEC61970::Base::Domain::Float uc; - /** - * Maximum valve opening velocity (Uo). Unit = PU/sec. Typical Value = 0.1. - */ - IEC61970::Base::Domain::Float uo; - - }; - - } - - } - - } - -} -#endif // GOVSTEAMFV3_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteamFV4.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteamFV4.cpp deleted file mode 100644 index 1de077c9c..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteamFV4.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovSteamFV4.cpp -// Implementation of the Class GovSteamFV4 -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#include "GovSteamFV4.h" - -using IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV4; - - -GovSteamFV4::GovSteamFV4(){ - -} - - - -GovSteamFV4::~GovSteamFV4(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteamFV4.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteamFV4.h deleted file mode 100644 index 523167704..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteamFV4.h +++ /dev/null @@ -1,255 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovSteamFV4.h -// Implementation of the Class GovSteamFV4 -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#ifndef GOVSTEAMFV4_H -#define GOVSTEAMFV4_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/TurbineGovernorDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace TurbineGovernorDynamics - { - /** - * Detailed electro-hydraulic governor for steam unit. - */ - class GovSteamFV4 : public IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::TurbineGovernorDynamics - { - - public: - GovSteamFV4(); - virtual ~GovSteamFV4(); - /** - * Minimum value of pressure regulator output (Cpsmn). Typical Value = -1. - */ - IEC61970::Base::Domain::PU cpsmn; - /** - * Maximum value of pressure regulator output (Cpsmx). Typical Value = 1. - */ - IEC61970::Base::Domain::PU cpsmx; - /** - * Minimum value of regulator set-point (Crmn). Typical Value = 0. - */ - IEC61970::Base::Domain::PU crmn; - /** - * Maximum value of regulator set-point (Crmx). Typical Value = 1.2. - */ - IEC61970::Base::Domain::PU crmx; - /** - * Derivative gain of pressure regulator (Kdc). Typical Value = 1. - */ - IEC61970::Base::Domain::PU kdc; - /** - * Frequency bias (reciprocal of droop) (Kf1). Typical Value = 20. - */ - IEC61970::Base::Domain::PU kf1; - /** - * Frequency control (reciprocal of droop) (Kf3). Typical Value = 20. - */ - IEC61970::Base::Domain::PU kf3; - /** - * Fraction of total turbine output generated by HP part (Khp). Typical Value = - * 0.35. - */ - IEC61970::Base::Domain::PU khp; - /** - * Integral gain of pressure regulator (Kic). Typical Value = 0.0033. - */ - IEC61970::Base::Domain::PU kic; - /** - * Integral gain of pressure feedback regulator (Kip). Typical Value = 0.5. - */ - IEC61970::Base::Domain::PU kip; - /** - * Integral gain of electro-hydraulic regulator (Kit). Typical Value = 0.04. - */ - IEC61970::Base::Domain::PU kit; - /** - * First gain coefficient of intercept valves characteristic (Kmp1). Typical - * Value = 0.5. - */ - IEC61970::Base::Domain::PU kmp1; - /** - * Second gain coefficient of intercept valves characteristic (Kmp2). Typical - * Value = 3.5. - */ - IEC61970::Base::Domain::PU kmp2; - /** - * Proportional gain of pressure regulator (Kpc). Typical Value = 0.5. - */ - IEC61970::Base::Domain::PU kpc; - /** - * Proportional gain of pressure feedback regulator (Kpp). Typical Value = 1. - */ - IEC61970::Base::Domain::PU kpp; - /** - * Proportional gain of electro-hydraulic regulator (Kpt). Typical Value = 0.3. - */ - IEC61970::Base::Domain::PU kpt; - /** - * Maximum variation of fuel flow (Krc). Typical Value = 0.05. - */ - IEC61970::Base::Domain::PU krc; - /** - * Pressure loss due to flow friction in the boiler tubes (Ksh). Typical Value = - * 0.08. - */ - IEC61970::Base::Domain::PU ksh; - /** - * Maximum negative power error (Lpi). Typical Value = -0.15. - */ - IEC61970::Base::Domain::PU lpi; - /** - * Maximum positive power error (Lps). Typical Value = 0.03. - */ - IEC61970::Base::Domain::PU lps; - /** - * Lower limit for frequency correction (MNEF). Typical Value = -0.05. - */ - IEC61970::Base::Domain::PU mnef; - /** - * Upper limit for frequency correction (MXEF). Typical Value = 0.05. - */ - IEC61970::Base::Domain::PU mxef; - /** - * First value of pressure set point static characteristic (Pr1). Typical Value = - * 0.2. - */ - IEC61970::Base::Domain::PU pr1; - /** - * Second value of pressure set point static characteristic, corresponding to Ps0 - * = 1.0 PU (Pr2). Typical Value = 0.75. - */ - IEC61970::Base::Domain::PU pr2; - /** - * Minimum value of pressure set point static characteristic (Psmn). Typical - * Value = 1. - */ - IEC61970::Base::Domain::PU psmn; - /** - * Minimum value of integral regulator (Rsmimn). Typical Value = 0. - */ - IEC61970::Base::Domain::PU rsmimn; - /** - * Maximum value of integral regulator (Rsmimx). Typical Value = 1.1. - */ - IEC61970::Base::Domain::PU rsmimx; - /** - * Minimum value of integral regulator (Rvgmn). Typical Value = 0. - */ - IEC61970::Base::Domain::PU rvgmn; - /** - * Maximum value of integral regulator (Rvgmx). Typical Value = 1.2. - */ - IEC61970::Base::Domain::PU rvgmx; - /** - * Minimum valve opening (Srmn). Typical Value = 0. - */ - IEC61970::Base::Domain::PU srmn; - /** - * Maximum valve opening (Srmx). Typical Value = 1.1. - */ - IEC61970::Base::Domain::PU srmx; - /** - * Intercept valves characteristic discontinuity point (Srsmp). Typical Value = 0. - * 43. - */ - IEC61970::Base::Domain::PU srsmp; - /** - * Maximum regulator gate closing velocity (Svmn). Typical Value = -0.0333. - */ - IEC61970::Base::Domain::Float svmn; - /** - * Maximum regulator gate opening velocity (Svmx). Typical Value = 0.0333. - */ - IEC61970::Base::Domain::Float svmx; - /** - * Control valves rate opening time (Ta). Typical Value = 0.8. - */ - IEC61970::Base::Domain::Seconds ta; - /** - * Intercept valves rate opening time (Tam). Typical Value = 0.8. - */ - IEC61970::Base::Domain::Seconds tam; - /** - * Control valves rate closing time (Tc). Typical Value = 0.5. - */ - IEC61970::Base::Domain::Seconds tc; - /** - * Intercept valves rate closing time (Tcm). Typical Value = 0.5. - */ - IEC61970::Base::Domain::Seconds tcm; - /** - * Derivative time constant of pressure regulator (Tdc). Typical Value = 90. - */ - IEC61970::Base::Domain::Seconds tdc; - /** - * Time constant of fuel regulation (Tf1). Typical Value = 10. - */ - IEC61970::Base::Domain::Seconds tf1; - /** - * Time constant of steam chest (Tf2). Typical Value = 10. - */ - IEC61970::Base::Domain::Seconds tf2; - /** - * High pressure (HP) time constant of the turbine (Thp). Typical Value = 0.15. - */ - IEC61970::Base::Domain::Seconds thp; - /** - * Low pressure (LP) time constant of the turbine (Tmp). Typical Value = 0.4. - */ - IEC61970::Base::Domain::Seconds tmp; - /** - * Reheater time constant of the turbine (Trh). Typical Value = 10. - */ - IEC61970::Base::Domain::Seconds trh; - /** - * Boiler time constant (Tv). Typical Value = 60. - */ - IEC61970::Base::Domain::Seconds tv; - /** - * Control valves servo time constant (Ty). Typical Value = 0.1. - */ - IEC61970::Base::Domain::Seconds ty; - /** - * Coefficient of linearized equations of turbine (Stodola formulation) (Y). - * Typical Value = 0.13. - */ - IEC61970::Base::Domain::PU y; - /** - * Minimum control valve position (Yhpmn). Typical Value = 0. - */ - IEC61970::Base::Domain::PU yhpmn; - /** - * Maximum control valve position (Yhpmx). Typical Value = 1.1. - */ - IEC61970::Base::Domain::PU yhpmx; - /** - * Minimum intercept valve position (Ympmn). Typical Value = 0. - */ - IEC61970::Base::Domain::PU ympmn; - /** - * Maximum intercept valve position (Ympmx). Typical Value = 1.1. - */ - IEC61970::Base::Domain::PU ympmx; - - }; - - } - - } - - } - -} -#endif // GOVSTEAMFV4_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteamIEEE1.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteamIEEE1.cpp deleted file mode 100644 index 6cc02a224..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteamIEEE1.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovSteamIEEE1.cpp -// Implementation of the Class GovSteamIEEE1 -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "GovSteamIEEE1.h" - -using IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamIEEE1; - - -GovSteamIEEE1::GovSteamIEEE1(){ - -} - - - -GovSteamIEEE1::~GovSteamIEEE1(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteamIEEE1.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteamIEEE1.h deleted file mode 100644 index 541b609ac..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteamIEEE1.h +++ /dev/null @@ -1,155 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovSteamIEEE1.h -// Implementation of the Class GovSteamIEEE1 -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef GOVSTEAMIEEE1_H -#define GOVSTEAMIEEE1_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/ActivePower.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/TurbineGovernorDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace TurbineGovernorDynamics - { - /** - * IEEE steam turbine governor model. - * - * Reference: IEEE Transactions on Power Apparatus and - * Systems - * November/December 1973, Volume PAS-92, Number 6 - * Dynamic Models for Steam and Hydro Turbines in - * Power System Studies, Page 1904. - * - * Parameter Notes: - *
    - *
  1. Per unit parameters are on base of MWbase, which is normally the MW - * capability of the turbine.
  2. - *
  3. T3 must be greater than zero. All other time constants may be zero. - *
  4. - *
  5. For a tandem-compound turbine the parameters K2, K4, - * K6, and K8 are ignored. For a cross-compound turbine, two - * generators are connected to this turbine-governor model.
  6. - *
  7. Each generator must be represented in the load flow by data on its own MVA - * base. The values of K1, K3, K5, K7 must be - * specified to describe the proportionate development of power on the first - * turbine shaft. K2, K4, K6, K8 must describe the - * second turbine shaft. Normally K1 + K3 + K5 + K7 = - * 1.0 and K2 + K4 + K6 + K8 = 1.0 (if second - * generator is present).
  8. - *
  9. The division of power between the two shafts is in proportion to the - * values of MVA bases of the two generators. The initial condition load flow - * should, therefore, have the two generators loaded to the same fraction of each - * one’s MVA base.
  10. - *
- */ - class GovSteamIEEE1 : public IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::TurbineGovernorDynamics - { - - public: - GovSteamIEEE1(); - virtual ~GovSteamIEEE1(); - /** - * Governor gain (reciprocal of droop) (K) (> 0). Typical Value = 25. - */ - IEC61970::Base::Domain::PU k; - /** - * Fraction of HP shaft power after first boiler pass (K1). Typical Value = 0.2. - */ - IEC61970::Base::Domain::Float k1; - /** - * Fraction of LP shaft power after first boiler pass (K2). Typical Value = 0. - */ - IEC61970::Base::Domain::Float k2; - /** - * Fraction of HP shaft power after second boiler pass (K3). Typical Value = 0.3. - */ - IEC61970::Base::Domain::Float k3; - /** - * Fraction of LP shaft power after second boiler pass (K4). Typical Value = 0. - */ - IEC61970::Base::Domain::Float k4; - /** - * Fraction of HP shaft power after third boiler pass (K5). Typical Value = 0.5. - */ - IEC61970::Base::Domain::Float k5; - /** - * Fraction of LP shaft power after third boiler pass (K6). Typical Value = 0. - */ - IEC61970::Base::Domain::Float k6; - /** - * Fraction of HP shaft power after fourth boiler pass (K7). Typical Value = 0. - */ - IEC61970::Base::Domain::Float k7; - /** - * Fraction of LP shaft power after fourth boiler pass (K8). Typical Value = 0. - */ - IEC61970::Base::Domain::Float k8; - /** - * Base for power values (MWbase) (> 0). - */ - IEC61970::Base::Domain::ActivePower mwbase; - /** - * Maximum valve opening (Pmax) (> Pmin). Typical Value = 1. - */ - IEC61970::Base::Domain::PU pmax; - /** - * Minimum valve opening (Pmin) (>= 0). Typical Value = 0. - */ - IEC61970::Base::Domain::PU pmin; - /** - * Governor lag time constant (T1). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds t1; - /** - * Governor lead time constant (T2). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds t2; - /** - * Valve positioner time constant (T3) (> 0). Typical Value = 0.1. - */ - IEC61970::Base::Domain::Seconds t3; - /** - * Inlet piping/steam bowl time constant (T4). Typical Value = 0.3. - */ - IEC61970::Base::Domain::Seconds t4; - /** - * Time constant of second boiler pass (T5). Typical Value = 5. - */ - IEC61970::Base::Domain::Seconds t5; - /** - * Time constant of third boiler pass (T6). Typical Value = 0.5. - */ - IEC61970::Base::Domain::Seconds t6; - /** - * Time constant of fourth boiler pass (T7). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds t7; - /** - * Maximum valve closing velocity (Uc) (< 0). Unit = PU/sec. Typical Value = -10. - */ - IEC61970::Base::Domain::Float uc; - /** - * Maximum valve opening velocity (Uo) (> 0). Unit = PU/sec. Typical Value = 1. - */ - IEC61970::Base::Domain::Float uo; - - }; - - } - - } - - } - -} -#endif // GOVSTEAMIEEE1_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteamSGO.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteamSGO.cpp deleted file mode 100644 index e81c62000..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteamSGO.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovSteamSGO.cpp -// Implementation of the Class GovSteamSGO -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "GovSteamSGO.h" - -using IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamSGO; - - -GovSteamSGO::GovSteamSGO(){ - -} - - - -GovSteamSGO::~GovSteamSGO(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteamSGO.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteamSGO.h deleted file mode 100644 index ac68a1f6d..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/GovSteamSGO.h +++ /dev/null @@ -1,91 +0,0 @@ -/////////////////////////////////////////////////////////// -// GovSteamSGO.h -// Implementation of the Class GovSteamSGO -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef GOVSTEAMSGO_H -#define GOVSTEAMSGO_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/ActivePower.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/TurbineGovernorDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace TurbineGovernorDynamics - { - /** - * Simplified Steam turbine governor model. - */ - class GovSteamSGO : public IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::TurbineGovernorDynamics - { - - public: - GovSteamSGO(); - virtual ~GovSteamSGO(); - /** - * One/per unit regulation (K1). - */ - IEC61970::Base::Domain::PU k1; - /** - * Fraction (K2). - */ - IEC61970::Base::Domain::PU k2; - /** - * Fraction (K3). - */ - IEC61970::Base::Domain::PU k3; - /** - * Base for power values (MWbase) (>0). Unit = MW. - */ - IEC61970::Base::Domain::ActivePower mwbase; - /** - * Upper power limit (Pmax). - */ - IEC61970::Base::Domain::PU pmax; - /** - * Lower power limit (Pmin). - */ - IEC61970::Base::Domain::Seconds pmin; - /** - * Controller lag (T1). - */ - IEC61970::Base::Domain::Seconds t1; - /** - * Controller lead compensation (T2). - */ - IEC61970::Base::Domain::Seconds t2; - /** - * Governor lag (T3) (>0). - */ - IEC61970::Base::Domain::Seconds t3; - /** - * Delay due to steam inlet volumes associated with steam chest and inlet piping - * (T4). - */ - IEC61970::Base::Domain::Seconds t4; - /** - * Reheater delay including hot and cold leads (T5). - */ - IEC61970::Base::Domain::Seconds t5; - /** - * Delay due to IP-LP turbine, crossover pipes and LP end hoods (T6). - */ - IEC61970::Base::Domain::Seconds t6; - - }; - - } - - } - - } - -} -#endif // GOVSTEAMSGO_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/TurbineGovernorDynamics.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/TurbineGovernorDynamics.cpp deleted file mode 100644 index 3f2602a14..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/TurbineGovernorDynamics.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// TurbineGovernorDynamics.cpp -// Implementation of the Class TurbineGovernorDynamics -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "TurbineGovernorDynamics.h" - -using IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::TurbineGovernorDynamics; - - -TurbineGovernorDynamics::TurbineGovernorDynamics() - : AsynchronousMachineDynamics(nullptr) -{ - -} - - - -TurbineGovernorDynamics::~TurbineGovernorDynamics(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/TurbineGovernorDynamics.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/TurbineGovernorDynamics.h deleted file mode 100644 index 1281a3745..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/TurbineGovernorDynamics.h +++ /dev/null @@ -1,46 +0,0 @@ -/////////////////////////////////////////////////////////// -// TurbineGovernorDynamics.h -// Implementation of the Class TurbineGovernorDynamics -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef TURBINEGOVERNORDYNAMICS_H -#define TURBINEGOVERNORDYNAMICS_H - -#include "IEC61970/Dynamics/StandardModels/AsynchronousMachineDynamics/AsynchronousMachineDynamics.h" -#include "IEC61970/Dynamics/StandardModels/DynamicsFunctionBlock.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace TurbineGovernorDynamics - { - /** - * Turbine-governor function block whose behavior is described by reference to a - * standard model or by definition of a user-defined model. - * - */ - class TurbineGovernorDynamics : public IEC61970::Dynamics::StandardModels::DynamicsFunctionBlock - { - - public: - TurbineGovernorDynamics(); - virtual ~TurbineGovernorDynamics(); - /** - * Asynchronous machine model with which this turbine-governor model is associated. - */ - IEC61970::Dynamics::StandardModels::AsynchronousMachineDynamics::AsynchronousMachineDynamics *AsynchronousMachineDynamics; - - }; - - } - - } - - } - -} -#endif // TURBINEGOVERNORDYNAMICS_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineLoadControllerDynamics/TurbLCFB1.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineLoadControllerDynamics/TurbLCFB1.cpp deleted file mode 100644 index b06ea975a..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineLoadControllerDynamics/TurbLCFB1.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// TurbLCFB1.cpp -// Implementation of the Class TurbLCFB1 -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#include "TurbLCFB1.h" - -using IEC61970::Dynamics::StandardModels::TurbineLoadControllerDynamics::TurbLCFB1; - - -TurbLCFB1::TurbLCFB1(){ - -} - - - -TurbLCFB1::~TurbLCFB1(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineLoadControllerDynamics/TurbLCFB1.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineLoadControllerDynamics/TurbLCFB1.h deleted file mode 100644 index 69fabfeb7..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineLoadControllerDynamics/TurbLCFB1.h +++ /dev/null @@ -1,104 +0,0 @@ -/////////////////////////////////////////////////////////// -// TurbLCFB1.h -// Implementation of the Class TurbLCFB1 -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#ifndef TURBLCFB1_H -#define TURBLCFB1_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Domain/ActivePower.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/TurbineLoadControllerDynamics/TurbineLoadControllerDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace TurbineLoadControllerDynamics - { - /** - * Turbine Load Controller model developed in the WECC. This model represents a - * supervisory turbine load controller that acts to maintain turbine power at a - * set value by continuous adjustment of the turbine governor speed-load reference. - * This model is intended to represent slow reset 'outer loop' controllers - * managing the action of the turbine governor. - */ - class TurbLCFB1 : public IEC61970::Dynamics::StandardModels::TurbineLoadControllerDynamics::TurbineLoadControllerDynamics - { - - public: - TurbLCFB1(); - virtual ~TurbLCFB1(); - /** - * Controller dead band (db). Typical Value = 0. - */ - IEC61970::Base::Domain::PU db; - /** - * Maximum control error (Emax) (note 4). Typical Value = 0.02. - */ - IEC61970::Base::Domain::PU emax; - /** - * Frequency bias gain (Fb). Typical Value = 0. - */ - IEC61970::Base::Domain::PU fb; - /** - * Frequency bias flag (Fbf). - * true = enable frequency bias - * false = disable frequency bias. - * Typical Value = false. - */ - IEC61970::Base::Domain::Boolean fbf; - /** - * Maximum turbine speed/load reference bias (Irmax) (note 3). Typical Value = 0. - */ - IEC61970::Base::Domain::PU irmax; - /** - * Integral gain (Ki). Typical Value = 0. - */ - IEC61970::Base::Domain::PU ki; - /** - * Proportional gain (Kp). Typical Value = 0. - */ - IEC61970::Base::Domain::PU kp; - /** - * Base for power values (MWbase) (>0). Unit = MW. - */ - IEC61970::Base::Domain::ActivePower mwbase; - /** - * Power controller flag (Pbf). - * true = enable load controller - * false = disable load controller. - * Typical Value = false. - */ - IEC61970::Base::Domain::Boolean pbf; - /** - * Power controller setpoint (Pmwset) (note 1). Unit = MW. Typical Value = 0. - */ - IEC61970::Base::Domain::ActivePower pmwset; - /** - * Type of turbine governor reference (Type). - * true = speed reference governor - * false = load reference governor. - * Typical Value = true. - */ - IEC61970::Base::Domain::Boolean speedReferenceGovernor; - /** - * Power transducer time constant (Tpelec). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tpelec; - - }; - - } - - } - - } - -} -#endif // TURBLCFB1_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineLoadControllerDynamics/TurbineLoadControllerDynamics.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineLoadControllerDynamics/TurbineLoadControllerDynamics.cpp deleted file mode 100644 index b85a10608..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineLoadControllerDynamics/TurbineLoadControllerDynamics.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// TurbineLoadControllerDynamics.cpp -// Implementation of the Class TurbineLoadControllerDynamics -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#include "TurbineLoadControllerDynamics.h" - -using IEC61970::Dynamics::StandardModels::TurbineLoadControllerDynamics::TurbineLoadControllerDynamics; - - -TurbineLoadControllerDynamics::TurbineLoadControllerDynamics() - : TurbineGovernorDynamics(nullptr) -{ - -} - - - -TurbineLoadControllerDynamics::~TurbineLoadControllerDynamics(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineLoadControllerDynamics/TurbineLoadControllerDynamics.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineLoadControllerDynamics/TurbineLoadControllerDynamics.h deleted file mode 100644 index 9dee0256a..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/TurbineLoadControllerDynamics/TurbineLoadControllerDynamics.h +++ /dev/null @@ -1,46 +0,0 @@ -/////////////////////////////////////////////////////////// -// TurbineLoadControllerDynamics.h -// Implementation of the Class TurbineLoadControllerDynamics -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#ifndef TURBINELOADCONTROLLERDYNAMICS_H -#define TURBINELOADCONTROLLERDYNAMICS_H - -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/TurbineGovernorDynamics.h" -#include "IEC61970/Dynamics/StandardModels/DynamicsFunctionBlock.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace TurbineLoadControllerDynamics - { - /** - * Turbine load controller function block whose behavior is described by reference - * to a standard model or by definition of a user-defined - * model. - */ - class TurbineLoadControllerDynamics : public IEC61970::Dynamics::StandardModels::DynamicsFunctionBlock - { - - public: - TurbineLoadControllerDynamics(); - virtual ~TurbineLoadControllerDynamics(); - /** - * Turbine-governor controlled by this turbine load controller. - */ - IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::TurbineGovernorDynamics *TurbineGovernorDynamics; - - }; - - } - - } - - } - -} -#endif // TURBINELOADCONTROLLERDYNAMICS_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/UnderexcitationLimiterDynamics/UnderexcLim2Simplified.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/UnderexcitationLimiterDynamics/UnderexcLim2Simplified.cpp deleted file mode 100644 index ee6bb17c7..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/UnderexcitationLimiterDynamics/UnderexcLim2Simplified.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// UnderexcLim2Simplified.cpp -// Implementation of the Class UnderexcLim2Simplified -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#include "UnderexcLim2Simplified.h" - -using IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLim2Simplified; - - -UnderexcLim2Simplified::UnderexcLim2Simplified(){ - -} - - - -UnderexcLim2Simplified::~UnderexcLim2Simplified(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/UnderexcitationLimiterDynamics/UnderexcLim2Simplified.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/UnderexcitationLimiterDynamics/UnderexcLim2Simplified.h deleted file mode 100644 index fae75c8cf..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/UnderexcitationLimiterDynamics/UnderexcLim2Simplified.h +++ /dev/null @@ -1,70 +0,0 @@ -/////////////////////////////////////////////////////////// -// UnderexcLim2Simplified.h -// Implementation of the Class UnderexcLim2Simplified -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#ifndef UNDEREXCLIM2SIMPLIFIED_H -#define UNDEREXCLIM2SIMPLIFIED_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Dynamics/StandardModels/UnderexcitationLimiterDynamics/UnderexcitationLimiterDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace UnderexcitationLimiterDynamics - { - /** - * This model can be derived from UnderexcLimIEEE2. - * The limit characteristic (look –up table) is a single straight-line, the same - * as UnderexcLimIEEE2 (see Figure 10.4 (p 32), IEEE 421.5-2005 Section 10.2). - */ - class UnderexcLim2Simplified : public IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcitationLimiterDynamics - { - - public: - UnderexcLim2Simplified(); - virtual ~UnderexcLim2Simplified(); - /** - * Gain Under excitation limiter (Kui). Typical Value = 0.1. - */ - IEC61970::Base::Domain::PU kui; - /** - * Segment P initial point (P0). Typical Value = 0. - */ - IEC61970::Base::Domain::PU p0; - /** - * Segment P end point (P1). Typical Value = 1. - */ - IEC61970::Base::Domain::PU p1; - /** - * Segment Q initial point (Q0). Typical Value = -0.31. - */ - IEC61970::Base::Domain::PU q0; - /** - * Segment Q end point (Q1). Typical Value = -0.1. - */ - IEC61970::Base::Domain::PU q1; - /** - * Maximum error signal (VUImax). Typical Value = 1. - */ - IEC61970::Base::Domain::PU vuimax; - /** - * Minimum error signal (VUImin). Typical Value = 0. - */ - IEC61970::Base::Domain::PU vuimin; - - }; - - } - - } - - } - -} -#endif // UNDEREXCLIM2SIMPLIFIED_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/UnderexcitationLimiterDynamics/UnderexcLimIEEE1.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/UnderexcitationLimiterDynamics/UnderexcLimIEEE1.cpp deleted file mode 100644 index bfbcb8b1f..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/UnderexcitationLimiterDynamics/UnderexcLimIEEE1.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// UnderexcLimIEEE1.cpp -// Implementation of the Class UnderexcLimIEEE1 -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#include "UnderexcLimIEEE1.h" - -using IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimIEEE1; - - -UnderexcLimIEEE1::UnderexcLimIEEE1(){ - -} - - - -UnderexcLimIEEE1::~UnderexcLimIEEE1(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/UnderexcitationLimiterDynamics/UnderexcLimIEEE1.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/UnderexcitationLimiterDynamics/UnderexcLimIEEE1.h deleted file mode 100644 index e273df6ae..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/UnderexcitationLimiterDynamics/UnderexcLimIEEE1.h +++ /dev/null @@ -1,106 +0,0 @@ -/////////////////////////////////////////////////////////// -// UnderexcLimIEEE1.h -// Implementation of the Class UnderexcLimIEEE1 -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#ifndef UNDEREXCLIMIEEE1_H -#define UNDEREXCLIMIEEE1_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/UnderexcitationLimiterDynamics/UnderexcitationLimiterDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace UnderexcitationLimiterDynamics - { - /** - * The class represents the Type UEL1 model which has a circular limit boundary - * when plotted in terms of machine reactive power vs. real power output. - * - * Reference: IEEE UEL1 421.5-2005 Section 10.1. - */ - class UnderexcLimIEEE1 : public IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcitationLimiterDynamics - { - - public: - UnderexcLimIEEE1(); - virtual ~UnderexcLimIEEE1(); - /** - * UEL center setting (KUC). Typical Value = 1.38. - */ - IEC61970::Base::Domain::PU kuc; - /** - * UEL excitation system stabilizer gain (KUF). Typical Value = 3.3. - */ - IEC61970::Base::Domain::PU kuf; - /** - * UEL integral gain (KUI). Typical Value = 0. - */ - IEC61970::Base::Domain::PU kui; - /** - * UEL proportional gain (KUL). Typical Value = 100. - */ - IEC61970::Base::Domain::PU kul; - /** - * UEL radius setting (KUR). Typical Value = 1.95. - */ - IEC61970::Base::Domain::PU kur; - /** - * UEL lead time constant (TU1). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tu1; - /** - * UEL lag time constant (TU2). Typical Value = 0.05. - */ - IEC61970::Base::Domain::Seconds tu2; - /** - * UEL lead time constant (TU3). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tu3; - /** - * UEL lag time constant (TU4). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tu4; - /** - * UEL maximum limit for operating point phasor magnitude (VUCMAX). - * Typical Value = 5.8. - */ - IEC61970::Base::Domain::PU vucmax; - /** - * UEL integrator output maximum limit (VUIMAX). - */ - IEC61970::Base::Domain::PU vuimax; - /** - * UEL integrator output minimum limit (VUIMIN). - */ - IEC61970::Base::Domain::PU vuimin; - /** - * UEL output maximum limit (VULMAX). Typical Value = 18. - */ - IEC61970::Base::Domain::PU vulmax; - /** - * UEL output minimum limit (VULMIN). Typical Value = -18. - */ - IEC61970::Base::Domain::PU vulmin; - /** - * UEL maximum limit for radius phasor magnitude (VURMAX). Typical - * Value = 5.8. - */ - IEC61970::Base::Domain::PU vurmax; - - }; - - } - - } - - } - -} -#endif // UNDEREXCLIMIEEE1_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/UnderexcitationLimiterDynamics/UnderexcLimIEEE2.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/UnderexcitationLimiterDynamics/UnderexcLimIEEE2.cpp deleted file mode 100644 index de1afb27d..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/UnderexcitationLimiterDynamics/UnderexcLimIEEE2.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// UnderexcLimIEEE2.cpp -// Implementation of the Class UnderexcLimIEEE2 -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#include "UnderexcLimIEEE2.h" - -using IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimIEEE2; - - -UnderexcLimIEEE2::UnderexcLimIEEE2(){ - -} - - - -UnderexcLimIEEE2::~UnderexcLimIEEE2(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/UnderexcitationLimiterDynamics/UnderexcLimIEEE2.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/UnderexcitationLimiterDynamics/UnderexcLimIEEE2.h deleted file mode 100644 index 3f2d76716..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/UnderexcitationLimiterDynamics/UnderexcLimIEEE2.h +++ /dev/null @@ -1,211 +0,0 @@ -/////////////////////////////////////////////////////////// -// UnderexcLimIEEE2.h -// Implementation of the Class UnderexcLimIEEE2 -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#ifndef UNDEREXCLIMIEEE2_H -#define UNDEREXCLIMIEEE2_H - -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/UnderexcitationLimiterDynamics/UnderexcitationLimiterDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace UnderexcitationLimiterDynamics - { - /** - * The class represents the Type UEL2 which has either a straight-line or multi- - * segment characteristic when plotted in terms of machine reactive power output - * vs. real power output. - * - * Reference: IEEE UEL2 421.5-2005 Section 10.2. (Limit characteristic lookup - * table shown in Figure 10.4 (p 32) of the standard). - */ - class UnderexcLimIEEE2 : public IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcitationLimiterDynamics - { - - public: - UnderexcLimIEEE2(); - virtual ~UnderexcLimIEEE2(); - /** - * UEL terminal voltage exponent applied to real power input to UEL limit look-up - * table (k1). Typical Value = 2. - */ - IEC61970::Base::Domain::Float k1; - /** - * UEL terminal voltage exponent applied to reactive power output from UEL limit - * look-up table (k2). Typical Value = 2. - */ - IEC61970::Base::Domain::Float k2; - /** - * Gain associated with optional integrator feedback input signal to UEL - * (KFB). Typical Value = 0. - */ - IEC61970::Base::Domain::PU kfb; - /** - * UEL excitation system stabilizer gain (KUF). Typical Value = 0. - */ - IEC61970::Base::Domain::PU kuf; - /** - * UEL integral gain (KUI). Typical Value = 0.5. - */ - IEC61970::Base::Domain::PU kui; - /** - * UEL proportional gain (KUL). Typical Value = 0.8. - */ - IEC61970::Base::Domain::PU kul; - /** - * Real power values for endpoints (P0). Typical Value = 0. - */ - IEC61970::Base::Domain::PU p0; - /** - * Real power values for endpoints (P1). Typical Value = 0.3. - */ - IEC61970::Base::Domain::PU p1; - /** - * Real power values for endpoints (P10). - */ - IEC61970::Base::Domain::PU p10; - /** - * Real power values for endpoints (P2). Typical Value = 0.6. - */ - IEC61970::Base::Domain::PU p2; - /** - * Real power values for endpoints (P3). Typical Value = 0.9. - */ - IEC61970::Base::Domain::PU p3; - /** - * Real power values for endpoints (P4). Typical Value = 1.02. - */ - IEC61970::Base::Domain::PU p4; - /** - * Real power values for endpoints (P5). - */ - IEC61970::Base::Domain::PU p5; - /** - * Real power values for endpoints (P6). - */ - IEC61970::Base::Domain::PU p6; - /** - * Real power values for endpoints (P7). - */ - IEC61970::Base::Domain::PU p7; - /** - * Real power values for endpoints (P8). - */ - IEC61970::Base::Domain::PU p8; - /** - * Real power values for endpoints (P9). - */ - IEC61970::Base::Domain::PU p9; - /** - * Reactive power values for endpoints (Q0). Typical Value = -0.31. - */ - IEC61970::Base::Domain::PU q0; - /** - * Reactive power values for endpoints (Q1). Typical Value = -0.31. - */ - IEC61970::Base::Domain::PU q1; - /** - * Reactive power values for endpoints (Q10). - */ - IEC61970::Base::Domain::PU q10; - /** - * Reactive power values for endpoints (Q2). Typical Value = -0.28. - */ - IEC61970::Base::Domain::PU q2; - /** - * Reactive power values for endpoints (Q3). Typical Value = -0.21. - */ - IEC61970::Base::Domain::PU q3; - /** - * Reactive power values for endpoints (Q4). Typical Value = 0. - */ - IEC61970::Base::Domain::PU q4; - /** - * Reactive power values for endpoints (Q5). - */ - IEC61970::Base::Domain::PU q5; - /** - * Reactive power values for endpoints (Q6). - */ - IEC61970::Base::Domain::PU q6; - /** - * Reactive power values for endpoints (Q7). - */ - IEC61970::Base::Domain::PU q7; - /** - * Reactive power values for endpoints (Q8). - */ - IEC61970::Base::Domain::PU q8; - /** - * Reactive power values for endpoints (Q9). - */ - IEC61970::Base::Domain::PU q9; - /** - * UEL lead time constant (TU1). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tu1; - /** - * UEL lag time constant (TU2). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tu2; - /** - * UEL lead time constant (TU3). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tu3; - /** - * UEL lag time constant (TU4). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tu4; - /** - * Time constant associated with optional integrator feedback input signal to UEL - * (TUL). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tul; - /** - * Real power filter time constant (TUP). Typical Value = 5. - */ - IEC61970::Base::Domain::Seconds tup; - /** - * Reactive power filter time constant (TUQ). Typical Value = 0. - */ - IEC61970::Base::Domain::Seconds tuq; - /** - * Voltage filter time constant (TUV). Typical Value = 5. - */ - IEC61970::Base::Domain::Seconds tuv; - /** - * UEL integrator output maximum limit (VUIMAX). Typical Value = 0.25. - */ - IEC61970::Base::Domain::PU vuimax; - /** - * UEL integrator output minimum limit (VUIMIN). Typical Value = 0. - */ - IEC61970::Base::Domain::PU vuimin; - /** - * UEL output maximum limit (VULMAX). Typical Value = 0.25. - */ - IEC61970::Base::Domain::PU vulmax; - /** - * UEL output minimum limit (VULMIN). Typical Value = 0. - */ - IEC61970::Base::Domain::PU vulmin; - - }; - - } - - } - - } - -} -#endif // UNDEREXCLIMIEEE2_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/UnderexcitationLimiterDynamics/UnderexcLimX1.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/UnderexcitationLimiterDynamics/UnderexcLimX1.cpp deleted file mode 100644 index 6ac016088..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/UnderexcitationLimiterDynamics/UnderexcLimX1.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// UnderexcLimX1.cpp -// Implementation of the Class UnderexcLimX1 -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#include "UnderexcLimX1.h" - -using IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimX1; - - -UnderexcLimX1::UnderexcLimX1(){ - -} - - - -UnderexcLimX1::~UnderexcLimX1(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/UnderexcitationLimiterDynamics/UnderexcLimX1.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/UnderexcitationLimiterDynamics/UnderexcLimX1.h deleted file mode 100644 index 040ca7c0f..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/UnderexcitationLimiterDynamics/UnderexcLimX1.h +++ /dev/null @@ -1,65 +0,0 @@ -/////////////////////////////////////////////////////////// -// UnderexcLimX1.h -// Implementation of the Class UnderexcLimX1 -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#ifndef UNDEREXCLIMX1_H -#define UNDEREXCLIMX1_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/UnderexcitationLimiterDynamics/UnderexcitationLimiterDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace UnderexcitationLimiterDynamics - { - /** - * Allis-Chalmers minimum excitation limiter. - */ - class UnderexcLimX1 : public IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcitationLimiterDynamics - { - - public: - UnderexcLimX1(); - virtual ~UnderexcLimX1(); - /** - * Minimum excitation limit slope (K) (>0). - */ - IEC61970::Base::Domain::PU k; - /** - * Differential gain (Kf2). - */ - IEC61970::Base::Domain::PU kf2; - /** - * Minimum excitation limit gain (Km). - */ - IEC61970::Base::Domain::PU km; - /** - * Minimum excitation limit value (MELMAX). - */ - IEC61970::Base::Domain::PU melmax; - /** - * Differential time constant (Tf2) (>0). - */ - IEC61970::Base::Domain::Seconds tf2; - /** - * Minimum excitation limit time constant (Tm). - */ - IEC61970::Base::Domain::Seconds tm; - - }; - - } - - } - - } - -} -#endif // UNDEREXCLIMX1_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/UnderexcitationLimiterDynamics/UnderexcLimX2.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/UnderexcitationLimiterDynamics/UnderexcLimX2.cpp deleted file mode 100644 index 13eb76eb4..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/UnderexcitationLimiterDynamics/UnderexcLimX2.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// UnderexcLimX2.cpp -// Implementation of the Class UnderexcLimX2 -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#include "UnderexcLimX2.h" - -using IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimX2; - - -UnderexcLimX2::UnderexcLimX2(){ - -} - - - -UnderexcLimX2::~UnderexcLimX2(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/UnderexcitationLimiterDynamics/UnderexcLimX2.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/UnderexcitationLimiterDynamics/UnderexcLimX2.h deleted file mode 100644 index a898cd1ec..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/UnderexcitationLimiterDynamics/UnderexcLimX2.h +++ /dev/null @@ -1,69 +0,0 @@ -/////////////////////////////////////////////////////////// -// UnderexcLimX2.h -// Implementation of the Class UnderexcLimX2 -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#ifndef UNDEREXCLIMX2_H -#define UNDEREXCLIMX2_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/UnderexcitationLimiterDynamics/UnderexcitationLimiterDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace UnderexcitationLimiterDynamics - { - /** - * Westinghouse minimum excitation limiter. - */ - class UnderexcLimX2 : public IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcitationLimiterDynamics - { - - public: - UnderexcLimX2(); - virtual ~UnderexcLimX2(); - /** - * Differential gain (Kf2). - */ - IEC61970::Base::Domain::PU kf2; - /** - * Minimum excitation limit gain (Km). - */ - IEC61970::Base::Domain::PU km; - /** - * Minimum excitation limit value (MELMAX). - */ - IEC61970::Base::Domain::PU melmax; - /** - * Excitation center setting (Qo). - */ - IEC61970::Base::Domain::PU qo; - /** - * Excitation radius (R). - */ - IEC61970::Base::Domain::PU r; - /** - * Differential time constant (Tf2) (>0). - */ - IEC61970::Base::Domain::Seconds tf2; - /** - * Minimum excitation limit time constant (Tm). - */ - IEC61970::Base::Domain::Seconds tm; - - }; - - } - - } - - } - -} -#endif // UNDEREXCLIMX2_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/UnderexcitationLimiterDynamics/UnderexcitationLimiterDynamics.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/UnderexcitationLimiterDynamics/UnderexcitationLimiterDynamics.cpp deleted file mode 100644 index e9fbcfb6c..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/UnderexcitationLimiterDynamics/UnderexcitationLimiterDynamics.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// UnderexcitationLimiterDynamics.cpp -// Implementation of the Class UnderexcitationLimiterDynamics -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#include "UnderexcitationLimiterDynamics.h" - -using IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcitationLimiterDynamics; - - -UnderexcitationLimiterDynamics::UnderexcitationLimiterDynamics() - : ExcitationSystemDynamics(nullptr), RemoteInputSignal(nullptr) -{ - -} - - - -UnderexcitationLimiterDynamics::~UnderexcitationLimiterDynamics(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/UnderexcitationLimiterDynamics/UnderexcitationLimiterDynamics.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/UnderexcitationLimiterDynamics/UnderexcitationLimiterDynamics.h deleted file mode 100644 index 30a5e7cb7..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/UnderexcitationLimiterDynamics/UnderexcitationLimiterDynamics.h +++ /dev/null @@ -1,52 +0,0 @@ -/////////////////////////////////////////////////////////// -// UnderexcitationLimiterDynamics.h -// Implementation of the Class UnderexcitationLimiterDynamics -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#ifndef UNDEREXCITATIONLIMITERDYNAMICS_H -#define UNDEREXCITATIONLIMITERDYNAMICS_H - -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" -#include "IEC61970/Dynamics/StandardModels/DynamicsFunctionBlock.h" -#include "IEC61970/Dynamics/StandardInterconnections/RemoteInputSignal.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace UnderexcitationLimiterDynamics - { - /** - * Underexcitation limiter function block whose behaviour is described by - * reference to a standard model or by definition of a user- - * defined model. - */ - class UnderexcitationLimiterDynamics : public IEC61970::Dynamics::StandardModels::DynamicsFunctionBlock - { - - public: - UnderexcitationLimiterDynamics(); - virtual ~UnderexcitationLimiterDynamics(); - /** - * Excitation system model with which this underexcitation limiter model is - * associated. - */ - IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics *ExcitationSystemDynamics; - /** - * Remote input signal used by this underexcitation limiter model. - */ - IEC61970::Dynamics::StandardInterconnections::RemoteInputSignal *RemoteInputSignal; - - }; - - } - - } - - } - -} -#endif // UNDEREXCITATIONLIMITERDYNAMICS_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/VoltageAdjusterDynamics/VAdjIEEE.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/VoltageAdjusterDynamics/VAdjIEEE.cpp deleted file mode 100644 index 3771f0ae9..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/VoltageAdjusterDynamics/VAdjIEEE.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// VAdjIEEE.cpp -// Implementation of the Class VAdjIEEE -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#include "VAdjIEEE.h" - -using IEC61970::Dynamics::StandardModels::VoltageAdjusterDynamics::VAdjIEEE; - - -VAdjIEEE::VAdjIEEE(){ - -} - - - -VAdjIEEE::~VAdjIEEE(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/VoltageAdjusterDynamics/VAdjIEEE.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/VoltageAdjusterDynamics/VAdjIEEE.h deleted file mode 100644 index 365f505b1..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/VoltageAdjusterDynamics/VAdjIEEE.h +++ /dev/null @@ -1,75 +0,0 @@ -/////////////////////////////////////////////////////////// -// VAdjIEEE.h -// Implementation of the Class VAdjIEEE -// Original author: pcha006 -/////////////////////////////////////////////////////////// - -#ifndef VADJIEEE_H -#define VADJIEEE_H - -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Dynamics/StandardModels/VoltageAdjusterDynamics/VoltageAdjusterDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace VoltageAdjusterDynamics - { - /** - * The class represents IEEE Voltage Adjuster which is used to represent the - * voltage adjuster in either a power factor or var control system. - * - * Reference: IEEE Standard 421.5-2005 Section 11.1. - */ - class VAdjIEEE : public IEC61970::Dynamics::StandardModels::VoltageAdjusterDynamics::VoltageAdjusterDynamics - { - - public: - VAdjIEEE(); - virtual ~VAdjIEEE(); - /** - * Rate at which output of adjuster changes (ADJ_SLEW). Unit = sec./PU. - * Typical Value = 300. - */ - IEC61970::Base::Domain::Float adjslew; - /** - * Time that adjuster pulses are off (TAOFF). Typical - * Value = 0.5. - */ - IEC61970::Base::Domain::Seconds taoff; - /** - * Time that adjuster pulses are on (TAON). Typical - * Value = 0.1. - */ - IEC61970::Base::Domain::Seconds taon; - /** - * Set high to provide a continuous raise or lower - * (VADJF). - */ - IEC61970::Base::Domain::Float vadjf; - /** - * Maximum output of the adjuster (VADJMAX). Typical - * Value = 1.1. - */ - IEC61970::Base::Domain::PU vadjmax; - /** - * Minimum output of the adjuster (VADJMIN). Typical - * Value = 0.9. - */ - IEC61970::Base::Domain::PU vadjmin; - - }; - - } - - } - - } - -} -#endif // VADJIEEE_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/VoltageAdjusterDynamics/VoltageAdjusterDynamics.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/VoltageAdjusterDynamics/VoltageAdjusterDynamics.cpp deleted file mode 100644 index bcf4c10ac..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/VoltageAdjusterDynamics/VoltageAdjusterDynamics.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// VoltageAdjusterDynamics.cpp -// Implementation of the Class VoltageAdjusterDynamics -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#include "VoltageAdjusterDynamics.h" - -using IEC61970::Dynamics::StandardModels::VoltageAdjusterDynamics::VoltageAdjusterDynamics; - - -VoltageAdjusterDynamics::VoltageAdjusterDynamics() - : PFVArControllerType1Dynamics(nullptr) -{ - -} - - - -VoltageAdjusterDynamics::~VoltageAdjusterDynamics(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/VoltageAdjusterDynamics/VoltageAdjusterDynamics.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/VoltageAdjusterDynamics/VoltageAdjusterDynamics.h deleted file mode 100644 index 11b560484..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/VoltageAdjusterDynamics/VoltageAdjusterDynamics.h +++ /dev/null @@ -1,47 +0,0 @@ -/////////////////////////////////////////////////////////// -// VoltageAdjusterDynamics.h -// Implementation of the Class VoltageAdjusterDynamics -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#ifndef VOLTAGEADJUSTERDYNAMICS_H -#define VOLTAGEADJUSTERDYNAMICS_H - -#include "IEC61970/Dynamics/StandardModels/PFVArControllerType1Dynamics/PFVArControllerType1Dynamics.h" -#include "IEC61970/Dynamics/StandardModels/DynamicsFunctionBlock.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace VoltageAdjusterDynamics - { - /** - * Voltage adjuster function block whose behaviour is described by reference to a - * standard model or by definition of a user-defined model. - * - */ - class VoltageAdjusterDynamics : public IEC61970::Dynamics::StandardModels::DynamicsFunctionBlock - { - - public: - VoltageAdjusterDynamics(); - virtual ~VoltageAdjusterDynamics(); - /** - * Power Factor or VAr controller Type I model with which this voltage adjuster is - * associated. - */ - IEC61970::Dynamics::StandardModels::PFVArControllerType1Dynamics::PFVArControllerType1Dynamics *PFVArControllerType1Dynamics; - - }; - - } - - } - - } - -} -#endif // VOLTAGEADJUSTERDYNAMICS_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/VoltageCompensatorDynamics/GenICompensationForGenJ.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/VoltageCompensatorDynamics/GenICompensationForGenJ.cpp deleted file mode 100644 index 71d706e6f..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/VoltageCompensatorDynamics/GenICompensationForGenJ.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// GenICompensationForGenJ.cpp -// Implementation of the Class GenICompensationForGenJ -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#include "GenICompensationForGenJ.h" - -using IEC61970::Dynamics::StandardModels::VoltageCompensatorDynamics::GenICompensationForGenJ; - - -GenICompensationForGenJ::GenICompensationForGenJ() - : VcompIEEEType2(nullptr), SynchronousMachineDynamics(nullptr) -{ - -} - - - -GenICompensationForGenJ::~GenICompensationForGenJ(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/VoltageCompensatorDynamics/GenICompensationForGenJ.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/VoltageCompensatorDynamics/GenICompensationForGenJ.h deleted file mode 100644 index 3224e33b8..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/VoltageCompensatorDynamics/GenICompensationForGenJ.h +++ /dev/null @@ -1,64 +0,0 @@ -/////////////////////////////////////////////////////////// -// GenICompensationForGenJ.h -// Implementation of the Class GenICompensationForGenJ -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#ifndef GENICOMPENSATIONFORGENJ_H -#define GENICOMPENSATIONFORGENJ_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" -#include "IEC61970/Dynamics/StandardModels/VoltageCompensatorDynamics/VCompIEEEType2.h" -#include "IEC61970/Dynamics/StandardModels/SynchronousMachineDynamics/SynchronousMachineDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace VoltageCompensatorDynamics - { - /** - * This class provides the resistive and reactive components of compensation for - * the generator associated with the IEEE Type 2 voltage compensator for current - * flow out of one of the other generators in the interconnection. - */ - class GenICompensationForGenJ : public IEC61970::Base::Core::IdentifiedObject - { - - public: - GenICompensationForGenJ(); - virtual ~GenICompensationForGenJ(); - /** - * Resistive component of compensation of generator - * associated with this IEEE Type 2 voltage compensator for current flow out of - * another generator (Rcij). - */ - IEC61970::Base::Domain::PU rcij; - /** - * Reactive component of compensation of generator - * associated with this IEEE Type 2 voltage compensator for current flow out of - * another generator (Xcij). - */ - IEC61970::Base::Domain::PU xcij; - /** - * The standard IEEE Type 2 voltage compensator of this compensation. - */ - IEC61970::Dynamics::StandardModels::VoltageCompensatorDynamics::VCompIEEEType2 *VcompIEEEType2; - /** - * Standard synchronous machine out of which current flow is being compensated for. - */ - IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::SynchronousMachineDynamics *SynchronousMachineDynamics; - - }; - - } - - } - - } - -} -#endif // GENICOMPENSATIONFORGENJ_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/VoltageCompensatorDynamics/VCompIEEEType1.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/VoltageCompensatorDynamics/VCompIEEEType1.cpp deleted file mode 100644 index 39ef8b63b..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/VoltageCompensatorDynamics/VCompIEEEType1.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// VCompIEEEType1.cpp -// Implementation of the Class VCompIEEEType1 -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "VCompIEEEType1.h" - -using IEC61970::Dynamics::StandardModels::VoltageCompensatorDynamics::VCompIEEEType1; - - -VCompIEEEType1::VCompIEEEType1(){ - -} - - - -VCompIEEEType1::~VCompIEEEType1(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/VoltageCompensatorDynamics/VCompIEEEType1.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/VoltageCompensatorDynamics/VCompIEEEType1.h deleted file mode 100644 index 364e5f70f..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/VoltageCompensatorDynamics/VCompIEEEType1.h +++ /dev/null @@ -1,61 +0,0 @@ -/////////////////////////////////////////////////////////// -// VCompIEEEType1.h -// Implementation of the Class VCompIEEEType1 -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef VCOMPIEEETYPE1_H -#define VCOMPIEEETYPE1_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/VoltageCompensatorDynamics/VoltageCompensatorDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace VoltageCompensatorDynamics - { - /** - * The class represents the terminal voltage transducer and - * the load compensator as defined in the IEEE Std 421.5-2005, Section 4. This - * model is common to all excitation system models described in the IEEE Standard. - * - * - * Reference: IEEE Standard 421.5-2005 Section 4. - */ - class VCompIEEEType1 : public IEC61970::Dynamics::StandardModels::VoltageCompensatorDynamics::VoltageCompensatorDynamics - { - - public: - VCompIEEEType1(); - virtual ~VCompIEEEType1(); - /** - * Resistive component of compensation of a generator (Rc). - * - */ - IEC61970::Base::Domain::PU rc; - /** - * Time constant which is used for the combined voltage - * sensing and compensation signal (Tr). - */ - IEC61970::Base::Domain::Seconds tr; - /** - * Reactive component of compensation of a generator (Xc). - * - */ - IEC61970::Base::Domain::PU xc; - - }; - - } - - } - - } - -} -#endif // VCOMPIEEETYPE1_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/VoltageCompensatorDynamics/VCompIEEEType2.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/VoltageCompensatorDynamics/VCompIEEEType2.cpp deleted file mode 100644 index 74d324855..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/VoltageCompensatorDynamics/VCompIEEEType2.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// VCompIEEEType2.cpp -// Implementation of the Class VCompIEEEType2 -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "VCompIEEEType2.h" - -using IEC61970::Dynamics::StandardModels::VoltageCompensatorDynamics::VCompIEEEType2; - - -VCompIEEEType2::VCompIEEEType2(){ - -} - - - -VCompIEEEType2::~VCompIEEEType2(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/VoltageCompensatorDynamics/VCompIEEEType2.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/VoltageCompensatorDynamics/VCompIEEEType2.h deleted file mode 100644 index e20f9297c..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/VoltageCompensatorDynamics/VCompIEEEType2.h +++ /dev/null @@ -1,57 +0,0 @@ -/////////////////////////////////////////////////////////// -// VCompIEEEType2.h -// Implementation of the Class VCompIEEEType2 -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef VCOMPIEEETYPE2_H -#define VCOMPIEEETYPE2_H - -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/VoltageCompensatorDynamics/VoltageCompensatorDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace VoltageCompensatorDynamics - { - /** - * The class represents the terminal voltage transducer and - * the load compensator as defined in the IEEE Std 421.5-2005, Section 4. This - * model is designed to cover the following types of compensation: - *
    - *
  • reactive droop
  • - *
  • transformer-drop or line-drop - * compensation
  • - *
  • reactive differential compensation known also as - * cross-current compensation.
  • - *
- * - * Reference: IEEE Standard 421.5-2005, Section 4. - * - */ - class VCompIEEEType2 : public IEC61970::Dynamics::StandardModels::VoltageCompensatorDynamics::VoltageCompensatorDynamics - { - - public: - VCompIEEEType2(); - virtual ~VCompIEEEType2(); - /** - * Time constant which is used for the combined voltage - * sensing and compensation signal (Tr). - */ - IEC61970::Base::Domain::Seconds tr; - - }; - - } - - } - - } - -} -#endif // VCOMPIEEETYPE2_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/VoltageCompensatorDynamics/VoltageCompensatorDynamics.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/VoltageCompensatorDynamics/VoltageCompensatorDynamics.cpp deleted file mode 100644 index 154a0de8a..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/VoltageCompensatorDynamics/VoltageCompensatorDynamics.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// VoltageCompensatorDynamics.cpp -// Implementation of the Class VoltageCompensatorDynamics -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#include "VoltageCompensatorDynamics.h" - -using IEC61970::Dynamics::StandardModels::VoltageCompensatorDynamics::VoltageCompensatorDynamics; - - -VoltageCompensatorDynamics::VoltageCompensatorDynamics() - : ExcitationSystemDynamics(nullptr), RemoteInputSignal(nullptr) -{ - -} - - - -VoltageCompensatorDynamics::~VoltageCompensatorDynamics(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/VoltageCompensatorDynamics/VoltageCompensatorDynamics.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/VoltageCompensatorDynamics/VoltageCompensatorDynamics.h deleted file mode 100644 index 97257d2e9..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/VoltageCompensatorDynamics/VoltageCompensatorDynamics.h +++ /dev/null @@ -1,51 +0,0 @@ -/////////////////////////////////////////////////////////// -// VoltageCompensatorDynamics.h -// Implementation of the Class VoltageCompensatorDynamics -// Original author: tsaxton -/////////////////////////////////////////////////////////// - -#ifndef VOLTAGECOMPENSATORDYNAMICS_H -#define VOLTAGECOMPENSATORDYNAMICS_H - -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" -#include "IEC61970/Dynamics/StandardModels/DynamicsFunctionBlock.h" -#include "IEC61970/Dynamics/StandardInterconnections/RemoteInputSignal.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace VoltageCompensatorDynamics - { - /** - * Voltage compensator function block whose behaviour is described by reference to - * a standard model or by definition of a user-defined model. - * - */ - class VoltageCompensatorDynamics : public IEC61970::Dynamics::StandardModels::DynamicsFunctionBlock - { - - public: - VoltageCompensatorDynamics(); - virtual ~VoltageCompensatorDynamics(); - /** - * Excitation system model with which this voltage compensator is associated. - */ - IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics *ExcitationSystemDynamics; - /** - * Remote input signal used by this voltage compensator model. - */ - IEC61970::Dynamics::StandardInterconnections::RemoteInputSignal *RemoteInputSignal; - - }; - - } - - } - - } - -} -#endif // VOLTAGECOMPENSATORDYNAMICS_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindAeroConstIEC.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindAeroConstIEC.cpp deleted file mode 100644 index b06c1707a..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindAeroConstIEC.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindAeroConstIEC.cpp -// Implementation of the Class WindAeroConstIEC -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#include "WindAeroConstIEC.h" - -using IEC61970::Dynamics::StandardModels::WindDynamics::WindAeroConstIEC; - - -WindAeroConstIEC::WindAeroConstIEC() - : WindGenTurbineType1IEC(nullptr) -{ - -} - - - -WindAeroConstIEC::~WindAeroConstIEC(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindAeroConstIEC.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindAeroConstIEC.h deleted file mode 100644 index aced88a04..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindAeroConstIEC.h +++ /dev/null @@ -1,47 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindAeroConstIEC.h -// Implementation of the Class WindAeroConstIEC -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#ifndef WINDAEROCONSTIEC_H -#define WINDAEROCONSTIEC_H - -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindGenTurbineType1IEC.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace WindDynamics - { - /** - * The constant aerodynamic torque model assumes that the aerodynamic torque is - * constant. - * - * Reference: IEC Standard 61400-27-1 Section 6.6.1.1. - */ - class WindAeroConstIEC : public IEC61970::Base::Core::IdentifiedObject - { - - public: - WindAeroConstIEC(); - virtual ~WindAeroConstIEC(); - /** - * Wind turbine type 1 model with which this wind aerodynamic model is associated. - */ - IEC61970::Dynamics::StandardModels::WindDynamics::WindGenTurbineType1IEC *WindGenTurbineType1IEC; - - }; - - } - - } - - } - -} -#endif // WINDAEROCONSTIEC_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindAeroLinearIEC.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindAeroLinearIEC.cpp deleted file mode 100644 index 5a64cb678..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindAeroLinearIEC.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindAeroLinearIEC.cpp -// Implementation of the Class WindAeroLinearIEC -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#include "WindAeroLinearIEC.h" - -using IEC61970::Dynamics::StandardModels::WindDynamics::WindAeroLinearIEC; - - -WindAeroLinearIEC::WindAeroLinearIEC() - : WindGenTurbineType3IEC(nullptr) -{ - -} - - - -WindAeroLinearIEC::~WindAeroLinearIEC(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindAeroLinearIEC.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindAeroLinearIEC.h deleted file mode 100644 index 4c326065a..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindAeroLinearIEC.h +++ /dev/null @@ -1,74 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindAeroLinearIEC.h -// Implementation of the Class WindAeroLinearIEC -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#ifndef WINDAEROLINEARIEC_H -#define WINDAEROLINEARIEC_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/AngleDegrees.h" -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindGenTurbineType3IEC.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace WindDynamics - { - /** - * The linearised aerodynamic model. - * - * Reference: IEC Standard 614000-27-1 Section 6.6.1.2. - */ - class WindAeroLinearIEC : public IEC61970::Base::Core::IdentifiedObject - { - - public: - WindAeroLinearIEC(); - virtual ~WindAeroLinearIEC(); - /** - * Partial derivative of aerodynamic power with respect to changes in WTR speed - * (dpomega). It is case dependent parameter. - */ - IEC61970::Base::Domain::PU dpomega; - /** - * Partial derivative of aerodynamic power with respect to changes in pitch angle - * (dptheta). It is case dependent parameter. - */ - IEC61970::Base::Domain::PU dptheta; - /** - * Rotor speed if the wind turbine is not derated - * (omega0). It is case dependent parameter. - */ - IEC61970::Base::Domain::PU omegazero; - /** - * Available aerodynamic power (pavail). It is case dependent - * parameter. - */ - IEC61970::Base::Domain::PU pavail; - /** - * Pitch angle if the wind turbine is not derated - * (theta0). It is case dependent parameter. - */ - IEC61970::Base::Domain::AngleDegrees thetazero; - /** - * Wind generator type 3 model with which this wind aerodynamic model is - * associated. - */ - IEC61970::Dynamics::StandardModels::WindDynamics::WindGenTurbineType3IEC *WindGenTurbineType3IEC; - - }; - - } - - } - - } - -} -#endif // WINDAEROLINEARIEC_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindContCurrLimIEC.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindContCurrLimIEC.cpp deleted file mode 100644 index 9feb819fe..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindContCurrLimIEC.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindContCurrLimIEC.cpp -// Implementation of the Class WindContCurrLimIEC -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#include "WindContCurrLimIEC.h" - -using IEC61970::Dynamics::StandardModels::WindDynamics::WindContCurrLimIEC; - - -WindContCurrLimIEC::WindContCurrLimIEC() - : WindTurbineType3or4IEC(nullptr) -{ - -} - - - -WindContCurrLimIEC::~WindContCurrLimIEC(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindContCurrLimIEC.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindContCurrLimIEC.h deleted file mode 100644 index 3eacdc77f..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindContCurrLimIEC.h +++ /dev/null @@ -1,82 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindContCurrLimIEC.h -// Implementation of the Class WindContCurrLimIEC -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#ifndef WINDCONTCURRLIMIEC_H -#define WINDCONTCURRLIMIEC_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindTurbineType3or4IEC.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace WindDynamics - { - /** - * Current limitation model. The current limitation model combines the physical - * limits. - * - * Reference: IEC Standard 61400-27-1 Section 6.6.5.7. - */ - class WindContCurrLimIEC : public IEC61970::Base::Core::IdentifiedObject - { - - public: - WindContCurrLimIEC(); - virtual ~WindContCurrLimIEC(); - /** - * Maximum continuous current at the wind turbine terminals - * (imax). It is type dependent parameter. - */ - IEC61970::Base::Domain::PU imax; - /** - * Maximum current during voltage dip at the wind turbine terminals - * (imax,dip). It is project dependent parameter. - */ - IEC61970::Base::Domain::PU imaxdip; - /** - * Limitation of type 3 stator current (MDFSLim): - * - false=0: total current limitation, - * - true=1: stator current limitation). - * - * It is type dependent parameter. - */ - IEC61970::Base::Domain::Boolean mdfslim; - /** - * Prioritisation of q control during LVRT (Mqpri): - * - true = 1: reactive power priority, - * - false = 0: active power priority. - * - * It is project dependent parameter. - */ - IEC61970::Base::Domain::Boolean mqpri; - /** - * Voltage measurement filter time constant (Tufilt). It is type - * dependent parameter. - */ - IEC61970::Base::Domain::Seconds tufilt; - /** - * Wind turbine type 3 or 4 model with which this wind control current limitation - * model is associated. - */ - IEC61970::Dynamics::StandardModels::WindDynamics::WindTurbineType3or4IEC *WindTurbineType3or4IEC; - - }; - - } - - } - - } - -} -#endif // WINDCONTCURRLIMIEC_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindContPType3IEC.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindContPType3IEC.cpp deleted file mode 100644 index f16d862d5..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindContPType3IEC.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindContPType3IEC.cpp -// Implementation of the Class WindContPType3IEC -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#include "WindContPType3IEC.h" - -using IEC61970::Dynamics::StandardModels::WindDynamics::WindContPType3IEC; - - -WindContPType3IEC::WindContPType3IEC() - : WindGenTurbineType3IEC(nullptr) -{ - -} - - - -WindContPType3IEC::~WindContPType3IEC(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindContPType3IEC.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindContPType3IEC.h deleted file mode 100644 index 04c0eae3c..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindContPType3IEC.h +++ /dev/null @@ -1,160 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindContPType3IEC.h -// Implementation of the Class WindContPType3IEC -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#ifndef WINDCONTPTYPE3IEC_H -#define WINDCONTPTYPE3IEC_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindGenTurbineType3IEC.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace WindDynamics - { - /** - * P control model Type 3. - * - * Reference: IEC Standard 61400-27-1 Section 6.6.5.3. - */ - class WindContPType3IEC : public IEC61970::Base::Core::IdentifiedObject - { - - public: - WindContPType3IEC(); - virtual ~WindContPType3IEC(); - /** - * Maximum wind turbine power ramp rate (dpmax). It is project - * dependent parameter. - */ - IEC61970::Base::Domain::PU dpmax; - /** - * Limitation of torque rise rate during LVRT for S1 - * (dTrisemaxLVRT). It is project dependent parameter. - */ - IEC61970::Base::Domain::PU dtrisemaxlvrt; - /** - * Gain for active drive train damping (KDTD). It is type - * dependent parameter. - */ - IEC61970::Base::Domain::PU kdtd; - /** - * PI controller integration parameter (KIp). It is type - * dependent parameter. - */ - IEC61970::Base::Domain::PU kip; - /** - * PI controller proportional gain (KPp). It is type dependent - * parameter. - */ - IEC61970::Base::Domain::PU kpp; - /** - * Enable LVRT power control mode (MpLVRT). - * true = 1: voltage control - * false = 0: reactive power control. - * - * It is project dependent parameter. - */ - IEC61970::Base::Domain::Boolean mplvrt; - /** - * Offset to reference value that limits controller action during rotor speed - * changes (omegaoffset). It is case dependent parameter. - */ - IEC61970::Base::Domain::PU omegaoffset; - /** - * Maximum active drive train damping power (pDTDmax). It is - * type dependent parameter. - */ - IEC61970::Base::Domain::PU pdtdmax; - /** - * Ramp limitation of torque, required in some grid codes - * (Rramp). It is project dependent parameter. - */ - IEC61970::Base::Domain::PU rramp; - /** - * Time delay after deep voltage sags (TDVS). It is project - * dependent parameter. - */ - IEC61970::Base::Domain::Seconds tdvs; - /** - * Minimum electrical generator torque (Temin). It is type - * dependent parameter. - */ - IEC61970::Base::Domain::PU temin; - /** - * Filter time constant for generator speed measurement - * (Tomegafilt). It is type dependent parameter. - */ - IEC61970::Base::Domain::Seconds tomegafilt; - /** - * Filter time constant for power measurement (Tpfilt). It is - * type dependent parameter. - */ - IEC61970::Base::Domain::Seconds tpfilt; - /** - * Time constant in power order lag (Tpord). It is type - * dependent parameter. - */ - IEC61970::Base::Domain::PU tpord; - /** - * Filter time constant for voltage measurement (Tufilt). It is - * type dependent parameter. - */ - IEC61970::Base::Domain::Seconds tufilt; - /** - * Voltage scaling factor of reset-torque (Tuscale). It is project - * dependent parameter. - */ - IEC61970::Base::Domain::PU tuscale; - /** - * Time constant in speed reference filter (Tomega,ref). It is - * type dependent parameter. - */ - IEC61970::Base::Domain::Seconds twref; - /** - * Voltage limit for hold LVRT status after deep voltage sags - * (uDVS). It is project dependent parameter. - */ - IEC61970::Base::Domain::PU udvs; - /** - * Voltage dip threshold for P-control (uPdip). Part of turbine - * control, often different (e.g 0.8) from converter thresholds. It is project - * dependent parameter. - */ - IEC61970::Base::Domain::PU updip; - /** - * Active drive train damping frequency (omegaDTD). It can be - * calculated from two mass model parameters. It is type dependent parameter. - */ - IEC61970::Base::Domain::PU wdtd; - /** - * Coefficient for active drive train damping (zeta). It is type dependent - * parameter. - */ - IEC61970::Base::Domain::Float zeta; - /** - * Wind turbine type 3 model with which this Wind control P type 3 model is - * associated. - */ - IEC61970::Dynamics::StandardModels::WindDynamics::WindGenTurbineType3IEC *WindGenTurbineType3IEC; - - }; - - } - - } - - } - -} -#endif // WINDCONTPTYPE3IEC_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindContPType4aIEC.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindContPType4aIEC.cpp deleted file mode 100644 index f4d780cdc..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindContPType4aIEC.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindContPType4aIEC.cpp -// Implementation of the Class WindContPType4aIEC -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#include "WindContPType4aIEC.h" - -using IEC61970::Dynamics::StandardModels::WindDynamics::WindContPType4aIEC; - - -WindContPType4aIEC::WindContPType4aIEC() - : WindTurbineType4aIEC(nullptr) -{ - -} - - - -WindContPType4aIEC::~WindContPType4aIEC(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindContPType4aIEC.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindContPType4aIEC.h deleted file mode 100644 index 1a002719d..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindContPType4aIEC.h +++ /dev/null @@ -1,64 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindContPType4aIEC.h -// Implementation of the Class WindContPType4aIEC -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#ifndef WINDCONTPTYPE4AIEC_H -#define WINDCONTPTYPE4AIEC_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindTurbineType4aIEC.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace WindDynamics - { - /** - * P control model Type 4A. - * - * Reference: IEC Standard 61400-27-1 Section 6.6.5.4. - */ - class WindContPType4aIEC : public IEC61970::Base::Core::IdentifiedObject - { - - public: - WindContPType4aIEC(); - virtual ~WindContPType4aIEC(); - /** - * Maximum wind turbine power ramp rate (dpmax). It is project - * dependent parameter. - */ - IEC61970::Base::Domain::PU dpmax; - /** - * Time constant in power order lag (Tpord). It is type - * dependent parameter. - */ - IEC61970::Base::Domain::Seconds tpord; - /** - * Voltage measurement filter time constant (Tufilt). It is type - * dependent parameter. - */ - IEC61970::Base::Domain::Seconds tufilt; - /** - * Wind turbine type 4A model with which this wind control P type 4A model is - * associated. - */ - IEC61970::Dynamics::StandardModels::WindDynamics::WindTurbineType4aIEC *WindTurbineType4aIEC; - - }; - - } - - } - - } - -} -#endif // WINDCONTPTYPE4AIEC_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindContPType4bIEC.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindContPType4bIEC.cpp deleted file mode 100644 index 1cfa4bb02..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindContPType4bIEC.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindContPType4bIEC.cpp -// Implementation of the Class WindContPType4bIEC -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#include "WindContPType4bIEC.h" - -using IEC61970::Dynamics::StandardModels::WindDynamics::WindContPType4bIEC; - - -WindContPType4bIEC::WindContPType4bIEC() - : WindTurbineType4bIEC(nullptr) -{ - -} - - - -WindContPType4bIEC::~WindContPType4bIEC(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindContPType4bIEC.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindContPType4bIEC.h deleted file mode 100644 index 2fea92ee9..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindContPType4bIEC.h +++ /dev/null @@ -1,69 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindContPType4bIEC.h -// Implementation of the Class WindContPType4bIEC -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#ifndef WINDCONTPTYPE4BIEC_H -#define WINDCONTPTYPE4BIEC_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindTurbineType4bIEC.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace WindDynamics - { - /** - * P control model Type 4B. - * - * Reference: IEC Standard 61400-27-1 Section 6.6.5.5. - */ - class WindContPType4bIEC : public IEC61970::Base::Core::IdentifiedObject - { - - public: - WindContPType4bIEC(); - virtual ~WindContPType4bIEC(); - /** - * Maximum wind turbine power ramp rate (dpmax). It is project - * dependent parameter. - */ - IEC61970::Base::Domain::PU dpmax; - /** - * Time constant in aerodynamic power response (Tpaero). It is - * type dependent parameter. - */ - IEC61970::Base::Domain::Seconds tpaero; - /** - * Time constant in power order lag (Tpord). It is type - * dependent parameter. - */ - IEC61970::Base::Domain::Seconds tpord; - /** - * Voltage measurement filter time constant (Tufilt). It is type - * dependent parameter. - */ - IEC61970::Base::Domain::Seconds tufilt; - /** - * Wind turbine type 4B model with which this wind control P type 4B model is - * associated. - */ - IEC61970::Dynamics::StandardModels::WindDynamics::WindTurbineType4bIEC *WindTurbineType4bIEC; - - }; - - } - - } - - } - -} -#endif // WINDCONTPTYPE4BIEC_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindContPitchAngleIEC.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindContPitchAngleIEC.cpp deleted file mode 100644 index c2a37a62b..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindContPitchAngleIEC.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindContPitchAngleIEC.cpp -// Implementation of the Class WindContPitchAngleIEC -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#include "WindContPitchAngleIEC.h" - -using IEC61970::Dynamics::StandardModels::WindDynamics::WindContPitchAngleIEC; - - -WindContPitchAngleIEC::WindContPitchAngleIEC() - : WindGenTurbineType3IEC(nullptr) -{ - -} - - - -WindContPitchAngleIEC::~WindContPitchAngleIEC(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindContPitchAngleIEC.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindContPitchAngleIEC.h deleted file mode 100644 index 85e7ee1ca..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindContPitchAngleIEC.h +++ /dev/null @@ -1,98 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindContPitchAngleIEC.h -// Implementation of the Class WindContPitchAngleIEC -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#ifndef WINDCONTPITCHANGLEIEC_H -#define WINDCONTPITCHANGLEIEC_H - -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/AngleDegrees.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindGenTurbineType3IEC.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace WindDynamics - { - /** - * Pitch angle control model. - * - * Reference: IEC Standard 61400-27-1 Section 6.6.5.8. - */ - class WindContPitchAngleIEC : public IEC61970::Base::Core::IdentifiedObject - { - - public: - WindContPitchAngleIEC(); - virtual ~WindContPitchAngleIEC(); - /** - * Maximum pitch positive ramp rate (dthetamax). It is type - * dependent parameter. Unit = degrees/sec. - */ - IEC61970::Base::Domain::Float dthetamax; - /** - * Maximum pitch negative ramp rate (dthetamin). It is type - * dependent parameter. Unit = degrees/sec. - */ - IEC61970::Base::Domain::Float dthetamin; - /** - * Power PI controller integration gain (KIc). It is type - * dependent parameter. - */ - IEC61970::Base::Domain::PU kic; - /** - * Speed PI controller integration gain (KIomega). It is type - * dependent parameter. - */ - IEC61970::Base::Domain::PU kiomega; - /** - * Power PI controller proportional gain (KPc). It is type - * dependent parameter. - */ - IEC61970::Base::Domain::PU kpc; - /** - * Speed PI controller proportional gain (KPomega). It is type - * dependent parameter. - */ - IEC61970::Base::Domain::PU kpomega; - /** - * Pitch cross coupling gain (KPX). It is type dependent parameter. - */ - IEC61970::Base::Domain::PU kpx; - /** - * Maximum pitch angle (thetamax). It is type dependent - * parameter. - */ - IEC61970::Base::Domain::AngleDegrees thetamax; - /** - * Minimum pitch angle (thetamin). It is type dependent - * parameter. - */ - IEC61970::Base::Domain::AngleDegrees thetamin; - /** - * Pitch time constant (ttheta). It is type dependent parameter. - */ - IEC61970::Base::Domain::Seconds ttheta; - /** - * Wind turbine type 3 model with which this pitch control model is associated. - */ - IEC61970::Dynamics::StandardModels::WindDynamics::WindGenTurbineType3IEC *WindGenTurbineType3IEC; - - }; - - } - - } - - } - -} -#endif // WINDCONTPITCHANGLEIEC_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindContQIEC.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindContQIEC.cpp deleted file mode 100644 index e93555b76..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindContQIEC.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindContQIEC.cpp -// Implementation of the Class WindContQIEC -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#include "WindContQIEC.h" - -using IEC61970::Dynamics::StandardModels::WindDynamics::WindContQIEC; - - -WindContQIEC::WindContQIEC() - : WindTurbineType3or4IEC(nullptr) -{ - -} - - - -WindContQIEC::~WindContQIEC(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindContQIEC.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindContQIEC.h deleted file mode 100644 index 345835011..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindContQIEC.h +++ /dev/null @@ -1,179 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindContQIEC.h -// Implementation of the Class WindContQIEC -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#ifndef WINDCONTQIEC_H -#define WINDCONTQIEC_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindLVRTQcontrolModesKind.h" -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindQcontrolModesKind.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindTurbineType3or4IEC.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace WindDynamics - { - /** - * Q control model. - * - * Reference: IEC Standard 61400-27-1 Section 6.6.5.6. - */ - class WindContQIEC : public IEC61970::Base::Core::IdentifiedObject - { - - public: - WindContQIEC(); - virtual ~WindContQIEC(); - /** - * Maximum reactive current injection during dip (iqh1). It is type - * dependent parameter. - */ - IEC61970::Base::Domain::PU iqh1; - /** - * Maximum reactive current injection (iqmax). It is type dependent - * parameter. - */ - IEC61970::Base::Domain::PU iqmax; - /** - * Minimum reactive current injection (iqmin). It is type dependent - * parameter. - */ - IEC61970::Base::Domain::PU iqmin; - /** - * Post fault reactive current injection (iqpost). It is project - * dependent parameter. - */ - IEC61970::Base::Domain::PU iqpost; - /** - * Reactive power PI controller integration gain (KI,q). It is - * type dependent parameter. - */ - IEC61970::Base::Domain::PU kiq; - /** - * Voltage PI controller integration gain (KI,u). It is type - * dependent parameter. - */ - IEC61970::Base::Domain::PU kiu; - /** - * Reactive power PI controller proportional gain (KP,q). It is - * type dependent parameter. - */ - IEC61970::Base::Domain::PU kpq; - /** - * Voltage PI controller proportional gain (KP,u). It is type - * dependent parameter. - */ - IEC61970::Base::Domain::PU kpu; - /** - * Voltage scaling factor for LVRT current (Kqv). It is project - * dependent parameter. - */ - IEC61970::Base::Domain::PU kqv; - /** - * Maximum reactive power (qmax). It is type dependent parameter. - */ - IEC61970::Base::Domain::PU qmax; - /** - * Minimum reactive power (qmin). It is type dependent parameter. - */ - IEC61970::Base::Domain::PU qmin; - /** - * Resistive component of voltage drop impedance (rdroop). It is - * project dependent parameter. - */ - IEC61970::Base::Domain::PU rdroop; - /** - * Time constant in reactive current lag (Tiq). It is type dependent - * parameter. - */ - IEC61970::Base::Domain::Seconds tiq; - /** - * Power measurement filter time constant (Tpfilt). It is type - * dependent parameter. - */ - IEC61970::Base::Domain::Seconds tpfilt; - /** - * Length of time period where post fault reactive power is injected - * (Tpost). It is project dependent parameter. - */ - IEC61970::Base::Domain::Seconds tpost; - /** - * Time constant in reactive power order lag (Tqord). It is type - * dependent parameter. - */ - IEC61970::Base::Domain::Seconds tqord; - /** - * Voltage measurement filter time constant (Tufilt). It is type - * dependent parameter. - */ - IEC61970::Base::Domain::Seconds tufilt; - /** - * Voltage dead band lower limit (udb1). It is type dependent - * parameter. - */ - IEC61970::Base::Domain::PU udb1; - /** - * Voltage dead band upper limit (udb2). It is type dependent - * parameter. - */ - IEC61970::Base::Domain::PU udb2; - /** - * Maximum voltage in voltage PI controller integral term (umax). It is - * type dependent parameter. - */ - IEC61970::Base::Domain::PU umax; - /** - * Minimum voltage in voltage PI controller integral term (umin). It is - * type dependent parameter. - */ - IEC61970::Base::Domain::PU umin; - /** - * Voltage threshold for LVRT detection in q control (uqdip). It - * is type dependent parameter. - */ - IEC61970::Base::Domain::PU uqdip; - /** - * User defined bias in voltage reference (uref0), used when - * MqG = MG,u. It is case dependent parameter. - */ - IEC61970::Base::Domain::PU uref0; - /** - * Types of LVRT Q control modes (MqLVRT). It is project - * dependent parameter. - */ - IEC61970::Dynamics::StandardModels::WindDynamics::WindLVRTQcontrolModesKind windLVRTQcontrolModesType = IEC61970::Dynamics::StandardModels::WindDynamics::WindLVRTQcontrolModesKind::_undef; - /** - * Types of general wind turbine Q control modes (MqG). It is - * project dependent parameter. - */ - IEC61970::Dynamics::StandardModels::WindDynamics::WindQcontrolModesKind windQcontrolModesType = IEC61970::Dynamics::StandardModels::WindDynamics::WindQcontrolModesKind::_undef; - /** - * Inductive component of voltage drop impedance (xdroop). It is - * project dependent parameter. - */ - IEC61970::Base::Domain::PU xdroop; - /** - * Wind turbine type 3 or 4 model with which this reactive control mode is - * associated. - */ - IEC61970::Dynamics::StandardModels::WindDynamics::WindTurbineType3or4IEC *WindTurbineType3or4IEC; - - }; - - } - - } - - } - -} -#endif // WINDCONTQIEC_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindContRotorRIEC.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindContRotorRIEC.cpp deleted file mode 100644 index e06cc9836..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindContRotorRIEC.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindContRotorRIEC.cpp -// Implementation of the Class WindContRotorRIEC -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#include "WindContRotorRIEC.h" - -using IEC61970::Dynamics::StandardModels::WindDynamics::WindContRotorRIEC; - - -WindContRotorRIEC::WindContRotorRIEC() - : WindGenTurbineType2IEC(nullptr) -{ - -} - - - -WindContRotorRIEC::~WindContRotorRIEC(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindContRotorRIEC.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindContRotorRIEC.h deleted file mode 100644 index 9b87da5c3..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindContRotorRIEC.h +++ /dev/null @@ -1,90 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindContRotorRIEC.h -// Implementation of the Class WindContRotorRIEC -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#ifndef WINDCONTROTORRIEC_H -#define WINDCONTROTORRIEC_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindGenTurbineType2IEC.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace WindDynamics - { - /** - * Rotor resistance control model. - * - * Reference: IEC Standard 61400-27-1 Section 6.6.5.2. - */ - class WindContRotorRIEC : public IEC61970::Base::Core::IdentifiedObject - { - - public: - WindContRotorRIEC(); - virtual ~WindContRotorRIEC(); - /** - * Integral gain in rotor resistance PI controller (KIrr). It is - * type dependent parameter. - */ - IEC61970::Base::Domain::PU kirr; - /** - * Filter gain for generator speed measurement (Komegafilt). It is type - * dependent parameter. - */ - IEC61970::Base::Domain::Float komegafilt; - /** - * Filter gain for power measurement (Kpfilt). It is type - * dependent parameter. - */ - IEC61970::Base::Domain::Float kpfilt; - /** - * Proportional gain in rotor resistance PI controller (KPrr). - * It is type dependent parameter. - */ - IEC61970::Base::Domain::PU kprr; - /** - * Maximum rotor resistance (rmax). It is type dependent - * parameter. - */ - IEC61970::Base::Domain::PU rmax; - /** - * Minimum rotor resistance (rmin). It is type dependent - * parameter. - */ - IEC61970::Base::Domain::PU rmin; - /** - * Filter time constant for generator speed measurement - * (Tomegafilt). It is type dependent parameter. - */ - IEC61970::Base::Domain::Seconds tomegafilt; - /** - * Filter time constant for power measurement (Tpfilt). It is - * type dependent parameter. - */ - IEC61970::Base::Domain::Seconds tpfilt; - /** - * Wind turbine type 2 model with whitch this wind control rotor resistance model - * is associated. - */ - IEC61970::Dynamics::StandardModels::WindDynamics::WindGenTurbineType2IEC *WindGenTurbineType2IEC; - - }; - - } - - } - - } - -} -#endif // WINDCONTROTORRIEC_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindDynamicsLookupTable.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindDynamicsLookupTable.cpp deleted file mode 100644 index 723e7858a..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindDynamicsLookupTable.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindDynamicsLookupTable.cpp -// Implementation of the Class WindDynamicsLookupTable -// Original author: civanov -/////////////////////////////////////////////////////////// - -#include "WindDynamicsLookupTable.h" - -using IEC61970::Dynamics::StandardModels::WindDynamics::WindDynamicsLookupTable; - - -WindDynamicsLookupTable::WindDynamicsLookupTable() - : WindContRotorRIEC(nullptr), WindContCurrLimIEC(nullptr), WindPlantFreqPcontrolIEC(nullptr), WindContPType3IEC(nullptr) -{ - -} - - - -WindDynamicsLookupTable::~WindDynamicsLookupTable(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindDynamicsLookupTable.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindDynamicsLookupTable.h deleted file mode 100644 index 942cdb2d6..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindDynamicsLookupTable.h +++ /dev/null @@ -1,83 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindDynamicsLookupTable.h -// Implementation of the Class WindDynamicsLookupTable -// Original author: civanov -/////////////////////////////////////////////////////////// - -#ifndef WINDDYNAMICSLOOKUPTABLE_H -#define WINDDYNAMICSLOOKUPTABLE_H - -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindLookupTableFunctionKind.h" -#include "IEC61970/Base/Domain/Integer.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindContRotorRIEC.h" -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindContCurrLimIEC.h" -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindPlantFreqPcontrolIEC.h" -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindContPType3IEC.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace WindDynamics - { - /** - * The class models a look up table for the purpose of wind standard models. - */ - class WindDynamicsLookupTable : public IEC61970::Base::Core::IdentifiedObject - { - - public: - WindDynamicsLookupTable(); - virtual ~WindDynamicsLookupTable(); - /** - * Input value (x) for the lookup table function. - */ - IEC61970::Base::Domain::Float input; - /** - * Type of the lookup table function. - */ - IEC61970::Dynamics::StandardModels::WindDynamics::WindLookupTableFunctionKind lookupTableFunctionType = IEC61970::Dynamics::StandardModels::WindDynamics::WindLookupTableFunctionKind::_undef; - /** - * Output value (y) for the lookup table function. - */ - IEC61970::Base::Domain::Float output; - /** - * Sequence numbers of the pairs of the input (x) and the output (y) of the lookup - * table function. - */ - IEC61970::Base::Domain::Integer sequence; - /** - * The rotor resistance control model with which this wind dynamics lookup table - * is associated. - */ - IEC61970::Dynamics::StandardModels::WindDynamics::WindContRotorRIEC *WindContRotorRIEC; - /** - * The current control limitation model with which this wind dynamics lookup table - * is associated. - */ - IEC61970::Dynamics::StandardModels::WindDynamics::WindContCurrLimIEC *WindContCurrLimIEC; - /** - * The frequency and active power wind plant control model with which this wind - * dynamics lookup table is associated. - */ - IEC61970::Dynamics::StandardModels::WindDynamics::WindPlantFreqPcontrolIEC *WindPlantFreqPcontrolIEC; - /** - * The P control type 3 model with which this wind dynamics lookup table is - * associated. - */ - IEC61970::Dynamics::StandardModels::WindDynamics::WindContPType3IEC *WindContPType3IEC; - - }; - - } - - } - - } - -} -#endif // WINDDYNAMICSLOOKUPTABLE_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindGenTurbineType1IEC.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindGenTurbineType1IEC.cpp deleted file mode 100644 index 36a3cfae6..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindGenTurbineType1IEC.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindGenTurbineType1IEC.cpp -// Implementation of the Class WindGenTurbineType1IEC -// Original author: civanov -/////////////////////////////////////////////////////////// - -#include "WindGenTurbineType1IEC.h" - -using IEC61970::Dynamics::StandardModels::WindDynamics::WindGenTurbineType1IEC; - - -WindGenTurbineType1IEC::WindGenTurbineType1IEC(){ - -} - - - -WindGenTurbineType1IEC::~WindGenTurbineType1IEC(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindGenTurbineType1IEC.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindGenTurbineType1IEC.h deleted file mode 100644 index e347375b8..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindGenTurbineType1IEC.h +++ /dev/null @@ -1,41 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindGenTurbineType1IEC.h -// Implementation of the Class WindGenTurbineType1IEC -// Original author: civanov -/////////////////////////////////////////////////////////// - -#ifndef WINDGENTURBINETYPE1IEC_H -#define WINDGENTURBINETYPE1IEC_H - -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindTurbineType1or2IEC.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace WindDynamics - { - /** - * Wind turbine IEC Type 1. - * - * Reference: IEC Standard 61400-27-1, section 6.5.2. - */ - class WindGenTurbineType1IEC : public IEC61970::Dynamics::StandardModels::WindDynamics::WindTurbineType1or2IEC - { - - public: - WindGenTurbineType1IEC(); - virtual ~WindGenTurbineType1IEC(); - - }; - - } - - } - - } - -} -#endif // WINDGENTURBINETYPE1IEC_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindGenTurbineType2IEC.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindGenTurbineType2IEC.cpp deleted file mode 100644 index f29bf39b7..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindGenTurbineType2IEC.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindGenTurbineType2IEC.cpp -// Implementation of the Class WindGenTurbineType2IEC -// Original author: civanov -/////////////////////////////////////////////////////////// - -#include "WindGenTurbineType2IEC.h" - -using IEC61970::Dynamics::StandardModels::WindDynamics::WindGenTurbineType2IEC; - - -WindGenTurbineType2IEC::WindGenTurbineType2IEC(){ - -} - - - -WindGenTurbineType2IEC::~WindGenTurbineType2IEC(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindGenTurbineType2IEC.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindGenTurbineType2IEC.h deleted file mode 100644 index 1f6b149a2..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindGenTurbineType2IEC.h +++ /dev/null @@ -1,41 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindGenTurbineType2IEC.h -// Implementation of the Class WindGenTurbineType2IEC -// Original author: civanov -/////////////////////////////////////////////////////////// - -#ifndef WINDGENTURBINETYPE2IEC_H -#define WINDGENTURBINETYPE2IEC_H - -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindTurbineType1or2IEC.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace WindDynamics - { - /** - * Wind turbine IEC Type 2. - * - * Reference: IEC Standard 61400-27-1, section 6.5.3. - */ - class WindGenTurbineType2IEC : public IEC61970::Dynamics::StandardModels::WindDynamics::WindTurbineType1or2IEC - { - - public: - WindGenTurbineType2IEC(); - virtual ~WindGenTurbineType2IEC(); - - }; - - } - - } - - } - -} -#endif // WINDGENTURBINETYPE2IEC_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindGenTurbineType3IEC.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindGenTurbineType3IEC.cpp deleted file mode 100644 index b84dda4cf..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindGenTurbineType3IEC.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindGenTurbineType3IEC.cpp -// Implementation of the Class WindGenTurbineType3IEC -// Original author: civanov -/////////////////////////////////////////////////////////// - -#include "WindGenTurbineType3IEC.h" - -using IEC61970::Dynamics::StandardModels::WindDynamics::WindGenTurbineType3IEC; - - -WindGenTurbineType3IEC::WindGenTurbineType3IEC(){ - -} - - - -WindGenTurbineType3IEC::~WindGenTurbineType3IEC(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindGenTurbineType3IEC.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindGenTurbineType3IEC.h deleted file mode 100644 index 06e2631f9..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindGenTurbineType3IEC.h +++ /dev/null @@ -1,50 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindGenTurbineType3IEC.h -// Implementation of the Class WindGenTurbineType3IEC -// Original author: civanov -/////////////////////////////////////////////////////////// - -#ifndef WINDGENTURBINETYPE3IEC_H -#define WINDGENTURBINETYPE3IEC_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindTurbineType3or4IEC.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace WindDynamics - { - /** - * Generator model for wind turbines of IEC type 3A and 3B. - */ - class WindGenTurbineType3IEC : public IEC61970::Dynamics::StandardModels::WindDynamics::WindTurbineType3or4IEC - { - - public: - WindGenTurbineType3IEC(); - virtual ~WindGenTurbineType3IEC(); - /** - * Maximum active current ramp rate (dipmax). It is project dependent - * parameter. - */ - IEC61970::Base::Domain::PU dipmax; - /** - * Maximum reactive current ramp rate (diqmax). It is project dependent - * parameter. - */ - IEC61970::Base::Domain::PU diqmax; - - }; - - } - - } - - } - -} -#endif // WINDGENTURBINETYPE3IEC_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindGenTurbineType3aIEC.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindGenTurbineType3aIEC.cpp deleted file mode 100644 index 226581181..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindGenTurbineType3aIEC.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindGenTurbineType3aIEC.cpp -// Implementation of the Class WindGenTurbineType3aIEC -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#include "WindGenTurbineType3aIEC.h" - -using IEC61970::Dynamics::StandardModels::WindDynamics::WindGenTurbineType3aIEC; - - -WindGenTurbineType3aIEC::WindGenTurbineType3aIEC(){ - -} - - - -WindGenTurbineType3aIEC::~WindGenTurbineType3aIEC(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindGenTurbineType3aIEC.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindGenTurbineType3aIEC.h deleted file mode 100644 index 9c9d565be..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindGenTurbineType3aIEC.h +++ /dev/null @@ -1,59 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindGenTurbineType3aIEC.h -// Implementation of the Class WindGenTurbineType3aIEC -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#ifndef WINDGENTURBINETYPE3AIEC_H -#define WINDGENTURBINETYPE3AIEC_H - -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindGenTurbineType3IEC.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace WindDynamics - { - /** - * IEC Type 3A generator set model. - * - * Reference: IEC Standard 61400-27-1 Section 6.6.3.2. - */ - class WindGenTurbineType3aIEC : public IEC61970::Dynamics::StandardModels::WindDynamics::WindGenTurbineType3IEC - { - - public: - WindGenTurbineType3aIEC(); - virtual ~WindGenTurbineType3aIEC(); - /** - * Current PI controller proportional gain (KPc). It is type dependent - * parameter. - */ - IEC61970::Base::Domain::Float kpc; - /** - * Current PI controller integration time constant (TIc). It is type - * dependent parameter. - */ - IEC61970::Base::Domain::Seconds tic; - /** - * Electromagnetic transient reactance (xS). It is type dependent - * parameter. - */ - IEC61970::Base::Domain::PU xs; - - }; - - } - - } - - } - -} -#endif // WINDGENTURBINETYPE3AIEC_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindGenTurbineType3bIEC.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindGenTurbineType3bIEC.cpp deleted file mode 100644 index 9cf4665e0..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindGenTurbineType3bIEC.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindGenTurbineType3bIEC.cpp -// Implementation of the Class WindGenTurbineType3bIEC -// Original author: civanov -/////////////////////////////////////////////////////////// - -#include "WindGenTurbineType3bIEC.h" - -using IEC61970::Dynamics::StandardModels::WindDynamics::WindGenTurbineType3bIEC; - - -WindGenTurbineType3bIEC::WindGenTurbineType3bIEC(){ - -} - - - -WindGenTurbineType3bIEC::~WindGenTurbineType3bIEC(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindGenTurbineType3bIEC.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindGenTurbineType3bIEC.h deleted file mode 100644 index c06e9dedf..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindGenTurbineType3bIEC.h +++ /dev/null @@ -1,74 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindGenTurbineType3bIEC.h -// Implementation of the Class WindGenTurbineType3bIEC -// Original author: civanov -/////////////////////////////////////////////////////////// - -#ifndef WINDGENTURBINETYPE3BIEC_H -#define WINDGENTURBINETYPE3BIEC_H - -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindGenTurbineType3IEC.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace WindDynamics - { - /** - * IEC Type 3B generator set model. - * - * Reference: IEC Standard 61400-27-1 Section 6.6.3.3. - */ - class WindGenTurbineType3bIEC : public IEC61970::Dynamics::StandardModels::WindDynamics::WindGenTurbineType3IEC - { - - public: - WindGenTurbineType3bIEC(); - virtual ~WindGenTurbineType3bIEC(); - /** - * Crowbar duration versus voltage variation look-up table (fduCW()). - * It is case dependent parameter. - */ - IEC61970::Base::Domain::Float fducw; - /** - * Crowbar control mode (MWTcwp). - *
    - *
  • true = 1 in the model
  • - *
  • false = 0 in the model.
  • - *
- * The parameter is case dependent parameter. - */ - IEC61970::Base::Domain::Boolean mwtcwp; - /** - * Current generation Time constant (Tg). It is type dependent - * parameter. - */ - IEC61970::Base::Domain::Seconds tg; - /** - * Time constant for crowbar washout filter (Two). It is case - * dependent parameter. - */ - IEC61970::Base::Domain::Seconds two; - /** - * Electromagnetic transient reactance (xS). It is type dependent - * parameter. - */ - IEC61970::Base::Domain::PU xs; - - }; - - } - - } - - } - -} -#endif // WINDGENTURBINETYPE3BIEC_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindGenType4IEC.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindGenType4IEC.cpp deleted file mode 100644 index 609e75b36..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindGenType4IEC.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindGenType4IEC.cpp -// Implementation of the Class WindGenType4IEC -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#include "WindGenType4IEC.h" - -using IEC61970::Dynamics::StandardModels::WindDynamics::WindGenType4IEC; - - -WindGenType4IEC::WindGenType4IEC(){ - -} - - - -WindGenType4IEC::~WindGenType4IEC(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindGenType4IEC.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindGenType4IEC.h deleted file mode 100644 index c66d5aca6..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindGenType4IEC.h +++ /dev/null @@ -1,62 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindGenType4IEC.h -// Implementation of the Class WindGenType4IEC -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#ifndef WINDGENTYPE4IEC_H -#define WINDGENTYPE4IEC_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindTurbineType3or4IEC.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace WindDynamics - { - /** - * IEC Type 4 generator set model. - * - * Reference: IEC Standard 61400-27-1 Section 6.6.3.4. - */ - class WindGenType4IEC : public IEC61970::Dynamics::StandardModels::WindDynamics::WindTurbineType3or4IEC - { - - public: - WindGenType4IEC(); - virtual ~WindGenType4IEC(); - /** - * Maximum active current ramp rate (dipmax). It is project dependent - * parameter. - */ - IEC61970::Base::Domain::PU dipmax; - /** - * Maximum reactive current ramp rate (diqmax). It is project dependent - * parameter. - */ - IEC61970::Base::Domain::PU diqmax; - /** - * Minimum reactive current ramp rate (diqmin). It is case - * dependent parameter. - */ - IEC61970::Base::Domain::PU diqmin; - /** - * Time constant (Tg). It is type dependent parameter. - */ - IEC61970::Base::Domain::Seconds tg; - - }; - - } - - } - - } - -} -#endif // WINDGENTYPE4IEC_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindLVRTQcontrolModesKind.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindLVRTQcontrolModesKind.h deleted file mode 100644 index 65dfb0dd2..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindLVRTQcontrolModesKind.h +++ /dev/null @@ -1,48 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindLVRTQcontrolModesKind.h -// Implementation of the Class WindLVRTQcontrolModesKind -// Original author: civanov -/////////////////////////////////////////////////////////// - -#ifndef WINDLVRTQCONTROLMODESKIND_H -#define WINDLVRTQCONTROLMODESKIND_H - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace WindDynamics - { - /** - * LVRT Q control modes MqLVRT. - */ - enum class WindLVRTQcontrolModesKind - { - /** - * Voltage dependent reactive current injection (MLVRT,1). - */ - _undef = -1, mode1, - /** - * Reactive current injection controlled as the pre-fault value plus an additional - * voltage dependent reactive current injection (MLVRT,2). - */ - mode2, - /** - * Reactive current injection controlled as the pre-fault value plus an additional - * voltage dependent reactive current injection during fault, and as the pre-fault - * value plus an additional constant reactive current injection post fault - * (MLVRT,3). - */ - mode3 - }; - - } - - } - - } - -} -#endif // WINDLVRTQCONTROLMODESKIND_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindLookupTableFunctionKind.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindLookupTableFunctionKind.h deleted file mode 100644 index 65acdc30a..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindLookupTableFunctionKind.h +++ /dev/null @@ -1,60 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindLookupTableFunctionKind.h -// Implementation of the Class WindLookupTableFunctionKind -// Original author: civanov -/////////////////////////////////////////////////////////// - -#ifndef WINDLOOKUPTABLEFUNCTIONKIND_H -#define WINDLOOKUPTABLEFUNCTIONKIND_H - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace WindDynamics - { - /** - * Function of the lookup table. - */ - enum class WindLookupTableFunctionKind - { - /** - * Power versus slip lookup table (fpslip()). It is used for rotor - * resistance control model, IEC 61400-27-1, section 6.6.5.2. - */ - _undef = -1, fpslip, - /** - * Power vs. speed lookup table (fpomega()). It is used for P control - * model type 3, IEC 61400-27-1, section 6.6.5.3. - */ - fpomega, - /** - * Lookup table for voltage dependency of active current limits - * (ipVDL()). It is used for current limitation model, IEC 61400-27-1, - * section 6.6.5.7. - */ - ipvdl, - /** - * Lookup table for voltage dependency of reactive current limits - * (iqVDL()). It is used for current limitation model, IEC 61400-27-1, - * section 6.6.5.7. - */ - iqvdl, - /** - * Power vs. frequency lookup table (fdpf()). It is used for - * wind power plant frequency and active power control model, IEC 61400-27-1, - * Annex E. - */ - fdpf - }; - - } - - } - - } - -} -#endif // WINDLOOKUPTABLEFUNCTIONKIND_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindMechIEC.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindMechIEC.cpp deleted file mode 100644 index 9feb308dd..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindMechIEC.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindMechIEC.cpp -// Implementation of the Class WindMechIEC -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#include "WindMechIEC.h" - -using IEC61970::Dynamics::StandardModels::WindDynamics::WindMechIEC; - - -WindMechIEC::WindMechIEC() - : WindTurbineType4bIEC(nullptr), WindTurbineType1or2IEC(nullptr), WindGenTurbineType3IEC(nullptr) -{ - -} - - - -WindMechIEC::~WindMechIEC(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindMechIEC.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindMechIEC.h deleted file mode 100644 index 429e44e1d..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindMechIEC.h +++ /dev/null @@ -1,79 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindMechIEC.h -// Implementation of the Class WindMechIEC -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#ifndef WINDMECHIEC_H -#define WINDMECHIEC_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindTurbineType4bIEC.h" -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindTurbineType1or2IEC.h" -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindGenTurbineType3IEC.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace WindDynamics - { - /** - * Two mass model. - * - * Reference: IEC Standard 61400-27-1 Section 6.6.2.1. - */ - class WindMechIEC : public IEC61970::Base::Core::IdentifiedObject - { - - public: - WindMechIEC(); - virtual ~WindMechIEC(); - /** - * Drive train damping (cdrt). It is type - * dependent parameter. - */ - IEC61970::Base::Domain::PU cdrt; - /** - * Inertia constant of generator (Hgen). It is type dependent - * parameter. - */ - IEC61970::Base::Domain::Seconds hgen; - /** - * Inertia constant of wind turbine rotor (HWTR). It is type - * dependent parameter. - */ - IEC61970::Base::Domain::Seconds hwtr; - /** - * Drive train stiffness (kdrt). It is type dependent - * parameter. - */ - IEC61970::Base::Domain::PU kdrt; - /** - * Wind turbine type 4B model with which this wind mechanical model is associated. - */ - IEC61970::Dynamics::StandardModels::WindDynamics::WindTurbineType4bIEC *WindTurbineType4bIEC; - /** - * Wind generator type 1 or 2 model with which this wind mechanical model is - * associated. - */ - IEC61970::Dynamics::StandardModels::WindDynamics::WindTurbineType1or2IEC *WindTurbineType1or2IEC; - /** - * Wind turbine Type 3 model with which this wind mechanical model is associated. - */ - IEC61970::Dynamics::StandardModels::WindDynamics::WindGenTurbineType3IEC *WindGenTurbineType3IEC; - - }; - - } - - } - - } - -} -#endif // WINDMECHIEC_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindPitchContEmulIEC.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindPitchContEmulIEC.cpp deleted file mode 100644 index 38e4f0191..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindPitchContEmulIEC.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindPitchContEmulIEC.cpp -// Implementation of the Class WindPitchContEmulIEC -// Original author: civanov -/////////////////////////////////////////////////////////// - -#include "WindPitchContEmulIEC.h" - -using IEC61970::Dynamics::StandardModels::WindDynamics::WindPitchContEmulIEC; - - -WindPitchContEmulIEC::WindPitchContEmulIEC() - : WindGenTurbineType2IEC(nullptr) -{ - -} - - - -WindPitchContEmulIEC::~WindPitchContEmulIEC(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindPitchContEmulIEC.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindPitchContEmulIEC.h deleted file mode 100644 index 4612d4b84..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindPitchContEmulIEC.h +++ /dev/null @@ -1,99 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindPitchContEmulIEC.h -// Implementation of the Class WindPitchContEmulIEC -// Original author: civanov -/////////////////////////////////////////////////////////// - -#ifndef WINDPITCHCONTEMULIEC_H -#define WINDPITCHCONTEMULIEC_H - -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindGenTurbineType2IEC.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace WindDynamics - { - /** - * Pitch control emulator model. - * - * Reference: IEC Standard 61400-27-1 Section 6.6.5.1. - */ - class WindPitchContEmulIEC : public IEC61970::Base::Core::IdentifiedObject - { - - public: - WindPitchContEmulIEC(); - virtual ~WindPitchContEmulIEC(); - /** - * Power error gain (Kdroop). It is case dependent parameter. - */ - IEC61970::Base::Domain::Float kdroop; - /** - * Pitch control emulator integral constant (KI,pce). It is type - * dependent parameter. - */ - IEC61970::Base::Domain::Float kipce; - /** - * Aerodynamic power change vs. omegaWTR change - * (Komegaaero). It is case dependent parameter. - */ - IEC61970::Base::Domain::PU komegaaero; - /** - * Pitch control emulator proportional constant (KP,pce). It is - * type dependent parameter. - */ - IEC61970::Base::Domain::Float kppce; - /** - * Rotor speed in initial steady state (omegaref). It is case dependent - * parameter. - */ - IEC61970::Base::Domain::PU omegaref; - /** - * Maximum steady state power (pimax). It is case dependent - * parameter. - */ - IEC61970::Base::Domain::PU pimax; - /** - * Minimum steady state power (pimin). It is case dependent - * parameter. - */ - IEC61970::Base::Domain::PU pimin; - /** - * First time constant in pitch control lag (T1). It is type - * dependent parameter. - */ - IEC61970::Base::Domain::Seconds t1; - /** - * Second time constant in pitch control lag (T2). It is type - * dependent parameter. - */ - IEC61970::Base::Domain::Seconds t2; - /** - * Time constant in generator air gap power lag (Tpe). It is - * type dependent parameter. - */ - IEC61970::Base::Domain::Seconds tpe; - /** - * Wind turbine type 2 model with which this Pitch control emulator model is - * associated. - */ - IEC61970::Dynamics::StandardModels::WindDynamics::WindGenTurbineType2IEC *WindGenTurbineType2IEC; - - }; - - } - - } - - } - -} -#endif // WINDPITCHCONTEMULIEC_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindPlantDynamics.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindPlantDynamics.cpp deleted file mode 100644 index a1107dcab..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindPlantDynamics.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindPlantDynamics.cpp -// Implementation of the Class WindPlantDynamics -// Original author: civanov -/////////////////////////////////////////////////////////// - -#include "WindPlantDynamics.h" - -using IEC61970::Dynamics::StandardModels::WindDynamics::WindPlantDynamics; - - -WindPlantDynamics::WindPlantDynamics() - : RemoteInputSignal(nullptr) -{ - -} - - - -WindPlantDynamics::~WindPlantDynamics(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindPlantDynamics.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindPlantDynamics.h deleted file mode 100644 index 4ac4b9549..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindPlantDynamics.h +++ /dev/null @@ -1,52 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindPlantDynamics.h -// Implementation of the Class WindPlantDynamics -// Original author: civanov -/////////////////////////////////////////////////////////// - -#ifndef WINDPLANTDYNAMICS_H -#define WINDPLANTDYNAMICS_H - -#include - -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindTurbineType3or4Dynamics.h" -#include "IEC61970/Dynamics/StandardModels/DynamicsFunctionBlock.h" -#include "IEC61970/Dynamics/StandardInterconnections/RemoteInputSignal.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace WindDynamics - { - /** - * Parent class supporting relationships to wind turbines Type 3 and 4 and wind - * plant IEC and user defined wind plants including their control models. - */ - class WindPlantDynamics : public IEC61970::Dynamics::StandardModels::DynamicsFunctionBlock - { - - public: - WindPlantDynamics(); - virtual ~WindPlantDynamics(); - /** - * The wind turbine type 3 or 4 associated with this wind plant. - */ - std::list WindTurbineType3or4Dynamics; - /** - * The remote signal with which this power plant is associated. - */ - IEC61970::Dynamics::StandardInterconnections::RemoteInputSignal *RemoteInputSignal; - - }; - - } - - } - - } - -} -#endif // WINDPLANTDYNAMICS_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindPlantFreqPcontrolIEC.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindPlantFreqPcontrolIEC.cpp deleted file mode 100644 index a12057a1b..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindPlantFreqPcontrolIEC.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindPlantFreqPcontrolIEC.cpp -// Implementation of the Class WindPlantFreqPcontrolIEC -// Original author: civanov -/////////////////////////////////////////////////////////// - -#include "WindPlantFreqPcontrolIEC.h" - -using IEC61970::Dynamics::StandardModels::WindDynamics::WindPlantFreqPcontrolIEC; - - -WindPlantFreqPcontrolIEC::WindPlantFreqPcontrolIEC() - : WindPlantIEC(nullptr) -{ - -} - - - -WindPlantFreqPcontrolIEC::~WindPlantFreqPcontrolIEC(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindPlantFreqPcontrolIEC.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindPlantFreqPcontrolIEC.h deleted file mode 100644 index ee3d67367..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindPlantFreqPcontrolIEC.h +++ /dev/null @@ -1,102 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindPlantFreqPcontrolIEC.h -// Implementation of the Class WindPlantFreqPcontrolIEC -// Original author: civanov -/////////////////////////////////////////////////////////// - -#ifndef WINDPLANTFREQPCONTROLIEC_H -#define WINDPLANTFREQPCONTROLIEC_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindPlantIEC.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace WindDynamics - { - /** - * Frequency and active power controller model. - * - * Reference: IEC Standard 61400-27-1 Annex E. - */ - class WindPlantFreqPcontrolIEC : public IEC61970::Base::Core::IdentifiedObject - { - - public: - WindPlantFreqPcontrolIEC(); - virtual ~WindPlantFreqPcontrolIEC(); - /** - * Maximum ramp rate of pWTref request from the plant controller - * to the wind turbines (dprefmax). It is project dependent - * parameter. - */ - IEC61970::Base::Domain::PU dprefmax; - /** - * Minimum (negative) ramp rate of pWTref request from the plant - * controller to the wind turbines (dprefmin). It is project - * dependent parameter. - */ - IEC61970::Base::Domain::PU dprefmin; - /** - * Plant P controller integral gain (KIWPp). It is type - * dependent parameter. - */ - IEC61970::Base::Domain::Float kiwpp; - /** - * Plant P controller proportional gain (KPWPp). It is type - * dependent parameter. - */ - IEC61970::Base::Domain::Float kpwpp; - /** - * Maximum pWTref request from the plant controller to the wind - * turbines (prefmax). It is type dependent parameter. - */ - IEC61970::Base::Domain::PU prefmax; - /** - * Minimum pWTref request from the plant controller to the wind - * turbines (prefmin). It is type dependent parameter. - */ - IEC61970::Base::Domain::PU prefmin; - /** - * Lead time constant in reference value transfer function - * (Tpft). It is type dependent parameter. - */ - IEC61970::Base::Domain::Seconds tpft; - /** - * Lag time constant in reference value transfer function (Tpfv). - * It is type dependent parameter. - */ - IEC61970::Base::Domain::Seconds tpfv; - /** - * Filter time constant for frequency measurement (TWPffilt). It - * is type dependent parameter. - */ - IEC61970::Base::Domain::Seconds twpffilt; - /** - * Filter time constant for active power measurement (TWPpfilt). - * It is type dependent parameter. - */ - IEC61970::Base::Domain::Seconds twppfilt; - /** - * Wind plant model with which this wind plant frequency and active power control - * is associated. - */ - IEC61970::Dynamics::StandardModels::WindDynamics::WindPlantIEC *WindPlantIEC; - - }; - - } - - } - - } - -} -#endif // WINDPLANTFREQPCONTROLIEC_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindPlantIEC.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindPlantIEC.cpp deleted file mode 100644 index 69bf1623d..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindPlantIEC.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindPlantIEC.cpp -// Implementation of the Class WindPlantIEC -// Original author: civanov -/////////////////////////////////////////////////////////// - -#include "WindPlantIEC.h" - -using IEC61970::Dynamics::StandardModels::WindDynamics::WindPlantIEC; - - -WindPlantIEC::WindPlantIEC() - : WindPlantReactiveControlIEC(nullptr) -{ - -} - - - -WindPlantIEC::~WindPlantIEC(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindPlantIEC.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindPlantIEC.h deleted file mode 100644 index a3434a432..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindPlantIEC.h +++ /dev/null @@ -1,46 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindPlantIEC.h -// Implementation of the Class WindPlantIEC -// Original author: civanov -/////////////////////////////////////////////////////////// - -#ifndef WINDPLANTIEC_H -#define WINDPLANTIEC_H - -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindPlantDynamics.h" -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindPlantReactiveControlIEC.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace WindDynamics - { - /** - * Simplified IEC type plant level model. - * - * Reference: IEC 61400-27-1, AnnexE. - */ - class WindPlantIEC : public IEC61970::Dynamics::StandardModels::WindDynamics::WindPlantDynamics - { - - public: - WindPlantIEC(); - virtual ~WindPlantIEC(); - /** - * Wind plant model with which this wind reactive control is associated. - */ - IEC61970::Dynamics::StandardModels::WindDynamics::WindPlantReactiveControlIEC *WindPlantReactiveControlIEC; - - }; - - } - - } - - } - -} -#endif // WINDPLANTIEC_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindPlantReactiveControlIEC.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindPlantReactiveControlIEC.cpp deleted file mode 100644 index 6dc44eddc..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindPlantReactiveControlIEC.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindPlantReactiveControlIEC.cpp -// Implementation of the Class WindPlantReactiveControlIEC -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#include "WindPlantReactiveControlIEC.h" - -using IEC61970::Dynamics::StandardModels::WindDynamics::WindPlantReactiveControlIEC; - - -WindPlantReactiveControlIEC::WindPlantReactiveControlIEC(){ - -} - - - -WindPlantReactiveControlIEC::~WindPlantReactiveControlIEC(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindPlantReactiveControlIEC.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindPlantReactiveControlIEC.h deleted file mode 100644 index 5be5c9d18..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindPlantReactiveControlIEC.h +++ /dev/null @@ -1,118 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindPlantReactiveControlIEC.h -// Implementation of the Class WindPlantReactiveControlIEC -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#ifndef WINDPLANTREACTIVECONTROLIEC_H -#define WINDPLANTREACTIVECONTROLIEC_H - -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace WindDynamics - { - /** - * Simplified plant voltage and reactive power control model for use with type 3 - * and type 4 wind turbine models. - * - * Reference: IEC Standard 61400-27-1 Annex E. - */ - class WindPlantReactiveControlIEC : public IEC61970::Base::Core::IdentifiedObject - { - - public: - WindPlantReactiveControlIEC(); - virtual ~WindPlantReactiveControlIEC(); - /** - * Plant Q controller integral gain (KIWPx). It is type - * dependent parameter. - */ - IEC61970::Base::Domain::Float kiwpx; - /** - * Plant Q controller proportional gain (KPWPx). It is type - * dependent parameter. - */ - IEC61970::Base::Domain::Float kpwpx; - /** - * Plant voltage control droop (KWPqu). It is project dependent - * parameter. - */ - IEC61970::Base::Domain::PU kwpqu; - /** - * Power factor control modes selector (MWPpf). Used only if - * mwpu is set to false. - * true = 1: power factor control - * false = 0: reactive power control. - * It is project dependent parameter. - */ - IEC61970::Base::Domain::Boolean mwppf; - /** - * Reactive power control modes selector (MWPu). - * true = 1: voltage control - * false = 0: reactive power control. - * It is project dependent parameter. - */ - IEC61970::Base::Domain::Boolean mwpu; - /** - * Filter time constant for active power measurement (TWPpfilt). - * It is type dependent parameter. - */ - IEC61970::Base::Domain::Seconds twppfilt; - /** - * Filter time constant for reactive power measurement - * (TWPqfilt). It is type dependent parameter. - */ - IEC61970::Base::Domain::Seconds twpqfilt; - /** - * Filter time constant for voltage measurement (TWPufilt). It - * is type dependent parameter. - */ - IEC61970::Base::Domain::Seconds twpufilt; - /** - * Lead time constant in reference value transfer function - * (Txft). It is type dependent parameter. - */ - IEC61970::Base::Domain::Seconds txft; - /** - * Lag time constant in reference value transfer function (Txfv). - * It is type dependent parameter. - */ - IEC61970::Base::Domain::Seconds txfv; - /** - * Voltage threshold for LVRT detection in q control (uWPqdip). - * It is type dependent parameter. - */ - IEC61970::Base::Domain::PU uwpqdip; - /** - * Maximum xWTref (qWTref or delta - * uWTref) request from the plant controller - * (xrefmax). It is project dependent parameter. - */ - IEC61970::Base::Domain::PU xrefmax; - /** - * Minimum xWTref (qWTref or - * deltauWTref) request from the plant controller - * (xrefmin). It is project dependent parameter. - */ - IEC61970::Base::Domain::PU xrefmin; - - }; - - } - - } - - } - -} -#endif // WINDPLANTREACTIVECONTROLIEC_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindProtectionIEC.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindProtectionIEC.cpp deleted file mode 100644 index e73136282..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindProtectionIEC.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindProtectionIEC.cpp -// Implementation of the Class WindProtectionIEC -// Original author: civanov -/////////////////////////////////////////////////////////// - -#include "WindProtectionIEC.h" - -using IEC61970::Dynamics::StandardModels::WindDynamics::WindProtectionIEC; - - -WindProtectionIEC::WindProtectionIEC() - : WindTurbineType3or4IEC(nullptr), WindTurbineType1or2IEC(nullptr) -{ - -} - - - -WindProtectionIEC::~WindProtectionIEC(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindProtectionIEC.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindProtectionIEC.h deleted file mode 100644 index bf6f87ba0..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindProtectionIEC.h +++ /dev/null @@ -1,96 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindProtectionIEC.h -// Implementation of the Class WindProtectionIEC -// Original author: civanov -/////////////////////////////////////////////////////////// - -#ifndef WINDPROTECTIONIEC_H -#define WINDPROTECTIONIEC_H - -#include "IEC61970/Base/Domain/PU.h" -#include "IEC61970/Base/Domain/Seconds.h" -#include "IEC61970/Base/Core/IdentifiedObject.h" -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindTurbineType3or4IEC.h" -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindTurbineType1or2IEC.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace WindDynamics - { - /** - * The grid protection model includes protection against over and under voltage, - * and against over and under frequency. - * - * Reference: IEC Standard 614000-27-1 Section 6.6.6. - */ - class WindProtectionIEC : public IEC61970::Base::Core::IdentifiedObject - { - - public: - WindProtectionIEC(); - virtual ~WindProtectionIEC(); - /** - * Set of wind turbine over frequency protection levels - * (fover). It is project dependent parameter. - */ - IEC61970::Base::Domain::PU fover; - /** - * Set of wind turbine under frequency protection levels - * (funder). It is project dependent parameter. - */ - IEC61970::Base::Domain::PU funder; - /** - * Set of corresponding wind turbine over frequency protection disconnection times - * (Tfover). It is project dependent parameter. - */ - IEC61970::Base::Domain::Seconds tfover; - /** - * Set of corresponding wind turbine under frequency protection disconnection - * times (Tfunder). It is project dependent parameter. - */ - IEC61970::Base::Domain::Seconds tfunder; - /** - * Set of corresponding wind turbine over voltage protection disconnection times - * (Tuover). It is project dependent parameter. - */ - IEC61970::Base::Domain::Seconds tuover; - /** - * Set of corresponding wind turbine under voltage protection disconnection times - * (Tuunder). It is project dependent parameter. - */ - IEC61970::Base::Domain::Seconds tuunder; - /** - * Set of wind turbine over voltage protection levels - * (uover). It is project dependent parameter. - */ - IEC61970::Base::Domain::PU uover; - /** - * Set of wind turbine under voltage protection levels - * (uunder). It is project dependent parameter. - */ - IEC61970::Base::Domain::PU uunder; - /** - * Wind generator type 3 or 4 model with which this wind turbine protection model - * is associated. - */ - IEC61970::Dynamics::StandardModels::WindDynamics::WindTurbineType3or4IEC *WindTurbineType3or4IEC; - /** - * Wind generator type 1 or 2 model with which this wind turbine protection model - * is associated. - */ - IEC61970::Dynamics::StandardModels::WindDynamics::WindTurbineType1or2IEC *WindTurbineType1or2IEC; - - }; - - } - - } - - } - -} -#endif // WINDPROTECTIONIEC_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindQcontrolModesKind.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindQcontrolModesKind.h deleted file mode 100644 index ceb33f587..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindQcontrolModesKind.h +++ /dev/null @@ -1,49 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindQcontrolModesKind.h -// Implementation of the Class WindQcontrolModesKind -// Original author: civanov -/////////////////////////////////////////////////////////// - -#ifndef WINDQCONTROLMODESKIND_H -#define WINDQCONTROLMODESKIND_H - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace WindDynamics - { - /** - * General wind turbine Q control modes MqG. - */ - enum class WindQcontrolModesKind - { - /** - * Voltage control (MG,u). - */ - _undef = -1, voltage, - /** - * Reactive power control (MG,q). - */ - reactivePower, - /** - * Open loop reactive power control (only used with closed loop at plant level) - * (MG,qol). - */ - openLoopReactivePower, - /** - * Power factor control (MG,pf). - */ - powerFactor - }; - - } - - } - - } - -} -#endif // WINDQCONTROLMODESKIND_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindTurbineType1or2Dynamics.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindTurbineType1or2Dynamics.cpp deleted file mode 100644 index ff42bb599..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindTurbineType1or2Dynamics.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindTurbineType1or2Dynamics.cpp -// Implementation of the Class WindTurbineType1or2Dynamics -// Original author: civanov -/////////////////////////////////////////////////////////// - -#include "WindTurbineType1or2Dynamics.h" - -using IEC61970::Dynamics::StandardModels::WindDynamics::WindTurbineType1or2Dynamics; - - -WindTurbineType1or2Dynamics::WindTurbineType1or2Dynamics() - : AsynchronousMachineDynamics(nullptr), RemoteInputSignal(nullptr) -{ - -} - - - -WindTurbineType1or2Dynamics::~WindTurbineType1or2Dynamics(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindTurbineType1or2Dynamics.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindTurbineType1or2Dynamics.h deleted file mode 100644 index 5d1097646..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindTurbineType1or2Dynamics.h +++ /dev/null @@ -1,51 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindTurbineType1or2Dynamics.h -// Implementation of the Class WindTurbineType1or2Dynamics -// Original author: civanov -/////////////////////////////////////////////////////////// - -#ifndef WINDTURBINETYPE1OR2DYNAMICS_H -#define WINDTURBINETYPE1OR2DYNAMICS_H - -#include "IEC61970/Dynamics/StandardModels/AsynchronousMachineDynamics/AsynchronousMachineDynamics.h" -#include "IEC61970/Dynamics/StandardModels/DynamicsFunctionBlock.h" -#include "IEC61970/Dynamics/StandardInterconnections/RemoteInputSignal.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace WindDynamics - { - /** - * Parent class supporting relationships to wind turbines Type 1 and 2 and their - * control models. - */ - class WindTurbineType1or2Dynamics : public IEC61970::Dynamics::StandardModels::DynamicsFunctionBlock - { - - public: - WindTurbineType1or2Dynamics(); - virtual ~WindTurbineType1or2Dynamics(); - /** - * Asynchronous machine model with which this wind generator type 1 or 2 model is - * associated. - */ - IEC61970::Dynamics::StandardModels::AsynchronousMachineDynamics::AsynchronousMachineDynamics *AsynchronousMachineDynamics; - /** - * Remote input signal used by this wind generator Type 1 or Type 2 model. - */ - IEC61970::Dynamics::StandardInterconnections::RemoteInputSignal *RemoteInputSignal; - - }; - - } - - } - - } - -} -#endif // WINDTURBINETYPE1OR2DYNAMICS_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindTurbineType1or2IEC.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindTurbineType1or2IEC.cpp deleted file mode 100644 index 442a43fb3..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindTurbineType1or2IEC.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindTurbineType1or2IEC.cpp -// Implementation of the Class WindTurbineType1or2IEC -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#include "WindTurbineType1or2IEC.h" - -using IEC61970::Dynamics::StandardModels::WindDynamics::WindTurbineType1or2IEC; - - -WindTurbineType1or2IEC::WindTurbineType1or2IEC(){ - -} - - - -WindTurbineType1or2IEC::~WindTurbineType1or2IEC(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindTurbineType1or2IEC.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindTurbineType1or2IEC.h deleted file mode 100644 index 988817387..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindTurbineType1or2IEC.h +++ /dev/null @@ -1,42 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindTurbineType1or2IEC.h -// Implementation of the Class WindTurbineType1or2IEC -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#ifndef WINDTURBINETYPE1OR2IEC_H -#define WINDTURBINETYPE1OR2IEC_H - -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindTurbineType1or2Dynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace WindDynamics - { - /** - * Generator model for wind turbine of IEC Type 1 or Type 2 is a standard - * asynchronous generator model. - * - * Reference: IEC Standard 614000-27-1 Section 6.6.3.1. - */ - class WindTurbineType1or2IEC : public IEC61970::Dynamics::StandardModels::WindDynamics::WindTurbineType1or2Dynamics - { - - public: - WindTurbineType1or2IEC(); - virtual ~WindTurbineType1or2IEC(); - - }; - - } - - } - - } - -} -#endif // WINDTURBINETYPE1OR2IEC_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindTurbineType3or4Dynamics.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindTurbineType3or4Dynamics.cpp deleted file mode 100644 index c4550edd0..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindTurbineType3or4Dynamics.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindTurbineType3or4Dynamics.cpp -// Implementation of the Class WindTurbineType3or4Dynamics -// Original author: civanov -/////////////////////////////////////////////////////////// - -#include "WindTurbineType3or4Dynamics.h" - -using IEC61970::Dynamics::StandardModels::WindDynamics::WindTurbineType3or4Dynamics; - - -WindTurbineType3or4Dynamics::WindTurbineType3or4Dynamics() - : RemoteInputSignal(nullptr), WindTurbineType3or4(nullptr) -{ - -} - - - -WindTurbineType3or4Dynamics::~WindTurbineType3or4Dynamics(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindTurbineType3or4Dynamics.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindTurbineType3or4Dynamics.h deleted file mode 100644 index 0f2c260aa..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindTurbineType3or4Dynamics.h +++ /dev/null @@ -1,47 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindTurbineType3or4Dynamics.h -// Implementation of the Class WindTurbineType3or4Dynamics -// Original author: civanov -/////////////////////////////////////////////////////////// - -#ifndef WINDTURBINETYPE3OR4DYNAMICS_H -#define WINDTURBINETYPE3OR4DYNAMICS_H - -#include "IEC61970/Dynamics/StandardModels/DynamicsFunctionBlock.h" -#include "IEC61970/Dynamics/StandardInterconnections/RemoteInputSignal.h" -#include "IEC61970/Base/Wires/WindTurbineType3or4.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace WindDynamics - { - /** - * Parent class supporting relationships to wind turbines Type 3 and 4 and wind - * plant including their control models. - */ - class WindTurbineType3or4Dynamics : public IEC61970::Dynamics::StandardModels::DynamicsFunctionBlock - { - - public: - WindTurbineType3or4Dynamics(); - virtual ~WindTurbineType3or4Dynamics(); - /** - * Remote input signal used by these wind turbine Type 3 or 4 models. - */ - IEC61970::Dynamics::StandardInterconnections::RemoteInputSignal *RemoteInputSignal; - IEC61970::Base::Wires::WindTurbineType3or4 *WindTurbineType3or4; - - }; - - } - - } - - } - -} -#endif // WINDTURBINETYPE3OR4DYNAMICS_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindTurbineType3or4IEC.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindTurbineType3or4IEC.cpp deleted file mode 100644 index 8634cf5e6..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindTurbineType3or4IEC.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindTurbineType3or4IEC.cpp -// Implementation of the Class WindTurbineType3or4IEC -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#include "WindTurbineType3or4IEC.h" - -using IEC61970::Dynamics::StandardModels::WindDynamics::WindTurbineType3or4IEC; - - -WindTurbineType3or4IEC::WindTurbineType3or4IEC(){ - -} - - - -WindTurbineType3or4IEC::~WindTurbineType3or4IEC(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindTurbineType3or4IEC.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindTurbineType3or4IEC.h deleted file mode 100644 index b9ab48636..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindTurbineType3or4IEC.h +++ /dev/null @@ -1,40 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindTurbineType3or4IEC.h -// Implementation of the Class WindTurbineType3or4IEC -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#ifndef WINDTURBINETYPE3OR4IEC_H -#define WINDTURBINETYPE3OR4IEC_H - -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindTurbineType3or4Dynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace WindDynamics - { - /** - * Parent class supporting relationships to IEC wind turbines Type 3 and 4 and - * wind plant including their control models. - */ - class WindTurbineType3or4IEC : public IEC61970::Dynamics::StandardModels::WindDynamics::WindTurbineType3or4Dynamics - { - - public: - WindTurbineType3or4IEC(); - virtual ~WindTurbineType3or4IEC(); - - }; - - } - - } - - } - -} -#endif // WINDTURBINETYPE3OR4IEC_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindTurbineType4aIEC.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindTurbineType4aIEC.cpp deleted file mode 100644 index 469b1ee7e..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindTurbineType4aIEC.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindTurbineType4aIEC.cpp -// Implementation of the Class WindTurbineType4aIEC -// Original author: civanov -/////////////////////////////////////////////////////////// - -#include "WindTurbineType4aIEC.h" - -using IEC61970::Dynamics::StandardModels::WindDynamics::WindTurbineType4aIEC; - - -WindTurbineType4aIEC::WindTurbineType4aIEC(){ - -} - - - -WindTurbineType4aIEC::~WindTurbineType4aIEC(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindTurbineType4aIEC.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindTurbineType4aIEC.h deleted file mode 100644 index 32122e607..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindTurbineType4aIEC.h +++ /dev/null @@ -1,41 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindTurbineType4aIEC.h -// Implementation of the Class WindTurbineType4aIEC -// Original author: civanov -/////////////////////////////////////////////////////////// - -#ifndef WINDTURBINETYPE4AIEC_H -#define WINDTURBINETYPE4AIEC_H - -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindGenType4IEC.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace WindDynamics - { - /** - * Wind turbine IEC Type 4A. - * - * Reference: IEC Standard 61400-27-1, section 6.5.5.2. - */ - class WindTurbineType4aIEC : public IEC61970::Dynamics::StandardModels::WindDynamics::WindGenType4IEC - { - - public: - WindTurbineType4aIEC(); - virtual ~WindTurbineType4aIEC(); - - }; - - } - - } - - } - -} -#endif // WINDTURBINETYPE4AIEC_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindTurbineType4bIEC.cpp b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindTurbineType4bIEC.cpp deleted file mode 100644 index 5a340aba3..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindTurbineType4bIEC.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindTurbineType4bIEC.cpp -// Implementation of the Class WindTurbineType4bIEC -// Original author: civanov -/////////////////////////////////////////////////////////// - -#include "WindTurbineType4bIEC.h" - -using IEC61970::Dynamics::StandardModels::WindDynamics::WindTurbineType4bIEC; - - -WindTurbineType4bIEC::WindTurbineType4bIEC(){ - -} - - - -WindTurbineType4bIEC::~WindTurbineType4bIEC(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindTurbineType4bIEC.h b/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindTurbineType4bIEC.h deleted file mode 100644 index 01212493e..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/StandardModels/WindDynamics/WindTurbineType4bIEC.h +++ /dev/null @@ -1,41 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindTurbineType4bIEC.h -// Implementation of the Class WindTurbineType4bIEC -// Original author: civanov -/////////////////////////////////////////////////////////// - -#ifndef WINDTURBINETYPE4BIEC_H -#define WINDTURBINETYPE4BIEC_H - -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindGenType4IEC.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace StandardModels - { - namespace WindDynamics - { - /** - * Wind turbine IEC Type 4A. - * - * Reference: IEC Standard 61400-27-1, section 6.5.5.3. - */ - class WindTurbineType4bIEC : public IEC61970::Dynamics::StandardModels::WindDynamics::WindGenType4IEC - { - - public: - WindTurbineType4bIEC(); - virtual ~WindTurbineType4bIEC(); - - }; - - } - - } - - } - -} -#endif // WINDTURBINETYPE4BIEC_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/AsynchronousMachineUserDefined.cpp b/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/AsynchronousMachineUserDefined.cpp deleted file mode 100644 index 93d09f512..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/AsynchronousMachineUserDefined.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// AsynchronousMachineUserDefined.cpp -// Implementation of the Class AsynchronousMachineUserDefined -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#include "AsynchronousMachineUserDefined.h" - -using IEC61970::Dynamics::UserDefinedModels::AsynchronousMachineUserDefined; - - -AsynchronousMachineUserDefined::AsynchronousMachineUserDefined(){ - -} - - - -AsynchronousMachineUserDefined::~AsynchronousMachineUserDefined(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/AsynchronousMachineUserDefined.h b/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/AsynchronousMachineUserDefined.h deleted file mode 100644 index b9974f08c..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/AsynchronousMachineUserDefined.h +++ /dev/null @@ -1,45 +0,0 @@ -/////////////////////////////////////////////////////////// -// AsynchronousMachineUserDefined.h -// Implementation of the Class AsynchronousMachineUserDefined -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#ifndef ASYNCHRONOUSMACHINEUSERDEFINED_H -#define ASYNCHRONOUSMACHINEUSERDEFINED_H - -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Dynamics/StandardModels/AsynchronousMachineDynamics/AsynchronousMachineDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace UserDefinedModels - { - /** - * Asynchronous machine whose dynamic behaviour is described by a user-defined - * model. - */ - class AsynchronousMachineUserDefined : public IEC61970::Dynamics::StandardModels::AsynchronousMachineDynamics::AsynchronousMachineDynamics - { - - public: - AsynchronousMachineUserDefined(); - virtual ~AsynchronousMachineUserDefined(); - /** - * Behaviour is based on proprietary model as opposed to detailed model. - * true = user-defined model is proprietary with behaviour mutually understood by - * sending and receiving applications and parameters passed as general attributes - * false = user-defined model is explicitly defined in terms of control blocks and - * their input and output signals. - */ - IEC61970::Base::Domain::Boolean proprietary; - - }; - - } - - } - -} -#endif // ASYNCHRONOUSMACHINEUSERDEFINED_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/DiscontinuousExcitationControlUserDefined.cpp b/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/DiscontinuousExcitationControlUserDefined.cpp deleted file mode 100644 index e944e901b..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/DiscontinuousExcitationControlUserDefined.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// DiscontinuousExcitationControlUserDefined.cpp -// Implementation of the Class DiscontinuousExcitationControlUserDefined -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#include "DiscontinuousExcitationControlUserDefined.h" - -using IEC61970::Dynamics::UserDefinedModels::DiscontinuousExcitationControlUserDefined; - - -DiscontinuousExcitationControlUserDefined::DiscontinuousExcitationControlUserDefined(){ - -} - - - -DiscontinuousExcitationControlUserDefined::~DiscontinuousExcitationControlUserDefined(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/DiscontinuousExcitationControlUserDefined.h b/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/DiscontinuousExcitationControlUserDefined.h deleted file mode 100644 index c40c0f058..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/DiscontinuousExcitationControlUserDefined.h +++ /dev/null @@ -1,45 +0,0 @@ -/////////////////////////////////////////////////////////// -// DiscontinuousExcitationControlUserDefined.h -// Implementation of the Class DiscontinuousExcitationControlUserDefined -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#ifndef DISCONTINUOUSEXCITATIONCONTROLUSERDEFINED_H -#define DISCONTINUOUSEXCITATIONCONTROLUSERDEFINED_H - -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Dynamics/StandardModels/DiscontinuousExcitationControlDynamics/DiscontinuousExcitationControlDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace UserDefinedModels - { - /** - * Discontinuous excitation control function block whose dynamic behaviour is - * described by a user-defined model. - */ - class DiscontinuousExcitationControlUserDefined : public IEC61970::Dynamics::StandardModels::DiscontinuousExcitationControlDynamics::DiscontinuousExcitationControlDynamics - { - - public: - DiscontinuousExcitationControlUserDefined(); - virtual ~DiscontinuousExcitationControlUserDefined(); - /** - * Behaviour is based on proprietary model as opposed to detailed model. - * true = user-defined model is proprietary with behaviour mutually understood by - * sending and receiving applications and parameters passed as general attributes - * false = user-defined model is explicitly defined in terms of control blocks and - * their input and output signals. - */ - IEC61970::Base::Domain::Boolean proprietary; - - }; - - } - - } - -} -#endif // DISCONTINUOUSEXCITATIONCONTROLUSERDEFINED_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/ExcitationSystemUserDefined.cpp b/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/ExcitationSystemUserDefined.cpp deleted file mode 100644 index 52ba97c19..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/ExcitationSystemUserDefined.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcitationSystemUserDefined.cpp -// Implementation of the Class ExcitationSystemUserDefined -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#include "ExcitationSystemUserDefined.h" - -using IEC61970::Dynamics::UserDefinedModels::ExcitationSystemUserDefined; - - -ExcitationSystemUserDefined::ExcitationSystemUserDefined(){ - -} - - - -ExcitationSystemUserDefined::~ExcitationSystemUserDefined(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/ExcitationSystemUserDefined.h b/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/ExcitationSystemUserDefined.h deleted file mode 100644 index e73115853..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/ExcitationSystemUserDefined.h +++ /dev/null @@ -1,45 +0,0 @@ -/////////////////////////////////////////////////////////// -// ExcitationSystemUserDefined.h -// Implementation of the Class ExcitationSystemUserDefined -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#ifndef EXCITATIONSYSTEMUSERDEFINED_H -#define EXCITATIONSYSTEMUSERDEFINED_H - -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Dynamics/StandardModels/ExcitationSystemDynamics/ExcitationSystemDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace UserDefinedModels - { - /** - * Excitation system function block whose dynamic behaviour is described by a user-defined model. - */ - class ExcitationSystemUserDefined : public IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics - { - - public: - ExcitationSystemUserDefined(); - virtual ~ExcitationSystemUserDefined(); - /** - * Behaviour is based on proprietary model as opposed to detailed model. - * true = user-defined model is proprietary with behaviour mutually understood by - * sending and receiving applications and parameters passed as general attributes - * false = user-defined model is explicitly defined in terms of control blocks and - * their input and output signals. - */ - IEC61970::Base::Domain::Boolean proprietary; - - }; - - } - - } - -} -#endif // EXCITATIONSYSTEMUSERDEFINED_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/LoadUserDefined.cpp b/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/LoadUserDefined.cpp deleted file mode 100644 index b5e57d46e..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/LoadUserDefined.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// LoadUserDefined.cpp -// Implementation of the Class LoadUserDefined -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#include "LoadUserDefined.h" - -using IEC61970::Dynamics::UserDefinedModels::LoadUserDefined; - - -LoadUserDefined::LoadUserDefined(){ - -} - - - -LoadUserDefined::~LoadUserDefined(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/LoadUserDefined.h b/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/LoadUserDefined.h deleted file mode 100644 index ee2601bec..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/LoadUserDefined.h +++ /dev/null @@ -1,44 +0,0 @@ -/////////////////////////////////////////////////////////// -// LoadUserDefined.h -// Implementation of the Class LoadUserDefined -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#ifndef LOADUSERDEFINED_H -#define LOADUSERDEFINED_H - -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Dynamics/StandardModels/LoadDynamics/LoadDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace UserDefinedModels - { - /** - * Load whose dynamic behaviour is described by a user-defined model. - */ - class LoadUserDefined : public IEC61970::Dynamics::StandardModels::LoadDynamics::LoadDynamics - { - - public: - LoadUserDefined(); - virtual ~LoadUserDefined(); - /** - * Behaviour is based on proprietary model as opposed to detailed model. - * true = user-defined model is proprietary with behaviour mutually understood by - * sending and receiving applications and parameters passed as general attributes - * false = user-defined model is explicitly defined in terms of control blocks and - * their input and output signals. - */ - IEC61970::Base::Domain::Boolean proprietary; - - }; - - } - - } - -} -#endif // LOADUSERDEFINED_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/MechanicalLoadUserDefined.cpp b/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/MechanicalLoadUserDefined.cpp deleted file mode 100644 index c2a873632..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/MechanicalLoadUserDefined.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// MechanicalLoadUserDefined.cpp -// Implementation of the Class MechanicalLoadUserDefined -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#include "MechanicalLoadUserDefined.h" - -using IEC61970::Dynamics::UserDefinedModels::MechanicalLoadUserDefined; - - -MechanicalLoadUserDefined::MechanicalLoadUserDefined(){ - -} - - - -MechanicalLoadUserDefined::~MechanicalLoadUserDefined(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/MechanicalLoadUserDefined.h b/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/MechanicalLoadUserDefined.h deleted file mode 100644 index 666c7ec51..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/MechanicalLoadUserDefined.h +++ /dev/null @@ -1,45 +0,0 @@ -/////////////////////////////////////////////////////////// -// MechanicalLoadUserDefined.h -// Implementation of the Class MechanicalLoadUserDefined -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#ifndef MECHANICALLOADUSERDEFINED_H -#define MECHANICALLOADUSERDEFINED_H - -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Dynamics/StandardModels/MechanicalLoadDynamics/MechanicalLoadDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace UserDefinedModels - { - /** - * Mechanical load function block whose dynamic behaviour is described by a user-defined model. - */ - class MechanicalLoadUserDefined : public IEC61970::Dynamics::StandardModels::MechanicalLoadDynamics::MechanicalLoadDynamics - { - - public: - MechanicalLoadUserDefined(); - virtual ~MechanicalLoadUserDefined(); - /** - * Behaviour is based on proprietary model as opposed to detailed model. - * true = user-defined model is proprietary with behaviour mutually understood by - * sending and receiving applications and parameters passed as general attributes - * false = user-defined model is explicitly defined in terms of control blocks and - * their input and output signals. - */ - IEC61970::Base::Domain::Boolean proprietary; - - }; - - } - - } - -} -#endif // MECHANICALLOADUSERDEFINED_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/OverexcitationLimiterUserDefined.cpp b/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/OverexcitationLimiterUserDefined.cpp deleted file mode 100644 index e9cd864d1..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/OverexcitationLimiterUserDefined.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// OverexcitationLimiterUserDefined.cpp -// Implementation of the Class OverexcitationLimiterUserDefined -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#include "OverexcitationLimiterUserDefined.h" - -using IEC61970::Dynamics::UserDefinedModels::OverexcitationLimiterUserDefined; - - -OverexcitationLimiterUserDefined::OverexcitationLimiterUserDefined(){ - -} - - - -OverexcitationLimiterUserDefined::~OverexcitationLimiterUserDefined(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/OverexcitationLimiterUserDefined.h b/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/OverexcitationLimiterUserDefined.h deleted file mode 100644 index 6763d39f7..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/OverexcitationLimiterUserDefined.h +++ /dev/null @@ -1,45 +0,0 @@ -/////////////////////////////////////////////////////////// -// OverexcitationLimiterUserDefined.h -// Implementation of the Class OverexcitationLimiterUserDefined -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#ifndef OVEREXCITATIONLIMITERUSERDEFINED_H -#define OVEREXCITATIONLIMITERUSERDEFINED_H - -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Dynamics/StandardModels/OverexcitationLimiterDynamics/OverexcitationLimiterDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace UserDefinedModels - { - /** - * Overexcitation limiter system function block whose dynamic behaviour is - * described by a user-defined model. - */ - class OverexcitationLimiterUserDefined : public IEC61970::Dynamics::StandardModels::OverexcitationLimiterDynamics::OverexcitationLimiterDynamics - { - - public: - OverexcitationLimiterUserDefined(); - virtual ~OverexcitationLimiterUserDefined(); - /** - * Behaviour is based on proprietary model as opposed to detailed model. - * true = user-defined model is proprietary with behaviour mutually understood by - * sending and receiving applications and parameters passed as general attributes - * false = user-defined model is explicitly defined in terms of control blocks and - * their input and output signals. - */ - IEC61970::Base::Domain::Boolean proprietary; - - }; - - } - - } - -} -#endif // OVEREXCITATIONLIMITERUSERDEFINED_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/PFVArControllerType1UserDefined.cpp b/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/PFVArControllerType1UserDefined.cpp deleted file mode 100644 index 1f0c1c593..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/PFVArControllerType1UserDefined.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// PFVArControllerType1UserDefined.cpp -// Implementation of the Class PFVArControllerType1UserDefined -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#include "PFVArControllerType1UserDefined.h" - -using IEC61970::Dynamics::UserDefinedModels::PFVArControllerType1UserDefined; - - -PFVArControllerType1UserDefined::PFVArControllerType1UserDefined(){ - -} - - - -PFVArControllerType1UserDefined::~PFVArControllerType1UserDefined(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/PFVArControllerType1UserDefined.h b/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/PFVArControllerType1UserDefined.h deleted file mode 100644 index b1ff1443a..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/PFVArControllerType1UserDefined.h +++ /dev/null @@ -1,45 +0,0 @@ -/////////////////////////////////////////////////////////// -// PFVArControllerType1UserDefined.h -// Implementation of the Class PFVArControllerType1UserDefined -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#ifndef PFVARCONTROLLERTYPE1USERDEFINED_H -#define PFVARCONTROLLERTYPE1USERDEFINED_H - -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Dynamics/StandardModels/PFVArControllerType1Dynamics/PFVArControllerType1Dynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace UserDefinedModels - { - /** - * Power Factor or VAr controller Type I function block whose dynamic behaviour is - * described by a user-defined model. - */ - class PFVArControllerType1UserDefined : public IEC61970::Dynamics::StandardModels::PFVArControllerType1Dynamics::PFVArControllerType1Dynamics - { - - public: - PFVArControllerType1UserDefined(); - virtual ~PFVArControllerType1UserDefined(); - /** - * Behaviour is based on proprietary model as opposed to detailed model. - * true = user-defined model is proprietary with behaviour mutually understood by - * sending and receiving applications and parameters passed as general attributes - * false = user-defined model is explicitly defined in terms of control blocks and - * their input and output signals. - */ - IEC61970::Base::Domain::Boolean proprietary; - - }; - - } - - } - -} -#endif // PFVARCONTROLLERTYPE1USERDEFINED_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/PFVArControllerType2UserDefined.cpp b/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/PFVArControllerType2UserDefined.cpp deleted file mode 100644 index 29b7b3e2f..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/PFVArControllerType2UserDefined.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// PFVArControllerType2UserDefined.cpp -// Implementation of the Class PFVArControllerType2UserDefined -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#include "PFVArControllerType2UserDefined.h" - -using IEC61970::Dynamics::UserDefinedModels::PFVArControllerType2UserDefined; - - -PFVArControllerType2UserDefined::PFVArControllerType2UserDefined(){ - -} - - - -PFVArControllerType2UserDefined::~PFVArControllerType2UserDefined(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/PFVArControllerType2UserDefined.h b/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/PFVArControllerType2UserDefined.h deleted file mode 100644 index 64d738eea..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/PFVArControllerType2UserDefined.h +++ /dev/null @@ -1,45 +0,0 @@ -/////////////////////////////////////////////////////////// -// PFVArControllerType2UserDefined.h -// Implementation of the Class PFVArControllerType2UserDefined -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#ifndef PFVARCONTROLLERTYPE2USERDEFINED_H -#define PFVARCONTROLLERTYPE2USERDEFINED_H - -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Dynamics/StandardModels/PFVArControllerType2Dynamics/PFVArControllerType2Dynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace UserDefinedModels - { - /** - * Power Factor or VAr controller Type II function block whose dynamic behaviour - * is described by a user-defined model. - */ - class PFVArControllerType2UserDefined : public IEC61970::Dynamics::StandardModels::PFVArControllerType2Dynamics::PFVArControllerType2Dynamics - { - - public: - PFVArControllerType2UserDefined(); - virtual ~PFVArControllerType2UserDefined(); - /** - * Behaviour is based on proprietary model as opposed to detailed model. - * true = user-defined model is proprietary with behaviour mutually understood by - * sending and receiving applications and parameters passed as general attributes - * false = user-defined model is explicitly defined in terms of control blocks and - * their input and output signals. - */ - IEC61970::Base::Domain::Boolean proprietary; - - }; - - } - - } - -} -#endif // PFVARCONTROLLERTYPE2USERDEFINED_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/PowerSystemStabilizerUserDefined.cpp b/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/PowerSystemStabilizerUserDefined.cpp deleted file mode 100644 index 951cd4554..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/PowerSystemStabilizerUserDefined.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// PowerSystemStabilizerUserDefined.cpp -// Implementation of the Class PowerSystemStabilizerUserDefined -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#include "PowerSystemStabilizerUserDefined.h" - -using IEC61970::Dynamics::UserDefinedModels::PowerSystemStabilizerUserDefined; - - -PowerSystemStabilizerUserDefined::PowerSystemStabilizerUserDefined(){ - -} - - - -PowerSystemStabilizerUserDefined::~PowerSystemStabilizerUserDefined(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/PowerSystemStabilizerUserDefined.h b/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/PowerSystemStabilizerUserDefined.h deleted file mode 100644 index b8b456b97..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/PowerSystemStabilizerUserDefined.h +++ /dev/null @@ -1,46 +0,0 @@ -/////////////////////////////////////////////////////////// -// PowerSystemStabilizerUserDefined.h -// Implementation of the Class PowerSystemStabilizerUserDefined -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#ifndef POWERSYSTEMSTABILIZERUSERDEFINED_H -#define POWERSYSTEMSTABILIZERUSERDEFINED_H - -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Dynamics/StandardModels/PowerSystemStabilizerDynamics/PowerSystemStabilizerDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace UserDefinedModels - { - /** - * Power system stabilizer function block whose - * dynamic behaviour is described by a user-defined model. - * - */ - class PowerSystemStabilizerUserDefined : public IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PowerSystemStabilizerDynamics - { - - public: - PowerSystemStabilizerUserDefined(); - virtual ~PowerSystemStabilizerUserDefined(); - /** - * Behaviour is based on proprietary model as opposed to detailed model. - * true = user-defined model is proprietary with behaviour mutually understood by - * sending and receiving applications and parameters passed as general attributes - * false = user-defined model is explicitly defined in terms of control blocks and - * their input and output signals. - */ - IEC61970::Base::Domain::Boolean proprietary; - - }; - - } - - } - -} -#endif // POWERSYSTEMSTABILIZERUSERDEFINED_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/ProprietaryParameterDynamics.cpp b/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/ProprietaryParameterDynamics.cpp deleted file mode 100644 index 1e60d68ca..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/ProprietaryParameterDynamics.cpp +++ /dev/null @@ -1,22 +0,0 @@ -/////////////////////////////////////////////////////////// -// ProprietaryParameterDynamics.cpp -// Implementation of the Class ProprietaryParameterDynamics -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#include "ProprietaryParameterDynamics.h" - -using IEC61970::Dynamics::UserDefinedModels::ProprietaryParameterDynamics; - - -ProprietaryParameterDynamics::ProprietaryParameterDynamics() - : TurbineGovernorUserDefined(nullptr), VoltageAdjusterUserDefined(nullptr), AsynchronousMachineUserDefined(nullptr), UnderexcitationLimiterUserDefined(nullptr), VoltageCompensatorUserDefined(nullptr), PFVArControllerType1UserDefined(nullptr), OverexcitationLimiterUserDefined(nullptr), PowerSystemStabilizerUserDefined(nullptr), DiscontinuousExcitationControlUserDefined(nullptr), PFVArControllerType2UserDefined(nullptr), MechanicalLoadUserDefined(nullptr), SynchronousMachineUserDefined(nullptr), LoadUserDefined(nullptr), TurbineLoadControllerUserDefined(nullptr), ExcitationSystemUserDefined(nullptr) -{ - -} - - - -ProprietaryParameterDynamics::~ProprietaryParameterDynamics(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/ProprietaryParameterDynamics.h b/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/ProprietaryParameterDynamics.h deleted file mode 100644 index a66ad83a6..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/ProprietaryParameterDynamics.h +++ /dev/null @@ -1,136 +0,0 @@ -/////////////////////////////////////////////////////////// -// ProprietaryParameterDynamics.h -// Implementation of the Class ProprietaryParameterDynamics -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#ifndef PROPRIETARYPARAMETERDYNAMICS_H -#define PROPRIETARYPARAMETERDYNAMICS_H - -#include "BaseClass.h" -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Base/Domain/Float.h" -#include "IEC61970/Base/Domain/Integer.h" -#include "IEC61970/Dynamics/UserDefinedModels/TurbineGovernorUserDefined.h" -#include "IEC61970/Dynamics/UserDefinedModels/VoltageAdjusterUserDefined.h" -#include "IEC61970/Dynamics/UserDefinedModels/AsynchronousMachineUserDefined.h" -#include "IEC61970/Dynamics/UserDefinedModels/UnderexcitationLimiterUserDefined.h" -#include "IEC61970/Dynamics/UserDefinedModels/VoltageCompensatorUserDefined.h" -#include "IEC61970/Dynamics/UserDefinedModels/PFVArControllerType1UserDefined.h" -#include "IEC61970/Dynamics/UserDefinedModels/OverexcitationLimiterUserDefined.h" -#include "IEC61970/Dynamics/UserDefinedModels/PowerSystemStabilizerUserDefined.h" -#include "IEC61970/Dynamics/UserDefinedModels/DiscontinuousExcitationControlUserDefined.h" -#include "IEC61970/Dynamics/UserDefinedModels/PFVArControllerType2UserDefined.h" -#include "IEC61970/Dynamics/UserDefinedModels/MechanicalLoadUserDefined.h" -#include "IEC61970/Dynamics/UserDefinedModels/SynchronousMachineUserDefined.h" -#include "IEC61970/Dynamics/UserDefinedModels/LoadUserDefined.h" -#include "IEC61970/Dynamics/UserDefinedModels/TurbineLoadControllerUserDefined.h" -#include "IEC61970/Dynamics/UserDefinedModels/ExcitationSystemUserDefined.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace UserDefinedModels - { - /** - * Supports definition of one or more parameters of several different datatypes - * for use by proprietary user-defined models. NOTE: This class does not inherit - * from IdentifiedObject since it is not intended that a single instance of it be - * referenced by more than one proprietary user-defined model instance. - */ - class ProprietaryParameterDynamics : public BaseClass - { - - public: - ProprietaryParameterDynamics(); - virtual ~ProprietaryParameterDynamics(); - /** - * Used for boolean parameter value. If this attribute is populated, - * integerParameterValue and floatParameterValue will not be. - */ - IEC61970::Base::Domain::Boolean booleanParameterValue; - /** - * Used for floating point parameter value. If this attribute is populated, - * booleanParameterValue and integerParameterValue will not be. - */ - IEC61970::Base::Domain::Float floatParameterValue; - /** - * Used for integer parameter value. If this attribute is populated, - * booleanParameterValue and floatParameterValue will not be. - */ - IEC61970::Base::Domain::Integer integerParameterValue; - /** - * Sequence number of the parameter among the set of parameters associated with - * the related proprietary user-defined model. - */ - IEC61970::Base::Domain::Integer parameterNumber; - /** - * Proprietary user-defined model with which this parameter is associated. - */ - IEC61970::Dynamics::UserDefinedModels::TurbineGovernorUserDefined *TurbineGovernorUserDefined; - /** - * Proprietary user-defined model with which this parameter is associated. - */ - IEC61970::Dynamics::UserDefinedModels::VoltageAdjusterUserDefined *VoltageAdjusterUserDefined; - /** - * Proprietary user-defined model with which this parameter is associated. - */ - IEC61970::Dynamics::UserDefinedModels::AsynchronousMachineUserDefined *AsynchronousMachineUserDefined; - /** - * Proprietary user-defined model with which this parameter is associated. - */ - IEC61970::Dynamics::UserDefinedModels::UnderexcitationLimiterUserDefined *UnderexcitationLimiterUserDefined; - /** - * Proprietary user-defined model with which this parameter is associated. - */ - IEC61970::Dynamics::UserDefinedModels::VoltageCompensatorUserDefined *VoltageCompensatorUserDefined; - /** - * Proprietary user-defined model with which this parameter is associated. - */ - IEC61970::Dynamics::UserDefinedModels::PFVArControllerType1UserDefined *PFVArControllerType1UserDefined; - /** - * Proprietary user-defined model with which this parameter is associated. - */ - IEC61970::Dynamics::UserDefinedModels::OverexcitationLimiterUserDefined *OverexcitationLimiterUserDefined; - /** - * Proprietary user-defined model with which this parameter is associated. - */ - IEC61970::Dynamics::UserDefinedModels::PowerSystemStabilizerUserDefined *PowerSystemStabilizerUserDefined; - /** - * Proprietary user-defined model with which this parameter is associated. - */ - IEC61970::Dynamics::UserDefinedModels::DiscontinuousExcitationControlUserDefined *DiscontinuousExcitationControlUserDefined; - /** - * Proprietary user-defined model with which this parameter is associated. - */ - IEC61970::Dynamics::UserDefinedModels::PFVArControllerType2UserDefined *PFVArControllerType2UserDefined; - /** - * Proprietary user-defined model with which this parameter is associated. - */ - IEC61970::Dynamics::UserDefinedModels::MechanicalLoadUserDefined *MechanicalLoadUserDefined; - /** - * Proprietary user-defined model with which this parameter is associated. - */ - IEC61970::Dynamics::UserDefinedModels::SynchronousMachineUserDefined *SynchronousMachineUserDefined; - /** - * Proprietary user-defined model with which this parameter is associated. - */ - IEC61970::Dynamics::UserDefinedModels::LoadUserDefined *LoadUserDefined; - /** - * Proprietary user-defined model with which this parameter is associated. - */ - IEC61970::Dynamics::UserDefinedModels::TurbineLoadControllerUserDefined *TurbineLoadControllerUserDefined; - /** - * Proprietary user-defined model with which this parameter is associated. - */ - IEC61970::Dynamics::UserDefinedModels::ExcitationSystemUserDefined *ExcitationSystemUserDefined; - - }; - - } - - } - -} -#endif // PROPRIETARYPARAMETERDYNAMICS_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/SynchronousMachineUserDefined.cpp b/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/SynchronousMachineUserDefined.cpp deleted file mode 100644 index c768a07db..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/SynchronousMachineUserDefined.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// SynchronousMachineUserDefined.cpp -// Implementation of the Class SynchronousMachineUserDefined -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#include "SynchronousMachineUserDefined.h" - -using IEC61970::Dynamics::UserDefinedModels::SynchronousMachineUserDefined; - - -SynchronousMachineUserDefined::SynchronousMachineUserDefined(){ - -} - - - -SynchronousMachineUserDefined::~SynchronousMachineUserDefined(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/SynchronousMachineUserDefined.h b/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/SynchronousMachineUserDefined.h deleted file mode 100644 index 048c610f8..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/SynchronousMachineUserDefined.h +++ /dev/null @@ -1,45 +0,0 @@ -/////////////////////////////////////////////////////////// -// SynchronousMachineUserDefined.h -// Implementation of the Class SynchronousMachineUserDefined -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#ifndef SYNCHRONOUSMACHINEUSERDEFINED_H -#define SYNCHRONOUSMACHINEUSERDEFINED_H - -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Dynamics/StandardModels/SynchronousMachineDynamics/SynchronousMachineDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace UserDefinedModels - { - /** - * Synchronous machine whose dynamic behaviour is described by a user-defined - * model. - */ - class SynchronousMachineUserDefined : public IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::SynchronousMachineDynamics - { - - public: - SynchronousMachineUserDefined(); - virtual ~SynchronousMachineUserDefined(); - /** - * Behaviour is based on proprietary model as opposed to detailed model. - * true = user-defined model is proprietary with behaviour mutually understood by - * sending and receiving applications and parameters passed as general attributes - * false = user-defined model is explicitly defined in terms of control blocks and - * their input and output signals. - */ - IEC61970::Base::Domain::Boolean proprietary; - - }; - - } - - } - -} -#endif // SYNCHRONOUSMACHINEUSERDEFINED_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/TurbineGovernorUserDefined.cpp b/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/TurbineGovernorUserDefined.cpp deleted file mode 100644 index b53a6e08b..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/TurbineGovernorUserDefined.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// TurbineGovernorUserDefined.cpp -// Implementation of the Class TurbineGovernorUserDefined -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#include "TurbineGovernorUserDefined.h" - -using IEC61970::Dynamics::UserDefinedModels::TurbineGovernorUserDefined; - - -TurbineGovernorUserDefined::TurbineGovernorUserDefined(){ - -} - - - -TurbineGovernorUserDefined::~TurbineGovernorUserDefined(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/TurbineGovernorUserDefined.h b/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/TurbineGovernorUserDefined.h deleted file mode 100644 index 48b82263f..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/TurbineGovernorUserDefined.h +++ /dev/null @@ -1,45 +0,0 @@ -/////////////////////////////////////////////////////////// -// TurbineGovernorUserDefined.h -// Implementation of the Class TurbineGovernorUserDefined -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#ifndef TURBINEGOVERNORUSERDEFINED_H -#define TURBINEGOVERNORUSERDEFINED_H - -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Dynamics/StandardModels/TurbineGovernorDynamics/TurbineGovernorDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace UserDefinedModels - { - /** - * Turbine-governor function block whose dynamic behaviour is described by a user-defined model. - */ - class TurbineGovernorUserDefined : public IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::TurbineGovernorDynamics - { - - public: - TurbineGovernorUserDefined(); - virtual ~TurbineGovernorUserDefined(); - /** - * Behaviour is based on proprietary model as opposed to detailed model. - * true = user-defined model is proprietary with behaviour mutually understood by - * sending and receiving applications and parameters passed as general attributes - * false = user-defined model is explicitly defined in terms of control blocks and - * their input and output signals. - */ - IEC61970::Base::Domain::Boolean proprietary; - - }; - - } - - } - -} -#endif // TURBINEGOVERNORUSERDEFINED_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/TurbineLoadControllerUserDefined.cpp b/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/TurbineLoadControllerUserDefined.cpp deleted file mode 100644 index b2a5e914a..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/TurbineLoadControllerUserDefined.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// TurbineLoadControllerUserDefined.cpp -// Implementation of the Class TurbineLoadControllerUserDefined -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#include "TurbineLoadControllerUserDefined.h" - -using IEC61970::Dynamics::UserDefinedModels::TurbineLoadControllerUserDefined; - - -TurbineLoadControllerUserDefined::TurbineLoadControllerUserDefined(){ - -} - - - -TurbineLoadControllerUserDefined::~TurbineLoadControllerUserDefined(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/TurbineLoadControllerUserDefined.h b/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/TurbineLoadControllerUserDefined.h deleted file mode 100644 index 4ad9ad775..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/TurbineLoadControllerUserDefined.h +++ /dev/null @@ -1,45 +0,0 @@ -/////////////////////////////////////////////////////////// -// TurbineLoadControllerUserDefined.h -// Implementation of the Class TurbineLoadControllerUserDefined -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#ifndef TURBINELOADCONTROLLERUSERDEFINED_H -#define TURBINELOADCONTROLLERUSERDEFINED_H - -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Dynamics/StandardModels/TurbineLoadControllerDynamics/TurbineLoadControllerDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace UserDefinedModels - { - /** - * Turbine load controller function block whose dynamic behaviour is described by - * a user-defined model. - */ - class TurbineLoadControllerUserDefined : public IEC61970::Dynamics::StandardModels::TurbineLoadControllerDynamics::TurbineLoadControllerDynamics - { - - public: - TurbineLoadControllerUserDefined(); - virtual ~TurbineLoadControllerUserDefined(); - /** - * Behaviour is based on proprietary model as opposed to detailed model. - * true = user-defined model is proprietary with behaviour mutually understood by - * sending and receiving applications and parameters passed as general attributes - * false = user-defined model is explicitly defined in terms of control blocks and - * their input and output signals. - */ - IEC61970::Base::Domain::Boolean proprietary; - - }; - - } - - } - -} -#endif // TURBINELOADCONTROLLERUSERDEFINED_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/UnderexcitationLimiterUserDefined.cpp b/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/UnderexcitationLimiterUserDefined.cpp deleted file mode 100644 index 951527ec9..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/UnderexcitationLimiterUserDefined.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// UnderexcitationLimiterUserDefined.cpp -// Implementation of the Class UnderexcitationLimiterUserDefined -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#include "UnderexcitationLimiterUserDefined.h" - -using IEC61970::Dynamics::UserDefinedModels::UnderexcitationLimiterUserDefined; - - -UnderexcitationLimiterUserDefined::UnderexcitationLimiterUserDefined(){ - -} - - - -UnderexcitationLimiterUserDefined::~UnderexcitationLimiterUserDefined(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/UnderexcitationLimiterUserDefined.h b/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/UnderexcitationLimiterUserDefined.h deleted file mode 100644 index 4784795e1..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/UnderexcitationLimiterUserDefined.h +++ /dev/null @@ -1,45 +0,0 @@ -/////////////////////////////////////////////////////////// -// UnderexcitationLimiterUserDefined.h -// Implementation of the Class UnderexcitationLimiterUserDefined -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#ifndef UNDEREXCITATIONLIMITERUSERDEFINED_H -#define UNDEREXCITATIONLIMITERUSERDEFINED_H - -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Dynamics/StandardModels/UnderexcitationLimiterDynamics/UnderexcitationLimiterDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace UserDefinedModels - { - /** - * Underexcitation limiter function block whose dynamic behaviour is described by - * a user-defined model. - */ - class UnderexcitationLimiterUserDefined : public IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcitationLimiterDynamics - { - - public: - UnderexcitationLimiterUserDefined(); - virtual ~UnderexcitationLimiterUserDefined(); - /** - * Behaviour is based on proprietary model as opposed to detailed model. - * true = user-defined model is proprietary with behaviour mutually understood by - * sending and receiving applications and parameters passed as general attributes - * false = user-defined model is explicitly defined in terms of control blocks and - * their input and output signals. - */ - IEC61970::Base::Domain::Boolean proprietary; - - }; - - } - - } - -} -#endif // UNDEREXCITATIONLIMITERUSERDEFINED_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/VoltageAdjusterUserDefined.cpp b/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/VoltageAdjusterUserDefined.cpp deleted file mode 100644 index d0a7cb529..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/VoltageAdjusterUserDefined.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// VoltageAdjusterUserDefined.cpp -// Implementation of the Class VoltageAdjusterUserDefined -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#include "VoltageAdjusterUserDefined.h" - -using IEC61970::Dynamics::UserDefinedModels::VoltageAdjusterUserDefined; - - -VoltageAdjusterUserDefined::VoltageAdjusterUserDefined(){ - -} - - - -VoltageAdjusterUserDefined::~VoltageAdjusterUserDefined(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/VoltageAdjusterUserDefined.h b/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/VoltageAdjusterUserDefined.h deleted file mode 100644 index 2e0e6c723..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/VoltageAdjusterUserDefined.h +++ /dev/null @@ -1,45 +0,0 @@ -/////////////////////////////////////////////////////////// -// VoltageAdjusterUserDefined.h -// Implementation of the Class VoltageAdjusterUserDefined -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#ifndef VOLTAGEADJUSTERUSERDEFINED_H -#define VOLTAGEADJUSTERUSERDEFINED_H - -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Dynamics/StandardModels/VoltageAdjusterDynamics/VoltageAdjusterDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace UserDefinedModels - { - /** - * Voltage adjuster function block whose dynamic - * behaviour is described by a user-defined model. - */ - class VoltageAdjusterUserDefined : public IEC61970::Dynamics::StandardModels::VoltageAdjusterDynamics::VoltageAdjusterDynamics - { - - public: - VoltageAdjusterUserDefined(); - virtual ~VoltageAdjusterUserDefined(); - /** - * Behaviour is based on proprietary model as opposed to detailed model. - * true = user-defined model is proprietary with behaviour mutually understood by - * sending and receiving applications and parameters passed as general attributes - * false = user-defined model is explicitly defined in terms of control blocks and - * their input and output signals. - */ - IEC61970::Base::Domain::Boolean proprietary; - - }; - - } - - } - -} -#endif // VOLTAGEADJUSTERUSERDEFINED_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/VoltageCompensatorUserDefined.cpp b/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/VoltageCompensatorUserDefined.cpp deleted file mode 100644 index 40fa30d20..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/VoltageCompensatorUserDefined.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// VoltageCompensatorUserDefined.cpp -// Implementation of the Class VoltageCompensatorUserDefined -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#include "VoltageCompensatorUserDefined.h" - -using IEC61970::Dynamics::UserDefinedModels::VoltageCompensatorUserDefined; - - -VoltageCompensatorUserDefined::VoltageCompensatorUserDefined(){ - -} - - - -VoltageCompensatorUserDefined::~VoltageCompensatorUserDefined(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/VoltageCompensatorUserDefined.h b/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/VoltageCompensatorUserDefined.h deleted file mode 100644 index bb7a745be..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/VoltageCompensatorUserDefined.h +++ /dev/null @@ -1,45 +0,0 @@ -/////////////////////////////////////////////////////////// -// VoltageCompensatorUserDefined.h -// Implementation of the Class VoltageCompensatorUserDefined -// Original author: ppbr003 -/////////////////////////////////////////////////////////// - -#ifndef VOLTAGECOMPENSATORUSERDEFINED_H -#define VOLTAGECOMPENSATORUSERDEFINED_H - -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Dynamics/StandardModels/VoltageCompensatorDynamics/VoltageCompensatorDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace UserDefinedModels - { - /** - * Voltage compensator function block whose dynamic behaviour is described by - * a user-defined model. - */ - class VoltageCompensatorUserDefined : public IEC61970::Dynamics::StandardModels::VoltageCompensatorDynamics::VoltageCompensatorDynamics - { - - public: - VoltageCompensatorUserDefined(); - virtual ~VoltageCompensatorUserDefined(); - /** - * Behaviour is based on proprietary model as opposed to detailed model. - * true = user-defined model is proprietary with behaviour mutually understood by - * sending and receiving applications and parameters passed as general attributes - * false = user-defined model is explicitly defined in terms of control blocks and - * their input and output signals. - */ - IEC61970::Base::Domain::Boolean proprietary; - - }; - - } - - } - -} -#endif // VOLTAGECOMPENSATORUSERDEFINED_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/WindPlantUserDefined.cpp b/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/WindPlantUserDefined.cpp deleted file mode 100644 index 94c0efa04..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/WindPlantUserDefined.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindPlantUserDefined.cpp -// Implementation of the Class WindPlantUserDefined -// Original author: civanov -/////////////////////////////////////////////////////////// - -#include "WindPlantUserDefined.h" - -using IEC61970::Dynamics::UserDefinedModels::WindPlantUserDefined; - - -WindPlantUserDefined::WindPlantUserDefined(){ - -} - - - -WindPlantUserDefined::~WindPlantUserDefined(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/WindPlantUserDefined.h b/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/WindPlantUserDefined.h deleted file mode 100644 index a5e70df43..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/WindPlantUserDefined.h +++ /dev/null @@ -1,52 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindPlantUserDefined.h -// Implementation of the Class WindPlantUserDefined -// Original author: civanov -/////////////////////////////////////////////////////////// - -#ifndef WINDPLANTUSERDEFINED_H -#define WINDPLANTUSERDEFINED_H - -#include - -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Dynamics/UserDefinedModels/ProprietaryParameterDynamics.h" -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindPlantDynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace UserDefinedModels - { - /** - * Wind plant function block whose dynamic behaviour is described by a user-defined model. - */ - class WindPlantUserDefined : public IEC61970::Dynamics::StandardModels::WindDynamics::WindPlantDynamics - { - - public: - WindPlantUserDefined(); - virtual ~WindPlantUserDefined(); - /** - * Behaviour is based on proprietary model as opposed to detailed model. - * true = user-defined model is proprietary with behaviour mutually understood by - * sending and receiving applications and parameters passed as general attributes - * false = user-defined model is explicitly defined in terms of control blocks and - * their input and output signals. - */ - IEC61970::Base::Domain::Boolean proprietary; - /** - * Parameter of this proprietary user-defined model. - */ - std::list ProprietaryParameterDynamics; - - }; - - } - - } - -} -#endif // WINDPLANTUSERDEFINED_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/WindType1or2UserDefined.cpp b/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/WindType1or2UserDefined.cpp deleted file mode 100644 index 8f9132eda..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/WindType1or2UserDefined.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindType1or2UserDefined.cpp -// Implementation of the Class WindType1or2UserDefined -// Original author: civanov -/////////////////////////////////////////////////////////// - -#include "WindType1or2UserDefined.h" - -using IEC61970::Dynamics::UserDefinedModels::WindType1or2UserDefined; - - -WindType1or2UserDefined::WindType1or2UserDefined(){ - -} - - - -WindType1or2UserDefined::~WindType1or2UserDefined(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/WindType1or2UserDefined.h b/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/WindType1or2UserDefined.h deleted file mode 100644 index 3374b2a4d..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/WindType1or2UserDefined.h +++ /dev/null @@ -1,52 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindType1or2UserDefined.h -// Implementation of the Class WindType1or2UserDefined -// Original author: civanov -/////////////////////////////////////////////////////////// - -#ifndef WINDTYPE1OR2USERDEFINED_H -#define WINDTYPE1OR2USERDEFINED_H - -#include - -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Dynamics/UserDefinedModels/ProprietaryParameterDynamics.h" -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindTurbineType1or2Dynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace UserDefinedModels - { - /** - * Wind Type 1 or Type 2 function block whose dynamic behaviour is described by - * a user-defined model. - */ - class WindType1or2UserDefined : public IEC61970::Dynamics::StandardModels::WindDynamics::WindTurbineType1or2Dynamics - { - - public: - WindType1or2UserDefined(); - virtual ~WindType1or2UserDefined(); - /** - * Behaviour is based on proprietary model as opposed to detailed model. - * true = user-defined model is proprietary with behaviour mutually understood by - * sending and receiving applications and parameters passed as general attributes - * false = user-defined model is explicitly defined in terms of control blocks and - * their input and output signals. - */ - IEC61970::Base::Domain::Boolean proprietary; - /** - * Parameter of this proprietary user-defined model. - */ - std::list ProprietaryParameterDynamics; - - }; - - } - - } - -} -#endif // WINDTYPE1OR2USERDEFINED_H diff --git a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/WindType3or4UserDefined.cpp b/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/WindType3or4UserDefined.cpp deleted file mode 100644 index 193e5cb32..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/WindType3or4UserDefined.cpp +++ /dev/null @@ -1,20 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindType3or4UserDefined.cpp -// Implementation of the Class WindType3or4UserDefined -// Original author: civanov -/////////////////////////////////////////////////////////// - -#include "WindType3or4UserDefined.h" - -using IEC61970::Dynamics::UserDefinedModels::WindType3or4UserDefined; - - -WindType3or4UserDefined::WindType3or4UserDefined(){ - -} - - - -WindType3or4UserDefined::~WindType3or4UserDefined(){ - -} diff --git a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/WindType3or4UserDefined.h b/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/WindType3or4UserDefined.h deleted file mode 100644 index 188b877a2..000000000 --- a/IEC61970_17v07/IEC61970/Dynamics/UserDefinedModels/WindType3or4UserDefined.h +++ /dev/null @@ -1,52 +0,0 @@ -/////////////////////////////////////////////////////////// -// WindType3or4UserDefined.h -// Implementation of the Class WindType3or4UserDefined -// Original author: civanov -/////////////////////////////////////////////////////////// - -#ifndef WINDTYPE3OR4USERDEFINED_H -#define WINDTYPE3OR4USERDEFINED_H - -#include - -#include "IEC61970/Base/Domain/Boolean.h" -#include "IEC61970/Dynamics/UserDefinedModels/ProprietaryParameterDynamics.h" -#include "IEC61970/Dynamics/StandardModels/WindDynamics/WindTurbineType3or4Dynamics.h" - -namespace IEC61970 -{ - namespace Dynamics - { - namespace UserDefinedModels - { - /** - * Wind Type 3 or Type 4 function block whose dynamic behaviour is described by - * a user-defined model. - */ - class WindType3or4UserDefined : public IEC61970::Dynamics::StandardModels::WindDynamics::WindTurbineType3or4Dynamics - { - - public: - WindType3or4UserDefined(); - virtual ~WindType3or4UserDefined(); - /** - * Behaviour is based on proprietary model as opposed to detailed model. - * true = user-defined model is proprietary with behaviour mutually understood by - * sending and receiving applications and parameters passed as general attributes - * false = user-defined model is explicitly defined in terms of control blocks and - * their input and output signals. - */ - IEC61970::Base::Domain::Boolean proprietary; - /** - * Parameter of this proprietary user-defined model. - */ - std::list ProprietaryParameterDynamics; - - }; - - } - - } - -} -#endif // WINDTYPE3OR4USERDEFINED_H diff --git a/IEC61970_17v07/IEC61970/IEC61970CIMVersion.cpp b/IEC61970_17v07/IEC61970/IEC61970CIMVersion.cpp deleted file mode 100644 index c4fe64b33..000000000 --- a/IEC61970_17v07/IEC61970/IEC61970CIMVersion.cpp +++ /dev/null @@ -1,23 +0,0 @@ -/////////////////////////////////////////////////////////// -// IEC61970CIMVersion.cpp -// Implementation of the Class IEC61970CIMVersion -/////////////////////////////////////////////////////////// - -#include "IEC61970CIMVersion.h" - -using IEC61970::IEC61970CIMVersion; - - -IEC61970CIMVersion::IEC61970CIMVersion(){ - -} - - - -IEC61970CIMVersion::~IEC61970CIMVersion(){ - -} - - -const IEC61970::Base::Domain::Date IEC61970CIMVersion::date = IEC61970::Base::Domain::Date("2015-04-28"); -const IEC61970::Base::Domain::String IEC61970CIMVersion::version = "IEC61970CIM17v07"; diff --git a/IEC61970_17v07/IEC61970/IEC61970CIMVersion.h b/IEC61970_17v07/IEC61970/IEC61970CIMVersion.h deleted file mode 100644 index 4856008ef..000000000 --- a/IEC61970_17v07/IEC61970/IEC61970CIMVersion.h +++ /dev/null @@ -1,37 +0,0 @@ -/////////////////////////////////////////////////////////// -// IEC61970CIMVersion.h -// Implementation of the Class IEC61970CIMVersion -/////////////////////////////////////////////////////////// - -#ifndef IEC61970CIMVERSION_H -#define IEC61970CIMVERSION_H - -#include "BaseClass.h" -#include "IEC61970/Base/Domain/Date.h" -#include "IEC61970/Base/Domain/String.h" - -namespace IEC61970 -{ - /** - * This is the IEC 61970 CIM version number assigned to this UML model. - */ - class IEC61970CIMVersion : public BaseClass - { - - public: - IEC61970CIMVersion(); - virtual ~IEC61970CIMVersion(); - /** - * Form is YYYY-MM-DD for example for January 5, 2009 it is 2009-01-05. - */ - static const IEC61970::Base::Domain::Date date; - /** - * Form is IEC61970CIMXXvYY where XX is the major CIM package version and the YY - * is the minor version. For example IEC61970CIM13v18. - */ - static const IEC61970::Base::Domain::String version; - - }; - -} -#endif // IEC61970CIMVERSION_H diff --git a/IEC61970_17v07/Task.cpp b/IEC61970_17v07/Task.cpp deleted file mode 100644 index dc6f62856..000000000 --- a/IEC61970_17v07/Task.cpp +++ /dev/null @@ -1,3789 +0,0 @@ -#include - -#include "Folders.hpp" -#include "Aliases.hpp" -#include "Task.hpp" - -typedef bool (*task_function)(BaseClass*, BaseClass*); -static std::unordered_map initialize(); -std::unordered_map Task::dynamic_switch = initialize(); - -Task::Task() -{ -} - -Task::Task(BaseClass* CIMObj, const std::string CIMAttrName, const std::string Value) - : _CIMObj(CIMObj), _CIMAttrName(CIMAttrName), _Value(Value) -{ -} - -Task::~Task() -{ -} - -void Task::print() -{ - if(IEC61970::Base::Core::IdentifiedObject* IdObj = dynamic_cast(_CIMObj)) - std::cout << _CIMAttrName << " '" << IdObj->name << "' = '" << _Value << "'" << std::endl; - else - std::cout << _CIMAttrName << " = '" << _Value << "'" << std::endl; - -} - -bool Task::resolve(std::unordered_map *RDFMap) -{ - std::unordered_map::iterator it_id = RDFMap->find(_Value); - if(it_id == RDFMap->end()) - return false; - - std::unordered_map::iterator it_func = dynamic_switch.find(_CIMAttrName); - if(it_func == dynamic_switch.end()) - return false; - - if((*it_func->second)(_CIMObj, it_id->second)) - return true; - else - return (*it_func->second)(it_id->second, _CIMObj); -} - - -bool assign_Measurement_Terminal(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Meas::Measurement* element = dynamic_cast(BaseClass_ptr1)) - { - element->Terminal = dynamic_cast(BaseClass_ptr2); - if(element->Terminal != nullptr) - return true; - } - return false; -} - -bool assign_PowerSystemResource_PSRType(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Core::PowerSystemResource* element = dynamic_cast(BaseClass_ptr1)) - { - element->PSRType = dynamic_cast(BaseClass_ptr2); - if(element->PSRType != nullptr) - return true; - } - return false; -} - -bool assign_HydroPump_HydroPumpOpSchedule(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Generation::Production::HydroPump* element = dynamic_cast(BaseClass_ptr1)) - { - element->HydroPumpOpSchedule = dynamic_cast(BaseClass_ptr2); - if(element->HydroPumpOpSchedule != nullptr) - return true; - } - return false; -} - -bool assign_RegulatingCondEq_RegulatingControl(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Wires::RegulatingCondEq* element = dynamic_cast(BaseClass_ptr1)) - { - element->RegulatingControl = dynamic_cast(BaseClass_ptr2); - if(element->RegulatingControl != nullptr) - return true; - } - return false; -} - -bool assign_RotatingMachine_HydroPump(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Wires::RotatingMachine* element = dynamic_cast(BaseClass_ptr1)) - { - element->HydroPump = dynamic_cast(BaseClass_ptr2); - if(element->HydroPump != nullptr) - return true; - } - return false; -} - -bool assign_AsynchronousMachineDynamics_AsynchronousMachine(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::StandardModels::AsynchronousMachineDynamics::AsynchronousMachineDynamics* element = dynamic_cast(BaseClass_ptr1)) - { - element->AsynchronousMachine = dynamic_cast(BaseClass_ptr2); - if(element->AsynchronousMachine != nullptr) - return true; - } - return false; -} - -bool assign_TurbineGovernorDynamics_AsynchronousMachineDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::TurbineGovernorDynamics* element = dynamic_cast(BaseClass_ptr1)) - { - element->AsynchronousMachineDynamics = dynamic_cast(BaseClass_ptr2); - if(element->AsynchronousMachineDynamics != nullptr) - return true; - } - return false; -} - -bool assign_SynchronousMachineDynamics_SynchronousMachine(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::SynchronousMachineDynamics* element = dynamic_cast(BaseClass_ptr1)) - { - element->SynchronousMachine = dynamic_cast(BaseClass_ptr2); - if(element->SynchronousMachine != nullptr) - return true; - } - return false; -} - -bool assign_ExcitationSystemDynamics_SynchronousMachineDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcitationSystemDynamics* element = dynamic_cast(BaseClass_ptr1)) - { - element->SynchronousMachineDynamics = dynamic_cast(BaseClass_ptr2); - if(element->SynchronousMachineDynamics != nullptr) - return true; - } - return false; -} - -bool assign_ConnectivityNode_ConnectivityNodeContainer(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Core::ConnectivityNode* element = dynamic_cast(BaseClass_ptr1)) - { - element->ConnectivityNodeContainer = dynamic_cast(BaseClass_ptr2); - if(element->ConnectivityNodeContainer != nullptr) - return true; - } - return false; -} - -bool assign_Terminal_ConnectivityNode(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Core::Terminal* element = dynamic_cast(BaseClass_ptr1)) - { - element->ConnectivityNode = dynamic_cast(BaseClass_ptr2); - if(element->ConnectivityNode != nullptr) - return true; - } - return false; -} - -bool assign_Terminal_ConductingEquipment(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Core::Terminal* element = dynamic_cast(BaseClass_ptr1)) - { - element->ConductingEquipment = dynamic_cast(BaseClass_ptr2); - if(element->ConductingEquipment != nullptr) - return true; - } - return false; -} - -bool assign_RemoteInputSignal_Terminal(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::StandardInterconnections::RemoteInputSignal* element = dynamic_cast(BaseClass_ptr1)) - { - element->Terminal = dynamic_cast(BaseClass_ptr2); - if(element->Terminal != nullptr) - return true; - } - return false; -} - -bool assign_PFVArControllerType1Dynamics_ExcitationSystemDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::StandardModels::PFVArControllerType1Dynamics::PFVArControllerType1Dynamics* element = dynamic_cast(BaseClass_ptr1)) - { - element->ExcitationSystemDynamics = dynamic_cast(BaseClass_ptr2); - if(element->ExcitationSystemDynamics != nullptr) - return true; - } - return false; -} - -bool assign_PFVArControllerType1Dynamics_RemoteInputSignal(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::StandardModels::PFVArControllerType1Dynamics::PFVArControllerType1Dynamics* element = dynamic_cast(BaseClass_ptr1)) - { - element->RemoteInputSignal = dynamic_cast(BaseClass_ptr2); - if(element->RemoteInputSignal != nullptr) - return true; - } - return false; -} - -bool assign_VoltageAdjusterDynamics_PFVArControllerType1Dynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::StandardModels::VoltageAdjusterDynamics::VoltageAdjusterDynamics* element = dynamic_cast(BaseClass_ptr1)) - { - element->PFVArControllerType1Dynamics = dynamic_cast(BaseClass_ptr2); - if(element->PFVArControllerType1Dynamics != nullptr) - return true; - } - return false; -} - -bool assign_UnderexcitationLimiterDynamics_ExcitationSystemDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcitationLimiterDynamics* element = dynamic_cast(BaseClass_ptr1)) - { - element->ExcitationSystemDynamics = dynamic_cast(BaseClass_ptr2); - if(element->ExcitationSystemDynamics != nullptr) - return true; - } - return false; -} - -bool assign_UnderexcitationLimiterDynamics_RemoteInputSignal(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcitationLimiterDynamics* element = dynamic_cast(BaseClass_ptr1)) - { - element->RemoteInputSignal = dynamic_cast(BaseClass_ptr2); - if(element->RemoteInputSignal != nullptr) - return true; - } - return false; -} - -bool assign_VoltageCompensatorDynamics_ExcitationSystemDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::StandardModels::VoltageCompensatorDynamics::VoltageCompensatorDynamics* element = dynamic_cast(BaseClass_ptr1)) - { - element->ExcitationSystemDynamics = dynamic_cast(BaseClass_ptr2); - if(element->ExcitationSystemDynamics != nullptr) - return true; - } - return false; -} - -bool assign_VoltageCompensatorDynamics_RemoteInputSignal(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::StandardModels::VoltageCompensatorDynamics::VoltageCompensatorDynamics* element = dynamic_cast(BaseClass_ptr1)) - { - element->RemoteInputSignal = dynamic_cast(BaseClass_ptr2); - if(element->RemoteInputSignal != nullptr) - return true; - } - return false; -} - -bool assign_OverexcitationLimiterDynamics_ExcitationSystemDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::StandardModels::OverexcitationLimiterDynamics::OverexcitationLimiterDynamics* element = dynamic_cast(BaseClass_ptr1)) - { - element->ExcitationSystemDynamics = dynamic_cast(BaseClass_ptr2); - if(element->ExcitationSystemDynamics != nullptr) - return true; - } - return false; -} - -bool assign_PowerSystemStabilizerDynamics_ExcitationSystemDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PowerSystemStabilizerDynamics* element = dynamic_cast(BaseClass_ptr1)) - { - element->ExcitationSystemDynamics = dynamic_cast(BaseClass_ptr2); - if(element->ExcitationSystemDynamics != nullptr) - return true; - } - return false; -} - -bool assign_DiscontinuousExcitationControlDynamics_ExcitationSystemDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::StandardModels::DiscontinuousExcitationControlDynamics::DiscontinuousExcitationControlDynamics* element = dynamic_cast(BaseClass_ptr1)) - { - element->ExcitationSystemDynamics = dynamic_cast(BaseClass_ptr2); - if(element->ExcitationSystemDynamics != nullptr) - return true; - } - return false; -} - -bool assign_DiscontinuousExcitationControlDynamics_RemoteInputSignal(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::StandardModels::DiscontinuousExcitationControlDynamics::DiscontinuousExcitationControlDynamics* element = dynamic_cast(BaseClass_ptr1)) - { - element->RemoteInputSignal = dynamic_cast(BaseClass_ptr2); - if(element->RemoteInputSignal != nullptr) - return true; - } - return false; -} - -bool assign_PFVArControllerType2Dynamics_ExcitationSystemDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::StandardModels::PFVArControllerType2Dynamics::PFVArControllerType2Dynamics* element = dynamic_cast(BaseClass_ptr1)) - { - element->ExcitationSystemDynamics = dynamic_cast(BaseClass_ptr2); - if(element->ExcitationSystemDynamics != nullptr) - return true; - } - return false; -} - -bool assign_MechanicalLoadDynamics_AsynchronousMachineDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::StandardModels::MechanicalLoadDynamics::MechanicalLoadDynamics* element = dynamic_cast(BaseClass_ptr1)) - { - element->AsynchronousMachineDynamics = dynamic_cast(BaseClass_ptr2); - if(element->AsynchronousMachineDynamics != nullptr) - return true; - } - return false; -} - -bool assign_MechanicalLoadDynamics_SynchronousMachineDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::StandardModels::MechanicalLoadDynamics::MechanicalLoadDynamics* element = dynamic_cast(BaseClass_ptr1)) - { - element->SynchronousMachineDynamics = dynamic_cast(BaseClass_ptr2); - if(element->SynchronousMachineDynamics != nullptr) - return true; - } - return false; -} - -bool assign_EnergyConsumer_LoadResponse(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Wires::EnergyConsumer* element = dynamic_cast(BaseClass_ptr1)) - { - element->LoadResponse = dynamic_cast(BaseClass_ptr2); - if(element->LoadResponse != nullptr) - return true; - } - return false; -} - -bool assign_TurbineLoadControllerDynamics_TurbineGovernorDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::StandardModels::TurbineLoadControllerDynamics::TurbineLoadControllerDynamics* element = dynamic_cast(BaseClass_ptr1)) - { - element->TurbineGovernorDynamics = dynamic_cast(BaseClass_ptr2); - if(element->TurbineGovernorDynamics != nullptr) - return true; - } - return false; -} - -bool assign_ProprietaryParameterDynamics_TurbineGovernorUserDefined(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::UserDefinedModels::ProprietaryParameterDynamics* element = dynamic_cast(BaseClass_ptr1)) - { - element->TurbineGovernorUserDefined = dynamic_cast(BaseClass_ptr2); - if(element->TurbineGovernorUserDefined != nullptr) - return true; - } - return false; -} - -bool assign_ProprietaryParameterDynamics_VoltageAdjusterUserDefined(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::UserDefinedModels::ProprietaryParameterDynamics* element = dynamic_cast(BaseClass_ptr1)) - { - element->VoltageAdjusterUserDefined = dynamic_cast(BaseClass_ptr2); - if(element->VoltageAdjusterUserDefined != nullptr) - return true; - } - return false; -} - -bool assign_ProprietaryParameterDynamics_AsynchronousMachineUserDefined(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::UserDefinedModels::ProprietaryParameterDynamics* element = dynamic_cast(BaseClass_ptr1)) - { - element->AsynchronousMachineUserDefined = dynamic_cast(BaseClass_ptr2); - if(element->AsynchronousMachineUserDefined != nullptr) - return true; - } - return false; -} - -bool assign_ProprietaryParameterDynamics_UnderexcitationLimiterUserDefined(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::UserDefinedModels::ProprietaryParameterDynamics* element = dynamic_cast(BaseClass_ptr1)) - { - element->UnderexcitationLimiterUserDefined = dynamic_cast(BaseClass_ptr2); - if(element->UnderexcitationLimiterUserDefined != nullptr) - return true; - } - return false; -} - -bool assign_ProprietaryParameterDynamics_VoltageCompensatorUserDefined(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::UserDefinedModels::ProprietaryParameterDynamics* element = dynamic_cast(BaseClass_ptr1)) - { - element->VoltageCompensatorUserDefined = dynamic_cast(BaseClass_ptr2); - if(element->VoltageCompensatorUserDefined != nullptr) - return true; - } - return false; -} - -bool assign_ProprietaryParameterDynamics_PFVArControllerType1UserDefined(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::UserDefinedModels::ProprietaryParameterDynamics* element = dynamic_cast(BaseClass_ptr1)) - { - element->PFVArControllerType1UserDefined = dynamic_cast(BaseClass_ptr2); - if(element->PFVArControllerType1UserDefined != nullptr) - return true; - } - return false; -} - -bool assign_ProprietaryParameterDynamics_OverexcitationLimiterUserDefined(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::UserDefinedModels::ProprietaryParameterDynamics* element = dynamic_cast(BaseClass_ptr1)) - { - element->OverexcitationLimiterUserDefined = dynamic_cast(BaseClass_ptr2); - if(element->OverexcitationLimiterUserDefined != nullptr) - return true; - } - return false; -} - -bool assign_ProprietaryParameterDynamics_PowerSystemStabilizerUserDefined(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::UserDefinedModels::ProprietaryParameterDynamics* element = dynamic_cast(BaseClass_ptr1)) - { - element->PowerSystemStabilizerUserDefined = dynamic_cast(BaseClass_ptr2); - if(element->PowerSystemStabilizerUserDefined != nullptr) - return true; - } - return false; -} - -bool assign_ProprietaryParameterDynamics_DiscontinuousExcitationControlUserDefined(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::UserDefinedModels::ProprietaryParameterDynamics* element = dynamic_cast(BaseClass_ptr1)) - { - element->DiscontinuousExcitationControlUserDefined = dynamic_cast(BaseClass_ptr2); - if(element->DiscontinuousExcitationControlUserDefined != nullptr) - return true; - } - return false; -} - -bool assign_ProprietaryParameterDynamics_PFVArControllerType2UserDefined(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::UserDefinedModels::ProprietaryParameterDynamics* element = dynamic_cast(BaseClass_ptr1)) - { - element->PFVArControllerType2UserDefined = dynamic_cast(BaseClass_ptr2); - if(element->PFVArControllerType2UserDefined != nullptr) - return true; - } - return false; -} - -bool assign_ProprietaryParameterDynamics_MechanicalLoadUserDefined(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::UserDefinedModels::ProprietaryParameterDynamics* element = dynamic_cast(BaseClass_ptr1)) - { - element->MechanicalLoadUserDefined = dynamic_cast(BaseClass_ptr2); - if(element->MechanicalLoadUserDefined != nullptr) - return true; - } - return false; -} - -bool assign_ProprietaryParameterDynamics_SynchronousMachineUserDefined(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::UserDefinedModels::ProprietaryParameterDynamics* element = dynamic_cast(BaseClass_ptr1)) - { - element->SynchronousMachineUserDefined = dynamic_cast(BaseClass_ptr2); - if(element->SynchronousMachineUserDefined != nullptr) - return true; - } - return false; -} - -bool assign_ProprietaryParameterDynamics_LoadUserDefined(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::UserDefinedModels::ProprietaryParameterDynamics* element = dynamic_cast(BaseClass_ptr1)) - { - element->LoadUserDefined = dynamic_cast(BaseClass_ptr2); - if(element->LoadUserDefined != nullptr) - return true; - } - return false; -} - -bool assign_ProprietaryParameterDynamics_TurbineLoadControllerUserDefined(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::UserDefinedModels::ProprietaryParameterDynamics* element = dynamic_cast(BaseClass_ptr1)) - { - element->TurbineLoadControllerUserDefined = dynamic_cast(BaseClass_ptr2); - if(element->TurbineLoadControllerUserDefined != nullptr) - return true; - } - return false; -} - -bool assign_ProprietaryParameterDynamics_ExcitationSystemUserDefined(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::UserDefinedModels::ProprietaryParameterDynamics* element = dynamic_cast(BaseClass_ptr1)) - { - element->ExcitationSystemUserDefined = dynamic_cast(BaseClass_ptr2); - if(element->ExcitationSystemUserDefined != nullptr) - return true; - } - return false; -} - -bool assign_WindTurbineType3or4Dynamics_RemoteInputSignal(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindTurbineType3or4Dynamics* element = dynamic_cast(BaseClass_ptr1)) - { - element->RemoteInputSignal = dynamic_cast(BaseClass_ptr2); - if(element->RemoteInputSignal != nullptr) - return true; - } - return false; -} - -bool assign_WindTurbineType3or4Dynamics_WindTurbineType3or4(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindTurbineType3or4Dynamics* element = dynamic_cast(BaseClass_ptr1)) - { - element->WindTurbineType3or4 = dynamic_cast(BaseClass_ptr2); - if(element->WindTurbineType3or4 != nullptr) - return true; - } - return false; -} - -bool assign_WindPlantDynamics_RemoteInputSignal(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindPlantDynamics* element = dynamic_cast(BaseClass_ptr1)) - { - element->RemoteInputSignal = dynamic_cast(BaseClass_ptr2); - if(element->RemoteInputSignal != nullptr) - return true; - } - return false; -} - -bool assign_WindTurbineType1or2Dynamics_AsynchronousMachineDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindTurbineType1or2Dynamics* element = dynamic_cast(BaseClass_ptr1)) - { - element->AsynchronousMachineDynamics = dynamic_cast(BaseClass_ptr2); - if(element->AsynchronousMachineDynamics != nullptr) - return true; - } - return false; -} - -bool assign_WindTurbineType1or2Dynamics_RemoteInputSignal(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindTurbineType1or2Dynamics* element = dynamic_cast(BaseClass_ptr1)) - { - element->RemoteInputSignal = dynamic_cast(BaseClass_ptr2); - if(element->RemoteInputSignal != nullptr) - return true; - } - return false; -} - -bool assign_WindContRotorRIEC_WindGenTurbineType2IEC(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContRotorRIEC* element = dynamic_cast(BaseClass_ptr1)) - { - element->WindGenTurbineType2IEC = dynamic_cast(BaseClass_ptr2); - if(element->WindGenTurbineType2IEC != nullptr) - return true; - } - return false; -} - -bool assign_WindContCurrLimIEC_WindTurbineType3or4IEC(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContCurrLimIEC* element = dynamic_cast(BaseClass_ptr1)) - { - element->WindTurbineType3or4IEC = dynamic_cast(BaseClass_ptr2); - if(element->WindTurbineType3or4IEC != nullptr) - return true; - } - return false; -} - -bool assign_WindPlantIEC_WindPlantReactiveControlIEC(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindPlantIEC* element = dynamic_cast(BaseClass_ptr1)) - { - element->WindPlantReactiveControlIEC = dynamic_cast(BaseClass_ptr2); - if(element->WindPlantReactiveControlIEC != nullptr) - return true; - } - return false; -} - -bool assign_WindPlantFreqPcontrolIEC_WindPlantIEC(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindPlantFreqPcontrolIEC* element = dynamic_cast(BaseClass_ptr1)) - { - element->WindPlantIEC = dynamic_cast(BaseClass_ptr2); - if(element->WindPlantIEC != nullptr) - return true; - } - return false; -} - -bool assign_WindContPType3IEC_WindGenTurbineType3IEC(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContPType3IEC* element = dynamic_cast(BaseClass_ptr1)) - { - element->WindGenTurbineType3IEC = dynamic_cast(BaseClass_ptr2); - if(element->WindGenTurbineType3IEC != nullptr) - return true; - } - return false; -} - -bool assign_WindDynamicsLookupTable_WindContRotorRIEC(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindDynamicsLookupTable* element = dynamic_cast(BaseClass_ptr1)) - { - element->WindContRotorRIEC = dynamic_cast(BaseClass_ptr2); - if(element->WindContRotorRIEC != nullptr) - return true; - } - return false; -} - -bool assign_WindDynamicsLookupTable_WindContCurrLimIEC(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindDynamicsLookupTable* element = dynamic_cast(BaseClass_ptr1)) - { - element->WindContCurrLimIEC = dynamic_cast(BaseClass_ptr2); - if(element->WindContCurrLimIEC != nullptr) - return true; - } - return false; -} - -bool assign_WindDynamicsLookupTable_WindPlantFreqPcontrolIEC(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindDynamicsLookupTable* element = dynamic_cast(BaseClass_ptr1)) - { - element->WindPlantFreqPcontrolIEC = dynamic_cast(BaseClass_ptr2); - if(element->WindPlantFreqPcontrolIEC != nullptr) - return true; - } - return false; -} - -bool assign_WindDynamicsLookupTable_WindContPType3IEC(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindDynamicsLookupTable* element = dynamic_cast(BaseClass_ptr1)) - { - element->WindContPType3IEC = dynamic_cast(BaseClass_ptr2); - if(element->WindContPType3IEC != nullptr) - return true; - } - return false; -} - -bool assign_WindAeroLinearIEC_WindGenTurbineType3IEC(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindAeroLinearIEC* element = dynamic_cast(BaseClass_ptr1)) - { - element->WindGenTurbineType3IEC = dynamic_cast(BaseClass_ptr2); - if(element->WindGenTurbineType3IEC != nullptr) - return true; - } - return false; -} - -bool assign_WindContPType4aIEC_WindTurbineType4aIEC(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContPType4aIEC* element = dynamic_cast(BaseClass_ptr1)) - { - element->WindTurbineType4aIEC = dynamic_cast(BaseClass_ptr2); - if(element->WindTurbineType4aIEC != nullptr) - return true; - } - return false; -} - -bool assign_WindMechIEC_WindTurbineType4bIEC(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindMechIEC* element = dynamic_cast(BaseClass_ptr1)) - { - element->WindTurbineType4bIEC = dynamic_cast(BaseClass_ptr2); - if(element->WindTurbineType4bIEC != nullptr) - return true; - } - return false; -} - -bool assign_WindMechIEC_WindTurbineType1or2IEC(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindMechIEC* element = dynamic_cast(BaseClass_ptr1)) - { - element->WindTurbineType1or2IEC = dynamic_cast(BaseClass_ptr2); - if(element->WindTurbineType1or2IEC != nullptr) - return true; - } - return false; -} - -bool assign_WindMechIEC_WindGenTurbineType3IEC(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindMechIEC* element = dynamic_cast(BaseClass_ptr1)) - { - element->WindGenTurbineType3IEC = dynamic_cast(BaseClass_ptr2); - if(element->WindGenTurbineType3IEC != nullptr) - return true; - } - return false; -} - -bool assign_WindPitchContEmulIEC_WindGenTurbineType2IEC(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindPitchContEmulIEC* element = dynamic_cast(BaseClass_ptr1)) - { - element->WindGenTurbineType2IEC = dynamic_cast(BaseClass_ptr2); - if(element->WindGenTurbineType2IEC != nullptr) - return true; - } - return false; -} - -bool assign_WindContPitchAngleIEC_WindGenTurbineType3IEC(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContPitchAngleIEC* element = dynamic_cast(BaseClass_ptr1)) - { - element->WindGenTurbineType3IEC = dynamic_cast(BaseClass_ptr2); - if(element->WindGenTurbineType3IEC != nullptr) - return true; - } - return false; -} - -bool assign_WindContQIEC_WindTurbineType3or4IEC(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContQIEC* element = dynamic_cast(BaseClass_ptr1)) - { - element->WindTurbineType3or4IEC = dynamic_cast(BaseClass_ptr2); - if(element->WindTurbineType3or4IEC != nullptr) - return true; - } - return false; -} - -bool assign_WindContPType4bIEC_WindTurbineType4bIEC(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContPType4bIEC* element = dynamic_cast(BaseClass_ptr1)) - { - element->WindTurbineType4bIEC = dynamic_cast(BaseClass_ptr2); - if(element->WindTurbineType4bIEC != nullptr) - return true; - } - return false; -} - -bool assign_WindAeroConstIEC_WindGenTurbineType1IEC(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindAeroConstIEC* element = dynamic_cast(BaseClass_ptr1)) - { - element->WindGenTurbineType1IEC = dynamic_cast(BaseClass_ptr2); - if(element->WindGenTurbineType1IEC != nullptr) - return true; - } - return false; -} - -bool assign_WindProtectionIEC_WindTurbineType3or4IEC(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindProtectionIEC* element = dynamic_cast(BaseClass_ptr1)) - { - element->WindTurbineType3or4IEC = dynamic_cast(BaseClass_ptr2); - if(element->WindTurbineType3or4IEC != nullptr) - return true; - } - return false; -} - -bool assign_WindProtectionIEC_WindTurbineType1or2IEC(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindProtectionIEC* element = dynamic_cast(BaseClass_ptr1)) - { - element->WindTurbineType1or2IEC = dynamic_cast(BaseClass_ptr2); - if(element->WindTurbineType1or2IEC != nullptr) - return true; - } - return false; -} - -bool assign_GenICompensationForGenJ_VcompIEEEType2(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::StandardModels::VoltageCompensatorDynamics::GenICompensationForGenJ* element = dynamic_cast(BaseClass_ptr1)) - { - element->VcompIEEEType2 = dynamic_cast(BaseClass_ptr2); - if(element->VcompIEEEType2 != nullptr) - return true; - } - return false; -} - -bool assign_GenICompensationForGenJ_SynchronousMachineDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::StandardModels::VoltageCompensatorDynamics::GenICompensationForGenJ* element = dynamic_cast(BaseClass_ptr1)) - { - element->SynchronousMachineDynamics = dynamic_cast(BaseClass_ptr2); - if(element->SynchronousMachineDynamics != nullptr) - return true; - } - return false; -} - -bool assign_LoadMotor_LoadAggregate(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::StandardModels::LoadDynamics::LoadMotor* element = dynamic_cast(BaseClass_ptr1)) - { - element->LoadAggregate = dynamic_cast(BaseClass_ptr2); - if(element->LoadAggregate != nullptr) - return true; - } - return false; -} - -bool assign_LoadStatic_LoadAggregate(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::StandardModels::LoadDynamics::LoadStatic* element = dynamic_cast(BaseClass_ptr1)) - { - element->LoadAggregate = dynamic_cast(BaseClass_ptr2); - if(element->LoadAggregate != nullptr) - return true; - } - return false; -} - -bool assign_OperationalLimit_OperationalLimitType(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::OperationalLimits::OperationalLimit* element = dynamic_cast(BaseClass_ptr1)) - { - element->OperationalLimitType = dynamic_cast(BaseClass_ptr2); - if(element->OperationalLimitType != nullptr) - return true; - } - return false; -} - -bool assign_OperationalLimitSet_Equipment(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::OperationalLimits::OperationalLimitSet* element = dynamic_cast(BaseClass_ptr1)) - { - element->Equipment = dynamic_cast(BaseClass_ptr2); - if(element->Equipment != nullptr) - return true; - } - return false; -} - -bool assign_OperationalLimitSet_Terminal(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::OperationalLimits::OperationalLimitSet* element = dynamic_cast(BaseClass_ptr1)) - { - element->Terminal = dynamic_cast(BaseClass_ptr2); - if(element->Terminal != nullptr) - return true; - } - return false; -} - -bool assign_BranchGroupTerminal_Terminal(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::OperationalLimits::BranchGroupTerminal* element = dynamic_cast(BaseClass_ptr1)) - { - element->Terminal = dynamic_cast(BaseClass_ptr2); - if(element->Terminal != nullptr) - return true; - } - return false; -} - -bool assign_BusNameMarker_ReportingGroup(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Topology::BusNameMarker* element = dynamic_cast(BaseClass_ptr1)) - { - element->ReportingGroup = dynamic_cast(BaseClass_ptr2); - if(element->ReportingGroup != nullptr) - return true; - } - return false; -} - -bool assign_TopologicalNode_ReportingGroup(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Topology::TopologicalNode* element = dynamic_cast(BaseClass_ptr1)) - { - element->ReportingGroup = dynamic_cast(BaseClass_ptr2); - if(element->ReportingGroup != nullptr) - return true; - } - return false; -} - -bool assign_TopologicalNode_ConnectivityNodeContainer(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Topology::TopologicalNode* element = dynamic_cast(BaseClass_ptr1)) - { - element->ConnectivityNodeContainer = dynamic_cast(BaseClass_ptr2); - if(element->ConnectivityNodeContainer != nullptr) - return true; - } - return false; -} - -bool assign_TopologicalNode_BaseVoltage(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Topology::TopologicalNode* element = dynamic_cast(BaseClass_ptr1)) - { - element->BaseVoltage = dynamic_cast(BaseClass_ptr2); - if(element->BaseVoltage != nullptr) - return true; - } - return false; -} - -bool assign_TopologicalIsland_AngleRefTopologicalNode(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Topology::TopologicalIsland* element = dynamic_cast(BaseClass_ptr1)) - { - element->AngleRefTopologicalNode = dynamic_cast(BaseClass_ptr2); - if(element->AngleRefTopologicalNode != nullptr) - return true; - } - return false; -} - -bool assign_RemoteControl_Control(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::SCADA::RemoteControl* element = dynamic_cast(BaseClass_ptr1)) - { - element->Control = dynamic_cast(BaseClass_ptr2); - if(element->Control != nullptr) - return true; - } - return false; -} - -bool assign_AuxiliaryEquipment_Terminal(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::AuxiliaryEquipment::AuxiliaryEquipment* element = dynamic_cast(BaseClass_ptr1)) - { - element->Terminal = dynamic_cast(BaseClass_ptr2); - if(element->Terminal != nullptr) - return true; - } - return false; -} - -bool assign_VoltageLevel_BaseVoltage(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Core::VoltageLevel* element = dynamic_cast(BaseClass_ptr1)) - { - element->BaseVoltage = dynamic_cast(BaseClass_ptr2); - if(element->BaseVoltage != nullptr) - return true; - } - return false; -} - -bool assign_OperatingShare_OperatingParticipant(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Core::OperatingShare* element = dynamic_cast(BaseClass_ptr1)) - { - element->OperatingParticipant = dynamic_cast(BaseClass_ptr2); - if(element->OperatingParticipant != nullptr) - return true; - } - return false; -} - -bool assign_OperatingShare_PowerSystemResource(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Core::OperatingShare* element = dynamic_cast(BaseClass_ptr1)) - { - element->PowerSystemResource = dynamic_cast(BaseClass_ptr2); - if(element->PowerSystemResource != nullptr) - return true; - } - return false; -} - -bool assign_NameType_NameTypeAuthority(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Core::NameType* element = dynamic_cast(BaseClass_ptr1)) - { - element->NameTypeAuthority = dynamic_cast(BaseClass_ptr2); - if(element->NameTypeAuthority != nullptr) - return true; - } - return false; -} - -bool assign_Name_NameType(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Core::Name* element = dynamic_cast(BaseClass_ptr1)) - { - element->NameType = dynamic_cast(BaseClass_ptr2); - if(element->NameType != nullptr) - return true; - } - return false; -} - -bool assign_Name_IdentifiedObject(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Core::Name* element = dynamic_cast(BaseClass_ptr1)) - { - element->IdentifiedObject = dynamic_cast(BaseClass_ptr2); - if(element->IdentifiedObject != nullptr) - return true; - } - return false; -} - -bool assign_DiagramObjectPoint_DiagramObjectGluePoint(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::DiagramLayout::DiagramObjectPoint* element = dynamic_cast(BaseClass_ptr1)) - { - element->DiagramObjectGluePoint = dynamic_cast(BaseClass_ptr2); - if(element->DiagramObjectGluePoint != nullptr) - return true; - } - return false; -} - -bool assign_DiagramObject_Diagram(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::DiagramLayout::DiagramObject* element = dynamic_cast(BaseClass_ptr1)) - { - element->Diagram = dynamic_cast(BaseClass_ptr2); - if(element->Diagram != nullptr) - return true; - } - return false; -} - -bool assign_DiagramObject_DiagramObjectStyle(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::DiagramLayout::DiagramObject* element = dynamic_cast(BaseClass_ptr1)) - { - element->DiagramObjectStyle = dynamic_cast(BaseClass_ptr2); - if(element->DiagramObjectStyle != nullptr) - return true; - } - return false; -} - -bool assign_TapChanger_TapChangerControl(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Wires::TapChanger* element = dynamic_cast(BaseClass_ptr1)) - { - element->TapChangerControl = dynamic_cast(BaseClass_ptr2); - if(element->TapChangerControl != nullptr) - return true; - } - return false; -} - -bool assign_MutualCoupling_First_Terminal(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Wires::MutualCoupling* element = dynamic_cast(BaseClass_ptr1)) - { - element->First_Terminal = dynamic_cast(BaseClass_ptr2); - if(element->First_Terminal != nullptr) - return true; - } - return false; -} - -bool assign_MutualCoupling_Second_Terminal(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Wires::MutualCoupling* element = dynamic_cast(BaseClass_ptr1)) - { - element->Second_Terminal = dynamic_cast(BaseClass_ptr2); - if(element->Second_Terminal != nullptr) - return true; - } - return false; -} - -bool assign_ACLineSegmentPhase_ACLineSegment(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Wires::ACLineSegmentPhase* element = dynamic_cast(BaseClass_ptr1)) - { - element->ACLineSegment = dynamic_cast(BaseClass_ptr2); - if(element->ACLineSegment != nullptr) - return true; - } - return false; -} - -bool assign_RatioTapChanger_RatioTapChangerTable(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Wires::RatioTapChanger* element = dynamic_cast(BaseClass_ptr1)) - { - element->RatioTapChangerTable = dynamic_cast(BaseClass_ptr2); - if(element->RatioTapChangerTable != nullptr) - return true; - } - return false; -} - -bool assign_TransformerEnd_PhaseTapChanger(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Wires::TransformerEnd* element = dynamic_cast(BaseClass_ptr1)) - { - element->PhaseTapChanger = dynamic_cast(BaseClass_ptr2); - if(element->PhaseTapChanger != nullptr) - return true; - } - return false; -} - -bool assign_TransformerEnd_StarImpedance(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Wires::TransformerEnd* element = dynamic_cast(BaseClass_ptr1)) - { - element->StarImpedance = dynamic_cast(BaseClass_ptr2); - if(element->StarImpedance != nullptr) - return true; - } - return false; -} - -bool assign_TransformerEnd_RatioTapChanger(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Wires::TransformerEnd* element = dynamic_cast(BaseClass_ptr1)) - { - element->RatioTapChanger = dynamic_cast(BaseClass_ptr2); - if(element->RatioTapChanger != nullptr) - return true; - } - return false; -} - -bool assign_TransformerEnd_BaseVoltage(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Wires::TransformerEnd* element = dynamic_cast(BaseClass_ptr1)) - { - element->BaseVoltage = dynamic_cast(BaseClass_ptr2); - if(element->BaseVoltage != nullptr) - return true; - } - return false; -} - -bool assign_TransformerEnd_Terminal(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Wires::TransformerEnd* element = dynamic_cast(BaseClass_ptr1)) - { - element->Terminal = dynamic_cast(BaseClass_ptr2); - if(element->Terminal != nullptr) - return true; - } - return false; -} - -bool assign_RegulationSchedule_RegulatingControl(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Wires::RegulationSchedule* element = dynamic_cast(BaseClass_ptr1)) - { - element->RegulatingControl = dynamic_cast(BaseClass_ptr2); - if(element->RegulatingControl != nullptr) - return true; - } - return false; -} - -bool assign_RatioTapChangerTablePoint_RatioTapChangerTable(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Wires::RatioTapChangerTablePoint* element = dynamic_cast(BaseClass_ptr1)) - { - element->RatioTapChangerTable = dynamic_cast(BaseClass_ptr2); - if(element->RatioTapChangerTable != nullptr) - return true; - } - return false; -} - -bool assign_TapSchedule_TapChanger(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Wires::TapSchedule* element = dynamic_cast(BaseClass_ptr1)) - { - element->TapChanger = dynamic_cast(BaseClass_ptr2); - if(element->TapChanger != nullptr) - return true; - } - return false; -} - -bool assign_TransformerMeshImpedance_FromTransformerEnd(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Wires::TransformerMeshImpedance* element = dynamic_cast(BaseClass_ptr1)) - { - element->FromTransformerEnd = dynamic_cast(BaseClass_ptr2); - if(element->FromTransformerEnd != nullptr) - return true; - } - return false; -} - -bool assign_EnergySourcePhase_EnergySource(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Wires::EnergySourcePhase* element = dynamic_cast(BaseClass_ptr1)) - { - element->EnergySource = dynamic_cast(BaseClass_ptr2); - if(element->EnergySource != nullptr) - return true; - } - return false; -} - -bool assign_Cut_ACLineSegment(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Wires::Cut* element = dynamic_cast(BaseClass_ptr1)) - { - element->ACLineSegment = dynamic_cast(BaseClass_ptr2); - if(element->ACLineSegment != nullptr) - return true; - } - return false; -} - -bool assign_PhaseTapChangerTablePoint_PhaseTapChangerTable(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Wires::PhaseTapChangerTablePoint* element = dynamic_cast(BaseClass_ptr1)) - { - element->PhaseTapChangerTable = dynamic_cast(BaseClass_ptr2); - if(element->PhaseTapChangerTable != nullptr) - return true; - } - return false; -} - -bool assign_TransformerTank_PowerTransformer(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Wires::TransformerTank* element = dynamic_cast(BaseClass_ptr1)) - { - element->PowerTransformer = dynamic_cast(BaseClass_ptr2); - if(element->PowerTransformer != nullptr) - return true; - } - return false; -} - -bool assign_BusbarSection_VoltageControlZone(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Wires::BusbarSection* element = dynamic_cast(BaseClass_ptr1)) - { - element->VoltageControlZone = dynamic_cast(BaseClass_ptr2); - if(element->VoltageControlZone != nullptr) - return true; - } - return false; -} - -bool assign_TransformerTankEnd_TransformerTank(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Wires::TransformerTankEnd* element = dynamic_cast(BaseClass_ptr1)) - { - element->TransformerTank = dynamic_cast(BaseClass_ptr2); - if(element->TransformerTank != nullptr) - return true; - } - return false; -} - -bool assign_MeasurementValue_RemoteSource(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Meas::MeasurementValue* element = dynamic_cast(BaseClass_ptr1)) - { - element->RemoteSource = dynamic_cast(BaseClass_ptr2); - if(element->RemoteSource != nullptr) - return true; - } - return false; -} - -bool assign_MeasurementValue_MeasurementValueQuality(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Meas::MeasurementValue* element = dynamic_cast(BaseClass_ptr1)) - { - element->MeasurementValueQuality = dynamic_cast(BaseClass_ptr2); - if(element->MeasurementValueQuality != nullptr) - return true; - } - return false; -} - -bool assign_AccumulatorReset_AccumulatorValue(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Meas::AccumulatorReset* element = dynamic_cast(BaseClass_ptr1)) - { - element->AccumulatorValue = dynamic_cast(BaseClass_ptr2); - if(element->AccumulatorValue != nullptr) - return true; - } - return false; -} - -bool assign_RaiseLowerCommand_ValueAliasSet(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Meas::RaiseLowerCommand* element = dynamic_cast(BaseClass_ptr1)) - { - element->ValueAliasSet = dynamic_cast(BaseClass_ptr2); - if(element->ValueAliasSet != nullptr) - return true; - } - return false; -} - -bool assign_AnalogValue_AnalogControl(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Meas::AnalogValue* element = dynamic_cast(BaseClass_ptr1)) - { - element->AnalogControl = dynamic_cast(BaseClass_ptr2); - if(element->AnalogControl != nullptr) - return true; - } - return false; -} - -bool assign_Command_ValueAliasSet(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Meas::Command* element = dynamic_cast(BaseClass_ptr1)) - { - element->ValueAliasSet = dynamic_cast(BaseClass_ptr2); - if(element->ValueAliasSet != nullptr) - return true; - } - return false; -} - -bool assign_StringMeasurementValue_StringMeasurement(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Meas::StringMeasurementValue* element = dynamic_cast(BaseClass_ptr1)) - { - element->StringMeasurement = dynamic_cast(BaseClass_ptr2); - if(element->StringMeasurement != nullptr) - return true; - } - return false; -} - -bool assign_DiscreteValue_Command(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Meas::DiscreteValue* element = dynamic_cast(BaseClass_ptr1)) - { - element->Command = dynamic_cast(BaseClass_ptr2); - if(element->Command != nullptr) - return true; - } - return false; -} - -bool assign_SvTapStep_TapChanger(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::StateVariables::SvTapStep* element = dynamic_cast(BaseClass_ptr1)) - { - element->TapChanger = dynamic_cast(BaseClass_ptr2); - if(element->TapChanger != nullptr) - return true; - } - return false; -} - -bool assign_SvVoltage_TopologicalNode(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::StateVariables::SvVoltage* element = dynamic_cast(BaseClass_ptr1)) - { - element->TopologicalNode = dynamic_cast(BaseClass_ptr2); - if(element->TopologicalNode != nullptr) - return true; - } - return false; -} - -bool assign_SvShuntCompensatorSections_ShuntCompensator(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::StateVariables::SvShuntCompensatorSections* element = dynamic_cast(BaseClass_ptr1)) - { - element->ShuntCompensator = dynamic_cast(BaseClass_ptr2); - if(element->ShuntCompensator != nullptr) - return true; - } - return false; -} - -bool assign_SvStatus_ConductingEquipment(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::StateVariables::SvStatus* element = dynamic_cast(BaseClass_ptr1)) - { - element->ConductingEquipment = dynamic_cast(BaseClass_ptr2); - if(element->ConductingEquipment != nullptr) - return true; - } - return false; -} - -bool assign_SvPowerFlow_Terminal(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::StateVariables::SvPowerFlow* element = dynamic_cast(BaseClass_ptr1)) - { - element->Terminal = dynamic_cast(BaseClass_ptr2); - if(element->Terminal != nullptr) - return true; - } - return false; -} - -bool assign_SvInjection_TopologicalNode(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::StateVariables::SvInjection* element = dynamic_cast(BaseClass_ptr1)) - { - element->TopologicalNode = dynamic_cast(BaseClass_ptr2); - if(element->TopologicalNode != nullptr) - return true; - } - return false; -} - -bool assign_GeneratingUnit_GenUnitOpSchedule(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Generation::Production::GeneratingUnit* element = dynamic_cast(BaseClass_ptr1)) - { - element->GenUnitOpSchedule = dynamic_cast(BaseClass_ptr2); - if(element->GenUnitOpSchedule != nullptr) - return true; - } - return false; -} - -bool assign_HydroGeneratingUnit_PenstockLossCurve(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Generation::Production::HydroGeneratingUnit* element = dynamic_cast(BaseClass_ptr1)) - { - element->PenstockLossCurve = dynamic_cast(BaseClass_ptr2); - if(element->PenstockLossCurve != nullptr) - return true; - } - return false; -} - -bool assign_StartupModel_StartRampCurve(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Generation::Production::StartupModel* element = dynamic_cast(BaseClass_ptr1)) - { - element->StartRampCurve = dynamic_cast(BaseClass_ptr2); - if(element->StartRampCurve != nullptr) - return true; - } - return false; -} - -bool assign_StartupModel_StartIgnFuelCurve(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Generation::Production::StartupModel* element = dynamic_cast(BaseClass_ptr1)) - { - element->StartIgnFuelCurve = dynamic_cast(BaseClass_ptr2); - if(element->StartIgnFuelCurve != nullptr) - return true; - } - return false; -} - -bool assign_StartupModel_StartMainFuelCurve(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Generation::Production::StartupModel* element = dynamic_cast(BaseClass_ptr1)) - { - element->StartMainFuelCurve = dynamic_cast(BaseClass_ptr2); - if(element->StartMainFuelCurve != nullptr) - return true; - } - return false; -} - -bool assign_ThermalGeneratingUnit_HeatRateCurve(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Generation::Production::ThermalGeneratingUnit* element = dynamic_cast(BaseClass_ptr1)) - { - element->HeatRateCurve = dynamic_cast(BaseClass_ptr2); - if(element->HeatRateCurve != nullptr) - return true; - } - return false; -} - -bool assign_ThermalGeneratingUnit_StartupModel(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Generation::Production::ThermalGeneratingUnit* element = dynamic_cast(BaseClass_ptr1)) - { - element->StartupModel = dynamic_cast(BaseClass_ptr2); - if(element->StartupModel != nullptr) - return true; - } - return false; -} - -bool assign_ThermalGeneratingUnit_ShutdownCurve(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Generation::Production::ThermalGeneratingUnit* element = dynamic_cast(BaseClass_ptr1)) - { - element->ShutdownCurve = dynamic_cast(BaseClass_ptr2); - if(element->ShutdownCurve != nullptr) - return true; - } - return false; -} - -bool assign_ThermalGeneratingUnit_IncrementalHeatRateCurve(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Generation::Production::ThermalGeneratingUnit* element = dynamic_cast(BaseClass_ptr1)) - { - element->IncrementalHeatRateCurve = dynamic_cast(BaseClass_ptr2); - if(element->IncrementalHeatRateCurve != nullptr) - return true; - } - return false; -} - -bool assign_ThermalGeneratingUnit_HeatInputCurve(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Generation::Production::ThermalGeneratingUnit* element = dynamic_cast(BaseClass_ptr1)) - { - element->HeatInputCurve = dynamic_cast(BaseClass_ptr2); - if(element->HeatInputCurve != nullptr) - return true; - } - return false; -} - -bool assign_CAESPlant_ThermalGeneratingUnit(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Generation::Production::CAESPlant* element = dynamic_cast(BaseClass_ptr1)) - { - element->ThermalGeneratingUnit = dynamic_cast(BaseClass_ptr2); - if(element->ThermalGeneratingUnit != nullptr) - return true; - } - return false; -} - -bool assign_CAESPlant_AirCompressor(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Generation::Production::CAESPlant* element = dynamic_cast(BaseClass_ptr1)) - { - element->AirCompressor = dynamic_cast(BaseClass_ptr2); - if(element->AirCompressor != nullptr) - return true; - } - return false; -} - -bool assign_Reservoir_TargetLevelSchedule(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Generation::Production::Reservoir* element = dynamic_cast(BaseClass_ptr1)) - { - element->TargetLevelSchedule = dynamic_cast(BaseClass_ptr2); - if(element->TargetLevelSchedule != nullptr) - return true; - } - return false; -} - -bool assign_HydroPowerPlant_Reservoir(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Generation::Production::HydroPowerPlant* element = dynamic_cast(BaseClass_ptr1)) - { - element->Reservoir = dynamic_cast(BaseClass_ptr2); - if(element->Reservoir != nullptr) - return true; - } - return false; -} - -bool assign_HydroPowerPlant_GenSourcePumpDischargeReservoir(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Generation::Production::HydroPowerPlant* element = dynamic_cast(BaseClass_ptr1)) - { - element->GenSourcePumpDischargeReservoir = dynamic_cast(BaseClass_ptr2); - if(element->GenSourcePumpDischargeReservoir != nullptr) - return true; - } - return false; -} - -bool assign_FossilFuel_ThermalGeneratingUnit(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Generation::Production::FossilFuel* element = dynamic_cast(BaseClass_ptr1)) - { - element->ThermalGeneratingUnit = dynamic_cast(BaseClass_ptr2); - if(element->ThermalGeneratingUnit != nullptr) - return true; - } - return false; -} - -bool assign_CogenerationPlant_SteamSendoutSchedule(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Generation::Production::CogenerationPlant* element = dynamic_cast(BaseClass_ptr1)) - { - element->SteamSendoutSchedule = dynamic_cast(BaseClass_ptr2); - if(element->SteamSendoutSchedule != nullptr) - return true; - } - return false; -} - -bool assign_CombustionTurbine_AirCompressor(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::CombustionTurbine* element = dynamic_cast(BaseClass_ptr1)) - { - element->AirCompressor = dynamic_cast(BaseClass_ptr2); - if(element->AirCompressor != nullptr) - return true; - } - return false; -} - -bool assign_CombustionTurbine_CTTempActivePowerCurve(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::CombustionTurbine* element = dynamic_cast(BaseClass_ptr1)) - { - element->CTTempActivePowerCurve = dynamic_cast(BaseClass_ptr2); - if(element->CTTempActivePowerCurve != nullptr) - return true; - } - return false; -} - -bool assign_ContingencyEquipment_Equipment(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Contingency::ContingencyEquipment* element = dynamic_cast(BaseClass_ptr1)) - { - element->Equipment = dynamic_cast(BaseClass_ptr2); - if(element->Equipment != nullptr) - return true; - } - return false; -} - -bool assign_AltTieMeas_AnalogValue(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::ControlArea::AltTieMeas* element = dynamic_cast(BaseClass_ptr1)) - { - element->AnalogValue = dynamic_cast(BaseClass_ptr2); - if(element->AnalogValue != nullptr) - return true; - } - return false; -} - -bool assign_TieFlow_Terminal(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::ControlArea::TieFlow* element = dynamic_cast(BaseClass_ptr1)) - { - element->Terminal = dynamic_cast(BaseClass_ptr2); - if(element->Terminal != nullptr) - return true; - } - return false; -} - -bool assign_AltGeneratingUnitMeas_AnalogValue(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::ControlArea::AltGeneratingUnitMeas* element = dynamic_cast(BaseClass_ptr1)) - { - element->AnalogValue = dynamic_cast(BaseClass_ptr2); - if(element->AnalogValue != nullptr) - return true; - } - return false; -} - -bool assign_ControlAreaGeneratingUnit_GeneratingUnit(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::ControlArea::ControlAreaGeneratingUnit* element = dynamic_cast(BaseClass_ptr1)) - { - element->GeneratingUnit = dynamic_cast(BaseClass_ptr2); - if(element->GeneratingUnit != nullptr) - return true; - } - return false; -} - -bool assign_ControlArea_EnergyArea(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::ControlArea::ControlArea* element = dynamic_cast(BaseClass_ptr1)) - { - element->EnergyArea = dynamic_cast(BaseClass_ptr2); - if(element->EnergyArea != nullptr) - return true; - } - return false; -} - -bool assign_DCBaseTerminal_DCTopologicalNode(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::DC::DCBaseTerminal* element = dynamic_cast(BaseClass_ptr1)) - { - element->DCTopologicalNode = dynamic_cast(BaseClass_ptr2); - if(element->DCTopologicalNode != nullptr) - return true; - } - return false; -} - -bool assign_ACDCConverter_PccTerminal(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::DC::ACDCConverter* element = dynamic_cast(BaseClass_ptr1)) - { - element->PccTerminal = dynamic_cast(BaseClass_ptr2); - if(element->PccTerminal != nullptr) - return true; - } - return false; -} - -bool assign_VsConverter_CapabilityCurve(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::DC::VsConverter* element = dynamic_cast(BaseClass_ptr1)) - { - element->CapabilityCurve = dynamic_cast(BaseClass_ptr2); - if(element->CapabilityCurve != nullptr) - return true; - } - return false; -} - -bool assign_ACDCConverterDCTerminal_DCConductingEquipment(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::DC::ACDCConverterDCTerminal* element = dynamic_cast(BaseClass_ptr1)) - { - element->DCConductingEquipment = dynamic_cast(BaseClass_ptr2); - if(element->DCConductingEquipment != nullptr) - return true; - } - return false; -} - -bool assign_DCLine_Region(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::DC::DCLine* element = dynamic_cast(BaseClass_ptr1)) - { - element->Region = dynamic_cast(BaseClass_ptr2); - if(element->Region != nullptr) - return true; - } - return false; -} - -bool assign_DCNode_DCTopologicalNode(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::DC::DCNode* element = dynamic_cast(BaseClass_ptr1)) - { - element->DCTopologicalNode = dynamic_cast(BaseClass_ptr2); - if(element->DCTopologicalNode != nullptr) - return true; - } - return false; -} - -bool assign_DCNode_DCEquipmentContainer(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::DC::DCNode* element = dynamic_cast(BaseClass_ptr1)) - { - element->DCEquipmentContainer = dynamic_cast(BaseClass_ptr2); - if(element->DCEquipmentContainer != nullptr) - return true; - } - return false; -} - -bool assign_Fault_FaultyEquipment(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Faults::Fault* element = dynamic_cast(BaseClass_ptr1)) - { - element->FaultyEquipment = dynamic_cast(BaseClass_ptr2); - if(element->FaultyEquipment != nullptr) - return true; - } - return false; -} - -bool assign_LineFault_ACLineSegment(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Faults::LineFault* element = dynamic_cast(BaseClass_ptr1)) - { - element->ACLineSegment = dynamic_cast(BaseClass_ptr2); - if(element->ACLineSegment != nullptr) - return true; - } - return false; -} - -bool assign_EquipmentFault_Terminal(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Faults::EquipmentFault* element = dynamic_cast(BaseClass_ptr1)) - { - element->Terminal = dynamic_cast(BaseClass_ptr2); - if(element->Terminal != nullptr) - return true; - } - return false; -} - - - -bool assign_IdentifiedObject_DiagramObjects(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Core::IdentifiedObject* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->DiagramObjects.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_RegularIntervalSchedule_TimePoints(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Core::RegularIntervalSchedule* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->TimePoints.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_PowerSystemResource_Controls(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Core::PowerSystemResource* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->Controls.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_PowerSystemResource_Measurements(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Core::PowerSystemResource* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->Measurements.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_SynchronousMachineDynamics_TurbineGovernorDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::SynchronousMachineDynamics* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->TurbineGovernorDynamics.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_Terminal_RegulatingControl(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Core::Terminal* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->RegulatingControl.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_PowerSystemStabilizerDynamics_RemoteInputSignal(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PowerSystemStabilizerDynamics* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->RemoteInputSignal.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_EnergyConsumer_EnergyConsumerPhase(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Wires::EnergyConsumer* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->EnergyConsumerPhase.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_LoadDynamics_EnergyConsumer(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::StandardModels::LoadDynamics::LoadDynamics* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->EnergyConsumer.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_WindPlantDynamics_WindTurbineType3or4Dynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindPlantDynamics* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->WindTurbineType3or4Dynamics.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_WindPlantUserDefined_ProprietaryParameterDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::UserDefinedModels::WindPlantUserDefined* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->ProprietaryParameterDynamics.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_WindType3or4UserDefined_ProprietaryParameterDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::UserDefinedModels::WindType3or4UserDefined* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->ProprietaryParameterDynamics.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_WindType1or2UserDefined_ProprietaryParameterDynamics(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Dynamics::UserDefinedModels::WindType1or2UserDefined* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->ProprietaryParameterDynamics.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_EquivalentNetwork_EquivalentEquipments(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Equivalents::EquivalentNetwork* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->EquivalentEquipments.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_OperationalLimitSet_OperationalLimitValue(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::OperationalLimits::OperationalLimitSet* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->OperationalLimitValue.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_BranchGroup_BranchGroupTerminal(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::OperationalLimits::BranchGroup* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->BranchGroupTerminal.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_ReportingGroup_PowerSystemResource(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Core::ReportingGroup* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->PowerSystemResource.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_BusNameMarker_Terminal(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Topology::BusNameMarker* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->Terminal.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_BaseVoltage_ConductingEquipment(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Core::BaseVoltage* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->ConductingEquipment.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_TopologicalNode_ConnectivityNodes(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Topology::TopologicalNode* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->ConnectivityNodes.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_TopologicalNode_Terminal(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Topology::TopologicalNode* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->Terminal.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_TopologicalIsland_TopologicalNodes(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Topology::TopologicalIsland* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->TopologicalNodes.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_RemoteUnit_RemotePoints(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::SCADA::RemoteUnit* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->RemotePoints.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_CommunicationLink_RemoteUnits(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::SCADA::CommunicationLink* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->RemoteUnits.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_EquipmentContainer_Equipments(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Core::EquipmentContainer* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->Equipments.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_VoltageLevel_Bays(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Core::VoltageLevel* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->Bays.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_DCEquipmentContainer_DCTopologicalNode(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::DC::DCEquipmentContainer* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->DCTopologicalNode.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_Substation_VoltageLevels(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Core::Substation* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->VoltageLevels.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_Substation_Bays(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Core::Substation* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->Bays.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_Substation_DCConverterUnit(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Core::Substation* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->DCConverterUnit.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_SubGeographicalRegion_Lines(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Core::SubGeographicalRegion* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->Lines.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_SubGeographicalRegion_Substations(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Core::SubGeographicalRegion* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->Substations.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_Curve_CurveDatas(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Core::Curve* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->CurveDatas.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_ReportingSuperGroup_ReportingGroup(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Core::ReportingSuperGroup* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->ReportingGroup.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_IrregularIntervalSchedule_TimePoints(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Core::IrregularIntervalSchedule* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->TimePoints.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_GeographicalRegion_Regions(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Core::GeographicalRegion* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->Regions.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_DiagramObject_VisibilityLayers(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::DiagramLayout::DiagramObject* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->VisibilityLayers.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_DiagramObject_DiagramObjectPoints(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::DiagramLayout::DiagramObject* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->DiagramObjectPoints.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_DiagramStyle_Diagram(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::DiagramLayout::DiagramStyle* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->Diagram.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_NonConformLoadGroup_EnergyConsumers(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::LoadModel::NonConformLoadGroup* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->EnergyConsumers.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_NonConformLoadGroup_NonConformLoadSchedules(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::LoadModel::NonConformLoadGroup* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->NonConformLoadSchedules.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_DayType_SeasonDayTypeSchedules(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::LoadModel::DayType* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->SeasonDayTypeSchedules.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_SubLoadArea_LoadGroups(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::LoadModel::SubLoadArea* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->LoadGroups.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_LoadArea_SubLoadAreas(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::LoadModel::LoadArea* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->SubLoadAreas.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_PowerCutZone_EnergyConsumers(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::LoadModel::PowerCutZone* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->EnergyConsumers.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_Season_SeasonDayTypeSchedules(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::LoadModel::Season* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->SeasonDayTypeSchedules.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_ConformLoadGroup_EnergyConsumers(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::LoadModel::ConformLoadGroup* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->EnergyConsumers.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_ConformLoadGroup_ConformLoadSchedules(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::LoadModel::ConformLoadGroup* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->ConformLoadSchedules.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_ShuntCompensator_ShuntCompensatorPhase(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Wires::ShuntCompensator* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->ShuntCompensatorPhase.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_ACLineSegment_Clamp(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Wires::ACLineSegment* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->Clamp.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_PerLengthImpedance_ACLineSegments(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Wires::PerLengthImpedance* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->ACLineSegments.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_PerLengthPhaseImpedance_PhaseImpedanceData(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Wires::PerLengthPhaseImpedance* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->PhaseImpedanceData.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_ReactiveCapabilityCurve_EquivalentInjection(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Wires::ReactiveCapabilityCurve* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->EquivalentInjection.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_ReactiveCapabilityCurve_InitiallyUsedBySynchronousMachines(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Wires::ReactiveCapabilityCurve* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->InitiallyUsedBySynchronousMachines.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_ReactiveCapabilityCurve_SynchronousMachines(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Wires::ReactiveCapabilityCurve* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->SynchronousMachines.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_NonlinearShuntCompensator_NonlinearShuntCompensatorPoints(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Wires::NonlinearShuntCompensator* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->NonlinearShuntCompensatorPoints.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_RegulationSchedule_VoltageControlZones(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Wires::RegulationSchedule* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->VoltageControlZones.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_TransformerCoreAdmittance_TransformerEnd(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Wires::TransformerCoreAdmittance* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->TransformerEnd.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_Switch_SwitchPhase(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Wires::Switch* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->SwitchPhase.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_Switch_SwitchSchedules(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Wires::Switch* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->SwitchSchedules.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_ProtectedSwitch_RecloseSequences(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Wires::ProtectedSwitch* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->RecloseSequences.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_TransformerMeshImpedance_ToTransformerEnd(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Wires::TransformerMeshImpedance* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->ToTransformerEnd.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_CompositeSwitch_Switches(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Wires::CompositeSwitch* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->Switches.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_PowerTransformer_PowerTransformerEnd(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Wires::PowerTransformer* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->PowerTransformerEnd.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_NonlinearShuntCompensatorPhase_NonlinearShuntCompensatorPhasePoints(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Wires::NonlinearShuntCompensatorPhase* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->NonlinearShuntCompensatorPhasePoints.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_PhaseTapChangerTable_PhaseTapChangerTabular(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Wires::PhaseTapChangerTable* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->PhaseTapChangerTabular.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_ValueAliasSet_Values(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Meas::ValueAliasSet* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->Values.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_ValueAliasSet_Discretes(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Meas::ValueAliasSet* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->Discretes.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_AccumulatorLimitSet_Limits(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Meas::AccumulatorLimitSet* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->Limits.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_AnalogLimitSet_Limits(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Meas::AnalogLimitSet* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->Limits.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_MeasurementValueSource_MeasurementValues(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Meas::MeasurementValueSource* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->MeasurementValues.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_Accumulator_AccumulatorValues(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Meas::Accumulator* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->AccumulatorValues.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_Accumulator_LimitSets(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Meas::Accumulator* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->LimitSets.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_Analog_AnalogValues(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Meas::Analog* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->AnalogValues.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_Analog_LimitSets(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Meas::Analog* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->LimitSets.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_Discrete_DiscreteValues(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Meas::Discrete* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->DiscreteValues.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_GeneratingUnit_GrossToNetActivePowerCurves(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Generation::Production::GeneratingUnit* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->GrossToNetActivePowerCurves.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_GeneratingUnit_GenUnitOpCostCurves(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Generation::Production::GeneratingUnit* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->GenUnitOpCostCurves.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_GeneratingUnit_RotatingMachine(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Generation::Production::GeneratingUnit* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->RotatingMachine.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_HydroGeneratingUnit_TailbayLossCurve(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Generation::Production::HydroGeneratingUnit* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->TailbayLossCurve.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_HydroGeneratingUnit_HydroGeneratingEfficiencyCurves(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Generation::Production::HydroGeneratingUnit* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->HydroGeneratingEfficiencyCurves.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_ThermalGeneratingUnit_FuelAllocationSchedules(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Generation::Production::ThermalGeneratingUnit* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->FuelAllocationSchedules.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_ThermalGeneratingUnit_EmissionCurves(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Generation::Production::ThermalGeneratingUnit* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->EmissionCurves.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_ThermalGeneratingUnit_EmmissionAccounts(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Generation::Production::ThermalGeneratingUnit* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->EmmissionAccounts.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_Reservoir_SpillsIntoReservoirs(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Generation::Production::Reservoir* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->SpillsIntoReservoirs.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_Reservoir_LevelVsVolumeCurves(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Generation::Production::Reservoir* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->LevelVsVolumeCurves.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_Reservoir_InflowForecasts(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Generation::Production::Reservoir* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->InflowForecasts.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_HydroPowerPlant_HydroPumps(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Generation::Production::HydroPowerPlant* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->HydroPumps.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_HydroPowerPlant_HydroGeneratingUnits(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Generation::Production::HydroPowerPlant* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->HydroGeneratingUnits.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_FossilFuel_FuelAllocationSchedules(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Generation::Production::FossilFuel* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->FuelAllocationSchedules.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_CogenerationPlant_ThermalGeneratingUnits(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Generation::Production::CogenerationPlant* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->ThermalGeneratingUnits.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_CombinedCyclePlant_ThermalGeneratingUnits(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Generation::Production::CombinedCyclePlant* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->ThermalGeneratingUnits.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_PrimeMover_SynchronousMachines(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::PrimeMover* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->SynchronousMachines.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_SteamSupply_SteamTurbines(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::SteamSupply* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->SteamTurbines.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_HeatRecoveryBoiler_CombustionTurbines(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::HeatRecoveryBoiler* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->CombustionTurbines.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_ProtectionEquipment_ProtectedSwitches(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Protection::ProtectionEquipment* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->ProtectedSwitches.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_ProtectionEquipment_ConductingEquipments(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Protection::ProtectionEquipment* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->ConductingEquipments.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_Contingency_ContingencyElement(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Contingency::Contingency* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->ContingencyElement.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_TieFlow_AltTieMeas(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::ControlArea::TieFlow* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->AltTieMeas.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_ControlAreaGeneratingUnit_AltGeneratingUnitMeas(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::ControlArea::ControlAreaGeneratingUnit* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->AltGeneratingUnitMeas.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_ControlArea_ControlAreaGeneratingUnit(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::ControlArea::ControlArea* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->ControlAreaGeneratingUnit.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_ControlArea_TieFlow(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::ControlArea::ControlArea* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->TieFlow.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_DCConductingEquipment_DCTerminals(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::DC::DCConductingEquipment* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->DCTerminals.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_PerLengthDCLineParameter_DCLineSegments(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::DC::PerLengthDCLineParameter* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->DCLineSegments.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_DCNode_DCTerminals(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::DC::DCNode* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->DCTerminals.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_DCTopologicalIsland_DCTopologicalNodes(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::DC::DCTopologicalIsland* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->DCTopologicalNodes.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - -bool assign_Fault_FaultCauseTypes(BaseClass* BaseClass_ptr1, BaseClass* BaseClass_ptr2) -{ - if(IEC61970::Base::Faults::Fault* element = dynamic_cast(BaseClass_ptr1)) - { - if(dynamic_cast(BaseClass_ptr2) != nullptr) - { - element->FaultCauseTypes.push_back(dynamic_cast(BaseClass_ptr2)); - return true; - } - } - return false; -} - - -static std::unordered_map initialize() -{ - std::unordered_map map; - - map.insert(std::make_pair("cim:Measurement.Terminal", &assign_Measurement_Terminal)); - map.insert(std::make_pair("cim:Terminal.Measurement", &assign_Measurement_Terminal)); - map.insert(std::make_pair("cim:PowerSystemResource.PSRType", &assign_PowerSystemResource_PSRType)); - map.insert(std::make_pair("cim:PSRType.PowerSystemResource", &assign_PowerSystemResource_PSRType)); - map.insert(std::make_pair("cim:HydroPump.HydroPumpOpSchedule", &assign_HydroPump_HydroPumpOpSchedule)); - map.insert(std::make_pair("cim:HydroPumpOpSchedule.HydroPump", &assign_HydroPump_HydroPumpOpSchedule)); - map.insert(std::make_pair("cim:RegulatingCondEq.RegulatingControl", &assign_RegulatingCondEq_RegulatingControl)); - map.insert(std::make_pair("cim:RegulatingControl.RegulatingCondEq", &assign_RegulatingCondEq_RegulatingControl)); - map.insert(std::make_pair("cim:RotatingMachine.HydroPump", &assign_RotatingMachine_HydroPump)); - map.insert(std::make_pair("cim:HydroPump.RotatingMachine", &assign_RotatingMachine_HydroPump)); - map.insert(std::make_pair("cim:AsynchronousMachineDynamics.AsynchronousMachine", &assign_AsynchronousMachineDynamics_AsynchronousMachine)); - map.insert(std::make_pair("cim:AsynchronousMachine.AsynchronousMachineDynamics", &assign_AsynchronousMachineDynamics_AsynchronousMachine)); - map.insert(std::make_pair("cim:TurbineGovernorDynamics.AsynchronousMachineDynamics", &assign_TurbineGovernorDynamics_AsynchronousMachineDynamics)); - map.insert(std::make_pair("cim:AsynchronousMachineDynamics.TurbineGovernorDynamics", &assign_TurbineGovernorDynamics_AsynchronousMachineDynamics)); - map.insert(std::make_pair("cim:SynchronousMachineDynamics.SynchronousMachine", &assign_SynchronousMachineDynamics_SynchronousMachine)); - map.insert(std::make_pair("cim:SynchronousMachine.SynchronousMachineDynamics", &assign_SynchronousMachineDynamics_SynchronousMachine)); - map.insert(std::make_pair("cim:ExcitationSystemDynamics.SynchronousMachineDynamics", &assign_ExcitationSystemDynamics_SynchronousMachineDynamics)); - map.insert(std::make_pair("cim:SynchronousMachineDynamics.ExcitationSystemDynamics", &assign_ExcitationSystemDynamics_SynchronousMachineDynamics)); - map.insert(std::make_pair("cim:ConnectivityNode.ConnectivityNodeContainer", &assign_ConnectivityNode_ConnectivityNodeContainer)); - map.insert(std::make_pair("cim:ConnectivityNodeContainer.ConnectivityNode", &assign_ConnectivityNode_ConnectivityNodeContainer)); - map.insert(std::make_pair("cim:Terminal.ConnectivityNode", &assign_Terminal_ConnectivityNode)); - map.insert(std::make_pair("cim:ConnectivityNode.Terminal", &assign_Terminal_ConnectivityNode)); - map.insert(std::make_pair("cim:Terminal.ConductingEquipment", &assign_Terminal_ConductingEquipment)); - map.insert(std::make_pair("cim:ConductingEquipment.Terminal", &assign_Terminal_ConductingEquipment)); - map.insert(std::make_pair("cim:RemoteInputSignal.Terminal", &assign_RemoteInputSignal_Terminal)); - map.insert(std::make_pair("cim:Terminal.RemoteInputSignal", &assign_RemoteInputSignal_Terminal)); - map.insert(std::make_pair("cim:PFVArControllerType1Dynamics.ExcitationSystemDynamics", &assign_PFVArControllerType1Dynamics_ExcitationSystemDynamics)); - map.insert(std::make_pair("cim:ExcitationSystemDynamics.PFVArControllerType1Dynamics", &assign_PFVArControllerType1Dynamics_ExcitationSystemDynamics)); - map.insert(std::make_pair("cim:PFVArControllerType1Dynamics.RemoteInputSignal", &assign_PFVArControllerType1Dynamics_RemoteInputSignal)); - map.insert(std::make_pair("cim:RemoteInputSignal.PFVArControllerType1Dynamics", &assign_PFVArControllerType1Dynamics_RemoteInputSignal)); - map.insert(std::make_pair("cim:VoltageAdjusterDynamics.PFVArControllerType1Dynamics", &assign_VoltageAdjusterDynamics_PFVArControllerType1Dynamics)); - map.insert(std::make_pair("cim:PFVArControllerType1Dynamics.VoltageAdjusterDynamics", &assign_VoltageAdjusterDynamics_PFVArControllerType1Dynamics)); - map.insert(std::make_pair("cim:UnderexcitationLimiterDynamics.ExcitationSystemDynamics", &assign_UnderexcitationLimiterDynamics_ExcitationSystemDynamics)); - map.insert(std::make_pair("cim:ExcitationSystemDynamics.UnderexcitationLimiterDynamics", &assign_UnderexcitationLimiterDynamics_ExcitationSystemDynamics)); - map.insert(std::make_pair("cim:UnderexcitationLimiterDynamics.RemoteInputSignal", &assign_UnderexcitationLimiterDynamics_RemoteInputSignal)); - map.insert(std::make_pair("cim:RemoteInputSignal.UnderexcitationLimiterDynamics", &assign_UnderexcitationLimiterDynamics_RemoteInputSignal)); - map.insert(std::make_pair("cim:VoltageCompensatorDynamics.ExcitationSystemDynamics", &assign_VoltageCompensatorDynamics_ExcitationSystemDynamics)); - map.insert(std::make_pair("cim:ExcitationSystemDynamics.VoltageCompensatorDynamics", &assign_VoltageCompensatorDynamics_ExcitationSystemDynamics)); - map.insert(std::make_pair("cim:VoltageCompensatorDynamics.RemoteInputSignal", &assign_VoltageCompensatorDynamics_RemoteInputSignal)); - map.insert(std::make_pair("cim:RemoteInputSignal.VoltageCompensatorDynamics", &assign_VoltageCompensatorDynamics_RemoteInputSignal)); - map.insert(std::make_pair("cim:OverexcitationLimiterDynamics.ExcitationSystemDynamics", &assign_OverexcitationLimiterDynamics_ExcitationSystemDynamics)); - map.insert(std::make_pair("cim:ExcitationSystemDynamics.OverexcitationLimiterDynamics", &assign_OverexcitationLimiterDynamics_ExcitationSystemDynamics)); - map.insert(std::make_pair("cim:PowerSystemStabilizerDynamics.ExcitationSystemDynamics", &assign_PowerSystemStabilizerDynamics_ExcitationSystemDynamics)); - map.insert(std::make_pair("cim:ExcitationSystemDynamics.PowerSystemStabilizerDynamics", &assign_PowerSystemStabilizerDynamics_ExcitationSystemDynamics)); - map.insert(std::make_pair("cim:DiscontinuousExcitationControlDynamics.ExcitationSystemDynamics", &assign_DiscontinuousExcitationControlDynamics_ExcitationSystemDynamics)); - map.insert(std::make_pair("cim:ExcitationSystemDynamics.DiscontinuousExcitationControlDynamics", &assign_DiscontinuousExcitationControlDynamics_ExcitationSystemDynamics)); - map.insert(std::make_pair("cim:DiscontinuousExcitationControlDynamics.RemoteInputSignal", &assign_DiscontinuousExcitationControlDynamics_RemoteInputSignal)); - map.insert(std::make_pair("cim:RemoteInputSignal.DiscontinuousExcitationControlDynamics", &assign_DiscontinuousExcitationControlDynamics_RemoteInputSignal)); - map.insert(std::make_pair("cim:PFVArControllerType2Dynamics.ExcitationSystemDynamics", &assign_PFVArControllerType2Dynamics_ExcitationSystemDynamics)); - map.insert(std::make_pair("cim:ExcitationSystemDynamics.PFVArControllerType2Dynamics", &assign_PFVArControllerType2Dynamics_ExcitationSystemDynamics)); - map.insert(std::make_pair("cim:MechanicalLoadDynamics.AsynchronousMachineDynamics", &assign_MechanicalLoadDynamics_AsynchronousMachineDynamics)); - map.insert(std::make_pair("cim:AsynchronousMachineDynamics.MechanicalLoadDynamics", &assign_MechanicalLoadDynamics_AsynchronousMachineDynamics)); - map.insert(std::make_pair("cim:MechanicalLoadDynamics.SynchronousMachineDynamics", &assign_MechanicalLoadDynamics_SynchronousMachineDynamics)); - map.insert(std::make_pair("cim:SynchronousMachineDynamics.MechanicalLoadDynamics", &assign_MechanicalLoadDynamics_SynchronousMachineDynamics)); - map.insert(std::make_pair("cim:EnergyConsumer.LoadResponse", &assign_EnergyConsumer_LoadResponse)); - map.insert(std::make_pair("cim:LoadResponse.EnergyConsumer", &assign_EnergyConsumer_LoadResponse)); - map.insert(std::make_pair("cim:TurbineLoadControllerDynamics.TurbineGovernorDynamics", &assign_TurbineLoadControllerDynamics_TurbineGovernorDynamics)); - map.insert(std::make_pair("cim:TurbineGovernorDynamics.TurbineLoadControllerDynamics", &assign_TurbineLoadControllerDynamics_TurbineGovernorDynamics)); - map.insert(std::make_pair("cim:ProprietaryParameterDynamics.TurbineGovernorUserDefined", &assign_ProprietaryParameterDynamics_TurbineGovernorUserDefined)); - map.insert(std::make_pair("cim:TurbineGovernorUserDefined.ProprietaryParameterDynamics", &assign_ProprietaryParameterDynamics_TurbineGovernorUserDefined)); - map.insert(std::make_pair("cim:ProprietaryParameterDynamics.VoltageAdjusterUserDefined", &assign_ProprietaryParameterDynamics_VoltageAdjusterUserDefined)); - map.insert(std::make_pair("cim:VoltageAdjusterUserDefined.ProprietaryParameterDynamics", &assign_ProprietaryParameterDynamics_VoltageAdjusterUserDefined)); - map.insert(std::make_pair("cim:ProprietaryParameterDynamics.AsynchronousMachineUserDefined", &assign_ProprietaryParameterDynamics_AsynchronousMachineUserDefined)); - map.insert(std::make_pair("cim:AsynchronousMachineUserDefined.ProprietaryParameterDynamics", &assign_ProprietaryParameterDynamics_AsynchronousMachineUserDefined)); - map.insert(std::make_pair("cim:ProprietaryParameterDynamics.UnderexcitationLimiterUserDefined", &assign_ProprietaryParameterDynamics_UnderexcitationLimiterUserDefined)); - map.insert(std::make_pair("cim:UnderexcitationLimiterUserDefined.ProprietaryParameterDynamics", &assign_ProprietaryParameterDynamics_UnderexcitationLimiterUserDefined)); - map.insert(std::make_pair("cim:ProprietaryParameterDynamics.VoltageCompensatorUserDefined", &assign_ProprietaryParameterDynamics_VoltageCompensatorUserDefined)); - map.insert(std::make_pair("cim:VoltageCompensatorUserDefined.ProprietaryParameterDynamics", &assign_ProprietaryParameterDynamics_VoltageCompensatorUserDefined)); - map.insert(std::make_pair("cim:ProprietaryParameterDynamics.PFVArControllerType1UserDefined", &assign_ProprietaryParameterDynamics_PFVArControllerType1UserDefined)); - map.insert(std::make_pair("cim:PFVArControllerType1UserDefined.ProprietaryParameterDynamics", &assign_ProprietaryParameterDynamics_PFVArControllerType1UserDefined)); - map.insert(std::make_pair("cim:ProprietaryParameterDynamics.OverexcitationLimiterUserDefined", &assign_ProprietaryParameterDynamics_OverexcitationLimiterUserDefined)); - map.insert(std::make_pair("cim:OverexcitationLimiterUserDefined.ProprietaryParameterDynamics", &assign_ProprietaryParameterDynamics_OverexcitationLimiterUserDefined)); - map.insert(std::make_pair("cim:ProprietaryParameterDynamics.PowerSystemStabilizerUserDefined", &assign_ProprietaryParameterDynamics_PowerSystemStabilizerUserDefined)); - map.insert(std::make_pair("cim:PowerSystemStabilizerUserDefined.ProprietaryParameterDynamics", &assign_ProprietaryParameterDynamics_PowerSystemStabilizerUserDefined)); - map.insert(std::make_pair("cim:ProprietaryParameterDynamics.DiscontinuousExcitationControlUserDefined", &assign_ProprietaryParameterDynamics_DiscontinuousExcitationControlUserDefined)); - map.insert(std::make_pair("cim:DiscontinuousExcitationControlUserDefined.ProprietaryParameterDynamics", &assign_ProprietaryParameterDynamics_DiscontinuousExcitationControlUserDefined)); - map.insert(std::make_pair("cim:ProprietaryParameterDynamics.PFVArControllerType2UserDefined", &assign_ProprietaryParameterDynamics_PFVArControllerType2UserDefined)); - map.insert(std::make_pair("cim:PFVArControllerType2UserDefined.ProprietaryParameterDynamics", &assign_ProprietaryParameterDynamics_PFVArControllerType2UserDefined)); - map.insert(std::make_pair("cim:ProprietaryParameterDynamics.MechanicalLoadUserDefined", &assign_ProprietaryParameterDynamics_MechanicalLoadUserDefined)); - map.insert(std::make_pair("cim:MechanicalLoadUserDefined.ProprietaryParameterDynamics", &assign_ProprietaryParameterDynamics_MechanicalLoadUserDefined)); - map.insert(std::make_pair("cim:ProprietaryParameterDynamics.SynchronousMachineUserDefined", &assign_ProprietaryParameterDynamics_SynchronousMachineUserDefined)); - map.insert(std::make_pair("cim:SynchronousMachineUserDefined.ProprietaryParameterDynamics", &assign_ProprietaryParameterDynamics_SynchronousMachineUserDefined)); - map.insert(std::make_pair("cim:ProprietaryParameterDynamics.LoadUserDefined", &assign_ProprietaryParameterDynamics_LoadUserDefined)); - map.insert(std::make_pair("cim:LoadUserDefined.ProprietaryParameterDynamics", &assign_ProprietaryParameterDynamics_LoadUserDefined)); - map.insert(std::make_pair("cim:ProprietaryParameterDynamics.TurbineLoadControllerUserDefined", &assign_ProprietaryParameterDynamics_TurbineLoadControllerUserDefined)); - map.insert(std::make_pair("cim:TurbineLoadControllerUserDefined.ProprietaryParameterDynamics", &assign_ProprietaryParameterDynamics_TurbineLoadControllerUserDefined)); - map.insert(std::make_pair("cim:ProprietaryParameterDynamics.ExcitationSystemUserDefined", &assign_ProprietaryParameterDynamics_ExcitationSystemUserDefined)); - map.insert(std::make_pair("cim:ExcitationSystemUserDefined.ProprietaryParameterDynamics", &assign_ProprietaryParameterDynamics_ExcitationSystemUserDefined)); - map.insert(std::make_pair("cim:WindTurbineType3or4Dynamics.RemoteInputSignal", &assign_WindTurbineType3or4Dynamics_RemoteInputSignal)); - map.insert(std::make_pair("cim:RemoteInputSignal.WindTurbineType3or4Dynamics", &assign_WindTurbineType3or4Dynamics_RemoteInputSignal)); - map.insert(std::make_pair("cim:WindTurbineType3or4Dynamics.WindTurbineType3or4", &assign_WindTurbineType3or4Dynamics_WindTurbineType3or4)); - map.insert(std::make_pair("cim:WindTurbineType3or4.WindTurbineType3or4Dynamics", &assign_WindTurbineType3or4Dynamics_WindTurbineType3or4)); - map.insert(std::make_pair("cim:WindPlantDynamics.RemoteInputSignal", &assign_WindPlantDynamics_RemoteInputSignal)); - map.insert(std::make_pair("cim:RemoteInputSignal.WindPlantDynamics", &assign_WindPlantDynamics_RemoteInputSignal)); - map.insert(std::make_pair("cim:WindTurbineType1or2Dynamics.AsynchronousMachineDynamics", &assign_WindTurbineType1or2Dynamics_AsynchronousMachineDynamics)); - map.insert(std::make_pair("cim:AsynchronousMachineDynamics.WindTurbineType1or2Dynamics", &assign_WindTurbineType1or2Dynamics_AsynchronousMachineDynamics)); - map.insert(std::make_pair("cim:WindTurbineType1or2Dynamics.RemoteInputSignal", &assign_WindTurbineType1or2Dynamics_RemoteInputSignal)); - map.insert(std::make_pair("cim:RemoteInputSignal.WindTurbineType1or2Dynamics", &assign_WindTurbineType1or2Dynamics_RemoteInputSignal)); - map.insert(std::make_pair("cim:WindContRotorRIEC.WindGenTurbineType2IEC", &assign_WindContRotorRIEC_WindGenTurbineType2IEC)); - map.insert(std::make_pair("cim:WindGenTurbineType2IEC.WindContRotorRIEC", &assign_WindContRotorRIEC_WindGenTurbineType2IEC)); - map.insert(std::make_pair("cim:WindContCurrLimIEC.WindTurbineType3or4IEC", &assign_WindContCurrLimIEC_WindTurbineType3or4IEC)); - map.insert(std::make_pair("cim:WindTurbineType3or4IEC.WindContCurrLimIEC", &assign_WindContCurrLimIEC_WindTurbineType3or4IEC)); - map.insert(std::make_pair("cim:WindPlantIEC.WindPlantReactiveControlIEC", &assign_WindPlantIEC_WindPlantReactiveControlIEC)); - map.insert(std::make_pair("cim:WindPlantReactiveControlIEC.WindPlantIEC", &assign_WindPlantIEC_WindPlantReactiveControlIEC)); - map.insert(std::make_pair("cim:WindPlantFreqPcontrolIEC.WindPlantIEC", &assign_WindPlantFreqPcontrolIEC_WindPlantIEC)); - map.insert(std::make_pair("cim:WindPlantIEC.WindPlantFreqPcontrolIEC", &assign_WindPlantFreqPcontrolIEC_WindPlantIEC)); - map.insert(std::make_pair("cim:WindContPType3IEC.WindGenTurbineType3IEC", &assign_WindContPType3IEC_WindGenTurbineType3IEC)); - map.insert(std::make_pair("cim:WindGenTurbineType3IEC.WindContPType3IEC", &assign_WindContPType3IEC_WindGenTurbineType3IEC)); - map.insert(std::make_pair("cim:WindDynamicsLookupTable.WindContRotorRIEC", &assign_WindDynamicsLookupTable_WindContRotorRIEC)); - map.insert(std::make_pair("cim:WindContRotorRIEC.WindDynamicsLookupTable", &assign_WindDynamicsLookupTable_WindContRotorRIEC)); - map.insert(std::make_pair("cim:WindDynamicsLookupTable.WindContCurrLimIEC", &assign_WindDynamicsLookupTable_WindContCurrLimIEC)); - map.insert(std::make_pair("cim:WindContCurrLimIEC.WindDynamicsLookupTable", &assign_WindDynamicsLookupTable_WindContCurrLimIEC)); - map.insert(std::make_pair("cim:WindDynamicsLookupTable.WindPlantFreqPcontrolIEC", &assign_WindDynamicsLookupTable_WindPlantFreqPcontrolIEC)); - map.insert(std::make_pair("cim:WindPlantFreqPcontrolIEC.WindDynamicsLookupTable", &assign_WindDynamicsLookupTable_WindPlantFreqPcontrolIEC)); - map.insert(std::make_pair("cim:WindDynamicsLookupTable.WindContPType3IEC", &assign_WindDynamicsLookupTable_WindContPType3IEC)); - map.insert(std::make_pair("cim:WindContPType3IEC.WindDynamicsLookupTable", &assign_WindDynamicsLookupTable_WindContPType3IEC)); - map.insert(std::make_pair("cim:WindAeroLinearIEC.WindGenTurbineType3IEC", &assign_WindAeroLinearIEC_WindGenTurbineType3IEC)); - map.insert(std::make_pair("cim:WindGenTurbineType3IEC.WindAeroLinearIEC", &assign_WindAeroLinearIEC_WindGenTurbineType3IEC)); - map.insert(std::make_pair("cim:WindContPType4aIEC.WindTurbineType4aIEC", &assign_WindContPType4aIEC_WindTurbineType4aIEC)); - map.insert(std::make_pair("cim:WindTurbineType4aIEC.WindContPType4aIEC", &assign_WindContPType4aIEC_WindTurbineType4aIEC)); - map.insert(std::make_pair("cim:WindMechIEC.WindTurbineType4bIEC", &assign_WindMechIEC_WindTurbineType4bIEC)); - map.insert(std::make_pair("cim:WindTurbineType4bIEC.WindMechIEC", &assign_WindMechIEC_WindTurbineType4bIEC)); - map.insert(std::make_pair("cim:WindMechIEC.WindTurbineType1or2IEC", &assign_WindMechIEC_WindTurbineType1or2IEC)); - map.insert(std::make_pair("cim:WindTurbineType1or2IEC.WindMechIEC", &assign_WindMechIEC_WindTurbineType1or2IEC)); - map.insert(std::make_pair("cim:WindMechIEC.WindGenTurbineType3IEC", &assign_WindMechIEC_WindGenTurbineType3IEC)); - map.insert(std::make_pair("cim:WindGenTurbineType3IEC.WindMechIEC", &assign_WindMechIEC_WindGenTurbineType3IEC)); - map.insert(std::make_pair("cim:WindPitchContEmulIEC.WindGenTurbineType2IEC", &assign_WindPitchContEmulIEC_WindGenTurbineType2IEC)); - map.insert(std::make_pair("cim:WindGenTurbineType2IEC.WindPitchContEmulIEC", &assign_WindPitchContEmulIEC_WindGenTurbineType2IEC)); - map.insert(std::make_pair("cim:WindContPitchAngleIEC.WindGenTurbineType3IEC", &assign_WindContPitchAngleIEC_WindGenTurbineType3IEC)); - map.insert(std::make_pair("cim:WindGenTurbineType3IEC.WindContPitchAngleIEC", &assign_WindContPitchAngleIEC_WindGenTurbineType3IEC)); - map.insert(std::make_pair("cim:WindContQIEC.WindTurbineType3or4IEC", &assign_WindContQIEC_WindTurbineType3or4IEC)); - map.insert(std::make_pair("cim:WindTurbineType3or4IEC.WindContQIEC", &assign_WindContQIEC_WindTurbineType3or4IEC)); - map.insert(std::make_pair("cim:WindContPType4bIEC.WindTurbineType4bIEC", &assign_WindContPType4bIEC_WindTurbineType4bIEC)); - map.insert(std::make_pair("cim:WindTurbineType4bIEC.WindContPType4bIEC", &assign_WindContPType4bIEC_WindTurbineType4bIEC)); - map.insert(std::make_pair("cim:WindAeroConstIEC.WindGenTurbineType1IEC", &assign_WindAeroConstIEC_WindGenTurbineType1IEC)); - map.insert(std::make_pair("cim:WindGenTurbineType1IEC.WindAeroConstIEC", &assign_WindAeroConstIEC_WindGenTurbineType1IEC)); - map.insert(std::make_pair("cim:WindProtectionIEC.WindTurbineType3or4IEC", &assign_WindProtectionIEC_WindTurbineType3or4IEC)); - map.insert(std::make_pair("cim:WindTurbineType3or4IEC.WindProtectionIEC", &assign_WindProtectionIEC_WindTurbineType3or4IEC)); - map.insert(std::make_pair("cim:WindProtectionIEC.WindTurbineType1or2IEC", &assign_WindProtectionIEC_WindTurbineType1or2IEC)); - map.insert(std::make_pair("cim:WindTurbineType1or2IEC.WindProtectionIEC", &assign_WindProtectionIEC_WindTurbineType1or2IEC)); - map.insert(std::make_pair("cim:GenICompensationForGenJ.VcompIEEEType2", &assign_GenICompensationForGenJ_VcompIEEEType2)); - map.insert(std::make_pair("cim:VcompIEEEType2.GenICompensationForGenJ", &assign_GenICompensationForGenJ_VcompIEEEType2)); - map.insert(std::make_pair("cim:GenICompensationForGenJ.SynchronousMachineDynamics", &assign_GenICompensationForGenJ_SynchronousMachineDynamics)); - map.insert(std::make_pair("cim:SynchronousMachineDynamics.GenICompensationForGenJ", &assign_GenICompensationForGenJ_SynchronousMachineDynamics)); - map.insert(std::make_pair("cim:LoadMotor.LoadAggregate", &assign_LoadMotor_LoadAggregate)); - map.insert(std::make_pair("cim:LoadAggregate.LoadMotor", &assign_LoadMotor_LoadAggregate)); - map.insert(std::make_pair("cim:LoadStatic.LoadAggregate", &assign_LoadStatic_LoadAggregate)); - map.insert(std::make_pair("cim:LoadAggregate.LoadStatic", &assign_LoadStatic_LoadAggregate)); - map.insert(std::make_pair("cim:OperationalLimit.OperationalLimitType", &assign_OperationalLimit_OperationalLimitType)); - map.insert(std::make_pair("cim:OperationalLimitType.OperationalLimit", &assign_OperationalLimit_OperationalLimitType)); - map.insert(std::make_pair("cim:OperationalLimitSet.Equipment", &assign_OperationalLimitSet_Equipment)); - map.insert(std::make_pair("cim:Equipment.OperationalLimitSet", &assign_OperationalLimitSet_Equipment)); - map.insert(std::make_pair("cim:OperationalLimitSet.Terminal", &assign_OperationalLimitSet_Terminal)); - map.insert(std::make_pair("cim:Terminal.OperationalLimitSet", &assign_OperationalLimitSet_Terminal)); - map.insert(std::make_pair("cim:BranchGroupTerminal.Terminal", &assign_BranchGroupTerminal_Terminal)); - map.insert(std::make_pair("cim:Terminal.BranchGroupTerminal", &assign_BranchGroupTerminal_Terminal)); - map.insert(std::make_pair("cim:BusNameMarker.ReportingGroup", &assign_BusNameMarker_ReportingGroup)); - map.insert(std::make_pair("cim:ReportingGroup.BusNameMarker", &assign_BusNameMarker_ReportingGroup)); - map.insert(std::make_pair("cim:TopologicalNode.ReportingGroup", &assign_TopologicalNode_ReportingGroup)); - map.insert(std::make_pair("cim:ReportingGroup.TopologicalNode", &assign_TopologicalNode_ReportingGroup)); - map.insert(std::make_pair("cim:TopologicalNode.ConnectivityNodeContainer", &assign_TopologicalNode_ConnectivityNodeContainer)); - map.insert(std::make_pair("cim:ConnectivityNodeContainer.TopologicalNode", &assign_TopologicalNode_ConnectivityNodeContainer)); - map.insert(std::make_pair("cim:TopologicalNode.BaseVoltage", &assign_TopologicalNode_BaseVoltage)); - map.insert(std::make_pair("cim:BaseVoltage.TopologicalNode", &assign_TopologicalNode_BaseVoltage)); - map.insert(std::make_pair("cim:TopologicalIsland.AngleRefTopologicalNode", &assign_TopologicalIsland_AngleRefTopologicalNode)); - map.insert(std::make_pair("cim:AngleRefTopologicalNode.TopologicalIsland", &assign_TopologicalIsland_AngleRefTopologicalNode)); - map.insert(std::make_pair("cim:RemoteControl.Control", &assign_RemoteControl_Control)); - map.insert(std::make_pair("cim:Control.RemoteControl", &assign_RemoteControl_Control)); - map.insert(std::make_pair("cim:AuxiliaryEquipment.Terminal", &assign_AuxiliaryEquipment_Terminal)); - map.insert(std::make_pair("cim:Terminal.AuxiliaryEquipment", &assign_AuxiliaryEquipment_Terminal)); - map.insert(std::make_pair("cim:VoltageLevel.BaseVoltage", &assign_VoltageLevel_BaseVoltage)); - map.insert(std::make_pair("cim:BaseVoltage.VoltageLevel", &assign_VoltageLevel_BaseVoltage)); - map.insert(std::make_pair("cim:OperatingShare.OperatingParticipant", &assign_OperatingShare_OperatingParticipant)); - map.insert(std::make_pair("cim:OperatingParticipant.OperatingShare", &assign_OperatingShare_OperatingParticipant)); - map.insert(std::make_pair("cim:OperatingShare.PowerSystemResource", &assign_OperatingShare_PowerSystemResource)); - map.insert(std::make_pair("cim:PowerSystemResource.OperatingShare", &assign_OperatingShare_PowerSystemResource)); - map.insert(std::make_pair("cim:NameType.NameTypeAuthority", &assign_NameType_NameTypeAuthority)); - map.insert(std::make_pair("cim:NameTypeAuthority.NameType", &assign_NameType_NameTypeAuthority)); - map.insert(std::make_pair("cim:Name.NameType", &assign_Name_NameType)); - map.insert(std::make_pair("cim:NameType.Name", &assign_Name_NameType)); - map.insert(std::make_pair("cim:Name.IdentifiedObject", &assign_Name_IdentifiedObject)); - map.insert(std::make_pair("cim:IdentifiedObject.Name", &assign_Name_IdentifiedObject)); - map.insert(std::make_pair("cim:DiagramObjectPoint.DiagramObjectGluePoint", &assign_DiagramObjectPoint_DiagramObjectGluePoint)); - map.insert(std::make_pair("cim:DiagramObjectGluePoint.DiagramObjectPoint", &assign_DiagramObjectPoint_DiagramObjectGluePoint)); - map.insert(std::make_pair("cim:DiagramObject.Diagram", &assign_DiagramObject_Diagram)); - map.insert(std::make_pair("cim:Diagram.DiagramObject", &assign_DiagramObject_Diagram)); - map.insert(std::make_pair("cim:DiagramObject.DiagramObjectStyle", &assign_DiagramObject_DiagramObjectStyle)); - map.insert(std::make_pair("cim:DiagramObjectStyle.DiagramObject", &assign_DiagramObject_DiagramObjectStyle)); - map.insert(std::make_pair("cim:TapChanger.TapChangerControl", &assign_TapChanger_TapChangerControl)); - map.insert(std::make_pair("cim:TapChangerControl.TapChanger", &assign_TapChanger_TapChangerControl)); - map.insert(std::make_pair("cim:MutualCoupling.First_Terminal", &assign_MutualCoupling_First_Terminal)); - map.insert(std::make_pair("cim:First_Terminal.MutualCoupling", &assign_MutualCoupling_First_Terminal)); - map.insert(std::make_pair("cim:MutualCoupling.Second_Terminal", &assign_MutualCoupling_Second_Terminal)); - map.insert(std::make_pair("cim:Second_Terminal.MutualCoupling", &assign_MutualCoupling_Second_Terminal)); - map.insert(std::make_pair("cim:ACLineSegmentPhase.ACLineSegment", &assign_ACLineSegmentPhase_ACLineSegment)); - map.insert(std::make_pair("cim:ACLineSegment.ACLineSegmentPhase", &assign_ACLineSegmentPhase_ACLineSegment)); - map.insert(std::make_pair("cim:RatioTapChanger.RatioTapChangerTable", &assign_RatioTapChanger_RatioTapChangerTable)); - map.insert(std::make_pair("cim:RatioTapChangerTable.RatioTapChanger", &assign_RatioTapChanger_RatioTapChangerTable)); - map.insert(std::make_pair("cim:TransformerEnd.PhaseTapChanger", &assign_TransformerEnd_PhaseTapChanger)); - map.insert(std::make_pair("cim:PhaseTapChanger.TransformerEnd", &assign_TransformerEnd_PhaseTapChanger)); - map.insert(std::make_pair("cim:TransformerEnd.StarImpedance", &assign_TransformerEnd_StarImpedance)); - map.insert(std::make_pair("cim:StarImpedance.TransformerEnd", &assign_TransformerEnd_StarImpedance)); - map.insert(std::make_pair("cim:TransformerEnd.RatioTapChanger", &assign_TransformerEnd_RatioTapChanger)); - map.insert(std::make_pair("cim:RatioTapChanger.TransformerEnd", &assign_TransformerEnd_RatioTapChanger)); - map.insert(std::make_pair("cim:TransformerEnd.BaseVoltage", &assign_TransformerEnd_BaseVoltage)); - map.insert(std::make_pair("cim:BaseVoltage.TransformerEnd", &assign_TransformerEnd_BaseVoltage)); - map.insert(std::make_pair("cim:TransformerEnd.Terminal", &assign_TransformerEnd_Terminal)); - map.insert(std::make_pair("cim:Terminal.TransformerEnd", &assign_TransformerEnd_Terminal)); - map.insert(std::make_pair("cim:RegulationSchedule.RegulatingControl", &assign_RegulationSchedule_RegulatingControl)); - map.insert(std::make_pair("cim:RegulatingControl.RegulationSchedule", &assign_RegulationSchedule_RegulatingControl)); - map.insert(std::make_pair("cim:RatioTapChangerTablePoint.RatioTapChangerTable", &assign_RatioTapChangerTablePoint_RatioTapChangerTable)); - map.insert(std::make_pair("cim:RatioTapChangerTable.RatioTapChangerTablePoint", &assign_RatioTapChangerTablePoint_RatioTapChangerTable)); - map.insert(std::make_pair("cim:TapSchedule.TapChanger", &assign_TapSchedule_TapChanger)); - map.insert(std::make_pair("cim:TapChanger.TapSchedule", &assign_TapSchedule_TapChanger)); - map.insert(std::make_pair("cim:TransformerMeshImpedance.FromTransformerEnd", &assign_TransformerMeshImpedance_FromTransformerEnd)); - map.insert(std::make_pair("cim:FromTransformerEnd.TransformerMeshImpedance", &assign_TransformerMeshImpedance_FromTransformerEnd)); - map.insert(std::make_pair("cim:EnergySourcePhase.EnergySource", &assign_EnergySourcePhase_EnergySource)); - map.insert(std::make_pair("cim:EnergySource.EnergySourcePhase", &assign_EnergySourcePhase_EnergySource)); - map.insert(std::make_pair("cim:Cut.ACLineSegment", &assign_Cut_ACLineSegment)); - map.insert(std::make_pair("cim:ACLineSegment.Cut", &assign_Cut_ACLineSegment)); - map.insert(std::make_pair("cim:PhaseTapChangerTablePoint.PhaseTapChangerTable", &assign_PhaseTapChangerTablePoint_PhaseTapChangerTable)); - map.insert(std::make_pair("cim:PhaseTapChangerTable.PhaseTapChangerTablePoint", &assign_PhaseTapChangerTablePoint_PhaseTapChangerTable)); - map.insert(std::make_pair("cim:TransformerTank.PowerTransformer", &assign_TransformerTank_PowerTransformer)); - map.insert(std::make_pair("cim:PowerTransformer.TransformerTank", &assign_TransformerTank_PowerTransformer)); - map.insert(std::make_pair("cim:BusbarSection.VoltageControlZone", &assign_BusbarSection_VoltageControlZone)); - map.insert(std::make_pair("cim:VoltageControlZone.BusbarSection", &assign_BusbarSection_VoltageControlZone)); - map.insert(std::make_pair("cim:TransformerTankEnd.TransformerTank", &assign_TransformerTankEnd_TransformerTank)); - map.insert(std::make_pair("cim:TransformerTank.TransformerTankEnd", &assign_TransformerTankEnd_TransformerTank)); - map.insert(std::make_pair("cim:MeasurementValue.RemoteSource", &assign_MeasurementValue_RemoteSource)); - map.insert(std::make_pair("cim:RemoteSource.MeasurementValue", &assign_MeasurementValue_RemoteSource)); - map.insert(std::make_pair("cim:MeasurementValue.MeasurementValueQuality", &assign_MeasurementValue_MeasurementValueQuality)); - map.insert(std::make_pair("cim:MeasurementValueQuality.MeasurementValue", &assign_MeasurementValue_MeasurementValueQuality)); - map.insert(std::make_pair("cim:AccumulatorReset.AccumulatorValue", &assign_AccumulatorReset_AccumulatorValue)); - map.insert(std::make_pair("cim:AccumulatorValue.AccumulatorReset", &assign_AccumulatorReset_AccumulatorValue)); - map.insert(std::make_pair("cim:RaiseLowerCommand.ValueAliasSet", &assign_RaiseLowerCommand_ValueAliasSet)); - map.insert(std::make_pair("cim:ValueAliasSet.RaiseLowerCommand", &assign_RaiseLowerCommand_ValueAliasSet)); - map.insert(std::make_pair("cim:AnalogValue.AnalogControl", &assign_AnalogValue_AnalogControl)); - map.insert(std::make_pair("cim:AnalogControl.AnalogValue", &assign_AnalogValue_AnalogControl)); - map.insert(std::make_pair("cim:Command.ValueAliasSet", &assign_Command_ValueAliasSet)); - map.insert(std::make_pair("cim:ValueAliasSet.Command", &assign_Command_ValueAliasSet)); - map.insert(std::make_pair("cim:StringMeasurementValue.StringMeasurement", &assign_StringMeasurementValue_StringMeasurement)); - map.insert(std::make_pair("cim:StringMeasurement.StringMeasurementValue", &assign_StringMeasurementValue_StringMeasurement)); - map.insert(std::make_pair("cim:DiscreteValue.Command", &assign_DiscreteValue_Command)); - map.insert(std::make_pair("cim:Command.DiscreteValue", &assign_DiscreteValue_Command)); - map.insert(std::make_pair("cim:SvTapStep.TapChanger", &assign_SvTapStep_TapChanger)); - map.insert(std::make_pair("cim:TapChanger.SvTapStep", &assign_SvTapStep_TapChanger)); - map.insert(std::make_pair("cim:SvVoltage.TopologicalNode", &assign_SvVoltage_TopologicalNode)); - map.insert(std::make_pair("cim:TopologicalNode.SvVoltage", &assign_SvVoltage_TopologicalNode)); - map.insert(std::make_pair("cim:SvShuntCompensatorSections.ShuntCompensator", &assign_SvShuntCompensatorSections_ShuntCompensator)); - map.insert(std::make_pair("cim:ShuntCompensator.SvShuntCompensatorSections", &assign_SvShuntCompensatorSections_ShuntCompensator)); - map.insert(std::make_pair("cim:SvStatus.ConductingEquipment", &assign_SvStatus_ConductingEquipment)); - map.insert(std::make_pair("cim:ConductingEquipment.SvStatus", &assign_SvStatus_ConductingEquipment)); - map.insert(std::make_pair("cim:SvPowerFlow.Terminal", &assign_SvPowerFlow_Terminal)); - map.insert(std::make_pair("cim:Terminal.SvPowerFlow", &assign_SvPowerFlow_Terminal)); - map.insert(std::make_pair("cim:SvInjection.TopologicalNode", &assign_SvInjection_TopologicalNode)); - map.insert(std::make_pair("cim:TopologicalNode.SvInjection", &assign_SvInjection_TopologicalNode)); - map.insert(std::make_pair("cim:GeneratingUnit.GenUnitOpSchedule", &assign_GeneratingUnit_GenUnitOpSchedule)); - map.insert(std::make_pair("cim:GenUnitOpSchedule.GeneratingUnit", &assign_GeneratingUnit_GenUnitOpSchedule)); - map.insert(std::make_pair("cim:HydroGeneratingUnit.PenstockLossCurve", &assign_HydroGeneratingUnit_PenstockLossCurve)); - map.insert(std::make_pair("cim:PenstockLossCurve.HydroGeneratingUnit", &assign_HydroGeneratingUnit_PenstockLossCurve)); - map.insert(std::make_pair("cim:StartupModel.StartRampCurve", &assign_StartupModel_StartRampCurve)); - map.insert(std::make_pair("cim:StartRampCurve.StartupModel", &assign_StartupModel_StartRampCurve)); - map.insert(std::make_pair("cim:StartupModel.StartIgnFuelCurve", &assign_StartupModel_StartIgnFuelCurve)); - map.insert(std::make_pair("cim:StartIgnFuelCurve.StartupModel", &assign_StartupModel_StartIgnFuelCurve)); - map.insert(std::make_pair("cim:StartupModel.StartMainFuelCurve", &assign_StartupModel_StartMainFuelCurve)); - map.insert(std::make_pair("cim:StartMainFuelCurve.StartupModel", &assign_StartupModel_StartMainFuelCurve)); - map.insert(std::make_pair("cim:ThermalGeneratingUnit.HeatRateCurve", &assign_ThermalGeneratingUnit_HeatRateCurve)); - map.insert(std::make_pair("cim:HeatRateCurve.ThermalGeneratingUnit", &assign_ThermalGeneratingUnit_HeatRateCurve)); - map.insert(std::make_pair("cim:ThermalGeneratingUnit.StartupModel", &assign_ThermalGeneratingUnit_StartupModel)); - map.insert(std::make_pair("cim:StartupModel.ThermalGeneratingUnit", &assign_ThermalGeneratingUnit_StartupModel)); - map.insert(std::make_pair("cim:ThermalGeneratingUnit.ShutdownCurve", &assign_ThermalGeneratingUnit_ShutdownCurve)); - map.insert(std::make_pair("cim:ShutdownCurve.ThermalGeneratingUnit", &assign_ThermalGeneratingUnit_ShutdownCurve)); - map.insert(std::make_pair("cim:ThermalGeneratingUnit.IncrementalHeatRateCurve", &assign_ThermalGeneratingUnit_IncrementalHeatRateCurve)); - map.insert(std::make_pair("cim:IncrementalHeatRateCurve.ThermalGeneratingUnit", &assign_ThermalGeneratingUnit_IncrementalHeatRateCurve)); - map.insert(std::make_pair("cim:ThermalGeneratingUnit.HeatInputCurve", &assign_ThermalGeneratingUnit_HeatInputCurve)); - map.insert(std::make_pair("cim:HeatInputCurve.ThermalGeneratingUnit", &assign_ThermalGeneratingUnit_HeatInputCurve)); - map.insert(std::make_pair("cim:CAESPlant.ThermalGeneratingUnit", &assign_CAESPlant_ThermalGeneratingUnit)); - map.insert(std::make_pair("cim:ThermalGeneratingUnit.CAESPlant", &assign_CAESPlant_ThermalGeneratingUnit)); - map.insert(std::make_pair("cim:CAESPlant.AirCompressor", &assign_CAESPlant_AirCompressor)); - map.insert(std::make_pair("cim:AirCompressor.CAESPlant", &assign_CAESPlant_AirCompressor)); - map.insert(std::make_pair("cim:Reservoir.TargetLevelSchedule", &assign_Reservoir_TargetLevelSchedule)); - map.insert(std::make_pair("cim:TargetLevelSchedule.Reservoir", &assign_Reservoir_TargetLevelSchedule)); - map.insert(std::make_pair("cim:HydroPowerPlant.Reservoir", &assign_HydroPowerPlant_Reservoir)); - map.insert(std::make_pair("cim:Reservoir.HydroPowerPlant", &assign_HydroPowerPlant_Reservoir)); - map.insert(std::make_pair("cim:HydroPowerPlant.GenSourcePumpDischargeReservoir", &assign_HydroPowerPlant_GenSourcePumpDischargeReservoir)); - map.insert(std::make_pair("cim:GenSourcePumpDischargeReservoir.HydroPowerPlant", &assign_HydroPowerPlant_GenSourcePumpDischargeReservoir)); - map.insert(std::make_pair("cim:FossilFuel.ThermalGeneratingUnit", &assign_FossilFuel_ThermalGeneratingUnit)); - map.insert(std::make_pair("cim:ThermalGeneratingUnit.FossilFuel", &assign_FossilFuel_ThermalGeneratingUnit)); - map.insert(std::make_pair("cim:CogenerationPlant.SteamSendoutSchedule", &assign_CogenerationPlant_SteamSendoutSchedule)); - map.insert(std::make_pair("cim:SteamSendoutSchedule.CogenerationPlant", &assign_CogenerationPlant_SteamSendoutSchedule)); - map.insert(std::make_pair("cim:CombustionTurbine.AirCompressor", &assign_CombustionTurbine_AirCompressor)); - map.insert(std::make_pair("cim:AirCompressor.CombustionTurbine", &assign_CombustionTurbine_AirCompressor)); - map.insert(std::make_pair("cim:CombustionTurbine.CTTempActivePowerCurve", &assign_CombustionTurbine_CTTempActivePowerCurve)); - map.insert(std::make_pair("cim:CTTempActivePowerCurve.CombustionTurbine", &assign_CombustionTurbine_CTTempActivePowerCurve)); - map.insert(std::make_pair("cim:ContingencyEquipment.Equipment", &assign_ContingencyEquipment_Equipment)); - map.insert(std::make_pair("cim:Equipment.ContingencyEquipment", &assign_ContingencyEquipment_Equipment)); - map.insert(std::make_pair("cim:AltTieMeas.AnalogValue", &assign_AltTieMeas_AnalogValue)); - map.insert(std::make_pair("cim:AnalogValue.AltTieMeas", &assign_AltTieMeas_AnalogValue)); - map.insert(std::make_pair("cim:TieFlow.Terminal", &assign_TieFlow_Terminal)); - map.insert(std::make_pair("cim:Terminal.TieFlow", &assign_TieFlow_Terminal)); - map.insert(std::make_pair("cim:AltGeneratingUnitMeas.AnalogValue", &assign_AltGeneratingUnitMeas_AnalogValue)); - map.insert(std::make_pair("cim:AnalogValue.AltGeneratingUnitMeas", &assign_AltGeneratingUnitMeas_AnalogValue)); - map.insert(std::make_pair("cim:ControlAreaGeneratingUnit.GeneratingUnit", &assign_ControlAreaGeneratingUnit_GeneratingUnit)); - map.insert(std::make_pair("cim:GeneratingUnit.ControlAreaGeneratingUnit", &assign_ControlAreaGeneratingUnit_GeneratingUnit)); - map.insert(std::make_pair("cim:ControlArea.EnergyArea", &assign_ControlArea_EnergyArea)); - map.insert(std::make_pair("cim:EnergyArea.ControlArea", &assign_ControlArea_EnergyArea)); - map.insert(std::make_pair("cim:DCBaseTerminal.DCTopologicalNode", &assign_DCBaseTerminal_DCTopologicalNode)); - map.insert(std::make_pair("cim:DCTopologicalNode.DCBaseTerminal", &assign_DCBaseTerminal_DCTopologicalNode)); - map.insert(std::make_pair("cim:ACDCConverter.PccTerminal", &assign_ACDCConverter_PccTerminal)); - map.insert(std::make_pair("cim:PccTerminal.ACDCConverter", &assign_ACDCConverter_PccTerminal)); - map.insert(std::make_pair("cim:VsConverter.CapabilityCurve", &assign_VsConverter_CapabilityCurve)); - map.insert(std::make_pair("cim:CapabilityCurve.VsConverter", &assign_VsConverter_CapabilityCurve)); - map.insert(std::make_pair("cim:ACDCConverterDCTerminal.DCConductingEquipment", &assign_ACDCConverterDCTerminal_DCConductingEquipment)); - map.insert(std::make_pair("cim:DCConductingEquipment.ACDCConverterDCTerminal", &assign_ACDCConverterDCTerminal_DCConductingEquipment)); - map.insert(std::make_pair("cim:DCLine.Region", &assign_DCLine_Region)); - map.insert(std::make_pair("cim:Region.DCLine", &assign_DCLine_Region)); - map.insert(std::make_pair("cim:DCNode.DCTopologicalNode", &assign_DCNode_DCTopologicalNode)); - map.insert(std::make_pair("cim:DCTopologicalNode.DCNode", &assign_DCNode_DCTopologicalNode)); - map.insert(std::make_pair("cim:DCNode.DCEquipmentContainer", &assign_DCNode_DCEquipmentContainer)); - map.insert(std::make_pair("cim:DCEquipmentContainer.DCNode", &assign_DCNode_DCEquipmentContainer)); - map.insert(std::make_pair("cim:Fault.FaultyEquipment", &assign_Fault_FaultyEquipment)); - map.insert(std::make_pair("cim:FaultyEquipment.Fault", &assign_Fault_FaultyEquipment)); - map.insert(std::make_pair("cim:LineFault.ACLineSegment", &assign_LineFault_ACLineSegment)); - map.insert(std::make_pair("cim:ACLineSegment.LineFault", &assign_LineFault_ACLineSegment)); - map.insert(std::make_pair("cim:EquipmentFault.Terminal", &assign_EquipmentFault_Terminal)); - map.insert(std::make_pair("cim:Terminal.EquipmentFault", &assign_EquipmentFault_Terminal)); - - map.insert(std::make_pair("cim:IdentifiedObject.DiagramObjects", &assign_IdentifiedObject_DiagramObjects)); - map.insert(std::make_pair("cim:DiagramObjects.IdentifiedObject", &assign_IdentifiedObject_DiagramObjects)); - map.insert(std::make_pair("cim:RegularIntervalSchedule.TimePoints", &assign_RegularIntervalSchedule_TimePoints)); - map.insert(std::make_pair("cim:TimePoints.RegularIntervalSchedule", &assign_RegularIntervalSchedule_TimePoints)); - map.insert(std::make_pair("cim:PowerSystemResource.Controls", &assign_PowerSystemResource_Controls)); - map.insert(std::make_pair("cim:Controls.PowerSystemResource", &assign_PowerSystemResource_Controls)); - map.insert(std::make_pair("cim:PowerSystemResource.Measurements", &assign_PowerSystemResource_Measurements)); - map.insert(std::make_pair("cim:Measurements.PowerSystemResource", &assign_PowerSystemResource_Measurements)); - map.insert(std::make_pair("cim:SynchronousMachineDynamics.TurbineGovernorDynamics", &assign_SynchronousMachineDynamics_TurbineGovernorDynamics)); - map.insert(std::make_pair("cim:TurbineGovernorDynamics.SynchronousMachineDynamics", &assign_SynchronousMachineDynamics_TurbineGovernorDynamics)); - map.insert(std::make_pair("cim:Terminal.RegulatingControl", &assign_Terminal_RegulatingControl)); - map.insert(std::make_pair("cim:RegulatingControl.Terminal", &assign_Terminal_RegulatingControl)); - map.insert(std::make_pair("cim:PowerSystemStabilizerDynamics.RemoteInputSignal", &assign_PowerSystemStabilizerDynamics_RemoteInputSignal)); - map.insert(std::make_pair("cim:RemoteInputSignal.PowerSystemStabilizerDynamics", &assign_PowerSystemStabilizerDynamics_RemoteInputSignal)); - map.insert(std::make_pair("cim:EnergyConsumer.EnergyConsumerPhase", &assign_EnergyConsumer_EnergyConsumerPhase)); - map.insert(std::make_pair("cim:EnergyConsumerPhase.EnergyConsumer", &assign_EnergyConsumer_EnergyConsumerPhase)); - map.insert(std::make_pair("cim:LoadDynamics.EnergyConsumer", &assign_LoadDynamics_EnergyConsumer)); - map.insert(std::make_pair("cim:EnergyConsumer.LoadDynamics", &assign_LoadDynamics_EnergyConsumer)); - map.insert(std::make_pair("cim:WindPlantDynamics.WindTurbineType3or4Dynamics", &assign_WindPlantDynamics_WindTurbineType3or4Dynamics)); - map.insert(std::make_pair("cim:WindTurbineType3or4Dynamics.WindPlantDynamics", &assign_WindPlantDynamics_WindTurbineType3or4Dynamics)); - map.insert(std::make_pair("cim:WindPlantUserDefined.ProprietaryParameterDynamics", &assign_WindPlantUserDefined_ProprietaryParameterDynamics)); - map.insert(std::make_pair("cim:ProprietaryParameterDynamics.WindPlantUserDefined", &assign_WindPlantUserDefined_ProprietaryParameterDynamics)); - map.insert(std::make_pair("cim:WindType3or4UserDefined.ProprietaryParameterDynamics", &assign_WindType3or4UserDefined_ProprietaryParameterDynamics)); - map.insert(std::make_pair("cim:ProprietaryParameterDynamics.WindType3or4UserDefined", &assign_WindType3or4UserDefined_ProprietaryParameterDynamics)); - map.insert(std::make_pair("cim:WindType1or2UserDefined.ProprietaryParameterDynamics", &assign_WindType1or2UserDefined_ProprietaryParameterDynamics)); - map.insert(std::make_pair("cim:ProprietaryParameterDynamics.WindType1or2UserDefined", &assign_WindType1or2UserDefined_ProprietaryParameterDynamics)); - map.insert(std::make_pair("cim:EquivalentNetwork.EquivalentEquipments", &assign_EquivalentNetwork_EquivalentEquipments)); - map.insert(std::make_pair("cim:EquivalentEquipments.EquivalentNetwork", &assign_EquivalentNetwork_EquivalentEquipments)); - map.insert(std::make_pair("cim:OperationalLimitSet.OperationalLimitValue", &assign_OperationalLimitSet_OperationalLimitValue)); - map.insert(std::make_pair("cim:OperationalLimitValue.OperationalLimitSet", &assign_OperationalLimitSet_OperationalLimitValue)); - map.insert(std::make_pair("cim:BranchGroup.BranchGroupTerminal", &assign_BranchGroup_BranchGroupTerminal)); - map.insert(std::make_pair("cim:BranchGroupTerminal.BranchGroup", &assign_BranchGroup_BranchGroupTerminal)); - map.insert(std::make_pair("cim:ReportingGroup.PowerSystemResource", &assign_ReportingGroup_PowerSystemResource)); - map.insert(std::make_pair("cim:PowerSystemResource.ReportingGroup", &assign_ReportingGroup_PowerSystemResource)); - map.insert(std::make_pair("cim:BusNameMarker.Terminal", &assign_BusNameMarker_Terminal)); - map.insert(std::make_pair("cim:Terminal.BusNameMarker", &assign_BusNameMarker_Terminal)); - map.insert(std::make_pair("cim:BaseVoltage.ConductingEquipment", &assign_BaseVoltage_ConductingEquipment)); - map.insert(std::make_pair("cim:ConductingEquipment.BaseVoltage", &assign_BaseVoltage_ConductingEquipment)); - map.insert(std::make_pair("cim:TopologicalNode.ConnectivityNodes", &assign_TopologicalNode_ConnectivityNodes)); - map.insert(std::make_pair("cim:ConnectivityNodes.TopologicalNode", &assign_TopologicalNode_ConnectivityNodes)); - map.insert(std::make_pair("cim:TopologicalNode.Terminal", &assign_TopologicalNode_Terminal)); - map.insert(std::make_pair("cim:Terminal.TopologicalNode", &assign_TopologicalNode_Terminal)); - map.insert(std::make_pair("cim:TopologicalIsland.TopologicalNodes", &assign_TopologicalIsland_TopologicalNodes)); - map.insert(std::make_pair("cim:TopologicalNodes.TopologicalIsland", &assign_TopologicalIsland_TopologicalNodes)); - map.insert(std::make_pair("cim:RemoteUnit.RemotePoints", &assign_RemoteUnit_RemotePoints)); - map.insert(std::make_pair("cim:RemotePoints.RemoteUnit", &assign_RemoteUnit_RemotePoints)); - map.insert(std::make_pair("cim:CommunicationLink.RemoteUnits", &assign_CommunicationLink_RemoteUnits)); - map.insert(std::make_pair("cim:RemoteUnits.CommunicationLink", &assign_CommunicationLink_RemoteUnits)); - map.insert(std::make_pair("cim:EquipmentContainer.Equipments", &assign_EquipmentContainer_Equipments)); - map.insert(std::make_pair("cim:Equipments.EquipmentContainer", &assign_EquipmentContainer_Equipments)); - map.insert(std::make_pair("cim:VoltageLevel.Bays", &assign_VoltageLevel_Bays)); - map.insert(std::make_pair("cim:Bays.VoltageLevel", &assign_VoltageLevel_Bays)); - map.insert(std::make_pair("cim:DCEquipmentContainer.DCTopologicalNode", &assign_DCEquipmentContainer_DCTopologicalNode)); - map.insert(std::make_pair("cim:DCTopologicalNode.DCEquipmentContainer", &assign_DCEquipmentContainer_DCTopologicalNode)); - map.insert(std::make_pair("cim:Substation.VoltageLevels", &assign_Substation_VoltageLevels)); - map.insert(std::make_pair("cim:VoltageLevels.Substation", &assign_Substation_VoltageLevels)); - map.insert(std::make_pair("cim:Substation.Bays", &assign_Substation_Bays)); - map.insert(std::make_pair("cim:Bays.Substation", &assign_Substation_Bays)); - map.insert(std::make_pair("cim:Substation.DCConverterUnit", &assign_Substation_DCConverterUnit)); - map.insert(std::make_pair("cim:DCConverterUnit.Substation", &assign_Substation_DCConverterUnit)); - map.insert(std::make_pair("cim:SubGeographicalRegion.Lines", &assign_SubGeographicalRegion_Lines)); - map.insert(std::make_pair("cim:Lines.SubGeographicalRegion", &assign_SubGeographicalRegion_Lines)); - map.insert(std::make_pair("cim:SubGeographicalRegion.Substations", &assign_SubGeographicalRegion_Substations)); - map.insert(std::make_pair("cim:Substations.SubGeographicalRegion", &assign_SubGeographicalRegion_Substations)); - map.insert(std::make_pair("cim:Curve.CurveDatas", &assign_Curve_CurveDatas)); - map.insert(std::make_pair("cim:CurveDatas.Curve", &assign_Curve_CurveDatas)); - map.insert(std::make_pair("cim:ReportingSuperGroup.ReportingGroup", &assign_ReportingSuperGroup_ReportingGroup)); - map.insert(std::make_pair("cim:ReportingGroup.ReportingSuperGroup", &assign_ReportingSuperGroup_ReportingGroup)); - map.insert(std::make_pair("cim:IrregularIntervalSchedule.TimePoints", &assign_IrregularIntervalSchedule_TimePoints)); - map.insert(std::make_pair("cim:TimePoints.IrregularIntervalSchedule", &assign_IrregularIntervalSchedule_TimePoints)); - map.insert(std::make_pair("cim:GeographicalRegion.Regions", &assign_GeographicalRegion_Regions)); - map.insert(std::make_pair("cim:Regions.GeographicalRegion", &assign_GeographicalRegion_Regions)); - map.insert(std::make_pair("cim:DiagramObject.VisibilityLayers", &assign_DiagramObject_VisibilityLayers)); - map.insert(std::make_pair("cim:VisibilityLayers.DiagramObject", &assign_DiagramObject_VisibilityLayers)); - map.insert(std::make_pair("cim:DiagramObject.DiagramObjectPoints", &assign_DiagramObject_DiagramObjectPoints)); - map.insert(std::make_pair("cim:DiagramObjectPoints.DiagramObject", &assign_DiagramObject_DiagramObjectPoints)); - map.insert(std::make_pair("cim:DiagramStyle.Diagram", &assign_DiagramStyle_Diagram)); - map.insert(std::make_pair("cim:Diagram.DiagramStyle", &assign_DiagramStyle_Diagram)); - map.insert(std::make_pair("cim:NonConformLoadGroup.EnergyConsumers", &assign_NonConformLoadGroup_EnergyConsumers)); - map.insert(std::make_pair("cim:EnergyConsumers.NonConformLoadGroup", &assign_NonConformLoadGroup_EnergyConsumers)); - map.insert(std::make_pair("cim:NonConformLoadGroup.NonConformLoadSchedules", &assign_NonConformLoadGroup_NonConformLoadSchedules)); - map.insert(std::make_pair("cim:NonConformLoadSchedules.NonConformLoadGroup", &assign_NonConformLoadGroup_NonConformLoadSchedules)); - map.insert(std::make_pair("cim:DayType.SeasonDayTypeSchedules", &assign_DayType_SeasonDayTypeSchedules)); - map.insert(std::make_pair("cim:SeasonDayTypeSchedules.DayType", &assign_DayType_SeasonDayTypeSchedules)); - map.insert(std::make_pair("cim:SubLoadArea.LoadGroups", &assign_SubLoadArea_LoadGroups)); - map.insert(std::make_pair("cim:LoadGroups.SubLoadArea", &assign_SubLoadArea_LoadGroups)); - map.insert(std::make_pair("cim:LoadArea.SubLoadAreas", &assign_LoadArea_SubLoadAreas)); - map.insert(std::make_pair("cim:SubLoadAreas.LoadArea", &assign_LoadArea_SubLoadAreas)); - map.insert(std::make_pair("cim:PowerCutZone.EnergyConsumers", &assign_PowerCutZone_EnergyConsumers)); - map.insert(std::make_pair("cim:EnergyConsumers.PowerCutZone", &assign_PowerCutZone_EnergyConsumers)); - map.insert(std::make_pair("cim:Season.SeasonDayTypeSchedules", &assign_Season_SeasonDayTypeSchedules)); - map.insert(std::make_pair("cim:SeasonDayTypeSchedules.Season", &assign_Season_SeasonDayTypeSchedules)); - map.insert(std::make_pair("cim:ConformLoadGroup.EnergyConsumers", &assign_ConformLoadGroup_EnergyConsumers)); - map.insert(std::make_pair("cim:EnergyConsumers.ConformLoadGroup", &assign_ConformLoadGroup_EnergyConsumers)); - map.insert(std::make_pair("cim:ConformLoadGroup.ConformLoadSchedules", &assign_ConformLoadGroup_ConformLoadSchedules)); - map.insert(std::make_pair("cim:ConformLoadSchedules.ConformLoadGroup", &assign_ConformLoadGroup_ConformLoadSchedules)); - map.insert(std::make_pair("cim:ShuntCompensator.ShuntCompensatorPhase", &assign_ShuntCompensator_ShuntCompensatorPhase)); - map.insert(std::make_pair("cim:ShuntCompensatorPhase.ShuntCompensator", &assign_ShuntCompensator_ShuntCompensatorPhase)); - map.insert(std::make_pair("cim:ACLineSegment.Clamp", &assign_ACLineSegment_Clamp)); - map.insert(std::make_pair("cim:Clamp.ACLineSegment", &assign_ACLineSegment_Clamp)); - map.insert(std::make_pair("cim:PerLengthImpedance.ACLineSegments", &assign_PerLengthImpedance_ACLineSegments)); - map.insert(std::make_pair("cim:ACLineSegments.PerLengthImpedance", &assign_PerLengthImpedance_ACLineSegments)); - map.insert(std::make_pair("cim:PerLengthPhaseImpedance.PhaseImpedanceData", &assign_PerLengthPhaseImpedance_PhaseImpedanceData)); - map.insert(std::make_pair("cim:PhaseImpedanceData.PerLengthPhaseImpedance", &assign_PerLengthPhaseImpedance_PhaseImpedanceData)); - map.insert(std::make_pair("cim:ReactiveCapabilityCurve.EquivalentInjection", &assign_ReactiveCapabilityCurve_EquivalentInjection)); - map.insert(std::make_pair("cim:EquivalentInjection.ReactiveCapabilityCurve", &assign_ReactiveCapabilityCurve_EquivalentInjection)); - map.insert(std::make_pair("cim:ReactiveCapabilityCurve.InitiallyUsedBySynchronousMachines", &assign_ReactiveCapabilityCurve_InitiallyUsedBySynchronousMachines)); - map.insert(std::make_pair("cim:InitiallyUsedBySynchronousMachines.ReactiveCapabilityCurve", &assign_ReactiveCapabilityCurve_InitiallyUsedBySynchronousMachines)); - map.insert(std::make_pair("cim:ReactiveCapabilityCurve.SynchronousMachines", &assign_ReactiveCapabilityCurve_SynchronousMachines)); - map.insert(std::make_pair("cim:SynchronousMachines.ReactiveCapabilityCurve", &assign_ReactiveCapabilityCurve_SynchronousMachines)); - map.insert(std::make_pair("cim:NonlinearShuntCompensator.NonlinearShuntCompensatorPoints", &assign_NonlinearShuntCompensator_NonlinearShuntCompensatorPoints)); - map.insert(std::make_pair("cim:NonlinearShuntCompensatorPoints.NonlinearShuntCompensator", &assign_NonlinearShuntCompensator_NonlinearShuntCompensatorPoints)); - map.insert(std::make_pair("cim:RegulationSchedule.VoltageControlZones", &assign_RegulationSchedule_VoltageControlZones)); - map.insert(std::make_pair("cim:VoltageControlZones.RegulationSchedule", &assign_RegulationSchedule_VoltageControlZones)); - map.insert(std::make_pair("cim:TransformerCoreAdmittance.TransformerEnd", &assign_TransformerCoreAdmittance_TransformerEnd)); - map.insert(std::make_pair("cim:TransformerEnd.TransformerCoreAdmittance", &assign_TransformerCoreAdmittance_TransformerEnd)); - map.insert(std::make_pair("cim:Switch.SwitchPhase", &assign_Switch_SwitchPhase)); - map.insert(std::make_pair("cim:SwitchPhase.Switch", &assign_Switch_SwitchPhase)); - map.insert(std::make_pair("cim:Switch.SwitchSchedules", &assign_Switch_SwitchSchedules)); - map.insert(std::make_pair("cim:SwitchSchedules.Switch", &assign_Switch_SwitchSchedules)); - map.insert(std::make_pair("cim:ProtectedSwitch.RecloseSequences", &assign_ProtectedSwitch_RecloseSequences)); - map.insert(std::make_pair("cim:RecloseSequences.ProtectedSwitch", &assign_ProtectedSwitch_RecloseSequences)); - map.insert(std::make_pair("cim:TransformerMeshImpedance.ToTransformerEnd", &assign_TransformerMeshImpedance_ToTransformerEnd)); - map.insert(std::make_pair("cim:ToTransformerEnd.TransformerMeshImpedance", &assign_TransformerMeshImpedance_ToTransformerEnd)); - map.insert(std::make_pair("cim:CompositeSwitch.Switches", &assign_CompositeSwitch_Switches)); - map.insert(std::make_pair("cim:Switches.CompositeSwitch", &assign_CompositeSwitch_Switches)); - map.insert(std::make_pair("cim:PowerTransformer.PowerTransformerEnd", &assign_PowerTransformer_PowerTransformerEnd)); - map.insert(std::make_pair("cim:PowerTransformerEnd.PowerTransformer", &assign_PowerTransformer_PowerTransformerEnd)); - map.insert(std::make_pair("cim:NonlinearShuntCompensatorPhase.NonlinearShuntCompensatorPhasePoints", &assign_NonlinearShuntCompensatorPhase_NonlinearShuntCompensatorPhasePoints)); - map.insert(std::make_pair("cim:NonlinearShuntCompensatorPhasePoints.NonlinearShuntCompensatorPhase", &assign_NonlinearShuntCompensatorPhase_NonlinearShuntCompensatorPhasePoints)); - map.insert(std::make_pair("cim:PhaseTapChangerTable.PhaseTapChangerTabular", &assign_PhaseTapChangerTable_PhaseTapChangerTabular)); - map.insert(std::make_pair("cim:PhaseTapChangerTabular.PhaseTapChangerTable", &assign_PhaseTapChangerTable_PhaseTapChangerTabular)); - map.insert(std::make_pair("cim:ValueAliasSet.Values", &assign_ValueAliasSet_Values)); - map.insert(std::make_pair("cim:Values.ValueAliasSet", &assign_ValueAliasSet_Values)); - map.insert(std::make_pair("cim:ValueAliasSet.Discretes", &assign_ValueAliasSet_Discretes)); - map.insert(std::make_pair("cim:Discretes.ValueAliasSet", &assign_ValueAliasSet_Discretes)); - map.insert(std::make_pair("cim:AccumulatorLimitSet.Limits", &assign_AccumulatorLimitSet_Limits)); - map.insert(std::make_pair("cim:Limits.AccumulatorLimitSet", &assign_AccumulatorLimitSet_Limits)); - map.insert(std::make_pair("cim:AnalogLimitSet.Limits", &assign_AnalogLimitSet_Limits)); - map.insert(std::make_pair("cim:Limits.AnalogLimitSet", &assign_AnalogLimitSet_Limits)); - map.insert(std::make_pair("cim:MeasurementValueSource.MeasurementValues", &assign_MeasurementValueSource_MeasurementValues)); - map.insert(std::make_pair("cim:MeasurementValues.MeasurementValueSource", &assign_MeasurementValueSource_MeasurementValues)); - map.insert(std::make_pair("cim:Accumulator.AccumulatorValues", &assign_Accumulator_AccumulatorValues)); - map.insert(std::make_pair("cim:AccumulatorValues.Accumulator", &assign_Accumulator_AccumulatorValues)); - map.insert(std::make_pair("cim:Accumulator.LimitSets", &assign_Accumulator_LimitSets)); - map.insert(std::make_pair("cim:LimitSets.Accumulator", &assign_Accumulator_LimitSets)); - map.insert(std::make_pair("cim:Analog.AnalogValues", &assign_Analog_AnalogValues)); - map.insert(std::make_pair("cim:AnalogValues.Analog", &assign_Analog_AnalogValues)); - map.insert(std::make_pair("cim:Analog.LimitSets", &assign_Analog_LimitSets)); - map.insert(std::make_pair("cim:LimitSets.Analog", &assign_Analog_LimitSets)); - map.insert(std::make_pair("cim:Discrete.DiscreteValues", &assign_Discrete_DiscreteValues)); - map.insert(std::make_pair("cim:DiscreteValues.Discrete", &assign_Discrete_DiscreteValues)); - map.insert(std::make_pair("cim:GeneratingUnit.GrossToNetActivePowerCurves", &assign_GeneratingUnit_GrossToNetActivePowerCurves)); - map.insert(std::make_pair("cim:GrossToNetActivePowerCurves.GeneratingUnit", &assign_GeneratingUnit_GrossToNetActivePowerCurves)); - map.insert(std::make_pair("cim:GeneratingUnit.GenUnitOpCostCurves", &assign_GeneratingUnit_GenUnitOpCostCurves)); - map.insert(std::make_pair("cim:GenUnitOpCostCurves.GeneratingUnit", &assign_GeneratingUnit_GenUnitOpCostCurves)); - map.insert(std::make_pair("cim:GeneratingUnit.RotatingMachine", &assign_GeneratingUnit_RotatingMachine)); - map.insert(std::make_pair("cim:RotatingMachine.GeneratingUnit", &assign_GeneratingUnit_RotatingMachine)); - map.insert(std::make_pair("cim:HydroGeneratingUnit.TailbayLossCurve", &assign_HydroGeneratingUnit_TailbayLossCurve)); - map.insert(std::make_pair("cim:TailbayLossCurve.HydroGeneratingUnit", &assign_HydroGeneratingUnit_TailbayLossCurve)); - map.insert(std::make_pair("cim:HydroGeneratingUnit.HydroGeneratingEfficiencyCurves", &assign_HydroGeneratingUnit_HydroGeneratingEfficiencyCurves)); - map.insert(std::make_pair("cim:HydroGeneratingEfficiencyCurves.HydroGeneratingUnit", &assign_HydroGeneratingUnit_HydroGeneratingEfficiencyCurves)); - map.insert(std::make_pair("cim:ThermalGeneratingUnit.FuelAllocationSchedules", &assign_ThermalGeneratingUnit_FuelAllocationSchedules)); - map.insert(std::make_pair("cim:FuelAllocationSchedules.ThermalGeneratingUnit", &assign_ThermalGeneratingUnit_FuelAllocationSchedules)); - map.insert(std::make_pair("cim:ThermalGeneratingUnit.EmissionCurves", &assign_ThermalGeneratingUnit_EmissionCurves)); - map.insert(std::make_pair("cim:EmissionCurves.ThermalGeneratingUnit", &assign_ThermalGeneratingUnit_EmissionCurves)); - map.insert(std::make_pair("cim:ThermalGeneratingUnit.EmmissionAccounts", &assign_ThermalGeneratingUnit_EmmissionAccounts)); - map.insert(std::make_pair("cim:EmmissionAccounts.ThermalGeneratingUnit", &assign_ThermalGeneratingUnit_EmmissionAccounts)); - map.insert(std::make_pair("cim:Reservoir.SpillsIntoReservoirs", &assign_Reservoir_SpillsIntoReservoirs)); - map.insert(std::make_pair("cim:SpillsIntoReservoirs.Reservoir", &assign_Reservoir_SpillsIntoReservoirs)); - map.insert(std::make_pair("cim:Reservoir.LevelVsVolumeCurves", &assign_Reservoir_LevelVsVolumeCurves)); - map.insert(std::make_pair("cim:LevelVsVolumeCurves.Reservoir", &assign_Reservoir_LevelVsVolumeCurves)); - map.insert(std::make_pair("cim:Reservoir.InflowForecasts", &assign_Reservoir_InflowForecasts)); - map.insert(std::make_pair("cim:InflowForecasts.Reservoir", &assign_Reservoir_InflowForecasts)); - map.insert(std::make_pair("cim:HydroPowerPlant.HydroPumps", &assign_HydroPowerPlant_HydroPumps)); - map.insert(std::make_pair("cim:HydroPumps.HydroPowerPlant", &assign_HydroPowerPlant_HydroPumps)); - map.insert(std::make_pair("cim:HydroPowerPlant.HydroGeneratingUnits", &assign_HydroPowerPlant_HydroGeneratingUnits)); - map.insert(std::make_pair("cim:HydroGeneratingUnits.HydroPowerPlant", &assign_HydroPowerPlant_HydroGeneratingUnits)); - map.insert(std::make_pair("cim:FossilFuel.FuelAllocationSchedules", &assign_FossilFuel_FuelAllocationSchedules)); - map.insert(std::make_pair("cim:FuelAllocationSchedules.FossilFuel", &assign_FossilFuel_FuelAllocationSchedules)); - map.insert(std::make_pair("cim:CogenerationPlant.ThermalGeneratingUnits", &assign_CogenerationPlant_ThermalGeneratingUnits)); - map.insert(std::make_pair("cim:ThermalGeneratingUnits.CogenerationPlant", &assign_CogenerationPlant_ThermalGeneratingUnits)); - map.insert(std::make_pair("cim:CombinedCyclePlant.ThermalGeneratingUnits", &assign_CombinedCyclePlant_ThermalGeneratingUnits)); - map.insert(std::make_pair("cim:ThermalGeneratingUnits.CombinedCyclePlant", &assign_CombinedCyclePlant_ThermalGeneratingUnits)); - map.insert(std::make_pair("cim:PrimeMover.SynchronousMachines", &assign_PrimeMover_SynchronousMachines)); - map.insert(std::make_pair("cim:SynchronousMachines.PrimeMover", &assign_PrimeMover_SynchronousMachines)); - map.insert(std::make_pair("cim:SteamSupply.SteamTurbines", &assign_SteamSupply_SteamTurbines)); - map.insert(std::make_pair("cim:SteamTurbines.SteamSupply", &assign_SteamSupply_SteamTurbines)); - map.insert(std::make_pair("cim:HeatRecoveryBoiler.CombustionTurbines", &assign_HeatRecoveryBoiler_CombustionTurbines)); - map.insert(std::make_pair("cim:CombustionTurbines.HeatRecoveryBoiler", &assign_HeatRecoveryBoiler_CombustionTurbines)); - map.insert(std::make_pair("cim:ProtectionEquipment.ProtectedSwitches", &assign_ProtectionEquipment_ProtectedSwitches)); - map.insert(std::make_pair("cim:ProtectedSwitches.ProtectionEquipment", &assign_ProtectionEquipment_ProtectedSwitches)); - map.insert(std::make_pair("cim:ProtectionEquipment.ConductingEquipments", &assign_ProtectionEquipment_ConductingEquipments)); - map.insert(std::make_pair("cim:ConductingEquipments.ProtectionEquipment", &assign_ProtectionEquipment_ConductingEquipments)); - map.insert(std::make_pair("cim:Contingency.ContingencyElement", &assign_Contingency_ContingencyElement)); - map.insert(std::make_pair("cim:ContingencyElement.Contingency", &assign_Contingency_ContingencyElement)); - map.insert(std::make_pair("cim:TieFlow.AltTieMeas", &assign_TieFlow_AltTieMeas)); - map.insert(std::make_pair("cim:AltTieMeas.TieFlow", &assign_TieFlow_AltTieMeas)); - map.insert(std::make_pair("cim:ControlAreaGeneratingUnit.AltGeneratingUnitMeas", &assign_ControlAreaGeneratingUnit_AltGeneratingUnitMeas)); - map.insert(std::make_pair("cim:AltGeneratingUnitMeas.ControlAreaGeneratingUnit", &assign_ControlAreaGeneratingUnit_AltGeneratingUnitMeas)); - map.insert(std::make_pair("cim:ControlArea.ControlAreaGeneratingUnit", &assign_ControlArea_ControlAreaGeneratingUnit)); - map.insert(std::make_pair("cim:ControlAreaGeneratingUnit.ControlArea", &assign_ControlArea_ControlAreaGeneratingUnit)); - map.insert(std::make_pair("cim:ControlArea.TieFlow", &assign_ControlArea_TieFlow)); - map.insert(std::make_pair("cim:TieFlow.ControlArea", &assign_ControlArea_TieFlow)); - map.insert(std::make_pair("cim:DCConductingEquipment.DCTerminals", &assign_DCConductingEquipment_DCTerminals)); - map.insert(std::make_pair("cim:DCTerminals.DCConductingEquipment", &assign_DCConductingEquipment_DCTerminals)); - map.insert(std::make_pair("cim:PerLengthDCLineParameter.DCLineSegments", &assign_PerLengthDCLineParameter_DCLineSegments)); - map.insert(std::make_pair("cim:DCLineSegments.PerLengthDCLineParameter", &assign_PerLengthDCLineParameter_DCLineSegments)); - map.insert(std::make_pair("cim:DCNode.DCTerminals", &assign_DCNode_DCTerminals)); - map.insert(std::make_pair("cim:DCTerminals.DCNode", &assign_DCNode_DCTerminals)); - map.insert(std::make_pair("cim:DCTopologicalIsland.DCTopologicalNodes", &assign_DCTopologicalIsland_DCTopologicalNodes)); - map.insert(std::make_pair("cim:DCTopologicalNodes.DCTopologicalIsland", &assign_DCTopologicalIsland_DCTopologicalNodes)); - map.insert(std::make_pair("cim:Fault.FaultCauseTypes", &assign_Fault_FaultCauseTypes)); - map.insert(std::make_pair("cim:FaultCauseTypes.Fault", &assign_Fault_FaultCauseTypes)); - - -#include "AliasesTask.hpp" - - load_aliases(map, "task_alias.csv"); - - return map; -} diff --git a/IEC61970_17v07/Task.hpp b/IEC61970_17v07/Task.hpp deleted file mode 100644 index d2ccb51d1..000000000 --- a/IEC61970_17v07/Task.hpp +++ /dev/null @@ -1,24 +0,0 @@ -#ifndef TASK_HPP -#define TASK_HPP - -#include -#include -#include "BaseClass.h" - -class Task -{ -public: - Task(); - Task(BaseClass* CIMObj, const std::string CIMAttrName, const std::string Value); - ~Task(); - bool resolve(std::unordered_map *RDFMap); - void print(); - -private: - BaseClass* _CIMObj; - std::string _CIMAttrName; - std::string _Value; - static std::unordered_map dynamic_switch; -}; - -#endif // TASK_HPP diff --git a/IEC61970_17v07/assignments.cpp b/IEC61970_17v07/assignments.cpp deleted file mode 100644 index 266838a04..000000000 --- a/IEC61970_17v07/assignments.cpp +++ /dev/null @@ -1,60392 +0,0 @@ -#include -#include -#include - -#include "Folders.hpp" -#include "Aliases.hpp" -#include "assignments.hpp" - -typedef bool (*assign_function)(std::stringstream&, BaseClass*); -static std::unordered_map dynamic_switch_factory(); -static std::unordered_map dynamic_switch = dynamic_switch_factory(); - -bool assign(BaseClass* CIMObj, const std::string& CIMAttrName, const std::string& Value) -{ - std::unordered_map::iterator it = dynamic_switch.find(CIMAttrName); - if(it == dynamic_switch.end()) - return false; - std::stringstream str; - str << Value; - return (*it->second)(str, CIMObj); -} - - -std::istream& operator>>(std::istream& lop, IEC61970::Base::Wires::AsynchronousMachineKind& rop) -{ - std::string EnumSymbol; - lop >> EnumSymbol; - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "AsynchronousMachineKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "generator") - { - rop = IEC61970::Base::Wires::AsynchronousMachineKind::generator; - return lop; - } - - if(EnumSymbol == "_undef") - { - rop = IEC61970::Base::Wires::AsynchronousMachineKind::_undef; - return lop; - } - - if(EnumSymbol == "none") - { - rop = IEC61970::Base::Wires::AsynchronousMachineKind::none; - return lop; - } - - if(EnumSymbol == "motor") - { - rop = IEC61970::Base::Wires::AsynchronousMachineKind::motor; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; -} - -std::istream& operator>>(std::istream& lop, IEC61970::Base::Domain::UnitMultiplier& rop) -{ - std::string EnumSymbol; - lop >> EnumSymbol; - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "UnitMultiplier") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "_undef") - { - rop = IEC61970::Base::Domain::UnitMultiplier::_undef; - return lop; - } - - if(EnumSymbol == "y") - { - rop = IEC61970::Base::Domain::UnitMultiplier::y; - return lop; - } - - if(EnumSymbol == "z") - { - rop = IEC61970::Base::Domain::UnitMultiplier::z; - return lop; - } - - if(EnumSymbol == "a") - { - rop = IEC61970::Base::Domain::UnitMultiplier::a; - return lop; - } - - if(EnumSymbol == "f") - { - rop = IEC61970::Base::Domain::UnitMultiplier::f; - return lop; - } - - if(EnumSymbol == "p") - { - rop = IEC61970::Base::Domain::UnitMultiplier::p; - return lop; - } - - if(EnumSymbol == "n") - { - rop = IEC61970::Base::Domain::UnitMultiplier::n; - return lop; - } - - if(EnumSymbol == "micro") - { - rop = IEC61970::Base::Domain::UnitMultiplier::micro; - return lop; - } - - if(EnumSymbol == "m") - { - rop = IEC61970::Base::Domain::UnitMultiplier::m; - return lop; - } - - if(EnumSymbol == "c") - { - rop = IEC61970::Base::Domain::UnitMultiplier::c; - return lop; - } - - if(EnumSymbol == "d") - { - rop = IEC61970::Base::Domain::UnitMultiplier::d; - return lop; - } - - if(EnumSymbol == "none") - { - rop = IEC61970::Base::Domain::UnitMultiplier::none; - return lop; - } - - if(EnumSymbol == "da") - { - rop = IEC61970::Base::Domain::UnitMultiplier::da; - return lop; - } - - if(EnumSymbol == "h") - { - rop = IEC61970::Base::Domain::UnitMultiplier::h; - return lop; - } - - if(EnumSymbol == "k") - { - rop = IEC61970::Base::Domain::UnitMultiplier::k; - return lop; - } - - if(EnumSymbol == "M") - { - rop = IEC61970::Base::Domain::UnitMultiplier::M; - return lop; - } - - if(EnumSymbol == "G") - { - rop = IEC61970::Base::Domain::UnitMultiplier::G; - return lop; - } - - if(EnumSymbol == "T") - { - rop = IEC61970::Base::Domain::UnitMultiplier::T; - return lop; - } - - if(EnumSymbol == "P") - { - rop = IEC61970::Base::Domain::UnitMultiplier::P; - return lop; - } - - if(EnumSymbol == "E") - { - rop = IEC61970::Base::Domain::UnitMultiplier::E; - return lop; - } - - if(EnumSymbol == "Z") - { - rop = IEC61970::Base::Domain::UnitMultiplier::Z; - return lop; - } - - if(EnumSymbol == "Y") - { - rop = IEC61970::Base::Domain::UnitMultiplier::Y; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; -} - -std::istream& operator>>(std::istream& lop, IEC61970::Base::Domain::UnitSymbol& rop) -{ - std::string EnumSymbol; - lop >> EnumSymbol; - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "UnitSymbol") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "none") - { - rop = IEC61970::Base::Domain::UnitSymbol::none; - return lop; - } - - if(EnumSymbol == "m") - { - rop = IEC61970::Base::Domain::UnitSymbol::m; - return lop; - } - - if(EnumSymbol == "_undef") - { - rop = IEC61970::Base::Domain::UnitSymbol::_undef; - return lop; - } - - if(EnumSymbol == "kg") - { - rop = IEC61970::Base::Domain::UnitSymbol::kg; - return lop; - } - - if(EnumSymbol == "s") - { - rop = IEC61970::Base::Domain::UnitSymbol::s; - return lop; - } - - if(EnumSymbol == "A") - { - rop = IEC61970::Base::Domain::UnitSymbol::A; - return lop; - } - - if(EnumSymbol == "K") - { - rop = IEC61970::Base::Domain::UnitSymbol::K; - return lop; - } - - if(EnumSymbol == "mol") - { - rop = IEC61970::Base::Domain::UnitSymbol::mol; - return lop; - } - - if(EnumSymbol == "cd") - { - rop = IEC61970::Base::Domain::UnitSymbol::cd; - return lop; - } - - if(EnumSymbol == "deg") - { - rop = IEC61970::Base::Domain::UnitSymbol::deg; - return lop; - } - - if(EnumSymbol == "rad") - { - rop = IEC61970::Base::Domain::UnitSymbol::rad; - return lop; - } - - if(EnumSymbol == "sr") - { - rop = IEC61970::Base::Domain::UnitSymbol::sr; - return lop; - } - - if(EnumSymbol == "Gy") - { - rop = IEC61970::Base::Domain::UnitSymbol::Gy; - return lop; - } - - if(EnumSymbol == "Bq") - { - rop = IEC61970::Base::Domain::UnitSymbol::Bq; - return lop; - } - - if(EnumSymbol == "degC") - { - rop = IEC61970::Base::Domain::UnitSymbol::degC; - return lop; - } - - if(EnumSymbol == "Sv") - { - rop = IEC61970::Base::Domain::UnitSymbol::Sv; - return lop; - } - - if(EnumSymbol == "F") - { - rop = IEC61970::Base::Domain::UnitSymbol::F; - return lop; - } - - if(EnumSymbol == "C") - { - rop = IEC61970::Base::Domain::UnitSymbol::C; - return lop; - } - - if(EnumSymbol == "S") - { - rop = IEC61970::Base::Domain::UnitSymbol::S; - return lop; - } - - if(EnumSymbol == "H") - { - rop = IEC61970::Base::Domain::UnitSymbol::H; - return lop; - } - - if(EnumSymbol == "V") - { - rop = IEC61970::Base::Domain::UnitSymbol::V; - return lop; - } - - if(EnumSymbol == "ohm") - { - rop = IEC61970::Base::Domain::UnitSymbol::ohm; - return lop; - } - - if(EnumSymbol == "J") - { - rop = IEC61970::Base::Domain::UnitSymbol::J; - return lop; - } - - if(EnumSymbol == "N") - { - rop = IEC61970::Base::Domain::UnitSymbol::N; - return lop; - } - - if(EnumSymbol == "Hz") - { - rop = IEC61970::Base::Domain::UnitSymbol::Hz; - return lop; - } - - if(EnumSymbol == "lx") - { - rop = IEC61970::Base::Domain::UnitSymbol::lx; - return lop; - } - - if(EnumSymbol == "lm") - { - rop = IEC61970::Base::Domain::UnitSymbol::lm; - return lop; - } - - if(EnumSymbol == "Wb") - { - rop = IEC61970::Base::Domain::UnitSymbol::Wb; - return lop; - } - - if(EnumSymbol == "T") - { - rop = IEC61970::Base::Domain::UnitSymbol::T; - return lop; - } - - if(EnumSymbol == "W") - { - rop = IEC61970::Base::Domain::UnitSymbol::W; - return lop; - } - - if(EnumSymbol == "Pa") - { - rop = IEC61970::Base::Domain::UnitSymbol::Pa; - return lop; - } - - if(EnumSymbol == "m2") - { - rop = IEC61970::Base::Domain::UnitSymbol::m2; - return lop; - } - - if(EnumSymbol == "m3") - { - rop = IEC61970::Base::Domain::UnitSymbol::m3; - return lop; - } - - if(EnumSymbol == "mPers") - { - rop = IEC61970::Base::Domain::UnitSymbol::mPers; - return lop; - } - - if(EnumSymbol == "mPers2") - { - rop = IEC61970::Base::Domain::UnitSymbol::mPers2; - return lop; - } - - if(EnumSymbol == "m3Pers") - { - rop = IEC61970::Base::Domain::UnitSymbol::m3Pers; - return lop; - } - - if(EnumSymbol == "mPerm3") - { - rop = IEC61970::Base::Domain::UnitSymbol::mPerm3; - return lop; - } - - if(EnumSymbol == "kgm") - { - rop = IEC61970::Base::Domain::UnitSymbol::kgm; - return lop; - } - - if(EnumSymbol == "kgPerm3") - { - rop = IEC61970::Base::Domain::UnitSymbol::kgPerm3; - return lop; - } - - if(EnumSymbol == "WPermK") - { - rop = IEC61970::Base::Domain::UnitSymbol::WPermK; - return lop; - } - - if(EnumSymbol == "JPerK") - { - rop = IEC61970::Base::Domain::UnitSymbol::JPerK; - return lop; - } - - if(EnumSymbol == "ppm") - { - rop = IEC61970::Base::Domain::UnitSymbol::ppm; - return lop; - } - - if(EnumSymbol == "rotPers") - { - rop = IEC61970::Base::Domain::UnitSymbol::rotPers; - return lop; - } - - if(EnumSymbol == "radPers") - { - rop = IEC61970::Base::Domain::UnitSymbol::radPers; - return lop; - } - - if(EnumSymbol == "VA") - { - rop = IEC61970::Base::Domain::UnitSymbol::VA; - return lop; - } - - if(EnumSymbol == "VAr") - { - rop = IEC61970::Base::Domain::UnitSymbol::VAr; - return lop; - } - - if(EnumSymbol == "cosPhi") - { - rop = IEC61970::Base::Domain::UnitSymbol::cosPhi; - return lop; - } - - if(EnumSymbol == "Vs") - { - rop = IEC61970::Base::Domain::UnitSymbol::Vs; - return lop; - } - - if(EnumSymbol == "V2") - { - rop = IEC61970::Base::Domain::UnitSymbol::V2; - return lop; - } - - if(EnumSymbol == "As") - { - rop = IEC61970::Base::Domain::UnitSymbol::As; - return lop; - } - - if(EnumSymbol == "A2") - { - rop = IEC61970::Base::Domain::UnitSymbol::A2; - return lop; - } - - if(EnumSymbol == "A2s") - { - rop = IEC61970::Base::Domain::UnitSymbol::A2s; - return lop; - } - - if(EnumSymbol == "VAh") - { - rop = IEC61970::Base::Domain::UnitSymbol::VAh; - return lop; - } - - if(EnumSymbol == "Wh") - { - rop = IEC61970::Base::Domain::UnitSymbol::Wh; - return lop; - } - - if(EnumSymbol == "VArh") - { - rop = IEC61970::Base::Domain::UnitSymbol::VArh; - return lop; - } - - if(EnumSymbol == "VPerHz") - { - rop = IEC61970::Base::Domain::UnitSymbol::VPerHz; - return lop; - } - - if(EnumSymbol == "HzPers") - { - rop = IEC61970::Base::Domain::UnitSymbol::HzPers; - return lop; - } - - if(EnumSymbol == "character") - { - rop = IEC61970::Base::Domain::UnitSymbol::character; - return lop; - } - - if(EnumSymbol == "charPers") - { - rop = IEC61970::Base::Domain::UnitSymbol::charPers; - return lop; - } - - if(EnumSymbol == "kgm2") - { - rop = IEC61970::Base::Domain::UnitSymbol::kgm2; - return lop; - } - - if(EnumSymbol == "dB") - { - rop = IEC61970::Base::Domain::UnitSymbol::dB; - return lop; - } - - if(EnumSymbol == "WPers") - { - rop = IEC61970::Base::Domain::UnitSymbol::WPers; - return lop; - } - - if(EnumSymbol == "lPers") - { - rop = IEC61970::Base::Domain::UnitSymbol::lPers; - return lop; - } - - if(EnumSymbol == "dBm") - { - rop = IEC61970::Base::Domain::UnitSymbol::dBm; - return lop; - } - - if(EnumSymbol == "h") - { - rop = IEC61970::Base::Domain::UnitSymbol::h; - return lop; - } - - if(EnumSymbol == "min") - { - rop = IEC61970::Base::Domain::UnitSymbol::min; - return lop; - } - - if(EnumSymbol == "Q") - { - rop = IEC61970::Base::Domain::UnitSymbol::Q; - return lop; - } - - if(EnumSymbol == "Qh") - { - rop = IEC61970::Base::Domain::UnitSymbol::Qh; - return lop; - } - - if(EnumSymbol == "ohmm") - { - rop = IEC61970::Base::Domain::UnitSymbol::ohmm; - return lop; - } - - if(EnumSymbol == "APerm") - { - rop = IEC61970::Base::Domain::UnitSymbol::APerm; - return lop; - } - - if(EnumSymbol == "V2h") - { - rop = IEC61970::Base::Domain::UnitSymbol::V2h; - return lop; - } - - if(EnumSymbol == "A2h") - { - rop = IEC61970::Base::Domain::UnitSymbol::A2h; - return lop; - } - - if(EnumSymbol == "Ah") - { - rop = IEC61970::Base::Domain::UnitSymbol::Ah; - return lop; - } - - if(EnumSymbol == "count") - { - rop = IEC61970::Base::Domain::UnitSymbol::count; - return lop; - } - - if(EnumSymbol == "ft3") - { - rop = IEC61970::Base::Domain::UnitSymbol::ft3; - return lop; - } - - if(EnumSymbol == "m3Perh") - { - rop = IEC61970::Base::Domain::UnitSymbol::m3Perh; - return lop; - } - - if(EnumSymbol == "gal") - { - rop = IEC61970::Base::Domain::UnitSymbol::gal; - return lop; - } - - if(EnumSymbol == "Btu") - { - rop = IEC61970::Base::Domain::UnitSymbol::Btu; - return lop; - } - - if(EnumSymbol == "l") - { - rop = IEC61970::Base::Domain::UnitSymbol::l; - return lop; - } - - if(EnumSymbol == "lPerh") - { - rop = IEC61970::Base::Domain::UnitSymbol::lPerh; - return lop; - } - - if(EnumSymbol == "lPerl") - { - rop = IEC61970::Base::Domain::UnitSymbol::lPerl; - return lop; - } - - if(EnumSymbol == "gPerg") - { - rop = IEC61970::Base::Domain::UnitSymbol::gPerg; - return lop; - } - - if(EnumSymbol == "molPerm3") - { - rop = IEC61970::Base::Domain::UnitSymbol::molPerm3; - return lop; - } - - if(EnumSymbol == "molPermol") - { - rop = IEC61970::Base::Domain::UnitSymbol::molPermol; - return lop; - } - - if(EnumSymbol == "molPerkg") - { - rop = IEC61970::Base::Domain::UnitSymbol::molPerkg; - return lop; - } - - if(EnumSymbol == "sPers") - { - rop = IEC61970::Base::Domain::UnitSymbol::sPers; - return lop; - } - - if(EnumSymbol == "HzPerHz") - { - rop = IEC61970::Base::Domain::UnitSymbol::HzPerHz; - return lop; - } - - if(EnumSymbol == "VPerV") - { - rop = IEC61970::Base::Domain::UnitSymbol::VPerV; - return lop; - } - - if(EnumSymbol == "APerA") - { - rop = IEC61970::Base::Domain::UnitSymbol::APerA; - return lop; - } - - if(EnumSymbol == "VPerVA") - { - rop = IEC61970::Base::Domain::UnitSymbol::VPerVA; - return lop; - } - - if(EnumSymbol == "rev") - { - rop = IEC61970::Base::Domain::UnitSymbol::rev; - return lop; - } - - if(EnumSymbol == "kat") - { - rop = IEC61970::Base::Domain::UnitSymbol::kat; - return lop; - } - - if(EnumSymbol == "JPerkg") - { - rop = IEC61970::Base::Domain::UnitSymbol::JPerkg; - return lop; - } - - if(EnumSymbol == "m3Uncompensated") - { - rop = IEC61970::Base::Domain::UnitSymbol::m3Uncompensated; - return lop; - } - - if(EnumSymbol == "m3Compensated") - { - rop = IEC61970::Base::Domain::UnitSymbol::m3Compensated; - return lop; - } - - if(EnumSymbol == "WPerW") - { - rop = IEC61970::Base::Domain::UnitSymbol::WPerW; - return lop; - } - - if(EnumSymbol == "therm") - { - rop = IEC61970::Base::Domain::UnitSymbol::therm; - return lop; - } - - if(EnumSymbol == "onePerm") - { - rop = IEC61970::Base::Domain::UnitSymbol::onePerm; - return lop; - } - - if(EnumSymbol == "m3Perkg") - { - rop = IEC61970::Base::Domain::UnitSymbol::m3Perkg; - return lop; - } - - if(EnumSymbol == "Pas") - { - rop = IEC61970::Base::Domain::UnitSymbol::Pas; - return lop; - } - - if(EnumSymbol == "Nm") - { - rop = IEC61970::Base::Domain::UnitSymbol::Nm; - return lop; - } - - if(EnumSymbol == "NPerm") - { - rop = IEC61970::Base::Domain::UnitSymbol::NPerm; - return lop; - } - - if(EnumSymbol == "radPers2") - { - rop = IEC61970::Base::Domain::UnitSymbol::radPers2; - return lop; - } - - if(EnumSymbol == "WPerm2") - { - rop = IEC61970::Base::Domain::UnitSymbol::WPerm2; - return lop; - } - - if(EnumSymbol == "JPerkgK") - { - rop = IEC61970::Base::Domain::UnitSymbol::JPerkgK; - return lop; - } - - if(EnumSymbol == "JPerm3") - { - rop = IEC61970::Base::Domain::UnitSymbol::JPerm3; - return lop; - } - - if(EnumSymbol == "VPerm") - { - rop = IEC61970::Base::Domain::UnitSymbol::VPerm; - return lop; - } - - if(EnumSymbol == "CPerm3") - { - rop = IEC61970::Base::Domain::UnitSymbol::CPerm3; - return lop; - } - - if(EnumSymbol == "CPerm2") - { - rop = IEC61970::Base::Domain::UnitSymbol::CPerm2; - return lop; - } - - if(EnumSymbol == "FPerm") - { - rop = IEC61970::Base::Domain::UnitSymbol::FPerm; - return lop; - } - - if(EnumSymbol == "HPerm") - { - rop = IEC61970::Base::Domain::UnitSymbol::HPerm; - return lop; - } - - if(EnumSymbol == "JPermol") - { - rop = IEC61970::Base::Domain::UnitSymbol::JPermol; - return lop; - } - - if(EnumSymbol == "JPermolK") - { - rop = IEC61970::Base::Domain::UnitSymbol::JPermolK; - return lop; - } - - if(EnumSymbol == "CPerkg") - { - rop = IEC61970::Base::Domain::UnitSymbol::CPerkg; - return lop; - } - - if(EnumSymbol == "GyPers") - { - rop = IEC61970::Base::Domain::UnitSymbol::GyPers; - return lop; - } - - if(EnumSymbol == "WPersr") - { - rop = IEC61970::Base::Domain::UnitSymbol::WPersr; - return lop; - } - - if(EnumSymbol == "WPerm2sr") - { - rop = IEC61970::Base::Domain::UnitSymbol::WPerm2sr; - return lop; - } - - if(EnumSymbol == "katPerm3") - { - rop = IEC61970::Base::Domain::UnitSymbol::katPerm3; - return lop; - } - - if(EnumSymbol == "d") - { - rop = IEC61970::Base::Domain::UnitSymbol::d; - return lop; - } - - if(EnumSymbol == "anglemin") - { - rop = IEC61970::Base::Domain::UnitSymbol::anglemin; - return lop; - } - - if(EnumSymbol == "anglesec") - { - rop = IEC61970::Base::Domain::UnitSymbol::anglesec; - return lop; - } - - if(EnumSymbol == "ha") - { - rop = IEC61970::Base::Domain::UnitSymbol::ha; - return lop; - } - - if(EnumSymbol == "tonne") - { - rop = IEC61970::Base::Domain::UnitSymbol::tonne; - return lop; - } - - if(EnumSymbol == "bar") - { - rop = IEC61970::Base::Domain::UnitSymbol::bar; - return lop; - } - - if(EnumSymbol == "mmHg") - { - rop = IEC61970::Base::Domain::UnitSymbol::mmHg; - return lop; - } - - if(EnumSymbol == "M") - { - rop = IEC61970::Base::Domain::UnitSymbol::M; - return lop; - } - - if(EnumSymbol == "kn") - { - rop = IEC61970::Base::Domain::UnitSymbol::kn; - return lop; - } - - if(EnumSymbol == "Vh") - { - rop = IEC61970::Base::Domain::UnitSymbol::Vh; - return lop; - } - - if(EnumSymbol == "Mx") - { - rop = IEC61970::Base::Domain::UnitSymbol::Mx; - return lop; - } - - if(EnumSymbol == "G") - { - rop = IEC61970::Base::Domain::UnitSymbol::G; - return lop; - } - - if(EnumSymbol == "Oe") - { - rop = IEC61970::Base::Domain::UnitSymbol::Oe; - return lop; - } - - if(EnumSymbol == "WPerA") - { - rop = IEC61970::Base::Domain::UnitSymbol::WPerA; - return lop; - } - - if(EnumSymbol == "SPerm") - { - rop = IEC61970::Base::Domain::UnitSymbol::SPerm; - return lop; - } - - if(EnumSymbol == "onePerHz") - { - rop = IEC61970::Base::Domain::UnitSymbol::onePerHz; - return lop; - } - - if(EnumSymbol == "VPerVAr") - { - rop = IEC61970::Base::Domain::UnitSymbol::VPerVAr; - return lop; - } - - if(EnumSymbol == "ohmPerm") - { - rop = IEC61970::Base::Domain::UnitSymbol::ohmPerm; - return lop; - } - - if(EnumSymbol == "kgPerJ") - { - rop = IEC61970::Base::Domain::UnitSymbol::kgPerJ; - return lop; - } - - if(EnumSymbol == "JPers") - { - rop = IEC61970::Base::Domain::UnitSymbol::JPers; - return lop; - } - - if(EnumSymbol == "m2Pers") - { - rop = IEC61970::Base::Domain::UnitSymbol::m2Pers; - return lop; - } - - if(EnumSymbol == "JPerm2") - { - rop = IEC61970::Base::Domain::UnitSymbol::JPerm2; - return lop; - } - - if(EnumSymbol == "KPers") - { - rop = IEC61970::Base::Domain::UnitSymbol::KPers; - return lop; - } - - if(EnumSymbol == "PaPers") - { - rop = IEC61970::Base::Domain::UnitSymbol::PaPers; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; -} - -std::istream& operator>>(std::istream& lop, IEC61970::Base::Core::PhaseCode& rop) -{ - std::string EnumSymbol; - lop >> EnumSymbol; - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "PhaseCode") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "_undef") - { - rop = IEC61970::Base::Core::PhaseCode::_undef; - return lop; - } - - if(EnumSymbol == "ABCN") - { - rop = IEC61970::Base::Core::PhaseCode::ABCN; - return lop; - } - - if(EnumSymbol == "ABC") - { - rop = IEC61970::Base::Core::PhaseCode::ABC; - return lop; - } - - if(EnumSymbol == "ABN") - { - rop = IEC61970::Base::Core::PhaseCode::ABN; - return lop; - } - - if(EnumSymbol == "ACN") - { - rop = IEC61970::Base::Core::PhaseCode::ACN; - return lop; - } - - if(EnumSymbol == "BCN") - { - rop = IEC61970::Base::Core::PhaseCode::BCN; - return lop; - } - - if(EnumSymbol == "AB") - { - rop = IEC61970::Base::Core::PhaseCode::AB; - return lop; - } - - if(EnumSymbol == "AC") - { - rop = IEC61970::Base::Core::PhaseCode::AC; - return lop; - } - - if(EnumSymbol == "BC") - { - rop = IEC61970::Base::Core::PhaseCode::BC; - return lop; - } - - if(EnumSymbol == "AN") - { - rop = IEC61970::Base::Core::PhaseCode::AN; - return lop; - } - - if(EnumSymbol == "BN") - { - rop = IEC61970::Base::Core::PhaseCode::BN; - return lop; - } - - if(EnumSymbol == "CN") - { - rop = IEC61970::Base::Core::PhaseCode::CN; - return lop; - } - - if(EnumSymbol == "A") - { - rop = IEC61970::Base::Core::PhaseCode::A; - return lop; - } - - if(EnumSymbol == "B") - { - rop = IEC61970::Base::Core::PhaseCode::B; - return lop; - } - - if(EnumSymbol == "C") - { - rop = IEC61970::Base::Core::PhaseCode::C; - return lop; - } - - if(EnumSymbol == "N") - { - rop = IEC61970::Base::Core::PhaseCode::N; - return lop; - } - - if(EnumSymbol == "s1N") - { - rop = IEC61970::Base::Core::PhaseCode::s1N; - return lop; - } - - if(EnumSymbol == "s2N") - { - rop = IEC61970::Base::Core::PhaseCode::s2N; - return lop; - } - - if(EnumSymbol == "s12N") - { - rop = IEC61970::Base::Core::PhaseCode::s12N; - return lop; - } - - if(EnumSymbol == "s1") - { - rop = IEC61970::Base::Core::PhaseCode::s1; - return lop; - } - - if(EnumSymbol == "s2") - { - rop = IEC61970::Base::Core::PhaseCode::s2; - return lop; - } - - if(EnumSymbol == "s12") - { - rop = IEC61970::Base::Core::PhaseCode::s12; - return lop; - } - - if(EnumSymbol == "none") - { - rop = IEC61970::Base::Core::PhaseCode::none; - return lop; - } - - if(EnumSymbol == "X") - { - rop = IEC61970::Base::Core::PhaseCode::X; - return lop; - } - - if(EnumSymbol == "XY") - { - rop = IEC61970::Base::Core::PhaseCode::XY; - return lop; - } - - if(EnumSymbol == "XN") - { - rop = IEC61970::Base::Core::PhaseCode::XN; - return lop; - } - - if(EnumSymbol == "XYN") - { - rop = IEC61970::Base::Core::PhaseCode::XYN; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; -} - -std::istream& operator>>(std::istream& lop, IEC61970::Base::Wires::RegulatingControlModeKind& rop) -{ - std::string EnumSymbol; - lop >> EnumSymbol; - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "RegulatingControlModeKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "_undef") - { - rop = IEC61970::Base::Wires::RegulatingControlModeKind::_undef; - return lop; - } - - if(EnumSymbol == "voltage") - { - rop = IEC61970::Base::Wires::RegulatingControlModeKind::voltage; - return lop; - } - - if(EnumSymbol == "activePower") - { - rop = IEC61970::Base::Wires::RegulatingControlModeKind::activePower; - return lop; - } - - if(EnumSymbol == "reactivePower") - { - rop = IEC61970::Base::Wires::RegulatingControlModeKind::reactivePower; - return lop; - } - - if(EnumSymbol == "currentFlow") - { - rop = IEC61970::Base::Wires::RegulatingControlModeKind::currentFlow; - return lop; - } - - if(EnumSymbol == "admittance") - { - rop = IEC61970::Base::Wires::RegulatingControlModeKind::admittance; - return lop; - } - - if(EnumSymbol == "timeScheduled") - { - rop = IEC61970::Base::Wires::RegulatingControlModeKind::timeScheduled; - return lop; - } - - if(EnumSymbol == "temperature") - { - rop = IEC61970::Base::Wires::RegulatingControlModeKind::temperature; - return lop; - } - - if(EnumSymbol == "powerFactor") - { - rop = IEC61970::Base::Wires::RegulatingControlModeKind::powerFactor; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; -} - -std::istream& operator>>(std::istream& lop, IEC61970::Base::Wires::CoolantType& rop) -{ - std::string EnumSymbol; - lop >> EnumSymbol; - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "CoolantType") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "_undef") - { - rop = IEC61970::Base::Wires::CoolantType::_undef; - return lop; - } - - if(EnumSymbol == "air") - { - rop = IEC61970::Base::Wires::CoolantType::air; - return lop; - } - - if(EnumSymbol == "hydrogenGas") - { - rop = IEC61970::Base::Wires::CoolantType::hydrogenGas; - return lop; - } - - if(EnumSymbol == "water") - { - rop = IEC61970::Base::Wires::CoolantType::water; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; -} - -std::istream& operator>>(std::istream& lop, IEC61970::Base::Wires::SynchronousMachineOperatingMode& rop) -{ - std::string EnumSymbol; - lop >> EnumSymbol; - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "SynchronousMachineOperatingMode") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "_undef") - { - rop = IEC61970::Base::Wires::SynchronousMachineOperatingMode::_undef; - return lop; - } - - if(EnumSymbol == "generator") - { - rop = IEC61970::Base::Wires::SynchronousMachineOperatingMode::generator; - return lop; - } - - if(EnumSymbol == "condenser") - { - rop = IEC61970::Base::Wires::SynchronousMachineOperatingMode::condenser; - return lop; - } - - if(EnumSymbol == "motor") - { - rop = IEC61970::Base::Wires::SynchronousMachineOperatingMode::motor; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; -} - -std::istream& operator>>(std::istream& lop, IEC61970::Base::Wires::ShortCircuitRotorKind& rop) -{ - std::string EnumSymbol; - lop >> EnumSymbol; - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "ShortCircuitRotorKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "_undef") - { - rop = IEC61970::Base::Wires::ShortCircuitRotorKind::_undef; - return lop; - } - - if(EnumSymbol == "salientPole1") - { - rop = IEC61970::Base::Wires::ShortCircuitRotorKind::salientPole1; - return lop; - } - - if(EnumSymbol == "salientPole2") - { - rop = IEC61970::Base::Wires::ShortCircuitRotorKind::salientPole2; - return lop; - } - - if(EnumSymbol == "turboSeries1") - { - rop = IEC61970::Base::Wires::ShortCircuitRotorKind::turboSeries1; - return lop; - } - - if(EnumSymbol == "turboSeries2") - { - rop = IEC61970::Base::Wires::ShortCircuitRotorKind::turboSeries2; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; -} - -std::istream& operator>>(std::istream& lop, IEC61970::Base::Wires::SynchronousMachineKind& rop) -{ - std::string EnumSymbol; - lop >> EnumSymbol; - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "SynchronousMachineKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "generator") - { - rop = IEC61970::Base::Wires::SynchronousMachineKind::generator; - return lop; - } - - if(EnumSymbol == "condenser") - { - rop = IEC61970::Base::Wires::SynchronousMachineKind::condenser; - return lop; - } - - if(EnumSymbol == "_undef") - { - rop = IEC61970::Base::Wires::SynchronousMachineKind::_undef; - return lop; - } - - if(EnumSymbol == "generatorOrCondenser") - { - rop = IEC61970::Base::Wires::SynchronousMachineKind::generatorOrCondenser; - return lop; - } - - if(EnumSymbol == "motor") - { - rop = IEC61970::Base::Wires::SynchronousMachineKind::motor; - return lop; - } - - if(EnumSymbol == "generatorOrMotor") - { - rop = IEC61970::Base::Wires::SynchronousMachineKind::generatorOrMotor; - return lop; - } - - if(EnumSymbol == "motorOrCondenser") - { - rop = IEC61970::Base::Wires::SynchronousMachineKind::motorOrCondenser; - return lop; - } - - if(EnumSymbol == "generatorOrCondenserOrMotor") - { - rop = IEC61970::Base::Wires::SynchronousMachineKind::generatorOrCondenserOrMotor; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; -} - -std::istream& operator>>(std::istream& lop, IEC61970::Dynamics::StandardInterconnections::RemoteSignalKind& rop) -{ - std::string EnumSymbol; - lop >> EnumSymbol; - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "RemoteSignalKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "_undef") - { - rop = IEC61970::Dynamics::StandardInterconnections::RemoteSignalKind::_undef; - return lop; - } - - if(EnumSymbol == "remoteBusVoltageFrequency") - { - rop = IEC61970::Dynamics::StandardInterconnections::RemoteSignalKind::remoteBusVoltageFrequency; - return lop; - } - - if(EnumSymbol == "remoteBusVoltageFrequencyDeviation") - { - rop = IEC61970::Dynamics::StandardInterconnections::RemoteSignalKind::remoteBusVoltageFrequencyDeviation; - return lop; - } - - if(EnumSymbol == "remoteBusFrequency") - { - rop = IEC61970::Dynamics::StandardInterconnections::RemoteSignalKind::remoteBusFrequency; - return lop; - } - - if(EnumSymbol == "remoteBusFrequencyDeviation") - { - rop = IEC61970::Dynamics::StandardInterconnections::RemoteSignalKind::remoteBusFrequencyDeviation; - return lop; - } - - if(EnumSymbol == "remoteBusVoltageAmplitude") - { - rop = IEC61970::Dynamics::StandardInterconnections::RemoteSignalKind::remoteBusVoltageAmplitude; - return lop; - } - - if(EnumSymbol == "remoteBusVoltage") - { - rop = IEC61970::Dynamics::StandardInterconnections::RemoteSignalKind::remoteBusVoltage; - return lop; - } - - if(EnumSymbol == "remoteBranchCurrentAmplitude") - { - rop = IEC61970::Dynamics::StandardInterconnections::RemoteSignalKind::remoteBranchCurrentAmplitude; - return lop; - } - - if(EnumSymbol == "remoteBusVoltageAmplitudeDerivative") - { - rop = IEC61970::Dynamics::StandardInterconnections::RemoteSignalKind::remoteBusVoltageAmplitudeDerivative; - return lop; - } - - if(EnumSymbol == "remotePuBusVoltageDerivative") - { - rop = IEC61970::Dynamics::StandardInterconnections::RemoteSignalKind::remotePuBusVoltageDerivative; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; -} - -std::istream& operator>>(std::istream& lop, IEC61970::Base::Wires::PhaseShuntConnectionKind& rop) -{ - std::string EnumSymbol; - lop >> EnumSymbol; - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "PhaseShuntConnectionKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "_undef") - { - rop = IEC61970::Base::Wires::PhaseShuntConnectionKind::_undef; - return lop; - } - - if(EnumSymbol == "D") - { - rop = IEC61970::Base::Wires::PhaseShuntConnectionKind::D; - return lop; - } - - if(EnumSymbol == "Y") - { - rop = IEC61970::Base::Wires::PhaseShuntConnectionKind::Y; - return lop; - } - - if(EnumSymbol == "Yn") - { - rop = IEC61970::Base::Wires::PhaseShuntConnectionKind::Yn; - return lop; - } - - if(EnumSymbol == "I") - { - rop = IEC61970::Base::Wires::PhaseShuntConnectionKind::I; - return lop; - } - - if(EnumSymbol == "G") - { - rop = IEC61970::Base::Wires::PhaseShuntConnectionKind::G; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; -} - -std::istream& operator>>(std::istream& lop, IEC61970::Base::Wires::SinglePhaseKind& rop) -{ - std::string EnumSymbol; - lop >> EnumSymbol; - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "SinglePhaseKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "_undef") - { - rop = IEC61970::Base::Wires::SinglePhaseKind::_undef; - return lop; - } - - if(EnumSymbol == "A") - { - rop = IEC61970::Base::Wires::SinglePhaseKind::A; - return lop; - } - - if(EnumSymbol == "B") - { - rop = IEC61970::Base::Wires::SinglePhaseKind::B; - return lop; - } - - if(EnumSymbol == "C") - { - rop = IEC61970::Base::Wires::SinglePhaseKind::C; - return lop; - } - - if(EnumSymbol == "N") - { - rop = IEC61970::Base::Wires::SinglePhaseKind::N; - return lop; - } - - if(EnumSymbol == "s1") - { - rop = IEC61970::Base::Wires::SinglePhaseKind::s1; - return lop; - } - - if(EnumSymbol == "s2") - { - rop = IEC61970::Base::Wires::SinglePhaseKind::s2; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; -} - -std::istream& operator>>(std::istream& lop, IEC61970::Dynamics::StandardModels::WindDynamics::WindLookupTableFunctionKind& rop) -{ - std::string EnumSymbol; - lop >> EnumSymbol; - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "WindLookupTableFunctionKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "_undef") - { - rop = IEC61970::Dynamics::StandardModels::WindDynamics::WindLookupTableFunctionKind::_undef; - return lop; - } - - if(EnumSymbol == "fpslip") - { - rop = IEC61970::Dynamics::StandardModels::WindDynamics::WindLookupTableFunctionKind::fpslip; - return lop; - } - - if(EnumSymbol == "fpomega") - { - rop = IEC61970::Dynamics::StandardModels::WindDynamics::WindLookupTableFunctionKind::fpomega; - return lop; - } - - if(EnumSymbol == "ipvdl") - { - rop = IEC61970::Dynamics::StandardModels::WindDynamics::WindLookupTableFunctionKind::ipvdl; - return lop; - } - - if(EnumSymbol == "iqvdl") - { - rop = IEC61970::Dynamics::StandardModels::WindDynamics::WindLookupTableFunctionKind::iqvdl; - return lop; - } - - if(EnumSymbol == "fdpf") - { - rop = IEC61970::Dynamics::StandardModels::WindDynamics::WindLookupTableFunctionKind::fdpf; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; -} - -std::istream& operator>>(std::istream& lop, IEC61970::Dynamics::StandardModels::WindDynamics::WindLVRTQcontrolModesKind& rop) -{ - std::string EnumSymbol; - lop >> EnumSymbol; - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "WindLVRTQcontrolModesKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "_undef") - { - rop = IEC61970::Dynamics::StandardModels::WindDynamics::WindLVRTQcontrolModesKind::_undef; - return lop; - } - - if(EnumSymbol == "mode1") - { - rop = IEC61970::Dynamics::StandardModels::WindDynamics::WindLVRTQcontrolModesKind::mode1; - return lop; - } - - if(EnumSymbol == "mode2") - { - rop = IEC61970::Dynamics::StandardModels::WindDynamics::WindLVRTQcontrolModesKind::mode2; - return lop; - } - - if(EnumSymbol == "mode3") - { - rop = IEC61970::Dynamics::StandardModels::WindDynamics::WindLVRTQcontrolModesKind::mode3; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; -} - -std::istream& operator>>(std::istream& lop, IEC61970::Dynamics::StandardModels::WindDynamics::WindQcontrolModesKind& rop) -{ - std::string EnumSymbol; - lop >> EnumSymbol; - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "WindQcontrolModesKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "_undef") - { - rop = IEC61970::Dynamics::StandardModels::WindDynamics::WindQcontrolModesKind::_undef; - return lop; - } - - if(EnumSymbol == "voltage") - { - rop = IEC61970::Dynamics::StandardModels::WindDynamics::WindQcontrolModesKind::voltage; - return lop; - } - - if(EnumSymbol == "reactivePower") - { - rop = IEC61970::Dynamics::StandardModels::WindDynamics::WindQcontrolModesKind::reactivePower; - return lop; - } - - if(EnumSymbol == "openLoopReactivePower") - { - rop = IEC61970::Dynamics::StandardModels::WindDynamics::WindQcontrolModesKind::openLoopReactivePower; - return lop; - } - - if(EnumSymbol == "powerFactor") - { - rop = IEC61970::Dynamics::StandardModels::WindDynamics::WindQcontrolModesKind::powerFactor; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; -} - -std::istream& operator>>(std::istream& lop, IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::InputSignalKind& rop) -{ - std::string EnumSymbol; - lop >> EnumSymbol; - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "InputSignalKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "_undef") - { - rop = IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::InputSignalKind::_undef; - return lop; - } - - if(EnumSymbol == "rotorSpeed") - { - rop = IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::InputSignalKind::rotorSpeed; - return lop; - } - - if(EnumSymbol == "rotorAngularFrequencyDeviation") - { - rop = IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::InputSignalKind::rotorAngularFrequencyDeviation; - return lop; - } - - if(EnumSymbol == "busFrequency") - { - rop = IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::InputSignalKind::busFrequency; - return lop; - } - - if(EnumSymbol == "busFrequencyDeviation") - { - rop = IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::InputSignalKind::busFrequencyDeviation; - return lop; - } - - if(EnumSymbol == "generatorElectricalPower") - { - rop = IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::InputSignalKind::generatorElectricalPower; - return lop; - } - - if(EnumSymbol == "generatorAcceleratingPower") - { - rop = IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::InputSignalKind::generatorAcceleratingPower; - return lop; - } - - if(EnumSymbol == "busVoltage") - { - rop = IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::InputSignalKind::busVoltage; - return lop; - } - - if(EnumSymbol == "busVoltageDerivative") - { - rop = IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::InputSignalKind::busVoltageDerivative; - return lop; - } - - if(EnumSymbol == "branchCurrent") - { - rop = IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::InputSignalKind::branchCurrent; - return lop; - } - - if(EnumSymbol == "fieldCurrent") - { - rop = IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::InputSignalKind::fieldCurrent; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; -} - -std::istream& operator>>(std::istream& lop, IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcREXSFeedbackSignalKind& rop) -{ - std::string EnumSymbol; - lop >> EnumSymbol; - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "ExcREXSFeedbackSignalKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "_undef") - { - rop = IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcREXSFeedbackSignalKind::_undef; - return lop; - } - - if(EnumSymbol == "fieldVoltage") - { - rop = IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcREXSFeedbackSignalKind::fieldVoltage; - return lop; - } - - if(EnumSymbol == "fieldCurrent") - { - rop = IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcREXSFeedbackSignalKind::fieldCurrent; - return lop; - } - - if(EnumSymbol == "outputVoltage") - { - rop = IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcREXSFeedbackSignalKind::outputVoltage; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; -} - -std::istream& operator>>(std::istream& lop, IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST7BOELselectorKind& rop) -{ - std::string EnumSymbol; - lop >> EnumSymbol; - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "ExcST7BOELselectorKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "_undef") - { - rop = IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST7BOELselectorKind::_undef; - return lop; - } - - if(EnumSymbol == "noOELinput") - { - rop = IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST7BOELselectorKind::noOELinput; - return lop; - } - - if(EnumSymbol == "addVref") - { - rop = IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST7BOELselectorKind::addVref; - return lop; - } - - if(EnumSymbol == "inputLVgate") - { - rop = IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST7BOELselectorKind::inputLVgate; - return lop; - } - - if(EnumSymbol == "outputLVgate") - { - rop = IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST7BOELselectorKind::outputLVgate; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; -} - -std::istream& operator>>(std::istream& lop, IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST7BUELselectorKind& rop) -{ - std::string EnumSymbol; - lop >> EnumSymbol; - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "ExcST7BUELselectorKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "_undef") - { - rop = IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST7BUELselectorKind::_undef; - return lop; - } - - if(EnumSymbol == "noUELinput") - { - rop = IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST7BUELselectorKind::noUELinput; - return lop; - } - - if(EnumSymbol == "addVref") - { - rop = IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST7BUELselectorKind::addVref; - return lop; - } - - if(EnumSymbol == "inputHVgate") - { - rop = IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST7BUELselectorKind::inputHVgate; - return lop; - } - - if(EnumSymbol == "outputHVgate") - { - rop = IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST7BUELselectorKind::outputHVgate; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; -} - -std::istream& operator>>(std::istream& lop, IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST6BOELselectorKind& rop) -{ - std::string EnumSymbol; - lop >> EnumSymbol; - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "ExcST6BOELselectorKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "_undef") - { - rop = IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST6BOELselectorKind::_undef; - return lop; - } - - if(EnumSymbol == "noOELinput") - { - rop = IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST6BOELselectorKind::noOELinput; - return lop; - } - - if(EnumSymbol == "beforeUEL") - { - rop = IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST6BOELselectorKind::beforeUEL; - return lop; - } - - if(EnumSymbol == "afterUEL") - { - rop = IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST6BOELselectorKind::afterUEL; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; -} - -std::istream& operator>>(std::istream& lop, IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST1AUELselectorKind& rop) -{ - std::string EnumSymbol; - lop >> EnumSymbol; - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "ExcIEEEST1AUELselectorKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "_undef") - { - rop = IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST1AUELselectorKind::_undef; - return lop; - } - - if(EnumSymbol == "ignoreUELsignal") - { - rop = IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST1AUELselectorKind::ignoreUELsignal; - return lop; - } - - if(EnumSymbol == "inputHVgateVoltageOutput") - { - rop = IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST1AUELselectorKind::inputHVgateVoltageOutput; - return lop; - } - - if(EnumSymbol == "inputHVgateErrorSignal") - { - rop = IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST1AUELselectorKind::inputHVgateErrorSignal; - return lop; - } - - if(EnumSymbol == "inputAddedToErrorSignal") - { - rop = IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST1AUELselectorKind::inputAddedToErrorSignal; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; -} - -std::istream& operator>>(std::istream& lop, IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::DroopSignalFeedbackKind& rop) -{ - std::string EnumSymbol; - lop >> EnumSymbol; - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "DroopSignalFeedbackKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "_undef") - { - rop = IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::DroopSignalFeedbackKind::_undef; - return lop; - } - - if(EnumSymbol == "electricalPower") - { - rop = IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::DroopSignalFeedbackKind::electricalPower; - return lop; - } - - if(EnumSymbol == "none") - { - rop = IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::DroopSignalFeedbackKind::none; - return lop; - } - - if(EnumSymbol == "fuelValveStroke") - { - rop = IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::DroopSignalFeedbackKind::fuelValveStroke; - return lop; - } - - if(EnumSymbol == "governorOutput") - { - rop = IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::DroopSignalFeedbackKind::governorOutput; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; -} - -std::istream& operator>>(std::istream& lop, IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::FrancisGovernorControlKind& rop) -{ - std::string EnumSymbol; - lop >> EnumSymbol; - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "FrancisGovernorControlKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "_undef") - { - rop = IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::FrancisGovernorControlKind::_undef; - return lop; - } - - if(EnumSymbol == "mechanicHydrolicTachoAccelerator") - { - rop = IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::FrancisGovernorControlKind::mechanicHydrolicTachoAccelerator; - return lop; - } - - if(EnumSymbol == "mechanicHydraulicTransientFeedback") - { - rop = IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::FrancisGovernorControlKind::mechanicHydraulicTransientFeedback; - return lop; - } - - if(EnumSymbol == "electromechanicalElectrohydraulic") - { - rop = IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::FrancisGovernorControlKind::electromechanicalElectrohydraulic; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; -} - -std::istream& operator>>(std::istream& lop, IEC61970::Dynamics::StandardModels::LoadDynamics::StaticLoadModelKind& rop) -{ - std::string EnumSymbol; - lop >> EnumSymbol; - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "StaticLoadModelKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "_undef") - { - rop = IEC61970::Dynamics::StandardModels::LoadDynamics::StaticLoadModelKind::_undef; - return lop; - } - - if(EnumSymbol == "exponential") - { - rop = IEC61970::Dynamics::StandardModels::LoadDynamics::StaticLoadModelKind::exponential; - return lop; - } - - if(EnumSymbol == "zIP1") - { - rop = IEC61970::Dynamics::StandardModels::LoadDynamics::StaticLoadModelKind::zIP1; - return lop; - } - - if(EnumSymbol == "zIP2") - { - rop = IEC61970::Dynamics::StandardModels::LoadDynamics::StaticLoadModelKind::zIP2; - return lop; - } - - if(EnumSymbol == "constantZ") - { - rop = IEC61970::Dynamics::StandardModels::LoadDynamics::StaticLoadModelKind::constantZ; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; -} - -std::istream& operator>>(std::istream& lop, IEC61970::Dynamics::StandardModels::LoadDynamics::GenericNonLinearLoadModelKind& rop) -{ - std::string EnumSymbol; - lop >> EnumSymbol; - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "GenericNonLinearLoadModelKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "_undef") - { - rop = IEC61970::Dynamics::StandardModels::LoadDynamics::GenericNonLinearLoadModelKind::_undef; - return lop; - } - - if(EnumSymbol == "exponentialRecovery") - { - rop = IEC61970::Dynamics::StandardModels::LoadDynamics::GenericNonLinearLoadModelKind::exponentialRecovery; - return lop; - } - - if(EnumSymbol == "loadAdaptive") - { - rop = IEC61970::Dynamics::StandardModels::LoadDynamics::GenericNonLinearLoadModelKind::loadAdaptive; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; -} - -std::istream& operator>>(std::istream& lop, IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::SynchronousMachineModelKind& rop) -{ - std::string EnumSymbol; - lop >> EnumSymbol; - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "SynchronousMachineModelKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "_undef") - { - rop = IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::SynchronousMachineModelKind::_undef; - return lop; - } - - if(EnumSymbol == "subtransient") - { - rop = IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::SynchronousMachineModelKind::subtransient; - return lop; - } - - if(EnumSymbol == "subtransientTypeF") - { - rop = IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::SynchronousMachineModelKind::subtransientTypeF; - return lop; - } - - if(EnumSymbol == "subtransientTypeJ") - { - rop = IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::SynchronousMachineModelKind::subtransientTypeJ; - return lop; - } - - if(EnumSymbol == "subtransientSimplified") - { - rop = IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::SynchronousMachineModelKind::subtransientSimplified; - return lop; - } - - if(EnumSymbol == "subtransientSimplifiedDirectAxis") - { - rop = IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::SynchronousMachineModelKind::subtransientSimplifiedDirectAxis; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; -} - -std::istream& operator>>(std::istream& lop, IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::RotorKind& rop) -{ - std::string EnumSymbol; - lop >> EnumSymbol; - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "RotorKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "_undef") - { - rop = IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::RotorKind::_undef; - return lop; - } - - if(EnumSymbol == "roundRotor") - { - rop = IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::RotorKind::roundRotor; - return lop; - } - - if(EnumSymbol == "salientPole") - { - rop = IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::RotorKind::salientPole; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; -} - -std::istream& operator>>(std::istream& lop, IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::IfdBaseKind& rop) -{ - std::string EnumSymbol; - lop >> EnumSymbol; - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "IfdBaseKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "_undef") - { - rop = IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::IfdBaseKind::_undef; - return lop; - } - - if(EnumSymbol == "ifag") - { - rop = IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::IfdBaseKind::ifag; - return lop; - } - - if(EnumSymbol == "ifnl") - { - rop = IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::IfdBaseKind::ifnl; - return lop; - } - - if(EnumSymbol == "iffl") - { - rop = IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::IfdBaseKind::iffl; - return lop; - } - - if(EnumSymbol == "other") - { - rop = IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::IfdBaseKind::other; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; -} - -std::istream& operator>>(std::istream& lop, IEC61970::Base::OperationalLimits::OperationalLimitDirectionKind& rop) -{ - std::string EnumSymbol; - lop >> EnumSymbol; - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "OperationalLimitDirectionKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "_undef") - { - rop = IEC61970::Base::OperationalLimits::OperationalLimitDirectionKind::_undef; - return lop; - } - - if(EnumSymbol == "high") - { - rop = IEC61970::Base::OperationalLimits::OperationalLimitDirectionKind::high; - return lop; - } - - if(EnumSymbol == "low") - { - rop = IEC61970::Base::OperationalLimits::OperationalLimitDirectionKind::low; - return lop; - } - - if(EnumSymbol == "absoluteValue") - { - rop = IEC61970::Base::OperationalLimits::OperationalLimitDirectionKind::absoluteValue; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; -} - -std::istream& operator>>(std::istream& lop, IEC61970::Base::Domain::Currency& rop) -{ - std::string EnumSymbol; - lop >> EnumSymbol; - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "Currency") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "_undef") - { - rop = IEC61970::Base::Domain::Currency::_undef; - return lop; - } - - if(EnumSymbol == "AED") - { - rop = IEC61970::Base::Domain::Currency::AED; - return lop; - } - - if(EnumSymbol == "AFN") - { - rop = IEC61970::Base::Domain::Currency::AFN; - return lop; - } - - if(EnumSymbol == "ALL") - { - rop = IEC61970::Base::Domain::Currency::ALL; - return lop; - } - - if(EnumSymbol == "AMD") - { - rop = IEC61970::Base::Domain::Currency::AMD; - return lop; - } - - if(EnumSymbol == "ANG") - { - rop = IEC61970::Base::Domain::Currency::ANG; - return lop; - } - - if(EnumSymbol == "AOA") - { - rop = IEC61970::Base::Domain::Currency::AOA; - return lop; - } - - if(EnumSymbol == "ARS") - { - rop = IEC61970::Base::Domain::Currency::ARS; - return lop; - } - - if(EnumSymbol == "AUD") - { - rop = IEC61970::Base::Domain::Currency::AUD; - return lop; - } - - if(EnumSymbol == "AWG") - { - rop = IEC61970::Base::Domain::Currency::AWG; - return lop; - } - - if(EnumSymbol == "AZN") - { - rop = IEC61970::Base::Domain::Currency::AZN; - return lop; - } - - if(EnumSymbol == "BAM") - { - rop = IEC61970::Base::Domain::Currency::BAM; - return lop; - } - - if(EnumSymbol == "BBD") - { - rop = IEC61970::Base::Domain::Currency::BBD; - return lop; - } - - if(EnumSymbol == "BDT") - { - rop = IEC61970::Base::Domain::Currency::BDT; - return lop; - } - - if(EnumSymbol == "BGN") - { - rop = IEC61970::Base::Domain::Currency::BGN; - return lop; - } - - if(EnumSymbol == "BHD") - { - rop = IEC61970::Base::Domain::Currency::BHD; - return lop; - } - - if(EnumSymbol == "BIF") - { - rop = IEC61970::Base::Domain::Currency::BIF; - return lop; - } - - if(EnumSymbol == "BMD") - { - rop = IEC61970::Base::Domain::Currency::BMD; - return lop; - } - - if(EnumSymbol == "BND") - { - rop = IEC61970::Base::Domain::Currency::BND; - return lop; - } - - if(EnumSymbol == "BOB") - { - rop = IEC61970::Base::Domain::Currency::BOB; - return lop; - } - - if(EnumSymbol == "BOV") - { - rop = IEC61970::Base::Domain::Currency::BOV; - return lop; - } - - if(EnumSymbol == "BRL") - { - rop = IEC61970::Base::Domain::Currency::BRL; - return lop; - } - - if(EnumSymbol == "BSD") - { - rop = IEC61970::Base::Domain::Currency::BSD; - return lop; - } - - if(EnumSymbol == "BTN") - { - rop = IEC61970::Base::Domain::Currency::BTN; - return lop; - } - - if(EnumSymbol == "BWP") - { - rop = IEC61970::Base::Domain::Currency::BWP; - return lop; - } - - if(EnumSymbol == "BYR") - { - rop = IEC61970::Base::Domain::Currency::BYR; - return lop; - } - - if(EnumSymbol == "BZD") - { - rop = IEC61970::Base::Domain::Currency::BZD; - return lop; - } - - if(EnumSymbol == "CAD") - { - rop = IEC61970::Base::Domain::Currency::CAD; - return lop; - } - - if(EnumSymbol == "CDF") - { - rop = IEC61970::Base::Domain::Currency::CDF; - return lop; - } - - if(EnumSymbol == "CHF") - { - rop = IEC61970::Base::Domain::Currency::CHF; - return lop; - } - - if(EnumSymbol == "CLF") - { - rop = IEC61970::Base::Domain::Currency::CLF; - return lop; - } - - if(EnumSymbol == "CLP") - { - rop = IEC61970::Base::Domain::Currency::CLP; - return lop; - } - - if(EnumSymbol == "CNY") - { - rop = IEC61970::Base::Domain::Currency::CNY; - return lop; - } - - if(EnumSymbol == "COP") - { - rop = IEC61970::Base::Domain::Currency::COP; - return lop; - } - - if(EnumSymbol == "COU") - { - rop = IEC61970::Base::Domain::Currency::COU; - return lop; - } - - if(EnumSymbol == "CRC") - { - rop = IEC61970::Base::Domain::Currency::CRC; - return lop; - } - - if(EnumSymbol == "CUC") - { - rop = IEC61970::Base::Domain::Currency::CUC; - return lop; - } - - if(EnumSymbol == "CUP") - { - rop = IEC61970::Base::Domain::Currency::CUP; - return lop; - } - - if(EnumSymbol == "CVE") - { - rop = IEC61970::Base::Domain::Currency::CVE; - return lop; - } - - if(EnumSymbol == "CZK") - { - rop = IEC61970::Base::Domain::Currency::CZK; - return lop; - } - - if(EnumSymbol == "DJF") - { - rop = IEC61970::Base::Domain::Currency::DJF; - return lop; - } - - if(EnumSymbol == "DKK") - { - rop = IEC61970::Base::Domain::Currency::DKK; - return lop; - } - - if(EnumSymbol == "DOP") - { - rop = IEC61970::Base::Domain::Currency::DOP; - return lop; - } - - if(EnumSymbol == "DZD") - { - rop = IEC61970::Base::Domain::Currency::DZD; - return lop; - } - - if(EnumSymbol == "EEK") - { - rop = IEC61970::Base::Domain::Currency::EEK; - return lop; - } - - if(EnumSymbol == "EGP") - { - rop = IEC61970::Base::Domain::Currency::EGP; - return lop; - } - - if(EnumSymbol == "ERN") - { - rop = IEC61970::Base::Domain::Currency::ERN; - return lop; - } - - if(EnumSymbol == "ETB") - { - rop = IEC61970::Base::Domain::Currency::ETB; - return lop; - } - - if(EnumSymbol == "EUR") - { - rop = IEC61970::Base::Domain::Currency::EUR; - return lop; - } - - if(EnumSymbol == "FJD") - { - rop = IEC61970::Base::Domain::Currency::FJD; - return lop; - } - - if(EnumSymbol == "FKP") - { - rop = IEC61970::Base::Domain::Currency::FKP; - return lop; - } - - if(EnumSymbol == "GBP") - { - rop = IEC61970::Base::Domain::Currency::GBP; - return lop; - } - - if(EnumSymbol == "GEL") - { - rop = IEC61970::Base::Domain::Currency::GEL; - return lop; - } - - if(EnumSymbol == "GHS") - { - rop = IEC61970::Base::Domain::Currency::GHS; - return lop; - } - - if(EnumSymbol == "GIP") - { - rop = IEC61970::Base::Domain::Currency::GIP; - return lop; - } - - if(EnumSymbol == "GMD") - { - rop = IEC61970::Base::Domain::Currency::GMD; - return lop; - } - - if(EnumSymbol == "GNF") - { - rop = IEC61970::Base::Domain::Currency::GNF; - return lop; - } - - if(EnumSymbol == "GTQ") - { - rop = IEC61970::Base::Domain::Currency::GTQ; - return lop; - } - - if(EnumSymbol == "GYD") - { - rop = IEC61970::Base::Domain::Currency::GYD; - return lop; - } - - if(EnumSymbol == "HKD") - { - rop = IEC61970::Base::Domain::Currency::HKD; - return lop; - } - - if(EnumSymbol == "HNL") - { - rop = IEC61970::Base::Domain::Currency::HNL; - return lop; - } - - if(EnumSymbol == "HRK") - { - rop = IEC61970::Base::Domain::Currency::HRK; - return lop; - } - - if(EnumSymbol == "HTG") - { - rop = IEC61970::Base::Domain::Currency::HTG; - return lop; - } - - if(EnumSymbol == "HUF") - { - rop = IEC61970::Base::Domain::Currency::HUF; - return lop; - } - - if(EnumSymbol == "IDR") - { - rop = IEC61970::Base::Domain::Currency::IDR; - return lop; - } - - if(EnumSymbol == "ILS") - { - rop = IEC61970::Base::Domain::Currency::ILS; - return lop; - } - - if(EnumSymbol == "INR") - { - rop = IEC61970::Base::Domain::Currency::INR; - return lop; - } - - if(EnumSymbol == "IQD") - { - rop = IEC61970::Base::Domain::Currency::IQD; - return lop; - } - - if(EnumSymbol == "IRR") - { - rop = IEC61970::Base::Domain::Currency::IRR; - return lop; - } - - if(EnumSymbol == "ISK") - { - rop = IEC61970::Base::Domain::Currency::ISK; - return lop; - } - - if(EnumSymbol == "JMD") - { - rop = IEC61970::Base::Domain::Currency::JMD; - return lop; - } - - if(EnumSymbol == "JOD") - { - rop = IEC61970::Base::Domain::Currency::JOD; - return lop; - } - - if(EnumSymbol == "JPY") - { - rop = IEC61970::Base::Domain::Currency::JPY; - return lop; - } - - if(EnumSymbol == "KES") - { - rop = IEC61970::Base::Domain::Currency::KES; - return lop; - } - - if(EnumSymbol == "KGS") - { - rop = IEC61970::Base::Domain::Currency::KGS; - return lop; - } - - if(EnumSymbol == "KHR") - { - rop = IEC61970::Base::Domain::Currency::KHR; - return lop; - } - - if(EnumSymbol == "KMF") - { - rop = IEC61970::Base::Domain::Currency::KMF; - return lop; - } - - if(EnumSymbol == "KPW") - { - rop = IEC61970::Base::Domain::Currency::KPW; - return lop; - } - - if(EnumSymbol == "KRW") - { - rop = IEC61970::Base::Domain::Currency::KRW; - return lop; - } - - if(EnumSymbol == "KWD") - { - rop = IEC61970::Base::Domain::Currency::KWD; - return lop; - } - - if(EnumSymbol == "KYD") - { - rop = IEC61970::Base::Domain::Currency::KYD; - return lop; - } - - if(EnumSymbol == "KZT") - { - rop = IEC61970::Base::Domain::Currency::KZT; - return lop; - } - - if(EnumSymbol == "LAK") - { - rop = IEC61970::Base::Domain::Currency::LAK; - return lop; - } - - if(EnumSymbol == "LBP") - { - rop = IEC61970::Base::Domain::Currency::LBP; - return lop; - } - - if(EnumSymbol == "LKR") - { - rop = IEC61970::Base::Domain::Currency::LKR; - return lop; - } - - if(EnumSymbol == "LRD") - { - rop = IEC61970::Base::Domain::Currency::LRD; - return lop; - } - - if(EnumSymbol == "LSL") - { - rop = IEC61970::Base::Domain::Currency::LSL; - return lop; - } - - if(EnumSymbol == "LTL") - { - rop = IEC61970::Base::Domain::Currency::LTL; - return lop; - } - - if(EnumSymbol == "LVL") - { - rop = IEC61970::Base::Domain::Currency::LVL; - return lop; - } - - if(EnumSymbol == "LYD") - { - rop = IEC61970::Base::Domain::Currency::LYD; - return lop; - } - - if(EnumSymbol == "MAD") - { - rop = IEC61970::Base::Domain::Currency::MAD; - return lop; - } - - if(EnumSymbol == "MDL") - { - rop = IEC61970::Base::Domain::Currency::MDL; - return lop; - } - - if(EnumSymbol == "MGA") - { - rop = IEC61970::Base::Domain::Currency::MGA; - return lop; - } - - if(EnumSymbol == "MKD") - { - rop = IEC61970::Base::Domain::Currency::MKD; - return lop; - } - - if(EnumSymbol == "MMK") - { - rop = IEC61970::Base::Domain::Currency::MMK; - return lop; - } - - if(EnumSymbol == "MNT") - { - rop = IEC61970::Base::Domain::Currency::MNT; - return lop; - } - - if(EnumSymbol == "MOP") - { - rop = IEC61970::Base::Domain::Currency::MOP; - return lop; - } - - if(EnumSymbol == "MRO") - { - rop = IEC61970::Base::Domain::Currency::MRO; - return lop; - } - - if(EnumSymbol == "MUR") - { - rop = IEC61970::Base::Domain::Currency::MUR; - return lop; - } - - if(EnumSymbol == "MVR") - { - rop = IEC61970::Base::Domain::Currency::MVR; - return lop; - } - - if(EnumSymbol == "MWK") - { - rop = IEC61970::Base::Domain::Currency::MWK; - return lop; - } - - if(EnumSymbol == "MXN") - { - rop = IEC61970::Base::Domain::Currency::MXN; - return lop; - } - - if(EnumSymbol == "MYR") - { - rop = IEC61970::Base::Domain::Currency::MYR; - return lop; - } - - if(EnumSymbol == "MZN") - { - rop = IEC61970::Base::Domain::Currency::MZN; - return lop; - } - - if(EnumSymbol == "NAD") - { - rop = IEC61970::Base::Domain::Currency::NAD; - return lop; - } - - if(EnumSymbol == "NGN") - { - rop = IEC61970::Base::Domain::Currency::NGN; - return lop; - } - - if(EnumSymbol == "NIO") - { - rop = IEC61970::Base::Domain::Currency::NIO; - return lop; - } - - if(EnumSymbol == "NOK") - { - rop = IEC61970::Base::Domain::Currency::NOK; - return lop; - } - - if(EnumSymbol == "NPR") - { - rop = IEC61970::Base::Domain::Currency::NPR; - return lop; - } - - if(EnumSymbol == "NZD") - { - rop = IEC61970::Base::Domain::Currency::NZD; - return lop; - } - - if(EnumSymbol == "OMR") - { - rop = IEC61970::Base::Domain::Currency::OMR; - return lop; - } - - if(EnumSymbol == "PAB") - { - rop = IEC61970::Base::Domain::Currency::PAB; - return lop; - } - - if(EnumSymbol == "PEN") - { - rop = IEC61970::Base::Domain::Currency::PEN; - return lop; - } - - if(EnumSymbol == "PGK") - { - rop = IEC61970::Base::Domain::Currency::PGK; - return lop; - } - - if(EnumSymbol == "PHP") - { - rop = IEC61970::Base::Domain::Currency::PHP; - return lop; - } - - if(EnumSymbol == "PKR") - { - rop = IEC61970::Base::Domain::Currency::PKR; - return lop; - } - - if(EnumSymbol == "PLN") - { - rop = IEC61970::Base::Domain::Currency::PLN; - return lop; - } - - if(EnumSymbol == "PYG") - { - rop = IEC61970::Base::Domain::Currency::PYG; - return lop; - } - - if(EnumSymbol == "QAR") - { - rop = IEC61970::Base::Domain::Currency::QAR; - return lop; - } - - if(EnumSymbol == "RON") - { - rop = IEC61970::Base::Domain::Currency::RON; - return lop; - } - - if(EnumSymbol == "RSD") - { - rop = IEC61970::Base::Domain::Currency::RSD; - return lop; - } - - if(EnumSymbol == "RUB") - { - rop = IEC61970::Base::Domain::Currency::RUB; - return lop; - } - - if(EnumSymbol == "RWF") - { - rop = IEC61970::Base::Domain::Currency::RWF; - return lop; - } - - if(EnumSymbol == "SAR") - { - rop = IEC61970::Base::Domain::Currency::SAR; - return lop; - } - - if(EnumSymbol == "SBD") - { - rop = IEC61970::Base::Domain::Currency::SBD; - return lop; - } - - if(EnumSymbol == "SCR") - { - rop = IEC61970::Base::Domain::Currency::SCR; - return lop; - } - - if(EnumSymbol == "SDG") - { - rop = IEC61970::Base::Domain::Currency::SDG; - return lop; - } - - if(EnumSymbol == "SEK") - { - rop = IEC61970::Base::Domain::Currency::SEK; - return lop; - } - - if(EnumSymbol == "SGD") - { - rop = IEC61970::Base::Domain::Currency::SGD; - return lop; - } - - if(EnumSymbol == "SHP") - { - rop = IEC61970::Base::Domain::Currency::SHP; - return lop; - } - - if(EnumSymbol == "SLL") - { - rop = IEC61970::Base::Domain::Currency::SLL; - return lop; - } - - if(EnumSymbol == "SOS") - { - rop = IEC61970::Base::Domain::Currency::SOS; - return lop; - } - - if(EnumSymbol == "SRD") - { - rop = IEC61970::Base::Domain::Currency::SRD; - return lop; - } - - if(EnumSymbol == "STD") - { - rop = IEC61970::Base::Domain::Currency::STD; - return lop; - } - - if(EnumSymbol == "SYP") - { - rop = IEC61970::Base::Domain::Currency::SYP; - return lop; - } - - if(EnumSymbol == "SZL") - { - rop = IEC61970::Base::Domain::Currency::SZL; - return lop; - } - - if(EnumSymbol == "THB") - { - rop = IEC61970::Base::Domain::Currency::THB; - return lop; - } - - if(EnumSymbol == "TJS") - { - rop = IEC61970::Base::Domain::Currency::TJS; - return lop; - } - - if(EnumSymbol == "TMT") - { - rop = IEC61970::Base::Domain::Currency::TMT; - return lop; - } - - if(EnumSymbol == "TND") - { - rop = IEC61970::Base::Domain::Currency::TND; - return lop; - } - - if(EnumSymbol == "TOP") - { - rop = IEC61970::Base::Domain::Currency::TOP; - return lop; - } - - if(EnumSymbol == "TRY") - { - rop = IEC61970::Base::Domain::Currency::TRY; - return lop; - } - - if(EnumSymbol == "TTD") - { - rop = IEC61970::Base::Domain::Currency::TTD; - return lop; - } - - if(EnumSymbol == "TWD") - { - rop = IEC61970::Base::Domain::Currency::TWD; - return lop; - } - - if(EnumSymbol == "TZS") - { - rop = IEC61970::Base::Domain::Currency::TZS; - return lop; - } - - if(EnumSymbol == "UAH") - { - rop = IEC61970::Base::Domain::Currency::UAH; - return lop; - } - - if(EnumSymbol == "UGX") - { - rop = IEC61970::Base::Domain::Currency::UGX; - return lop; - } - - if(EnumSymbol == "USD") - { - rop = IEC61970::Base::Domain::Currency::USD; - return lop; - } - - if(EnumSymbol == "UYU") - { - rop = IEC61970::Base::Domain::Currency::UYU; - return lop; - } - - if(EnumSymbol == "UZS") - { - rop = IEC61970::Base::Domain::Currency::UZS; - return lop; - } - - if(EnumSymbol == "VEF") - { - rop = IEC61970::Base::Domain::Currency::VEF; - return lop; - } - - if(EnumSymbol == "VND") - { - rop = IEC61970::Base::Domain::Currency::VND; - return lop; - } - - if(EnumSymbol == "VUV") - { - rop = IEC61970::Base::Domain::Currency::VUV; - return lop; - } - - if(EnumSymbol == "WST") - { - rop = IEC61970::Base::Domain::Currency::WST; - return lop; - } - - if(EnumSymbol == "XAF") - { - rop = IEC61970::Base::Domain::Currency::XAF; - return lop; - } - - if(EnumSymbol == "XCD") - { - rop = IEC61970::Base::Domain::Currency::XCD; - return lop; - } - - if(EnumSymbol == "XOF") - { - rop = IEC61970::Base::Domain::Currency::XOF; - return lop; - } - - if(EnumSymbol == "XPF") - { - rop = IEC61970::Base::Domain::Currency::XPF; - return lop; - } - - if(EnumSymbol == "YER") - { - rop = IEC61970::Base::Domain::Currency::YER; - return lop; - } - - if(EnumSymbol == "ZAR") - { - rop = IEC61970::Base::Domain::Currency::ZAR; - return lop; - } - - if(EnumSymbol == "ZMK") - { - rop = IEC61970::Base::Domain::Currency::ZMK; - return lop; - } - - if(EnumSymbol == "ZWL") - { - rop = IEC61970::Base::Domain::Currency::ZWL; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; -} - -std::istream& operator>>(std::istream& lop, IEC61970::Base::SCADA::RemoteUnitType& rop) -{ - std::string EnumSymbol; - lop >> EnumSymbol; - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "RemoteUnitType") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "_undef") - { - rop = IEC61970::Base::SCADA::RemoteUnitType::_undef; - return lop; - } - - if(EnumSymbol == "RTU") - { - rop = IEC61970::Base::SCADA::RemoteUnitType::RTU; - return lop; - } - - if(EnumSymbol == "SubstationControlSystem") - { - rop = IEC61970::Base::SCADA::RemoteUnitType::SubstationControlSystem; - return lop; - } - - if(EnumSymbol == "ControlCenter") - { - rop = IEC61970::Base::SCADA::RemoteUnitType::ControlCenter; - return lop; - } - - if(EnumSymbol == "IED") - { - rop = IEC61970::Base::SCADA::RemoteUnitType::IED; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; -} - -std::istream& operator>>(std::istream& lop, IEC61970::Base::SCADA::Source& rop) -{ - std::string EnumSymbol; - lop >> EnumSymbol; - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "Source") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "_undef") - { - rop = IEC61970::Base::SCADA::Source::_undef; - return lop; - } - - if(EnumSymbol == "PROCESS") - { - rop = IEC61970::Base::SCADA::Source::PROCESS; - return lop; - } - - if(EnumSymbol == "DEFAULTED") - { - rop = IEC61970::Base::SCADA::Source::DEFAULTED; - return lop; - } - - if(EnumSymbol == "SUBSTITUTED") - { - rop = IEC61970::Base::SCADA::Source::SUBSTITUTED; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; -} - -std::istream& operator>>(std::istream& lop, IEC61970::Base::AuxiliaryEquipment::PotentialTransformerKind& rop) -{ - std::string EnumSymbol; - lop >> EnumSymbol; - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "PotentialTransformerKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "_undef") - { - rop = IEC61970::Base::AuxiliaryEquipment::PotentialTransformerKind::_undef; - return lop; - } - - if(EnumSymbol == "inductive") - { - rop = IEC61970::Base::AuxiliaryEquipment::PotentialTransformerKind::inductive; - return lop; - } - - if(EnumSymbol == "capacitiveCoupling") - { - rop = IEC61970::Base::AuxiliaryEquipment::PotentialTransformerKind::capacitiveCoupling; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; -} - -std::istream& operator>>(std::istream& lop, IEC61970::Base::Core::BreakerConfiguration& rop) -{ - std::string EnumSymbol; - lop >> EnumSymbol; - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "BreakerConfiguration") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "_undef") - { - rop = IEC61970::Base::Core::BreakerConfiguration::_undef; - return lop; - } - - if(EnumSymbol == "singleBreaker") - { - rop = IEC61970::Base::Core::BreakerConfiguration::singleBreaker; - return lop; - } - - if(EnumSymbol == "breakerAndAHalf") - { - rop = IEC61970::Base::Core::BreakerConfiguration::breakerAndAHalf; - return lop; - } - - if(EnumSymbol == "doubleBreaker") - { - rop = IEC61970::Base::Core::BreakerConfiguration::doubleBreaker; - return lop; - } - - if(EnumSymbol == "noBreaker") - { - rop = IEC61970::Base::Core::BreakerConfiguration::noBreaker; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; -} - -std::istream& operator>>(std::istream& lop, IEC61970::Base::Core::BusbarConfiguration& rop) -{ - std::string EnumSymbol; - lop >> EnumSymbol; - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "BusbarConfiguration") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "_undef") - { - rop = IEC61970::Base::Core::BusbarConfiguration::_undef; - return lop; - } - - if(EnumSymbol == "singleBus") - { - rop = IEC61970::Base::Core::BusbarConfiguration::singleBus; - return lop; - } - - if(EnumSymbol == "doubleBus") - { - rop = IEC61970::Base::Core::BusbarConfiguration::doubleBus; - return lop; - } - - if(EnumSymbol == "mainWithTransfer") - { - rop = IEC61970::Base::Core::BusbarConfiguration::mainWithTransfer; - return lop; - } - - if(EnumSymbol == "ringBus") - { - rop = IEC61970::Base::Core::BusbarConfiguration::ringBus; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; -} - -std::istream& operator>>(std::istream& lop, IEC61970::Base::DC::DCConverterOperatingModeKind& rop) -{ - std::string EnumSymbol; - lop >> EnumSymbol; - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "DCConverterOperatingModeKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "_undef") - { - rop = IEC61970::Base::DC::DCConverterOperatingModeKind::_undef; - return lop; - } - - if(EnumSymbol == "bipolar") - { - rop = IEC61970::Base::DC::DCConverterOperatingModeKind::bipolar; - return lop; - } - - if(EnumSymbol == "monopolarMetallicReturn") - { - rop = IEC61970::Base::DC::DCConverterOperatingModeKind::monopolarMetallicReturn; - return lop; - } - - if(EnumSymbol == "monopolarGroundReturn") - { - rop = IEC61970::Base::DC::DCConverterOperatingModeKind::monopolarGroundReturn; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; -} - -std::istream& operator>>(std::istream& lop, IEC61970::Base::Core::CurveStyle& rop) -{ - std::string EnumSymbol; - lop >> EnumSymbol; - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "CurveStyle") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "_undef") - { - rop = IEC61970::Base::Core::CurveStyle::_undef; - return lop; - } - - if(EnumSymbol == "constantYValue") - { - rop = IEC61970::Base::Core::CurveStyle::constantYValue; - return lop; - } - - if(EnumSymbol == "straightLineYValues") - { - rop = IEC61970::Base::Core::CurveStyle::straightLineYValues; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; -} - -std::istream& operator>>(std::istream& lop, IEC61970::Base::DiagramLayout::OrientationKind& rop) -{ - std::string EnumSymbol; - lop >> EnumSymbol; - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "OrientationKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "_undef") - { - rop = IEC61970::Base::DiagramLayout::OrientationKind::_undef; - return lop; - } - - if(EnumSymbol == "positive") - { - rop = IEC61970::Base::DiagramLayout::OrientationKind::positive; - return lop; - } - - if(EnumSymbol == "negative") - { - rop = IEC61970::Base::DiagramLayout::OrientationKind::negative; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; -} - -std::istream& operator>>(std::istream& lop, IEC61970::Base::Wires::SVCControlMode& rop) -{ - std::string EnumSymbol; - lop >> EnumSymbol; - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "SVCControlMode") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "_undef") - { - rop = IEC61970::Base::Wires::SVCControlMode::_undef; - return lop; - } - - if(EnumSymbol == "reactivePower") - { - rop = IEC61970::Base::Wires::SVCControlMode::reactivePower; - return lop; - } - - if(EnumSymbol == "voltage") - { - rop = IEC61970::Base::Wires::SVCControlMode::voltage; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; -} - -std::istream& operator>>(std::istream& lop, IEC61970::Base::Wires::PetersenCoilModeKind& rop) -{ - std::string EnumSymbol; - lop >> EnumSymbol; - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "PetersenCoilModeKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "_undef") - { - rop = IEC61970::Base::Wires::PetersenCoilModeKind::_undef; - return lop; - } - - if(EnumSymbol == "fixed") - { - rop = IEC61970::Base::Wires::PetersenCoilModeKind::fixed; - return lop; - } - - if(EnumSymbol == "manual") - { - rop = IEC61970::Base::Wires::PetersenCoilModeKind::manual; - return lop; - } - - if(EnumSymbol == "automaticPositioning") - { - rop = IEC61970::Base::Wires::PetersenCoilModeKind::automaticPositioning; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; -} - -std::istream& operator>>(std::istream& lop, IEC61970::Base::Wires::WindingConnection& rop) -{ - std::string EnumSymbol; - lop >> EnumSymbol; - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "WindingConnection") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "_undef") - { - rop = IEC61970::Base::Wires::WindingConnection::_undef; - return lop; - } - - if(EnumSymbol == "D") - { - rop = IEC61970::Base::Wires::WindingConnection::D; - return lop; - } - - if(EnumSymbol == "Y") - { - rop = IEC61970::Base::Wires::WindingConnection::Y; - return lop; - } - - if(EnumSymbol == "Z") - { - rop = IEC61970::Base::Wires::WindingConnection::Z; - return lop; - } - - if(EnumSymbol == "Yn") - { - rop = IEC61970::Base::Wires::WindingConnection::Yn; - return lop; - } - - if(EnumSymbol == "Zn") - { - rop = IEC61970::Base::Wires::WindingConnection::Zn; - return lop; - } - - if(EnumSymbol == "A") - { - rop = IEC61970::Base::Wires::WindingConnection::A; - return lop; - } - - if(EnumSymbol == "I") - { - rop = IEC61970::Base::Wires::WindingConnection::I; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; -} - -std::istream& operator>>(std::istream& lop, IEC61970::Base::Wires::TransformerControlMode& rop) -{ - std::string EnumSymbol; - lop >> EnumSymbol; - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "TransformerControlMode") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "_undef") - { - rop = IEC61970::Base::Wires::TransformerControlMode::_undef; - return lop; - } - - if(EnumSymbol == "volt") - { - rop = IEC61970::Base::Wires::TransformerControlMode::volt; - return lop; - } - - if(EnumSymbol == "reactive") - { - rop = IEC61970::Base::Wires::TransformerControlMode::reactive; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; -} - -std::istream& operator>>(std::istream& lop, IEC61970::Base::Meas::Validity& rop) -{ - std::string EnumSymbol; - lop >> EnumSymbol; - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "Validity") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "_undef") - { - rop = IEC61970::Base::Meas::Validity::_undef; - return lop; - } - - if(EnumSymbol == "GOOD") - { - rop = IEC61970::Base::Meas::Validity::GOOD; - return lop; - } - - if(EnumSymbol == "QUESTIONABLE") - { - rop = IEC61970::Base::Meas::Validity::QUESTIONABLE; - return lop; - } - - if(EnumSymbol == "INVALID") - { - rop = IEC61970::Base::Meas::Validity::INVALID; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; -} - -std::istream& operator>>(std::istream& lop, IEC61970::Base::Generation::Production::FuelType& rop) -{ - std::string EnumSymbol; - lop >> EnumSymbol; - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "FuelType") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "_undef") - { - rop = IEC61970::Base::Generation::Production::FuelType::_undef; - return lop; - } - - if(EnumSymbol == "coal") - { - rop = IEC61970::Base::Generation::Production::FuelType::coal; - return lop; - } - - if(EnumSymbol == "oil") - { - rop = IEC61970::Base::Generation::Production::FuelType::oil; - return lop; - } - - if(EnumSymbol == "gas") - { - rop = IEC61970::Base::Generation::Production::FuelType::gas; - return lop; - } - - if(EnumSymbol == "lignite") - { - rop = IEC61970::Base::Generation::Production::FuelType::lignite; - return lop; - } - - if(EnumSymbol == "hardCoal") - { - rop = IEC61970::Base::Generation::Production::FuelType::hardCoal; - return lop; - } - - if(EnumSymbol == "oilShale") - { - rop = IEC61970::Base::Generation::Production::FuelType::oilShale; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; -} - -std::istream& operator>>(std::istream& lop, IEC61970::Base::Generation::Production::EmissionType& rop) -{ - std::string EnumSymbol; - lop >> EnumSymbol; - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "EmissionType") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "_undef") - { - rop = IEC61970::Base::Generation::Production::EmissionType::_undef; - return lop; - } - - if(EnumSymbol == "sulfurDioxide") - { - rop = IEC61970::Base::Generation::Production::EmissionType::sulfurDioxide; - return lop; - } - - if(EnumSymbol == "carbonDioxide") - { - rop = IEC61970::Base::Generation::Production::EmissionType::carbonDioxide; - return lop; - } - - if(EnumSymbol == "nitrogenOxide") - { - rop = IEC61970::Base::Generation::Production::EmissionType::nitrogenOxide; - return lop; - } - - if(EnumSymbol == "hydrogenSulfide") - { - rop = IEC61970::Base::Generation::Production::EmissionType::hydrogenSulfide; - return lop; - } - - if(EnumSymbol == "chlorine") - { - rop = IEC61970::Base::Generation::Production::EmissionType::chlorine; - return lop; - } - - if(EnumSymbol == "carbonDisulfide") - { - rop = IEC61970::Base::Generation::Production::EmissionType::carbonDisulfide; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; -} - -std::istream& operator>>(std::istream& lop, IEC61970::Base::Generation::Production::GeneratorControlMode& rop) -{ - std::string EnumSymbol; - lop >> EnumSymbol; - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "GeneratorControlMode") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "_undef") - { - rop = IEC61970::Base::Generation::Production::GeneratorControlMode::_undef; - return lop; - } - - if(EnumSymbol == "setpoint") - { - rop = IEC61970::Base::Generation::Production::GeneratorControlMode::setpoint; - return lop; - } - - if(EnumSymbol == "pulse") - { - rop = IEC61970::Base::Generation::Production::GeneratorControlMode::pulse; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; -} - -std::istream& operator>>(std::istream& lop, IEC61970::Base::Generation::Production::GeneratorControlSource& rop) -{ - std::string EnumSymbol; - lop >> EnumSymbol; - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "GeneratorControlSource") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "_undef") - { - rop = IEC61970::Base::Generation::Production::GeneratorControlSource::_undef; - return lop; - } - - if(EnumSymbol == "unavailable") - { - rop = IEC61970::Base::Generation::Production::GeneratorControlSource::unavailable; - return lop; - } - - if(EnumSymbol == "offAGC") - { - rop = IEC61970::Base::Generation::Production::GeneratorControlSource::offAGC; - return lop; - } - - if(EnumSymbol == "onAGC") - { - rop = IEC61970::Base::Generation::Production::GeneratorControlSource::onAGC; - return lop; - } - - if(EnumSymbol == "plantControl") - { - rop = IEC61970::Base::Generation::Production::GeneratorControlSource::plantControl; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; -} - -std::istream& operator>>(std::istream& lop, IEC61970::Base::Generation::Production::HydroPlantStorageKind& rop) -{ - std::string EnumSymbol; - lop >> EnumSymbol; - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "HydroPlantStorageKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "_undef") - { - rop = IEC61970::Base::Generation::Production::HydroPlantStorageKind::_undef; - return lop; - } - - if(EnumSymbol == "runOfRiver") - { - rop = IEC61970::Base::Generation::Production::HydroPlantStorageKind::runOfRiver; - return lop; - } - - if(EnumSymbol == "pumpedStorage") - { - rop = IEC61970::Base::Generation::Production::HydroPlantStorageKind::pumpedStorage; - return lop; - } - - if(EnumSymbol == "storage") - { - rop = IEC61970::Base::Generation::Production::HydroPlantStorageKind::storage; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; -} - -std::istream& operator>>(std::istream& lop, IEC61970::Base::Generation::Production::EmissionValueSource& rop) -{ - std::string EnumSymbol; - lop >> EnumSymbol; - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "EmissionValueSource") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "_undef") - { - rop = IEC61970::Base::Generation::Production::EmissionValueSource::_undef; - return lop; - } - - if(EnumSymbol == "measured") - { - rop = IEC61970::Base::Generation::Production::EmissionValueSource::measured; - return lop; - } - - if(EnumSymbol == "calculated") - { - rop = IEC61970::Base::Generation::Production::EmissionValueSource::calculated; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; -} - -std::istream& operator>>(std::istream& lop, IEC61970::Base::Generation::Production::HydroEnergyConversionKind& rop) -{ - std::string EnumSymbol; - lop >> EnumSymbol; - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "HydroEnergyConversionKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "_undef") - { - rop = IEC61970::Base::Generation::Production::HydroEnergyConversionKind::_undef; - return lop; - } - - if(EnumSymbol == "generator") - { - rop = IEC61970::Base::Generation::Production::HydroEnergyConversionKind::generator; - return lop; - } - - if(EnumSymbol == "pumpAndGenerator") - { - rop = IEC61970::Base::Generation::Production::HydroEnergyConversionKind::pumpAndGenerator; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; -} - -std::istream& operator>>(std::istream& lop, IEC61970::Base::Generation::Production::WindGenUnitKind& rop) -{ - std::string EnumSymbol; - lop >> EnumSymbol; - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "WindGenUnitKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "_undef") - { - rop = IEC61970::Base::Generation::Production::WindGenUnitKind::_undef; - return lop; - } - - if(EnumSymbol == "offshore") - { - rop = IEC61970::Base::Generation::Production::WindGenUnitKind::offshore; - return lop; - } - - if(EnumSymbol == "onshore") - { - rop = IEC61970::Base::Generation::Production::WindGenUnitKind::onshore; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; -} - -std::istream& operator>>(std::istream& lop, IEC61970::Base::Generation::GenerationTrainingSimulation::TurbineType& rop) -{ - std::string EnumSymbol; - lop >> EnumSymbol; - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "TurbineType") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "_undef") - { - rop = IEC61970::Base::Generation::GenerationTrainingSimulation::TurbineType::_undef; - return lop; - } - - if(EnumSymbol == "francis") - { - rop = IEC61970::Base::Generation::GenerationTrainingSimulation::TurbineType::francis; - return lop; - } - - if(EnumSymbol == "pelton") - { - rop = IEC61970::Base::Generation::GenerationTrainingSimulation::TurbineType::pelton; - return lop; - } - - if(EnumSymbol == "kaplan") - { - rop = IEC61970::Base::Generation::GenerationTrainingSimulation::TurbineType::kaplan; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; -} - -std::istream& operator>>(std::istream& lop, IEC61970::Base::Generation::GenerationTrainingSimulation::BoilerControlMode& rop) -{ - std::string EnumSymbol; - lop >> EnumSymbol; - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "BoilerControlMode") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "_undef") - { - rop = IEC61970::Base::Generation::GenerationTrainingSimulation::BoilerControlMode::_undef; - return lop; - } - - if(EnumSymbol == "following") - { - rop = IEC61970::Base::Generation::GenerationTrainingSimulation::BoilerControlMode::following; - return lop; - } - - if(EnumSymbol == "coordinated") - { - rop = IEC61970::Base::Generation::GenerationTrainingSimulation::BoilerControlMode::coordinated; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; -} - -std::istream& operator>>(std::istream& lop, IEC61970::Base::Contingency::ContingencyEquipmentStatusKind& rop) -{ - std::string EnumSymbol; - lop >> EnumSymbol; - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "ContingencyEquipmentStatusKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "_undef") - { - rop = IEC61970::Base::Contingency::ContingencyEquipmentStatusKind::_undef; - return lop; - } - - if(EnumSymbol == "inService") - { - rop = IEC61970::Base::Contingency::ContingencyEquipmentStatusKind::inService; - return lop; - } - - if(EnumSymbol == "outOfService") - { - rop = IEC61970::Base::Contingency::ContingencyEquipmentStatusKind::outOfService; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; -} - -std::istream& operator>>(std::istream& lop, IEC61970::Base::ControlArea::ControlAreaTypeKind& rop) -{ - std::string EnumSymbol; - lop >> EnumSymbol; - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "ControlAreaTypeKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "_undef") - { - rop = IEC61970::Base::ControlArea::ControlAreaTypeKind::_undef; - return lop; - } - - if(EnumSymbol == "AGC") - { - rop = IEC61970::Base::ControlArea::ControlAreaTypeKind::AGC; - return lop; - } - - if(EnumSymbol == "Forecast") - { - rop = IEC61970::Base::ControlArea::ControlAreaTypeKind::Forecast; - return lop; - } - - if(EnumSymbol == "Interchange") - { - rop = IEC61970::Base::ControlArea::ControlAreaTypeKind::Interchange; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; -} - -std::istream& operator>>(std::istream& lop, IEC61970::Base::DC::CsPpccControlKind& rop) -{ - std::string EnumSymbol; - lop >> EnumSymbol; - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "CsPpccControlKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "_undef") - { - rop = IEC61970::Base::DC::CsPpccControlKind::_undef; - return lop; - } - - if(EnumSymbol == "activePower") - { - rop = IEC61970::Base::DC::CsPpccControlKind::activePower; - return lop; - } - - if(EnumSymbol == "dcVoltage") - { - rop = IEC61970::Base::DC::CsPpccControlKind::dcVoltage; - return lop; - } - - if(EnumSymbol == "dcCurrent") - { - rop = IEC61970::Base::DC::CsPpccControlKind::dcCurrent; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; -} - -std::istream& operator>>(std::istream& lop, IEC61970::Base::DC::VsPpccControlKind& rop) -{ - std::string EnumSymbol; - lop >> EnumSymbol; - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "VsPpccControlKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "_undef") - { - rop = IEC61970::Base::DC::VsPpccControlKind::_undef; - return lop; - } - - if(EnumSymbol == "pPcc") - { - rop = IEC61970::Base::DC::VsPpccControlKind::pPcc; - return lop; - } - - if(EnumSymbol == "udc") - { - rop = IEC61970::Base::DC::VsPpccControlKind::udc; - return lop; - } - - if(EnumSymbol == "pPccAndUdcDroop") - { - rop = IEC61970::Base::DC::VsPpccControlKind::pPccAndUdcDroop; - return lop; - } - - if(EnumSymbol == "pPccAndUdcDroopWithCompensation") - { - rop = IEC61970::Base::DC::VsPpccControlKind::pPccAndUdcDroopWithCompensation; - return lop; - } - - if(EnumSymbol == "pPccAndUdcDroopPilot") - { - rop = IEC61970::Base::DC::VsPpccControlKind::pPccAndUdcDroopPilot; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; -} - -std::istream& operator>>(std::istream& lop, IEC61970::Base::DC::VsQpccControlKind& rop) -{ - std::string EnumSymbol; - lop >> EnumSymbol; - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "VsQpccControlKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "_undef") - { - rop = IEC61970::Base::DC::VsQpccControlKind::_undef; - return lop; - } - - if(EnumSymbol == "reactivePcc") - { - rop = IEC61970::Base::DC::VsQpccControlKind::reactivePcc; - return lop; - } - - if(EnumSymbol == "voltagePcc") - { - rop = IEC61970::Base::DC::VsQpccControlKind::voltagePcc; - return lop; - } - - if(EnumSymbol == "powerFactorPcc") - { - rop = IEC61970::Base::DC::VsQpccControlKind::powerFactorPcc; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; -} - -std::istream& operator>>(std::istream& lop, IEC61970::Base::DC::DCPolarityKind& rop) -{ - std::string EnumSymbol; - lop >> EnumSymbol; - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "DCPolarityKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "_undef") - { - rop = IEC61970::Base::DC::DCPolarityKind::_undef; - return lop; - } - - if(EnumSymbol == "positive") - { - rop = IEC61970::Base::DC::DCPolarityKind::positive; - return lop; - } - - if(EnumSymbol == "middle") - { - rop = IEC61970::Base::DC::DCPolarityKind::middle; - return lop; - } - - if(EnumSymbol == "negative") - { - rop = IEC61970::Base::DC::DCPolarityKind::negative; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; -} - -std::istream& operator>>(std::istream& lop, IEC61970::Base::DC::CsOperatingModeKind& rop) -{ - std::string EnumSymbol; - lop >> EnumSymbol; - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "CsOperatingModeKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "_undef") - { - rop = IEC61970::Base::DC::CsOperatingModeKind::_undef; - return lop; - } - - if(EnumSymbol == "inverter") - { - rop = IEC61970::Base::DC::CsOperatingModeKind::inverter; - return lop; - } - - if(EnumSymbol == "rectifier") - { - rop = IEC61970::Base::DC::CsOperatingModeKind::rectifier; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; -} - -std::istream& operator>>(std::istream& lop, IEC61970::Base::Faults::PhaseConnectedFaultKind& rop) -{ - std::string EnumSymbol; - lop >> EnumSymbol; - size_t pos = EnumSymbol.find_first_of('.'); - if(EnumSymbol.substr(0, pos) != "PhaseConnectedFaultKind") - { - lop.setstate(std::ios::failbit); - return lop; - } - - EnumSymbol = EnumSymbol.substr(pos + 1); - - if(EnumSymbol == "_undef") - { - rop = IEC61970::Base::Faults::PhaseConnectedFaultKind::_undef; - return lop; - } - - if(EnumSymbol == "lineToGround") - { - rop = IEC61970::Base::Faults::PhaseConnectedFaultKind::lineToGround; - return lop; - } - - if(EnumSymbol == "lineToLine") - { - rop = IEC61970::Base::Faults::PhaseConnectedFaultKind::lineToLine; - return lop; - } - - if(EnumSymbol == "lineToLineToGround") - { - rop = IEC61970::Base::Faults::PhaseConnectedFaultKind::lineToLineToGround; - return lop; - } - - lop.setstate(std::ios::failbit); - return lop; -} - - - -// cim:Frequency.multiplier -bool assign_Frequency_multiplier(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Domain::Frequency* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->multiplier; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ActivePower.multiplier -bool assign_ActivePower_multiplier(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Domain::ActivePower* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->multiplier; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Resistance.multiplier -bool assign_Resistance_multiplier(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Domain::Resistance* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->multiplier; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Reactance.multiplier -bool assign_Reactance_multiplier(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Domain::Reactance* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->multiplier; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ReactivePower.multiplier -bool assign_ReactivePower_multiplier(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Domain::ReactivePower* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->multiplier; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ApparentPower.multiplier -bool assign_ApparentPower_multiplier(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Domain::ApparentPower* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->multiplier; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Voltage.multiplier -bool assign_Voltage_multiplier(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Domain::Voltage* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->multiplier; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:RegularTimePoint.sequenceNumber -bool assign_RegularTimePoint_sequenceNumber(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Core::RegularTimePoint* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->sequenceNumber; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:RegularTimePoint.value1 -bool assign_RegularTimePoint_value1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Core::RegularTimePoint* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->value1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:RegularTimePoint.value2 -bool assign_RegularTimePoint_value2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Core::RegularTimePoint* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->value2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:IdentifiedObject.aliasName -bool assign_IdentifiedObject_aliasName(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Core::IdentifiedObject* element = dynamic_cast(base_class_ptr)) - { - element->aliasName = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:IdentifiedObject.description -bool assign_IdentifiedObject_description(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Core::IdentifiedObject* element = dynamic_cast(base_class_ptr)) - { - element->description = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:IdentifiedObject.mRID -bool assign_IdentifiedObject_mRID(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Core::IdentifiedObject* element = dynamic_cast(base_class_ptr)) - { - element->mRID = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:IdentifiedObject.name -bool assign_IdentifiedObject_name(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Core::IdentifiedObject* element = dynamic_cast(base_class_ptr)) - { - element->name = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:BasicIntervalSchedule.startTime -bool assign_BasicIntervalSchedule_startTime(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Core::BasicIntervalSchedule* element = dynamic_cast(base_class_ptr)) - { - element->startTime.value = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:BasicIntervalSchedule.value1Multiplier -bool assign_BasicIntervalSchedule_value1Multiplier(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Core::BasicIntervalSchedule* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->value1Multiplier; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:BasicIntervalSchedule.value1Unit -bool assign_BasicIntervalSchedule_value1Unit(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Core::BasicIntervalSchedule* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->value1Unit; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:BasicIntervalSchedule.value2Multiplier -bool assign_BasicIntervalSchedule_value2Multiplier(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Core::BasicIntervalSchedule* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->value2Multiplier; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:BasicIntervalSchedule.value2Unit -bool assign_BasicIntervalSchedule_value2Unit(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Core::BasicIntervalSchedule* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->value2Unit; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:RegularIntervalSchedule.endTime -bool assign_RegularIntervalSchedule_endTime(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Core::RegularIntervalSchedule* element = dynamic_cast(base_class_ptr)) - { - element->endTime.value = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:RegularIntervalSchedule.timeStep -bool assign_RegularIntervalSchedule_timeStep(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Core::RegularIntervalSchedule* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->timeStep.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Control.controlType -bool assign_Control_controlType(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Meas::Control* element = dynamic_cast(base_class_ptr)) - { - element->controlType = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Control.operationInProgress -bool assign_Control_operationInProgress(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Meas::Control* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->operationInProgress; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Control.timeStamp -bool assign_Control_timeStamp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Meas::Control* element = dynamic_cast(base_class_ptr)) - { - element->timeStamp.value = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Control.unitMultiplier -bool assign_Control_unitMultiplier(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Meas::Control* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->unitMultiplier; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Control.unitSymbol -bool assign_Control_unitSymbol(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Meas::Control* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->unitSymbol; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ACDCTerminal.connected -bool assign_ACDCTerminal_connected(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Core::ACDCTerminal* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->connected; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ACDCTerminal.sequenceNumber -bool assign_ACDCTerminal_sequenceNumber(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Core::ACDCTerminal* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->sequenceNumber; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Measurement.measurementType -bool assign_Measurement_measurementType(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Meas::Measurement* element = dynamic_cast(base_class_ptr)) - { - element->measurementType = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Measurement.phases -bool assign_Measurement_phases(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Meas::Measurement* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->phases; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Measurement.unitMultiplier -bool assign_Measurement_unitMultiplier(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Meas::Measurement* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->unitMultiplier; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Measurement.unitSymbol -bool assign_Measurement_unitSymbol(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Meas::Measurement* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->unitSymbol; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Equipment.aggregate -bool assign_Equipment_aggregate(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Core::Equipment* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->aggregate; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Equipment.inService -bool assign_Equipment_inService(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Core::Equipment* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->inService; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Equipment.normallyInService -bool assign_Equipment_normallyInService(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Core::Equipment* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->normallyInService; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:HydroPump.pumpDischAtMaxHead -bool assign_HydroPump_pumpDischAtMaxHead(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::HydroPump* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pumpDischAtMaxHead.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:HydroPump.pumpDischAtMinHead -bool assign_HydroPump_pumpDischAtMinHead(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::HydroPump* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pumpDischAtMinHead.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:HydroPump.pumpPowerAtMaxHead -bool assign_HydroPump_pumpPowerAtMaxHead(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::HydroPump* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pumpPowerAtMaxHead.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:HydroPump.pumpPowerAtMinHead -bool assign_HydroPump_pumpPowerAtMinHead(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::HydroPump* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pumpPowerAtMinHead.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:RegulatingControl.discrete -bool assign_RegulatingControl_discrete(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::RegulatingControl* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->discrete; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:RegulatingControl.enabled -bool assign_RegulatingControl_enabled(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::RegulatingControl* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->enabled; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:RegulatingControl.mode -bool assign_RegulatingControl_mode(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::RegulatingControl* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->mode; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:RegulatingControl.monitoredPhase -bool assign_RegulatingControl_monitoredPhase(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::RegulatingControl* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->monitoredPhase; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:RegulatingControl.targetDeadband -bool assign_RegulatingControl_targetDeadband(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::RegulatingControl* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->targetDeadband; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:RegulatingControl.targetValue -bool assign_RegulatingControl_targetValue(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::RegulatingControl* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->targetValue; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:RegulatingControl.targetValueUnitMultiplier -bool assign_RegulatingControl_targetValueUnitMultiplier(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::RegulatingControl* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->targetValueUnitMultiplier; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:RegulatingCondEq.controlEnabled -bool assign_RegulatingCondEq_controlEnabled(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::RegulatingCondEq* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->controlEnabled; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:RotatingMachine.p -bool assign_RotatingMachine_p(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::RotatingMachine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->p.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:RotatingMachine.q -bool assign_RotatingMachine_q(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::RotatingMachine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->q.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:RotatingMachine.ratedPowerFactor -bool assign_RotatingMachine_ratedPowerFactor(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::RotatingMachine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ratedPowerFactor; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:RotatingMachine.ratedS -bool assign_RotatingMachine_ratedS(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::RotatingMachine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ratedS.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:RotatingMachine.ratedU -bool assign_RotatingMachine_ratedU(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::RotatingMachine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ratedU.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:AsynchronousMachine.asynchronousMachineType -bool assign_AsynchronousMachine_asynchronousMachineType(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::AsynchronousMachine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->asynchronousMachineType; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:AsynchronousMachine.converterFedDrive -bool assign_AsynchronousMachine_converterFedDrive(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::AsynchronousMachine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->converterFedDrive; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:AsynchronousMachine.efficiency -bool assign_AsynchronousMachine_efficiency(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::AsynchronousMachine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->efficiency.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:AsynchronousMachine.iaIrRatio -bool assign_AsynchronousMachine_iaIrRatio(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::AsynchronousMachine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->iaIrRatio; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:AsynchronousMachine.nominalFrequency -bool assign_AsynchronousMachine_nominalFrequency(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::AsynchronousMachine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->nominalFrequency.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:AsynchronousMachine.nominalSpeed -bool assign_AsynchronousMachine_nominalSpeed(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::AsynchronousMachine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->nominalSpeed.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:AsynchronousMachine.polePairNumber -bool assign_AsynchronousMachine_polePairNumber(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::AsynchronousMachine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->polePairNumber; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:AsynchronousMachine.ratedMechanicalPower -bool assign_AsynchronousMachine_ratedMechanicalPower(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::AsynchronousMachine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ratedMechanicalPower.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:AsynchronousMachine.reversible -bool assign_AsynchronousMachine_reversible(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::AsynchronousMachine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->reversible; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:AsynchronousMachine.rr1 -bool assign_AsynchronousMachine_rr1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::AsynchronousMachine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->rr1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:AsynchronousMachine.rr2 -bool assign_AsynchronousMachine_rr2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::AsynchronousMachine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->rr2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:AsynchronousMachine.rxLockedRotorRatio -bool assign_AsynchronousMachine_rxLockedRotorRatio(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::AsynchronousMachine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->rxLockedRotorRatio; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:AsynchronousMachine.tpo -bool assign_AsynchronousMachine_tpo(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::AsynchronousMachine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tpo.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:AsynchronousMachine.tppo -bool assign_AsynchronousMachine_tppo(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::AsynchronousMachine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tppo.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:AsynchronousMachine.xlr1 -bool assign_AsynchronousMachine_xlr1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::AsynchronousMachine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->xlr1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:AsynchronousMachine.xlr2 -bool assign_AsynchronousMachine_xlr2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::AsynchronousMachine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->xlr2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:AsynchronousMachine.xm -bool assign_AsynchronousMachine_xm(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::AsynchronousMachine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->xm.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:AsynchronousMachine.xp -bool assign_AsynchronousMachine_xp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::AsynchronousMachine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->xp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:AsynchronousMachine.xpp -bool assign_AsynchronousMachine_xpp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::AsynchronousMachine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->xpp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:AsynchronousMachine.xs -bool assign_AsynchronousMachine_xs(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::AsynchronousMachine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->xs.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:DynamicsFunctionBlock.enabled -bool assign_DynamicsFunctionBlock_enabled(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::DynamicsFunctionBlock* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->enabled; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:RotatingMachineDynamics.damping -bool assign_RotatingMachineDynamics_damping(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::RotatingMachineDynamics* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->damping; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:RotatingMachineDynamics.inertia -bool assign_RotatingMachineDynamics_inertia(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::RotatingMachineDynamics* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->inertia.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:RotatingMachineDynamics.saturationFactor -bool assign_RotatingMachineDynamics_saturationFactor(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::RotatingMachineDynamics* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->saturationFactor; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:RotatingMachineDynamics.saturationFactor120 -bool assign_RotatingMachineDynamics_saturationFactor120(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::RotatingMachineDynamics* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->saturationFactor120; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:RotatingMachineDynamics.statorLeakageReactance -bool assign_RotatingMachineDynamics_statorLeakageReactance(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::RotatingMachineDynamics* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->statorLeakageReactance.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:RotatingMachineDynamics.statorResistance -bool assign_RotatingMachineDynamics_statorResistance(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::RotatingMachineDynamics* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->statorResistance.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TurbineGovernorUserDefined.proprietary -bool assign_TurbineGovernorUserDefined_proprietary(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::UserDefinedModels::TurbineGovernorUserDefined* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->proprietary; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:CurrentFlow.multiplier -bool assign_CurrentFlow_multiplier(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Domain::CurrentFlow* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->multiplier; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchronousMachine.aVRToManualLag -bool assign_SynchronousMachine_aVRToManualLag(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::SynchronousMachine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->aVRToManualLag.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchronousMachine.aVRToManualLead -bool assign_SynchronousMachine_aVRToManualLead(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::SynchronousMachine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->aVRToManualLead.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchronousMachine.baseQ -bool assign_SynchronousMachine_baseQ(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::SynchronousMachine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->baseQ.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchronousMachine.condenserP -bool assign_SynchronousMachine_condenserP(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::SynchronousMachine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->condenserP.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchronousMachine.coolantCondition -bool assign_SynchronousMachine_coolantCondition(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::SynchronousMachine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->coolantCondition; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchronousMachine.coolantType -bool assign_SynchronousMachine_coolantType(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::SynchronousMachine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->coolantType; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchronousMachine.earthing -bool assign_SynchronousMachine_earthing(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::SynchronousMachine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->earthing; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchronousMachine.earthingStarPointR -bool assign_SynchronousMachine_earthingStarPointR(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::SynchronousMachine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->earthingStarPointR.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchronousMachine.earthingStarPointX -bool assign_SynchronousMachine_earthingStarPointX(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::SynchronousMachine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->earthingStarPointX.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchronousMachine.ikk -bool assign_SynchronousMachine_ikk(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::SynchronousMachine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ikk.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchronousMachine.manualToAVR -bool assign_SynchronousMachine_manualToAVR(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::SynchronousMachine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->manualToAVR.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchronousMachine.maxQ -bool assign_SynchronousMachine_maxQ(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::SynchronousMachine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->maxQ.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchronousMachine.maxU -bool assign_SynchronousMachine_maxU(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::SynchronousMachine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->maxU.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchronousMachine.minQ -bool assign_SynchronousMachine_minQ(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::SynchronousMachine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->minQ.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchronousMachine.minU -bool assign_SynchronousMachine_minU(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::SynchronousMachine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->minU.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchronousMachine.mu -bool assign_SynchronousMachine_mu(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::SynchronousMachine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->mu; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchronousMachine.operatingMode -bool assign_SynchronousMachine_operatingMode(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::SynchronousMachine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->operatingMode; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchronousMachine.qPercent -bool assign_SynchronousMachine_qPercent(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::SynchronousMachine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->qPercent.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchronousMachine.r -bool assign_SynchronousMachine_r(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::SynchronousMachine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->r.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchronousMachine.r0 -bool assign_SynchronousMachine_r0(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::SynchronousMachine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->r0.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchronousMachine.r2 -bool assign_SynchronousMachine_r2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::SynchronousMachine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->r2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchronousMachine.referencePriority -bool assign_SynchronousMachine_referencePriority(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::SynchronousMachine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->referencePriority; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchronousMachine.satDirectSubtransX -bool assign_SynchronousMachine_satDirectSubtransX(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::SynchronousMachine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->satDirectSubtransX.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchronousMachine.satDirectSyncX -bool assign_SynchronousMachine_satDirectSyncX(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::SynchronousMachine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->satDirectSyncX.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchronousMachine.satDirectTransX -bool assign_SynchronousMachine_satDirectTransX(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::SynchronousMachine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->satDirectTransX.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchronousMachine.shortCircuitRotorType -bool assign_SynchronousMachine_shortCircuitRotorType(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::SynchronousMachine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->shortCircuitRotorType; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchronousMachine.type -bool assign_SynchronousMachine_type(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::SynchronousMachine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->type; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchronousMachine.voltageRegulationRange -bool assign_SynchronousMachine_voltageRegulationRange(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::SynchronousMachine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->voltageRegulationRange.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchronousMachine.x0 -bool assign_SynchronousMachine_x0(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::SynchronousMachine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->x0.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchronousMachine.x2 -bool assign_SynchronousMachine_x2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::SynchronousMachine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->x2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Terminal.phases -bool assign_Terminal_phases(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Core::Terminal* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->phases; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:RemoteInputSignal.remoteSignalType -bool assign_RemoteInputSignal_remoteSignalType(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardInterconnections::RemoteInputSignal* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->remoteSignalType; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:VoltageAdjusterUserDefined.proprietary -bool assign_VoltageAdjusterUserDefined_proprietary(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::UserDefinedModels::VoltageAdjusterUserDefined* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->proprietary; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:AsynchronousMachineUserDefined.proprietary -bool assign_AsynchronousMachineUserDefined_proprietary(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::UserDefinedModels::AsynchronousMachineUserDefined* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->proprietary; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcitationLimiterUserDefined.proprietary -bool assign_UnderexcitationLimiterUserDefined_proprietary(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::UserDefinedModels::UnderexcitationLimiterUserDefined* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->proprietary; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:VoltageCompensatorUserDefined.proprietary -bool assign_VoltageCompensatorUserDefined_proprietary(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::UserDefinedModels::VoltageCompensatorUserDefined* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->proprietary; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PFVArControllerType1UserDefined.proprietary -bool assign_PFVArControllerType1UserDefined_proprietary(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::UserDefinedModels::PFVArControllerType1UserDefined* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->proprietary; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:OverexcitationLimiterUserDefined.proprietary -bool assign_OverexcitationLimiterUserDefined_proprietary(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::UserDefinedModels::OverexcitationLimiterUserDefined* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->proprietary; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PowerSystemStabilizerUserDefined.proprietary -bool assign_PowerSystemStabilizerUserDefined_proprietary(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::UserDefinedModels::PowerSystemStabilizerUserDefined* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->proprietary; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:DiscontinuousExcitationControlUserDefined.proprietary -bool assign_DiscontinuousExcitationControlUserDefined_proprietary(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::UserDefinedModels::DiscontinuousExcitationControlUserDefined* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->proprietary; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PFVArControllerType2UserDefined.proprietary -bool assign_PFVArControllerType2UserDefined_proprietary(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::UserDefinedModels::PFVArControllerType2UserDefined* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->proprietary; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:MechanicalLoadUserDefined.proprietary -bool assign_MechanicalLoadUserDefined_proprietary(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::UserDefinedModels::MechanicalLoadUserDefined* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->proprietary; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchronousMachineUserDefined.proprietary -bool assign_SynchronousMachineUserDefined_proprietary(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::UserDefinedModels::SynchronousMachineUserDefined* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->proprietary; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LoadResponseCharacteristic.exponentModel -bool assign_LoadResponseCharacteristic_exponentModel(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::LoadModel::LoadResponseCharacteristic* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->exponentModel; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LoadResponseCharacteristic.pConstantCurrent -bool assign_LoadResponseCharacteristic_pConstantCurrent(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::LoadModel::LoadResponseCharacteristic* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pConstantCurrent; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LoadResponseCharacteristic.pConstantImpedance -bool assign_LoadResponseCharacteristic_pConstantImpedance(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::LoadModel::LoadResponseCharacteristic* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pConstantImpedance; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LoadResponseCharacteristic.pConstantPower -bool assign_LoadResponseCharacteristic_pConstantPower(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::LoadModel::LoadResponseCharacteristic* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pConstantPower; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LoadResponseCharacteristic.pFrequencyExponent -bool assign_LoadResponseCharacteristic_pFrequencyExponent(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::LoadModel::LoadResponseCharacteristic* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pFrequencyExponent; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LoadResponseCharacteristic.pVoltageExponent -bool assign_LoadResponseCharacteristic_pVoltageExponent(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::LoadModel::LoadResponseCharacteristic* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pVoltageExponent; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LoadResponseCharacteristic.qConstantCurrent -bool assign_LoadResponseCharacteristic_qConstantCurrent(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::LoadModel::LoadResponseCharacteristic* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->qConstantCurrent; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LoadResponseCharacteristic.qConstantImpedance -bool assign_LoadResponseCharacteristic_qConstantImpedance(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::LoadModel::LoadResponseCharacteristic* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->qConstantImpedance; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LoadResponseCharacteristic.qConstantPower -bool assign_LoadResponseCharacteristic_qConstantPower(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::LoadModel::LoadResponseCharacteristic* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->qConstantPower; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LoadResponseCharacteristic.qFrequencyExponent -bool assign_LoadResponseCharacteristic_qFrequencyExponent(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::LoadModel::LoadResponseCharacteristic* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->qFrequencyExponent; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LoadResponseCharacteristic.qVoltageExponent -bool assign_LoadResponseCharacteristic_qVoltageExponent(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::LoadModel::LoadResponseCharacteristic* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->qVoltageExponent; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EnergyConsumerPhase.pfixed -bool assign_EnergyConsumerPhase_pfixed(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::EnergyConsumerPhase* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pfixed.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EnergyConsumerPhase.pfixedPct -bool assign_EnergyConsumerPhase_pfixedPct(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::EnergyConsumerPhase* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pfixedPct.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EnergyConsumerPhase.phase -bool assign_EnergyConsumerPhase_phase(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::EnergyConsumerPhase* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->phase; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EnergyConsumerPhase.qfixed -bool assign_EnergyConsumerPhase_qfixed(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::EnergyConsumerPhase* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->qfixed.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EnergyConsumerPhase.qfixedPct -bool assign_EnergyConsumerPhase_qfixedPct(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::EnergyConsumerPhase* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->qfixedPct.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EnergyConsumer.customerCount -bool assign_EnergyConsumer_customerCount(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::EnergyConsumer* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->customerCount; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EnergyConsumer.grounded -bool assign_EnergyConsumer_grounded(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::EnergyConsumer* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->grounded; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EnergyConsumer.p -bool assign_EnergyConsumer_p(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::EnergyConsumer* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->p.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EnergyConsumer.pfixed -bool assign_EnergyConsumer_pfixed(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::EnergyConsumer* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pfixed.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EnergyConsumer.pfixedPct -bool assign_EnergyConsumer_pfixedPct(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::EnergyConsumer* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pfixedPct.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EnergyConsumer.phaseConnection -bool assign_EnergyConsumer_phaseConnection(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::EnergyConsumer* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->phaseConnection; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EnergyConsumer.q -bool assign_EnergyConsumer_q(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::EnergyConsumer* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->q.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EnergyConsumer.qfixed -bool assign_EnergyConsumer_qfixed(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::EnergyConsumer* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->qfixed.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EnergyConsumer.qfixedPct -bool assign_EnergyConsumer_qfixedPct(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::EnergyConsumer* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->qfixedPct.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LoadUserDefined.proprietary -bool assign_LoadUserDefined_proprietary(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::UserDefinedModels::LoadUserDefined* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->proprietary; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TurbineLoadControllerUserDefined.proprietary -bool assign_TurbineLoadControllerUserDefined_proprietary(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::UserDefinedModels::TurbineLoadControllerUserDefined* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->proprietary; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcitationSystemUserDefined.proprietary -bool assign_ExcitationSystemUserDefined_proprietary(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::UserDefinedModels::ExcitationSystemUserDefined* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->proprietary; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ProprietaryParameterDynamics.booleanParameterValue -bool assign_ProprietaryParameterDynamics_booleanParameterValue(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::UserDefinedModels::ProprietaryParameterDynamics* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->booleanParameterValue; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ProprietaryParameterDynamics.floatParameterValue -bool assign_ProprietaryParameterDynamics_floatParameterValue(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::UserDefinedModels::ProprietaryParameterDynamics* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->floatParameterValue; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ProprietaryParameterDynamics.integerParameterValue -bool assign_ProprietaryParameterDynamics_integerParameterValue(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::UserDefinedModels::ProprietaryParameterDynamics* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->integerParameterValue; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ProprietaryParameterDynamics.parameterNumber -bool assign_ProprietaryParameterDynamics_parameterNumber(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::UserDefinedModels::ProprietaryParameterDynamics* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->parameterNumber; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:NonRotatingEnergy.maxP -bool assign_NonRotatingEnergy_maxP(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::NonRotatingEnergy* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->maxP.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:NonRotatingEnergy.maxQ -bool assign_NonRotatingEnergy_maxQ(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::NonRotatingEnergy* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->maxQ.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:NonRotatingEnergy.minP -bool assign_NonRotatingEnergy_minP(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::NonRotatingEnergy* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->minP.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:NonRotatingEnergy.minQ -bool assign_NonRotatingEnergy_minQ(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::NonRotatingEnergy* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->minQ.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:NonRotatingEnergy.p -bool assign_NonRotatingEnergy_p(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::NonRotatingEnergy* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->p.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:NonRotatingEnergy.q -bool assign_NonRotatingEnergy_q(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::NonRotatingEnergy* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->q.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:NonRotatingEnergy.r -bool assign_NonRotatingEnergy_r(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::NonRotatingEnergy* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->r.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:NonRotatingEnergy.r0 -bool assign_NonRotatingEnergy_r0(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::NonRotatingEnergy* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->r0.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:NonRotatingEnergy.rn -bool assign_NonRotatingEnergy_rn(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::NonRotatingEnergy* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->rn.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:NonRotatingEnergy.x -bool assign_NonRotatingEnergy_x(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::NonRotatingEnergy* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->x.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:NonRotatingEnergy.x0 -bool assign_NonRotatingEnergy_x0(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::NonRotatingEnergy* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->x0.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:NonRotatingEnergy.xn -bool assign_NonRotatingEnergy_xn(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::NonRotatingEnergy* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->xn.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindPlantUserDefined.proprietary -bool assign_WindPlantUserDefined_proprietary(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::UserDefinedModels::WindPlantUserDefined* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->proprietary; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindType3or4UserDefined.proprietary -bool assign_WindType3or4UserDefined_proprietary(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::UserDefinedModels::WindType3or4UserDefined* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->proprietary; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindType1or2UserDefined.proprietary -bool assign_WindType1or2UserDefined_proprietary(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::UserDefinedModels::WindType1or2UserDefined* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->proprietary; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContRotorRIEC.kirr -bool assign_WindContRotorRIEC_kirr(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContRotorRIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kirr.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContRotorRIEC.komegafilt -bool assign_WindContRotorRIEC_komegafilt(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContRotorRIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->komegafilt; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContRotorRIEC.kpfilt -bool assign_WindContRotorRIEC_kpfilt(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContRotorRIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kpfilt; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContRotorRIEC.kprr -bool assign_WindContRotorRIEC_kprr(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContRotorRIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kprr.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContRotorRIEC.rmax -bool assign_WindContRotorRIEC_rmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContRotorRIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->rmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContRotorRIEC.rmin -bool assign_WindContRotorRIEC_rmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContRotorRIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->rmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContRotorRIEC.tomegafilt -bool assign_WindContRotorRIEC_tomegafilt(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContRotorRIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tomegafilt.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContRotorRIEC.tpfilt -bool assign_WindContRotorRIEC_tpfilt(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContRotorRIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tpfilt.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContCurrLimIEC.imax -bool assign_WindContCurrLimIEC_imax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContCurrLimIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->imax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContCurrLimIEC.imaxdip -bool assign_WindContCurrLimIEC_imaxdip(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContCurrLimIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->imaxdip.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContCurrLimIEC.mdfslim -bool assign_WindContCurrLimIEC_mdfslim(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContCurrLimIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->mdfslim; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContCurrLimIEC.mqpri -bool assign_WindContCurrLimIEC_mqpri(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContCurrLimIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->mqpri; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContCurrLimIEC.tufilt -bool assign_WindContCurrLimIEC_tufilt(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContCurrLimIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tufilt.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindPlantReactiveControlIEC.kiwpx -bool assign_WindPlantReactiveControlIEC_kiwpx(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindPlantReactiveControlIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kiwpx; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindPlantReactiveControlIEC.kpwpx -bool assign_WindPlantReactiveControlIEC_kpwpx(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindPlantReactiveControlIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kpwpx; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindPlantReactiveControlIEC.kwpqu -bool assign_WindPlantReactiveControlIEC_kwpqu(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindPlantReactiveControlIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kwpqu.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindPlantReactiveControlIEC.mwppf -bool assign_WindPlantReactiveControlIEC_mwppf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindPlantReactiveControlIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->mwppf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindPlantReactiveControlIEC.mwpu -bool assign_WindPlantReactiveControlIEC_mwpu(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindPlantReactiveControlIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->mwpu; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindPlantReactiveControlIEC.twppfilt -bool assign_WindPlantReactiveControlIEC_twppfilt(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindPlantReactiveControlIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->twppfilt.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindPlantReactiveControlIEC.twpqfilt -bool assign_WindPlantReactiveControlIEC_twpqfilt(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindPlantReactiveControlIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->twpqfilt.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindPlantReactiveControlIEC.twpufilt -bool assign_WindPlantReactiveControlIEC_twpufilt(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindPlantReactiveControlIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->twpufilt.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindPlantReactiveControlIEC.txft -bool assign_WindPlantReactiveControlIEC_txft(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindPlantReactiveControlIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->txft.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindPlantReactiveControlIEC.txfv -bool assign_WindPlantReactiveControlIEC_txfv(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindPlantReactiveControlIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->txfv.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindPlantReactiveControlIEC.uwpqdip -bool assign_WindPlantReactiveControlIEC_uwpqdip(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindPlantReactiveControlIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->uwpqdip.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindPlantReactiveControlIEC.xrefmax -bool assign_WindPlantReactiveControlIEC_xrefmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindPlantReactiveControlIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->xrefmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindPlantReactiveControlIEC.xrefmin -bool assign_WindPlantReactiveControlIEC_xrefmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindPlantReactiveControlIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->xrefmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindPlantFreqPcontrolIEC.dprefmax -bool assign_WindPlantFreqPcontrolIEC_dprefmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindPlantFreqPcontrolIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->dprefmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindPlantFreqPcontrolIEC.dprefmin -bool assign_WindPlantFreqPcontrolIEC_dprefmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindPlantFreqPcontrolIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->dprefmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindPlantFreqPcontrolIEC.kiwpp -bool assign_WindPlantFreqPcontrolIEC_kiwpp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindPlantFreqPcontrolIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kiwpp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindPlantFreqPcontrolIEC.kpwpp -bool assign_WindPlantFreqPcontrolIEC_kpwpp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindPlantFreqPcontrolIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kpwpp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindPlantFreqPcontrolIEC.prefmax -bool assign_WindPlantFreqPcontrolIEC_prefmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindPlantFreqPcontrolIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->prefmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindPlantFreqPcontrolIEC.prefmin -bool assign_WindPlantFreqPcontrolIEC_prefmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindPlantFreqPcontrolIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->prefmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindPlantFreqPcontrolIEC.tpft -bool assign_WindPlantFreqPcontrolIEC_tpft(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindPlantFreqPcontrolIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tpft.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindPlantFreqPcontrolIEC.tpfv -bool assign_WindPlantFreqPcontrolIEC_tpfv(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindPlantFreqPcontrolIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tpfv.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindPlantFreqPcontrolIEC.twpffilt -bool assign_WindPlantFreqPcontrolIEC_twpffilt(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindPlantFreqPcontrolIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->twpffilt.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindPlantFreqPcontrolIEC.twppfilt -bool assign_WindPlantFreqPcontrolIEC_twppfilt(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindPlantFreqPcontrolIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->twppfilt.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindGenTurbineType3IEC.dipmax -bool assign_WindGenTurbineType3IEC_dipmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindGenTurbineType3IEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->dipmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindGenTurbineType3IEC.diqmax -bool assign_WindGenTurbineType3IEC_diqmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindGenTurbineType3IEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->diqmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContPType3IEC.dpmax -bool assign_WindContPType3IEC_dpmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContPType3IEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->dpmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContPType3IEC.dtrisemaxlvrt -bool assign_WindContPType3IEC_dtrisemaxlvrt(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContPType3IEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->dtrisemaxlvrt.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContPType3IEC.kdtd -bool assign_WindContPType3IEC_kdtd(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContPType3IEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kdtd.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContPType3IEC.kip -bool assign_WindContPType3IEC_kip(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContPType3IEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kip.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContPType3IEC.kpp -bool assign_WindContPType3IEC_kpp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContPType3IEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kpp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContPType3IEC.mplvrt -bool assign_WindContPType3IEC_mplvrt(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContPType3IEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->mplvrt; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContPType3IEC.omegaoffset -bool assign_WindContPType3IEC_omegaoffset(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContPType3IEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->omegaoffset.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContPType3IEC.pdtdmax -bool assign_WindContPType3IEC_pdtdmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContPType3IEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pdtdmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContPType3IEC.rramp -bool assign_WindContPType3IEC_rramp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContPType3IEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->rramp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContPType3IEC.tdvs -bool assign_WindContPType3IEC_tdvs(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContPType3IEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tdvs.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContPType3IEC.temin -bool assign_WindContPType3IEC_temin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContPType3IEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->temin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContPType3IEC.tomegafilt -bool assign_WindContPType3IEC_tomegafilt(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContPType3IEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tomegafilt.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContPType3IEC.tpfilt -bool assign_WindContPType3IEC_tpfilt(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContPType3IEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tpfilt.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContPType3IEC.tpord -bool assign_WindContPType3IEC_tpord(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContPType3IEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tpord.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContPType3IEC.tufilt -bool assign_WindContPType3IEC_tufilt(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContPType3IEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tufilt.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContPType3IEC.tuscale -bool assign_WindContPType3IEC_tuscale(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContPType3IEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tuscale.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContPType3IEC.twref -bool assign_WindContPType3IEC_twref(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContPType3IEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->twref.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContPType3IEC.udvs -bool assign_WindContPType3IEC_udvs(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContPType3IEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->udvs.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContPType3IEC.updip -bool assign_WindContPType3IEC_updip(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContPType3IEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->updip.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContPType3IEC.wdtd -bool assign_WindContPType3IEC_wdtd(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContPType3IEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->wdtd.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContPType3IEC.zeta -bool assign_WindContPType3IEC_zeta(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContPType3IEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->zeta; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindDynamicsLookupTable.input -bool assign_WindDynamicsLookupTable_input(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindDynamicsLookupTable* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->input; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindDynamicsLookupTable.lookupTableFunctionType -bool assign_WindDynamicsLookupTable_lookupTableFunctionType(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindDynamicsLookupTable* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->lookupTableFunctionType; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindDynamicsLookupTable.output -bool assign_WindDynamicsLookupTable_output(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindDynamicsLookupTable* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->output; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindDynamicsLookupTable.sequence -bool assign_WindDynamicsLookupTable_sequence(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindDynamicsLookupTable* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->sequence; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindAeroLinearIEC.dpomega -bool assign_WindAeroLinearIEC_dpomega(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindAeroLinearIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->dpomega.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindAeroLinearIEC.dptheta -bool assign_WindAeroLinearIEC_dptheta(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindAeroLinearIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->dptheta.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindAeroLinearIEC.omegazero -bool assign_WindAeroLinearIEC_omegazero(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindAeroLinearIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->omegazero.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindAeroLinearIEC.pavail -bool assign_WindAeroLinearIEC_pavail(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindAeroLinearIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pavail.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindAeroLinearIEC.thetazero -bool assign_WindAeroLinearIEC_thetazero(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindAeroLinearIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->thetazero.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindGenType4IEC.dipmax -bool assign_WindGenType4IEC_dipmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindGenType4IEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->dipmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindGenType4IEC.diqmax -bool assign_WindGenType4IEC_diqmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindGenType4IEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->diqmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindGenType4IEC.diqmin -bool assign_WindGenType4IEC_diqmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindGenType4IEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->diqmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindGenType4IEC.tg -bool assign_WindGenType4IEC_tg(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindGenType4IEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tg.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContPType4aIEC.dpmax -bool assign_WindContPType4aIEC_dpmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContPType4aIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->dpmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContPType4aIEC.tpord -bool assign_WindContPType4aIEC_tpord(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContPType4aIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tpord.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContPType4aIEC.tufilt -bool assign_WindContPType4aIEC_tufilt(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContPType4aIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tufilt.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindMechIEC.cdrt -bool assign_WindMechIEC_cdrt(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindMechIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->cdrt.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindMechIEC.hgen -bool assign_WindMechIEC_hgen(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindMechIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->hgen.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindMechIEC.hwtr -bool assign_WindMechIEC_hwtr(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindMechIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->hwtr.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindMechIEC.kdrt -bool assign_WindMechIEC_kdrt(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindMechIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kdrt.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindGenTurbineType3bIEC.fducw -bool assign_WindGenTurbineType3bIEC_fducw(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindGenTurbineType3bIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->fducw; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindGenTurbineType3bIEC.mwtcwp -bool assign_WindGenTurbineType3bIEC_mwtcwp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindGenTurbineType3bIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->mwtcwp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindGenTurbineType3bIEC.tg -bool assign_WindGenTurbineType3bIEC_tg(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindGenTurbineType3bIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tg.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindGenTurbineType3bIEC.two -bool assign_WindGenTurbineType3bIEC_two(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindGenTurbineType3bIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->two.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindGenTurbineType3bIEC.xs -bool assign_WindGenTurbineType3bIEC_xs(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindGenTurbineType3bIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->xs.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindGenTurbineType3aIEC.kpc -bool assign_WindGenTurbineType3aIEC_kpc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindGenTurbineType3aIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kpc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindGenTurbineType3aIEC.tic -bool assign_WindGenTurbineType3aIEC_tic(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindGenTurbineType3aIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tic.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindGenTurbineType3aIEC.xs -bool assign_WindGenTurbineType3aIEC_xs(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindGenTurbineType3aIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->xs.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindPitchContEmulIEC.kdroop -bool assign_WindPitchContEmulIEC_kdroop(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindPitchContEmulIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kdroop; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindPitchContEmulIEC.kipce -bool assign_WindPitchContEmulIEC_kipce(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindPitchContEmulIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kipce; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindPitchContEmulIEC.komegaaero -bool assign_WindPitchContEmulIEC_komegaaero(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindPitchContEmulIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->komegaaero.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindPitchContEmulIEC.kppce -bool assign_WindPitchContEmulIEC_kppce(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindPitchContEmulIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kppce; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindPitchContEmulIEC.omegaref -bool assign_WindPitchContEmulIEC_omegaref(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindPitchContEmulIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->omegaref.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindPitchContEmulIEC.pimax -bool assign_WindPitchContEmulIEC_pimax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindPitchContEmulIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pimax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindPitchContEmulIEC.pimin -bool assign_WindPitchContEmulIEC_pimin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindPitchContEmulIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pimin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindPitchContEmulIEC.t1 -bool assign_WindPitchContEmulIEC_t1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindPitchContEmulIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindPitchContEmulIEC.t2 -bool assign_WindPitchContEmulIEC_t2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindPitchContEmulIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindPitchContEmulIEC.tpe -bool assign_WindPitchContEmulIEC_tpe(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindPitchContEmulIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tpe.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContPitchAngleIEC.dthetamax -bool assign_WindContPitchAngleIEC_dthetamax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContPitchAngleIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->dthetamax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContPitchAngleIEC.dthetamin -bool assign_WindContPitchAngleIEC_dthetamin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContPitchAngleIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->dthetamin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContPitchAngleIEC.kic -bool assign_WindContPitchAngleIEC_kic(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContPitchAngleIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kic.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContPitchAngleIEC.kiomega -bool assign_WindContPitchAngleIEC_kiomega(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContPitchAngleIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kiomega.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContPitchAngleIEC.kpc -bool assign_WindContPitchAngleIEC_kpc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContPitchAngleIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kpc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContPitchAngleIEC.kpomega -bool assign_WindContPitchAngleIEC_kpomega(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContPitchAngleIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kpomega.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContPitchAngleIEC.kpx -bool assign_WindContPitchAngleIEC_kpx(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContPitchAngleIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kpx.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContPitchAngleIEC.thetamax -bool assign_WindContPitchAngleIEC_thetamax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContPitchAngleIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->thetamax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContPitchAngleIEC.thetamin -bool assign_WindContPitchAngleIEC_thetamin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContPitchAngleIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->thetamin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContPitchAngleIEC.ttheta -bool assign_WindContPitchAngleIEC_ttheta(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContPitchAngleIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ttheta.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContQIEC.iqh1 -bool assign_WindContQIEC_iqh1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContQIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->iqh1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContQIEC.iqmax -bool assign_WindContQIEC_iqmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContQIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->iqmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContQIEC.iqmin -bool assign_WindContQIEC_iqmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContQIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->iqmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContQIEC.iqpost -bool assign_WindContQIEC_iqpost(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContQIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->iqpost.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContQIEC.kiq -bool assign_WindContQIEC_kiq(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContQIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kiq.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContQIEC.kiu -bool assign_WindContQIEC_kiu(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContQIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kiu.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContQIEC.kpq -bool assign_WindContQIEC_kpq(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContQIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kpq.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContQIEC.kpu -bool assign_WindContQIEC_kpu(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContQIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kpu.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContQIEC.kqv -bool assign_WindContQIEC_kqv(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContQIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kqv.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContQIEC.qmax -bool assign_WindContQIEC_qmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContQIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->qmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContQIEC.qmin -bool assign_WindContQIEC_qmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContQIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->qmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContQIEC.rdroop -bool assign_WindContQIEC_rdroop(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContQIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->rdroop.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContQIEC.tiq -bool assign_WindContQIEC_tiq(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContQIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tiq.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContQIEC.tpfilt -bool assign_WindContQIEC_tpfilt(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContQIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tpfilt.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContQIEC.tpost -bool assign_WindContQIEC_tpost(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContQIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tpost.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContQIEC.tqord -bool assign_WindContQIEC_tqord(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContQIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tqord.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContQIEC.tufilt -bool assign_WindContQIEC_tufilt(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContQIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tufilt.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContQIEC.udb1 -bool assign_WindContQIEC_udb1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContQIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->udb1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContQIEC.udb2 -bool assign_WindContQIEC_udb2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContQIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->udb2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContQIEC.umax -bool assign_WindContQIEC_umax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContQIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->umax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContQIEC.umin -bool assign_WindContQIEC_umin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContQIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->umin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContQIEC.uqdip -bool assign_WindContQIEC_uqdip(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContQIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->uqdip.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContQIEC.uref0 -bool assign_WindContQIEC_uref0(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContQIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->uref0.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContQIEC.windLVRTQcontrolModesType -bool assign_WindContQIEC_windLVRTQcontrolModesType(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContQIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->windLVRTQcontrolModesType; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContQIEC.windQcontrolModesType -bool assign_WindContQIEC_windQcontrolModesType(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContQIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->windQcontrolModesType; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContQIEC.xdroop -bool assign_WindContQIEC_xdroop(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContQIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->xdroop.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContPType4bIEC.dpmax -bool assign_WindContPType4bIEC_dpmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContPType4bIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->dpmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContPType4bIEC.tpaero -bool assign_WindContPType4bIEC_tpaero(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContPType4bIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tpaero.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContPType4bIEC.tpord -bool assign_WindContPType4bIEC_tpord(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContPType4bIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tpord.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindContPType4bIEC.tufilt -bool assign_WindContPType4bIEC_tufilt(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindContPType4bIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tufilt.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindProtectionIEC.fover -bool assign_WindProtectionIEC_fover(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindProtectionIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->fover.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindProtectionIEC.funder -bool assign_WindProtectionIEC_funder(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindProtectionIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->funder.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindProtectionIEC.tfover -bool assign_WindProtectionIEC_tfover(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindProtectionIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tfover.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindProtectionIEC.tfunder -bool assign_WindProtectionIEC_tfunder(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindProtectionIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tfunder.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindProtectionIEC.tuover -bool assign_WindProtectionIEC_tuover(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindProtectionIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tuover.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindProtectionIEC.tuunder -bool assign_WindProtectionIEC_tuunder(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindProtectionIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tuunder.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindProtectionIEC.uover -bool assign_WindProtectionIEC_uover(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindProtectionIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->uover.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindProtectionIEC.uunder -bool assign_WindProtectionIEC_uunder(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::WindDynamics::WindProtectionIEC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->uunder.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss1A.a1 -bool assign_Pss1A_a1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->a1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss1A.a2 -bool assign_Pss1A_a2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->a2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss1A.a3 -bool assign_Pss1A_a3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->a3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss1A.a4 -bool assign_Pss1A_a4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->a4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss1A.a5 -bool assign_Pss1A_a5(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->a5.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss1A.a6 -bool assign_Pss1A_a6(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->a6.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss1A.a7 -bool assign_Pss1A_a7(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->a7.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss1A.a8 -bool assign_Pss1A_a8(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->a8.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss1A.inputSignalType -bool assign_Pss1A_inputSignalType(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->inputSignalType; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss1A.kd -bool assign_Pss1A_kd(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kd; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss1A.ks -bool assign_Pss1A_ks(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ks.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss1A.t1 -bool assign_Pss1A_t1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss1A.t2 -bool assign_Pss1A_t2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss1A.t3 -bool assign_Pss1A_t3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss1A.t4 -bool assign_Pss1A_t4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss1A.t5 -bool assign_Pss1A_t5(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t5.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss1A.t6 -bool assign_Pss1A_t6(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t6.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss1A.tdelay -bool assign_Pss1A_tdelay(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tdelay.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss1A.vcl -bool assign_Pss1A_vcl(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vcl.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss1A.vcu -bool assign_Pss1A_vcu(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vcu.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss1A.vrmax -bool assign_Pss1A_vrmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss1A.vrmin -bool assign_Pss1A_vrmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssSK.k1 -bool assign_PssSK_k1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssSK* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssSK.k2 -bool assign_PssSK_k2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssSK* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssSK.k3 -bool assign_PssSK_k3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssSK* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssSK.t1 -bool assign_PssSK_t1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssSK* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssSK.t2 -bool assign_PssSK_t2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssSK* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssSK.t3 -bool assign_PssSK_t3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssSK* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssSK.t4 -bool assign_PssSK_t4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssSK* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssSK.t5 -bool assign_PssSK_t5(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssSK* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t5.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssSK.t6 -bool assign_PssSK_t6(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssSK* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t6.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssSK.vsmax -bool assign_PssSK_vsmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssSK* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vsmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssSK.vsmin -bool assign_PssSK_vsmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssSK* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vsmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssPTIST3.a0 -bool assign_PssPTIST3_a0(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssPTIST3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->a0.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssPTIST3.a1 -bool assign_PssPTIST3_a1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssPTIST3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->a1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssPTIST3.a2 -bool assign_PssPTIST3_a2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssPTIST3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->a2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssPTIST3.a3 -bool assign_PssPTIST3_a3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssPTIST3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->a3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssPTIST3.a4 -bool assign_PssPTIST3_a4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssPTIST3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->a4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssPTIST3.a5 -bool assign_PssPTIST3_a5(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssPTIST3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->a5.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssPTIST3.al -bool assign_PssPTIST3_al(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssPTIST3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->al.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssPTIST3.athres -bool assign_PssPTIST3_athres(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssPTIST3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->athres.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssPTIST3.b0 -bool assign_PssPTIST3_b0(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssPTIST3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->b0.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssPTIST3.b1 -bool assign_PssPTIST3_b1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssPTIST3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->b1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssPTIST3.b2 -bool assign_PssPTIST3_b2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssPTIST3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->b2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssPTIST3.b3 -bool assign_PssPTIST3_b3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssPTIST3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->b3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssPTIST3.b4 -bool assign_PssPTIST3_b4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssPTIST3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->b4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssPTIST3.b5 -bool assign_PssPTIST3_b5(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssPTIST3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->b5.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssPTIST3.dl -bool assign_PssPTIST3_dl(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssPTIST3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->dl.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssPTIST3.dtc -bool assign_PssPTIST3_dtc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssPTIST3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->dtc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssPTIST3.dtf -bool assign_PssPTIST3_dtf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssPTIST3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->dtf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssPTIST3.dtp -bool assign_PssPTIST3_dtp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssPTIST3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->dtp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssPTIST3.isw -bool assign_PssPTIST3_isw(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssPTIST3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->isw; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssPTIST3.k -bool assign_PssPTIST3_k(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssPTIST3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssPTIST3.lthres -bool assign_PssPTIST3_lthres(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssPTIST3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->lthres.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssPTIST3.m -bool assign_PssPTIST3_m(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssPTIST3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->m.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssPTIST3.nav -bool assign_PssPTIST3_nav(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssPTIST3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->nav; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssPTIST3.ncl -bool assign_PssPTIST3_ncl(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssPTIST3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ncl; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssPTIST3.ncr -bool assign_PssPTIST3_ncr(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssPTIST3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ncr; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssPTIST3.pmin -bool assign_PssPTIST3_pmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssPTIST3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssPTIST3.t1 -bool assign_PssPTIST3_t1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssPTIST3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssPTIST3.t2 -bool assign_PssPTIST3_t2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssPTIST3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssPTIST3.t3 -bool assign_PssPTIST3_t3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssPTIST3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssPTIST3.t4 -bool assign_PssPTIST3_t4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssPTIST3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssPTIST3.t5 -bool assign_PssPTIST3_t5(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssPTIST3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t5.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssPTIST3.t6 -bool assign_PssPTIST3_t6(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssPTIST3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t6.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssPTIST3.tf -bool assign_PssPTIST3_tf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssPTIST3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssPTIST3.tp -bool assign_PssPTIST3_tp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssPTIST3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.bwh1 -bool assign_PssIEEE4B_bwh1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->bwh1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.bwh2 -bool assign_PssIEEE4B_bwh2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->bwh2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.bwl1 -bool assign_PssIEEE4B_bwl1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->bwl1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.bwl2 -bool assign_PssIEEE4B_bwl2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->bwl2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.kh -bool assign_PssIEEE4B_kh(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kh.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.kh1 -bool assign_PssIEEE4B_kh1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kh1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.kh11 -bool assign_PssIEEE4B_kh11(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kh11.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.kh17 -bool assign_PssIEEE4B_kh17(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kh17.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.kh2 -bool assign_PssIEEE4B_kh2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kh2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.ki -bool assign_PssIEEE4B_ki(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ki.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.ki1 -bool assign_PssIEEE4B_ki1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ki1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.ki11 -bool assign_PssIEEE4B_ki11(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ki11.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.ki17 -bool assign_PssIEEE4B_ki17(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ki17.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.ki2 -bool assign_PssIEEE4B_ki2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ki2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.kl -bool assign_PssIEEE4B_kl(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kl.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.kl1 -bool assign_PssIEEE4B_kl1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kl1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.kl11 -bool assign_PssIEEE4B_kl11(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kl11.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.kl17 -bool assign_PssIEEE4B_kl17(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kl17.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.kl2 -bool assign_PssIEEE4B_kl2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kl2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.omeganh1 -bool assign_PssIEEE4B_omeganh1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->omeganh1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.omeganh2 -bool assign_PssIEEE4B_omeganh2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->omeganh2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.omeganl1 -bool assign_PssIEEE4B_omeganl1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->omeganl1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.omeganl2 -bool assign_PssIEEE4B_omeganl2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->omeganl2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.th1 -bool assign_PssIEEE4B_th1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->th1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.th10 -bool assign_PssIEEE4B_th10(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->th10.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.th11 -bool assign_PssIEEE4B_th11(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->th11.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.th12 -bool assign_PssIEEE4B_th12(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->th12.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.th2 -bool assign_PssIEEE4B_th2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->th2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.th3 -bool assign_PssIEEE4B_th3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->th3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.th4 -bool assign_PssIEEE4B_th4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->th4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.th5 -bool assign_PssIEEE4B_th5(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->th5.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.th6 -bool assign_PssIEEE4B_th6(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->th6.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.th7 -bool assign_PssIEEE4B_th7(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->th7.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.th8 -bool assign_PssIEEE4B_th8(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->th8.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.th9 -bool assign_PssIEEE4B_th9(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->th9.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.ti1 -bool assign_PssIEEE4B_ti1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ti1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.ti10 -bool assign_PssIEEE4B_ti10(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ti10.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.ti11 -bool assign_PssIEEE4B_ti11(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ti11.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.ti12 -bool assign_PssIEEE4B_ti12(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ti12.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.ti2 -bool assign_PssIEEE4B_ti2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ti2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.ti3 -bool assign_PssIEEE4B_ti3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ti3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.ti4 -bool assign_PssIEEE4B_ti4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ti4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.ti5 -bool assign_PssIEEE4B_ti5(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ti5.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.ti6 -bool assign_PssIEEE4B_ti6(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ti6.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.ti7 -bool assign_PssIEEE4B_ti7(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ti7.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.ti8 -bool assign_PssIEEE4B_ti8(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ti8.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.ti9 -bool assign_PssIEEE4B_ti9(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ti9.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.tl1 -bool assign_PssIEEE4B_tl1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tl1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.tl10 -bool assign_PssIEEE4B_tl10(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tl10.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.tl11 -bool assign_PssIEEE4B_tl11(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tl11.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.tl12 -bool assign_PssIEEE4B_tl12(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tl12.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.tl2 -bool assign_PssIEEE4B_tl2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tl2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.tl3 -bool assign_PssIEEE4B_tl3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tl3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.tl4 -bool assign_PssIEEE4B_tl4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tl4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.tl5 -bool assign_PssIEEE4B_tl5(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tl5.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.tl6 -bool assign_PssIEEE4B_tl6(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tl6.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.tl7 -bool assign_PssIEEE4B_tl7(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tl7.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.tl8 -bool assign_PssIEEE4B_tl8(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tl8.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.tl9 -bool assign_PssIEEE4B_tl9(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tl9.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.vhmax -bool assign_PssIEEE4B_vhmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vhmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.vhmin -bool assign_PssIEEE4B_vhmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vhmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.vimax -bool assign_PssIEEE4B_vimax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vimax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.vimin -bool assign_PssIEEE4B_vimin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vimin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.vlmax -bool assign_PssIEEE4B_vlmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vlmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.vlmin -bool assign_PssIEEE4B_vlmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vlmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.vstmax -bool assign_PssIEEE4B_vstmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vstmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE4B.vstmin -bool assign_PssIEEE4B_vstmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vstmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssPTIST1.dtc -bool assign_PssPTIST1_dtc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssPTIST1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->dtc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssPTIST1.dtf -bool assign_PssPTIST1_dtf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssPTIST1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->dtf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssPTIST1.dtp -bool assign_PssPTIST1_dtp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssPTIST1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->dtp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssPTIST1.k -bool assign_PssPTIST1_k(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssPTIST1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssPTIST1.m -bool assign_PssPTIST1_m(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssPTIST1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->m.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssPTIST1.t1 -bool assign_PssPTIST1_t1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssPTIST1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssPTIST1.t2 -bool assign_PssPTIST1_t2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssPTIST1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssPTIST1.t3 -bool assign_PssPTIST1_t3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssPTIST1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssPTIST1.t4 -bool assign_PssPTIST1_t4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssPTIST1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssPTIST1.tf -bool assign_PssPTIST1_tf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssPTIST1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssPTIST1.tp -bool assign_PssPTIST1_tp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssPTIST1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss2B.a -bool assign_Pss2B_a(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss2B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->a; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss2B.inputSignal1Type -bool assign_Pss2B_inputSignal1Type(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss2B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->inputSignal1Type; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss2B.inputSignal2Type -bool assign_Pss2B_inputSignal2Type(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss2B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->inputSignal2Type; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss2B.ks1 -bool assign_Pss2B_ks1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss2B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ks1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss2B.ks2 -bool assign_Pss2B_ks2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss2B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ks2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss2B.ks3 -bool assign_Pss2B_ks3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss2B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ks3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss2B.ks4 -bool assign_Pss2B_ks4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss2B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ks4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss2B.m -bool assign_Pss2B_m(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss2B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->m; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss2B.n -bool assign_Pss2B_n(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss2B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->n; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss2B.t1 -bool assign_Pss2B_t1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss2B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss2B.t10 -bool assign_Pss2B_t10(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss2B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t10.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss2B.t11 -bool assign_Pss2B_t11(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss2B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t11.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss2B.t2 -bool assign_Pss2B_t2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss2B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss2B.t3 -bool assign_Pss2B_t3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss2B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss2B.t4 -bool assign_Pss2B_t4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss2B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss2B.t6 -bool assign_Pss2B_t6(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss2B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t6.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss2B.t7 -bool assign_Pss2B_t7(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss2B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t7.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss2B.t8 -bool assign_Pss2B_t8(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss2B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t8.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss2B.t9 -bool assign_Pss2B_t9(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss2B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t9.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss2B.ta -bool assign_Pss2B_ta(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss2B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ta.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss2B.tb -bool assign_Pss2B_tb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss2B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss2B.tw1 -bool assign_Pss2B_tw1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss2B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tw1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss2B.tw2 -bool assign_Pss2B_tw2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss2B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tw2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss2B.tw3 -bool assign_Pss2B_tw3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss2B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tw3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss2B.tw4 -bool assign_Pss2B_tw4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss2B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tw4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss2B.vsi1max -bool assign_Pss2B_vsi1max(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss2B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vsi1max.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss2B.vsi1min -bool assign_Pss2B_vsi1min(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss2B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vsi1min.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss2B.vsi2max -bool assign_Pss2B_vsi2max(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss2B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vsi2max.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss2B.vsi2min -bool assign_Pss2B_vsi2min(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss2B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vsi2min.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss2B.vstmax -bool assign_Pss2B_vstmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss2B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vstmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss2B.vstmin -bool assign_Pss2B_vstmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss2B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vstmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE3B.a1 -bool assign_PssIEEE3B_a1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE3B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->a1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE3B.a2 -bool assign_PssIEEE3B_a2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE3B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->a2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE3B.a3 -bool assign_PssIEEE3B_a3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE3B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->a3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE3B.a4 -bool assign_PssIEEE3B_a4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE3B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->a4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE3B.a5 -bool assign_PssIEEE3B_a5(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE3B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->a5.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE3B.a6 -bool assign_PssIEEE3B_a6(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE3B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->a6.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE3B.a7 -bool assign_PssIEEE3B_a7(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE3B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->a7.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE3B.a8 -bool assign_PssIEEE3B_a8(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE3B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->a8.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE3B.inputSignal1Type -bool assign_PssIEEE3B_inputSignal1Type(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE3B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->inputSignal1Type; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE3B.inputSignal2Type -bool assign_PssIEEE3B_inputSignal2Type(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE3B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->inputSignal2Type; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE3B.ks1 -bool assign_PssIEEE3B_ks1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE3B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ks1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE3B.ks2 -bool assign_PssIEEE3B_ks2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE3B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ks2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE3B.t1 -bool assign_PssIEEE3B_t1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE3B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE3B.t2 -bool assign_PssIEEE3B_t2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE3B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE3B.tw1 -bool assign_PssIEEE3B_tw1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE3B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tw1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE3B.tw2 -bool assign_PssIEEE3B_tw2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE3B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tw2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE3B.tw3 -bool assign_PssIEEE3B_tw3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE3B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tw3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE3B.vstmax -bool assign_PssIEEE3B_vstmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE3B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vstmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE3B.vstmin -bool assign_PssIEEE3B_vstmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE3B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vstmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss2ST.inputSignal1Type -bool assign_Pss2ST_inputSignal1Type(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss2ST* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->inputSignal1Type; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss2ST.inputSignal2Type -bool assign_Pss2ST_inputSignal2Type(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss2ST* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->inputSignal2Type; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss2ST.k1 -bool assign_Pss2ST_k1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss2ST* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss2ST.k2 -bool assign_Pss2ST_k2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss2ST* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss2ST.lsmax -bool assign_Pss2ST_lsmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss2ST* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->lsmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss2ST.lsmin -bool assign_Pss2ST_lsmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss2ST* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->lsmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss2ST.t1 -bool assign_Pss2ST_t1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss2ST* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss2ST.t10 -bool assign_Pss2ST_t10(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss2ST* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t10.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss2ST.t2 -bool assign_Pss2ST_t2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss2ST* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss2ST.t3 -bool assign_Pss2ST_t3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss2ST* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss2ST.t4 -bool assign_Pss2ST_t4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss2ST* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss2ST.t5 -bool assign_Pss2ST_t5(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss2ST* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t5.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss2ST.t6 -bool assign_Pss2ST_t6(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss2ST* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t6.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss2ST.t7 -bool assign_Pss2ST_t7(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss2ST* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t7.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss2ST.t8 -bool assign_Pss2ST_t8(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss2ST* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t8.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss2ST.t9 -bool assign_Pss2ST_t9(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss2ST* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t9.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss2ST.vcl -bool assign_Pss2ST_vcl(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss2ST* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vcl.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss2ST.vcu -bool assign_Pss2ST_vcu(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss2ST* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vcu.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssWECC.inputSignal1Type -bool assign_PssWECC_inputSignal1Type(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssWECC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->inputSignal1Type; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssWECC.inputSignal2Type -bool assign_PssWECC_inputSignal2Type(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssWECC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->inputSignal2Type; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssWECC.k1 -bool assign_PssWECC_k1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssWECC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssWECC.k2 -bool assign_PssWECC_k2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssWECC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssWECC.t1 -bool assign_PssWECC_t1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssWECC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssWECC.t10 -bool assign_PssWECC_t10(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssWECC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t10.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssWECC.t2 -bool assign_PssWECC_t2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssWECC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssWECC.t3 -bool assign_PssWECC_t3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssWECC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssWECC.t4 -bool assign_PssWECC_t4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssWECC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssWECC.t5 -bool assign_PssWECC_t5(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssWECC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t5.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssWECC.t6 -bool assign_PssWECC_t6(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssWECC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t6.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssWECC.t7 -bool assign_PssWECC_t7(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssWECC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t7.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssWECC.t8 -bool assign_PssWECC_t8(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssWECC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t8.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssWECC.t9 -bool assign_PssWECC_t9(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssWECC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t9.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssWECC.vcl -bool assign_PssWECC_vcl(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssWECC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vcl.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssWECC.vcu -bool assign_PssWECC_vcu(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssWECC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vcu.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssWECC.vsmax -bool assign_PssWECC_vsmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssWECC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vsmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssWECC.vsmin -bool assign_PssWECC_vsmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssWECC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vsmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssELIN2.apss -bool assign_PssELIN2_apss(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssELIN2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->apss.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssELIN2.ks1 -bool assign_PssELIN2_ks1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssELIN2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ks1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssELIN2.ks2 -bool assign_PssELIN2_ks2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssELIN2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ks2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssELIN2.ppss -bool assign_PssELIN2_ppss(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssELIN2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ppss.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssELIN2.psslim -bool assign_PssELIN2_psslim(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssELIN2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->psslim.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssELIN2.ts1 -bool assign_PssELIN2_ts1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssELIN2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ts1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssELIN2.ts2 -bool assign_PssELIN2_ts2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssELIN2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ts2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssELIN2.ts3 -bool assign_PssELIN2_ts3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssELIN2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ts3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssELIN2.ts4 -bool assign_PssELIN2_ts4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssELIN2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ts4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssELIN2.ts5 -bool assign_PssELIN2_ts5(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssELIN2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ts5.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssELIN2.ts6 -bool assign_PssELIN2_ts6(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssELIN2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ts6.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss1.kf -bool assign_Pss1_kf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss1.kpe -bool assign_Pss1_kpe(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kpe; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss1.ks -bool assign_Pss1_ks(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ks; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss1.kw -bool assign_Pss1_kw(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kw; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss1.pmin -bool assign_Pss1_pmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss1.t10 -bool assign_Pss1_t10(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t10.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss1.t5 -bool assign_Pss1_t5(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t5.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss1.t6 -bool assign_Pss1_t6(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t6.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss1.t7 -bool assign_Pss1_t7(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t7.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss1.t8 -bool assign_Pss1_t8(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t8.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss1.t9 -bool assign_Pss1_t9(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t9.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss1.tpe -bool assign_Pss1_tpe(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tpe.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss1.vadat -bool assign_Pss1_vadat(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vadat; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss1.vsmn -bool assign_Pss1_vsmn(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vsmn.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss1.vsmx -bool assign_Pss1_vsmx(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vsmx.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE2B.inputSignal1Type -bool assign_PssIEEE2B_inputSignal1Type(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE2B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->inputSignal1Type; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE2B.inputSignal2Type -bool assign_PssIEEE2B_inputSignal2Type(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE2B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->inputSignal2Type; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE2B.ks1 -bool assign_PssIEEE2B_ks1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE2B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ks1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE2B.ks2 -bool assign_PssIEEE2B_ks2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE2B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ks2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE2B.ks3 -bool assign_PssIEEE2B_ks3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE2B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ks3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE2B.m -bool assign_PssIEEE2B_m(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE2B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->m; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE2B.n -bool assign_PssIEEE2B_n(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE2B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->n; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE2B.t1 -bool assign_PssIEEE2B_t1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE2B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE2B.t10 -bool assign_PssIEEE2B_t10(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE2B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t10.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE2B.t11 -bool assign_PssIEEE2B_t11(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE2B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t11.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE2B.t2 -bool assign_PssIEEE2B_t2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE2B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE2B.t3 -bool assign_PssIEEE2B_t3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE2B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE2B.t4 -bool assign_PssIEEE2B_t4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE2B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE2B.t6 -bool assign_PssIEEE2B_t6(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE2B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t6.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE2B.t7 -bool assign_PssIEEE2B_t7(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE2B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t7.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE2B.t8 -bool assign_PssIEEE2B_t8(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE2B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t8.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE2B.t9 -bool assign_PssIEEE2B_t9(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE2B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t9.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE2B.tw1 -bool assign_PssIEEE2B_tw1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE2B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tw1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE2B.tw2 -bool assign_PssIEEE2B_tw2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE2B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tw2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE2B.tw3 -bool assign_PssIEEE2B_tw3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE2B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tw3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE2B.tw4 -bool assign_PssIEEE2B_tw4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE2B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tw4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE2B.vsi1max -bool assign_PssIEEE2B_vsi1max(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE2B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vsi1max.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE2B.vsi1min -bool assign_PssIEEE2B_vsi1min(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE2B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vsi1min.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE2B.vsi2max -bool assign_PssIEEE2B_vsi2max(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE2B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vsi2max.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE2B.vsi2min -bool assign_PssIEEE2B_vsi2min(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE2B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vsi2min.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE2B.vstmax -bool assign_PssIEEE2B_vstmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE2B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vstmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE2B.vstmin -bool assign_PssIEEE2B_vstmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE2B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vstmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss5.ctw2 -bool assign_Pss5_ctw2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss5* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ctw2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss5.deadband -bool assign_Pss5_deadband(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss5* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->deadband.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss5.isfreq -bool assign_Pss5_isfreq(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss5* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->isfreq; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss5.kf -bool assign_Pss5_kf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss5* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss5.kpe -bool assign_Pss5_kpe(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss5* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kpe; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss5.kpss -bool assign_Pss5_kpss(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss5* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kpss; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss5.pmm -bool assign_Pss5_pmm(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss5* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pmm.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss5.tl1 -bool assign_Pss5_tl1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss5* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tl1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss5.tl2 -bool assign_Pss5_tl2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss5* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tl2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss5.tl3 -bool assign_Pss5_tl3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss5* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tl3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss5.tl4 -bool assign_Pss5_tl4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss5* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tl4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss5.tpe -bool assign_Pss5_tpe(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss5* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tpe.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss5.tw1 -bool assign_Pss5_tw1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss5* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tw1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss5.tw2 -bool assign_Pss5_tw2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss5* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tw2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss5.vadat -bool assign_Pss5_vadat(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss5* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vadat; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss5.vsmn -bool assign_Pss5_vsmn(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss5* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vsmn.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pss5.vsmx -bool assign_Pss5_vsmx(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::Pss5* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vsmx.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssSB4.kx -bool assign_PssSB4_kx(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssSB4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kx.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssSB4.ta -bool assign_PssSB4_ta(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssSB4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ta.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssSB4.tb -bool assign_PssSB4_tb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssSB4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssSB4.tc -bool assign_PssSB4_tc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssSB4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssSB4.td -bool assign_PssSB4_td(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssSB4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->td.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssSB4.te -bool assign_PssSB4_te(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssSB4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->te.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssSB4.tt -bool assign_PssSB4_tt(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssSB4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tt.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssSB4.tx1 -bool assign_PssSB4_tx1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssSB4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tx1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssSB4.tx2 -bool assign_PssSB4_tx2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssSB4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tx2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssSB4.vsmax -bool assign_PssSB4_vsmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssSB4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vsmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssSB4.vsmin -bool assign_PssSB4_vsmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssSB4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vsmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssSH.k -bool assign_PssSH_k(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssSH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssSH.k0 -bool assign_PssSH_k0(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssSH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k0.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssSH.k1 -bool assign_PssSH_k1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssSH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssSH.k2 -bool assign_PssSH_k2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssSH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssSH.k3 -bool assign_PssSH_k3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssSH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssSH.k4 -bool assign_PssSH_k4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssSH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssSH.t1 -bool assign_PssSH_t1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssSH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssSH.t2 -bool assign_PssSH_t2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssSH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssSH.t3 -bool assign_PssSH_t3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssSH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssSH.t4 -bool assign_PssSH_t4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssSH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssSH.td -bool assign_PssSH_td(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssSH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->td.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssSH.vsmax -bool assign_PssSH_vsmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssSH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vsmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssSH.vsmin -bool assign_PssSH_vsmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssSH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vsmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE1A.a1 -bool assign_PssIEEE1A_a1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->a1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE1A.a2 -bool assign_PssIEEE1A_a2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->a2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE1A.inputSignalType -bool assign_PssIEEE1A_inputSignalType(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->inputSignalType; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE1A.ks -bool assign_PssIEEE1A_ks(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ks.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE1A.t1 -bool assign_PssIEEE1A_t1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE1A.t2 -bool assign_PssIEEE1A_t2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE1A.t3 -bool assign_PssIEEE1A_t3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE1A.t4 -bool assign_PssIEEE1A_t4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE1A.t5 -bool assign_PssIEEE1A_t5(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t5.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE1A.t6 -bool assign_PssIEEE1A_t6(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t6.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE1A.vrmax -bool assign_PssIEEE1A_vrmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PssIEEE1A.vrmin -bool assign_PssIEEE1A_vrmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PowerSystemStabilizerDynamics::PssIEEE1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcREXS.e1 -bool assign_ExcREXS_e1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcREXS* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->e1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcREXS.e2 -bool assign_ExcREXS_e2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcREXS* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->e2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcREXS.fbf -bool assign_ExcREXS_fbf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcREXS* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->fbf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcREXS.flimf -bool assign_ExcREXS_flimf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcREXS* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->flimf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcREXS.kc -bool assign_ExcREXS_kc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcREXS* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcREXS.kd -bool assign_ExcREXS_kd(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcREXS* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kd.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcREXS.ke -bool assign_ExcREXS_ke(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcREXS* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ke.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcREXS.kefd -bool assign_ExcREXS_kefd(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcREXS* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kefd.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcREXS.kf -bool assign_ExcREXS_kf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcREXS* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcREXS.kh -bool assign_ExcREXS_kh(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcREXS* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kh.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcREXS.kii -bool assign_ExcREXS_kii(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcREXS* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kii.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcREXS.kip -bool assign_ExcREXS_kip(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcREXS* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kip.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcREXS.ks -bool assign_ExcREXS_ks(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcREXS* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ks.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcREXS.kvi -bool assign_ExcREXS_kvi(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcREXS* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kvi.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcREXS.kvp -bool assign_ExcREXS_kvp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcREXS* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kvp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcREXS.kvphz -bool assign_ExcREXS_kvphz(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcREXS* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kvphz.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcREXS.nvphz -bool assign_ExcREXS_nvphz(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcREXS* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->nvphz.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcREXS.se1 -bool assign_ExcREXS_se1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcREXS* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->se1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcREXS.se2 -bool assign_ExcREXS_se2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcREXS* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->se2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcREXS.ta -bool assign_ExcREXS_ta(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcREXS* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ta.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcREXS.tb1 -bool assign_ExcREXS_tb1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcREXS* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tb1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcREXS.tb2 -bool assign_ExcREXS_tb2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcREXS* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tb2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcREXS.tc1 -bool assign_ExcREXS_tc1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcREXS* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tc1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcREXS.tc2 -bool assign_ExcREXS_tc2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcREXS* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tc2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcREXS.te -bool assign_ExcREXS_te(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcREXS* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->te.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcREXS.tf -bool assign_ExcREXS_tf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcREXS* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcREXS.tf1 -bool assign_ExcREXS_tf1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcREXS* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tf1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcREXS.tf2 -bool assign_ExcREXS_tf2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcREXS* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tf2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcREXS.tp -bool assign_ExcREXS_tp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcREXS* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcREXS.vcmax -bool assign_ExcREXS_vcmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcREXS* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vcmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcREXS.vfmax -bool assign_ExcREXS_vfmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcREXS* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vfmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcREXS.vfmin -bool assign_ExcREXS_vfmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcREXS* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vfmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcREXS.vimax -bool assign_ExcREXS_vimax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcREXS* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vimax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcREXS.vrmax -bool assign_ExcREXS_vrmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcREXS* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcREXS.vrmin -bool assign_ExcREXS_vrmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcREXS* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcREXS.xc -bool assign_ExcREXS_xc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcREXS* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->xc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC1A.ka -bool assign_ExcIEEEAC1A_ka(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ka.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC1A.kc -bool assign_ExcIEEEAC1A_kc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC1A.kd -bool assign_ExcIEEEAC1A_kd(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kd.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC1A.ke -bool assign_ExcIEEEAC1A_ke(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ke.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC1A.kf -bool assign_ExcIEEEAC1A_kf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC1A.seve1 -bool assign_ExcIEEEAC1A_seve1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->seve1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC1A.seve2 -bool assign_ExcIEEEAC1A_seve2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->seve2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC1A.ta -bool assign_ExcIEEEAC1A_ta(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ta.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC1A.tb -bool assign_ExcIEEEAC1A_tb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC1A.tc -bool assign_ExcIEEEAC1A_tc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC1A.te -bool assign_ExcIEEEAC1A_te(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->te.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC1A.tf -bool assign_ExcIEEEAC1A_tf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC1A.vamax -bool assign_ExcIEEEAC1A_vamax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vamax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC1A.vamin -bool assign_ExcIEEEAC1A_vamin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vamin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC1A.ve1 -bool assign_ExcIEEEAC1A_ve1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ve1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC1A.ve2 -bool assign_ExcIEEEAC1A_ve2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ve2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC1A.vrmax -bool assign_ExcIEEEAC1A_vrmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC1A.vrmin -bool assign_ExcIEEEAC1A_vrmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC7B.kc -bool assign_ExcIEEEAC7B_kc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC7B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC7B.kd -bool assign_ExcIEEEAC7B_kd(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC7B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kd.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC7B.kdr -bool assign_ExcIEEEAC7B_kdr(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC7B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kdr.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC7B.ke -bool assign_ExcIEEEAC7B_ke(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC7B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ke.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC7B.kf1 -bool assign_ExcIEEEAC7B_kf1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC7B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kf1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC7B.kf2 -bool assign_ExcIEEEAC7B_kf2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC7B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kf2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC7B.kf3 -bool assign_ExcIEEEAC7B_kf3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC7B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kf3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC7B.kia -bool assign_ExcIEEEAC7B_kia(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC7B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kia.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC7B.kir -bool assign_ExcIEEEAC7B_kir(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC7B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kir.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC7B.kl -bool assign_ExcIEEEAC7B_kl(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC7B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kl.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC7B.kp -bool assign_ExcIEEEAC7B_kp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC7B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC7B.kpa -bool assign_ExcIEEEAC7B_kpa(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC7B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kpa.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC7B.kpr -bool assign_ExcIEEEAC7B_kpr(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC7B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kpr.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC7B.seve1 -bool assign_ExcIEEEAC7B_seve1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC7B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->seve1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC7B.seve2 -bool assign_ExcIEEEAC7B_seve2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC7B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->seve2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC7B.tdr -bool assign_ExcIEEEAC7B_tdr(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC7B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tdr.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC7B.te -bool assign_ExcIEEEAC7B_te(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC7B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->te.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC7B.tf -bool assign_ExcIEEEAC7B_tf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC7B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC7B.vamax -bool assign_ExcIEEEAC7B_vamax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC7B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vamax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC7B.vamin -bool assign_ExcIEEEAC7B_vamin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC7B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vamin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC7B.ve1 -bool assign_ExcIEEEAC7B_ve1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC7B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ve1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC7B.ve2 -bool assign_ExcIEEEAC7B_ve2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC7B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ve2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC7B.vemin -bool assign_ExcIEEEAC7B_vemin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC7B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vemin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC7B.vfemax -bool assign_ExcIEEEAC7B_vfemax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC7B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vfemax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC7B.vrmax -bool assign_ExcIEEEAC7B_vrmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC7B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC7B.vrmin -bool assign_ExcIEEEAC7B_vrmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC7B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST2A.efdmax -bool assign_ExcIEEEST2A_efdmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->efdmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST2A.ka -bool assign_ExcIEEEST2A_ka(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ka.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST2A.kc -bool assign_ExcIEEEST2A_kc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST2A.ke -bool assign_ExcIEEEST2A_ke(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ke.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST2A.kf -bool assign_ExcIEEEST2A_kf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST2A.ki -bool assign_ExcIEEEST2A_ki(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ki.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST2A.kp -bool assign_ExcIEEEST2A_kp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST2A.ta -bool assign_ExcIEEEST2A_ta(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ta.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST2A.te -bool assign_ExcIEEEST2A_te(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->te.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST2A.tf -bool assign_ExcIEEEST2A_tf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST2A.uelin -bool assign_ExcIEEEST2A_uelin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->uelin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST2A.vrmax -bool assign_ExcIEEEST2A_vrmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST2A.vrmin -bool assign_ExcIEEEST2A_vrmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC5A.efd1 -bool assign_ExcIEEEAC5A_efd1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC5A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->efd1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC5A.efd2 -bool assign_ExcIEEEAC5A_efd2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC5A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->efd2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC5A.ka -bool assign_ExcIEEEAC5A_ka(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC5A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ka.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC5A.ke -bool assign_ExcIEEEAC5A_ke(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC5A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ke.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC5A.kf -bool assign_ExcIEEEAC5A_kf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC5A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC5A.seefd1 -bool assign_ExcIEEEAC5A_seefd1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC5A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->seefd1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC5A.seefd2 -bool assign_ExcIEEEAC5A_seefd2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC5A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->seefd2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC5A.ta -bool assign_ExcIEEEAC5A_ta(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC5A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ta.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC5A.te -bool assign_ExcIEEEAC5A_te(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC5A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->te.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC5A.tf1 -bool assign_ExcIEEEAC5A_tf1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC5A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tf1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC5A.tf2 -bool assign_ExcIEEEAC5A_tf2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC5A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tf2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC5A.tf3 -bool assign_ExcIEEEAC5A_tf3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC5A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tf3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC5A.vrmax -bool assign_ExcIEEEAC5A_vrmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC5A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC5A.vrmin -bool assign_ExcIEEEAC5A_vrmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC5A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR3.e1 -bool assign_ExcAVR3_e1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->e1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR3.e2 -bool assign_ExcAVR3_e2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->e2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR3.ka -bool assign_ExcAVR3_ka(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ka; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR3.se1 -bool assign_ExcAVR3_se1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->se1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR3.se2 -bool assign_ExcAVR3_se2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->se2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR3.t1 -bool assign_ExcAVR3_t1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR3.t2 -bool assign_ExcAVR3_t2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR3.t3 -bool assign_ExcAVR3_t3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR3.t4 -bool assign_ExcAVR3_t4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR3.te -bool assign_ExcAVR3_te(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->te.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR3.vrmn -bool assign_ExcAVR3_vrmn(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmn.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR3.vrmx -bool assign_ExcAVR3_vrmx(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmx.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST4B.kc -bool assign_ExcST4B_kc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST4B.kg -bool assign_ExcST4B_kg(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kg.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST4B.ki -bool assign_ExcST4B_ki(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ki.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST4B.kim -bool assign_ExcST4B_kim(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kim.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST4B.kir -bool assign_ExcST4B_kir(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kir.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST4B.kp -bool assign_ExcST4B_kp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST4B.kpm -bool assign_ExcST4B_kpm(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kpm.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST4B.kpr -bool assign_ExcST4B_kpr(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kpr.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST4B.lvgate -bool assign_ExcST4B_lvgate(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->lvgate; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST4B.ta -bool assign_ExcST4B_ta(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ta.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST4B.thetap -bool assign_ExcST4B_thetap(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->thetap.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST4B.uel -bool assign_ExcST4B_uel(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->uel; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST4B.vbmax -bool assign_ExcST4B_vbmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vbmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST4B.vgmax -bool assign_ExcST4B_vgmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vgmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST4B.vmmax -bool assign_ExcST4B_vmmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vmmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST4B.vmmin -bool assign_ExcST4B_vmmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vmmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST4B.vrmax -bool assign_ExcST4B_vrmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST4B.vrmin -bool assign_ExcST4B_vrmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST4B.xl -bool assign_ExcST4B_xl(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->xl.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST7B.kh -bool assign_ExcST7B_kh(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST7B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kh.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST7B.kia -bool assign_ExcST7B_kia(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST7B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kia.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST7B.kl -bool assign_ExcST7B_kl(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST7B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kl.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST7B.kpa -bool assign_ExcST7B_kpa(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST7B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kpa.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST7B.oelin -bool assign_ExcST7B_oelin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST7B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->oelin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST7B.tb -bool assign_ExcST7B_tb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST7B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST7B.tc -bool assign_ExcST7B_tc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST7B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST7B.tf -bool assign_ExcST7B_tf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST7B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST7B.tg -bool assign_ExcST7B_tg(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST7B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tg.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST7B.tia -bool assign_ExcST7B_tia(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST7B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tia.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST7B.ts -bool assign_ExcST7B_ts(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST7B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ts.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST7B.uelin -bool assign_ExcST7B_uelin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST7B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->uelin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST7B.vmax -bool assign_ExcST7B_vmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST7B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST7B.vmin -bool assign_ExcST7B_vmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST7B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST7B.vrmax -bool assign_ExcST7B_vrmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST7B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST7B.vrmin -bool assign_ExcST7B_vrmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST7B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEDC1A.efd1 -bool assign_ExcIEEEDC1A_efd1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->efd1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEDC1A.efd2 -bool assign_ExcIEEEDC1A_efd2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->efd2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEDC1A.exclim -bool assign_ExcIEEEDC1A_exclim(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->exclim; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEDC1A.ka -bool assign_ExcIEEEDC1A_ka(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ka.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEDC1A.ke -bool assign_ExcIEEEDC1A_ke(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ke.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEDC1A.kf -bool assign_ExcIEEEDC1A_kf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEDC1A.seefd1 -bool assign_ExcIEEEDC1A_seefd1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->seefd1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEDC1A.seefd2 -bool assign_ExcIEEEDC1A_seefd2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->seefd2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEDC1A.ta -bool assign_ExcIEEEDC1A_ta(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ta.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEDC1A.tb -bool assign_ExcIEEEDC1A_tb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEDC1A.tc -bool assign_ExcIEEEDC1A_tc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEDC1A.te -bool assign_ExcIEEEDC1A_te(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->te.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEDC1A.tf -bool assign_ExcIEEEDC1A_tf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEDC1A.uelin -bool assign_ExcIEEEDC1A_uelin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->uelin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEDC1A.vrmax -bool assign_ExcIEEEDC1A_vrmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEDC1A.vrmin -bool assign_ExcIEEEDC1A_vrmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC4A.ka -bool assign_ExcIEEEAC4A_ka(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC4A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ka.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC4A.kc -bool assign_ExcIEEEAC4A_kc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC4A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC4A.ta -bool assign_ExcIEEEAC4A_ta(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC4A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ta.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC4A.tb -bool assign_ExcIEEEAC4A_tb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC4A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC4A.tc -bool assign_ExcIEEEAC4A_tc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC4A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC4A.vimax -bool assign_ExcIEEEAC4A_vimax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC4A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vimax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC4A.vimin -bool assign_ExcIEEEAC4A_vimin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC4A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vimin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC4A.vrmax -bool assign_ExcIEEEAC4A_vrmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC4A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC4A.vrmin -bool assign_ExcIEEEAC4A_vrmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC4A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST4B.kc -bool assign_ExcIEEEST4B_kc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST4B.kg -bool assign_ExcIEEEST4B_kg(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kg.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST4B.ki -bool assign_ExcIEEEST4B_ki(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ki.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST4B.kim -bool assign_ExcIEEEST4B_kim(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kim.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST4B.kir -bool assign_ExcIEEEST4B_kir(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kir.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST4B.kp -bool assign_ExcIEEEST4B_kp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST4B.kpm -bool assign_ExcIEEEST4B_kpm(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kpm.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST4B.kpr -bool assign_ExcIEEEST4B_kpr(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kpr.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST4B.ta -bool assign_ExcIEEEST4B_ta(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ta.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST4B.thetap -bool assign_ExcIEEEST4B_thetap(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->thetap.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST4B.vbmax -bool assign_ExcIEEEST4B_vbmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vbmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST4B.vmmax -bool assign_ExcIEEEST4B_vmmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vmmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST4B.vmmin -bool assign_ExcIEEEST4B_vmmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vmmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST4B.vrmax -bool assign_ExcIEEEST4B_vrmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST4B.vrmin -bool assign_ExcIEEEST4B_vrmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST4B.xl -bool assign_ExcIEEEST4B_xl(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->xl.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC2A.ka -bool assign_ExcIEEEAC2A_ka(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ka.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC2A.kb -bool assign_ExcIEEEAC2A_kb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC2A.kc -bool assign_ExcIEEEAC2A_kc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC2A.kd -bool assign_ExcIEEEAC2A_kd(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kd.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC2A.ke -bool assign_ExcIEEEAC2A_ke(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ke.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC2A.kf -bool assign_ExcIEEEAC2A_kf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC2A.kh -bool assign_ExcIEEEAC2A_kh(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kh.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC2A.seve1 -bool assign_ExcIEEEAC2A_seve1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->seve1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC2A.seve2 -bool assign_ExcIEEEAC2A_seve2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->seve2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC2A.ta -bool assign_ExcIEEEAC2A_ta(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ta.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC2A.tb -bool assign_ExcIEEEAC2A_tb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC2A.tc -bool assign_ExcIEEEAC2A_tc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC2A.te -bool assign_ExcIEEEAC2A_te(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->te.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC2A.tf -bool assign_ExcIEEEAC2A_tf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC2A.vamax -bool assign_ExcIEEEAC2A_vamax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vamax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC2A.vamin -bool assign_ExcIEEEAC2A_vamin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vamin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC2A.ve1 -bool assign_ExcIEEEAC2A_ve1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ve1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC2A.ve2 -bool assign_ExcIEEEAC2A_ve2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ve2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC2A.vfemax -bool assign_ExcIEEEAC2A_vfemax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vfemax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC2A.vrmax -bool assign_ExcIEEEAC2A_vrmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC2A.vrmin -bool assign_ExcIEEEAC2A_vrmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcBBC.efdmax -bool assign_ExcBBC_efdmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcBBC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->efdmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcBBC.efdmin -bool assign_ExcBBC_efdmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcBBC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->efdmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcBBC.k -bool assign_ExcBBC_k(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcBBC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcBBC.routing_selector -bool assign_ExcBBC_routing_selector(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcBBC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->routing_selector; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcBBC.t1 -bool assign_ExcBBC_t1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcBBC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcBBC.t2 -bool assign_ExcBBC_t2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcBBC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcBBC.t3 -bool assign_ExcBBC_t3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcBBC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcBBC.t4 -bool assign_ExcBBC_t4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcBBC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcBBC.vrmax -bool assign_ExcBBC_vrmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcBBC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcBBC.vrmin -bool assign_ExcBBC_vrmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcBBC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcBBC.xe -bool assign_ExcBBC_xe(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcBBC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->xe.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR2.e1 -bool assign_ExcAVR2_e1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->e1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR2.e2 -bool assign_ExcAVR2_e2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->e2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR2.ka -bool assign_ExcAVR2_ka(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ka; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR2.kf -bool assign_ExcAVR2_kf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR2.se1 -bool assign_ExcAVR2_se1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->se1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR2.se2 -bool assign_ExcAVR2_se2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->se2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR2.ta -bool assign_ExcAVR2_ta(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ta.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR2.tb -bool assign_ExcAVR2_tb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR2.te -bool assign_ExcAVR2_te(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->te.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR2.tf1 -bool assign_ExcAVR2_tf1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tf1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR2.tf2 -bool assign_ExcAVR2_tf2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tf2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR2.vrmn -bool assign_ExcAVR2_vrmn(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmn.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR2.vrmx -bool assign_ExcAVR2_vrmx(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmx.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC5A.a -bool assign_ExcAC5A_a(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC5A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->a; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC5A.efd1 -bool assign_ExcAC5A_efd1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC5A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->efd1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC5A.efd2 -bool assign_ExcAC5A_efd2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC5A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->efd2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC5A.ka -bool assign_ExcAC5A_ka(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC5A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ka.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC5A.ke -bool assign_ExcAC5A_ke(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC5A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ke.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC5A.kf -bool assign_ExcAC5A_kf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC5A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC5A.ks -bool assign_ExcAC5A_ks(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC5A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ks.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC5A.seefd1 -bool assign_ExcAC5A_seefd1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC5A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->seefd1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC5A.seefd2 -bool assign_ExcAC5A_seefd2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC5A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->seefd2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC5A.ta -bool assign_ExcAC5A_ta(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC5A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ta.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC5A.tb -bool assign_ExcAC5A_tb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC5A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC5A.tc -bool assign_ExcAC5A_tc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC5A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC5A.te -bool assign_ExcAC5A_te(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC5A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->te.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC5A.tf1 -bool assign_ExcAC5A_tf1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC5A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tf1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC5A.tf2 -bool assign_ExcAC5A_tf2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC5A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tf2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC5A.tf3 -bool assign_ExcAC5A_tf3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC5A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tf3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC5A.vrmax -bool assign_ExcAC5A_vrmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC5A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC5A.vrmin -bool assign_ExcAC5A_vrmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC5A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR5.ka -bool assign_ExcAVR5_ka(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR5* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ka.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR5.rex -bool assign_ExcAVR5_rex(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR5* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->rex.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR5.ta -bool assign_ExcAVR5_ta(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR5* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ta.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcHU.ae -bool assign_ExcHU_ae(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcHU* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ae.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcHU.ai -bool assign_ExcHU_ai(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcHU* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ai.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcHU.atr -bool assign_ExcHU_atr(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcHU* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->atr.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcHU.emax -bool assign_ExcHU_emax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcHU* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->emax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcHU.emin -bool assign_ExcHU_emin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcHU* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->emin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcHU.imax -bool assign_ExcHU_imax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcHU* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->imax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcHU.imin -bool assign_ExcHU_imin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcHU* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->imin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcHU.ke -bool assign_ExcHU_ke(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcHU* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ke; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcHU.ki -bool assign_ExcHU_ki(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcHU* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ki; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcHU.te -bool assign_ExcHU_te(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcHU* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->te.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcHU.ti -bool assign_ExcHU_ti(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcHU* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ti.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcHU.tr -bool assign_ExcHU_tr(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcHU* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tr.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcANS.blint -bool assign_ExcANS_blint(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcANS* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->blint; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcANS.ifmn -bool assign_ExcANS_ifmn(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcANS* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ifmn.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcANS.ifmx -bool assign_ExcANS_ifmx(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcANS* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ifmx.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcANS.k2 -bool assign_ExcANS_k2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcANS* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcANS.k3 -bool assign_ExcANS_k3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcANS* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcANS.kce -bool assign_ExcANS_kce(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcANS* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kce; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcANS.krvecc -bool assign_ExcANS_krvecc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcANS* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->krvecc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcANS.kvfif -bool assign_ExcANS_kvfif(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcANS* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kvfif; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcANS.t1 -bool assign_ExcANS_t1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcANS* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcANS.t2 -bool assign_ExcANS_t2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcANS* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcANS.t3 -bool assign_ExcANS_t3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcANS* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcANS.tb -bool assign_ExcANS_tb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcANS* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcANS.vrmn -bool assign_ExcANS_vrmn(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcANS* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmn.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcANS.vrmx -bool assign_ExcANS_vrmx(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcANS* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmx.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST3A.ka -bool assign_ExcIEEEST3A_ka(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ka.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST3A.kc -bool assign_ExcIEEEST3A_kc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST3A.kg -bool assign_ExcIEEEST3A_kg(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kg.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST3A.ki -bool assign_ExcIEEEST3A_ki(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ki.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST3A.km -bool assign_ExcIEEEST3A_km(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->km.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST3A.kp -bool assign_ExcIEEEST3A_kp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST3A.ta -bool assign_ExcIEEEST3A_ta(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ta.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST3A.tb -bool assign_ExcIEEEST3A_tb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST3A.tc -bool assign_ExcIEEEST3A_tc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST3A.thetap -bool assign_ExcIEEEST3A_thetap(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->thetap.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST3A.tm -bool assign_ExcIEEEST3A_tm(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tm.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST3A.vbmax -bool assign_ExcIEEEST3A_vbmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vbmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST3A.vgmax -bool assign_ExcIEEEST3A_vgmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vgmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST3A.vimax -bool assign_ExcIEEEST3A_vimax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vimax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST3A.vimin -bool assign_ExcIEEEST3A_vimin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vimin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST3A.vmmax -bool assign_ExcIEEEST3A_vmmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vmmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST3A.vmmin -bool assign_ExcIEEEST3A_vmmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vmmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST3A.vrmax -bool assign_ExcIEEEST3A_vrmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST3A.vrmin -bool assign_ExcIEEEST3A_vrmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST3A.xl -bool assign_ExcIEEEST3A_xl(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->xl.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC4A.ka -bool assign_ExcAC4A_ka(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC4A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ka.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC4A.kc -bool assign_ExcAC4A_kc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC4A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC4A.ta -bool assign_ExcAC4A_ta(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC4A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ta.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC4A.tb -bool assign_ExcAC4A_tb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC4A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC4A.tc -bool assign_ExcAC4A_tc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC4A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC4A.vimax -bool assign_ExcAC4A_vimax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC4A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vimax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC4A.vimin -bool assign_ExcAC4A_vimin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC4A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vimin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC4A.vrmax -bool assign_ExcAC4A_vrmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC4A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC4A.vrmin -bool assign_ExcAC4A_vrmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC4A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC3A1.exclim -bool assign_ExcDC3A1_exclim(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC3A1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->exclim; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC3A1.ka -bool assign_ExcDC3A1_ka(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC3A1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ka.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC3A1.ke -bool assign_ExcDC3A1_ke(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC3A1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ke.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC3A1.kf -bool assign_ExcDC3A1_kf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC3A1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC3A1.ki -bool assign_ExcDC3A1_ki(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC3A1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ki.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC3A1.kp -bool assign_ExcDC3A1_kp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC3A1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC3A1.ta -bool assign_ExcDC3A1_ta(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC3A1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ta.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC3A1.te -bool assign_ExcDC3A1_te(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC3A1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->te.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC3A1.tf -bool assign_ExcDC3A1_tf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC3A1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC3A1.vb1max -bool assign_ExcDC3A1_vb1max(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC3A1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vb1max.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC3A1.vblim -bool assign_ExcDC3A1_vblim(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC3A1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vblim; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC3A1.vbmax -bool assign_ExcDC3A1_vbmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC3A1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vbmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC3A1.vrmax -bool assign_ExcDC3A1_vrmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC3A1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC3A1.vrmin -bool assign_ExcDC3A1_vrmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC3A1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC1A.hvlvgates -bool assign_ExcAC1A_hvlvgates(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->hvlvgates; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC1A.ka -bool assign_ExcAC1A_ka(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ka.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC1A.kc -bool assign_ExcAC1A_kc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC1A.kd -bool assign_ExcAC1A_kd(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kd.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC1A.ke -bool assign_ExcAC1A_ke(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ke.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC1A.kf -bool assign_ExcAC1A_kf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC1A.kf1 -bool assign_ExcAC1A_kf1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kf1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC1A.kf2 -bool assign_ExcAC1A_kf2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kf2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC1A.ks -bool assign_ExcAC1A_ks(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ks.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC1A.seve1 -bool assign_ExcAC1A_seve1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->seve1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC1A.seve2 -bool assign_ExcAC1A_seve2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->seve2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC1A.ta -bool assign_ExcAC1A_ta(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ta.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC1A.tb -bool assign_ExcAC1A_tb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC1A.tc -bool assign_ExcAC1A_tc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC1A.te -bool assign_ExcAC1A_te(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->te.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC1A.tf -bool assign_ExcAC1A_tf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC1A.vamax -bool assign_ExcAC1A_vamax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vamax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC1A.vamin -bool assign_ExcAC1A_vamin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vamin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC1A.ve1 -bool assign_ExcAC1A_ve1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ve1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC1A.ve2 -bool assign_ExcAC1A_ve2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ve2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC1A.vrmax -bool assign_ExcAC1A_vrmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC1A.vrmin -bool assign_ExcAC1A_vrmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC3A.edfmax -bool assign_ExcDC3A_edfmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->edfmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC3A.efd1 -bool assign_ExcDC3A_efd1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->efd1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC3A.efd2 -bool assign_ExcDC3A_efd2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->efd2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC3A.efdlim -bool assign_ExcDC3A_efdlim(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->efdlim; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC3A.efdmin -bool assign_ExcDC3A_efdmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->efdmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC3A.exclim -bool assign_ExcDC3A_exclim(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->exclim; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC3A.ke -bool assign_ExcDC3A_ke(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ke.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC3A.kr -bool assign_ExcDC3A_kr(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kr.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC3A.ks -bool assign_ExcDC3A_ks(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ks.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC3A.kv -bool assign_ExcDC3A_kv(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kv.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC3A.seefd1 -bool assign_ExcDC3A_seefd1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->seefd1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC3A.seefd2 -bool assign_ExcDC3A_seefd2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->seefd2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC3A.te -bool assign_ExcDC3A_te(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->te.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC3A.trh -bool assign_ExcDC3A_trh(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->trh.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC3A.vrmax -bool assign_ExcDC3A_vrmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC3A.vrmin -bool assign_ExcDC3A_vrmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC3A.efdn -bool assign_ExcAC3A_efdn(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->efdn.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC3A.ka -bool assign_ExcAC3A_ka(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ka.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC3A.kc -bool assign_ExcAC3A_kc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC3A.kd -bool assign_ExcAC3A_kd(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kd.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC3A.ke -bool assign_ExcAC3A_ke(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ke.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC3A.kf -bool assign_ExcAC3A_kf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC3A.kf1 -bool assign_ExcAC3A_kf1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kf1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC3A.kf2 -bool assign_ExcAC3A_kf2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kf2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC3A.klv -bool assign_ExcAC3A_klv(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->klv.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC3A.kn -bool assign_ExcAC3A_kn(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kn.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC3A.kr -bool assign_ExcAC3A_kr(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kr.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC3A.ks -bool assign_ExcAC3A_ks(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ks.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC3A.seve1 -bool assign_ExcAC3A_seve1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->seve1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC3A.seve2 -bool assign_ExcAC3A_seve2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->seve2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC3A.ta -bool assign_ExcAC3A_ta(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ta.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC3A.tb -bool assign_ExcAC3A_tb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC3A.tc -bool assign_ExcAC3A_tc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC3A.te -bool assign_ExcAC3A_te(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->te.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC3A.tf -bool assign_ExcAC3A_tf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC3A.vamax -bool assign_ExcAC3A_vamax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vamax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC3A.vamin -bool assign_ExcAC3A_vamin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vamin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC3A.ve1 -bool assign_ExcAC3A_ve1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ve1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC3A.ve2 -bool assign_ExcAC3A_ve2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ve2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC3A.vemin -bool assign_ExcAC3A_vemin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vemin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC3A.vfemax -bool assign_ExcAC3A_vfemax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vfemax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC3A.vlv -bool assign_ExcAC3A_vlv(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vlv.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEDC2A.efd1 -bool assign_ExcIEEEDC2A_efd1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->efd1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEDC2A.efd2 -bool assign_ExcIEEEDC2A_efd2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->efd2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEDC2A.exclim -bool assign_ExcIEEEDC2A_exclim(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->exclim.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEDC2A.ka -bool assign_ExcIEEEDC2A_ka(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ka.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEDC2A.ke -bool assign_ExcIEEEDC2A_ke(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ke.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEDC2A.kf -bool assign_ExcIEEEDC2A_kf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEDC2A.seefd1 -bool assign_ExcIEEEDC2A_seefd1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->seefd1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEDC2A.seefd2 -bool assign_ExcIEEEDC2A_seefd2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->seefd2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEDC2A.ta -bool assign_ExcIEEEDC2A_ta(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ta.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEDC2A.tb -bool assign_ExcIEEEDC2A_tb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEDC2A.tc -bool assign_ExcIEEEDC2A_tc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEDC2A.te -bool assign_ExcIEEEDC2A_te(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->te.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEDC2A.tf -bool assign_ExcIEEEDC2A_tf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEDC2A.uelin -bool assign_ExcIEEEDC2A_uelin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->uelin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEDC2A.vrmax -bool assign_ExcIEEEDC2A_vrmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEDC2A.vrmin -bool assign_ExcIEEEDC2A_vrmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST2A.efdmax -bool assign_ExcST2A_efdmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->efdmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST2A.ka -bool assign_ExcST2A_ka(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ka.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST2A.kc -bool assign_ExcST2A_kc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST2A.ke -bool assign_ExcST2A_ke(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ke.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST2A.kf -bool assign_ExcST2A_kf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST2A.ki -bool assign_ExcST2A_ki(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ki.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST2A.kp -bool assign_ExcST2A_kp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST2A.ta -bool assign_ExcST2A_ta(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ta.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST2A.tb -bool assign_ExcST2A_tb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST2A.tc -bool assign_ExcST2A_tc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST2A.te -bool assign_ExcST2A_te(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->te.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST2A.tf -bool assign_ExcST2A_tf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST2A.uelin -bool assign_ExcST2A_uelin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->uelin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST2A.vrmax -bool assign_ExcST2A_vrmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST2A.vrmin -bool assign_ExcST2A_vrmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcCZ.efdmax -bool assign_ExcCZ_efdmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcCZ* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->efdmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcCZ.efdmin -bool assign_ExcCZ_efdmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcCZ* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->efdmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcCZ.ka -bool assign_ExcCZ_ka(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcCZ* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ka.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcCZ.ke -bool assign_ExcCZ_ke(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcCZ* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ke.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcCZ.kp -bool assign_ExcCZ_kp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcCZ* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcCZ.ta -bool assign_ExcCZ_ta(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcCZ* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ta.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcCZ.tc -bool assign_ExcCZ_tc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcCZ* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcCZ.te -bool assign_ExcCZ_te(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcCZ* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->te.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcCZ.vrmax -bool assign_ExcCZ_vrmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcCZ* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcCZ.vrmin -bool assign_ExcCZ_vrmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcCZ* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST1A.ilr -bool assign_ExcIEEEST1A_ilr(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ilr.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST1A.ka -bool assign_ExcIEEEST1A_ka(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ka.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST1A.kc -bool assign_ExcIEEEST1A_kc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST1A.kf -bool assign_ExcIEEEST1A_kf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST1A.klr -bool assign_ExcIEEEST1A_klr(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->klr.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST1A.pssin -bool assign_ExcIEEEST1A_pssin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pssin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST1A.ta -bool assign_ExcIEEEST1A_ta(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ta.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST1A.tb -bool assign_ExcIEEEST1A_tb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST1A.tb1 -bool assign_ExcIEEEST1A_tb1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tb1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST1A.tc -bool assign_ExcIEEEST1A_tc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST1A.tc1 -bool assign_ExcIEEEST1A_tc1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tc1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST1A.tf -bool assign_ExcIEEEST1A_tf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST1A.uelin -bool assign_ExcIEEEST1A_uelin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->uelin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST1A.vamax -bool assign_ExcIEEEST1A_vamax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vamax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST1A.vamin -bool assign_ExcIEEEST1A_vamin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vamin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST1A.vimax -bool assign_ExcIEEEST1A_vimax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vimax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST1A.vimin -bool assign_ExcIEEEST1A_vimin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vimin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST1A.vrmax -bool assign_ExcIEEEST1A_vrmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST1A.vrmin -bool assign_ExcIEEEST1A_vrmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC2A.hvgate -bool assign_ExcAC2A_hvgate(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->hvgate; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC2A.ka -bool assign_ExcAC2A_ka(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ka.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC2A.kb -bool assign_ExcAC2A_kb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC2A.kb1 -bool assign_ExcAC2A_kb1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kb1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC2A.kc -bool assign_ExcAC2A_kc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC2A.kd -bool assign_ExcAC2A_kd(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kd.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC2A.ke -bool assign_ExcAC2A_ke(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ke.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC2A.kf -bool assign_ExcAC2A_kf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC2A.kh -bool assign_ExcAC2A_kh(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kh.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC2A.kl -bool assign_ExcAC2A_kl(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kl.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC2A.kl1 -bool assign_ExcAC2A_kl1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kl1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC2A.ks -bool assign_ExcAC2A_ks(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ks.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC2A.lvgate -bool assign_ExcAC2A_lvgate(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->lvgate; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC2A.seve1 -bool assign_ExcAC2A_seve1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->seve1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC2A.seve2 -bool assign_ExcAC2A_seve2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->seve2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC2A.ta -bool assign_ExcAC2A_ta(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ta.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC2A.tb -bool assign_ExcAC2A_tb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC2A.tc -bool assign_ExcAC2A_tc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC2A.te -bool assign_ExcAC2A_te(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->te.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC2A.tf -bool assign_ExcAC2A_tf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC2A.vamax -bool assign_ExcAC2A_vamax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vamax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC2A.vamin -bool assign_ExcAC2A_vamin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vamin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC2A.ve1 -bool assign_ExcAC2A_ve1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ve1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC2A.ve2 -bool assign_ExcAC2A_ve2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ve2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC2A.vfemax -bool assign_ExcAC2A_vfemax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vfemax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC2A.vlr -bool assign_ExcAC2A_vlr(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vlr.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC2A.vrmax -bool assign_ExcAC2A_vrmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC2A.vrmin -bool assign_ExcAC2A_vrmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC8B.ka -bool assign_ExcIEEEAC8B_ka(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC8B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ka.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC8B.kc -bool assign_ExcIEEEAC8B_kc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC8B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC8B.kd -bool assign_ExcIEEEAC8B_kd(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC8B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kd.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC8B.kdr -bool assign_ExcIEEEAC8B_kdr(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC8B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kdr.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC8B.ke -bool assign_ExcIEEEAC8B_ke(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC8B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ke.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC8B.kir -bool assign_ExcIEEEAC8B_kir(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC8B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kir.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC8B.kpr -bool assign_ExcIEEEAC8B_kpr(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC8B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kpr.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC8B.seve1 -bool assign_ExcIEEEAC8B_seve1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC8B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->seve1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC8B.seve2 -bool assign_ExcIEEEAC8B_seve2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC8B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->seve2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC8B.ta -bool assign_ExcIEEEAC8B_ta(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC8B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ta.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC8B.tdr -bool assign_ExcIEEEAC8B_tdr(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC8B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tdr.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC8B.te -bool assign_ExcIEEEAC8B_te(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC8B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->te.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC8B.ve1 -bool assign_ExcIEEEAC8B_ve1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC8B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ve1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC8B.ve2 -bool assign_ExcIEEEAC8B_ve2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC8B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ve2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC8B.vemin -bool assign_ExcIEEEAC8B_vemin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC8B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vemin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC8B.vfemax -bool assign_ExcIEEEAC8B_vfemax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC8B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vfemax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC8B.vrmax -bool assign_ExcIEEEAC8B_vrmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC8B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC8B.vrmin -bool assign_ExcIEEEAC8B_vrmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC8B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcELIN1.dpnf -bool assign_ExcELIN1_dpnf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcELIN1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->dpnf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcELIN1.efmax -bool assign_ExcELIN1_efmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcELIN1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->efmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcELIN1.efmin -bool assign_ExcELIN1_efmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcELIN1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->efmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcELIN1.ks1 -bool assign_ExcELIN1_ks1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcELIN1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ks1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcELIN1.ks2 -bool assign_ExcELIN1_ks2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcELIN1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ks2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcELIN1.smax -bool assign_ExcELIN1_smax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcELIN1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->smax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcELIN1.tfi -bool assign_ExcELIN1_tfi(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcELIN1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tfi.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcELIN1.tnu -bool assign_ExcELIN1_tnu(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcELIN1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tnu.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcELIN1.ts1 -bool assign_ExcELIN1_ts1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcELIN1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ts1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcELIN1.ts2 -bool assign_ExcELIN1_ts2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcELIN1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ts2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcELIN1.tsw -bool assign_ExcELIN1_tsw(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcELIN1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tsw.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcELIN1.vpi -bool assign_ExcELIN1_vpi(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcELIN1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vpi.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcELIN1.vpnf -bool assign_ExcELIN1_vpnf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcELIN1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vpnf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcELIN1.vpu -bool assign_ExcELIN1_vpu(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcELIN1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vpu.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcELIN1.xe -bool assign_ExcELIN1_xe(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcELIN1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->xe.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC1A.edfmax -bool assign_ExcDC1A_edfmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->edfmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC1A.efd1 -bool assign_ExcDC1A_efd1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->efd1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC1A.efd2 -bool assign_ExcDC1A_efd2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->efd2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC1A.efdmin -bool assign_ExcDC1A_efdmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->efdmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC1A.exclim -bool assign_ExcDC1A_exclim(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->exclim; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC1A.ka -bool assign_ExcDC1A_ka(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ka.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC1A.ke -bool assign_ExcDC1A_ke(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ke.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC1A.kf -bool assign_ExcDC1A_kf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC1A.ks -bool assign_ExcDC1A_ks(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ks.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC1A.seefd1 -bool assign_ExcDC1A_seefd1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->seefd1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC1A.seefd2 -bool assign_ExcDC1A_seefd2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->seefd2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC1A.ta -bool assign_ExcDC1A_ta(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ta.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC1A.tb -bool assign_ExcDC1A_tb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC1A.tc -bool assign_ExcDC1A_tc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC1A.te -bool assign_ExcDC1A_te(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->te.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC1A.tf -bool assign_ExcDC1A_tf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC1A.vrmax -bool assign_ExcDC1A_vrmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC1A.vrmin -bool assign_ExcDC1A_vrmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcSCRX.cswitch -bool assign_ExcSCRX_cswitch(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcSCRX* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->cswitch; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcSCRX.emax -bool assign_ExcSCRX_emax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcSCRX* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->emax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcSCRX.emin -bool assign_ExcSCRX_emin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcSCRX* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->emin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcSCRX.k -bool assign_ExcSCRX_k(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcSCRX* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcSCRX.rcrfd -bool assign_ExcSCRX_rcrfd(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcSCRX* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->rcrfd; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcSCRX.tatb -bool assign_ExcSCRX_tatb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcSCRX* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tatb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcSCRX.tb -bool assign_ExcSCRX_tb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcSCRX* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcSCRX.te -bool assign_ExcSCRX_te(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcSCRX* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->te.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEDC3A.efd1 -bool assign_ExcIEEEDC3A_efd1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->efd1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEDC3A.efd2 -bool assign_ExcIEEEDC3A_efd2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->efd2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEDC3A.exclim -bool assign_ExcIEEEDC3A_exclim(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->exclim; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEDC3A.ke -bool assign_ExcIEEEDC3A_ke(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ke.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEDC3A.kv -bool assign_ExcIEEEDC3A_kv(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kv.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEDC3A.seefd1 -bool assign_ExcIEEEDC3A_seefd1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->seefd1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEDC3A.seefd2 -bool assign_ExcIEEEDC3A_seefd2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->seefd2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEDC3A.te -bool assign_ExcIEEEDC3A_te(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->te.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEDC3A.trh -bool assign_ExcIEEEDC3A_trh(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->trh.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEDC3A.vrmax -bool assign_ExcIEEEDC3A_vrmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEDC3A.vrmin -bool assign_ExcIEEEDC3A_vrmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC6A.ka -bool assign_ExcIEEEAC6A_ka(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC6A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ka.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC6A.kc -bool assign_ExcIEEEAC6A_kc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC6A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC6A.kd -bool assign_ExcIEEEAC6A_kd(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC6A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kd.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC6A.ke -bool assign_ExcIEEEAC6A_ke(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC6A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ke.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC6A.kh -bool assign_ExcIEEEAC6A_kh(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC6A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kh.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC6A.seve1 -bool assign_ExcIEEEAC6A_seve1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC6A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->seve1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC6A.seve2 -bool assign_ExcIEEEAC6A_seve2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC6A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->seve2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC6A.ta -bool assign_ExcIEEEAC6A_ta(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC6A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ta.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC6A.tb -bool assign_ExcIEEEAC6A_tb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC6A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC6A.tc -bool assign_ExcIEEEAC6A_tc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC6A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC6A.te -bool assign_ExcIEEEAC6A_te(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC6A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->te.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC6A.th -bool assign_ExcIEEEAC6A_th(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC6A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->th.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC6A.tj -bool assign_ExcIEEEAC6A_tj(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC6A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tj.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC6A.tk -bool assign_ExcIEEEAC6A_tk(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC6A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tk.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC6A.vamax -bool assign_ExcIEEEAC6A_vamax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC6A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vamax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC6A.vamin -bool assign_ExcIEEEAC6A_vamin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC6A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vamin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC6A.ve1 -bool assign_ExcIEEEAC6A_ve1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC6A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ve1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC6A.ve2 -bool assign_ExcIEEEAC6A_ve2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC6A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ve2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC6A.vfelim -bool assign_ExcIEEEAC6A_vfelim(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC6A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vfelim.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC6A.vhmax -bool assign_ExcIEEEAC6A_vhmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC6A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vhmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC6A.vrmax -bool assign_ExcIEEEAC6A_vrmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC6A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC6A.vrmin -bool assign_ExcIEEEAC6A_vrmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC6A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcELIN2.efdbas -bool assign_ExcELIN2_efdbas(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcELIN2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->efdbas.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcELIN2.iefmax -bool assign_ExcELIN2_iefmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcELIN2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->iefmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcELIN2.iefmax2 -bool assign_ExcELIN2_iefmax2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcELIN2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->iefmax2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcELIN2.iefmin -bool assign_ExcELIN2_iefmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcELIN2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->iefmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcELIN2.k1 -bool assign_ExcELIN2_k1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcELIN2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcELIN2.k1ec -bool assign_ExcELIN2_k1ec(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcELIN2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k1ec.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcELIN2.k2 -bool assign_ExcELIN2_k2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcELIN2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcELIN2.k3 -bool assign_ExcELIN2_k3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcELIN2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcELIN2.k4 -bool assign_ExcELIN2_k4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcELIN2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcELIN2.kd1 -bool assign_ExcELIN2_kd1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcELIN2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kd1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcELIN2.ke2 -bool assign_ExcELIN2_ke2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcELIN2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ke2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcELIN2.ketb -bool assign_ExcELIN2_ketb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcELIN2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ketb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcELIN2.pid1max -bool assign_ExcELIN2_pid1max(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcELIN2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pid1max.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcELIN2.seve1 -bool assign_ExcELIN2_seve1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcELIN2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->seve1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcELIN2.seve2 -bool assign_ExcELIN2_seve2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcELIN2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->seve2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcELIN2.tb1 -bool assign_ExcELIN2_tb1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcELIN2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tb1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcELIN2.te -bool assign_ExcELIN2_te(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcELIN2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->te.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcELIN2.te2 -bool assign_ExcELIN2_te2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcELIN2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->te2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcELIN2.ti1 -bool assign_ExcELIN2_ti1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcELIN2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ti1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcELIN2.ti3 -bool assign_ExcELIN2_ti3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcELIN2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ti3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcELIN2.ti4 -bool assign_ExcELIN2_ti4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcELIN2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ti4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcELIN2.tr4 -bool assign_ExcELIN2_tr4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcELIN2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tr4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcELIN2.upmax -bool assign_ExcELIN2_upmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcELIN2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->upmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcELIN2.upmin -bool assign_ExcELIN2_upmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcELIN2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->upmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcELIN2.ve1 -bool assign_ExcELIN2_ve1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcELIN2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ve1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcELIN2.ve2 -bool assign_ExcELIN2_ve2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcELIN2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ve2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcELIN2.xp -bool assign_ExcELIN2_xp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcELIN2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->xp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcSK.efdmax -bool assign_ExcSK_efdmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcSK* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->efdmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcSK.efdmin -bool assign_ExcSK_efdmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcSK* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->efdmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcSK.emax -bool assign_ExcSK_emax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcSK* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->emax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcSK.emin -bool assign_ExcSK_emin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcSK* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->emin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcSK.k -bool assign_ExcSK_k(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcSK* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcSK.k1 -bool assign_ExcSK_k1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcSK* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcSK.k2 -bool assign_ExcSK_k2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcSK* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcSK.kc -bool assign_ExcSK_kc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcSK* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcSK.kce -bool assign_ExcSK_kce(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcSK* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kce.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcSK.kd -bool assign_ExcSK_kd(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcSK* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kd.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcSK.kgob -bool assign_ExcSK_kgob(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcSK* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kgob.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcSK.kp -bool assign_ExcSK_kp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcSK* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcSK.kqi -bool assign_ExcSK_kqi(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcSK* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kqi.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcSK.kqob -bool assign_ExcSK_kqob(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcSK* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kqob.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcSK.kqp -bool assign_ExcSK_kqp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcSK* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kqp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcSK.nq -bool assign_ExcSK_nq(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcSK* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->nq.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcSK.qconoff -bool assign_ExcSK_qconoff(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcSK* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->qconoff; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcSK.qz -bool assign_ExcSK_qz(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcSK* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->qz.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcSK.remote -bool assign_ExcSK_remote(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcSK* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->remote; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcSK.sbase -bool assign_ExcSK_sbase(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcSK* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->sbase.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcSK.tc -bool assign_ExcSK_tc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcSK* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcSK.te -bool assign_ExcSK_te(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcSK* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->te.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcSK.ti -bool assign_ExcSK_ti(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcSK* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ti.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcSK.tp -bool assign_ExcSK_tp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcSK* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcSK.tr -bool assign_ExcSK_tr(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcSK* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tr.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcSK.uimax -bool assign_ExcSK_uimax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcSK* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->uimax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcSK.uimin -bool assign_ExcSK_uimin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcSK* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->uimin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcSK.urmax -bool assign_ExcSK_urmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcSK* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->urmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcSK.urmin -bool assign_ExcSK_urmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcSK* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->urmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcSK.vtmax -bool assign_ExcSK_vtmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcSK* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vtmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcSK.vtmin -bool assign_ExcSK_vtmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcSK* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vtmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcSK.yp -bool assign_ExcSK_yp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcSK* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->yp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST7B.kh -bool assign_ExcIEEEST7B_kh(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST7B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kh.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST7B.kia -bool assign_ExcIEEEST7B_kia(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST7B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kia.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST7B.kl -bool assign_ExcIEEEST7B_kl(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST7B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kl.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST7B.kpa -bool assign_ExcIEEEST7B_kpa(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST7B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kpa.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST7B.oelin -bool assign_ExcIEEEST7B_oelin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST7B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->oelin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST7B.tb -bool assign_ExcIEEEST7B_tb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST7B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST7B.tc -bool assign_ExcIEEEST7B_tc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST7B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST7B.tf -bool assign_ExcIEEEST7B_tf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST7B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST7B.tg -bool assign_ExcIEEEST7B_tg(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST7B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tg.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST7B.tia -bool assign_ExcIEEEST7B_tia(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST7B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tia.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST7B.uelin -bool assign_ExcIEEEST7B_uelin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST7B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->uelin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST7B.vmax -bool assign_ExcIEEEST7B_vmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST7B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST7B.vmin -bool assign_ExcIEEEST7B_vmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST7B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST7B.vrmax -bool assign_ExcIEEEST7B_vrmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST7B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST7B.vrmin -bool assign_ExcIEEEST7B_vrmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST7B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST1A.ilr -bool assign_ExcST1A_ilr(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ilr.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST1A.ka -bool assign_ExcST1A_ka(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ka.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST1A.kc -bool assign_ExcST1A_kc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST1A.kf -bool assign_ExcST1A_kf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST1A.klr -bool assign_ExcST1A_klr(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->klr.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST1A.ta -bool assign_ExcST1A_ta(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ta.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST1A.tb -bool assign_ExcST1A_tb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST1A.tb1 -bool assign_ExcST1A_tb1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tb1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST1A.tc -bool assign_ExcST1A_tc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST1A.tc1 -bool assign_ExcST1A_tc1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tc1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST1A.tf -bool assign_ExcST1A_tf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST1A.vamax -bool assign_ExcST1A_vamax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vamax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST1A.vamin -bool assign_ExcST1A_vamin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vamin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST1A.vimax -bool assign_ExcST1A_vimax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vimax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST1A.vimin -bool assign_ExcST1A_vimin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vimin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST1A.vrmax -bool assign_ExcST1A_vrmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST1A.vrmin -bool assign_ExcST1A_vrmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST1A.xe -bool assign_ExcST1A_xe(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->xe.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST6B.ilr -bool assign_ExcIEEEST6B_ilr(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST6B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ilr.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST6B.kci -bool assign_ExcIEEEST6B_kci(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST6B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kci.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST6B.kff -bool assign_ExcIEEEST6B_kff(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST6B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kff.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST6B.kg -bool assign_ExcIEEEST6B_kg(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST6B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kg.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST6B.kia -bool assign_ExcIEEEST6B_kia(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST6B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kia.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST6B.klr -bool assign_ExcIEEEST6B_klr(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST6B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->klr.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST6B.km -bool assign_ExcIEEEST6B_km(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST6B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->km.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST6B.kpa -bool assign_ExcIEEEST6B_kpa(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST6B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kpa.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST6B.oelin -bool assign_ExcIEEEST6B_oelin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST6B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->oelin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST6B.tg -bool assign_ExcIEEEST6B_tg(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST6B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tg.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST6B.vamax -bool assign_ExcIEEEST6B_vamax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST6B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vamax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST6B.vamin -bool assign_ExcIEEEST6B_vamin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST6B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vamin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST6B.vrmax -bool assign_ExcIEEEST6B_vrmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST6B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST6B.vrmin -bool assign_ExcIEEEST6B_vrmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST6B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC2A.efd1 -bool assign_ExcDC2A_efd1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->efd1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC2A.efd2 -bool assign_ExcDC2A_efd2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->efd2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC2A.exclim -bool assign_ExcDC2A_exclim(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->exclim; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC2A.ka -bool assign_ExcDC2A_ka(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ka.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC2A.ke -bool assign_ExcDC2A_ke(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ke.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC2A.kf -bool assign_ExcDC2A_kf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC2A.ks -bool assign_ExcDC2A_ks(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ks.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC2A.seefd1 -bool assign_ExcDC2A_seefd1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->seefd1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC2A.seefd2 -bool assign_ExcDC2A_seefd2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->seefd2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC2A.ta -bool assign_ExcDC2A_ta(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ta.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC2A.tb -bool assign_ExcDC2A_tb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC2A.tc -bool assign_ExcDC2A_tc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC2A.te -bool assign_ExcDC2A_te(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->te.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC2A.tf -bool assign_ExcDC2A_tf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC2A.tf1 -bool assign_ExcDC2A_tf1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tf1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC2A.vrmax -bool assign_ExcDC2A_vrmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC2A.vrmin -bool assign_ExcDC2A_vrmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcDC2A.vtlim -bool assign_ExcDC2A_vtlim(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcDC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vtlim; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcOEX3T.e1 -bool assign_ExcOEX3T_e1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcOEX3T* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->e1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcOEX3T.e2 -bool assign_ExcOEX3T_e2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcOEX3T* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->e2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcOEX3T.ka -bool assign_ExcOEX3T_ka(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcOEX3T* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ka.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcOEX3T.kc -bool assign_ExcOEX3T_kc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcOEX3T* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcOEX3T.kd -bool assign_ExcOEX3T_kd(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcOEX3T* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kd.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcOEX3T.ke -bool assign_ExcOEX3T_ke(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcOEX3T* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ke.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcOEX3T.kf -bool assign_ExcOEX3T_kf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcOEX3T* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcOEX3T.see1 -bool assign_ExcOEX3T_see1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcOEX3T* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->see1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcOEX3T.see2 -bool assign_ExcOEX3T_see2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcOEX3T* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->see2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcOEX3T.t1 -bool assign_ExcOEX3T_t1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcOEX3T* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcOEX3T.t2 -bool assign_ExcOEX3T_t2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcOEX3T* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcOEX3T.t3 -bool assign_ExcOEX3T_t3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcOEX3T* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcOEX3T.t4 -bool assign_ExcOEX3T_t4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcOEX3T* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcOEX3T.t5 -bool assign_ExcOEX3T_t5(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcOEX3T* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t5.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcOEX3T.t6 -bool assign_ExcOEX3T_t6(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcOEX3T* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t6.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcOEX3T.te -bool assign_ExcOEX3T_te(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcOEX3T* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->te.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcOEX3T.tf -bool assign_ExcOEX3T_tf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcOEX3T* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcOEX3T.vrmax -bool assign_ExcOEX3T_vrmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcOEX3T* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcOEX3T.vrmin -bool assign_ExcOEX3T_vrmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcOEX3T* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST5B.kc -bool assign_ExcIEEEST5B_kc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST5B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST5B.kr -bool assign_ExcIEEEST5B_kr(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST5B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kr.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST5B.t1 -bool assign_ExcIEEEST5B_t1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST5B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST5B.tb1 -bool assign_ExcIEEEST5B_tb1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST5B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tb1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST5B.tb2 -bool assign_ExcIEEEST5B_tb2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST5B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tb2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST5B.tc1 -bool assign_ExcIEEEST5B_tc1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST5B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tc1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST5B.tc2 -bool assign_ExcIEEEST5B_tc2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST5B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tc2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST5B.tob1 -bool assign_ExcIEEEST5B_tob1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST5B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tob1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST5B.tob2 -bool assign_ExcIEEEST5B_tob2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST5B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tob2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST5B.toc1 -bool assign_ExcIEEEST5B_toc1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST5B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->toc1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST5B.toc2 -bool assign_ExcIEEEST5B_toc2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST5B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->toc2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST5B.tub1 -bool assign_ExcIEEEST5B_tub1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST5B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tub1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST5B.tub2 -bool assign_ExcIEEEST5B_tub2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST5B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tub2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST5B.tuc1 -bool assign_ExcIEEEST5B_tuc1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST5B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tuc1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST5B.tuc2 -bool assign_ExcIEEEST5B_tuc2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST5B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tuc2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST5B.vrmax -bool assign_ExcIEEEST5B_vrmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST5B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEST5B.vrmin -bool assign_ExcIEEEST5B_vrmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEST5B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR4.imul -bool assign_ExcAVR4_imul(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->imul; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR4.ka -bool assign_ExcAVR4_ka(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ka; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR4.ke -bool assign_ExcAVR4_ke(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ke; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR4.kif -bool assign_ExcAVR4_kif(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kif; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR4.t1 -bool assign_ExcAVR4_t1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR4.t1if -bool assign_ExcAVR4_t1if(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t1if.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR4.t2 -bool assign_ExcAVR4_t2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR4.t3 -bool assign_ExcAVR4_t3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR4.t4 -bool assign_ExcAVR4_t4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR4.tif -bool assign_ExcAVR4_tif(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tif.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR4.vfmn -bool assign_ExcAVR4_vfmn(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vfmn.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR4.vfmx -bool assign_ExcAVR4_vfmx(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vfmx.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR4.vrmn -bool assign_ExcAVR4_vrmn(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmn.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR4.vrmx -bool assign_ExcAVR4_vrmx(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmx.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcSEXS.efdmax -bool assign_ExcSEXS_efdmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcSEXS* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->efdmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcSEXS.efdmin -bool assign_ExcSEXS_efdmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcSEXS* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->efdmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcSEXS.emax -bool assign_ExcSEXS_emax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcSEXS* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->emax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcSEXS.emin -bool assign_ExcSEXS_emin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcSEXS* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->emin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcSEXS.k -bool assign_ExcSEXS_k(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcSEXS* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcSEXS.kc -bool assign_ExcSEXS_kc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcSEXS* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcSEXS.tatb -bool assign_ExcSEXS_tatb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcSEXS* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tatb; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcSEXS.tb -bool assign_ExcSEXS_tb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcSEXS* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcSEXS.tc -bool assign_ExcSEXS_tc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcSEXS* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcSEXS.te -bool assign_ExcSEXS_te(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcSEXS* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->te.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEDC4B.efd1 -bool assign_ExcIEEEDC4B_efd1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->efd1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEDC4B.efd2 -bool assign_ExcIEEEDC4B_efd2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->efd2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEDC4B.ka -bool assign_ExcIEEEDC4B_ka(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ka.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEDC4B.kd -bool assign_ExcIEEEDC4B_kd(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kd.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEDC4B.ke -bool assign_ExcIEEEDC4B_ke(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ke.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEDC4B.kf -bool assign_ExcIEEEDC4B_kf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEDC4B.ki -bool assign_ExcIEEEDC4B_ki(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ki.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEDC4B.kp -bool assign_ExcIEEEDC4B_kp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEDC4B.oelin -bool assign_ExcIEEEDC4B_oelin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->oelin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEDC4B.seefd1 -bool assign_ExcIEEEDC4B_seefd1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->seefd1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEDC4B.seefd2 -bool assign_ExcIEEEDC4B_seefd2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->seefd2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEDC4B.ta -bool assign_ExcIEEEDC4B_ta(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ta.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEDC4B.td -bool assign_ExcIEEEDC4B_td(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->td.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEDC4B.te -bool assign_ExcIEEEDC4B_te(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->te.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEDC4B.tf -bool assign_ExcIEEEDC4B_tf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEDC4B.uelin -bool assign_ExcIEEEDC4B_uelin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->uelin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEDC4B.vemin -bool assign_ExcIEEEDC4B_vemin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vemin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEDC4B.vrmax -bool assign_ExcIEEEDC4B_vrmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEDC4B.vrmin -bool assign_ExcIEEEDC4B_vrmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEDC4B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR7.a1 -bool assign_ExcAVR7_a1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR7* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->a1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR7.a2 -bool assign_ExcAVR7_a2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR7* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->a2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR7.a3 -bool assign_ExcAVR7_a3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR7* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->a3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR7.a4 -bool assign_ExcAVR7_a4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR7* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->a4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR7.a5 -bool assign_ExcAVR7_a5(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR7* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->a5.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR7.a6 -bool assign_ExcAVR7_a6(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR7* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->a6.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR7.k1 -bool assign_ExcAVR7_k1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR7* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR7.k3 -bool assign_ExcAVR7_k3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR7* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR7.k5 -bool assign_ExcAVR7_k5(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR7* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k5.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR7.t1 -bool assign_ExcAVR7_t1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR7* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR7.t2 -bool assign_ExcAVR7_t2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR7* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR7.t3 -bool assign_ExcAVR7_t3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR7* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR7.t4 -bool assign_ExcAVR7_t4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR7* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR7.t5 -bool assign_ExcAVR7_t5(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR7* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t5.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR7.t6 -bool assign_ExcAVR7_t6(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR7* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t6.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR7.vmax1 -bool assign_ExcAVR7_vmax1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR7* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vmax1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR7.vmax3 -bool assign_ExcAVR7_vmax3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR7* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vmax3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR7.vmax5 -bool assign_ExcAVR7_vmax5(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR7* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vmax5.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR7.vmin1 -bool assign_ExcAVR7_vmin1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR7* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vmin1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR7.vmin3 -bool assign_ExcAVR7_vmin3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR7* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vmin3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR7.vmin5 -bool assign_ExcAVR7_vmin5(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR7* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vmin5.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcPIC.e1 -bool assign_ExcPIC_e1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcPIC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->e1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcPIC.e2 -bool assign_ExcPIC_e2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcPIC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->e2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcPIC.efdmax -bool assign_ExcPIC_efdmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcPIC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->efdmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcPIC.efdmin -bool assign_ExcPIC_efdmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcPIC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->efdmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcPIC.ka -bool assign_ExcPIC_ka(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcPIC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ka.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcPIC.kc -bool assign_ExcPIC_kc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcPIC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcPIC.ke -bool assign_ExcPIC_ke(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcPIC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ke.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcPIC.kf -bool assign_ExcPIC_kf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcPIC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcPIC.ki -bool assign_ExcPIC_ki(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcPIC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ki.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcPIC.kp -bool assign_ExcPIC_kp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcPIC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcPIC.se1 -bool assign_ExcPIC_se1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcPIC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->se1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcPIC.se2 -bool assign_ExcPIC_se2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcPIC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->se2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcPIC.ta1 -bool assign_ExcPIC_ta1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcPIC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ta1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcPIC.ta2 -bool assign_ExcPIC_ta2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcPIC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ta2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcPIC.ta3 -bool assign_ExcPIC_ta3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcPIC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ta3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcPIC.ta4 -bool assign_ExcPIC_ta4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcPIC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ta4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcPIC.te -bool assign_ExcPIC_te(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcPIC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->te.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcPIC.tf1 -bool assign_ExcPIC_tf1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcPIC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tf1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcPIC.tf2 -bool assign_ExcPIC_tf2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcPIC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tf2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcPIC.vr1 -bool assign_ExcPIC_vr1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcPIC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vr1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcPIC.vr2 -bool assign_ExcPIC_vr2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcPIC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vr2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcPIC.vrmax -bool assign_ExcPIC_vrmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcPIC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcPIC.vrmin -bool assign_ExcPIC_vrmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcPIC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST6B.ilr -bool assign_ExcST6B_ilr(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST6B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ilr.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST6B.k1 -bool assign_ExcST6B_k1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST6B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST6B.kcl -bool assign_ExcST6B_kcl(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST6B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kcl.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST6B.kff -bool assign_ExcST6B_kff(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST6B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kff.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST6B.kg -bool assign_ExcST6B_kg(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST6B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kg.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST6B.kia -bool assign_ExcST6B_kia(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST6B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kia.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST6B.klr -bool assign_ExcST6B_klr(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST6B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->klr.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST6B.km -bool assign_ExcST6B_km(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST6B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->km.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST6B.kpa -bool assign_ExcST6B_kpa(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST6B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kpa.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST6B.kvd -bool assign_ExcST6B_kvd(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST6B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kvd.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST6B.oelin -bool assign_ExcST6B_oelin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST6B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->oelin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST6B.tg -bool assign_ExcST6B_tg(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST6B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tg.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST6B.ts -bool assign_ExcST6B_ts(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST6B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ts.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST6B.tvd -bool assign_ExcST6B_tvd(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST6B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tvd.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST6B.vamax -bool assign_ExcST6B_vamax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST6B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vamax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST6B.vamin -bool assign_ExcST6B_vamin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST6B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vamin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST6B.vilim -bool assign_ExcST6B_vilim(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST6B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vilim; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST6B.vimax -bool assign_ExcST6B_vimax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST6B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vimax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST6B.vimin -bool assign_ExcST6B_vimin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST6B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vimin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST6B.vmult -bool assign_ExcST6B_vmult(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST6B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vmult; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST6B.vrmax -bool assign_ExcST6B_vrmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST6B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST6B.vrmin -bool assign_ExcST6B_vrmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST6B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST6B.xc -bool assign_ExcST6B_xc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST6B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->xc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC3A.efdn -bool assign_ExcIEEEAC3A_efdn(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->efdn.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC3A.ka -bool assign_ExcIEEEAC3A_ka(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ka.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC3A.kc -bool assign_ExcIEEEAC3A_kc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC3A.kd -bool assign_ExcIEEEAC3A_kd(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kd.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC3A.ke -bool assign_ExcIEEEAC3A_ke(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ke.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC3A.kf -bool assign_ExcIEEEAC3A_kf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC3A.kn -bool assign_ExcIEEEAC3A_kn(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kn.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC3A.kr -bool assign_ExcIEEEAC3A_kr(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kr.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC3A.seve1 -bool assign_ExcIEEEAC3A_seve1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->seve1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC3A.seve2 -bool assign_ExcIEEEAC3A_seve2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->seve2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC3A.ta -bool assign_ExcIEEEAC3A_ta(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ta.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC3A.tb -bool assign_ExcIEEEAC3A_tb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC3A.tc -bool assign_ExcIEEEAC3A_tc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC3A.te -bool assign_ExcIEEEAC3A_te(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->te.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC3A.tf -bool assign_ExcIEEEAC3A_tf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC3A.vamax -bool assign_ExcIEEEAC3A_vamax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vamax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC3A.vamin -bool assign_ExcIEEEAC3A_vamin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vamin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC3A.ve1 -bool assign_ExcIEEEAC3A_ve1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ve1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC3A.ve2 -bool assign_ExcIEEEAC3A_ve2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ve2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC3A.vemin -bool assign_ExcIEEEAC3A_vemin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vemin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcIEEEAC3A.vfemax -bool assign_ExcIEEEAC3A_vfemax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcIEEEAC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vfemax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR1.e1 -bool assign_ExcAVR1_e1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->e1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR1.e2 -bool assign_ExcAVR1_e2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->e2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR1.ka -bool assign_ExcAVR1_ka(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ka; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR1.kf -bool assign_ExcAVR1_kf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR1.se1 -bool assign_ExcAVR1_se1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->se1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR1.se2 -bool assign_ExcAVR1_se2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->se2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR1.ta -bool assign_ExcAVR1_ta(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ta.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR1.tb -bool assign_ExcAVR1_tb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR1.te -bool assign_ExcAVR1_te(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->te.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR1.tf -bool assign_ExcAVR1_tf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR1.vrmn -bool assign_ExcAVR1_vrmn(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmn.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAVR1.vrmx -bool assign_ExcAVR1_vrmx(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAVR1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmx.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST3A.efdmax -bool assign_ExcST3A_efdmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->efdmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST3A.kc -bool assign_ExcST3A_kc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST3A.kg -bool assign_ExcST3A_kg(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kg.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST3A.ki -bool assign_ExcST3A_ki(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ki.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST3A.kj -bool assign_ExcST3A_kj(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kj.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST3A.km -bool assign_ExcST3A_km(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->km.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST3A.kp -bool assign_ExcST3A_kp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST3A.ks -bool assign_ExcST3A_ks(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ks.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST3A.ks1 -bool assign_ExcST3A_ks1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ks1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST3A.tb -bool assign_ExcST3A_tb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST3A.tc -bool assign_ExcST3A_tc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST3A.thetap -bool assign_ExcST3A_thetap(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->thetap.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST3A.tm -bool assign_ExcST3A_tm(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tm.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST3A.vbmax -bool assign_ExcST3A_vbmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vbmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST3A.vgmax -bool assign_ExcST3A_vgmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vgmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST3A.vimax -bool assign_ExcST3A_vimax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vimax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST3A.vimin -bool assign_ExcST3A_vimin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vimin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST3A.vrmax -bool assign_ExcST3A_vrmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST3A.vrmin -bool assign_ExcST3A_vrmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcST3A.xl -bool assign_ExcST3A_xl(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcST3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->xl.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC8B.inlim -bool assign_ExcAC8B_inlim(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC8B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->inlim; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC8B.ka -bool assign_ExcAC8B_ka(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC8B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ka.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC8B.kc -bool assign_ExcAC8B_kc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC8B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC8B.kd -bool assign_ExcAC8B_kd(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC8B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kd.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC8B.kdr -bool assign_ExcAC8B_kdr(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC8B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kdr.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC8B.ke -bool assign_ExcAC8B_ke(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC8B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ke.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC8B.kir -bool assign_ExcAC8B_kir(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC8B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kir.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC8B.kpr -bool assign_ExcAC8B_kpr(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC8B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kpr.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC8B.ks -bool assign_ExcAC8B_ks(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC8B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ks.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC8B.pidlim -bool assign_ExcAC8B_pidlim(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC8B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pidlim; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC8B.seve1 -bool assign_ExcAC8B_seve1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC8B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->seve1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC8B.seve2 -bool assign_ExcAC8B_seve2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC8B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->seve2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC8B.ta -bool assign_ExcAC8B_ta(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC8B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ta.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC8B.tdr -bool assign_ExcAC8B_tdr(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC8B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tdr.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC8B.te -bool assign_ExcAC8B_te(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC8B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->te.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC8B.telim -bool assign_ExcAC8B_telim(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC8B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->telim; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC8B.ve1 -bool assign_ExcAC8B_ve1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC8B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ve1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC8B.ve2 -bool assign_ExcAC8B_ve2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC8B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ve2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC8B.vemin -bool assign_ExcAC8B_vemin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC8B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vemin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC8B.vfemax -bool assign_ExcAC8B_vfemax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC8B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vfemax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC8B.vimax -bool assign_ExcAC8B_vimax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC8B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vimax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC8B.vimin -bool assign_ExcAC8B_vimin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC8B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vimin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC8B.vpidmax -bool assign_ExcAC8B_vpidmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC8B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vpidmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC8B.vpidmin -bool assign_ExcAC8B_vpidmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC8B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vpidmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC8B.vrmax -bool assign_ExcAC8B_vrmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC8B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC8B.vrmin -bool assign_ExcAC8B_vrmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC8B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC8B.vtmult -bool assign_ExcAC8B_vtmult(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC8B* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vtmult; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC6A.ka -bool assign_ExcAC6A_ka(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC6A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ka.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC6A.kc -bool assign_ExcAC6A_kc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC6A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC6A.kd -bool assign_ExcAC6A_kd(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC6A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kd.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC6A.ke -bool assign_ExcAC6A_ke(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC6A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ke.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC6A.kh -bool assign_ExcAC6A_kh(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC6A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kh.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC6A.ks -bool assign_ExcAC6A_ks(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC6A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ks.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC6A.seve1 -bool assign_ExcAC6A_seve1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC6A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->seve1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC6A.seve2 -bool assign_ExcAC6A_seve2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC6A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->seve2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC6A.ta -bool assign_ExcAC6A_ta(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC6A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ta.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC6A.tb -bool assign_ExcAC6A_tb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC6A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC6A.tc -bool assign_ExcAC6A_tc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC6A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC6A.te -bool assign_ExcAC6A_te(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC6A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->te.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC6A.th -bool assign_ExcAC6A_th(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC6A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->th.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC6A.tj -bool assign_ExcAC6A_tj(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC6A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tj.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC6A.tk -bool assign_ExcAC6A_tk(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC6A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tk.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC6A.vamax -bool assign_ExcAC6A_vamax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC6A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vamax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC6A.vamin -bool assign_ExcAC6A_vamin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC6A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vamin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC6A.ve1 -bool assign_ExcAC6A_ve1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC6A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ve1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC6A.ve2 -bool assign_ExcAC6A_ve2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC6A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ve2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC6A.vfelim -bool assign_ExcAC6A_vfelim(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC6A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vfelim.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC6A.vhmax -bool assign_ExcAC6A_vhmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC6A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vhmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC6A.vrmax -bool assign_ExcAC6A_vrmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC6A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExcAC6A.vrmin -bool assign_ExcAC6A_vrmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::ExcitationSystemDynamics::ExcAC6A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vrmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:MechLoad1.a -bool assign_MechLoad1_a(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::MechanicalLoadDynamics::MechLoad1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->a; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:MechLoad1.b -bool assign_MechLoad1_b(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::MechanicalLoadDynamics::MechLoad1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->b; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:MechLoad1.d -bool assign_MechLoad1_d(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::MechanicalLoadDynamics::MechLoad1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->d; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:MechLoad1.e -bool assign_MechLoad1_e(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::MechanicalLoadDynamics::MechLoad1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->e; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PFVArType1IEEEPFController.ovex -bool assign_PFVArType1IEEEPFController_ovex(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PFVArControllerType1Dynamics::PFVArType1IEEEPFController* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ovex; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PFVArType1IEEEPFController.tpfc -bool assign_PFVArType1IEEEPFController_tpfc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PFVArControllerType1Dynamics::PFVArType1IEEEPFController* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tpfc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PFVArType1IEEEPFController.vitmin -bool assign_PFVArType1IEEEPFController_vitmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PFVArControllerType1Dynamics::PFVArType1IEEEPFController* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vitmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PFVArType1IEEEPFController.vpf -bool assign_PFVArType1IEEEPFController_vpf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PFVArControllerType1Dynamics::PFVArType1IEEEPFController* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vpf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PFVArType1IEEEPFController.vpfcbw -bool assign_PFVArType1IEEEPFController_vpfcbw(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PFVArControllerType1Dynamics::PFVArType1IEEEPFController* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vpfcbw; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PFVArType1IEEEPFController.vpfref -bool assign_PFVArType1IEEEPFController_vpfref(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PFVArControllerType1Dynamics::PFVArType1IEEEPFController* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vpfref.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PFVArType1IEEEPFController.vvtmax -bool assign_PFVArType1IEEEPFController_vvtmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PFVArControllerType1Dynamics::PFVArType1IEEEPFController* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vvtmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PFVArType1IEEEPFController.vvtmin -bool assign_PFVArType1IEEEPFController_vvtmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PFVArControllerType1Dynamics::PFVArType1IEEEPFController* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vvtmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PFVArType1IEEEVArController.tvarc -bool assign_PFVArType1IEEEVArController_tvarc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PFVArControllerType1Dynamics::PFVArType1IEEEVArController* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tvarc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PFVArType1IEEEVArController.vvar -bool assign_PFVArType1IEEEVArController_vvar(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PFVArControllerType1Dynamics::PFVArType1IEEEVArController* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vvar.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PFVArType1IEEEVArController.vvarcbw -bool assign_PFVArType1IEEEVArController_vvarcbw(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PFVArControllerType1Dynamics::PFVArType1IEEEVArController* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vvarcbw; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PFVArType1IEEEVArController.vvarref -bool assign_PFVArType1IEEEVArController_vvarref(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PFVArControllerType1Dynamics::PFVArType1IEEEVArController* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vvarref.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PFVArType1IEEEVArController.vvtmax -bool assign_PFVArType1IEEEVArController_vvtmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PFVArControllerType1Dynamics::PFVArType1IEEEVArController* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vvtmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PFVArType1IEEEVArController.vvtmin -bool assign_PFVArType1IEEEVArController_vvtmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PFVArControllerType1Dynamics::PFVArType1IEEEVArController* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vvtmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:AsynchronousMachineTimeConstantReactance.tpo -bool assign_AsynchronousMachineTimeConstantReactance_tpo(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::AsynchronousMachineDynamics::AsynchronousMachineTimeConstantReactance* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tpo.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:AsynchronousMachineTimeConstantReactance.tppo -bool assign_AsynchronousMachineTimeConstantReactance_tppo(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::AsynchronousMachineDynamics::AsynchronousMachineTimeConstantReactance* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tppo.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:AsynchronousMachineTimeConstantReactance.xp -bool assign_AsynchronousMachineTimeConstantReactance_xp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::AsynchronousMachineDynamics::AsynchronousMachineTimeConstantReactance* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->xp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:AsynchronousMachineTimeConstantReactance.xpp -bool assign_AsynchronousMachineTimeConstantReactance_xpp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::AsynchronousMachineDynamics::AsynchronousMachineTimeConstantReactance* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->xpp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:AsynchronousMachineTimeConstantReactance.xs -bool assign_AsynchronousMachineTimeConstantReactance_xs(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::AsynchronousMachineDynamics::AsynchronousMachineTimeConstantReactance* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->xs.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:AsynchronousMachineEquivalentCircuit.rr1 -bool assign_AsynchronousMachineEquivalentCircuit_rr1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::AsynchronousMachineDynamics::AsynchronousMachineEquivalentCircuit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->rr1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:AsynchronousMachineEquivalentCircuit.rr2 -bool assign_AsynchronousMachineEquivalentCircuit_rr2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::AsynchronousMachineDynamics::AsynchronousMachineEquivalentCircuit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->rr2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:AsynchronousMachineEquivalentCircuit.xlr1 -bool assign_AsynchronousMachineEquivalentCircuit_xlr1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::AsynchronousMachineDynamics::AsynchronousMachineEquivalentCircuit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->xlr1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:AsynchronousMachineEquivalentCircuit.xlr2 -bool assign_AsynchronousMachineEquivalentCircuit_xlr2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::AsynchronousMachineDynamics::AsynchronousMachineEquivalentCircuit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->xlr2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:AsynchronousMachineEquivalentCircuit.xm -bool assign_AsynchronousMachineEquivalentCircuit_xm(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::AsynchronousMachineDynamics::AsynchronousMachineEquivalentCircuit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->xm.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:DiscExcContIEEEDEC3A.tdr -bool assign_DiscExcContIEEEDEC3A_tdr(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::DiscontinuousExcitationControlDynamics::DiscExcContIEEEDEC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tdr.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:DiscExcContIEEEDEC3A.vtmin -bool assign_DiscExcContIEEEDEC3A_vtmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::DiscontinuousExcitationControlDynamics::DiscExcContIEEEDEC3A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vtmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:DiscExcContIEEEDEC2A.td1 -bool assign_DiscExcContIEEEDEC2A_td1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::DiscontinuousExcitationControlDynamics::DiscExcContIEEEDEC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->td1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:DiscExcContIEEEDEC2A.td2 -bool assign_DiscExcContIEEEDEC2A_td2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::DiscontinuousExcitationControlDynamics::DiscExcContIEEEDEC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->td2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:DiscExcContIEEEDEC2A.vdmax -bool assign_DiscExcContIEEEDEC2A_vdmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::DiscontinuousExcitationControlDynamics::DiscExcContIEEEDEC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vdmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:DiscExcContIEEEDEC2A.vdmin -bool assign_DiscExcContIEEEDEC2A_vdmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::DiscontinuousExcitationControlDynamics::DiscExcContIEEEDEC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vdmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:DiscExcContIEEEDEC2A.vk -bool assign_DiscExcContIEEEDEC2A_vk(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::DiscontinuousExcitationControlDynamics::DiscExcContIEEEDEC2A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vk.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:DiscExcContIEEEDEC1A.esc -bool assign_DiscExcContIEEEDEC1A_esc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::DiscontinuousExcitationControlDynamics::DiscExcContIEEEDEC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->esc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:DiscExcContIEEEDEC1A.kan -bool assign_DiscExcContIEEEDEC1A_kan(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::DiscontinuousExcitationControlDynamics::DiscExcContIEEEDEC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kan.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:DiscExcContIEEEDEC1A.ketl -bool assign_DiscExcContIEEEDEC1A_ketl(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::DiscontinuousExcitationControlDynamics::DiscExcContIEEEDEC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ketl.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:DiscExcContIEEEDEC1A.tan -bool assign_DiscExcContIEEEDEC1A_tan(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::DiscontinuousExcitationControlDynamics::DiscExcContIEEEDEC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tan.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:DiscExcContIEEEDEC1A.td -bool assign_DiscExcContIEEEDEC1A_td(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::DiscontinuousExcitationControlDynamics::DiscExcContIEEEDEC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->td.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:DiscExcContIEEEDEC1A.tl1 -bool assign_DiscExcContIEEEDEC1A_tl1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::DiscontinuousExcitationControlDynamics::DiscExcContIEEEDEC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tl1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:DiscExcContIEEEDEC1A.tl2 -bool assign_DiscExcContIEEEDEC1A_tl2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::DiscontinuousExcitationControlDynamics::DiscExcContIEEEDEC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tl2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:DiscExcContIEEEDEC1A.tw5 -bool assign_DiscExcContIEEEDEC1A_tw5(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::DiscontinuousExcitationControlDynamics::DiscExcContIEEEDEC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tw5.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:DiscExcContIEEEDEC1A.val -bool assign_DiscExcContIEEEDEC1A_val(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::DiscontinuousExcitationControlDynamics::DiscExcContIEEEDEC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->val.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:DiscExcContIEEEDEC1A.vanmax -bool assign_DiscExcContIEEEDEC1A_vanmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::DiscontinuousExcitationControlDynamics::DiscExcContIEEEDEC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vanmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:DiscExcContIEEEDEC1A.vomax -bool assign_DiscExcContIEEEDEC1A_vomax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::DiscontinuousExcitationControlDynamics::DiscExcContIEEEDEC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vomax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:DiscExcContIEEEDEC1A.vomin -bool assign_DiscExcContIEEEDEC1A_vomin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::DiscontinuousExcitationControlDynamics::DiscExcContIEEEDEC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vomin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:DiscExcContIEEEDEC1A.vsmax -bool assign_DiscExcContIEEEDEC1A_vsmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::DiscontinuousExcitationControlDynamics::DiscExcContIEEEDEC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vsmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:DiscExcContIEEEDEC1A.vsmin -bool assign_DiscExcContIEEEDEC1A_vsmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::DiscontinuousExcitationControlDynamics::DiscExcContIEEEDEC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vsmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:DiscExcContIEEEDEC1A.vtc -bool assign_DiscExcContIEEEDEC1A_vtc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::DiscontinuousExcitationControlDynamics::DiscExcContIEEEDEC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vtc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:DiscExcContIEEEDEC1A.vtlmt -bool assign_DiscExcContIEEEDEC1A_vtlmt(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::DiscontinuousExcitationControlDynamics::DiscExcContIEEEDEC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vtlmt.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:DiscExcContIEEEDEC1A.vtm -bool assign_DiscExcContIEEEDEC1A_vtm(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::DiscontinuousExcitationControlDynamics::DiscExcContIEEEDEC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vtm.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:DiscExcContIEEEDEC1A.vtn -bool assign_DiscExcContIEEEDEC1A_vtn(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::DiscontinuousExcitationControlDynamics::DiscExcContIEEEDEC1A* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vtn.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamSGO.k1 -bool assign_GovSteamSGO_k1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamSGO* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamSGO.k2 -bool assign_GovSteamSGO_k2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamSGO* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamSGO.k3 -bool assign_GovSteamSGO_k3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamSGO* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamSGO.mwbase -bool assign_GovSteamSGO_mwbase(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamSGO* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->mwbase.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamSGO.pmax -bool assign_GovSteamSGO_pmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamSGO* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamSGO.pmin -bool assign_GovSteamSGO_pmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamSGO* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamSGO.t1 -bool assign_GovSteamSGO_t1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamSGO* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamSGO.t2 -bool assign_GovSteamSGO_t2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamSGO* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamSGO.t3 -bool assign_GovSteamSGO_t3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamSGO* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamSGO.t4 -bool assign_GovSteamSGO_t4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamSGO* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamSGO.t5 -bool assign_GovSteamSGO_t5(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamSGO* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t5.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamSGO.t6 -bool assign_GovSteamSGO_t6(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamSGO* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t6.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteam1.db1 -bool assign_GovSteam1_db1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteam1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->db1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteam1.db2 -bool assign_GovSteam1_db2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteam1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->db2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteam1.eps -bool assign_GovSteam1_eps(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteam1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->eps.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteam1.gv1 -bool assign_GovSteam1_gv1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteam1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gv1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteam1.gv2 -bool assign_GovSteam1_gv2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteam1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gv2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteam1.gv3 -bool assign_GovSteam1_gv3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteam1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gv3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteam1.gv4 -bool assign_GovSteam1_gv4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteam1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gv4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteam1.gv5 -bool assign_GovSteam1_gv5(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteam1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gv5.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteam1.gv6 -bool assign_GovSteam1_gv6(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteam1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gv6.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteam1.k -bool assign_GovSteam1_k(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteam1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteam1.k1 -bool assign_GovSteam1_k1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteam1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteam1.k2 -bool assign_GovSteam1_k2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteam1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteam1.k3 -bool assign_GovSteam1_k3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteam1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteam1.k4 -bool assign_GovSteam1_k4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteam1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteam1.k5 -bool assign_GovSteam1_k5(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteam1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteam1.k6 -bool assign_GovSteam1_k6(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteam1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k6; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteam1.k7 -bool assign_GovSteam1_k7(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteam1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k7; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteam1.k8 -bool assign_GovSteam1_k8(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteam1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k8; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteam1.mwbase -bool assign_GovSteam1_mwbase(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteam1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->mwbase.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteam1.pgv1 -bool assign_GovSteam1_pgv1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteam1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pgv1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteam1.pgv2 -bool assign_GovSteam1_pgv2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteam1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pgv2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteam1.pgv3 -bool assign_GovSteam1_pgv3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteam1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pgv3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteam1.pgv4 -bool assign_GovSteam1_pgv4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteam1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pgv4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteam1.pgv5 -bool assign_GovSteam1_pgv5(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteam1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pgv5.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteam1.pgv6 -bool assign_GovSteam1_pgv6(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteam1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pgv6.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteam1.pmax -bool assign_GovSteam1_pmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteam1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteam1.pmin -bool assign_GovSteam1_pmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteam1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteam1.sdb1 -bool assign_GovSteam1_sdb1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteam1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->sdb1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteam1.sdb2 -bool assign_GovSteam1_sdb2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteam1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->sdb2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteam1.t1 -bool assign_GovSteam1_t1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteam1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteam1.t2 -bool assign_GovSteam1_t2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteam1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteam1.t3 -bool assign_GovSteam1_t3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteam1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteam1.t4 -bool assign_GovSteam1_t4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteam1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteam1.t5 -bool assign_GovSteam1_t5(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteam1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t5.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteam1.t6 -bool assign_GovSteam1_t6(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteam1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t6.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteam1.t7 -bool assign_GovSteam1_t7(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteam1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t7.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteam1.uc -bool assign_GovSteam1_uc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteam1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->uc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteam1.uo -bool assign_GovSteam1_uo(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteam1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->uo; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteam1.valve -bool assign_GovSteam1_valve(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteam1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->valve; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamEU.chc -bool assign_GovSteamEU_chc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamEU* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->chc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamEU.cho -bool assign_GovSteamEU_cho(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamEU* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->cho; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamEU.cic -bool assign_GovSteamEU_cic(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamEU* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->cic.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamEU.cio -bool assign_GovSteamEU_cio(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamEU* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->cio.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamEU.db1 -bool assign_GovSteamEU_db1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamEU* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->db1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamEU.db2 -bool assign_GovSteamEU_db2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamEU* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->db2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamEU.hhpmax -bool assign_GovSteamEU_hhpmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamEU* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->hhpmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamEU.ke -bool assign_GovSteamEU_ke(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamEU* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ke.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamEU.kfcor -bool assign_GovSteamEU_kfcor(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamEU* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kfcor.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamEU.khp -bool assign_GovSteamEU_khp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamEU* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->khp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamEU.klp -bool assign_GovSteamEU_klp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamEU* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->klp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamEU.kwcor -bool assign_GovSteamEU_kwcor(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamEU* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kwcor.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamEU.mwbase -bool assign_GovSteamEU_mwbase(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamEU* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->mwbase.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamEU.pmax -bool assign_GovSteamEU_pmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamEU* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamEU.prhmax -bool assign_GovSteamEU_prhmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamEU* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->prhmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamEU.simx -bool assign_GovSteamEU_simx(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamEU* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->simx.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamEU.tb -bool assign_GovSteamEU_tb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamEU* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamEU.tdp -bool assign_GovSteamEU_tdp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamEU* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tdp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamEU.ten -bool assign_GovSteamEU_ten(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamEU* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ten.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamEU.tf -bool assign_GovSteamEU_tf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamEU* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamEU.tfp -bool assign_GovSteamEU_tfp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamEU* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tfp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamEU.thp -bool assign_GovSteamEU_thp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamEU* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->thp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamEU.tip -bool assign_GovSteamEU_tip(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamEU* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tip.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamEU.tlp -bool assign_GovSteamEU_tlp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamEU* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tlp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamEU.tp -bool assign_GovSteamEU_tp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamEU* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamEU.trh -bool assign_GovSteamEU_trh(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamEU* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->trh.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamEU.tvhp -bool assign_GovSteamEU_tvhp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamEU* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tvhp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamEU.tvip -bool assign_GovSteamEU_tvip(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamEU* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tvip.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamEU.tw -bool assign_GovSteamEU_tw(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamEU* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tw.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamEU.wfmax -bool assign_GovSteamEU_wfmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamEU* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->wfmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamEU.wfmin -bool assign_GovSteamEU_wfmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamEU* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->wfmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamEU.wmax1 -bool assign_GovSteamEU_wmax1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamEU* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->wmax1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamEU.wmax2 -bool assign_GovSteamEU_wmax2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamEU* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->wmax2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamEU.wwmax -bool assign_GovSteamEU_wwmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamEU* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->wwmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamEU.wwmin -bool assign_GovSteamEU_wwmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamEU* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->wwmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPID2.atw -bool assign_GovHydroPID2_atw(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPID2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->atw.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPID2.d -bool assign_GovHydroPID2_d(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPID2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->d.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPID2.feedbackSignal -bool assign_GovHydroPID2_feedbackSignal(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPID2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->feedbackSignal; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPID2.g0 -bool assign_GovHydroPID2_g0(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPID2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->g0.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPID2.g1 -bool assign_GovHydroPID2_g1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPID2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->g1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPID2.g2 -bool assign_GovHydroPID2_g2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPID2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->g2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPID2.gmax -bool assign_GovHydroPID2_gmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPID2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPID2.gmin -bool assign_GovHydroPID2_gmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPID2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPID2.kd -bool assign_GovHydroPID2_kd(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPID2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kd.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPID2.ki -bool assign_GovHydroPID2_ki(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPID2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ki; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPID2.kp -bool assign_GovHydroPID2_kp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPID2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPID2.mwbase -bool assign_GovHydroPID2_mwbase(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPID2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->mwbase.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPID2.p1 -bool assign_GovHydroPID2_p1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPID2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->p1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPID2.p2 -bool assign_GovHydroPID2_p2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPID2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->p2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPID2.p3 -bool assign_GovHydroPID2_p3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPID2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->p3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPID2.rperm -bool assign_GovHydroPID2_rperm(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPID2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->rperm.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPID2.ta -bool assign_GovHydroPID2_ta(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPID2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ta.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPID2.tb -bool assign_GovHydroPID2_tb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPID2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPID2.treg -bool assign_GovHydroPID2_treg(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPID2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->treg.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPID2.tw -bool assign_GovHydroPID2_tw(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPID2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tw.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPID2.velmax -bool assign_GovHydroPID2_velmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPID2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->velmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPID2.velmin -bool assign_GovHydroPID2_velmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPID2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->velmin; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWPID.d -bool assign_GovHydroWPID_d(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWPID* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->d.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWPID.gatmax -bool assign_GovHydroWPID_gatmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWPID* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gatmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWPID.gatmin -bool assign_GovHydroWPID_gatmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWPID* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gatmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWPID.gv1 -bool assign_GovHydroWPID_gv1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWPID* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gv1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWPID.gv2 -bool assign_GovHydroWPID_gv2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWPID* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gv2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWPID.gv3 -bool assign_GovHydroWPID_gv3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWPID* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gv3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWPID.kd -bool assign_GovHydroWPID_kd(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWPID* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kd.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWPID.ki -bool assign_GovHydroWPID_ki(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWPID* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ki.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWPID.kp -bool assign_GovHydroWPID_kp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWPID* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWPID.mwbase -bool assign_GovHydroWPID_mwbase(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWPID* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->mwbase.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWPID.pgv1 -bool assign_GovHydroWPID_pgv1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWPID* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pgv1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWPID.pgv2 -bool assign_GovHydroWPID_pgv2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWPID* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pgv2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWPID.pgv3 -bool assign_GovHydroWPID_pgv3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWPID* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pgv3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWPID.pmax -bool assign_GovHydroWPID_pmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWPID* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWPID.pmin -bool assign_GovHydroWPID_pmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWPID* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWPID.reg -bool assign_GovHydroWPID_reg(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWPID* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->reg.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWPID.ta -bool assign_GovHydroWPID_ta(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWPID* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ta.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWPID.tb -bool assign_GovHydroWPID_tb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWPID* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWPID.treg -bool assign_GovHydroWPID_treg(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWPID* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->treg.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWPID.tw -bool assign_GovHydroWPID_tw(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWPID* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tw.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWPID.velmax -bool assign_GovHydroWPID_velmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWPID* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->velmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWPID.velmin -bool assign_GovHydroWPID_velmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWPID* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->velmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST4.bp -bool assign_GovGAST4_bp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->bp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST4.ktm -bool assign_GovGAST4_ktm(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ktm.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST4.mnef -bool assign_GovGAST4_mnef(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->mnef.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST4.mxef -bool assign_GovGAST4_mxef(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->mxef.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST4.rymn -bool assign_GovGAST4_rymn(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->rymn.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST4.rymx -bool assign_GovGAST4_rymx(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->rymx.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST4.ta -bool assign_GovGAST4_ta(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ta.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST4.tc -bool assign_GovGAST4_tc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST4.tcm -bool assign_GovGAST4_tcm(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tcm.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST4.tm -bool assign_GovGAST4_tm(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tm.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST4.tv -bool assign_GovGAST4_tv(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tv.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro4.at -bool assign_GovHydro4_at(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->at.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro4.bgv0 -bool assign_GovHydro4_bgv0(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->bgv0.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro4.bgv1 -bool assign_GovHydro4_bgv1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->bgv1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro4.bgv2 -bool assign_GovHydro4_bgv2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->bgv2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro4.bgv3 -bool assign_GovHydro4_bgv3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->bgv3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro4.bgv4 -bool assign_GovHydro4_bgv4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->bgv4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro4.bgv5 -bool assign_GovHydro4_bgv5(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->bgv5.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro4.bmax -bool assign_GovHydro4_bmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->bmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro4.db1 -bool assign_GovHydro4_db1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->db1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro4.db2 -bool assign_GovHydro4_db2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->db2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro4.dturb -bool assign_GovHydro4_dturb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->dturb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro4.eps -bool assign_GovHydro4_eps(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->eps.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro4.gmax -bool assign_GovHydro4_gmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro4.gmin -bool assign_GovHydro4_gmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro4.gv0 -bool assign_GovHydro4_gv0(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gv0.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro4.gv1 -bool assign_GovHydro4_gv1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gv1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro4.gv2 -bool assign_GovHydro4_gv2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gv2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro4.gv3 -bool assign_GovHydro4_gv3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gv3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro4.gv4 -bool assign_GovHydro4_gv4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gv4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro4.gv5 -bool assign_GovHydro4_gv5(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gv5.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro4.hdam -bool assign_GovHydro4_hdam(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->hdam.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro4.mwbase -bool assign_GovHydro4_mwbase(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->mwbase.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro4.pgv0 -bool assign_GovHydro4_pgv0(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pgv0.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro4.pgv1 -bool assign_GovHydro4_pgv1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pgv1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro4.pgv2 -bool assign_GovHydro4_pgv2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pgv2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro4.pgv3 -bool assign_GovHydro4_pgv3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pgv3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro4.pgv4 -bool assign_GovHydro4_pgv4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pgv4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro4.pgv5 -bool assign_GovHydro4_pgv5(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pgv5.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro4.qn1 -bool assign_GovHydro4_qn1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->qn1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro4.rperm -bool assign_GovHydro4_rperm(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->rperm.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro4.rtemp -bool assign_GovHydro4_rtemp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->rtemp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro4.tblade -bool assign_GovHydro4_tblade(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tblade.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro4.tg -bool assign_GovHydro4_tg(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tg.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro4.tp -bool assign_GovHydro4_tp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro4.tr -bool assign_GovHydro4_tr(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tr.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro4.tw -bool assign_GovHydro4_tw(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tw.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro4.uc -bool assign_GovHydro4_uc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->uc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro4.uo -bool assign_GovHydro4_uo(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->uo; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWEH.db -bool assign_GovHydroWEH_db(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWEH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->db.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWEH.dicn -bool assign_GovHydroWEH_dicn(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWEH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->dicn.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWEH.dpv -bool assign_GovHydroWEH_dpv(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWEH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->dpv.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWEH.dturb -bool assign_GovHydroWEH_dturb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWEH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->dturb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWEH.feedbackSignal -bool assign_GovHydroWEH_feedbackSignal(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWEH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->feedbackSignal; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWEH.fl1 -bool assign_GovHydroWEH_fl1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWEH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->fl1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWEH.fl2 -bool assign_GovHydroWEH_fl2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWEH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->fl2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWEH.fl3 -bool assign_GovHydroWEH_fl3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWEH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->fl3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWEH.fl4 -bool assign_GovHydroWEH_fl4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWEH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->fl4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWEH.fl5 -bool assign_GovHydroWEH_fl5(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWEH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->fl5.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWEH.fp1 -bool assign_GovHydroWEH_fp1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWEH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->fp1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWEH.fp10 -bool assign_GovHydroWEH_fp10(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWEH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->fp10.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWEH.fp2 -bool assign_GovHydroWEH_fp2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWEH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->fp2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWEH.fp3 -bool assign_GovHydroWEH_fp3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWEH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->fp3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWEH.fp4 -bool assign_GovHydroWEH_fp4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWEH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->fp4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWEH.fp5 -bool assign_GovHydroWEH_fp5(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWEH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->fp5.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWEH.fp6 -bool assign_GovHydroWEH_fp6(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWEH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->fp6.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWEH.fp7 -bool assign_GovHydroWEH_fp7(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWEH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->fp7.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWEH.fp8 -bool assign_GovHydroWEH_fp8(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWEH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->fp8.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWEH.fp9 -bool assign_GovHydroWEH_fp9(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWEH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->fp9.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWEH.gmax -bool assign_GovHydroWEH_gmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWEH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWEH.gmin -bool assign_GovHydroWEH_gmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWEH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWEH.gtmxcl -bool assign_GovHydroWEH_gtmxcl(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWEH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gtmxcl.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWEH.gtmxop -bool assign_GovHydroWEH_gtmxop(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWEH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gtmxop.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWEH.gv1 -bool assign_GovHydroWEH_gv1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWEH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gv1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWEH.gv2 -bool assign_GovHydroWEH_gv2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWEH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gv2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWEH.gv3 -bool assign_GovHydroWEH_gv3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWEH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gv3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWEH.gv4 -bool assign_GovHydroWEH_gv4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWEH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gv4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWEH.gv5 -bool assign_GovHydroWEH_gv5(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWEH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gv5.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWEH.kd -bool assign_GovHydroWEH_kd(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWEH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kd.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWEH.ki -bool assign_GovHydroWEH_ki(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWEH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ki.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWEH.kp -bool assign_GovHydroWEH_kp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWEH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWEH.mwbase -bool assign_GovHydroWEH_mwbase(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWEH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->mwbase.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWEH.pmss1 -bool assign_GovHydroWEH_pmss1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWEH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pmss1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWEH.pmss10 -bool assign_GovHydroWEH_pmss10(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWEH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pmss10.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWEH.pmss2 -bool assign_GovHydroWEH_pmss2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWEH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pmss2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWEH.pmss3 -bool assign_GovHydroWEH_pmss3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWEH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pmss3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWEH.pmss4 -bool assign_GovHydroWEH_pmss4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWEH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pmss4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWEH.pmss5 -bool assign_GovHydroWEH_pmss5(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWEH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pmss5.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWEH.pmss6 -bool assign_GovHydroWEH_pmss6(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWEH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pmss6.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWEH.pmss7 -bool assign_GovHydroWEH_pmss7(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWEH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pmss7.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWEH.pmss8 -bool assign_GovHydroWEH_pmss8(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWEH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pmss8.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWEH.pmss9 -bool assign_GovHydroWEH_pmss9(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWEH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pmss9.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWEH.rpg -bool assign_GovHydroWEH_rpg(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWEH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->rpg; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWEH.rpp -bool assign_GovHydroWEH_rpp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWEH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->rpp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWEH.td -bool assign_GovHydroWEH_td(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWEH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->td.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWEH.tdv -bool assign_GovHydroWEH_tdv(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWEH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tdv.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWEH.tg -bool assign_GovHydroWEH_tg(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWEH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tg.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWEH.tp -bool assign_GovHydroWEH_tp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWEH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWEH.tpe -bool assign_GovHydroWEH_tpe(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWEH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tpe.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroWEH.tw -bool assign_GovHydroWEH_tw(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroWEH* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tw.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamIEEE1.k -bool assign_GovSteamIEEE1_k(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamIEEE1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamIEEE1.k1 -bool assign_GovSteamIEEE1_k1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamIEEE1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamIEEE1.k2 -bool assign_GovSteamIEEE1_k2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamIEEE1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamIEEE1.k3 -bool assign_GovSteamIEEE1_k3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamIEEE1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamIEEE1.k4 -bool assign_GovSteamIEEE1_k4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamIEEE1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamIEEE1.k5 -bool assign_GovSteamIEEE1_k5(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamIEEE1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k5; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamIEEE1.k6 -bool assign_GovSteamIEEE1_k6(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamIEEE1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k6; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamIEEE1.k7 -bool assign_GovSteamIEEE1_k7(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamIEEE1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k7; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamIEEE1.k8 -bool assign_GovSteamIEEE1_k8(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamIEEE1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k8; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamIEEE1.mwbase -bool assign_GovSteamIEEE1_mwbase(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamIEEE1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->mwbase.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamIEEE1.pmax -bool assign_GovSteamIEEE1_pmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamIEEE1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamIEEE1.pmin -bool assign_GovSteamIEEE1_pmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamIEEE1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamIEEE1.t1 -bool assign_GovSteamIEEE1_t1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamIEEE1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamIEEE1.t2 -bool assign_GovSteamIEEE1_t2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamIEEE1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamIEEE1.t3 -bool assign_GovSteamIEEE1_t3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamIEEE1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamIEEE1.t4 -bool assign_GovSteamIEEE1_t4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamIEEE1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamIEEE1.t5 -bool assign_GovSteamIEEE1_t5(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamIEEE1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t5.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamIEEE1.t6 -bool assign_GovSteamIEEE1_t6(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamIEEE1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t6.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamIEEE1.t7 -bool assign_GovSteamIEEE1_t7(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamIEEE1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t7.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamIEEE1.uc -bool assign_GovSteamIEEE1_uc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamIEEE1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->uc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamIEEE1.uo -bool assign_GovSteamIEEE1_uo(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamIEEE1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->uo; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro3.at -bool assign_GovHydro3_at(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->at.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro3.db1 -bool assign_GovHydro3_db1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->db1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro3.db2 -bool assign_GovHydro3_db2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->db2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro3.dturb -bool assign_GovHydro3_dturb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->dturb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro3.eps -bool assign_GovHydro3_eps(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->eps.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro3.governorControl -bool assign_GovHydro3_governorControl(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->governorControl; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro3.gv1 -bool assign_GovHydro3_gv1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gv1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro3.gv2 -bool assign_GovHydro3_gv2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gv2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro3.gv3 -bool assign_GovHydro3_gv3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gv3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro3.gv4 -bool assign_GovHydro3_gv4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gv4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro3.gv5 -bool assign_GovHydro3_gv5(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gv5.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro3.gv6 -bool assign_GovHydro3_gv6(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gv6.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro3.h0 -bool assign_GovHydro3_h0(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->h0.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro3.k1 -bool assign_GovHydro3_k1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro3.k2 -bool assign_GovHydro3_k2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro3.kg -bool assign_GovHydro3_kg(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kg.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro3.ki -bool assign_GovHydro3_ki(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ki.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro3.mwbase -bool assign_GovHydro3_mwbase(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->mwbase.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro3.pgv1 -bool assign_GovHydro3_pgv1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pgv1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro3.pgv2 -bool assign_GovHydro3_pgv2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pgv2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro3.pgv3 -bool assign_GovHydro3_pgv3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pgv3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro3.pgv4 -bool assign_GovHydro3_pgv4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pgv4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro3.pgv5 -bool assign_GovHydro3_pgv5(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pgv5.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro3.pgv6 -bool assign_GovHydro3_pgv6(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pgv6.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro3.pmax -bool assign_GovHydro3_pmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro3.pmin -bool assign_GovHydro3_pmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro3.qnl -bool assign_GovHydro3_qnl(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->qnl.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro3.relec -bool assign_GovHydro3_relec(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->relec.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro3.rgate -bool assign_GovHydro3_rgate(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->rgate.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro3.td -bool assign_GovHydro3_td(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->td.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro3.tf -bool assign_GovHydro3_tf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro3.tp -bool assign_GovHydro3_tp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro3.tt -bool assign_GovHydro3_tt(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tt.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro3.tw -bool assign_GovHydro3_tw(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tw.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro3.velcl -bool assign_GovHydro3_velcl(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->velcl; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro3.velop -bool assign_GovHydro3_velop(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->velop; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST.at -bool assign_GovGAST_at(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->at.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST.dturb -bool assign_GovGAST_dturb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->dturb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST.kt -bool assign_GovGAST_kt(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kt.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST.mwbase -bool assign_GovGAST_mwbase(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->mwbase.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST.r -bool assign_GovGAST_r(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->r.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST.t1 -bool assign_GovGAST_t1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST.t2 -bool assign_GovGAST_t2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST.t3 -bool assign_GovGAST_t3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST.vmax -bool assign_GovGAST_vmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST.vmin -bool assign_GovGAST_vmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST3.bca -bool assign_GovGAST3_bca(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->bca; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST3.bp -bool assign_GovGAST3_bp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->bp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST3.dtc -bool assign_GovGAST3_dtc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->dtc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST3.ka -bool assign_GovGAST3_ka(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ka.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST3.kac -bool assign_GovGAST3_kac(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kac; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST3.kca -bool assign_GovGAST3_kca(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kca; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST3.ksi -bool assign_GovGAST3_ksi(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ksi; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST3.ky -bool assign_GovGAST3_ky(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ky; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST3.mnef -bool assign_GovGAST3_mnef(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->mnef.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST3.mxef -bool assign_GovGAST3_mxef(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->mxef.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST3.rcmn -bool assign_GovGAST3_rcmn(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->rcmn.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST3.rcmx -bool assign_GovGAST3_rcmx(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->rcmx.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST3.tac -bool assign_GovGAST3_tac(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tac.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST3.tc -bool assign_GovGAST3_tc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST3.td -bool assign_GovGAST3_td(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->td.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST3.tfen -bool assign_GovGAST3_tfen(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tfen.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST3.tg -bool assign_GovGAST3_tg(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tg.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST3.tsi -bool assign_GovGAST3_tsi(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tsi.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST3.tt -bool assign_GovGAST3_tt(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tt.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST3.ttc -bool assign_GovGAST3_ttc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ttc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST3.ty -bool assign_GovGAST3_ty(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ty.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteam2.dbf -bool assign_GovSteam2_dbf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteam2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->dbf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteam2.k -bool assign_GovSteam2_k(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteam2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteam2.mnef -bool assign_GovSteam2_mnef(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteam2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->mnef.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteam2.mxef -bool assign_GovSteam2_mxef(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteam2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->mxef.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteam2.pmax -bool assign_GovSteam2_pmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteam2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteam2.pmin -bool assign_GovSteam2_pmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteam2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteam2.t1 -bool assign_GovSteam2_t1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteam2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteam2.t2 -bool assign_GovSteam2_t2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteam2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV4.cpsmn -bool assign_GovSteamFV4_cpsmn(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->cpsmn.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV4.cpsmx -bool assign_GovSteamFV4_cpsmx(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->cpsmx.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV4.crmn -bool assign_GovSteamFV4_crmn(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->crmn.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV4.crmx -bool assign_GovSteamFV4_crmx(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->crmx.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV4.kdc -bool assign_GovSteamFV4_kdc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kdc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV4.kf1 -bool assign_GovSteamFV4_kf1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kf1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV4.kf3 -bool assign_GovSteamFV4_kf3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kf3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV4.khp -bool assign_GovSteamFV4_khp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->khp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV4.kic -bool assign_GovSteamFV4_kic(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kic.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV4.kip -bool assign_GovSteamFV4_kip(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kip.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV4.kit -bool assign_GovSteamFV4_kit(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kit.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV4.kmp1 -bool assign_GovSteamFV4_kmp1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kmp1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV4.kmp2 -bool assign_GovSteamFV4_kmp2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kmp2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV4.kpc -bool assign_GovSteamFV4_kpc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kpc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV4.kpp -bool assign_GovSteamFV4_kpp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kpp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV4.kpt -bool assign_GovSteamFV4_kpt(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kpt.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV4.krc -bool assign_GovSteamFV4_krc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->krc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV4.ksh -bool assign_GovSteamFV4_ksh(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ksh.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV4.lpi -bool assign_GovSteamFV4_lpi(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->lpi.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV4.lps -bool assign_GovSteamFV4_lps(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->lps.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV4.mnef -bool assign_GovSteamFV4_mnef(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->mnef.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV4.mxef -bool assign_GovSteamFV4_mxef(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->mxef.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV4.pr1 -bool assign_GovSteamFV4_pr1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pr1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV4.pr2 -bool assign_GovSteamFV4_pr2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pr2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV4.psmn -bool assign_GovSteamFV4_psmn(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->psmn.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV4.rsmimn -bool assign_GovSteamFV4_rsmimn(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->rsmimn.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV4.rsmimx -bool assign_GovSteamFV4_rsmimx(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->rsmimx.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV4.rvgmn -bool assign_GovSteamFV4_rvgmn(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->rvgmn.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV4.rvgmx -bool assign_GovSteamFV4_rvgmx(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->rvgmx.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV4.srmn -bool assign_GovSteamFV4_srmn(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->srmn.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV4.srmx -bool assign_GovSteamFV4_srmx(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->srmx.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV4.srsmp -bool assign_GovSteamFV4_srsmp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->srsmp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV4.svmn -bool assign_GovSteamFV4_svmn(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->svmn; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV4.svmx -bool assign_GovSteamFV4_svmx(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->svmx; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV4.ta -bool assign_GovSteamFV4_ta(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ta.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV4.tam -bool assign_GovSteamFV4_tam(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tam.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV4.tc -bool assign_GovSteamFV4_tc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV4.tcm -bool assign_GovSteamFV4_tcm(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tcm.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV4.tdc -bool assign_GovSteamFV4_tdc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tdc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV4.tf1 -bool assign_GovSteamFV4_tf1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tf1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV4.tf2 -bool assign_GovSteamFV4_tf2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tf2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV4.thp -bool assign_GovSteamFV4_thp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->thp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV4.tmp -bool assign_GovSteamFV4_tmp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tmp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV4.trh -bool assign_GovSteamFV4_trh(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->trh.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV4.tv -bool assign_GovSteamFV4_tv(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tv.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV4.ty -bool assign_GovSteamFV4_ty(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ty.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV4.y -bool assign_GovSteamFV4_y(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->y.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV4.yhpmn -bool assign_GovSteamFV4_yhpmn(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->yhpmn.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV4.yhpmx -bool assign_GovSteamFV4_yhpmx(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->yhpmx.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV4.ympmn -bool assign_GovSteamFV4_ympmn(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ympmn.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV4.ympmx -bool assign_GovSteamFV4_ympmx(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV4* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ympmx.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST1.a -bool assign_GovGAST1_a(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->a; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST1.b -bool assign_GovGAST1_b(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->b; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST1.db1 -bool assign_GovGAST1_db1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->db1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST1.db2 -bool assign_GovGAST1_db2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->db2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST1.eps -bool assign_GovGAST1_eps(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->eps.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST1.fidle -bool assign_GovGAST1_fidle(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->fidle.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST1.gv1 -bool assign_GovGAST1_gv1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gv1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST1.gv2 -bool assign_GovGAST1_gv2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gv2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST1.gv3 -bool assign_GovGAST1_gv3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gv3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST1.gv4 -bool assign_GovGAST1_gv4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gv4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST1.gv5 -bool assign_GovGAST1_gv5(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gv5.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST1.gv6 -bool assign_GovGAST1_gv6(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gv6.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST1.ka -bool assign_GovGAST1_ka(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ka.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST1.kt -bool assign_GovGAST1_kt(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kt.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST1.lmax -bool assign_GovGAST1_lmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->lmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST1.loadinc -bool assign_GovGAST1_loadinc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->loadinc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST1.ltrate -bool assign_GovGAST1_ltrate(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ltrate; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST1.mwbase -bool assign_GovGAST1_mwbase(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->mwbase.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST1.pgv1 -bool assign_GovGAST1_pgv1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pgv1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST1.pgv2 -bool assign_GovGAST1_pgv2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pgv2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST1.pgv3 -bool assign_GovGAST1_pgv3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pgv3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST1.pgv4 -bool assign_GovGAST1_pgv4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pgv4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST1.pgv5 -bool assign_GovGAST1_pgv5(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pgv5.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST1.pgv6 -bool assign_GovGAST1_pgv6(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pgv6.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST1.r -bool assign_GovGAST1_r(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->r.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST1.rmax -bool assign_GovGAST1_rmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->rmax; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST1.t1 -bool assign_GovGAST1_t1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST1.t2 -bool assign_GovGAST1_t2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST1.t3 -bool assign_GovGAST1_t3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST1.t4 -bool assign_GovGAST1_t4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST1.t5 -bool assign_GovGAST1_t5(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t5.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST1.tltr -bool assign_GovGAST1_tltr(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tltr.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST1.vmax -bool assign_GovGAST1_vmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST1.vmin -bool assign_GovGAST1_vmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV3.k -bool assign_GovSteamFV3_k(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV3.k1 -bool assign_GovSteamFV3_k1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV3.k2 -bool assign_GovSteamFV3_k2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV3.k3 -bool assign_GovSteamFV3_k3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV3.mwbase -bool assign_GovSteamFV3_mwbase(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->mwbase.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV3.pmax -bool assign_GovSteamFV3_pmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV3.pmin -bool assign_GovSteamFV3_pmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV3.prmax -bool assign_GovSteamFV3_prmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->prmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV3.t1 -bool assign_GovSteamFV3_t1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV3.t2 -bool assign_GovSteamFV3_t2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV3.t3 -bool assign_GovSteamFV3_t3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV3.t4 -bool assign_GovSteamFV3_t4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV3.t5 -bool assign_GovSteamFV3_t5(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t5.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV3.t6 -bool assign_GovSteamFV3_t6(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t6.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV3.ta -bool assign_GovSteamFV3_ta(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ta.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV3.tb -bool assign_GovSteamFV3_tb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV3.tc -bool assign_GovSteamFV3_tc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV3.uc -bool assign_GovSteamFV3_uc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->uc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV3.uo -bool assign_GovSteamFV3_uo(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV3* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->uo; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro1.at -bool assign_GovHydro1_at(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->at.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro1.dturb -bool assign_GovHydro1_dturb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->dturb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro1.gmax -bool assign_GovHydro1_gmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro1.gmin -bool assign_GovHydro1_gmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro1.hdam -bool assign_GovHydro1_hdam(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->hdam.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro1.mwbase -bool assign_GovHydro1_mwbase(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->mwbase.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro1.qnl -bool assign_GovHydro1_qnl(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->qnl.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro1.rperm -bool assign_GovHydro1_rperm(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->rperm.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro1.rtemp -bool assign_GovHydro1_rtemp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->rtemp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro1.tf -bool assign_GovHydro1_tf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro1.tg -bool assign_GovHydro1_tg(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tg.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro1.tr -bool assign_GovHydro1_tr(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tr.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro1.tw -bool assign_GovHydro1_tw(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tw.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro1.velm -bool assign_GovHydro1_velm(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->velm; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro2.aturb -bool assign_GovHydro2_aturb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->aturb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro2.bturb -bool assign_GovHydro2_bturb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->bturb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro2.db1 -bool assign_GovHydro2_db1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->db1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro2.db2 -bool assign_GovHydro2_db2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->db2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro2.eps -bool assign_GovHydro2_eps(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->eps.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro2.gv1 -bool assign_GovHydro2_gv1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gv1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro2.gv2 -bool assign_GovHydro2_gv2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gv2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro2.gv3 -bool assign_GovHydro2_gv3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gv3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro2.gv4 -bool assign_GovHydro2_gv4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gv4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro2.gv5 -bool assign_GovHydro2_gv5(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gv5.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro2.gv6 -bool assign_GovHydro2_gv6(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gv6.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro2.kturb -bool assign_GovHydro2_kturb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kturb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro2.mwbase -bool assign_GovHydro2_mwbase(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->mwbase.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro2.pgv1 -bool assign_GovHydro2_pgv1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pgv1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro2.pgv2 -bool assign_GovHydro2_pgv2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pgv2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro2.pgv3 -bool assign_GovHydro2_pgv3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pgv3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro2.pgv4 -bool assign_GovHydro2_pgv4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pgv4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro2.pgv5 -bool assign_GovHydro2_pgv5(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pgv5.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro2.pgv6 -bool assign_GovHydro2_pgv6(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pgv6.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro2.pmax -bool assign_GovHydro2_pmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro2.pmin -bool assign_GovHydro2_pmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro2.rperm -bool assign_GovHydro2_rperm(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->rperm.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro2.rtemp -bool assign_GovHydro2_rtemp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->rtemp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro2.tg -bool assign_GovHydro2_tg(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tg.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro2.tp -bool assign_GovHydro2_tp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro2.tr -bool assign_GovHydro2_tr(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tr.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro2.tw -bool assign_GovHydro2_tw(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tw.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro2.uc -bool assign_GovHydro2_uc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->uc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydro2.uo -bool assign_GovHydro2_uo(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydro2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->uo; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT1.aset -bool assign_GovCT1_aset(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->aset; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT1.db -bool assign_GovCT1_db(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->db.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT1.dm -bool assign_GovCT1_dm(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->dm.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT1.ka -bool assign_GovCT1_ka(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ka.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT1.kdgov -bool assign_GovCT1_kdgov(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kdgov.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT1.kigov -bool assign_GovCT1_kigov(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kigov.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT1.kiload -bool assign_GovCT1_kiload(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kiload.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT1.kimw -bool assign_GovCT1_kimw(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kimw.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT1.kpgov -bool assign_GovCT1_kpgov(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kpgov.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT1.kpload -bool assign_GovCT1_kpload(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kpload.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT1.kturb -bool assign_GovCT1_kturb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kturb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT1.ldref -bool assign_GovCT1_ldref(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ldref.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT1.maxerr -bool assign_GovCT1_maxerr(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->maxerr.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT1.minerr -bool assign_GovCT1_minerr(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->minerr.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT1.mwbase -bool assign_GovCT1_mwbase(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->mwbase.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT1.r -bool assign_GovCT1_r(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->r.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT1.rclose -bool assign_GovCT1_rclose(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->rclose; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT1.rdown -bool assign_GovCT1_rdown(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->rdown.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT1.ropen -bool assign_GovCT1_ropen(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ropen; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT1.rselect -bool assign_GovCT1_rselect(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->rselect; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT1.rup -bool assign_GovCT1_rup(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->rup.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT1.ta -bool assign_GovCT1_ta(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ta.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT1.tact -bool assign_GovCT1_tact(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tact.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT1.tb -bool assign_GovCT1_tb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT1.tc -bool assign_GovCT1_tc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT1.tdgov -bool assign_GovCT1_tdgov(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tdgov.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT1.teng -bool assign_GovCT1_teng(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->teng.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT1.tfload -bool assign_GovCT1_tfload(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tfload.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT1.tpelec -bool assign_GovCT1_tpelec(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tpelec.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT1.tsa -bool assign_GovCT1_tsa(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tsa.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT1.tsb -bool assign_GovCT1_tsb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tsb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT1.vmax -bool assign_GovCT1_vmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT1.vmin -bool assign_GovCT1_vmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT1.wfnl -bool assign_GovCT1_wfnl(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->wfnl.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT1.wfspd -bool assign_GovCT1_wfspd(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->wfspd; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroIEEE0.k -bool assign_GovHydroIEEE0_k(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroIEEE0* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroIEEE0.mwbase -bool assign_GovHydroIEEE0_mwbase(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroIEEE0* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->mwbase.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroIEEE0.pmax -bool assign_GovHydroIEEE0_pmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroIEEE0* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroIEEE0.pmin -bool assign_GovHydroIEEE0_pmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroIEEE0* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroIEEE0.t1 -bool assign_GovHydroIEEE0_t1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroIEEE0* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroIEEE0.t2 -bool assign_GovHydroIEEE0_t2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroIEEE0* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroIEEE0.t3 -bool assign_GovHydroIEEE0_t3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroIEEE0* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroIEEE0.t4 -bool assign_GovHydroIEEE0_t4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroIEEE0* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteam0.dt -bool assign_GovSteam0_dt(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteam0* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->dt.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteam0.mwbase -bool assign_GovSteam0_mwbase(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteam0* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->mwbase.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteam0.r -bool assign_GovSteam0_r(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteam0* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->r.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteam0.t1 -bool assign_GovSteam0_t1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteam0* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteam0.t2 -bool assign_GovSteam0_t2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteam0* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteam0.t3 -bool assign_GovSteam0_t3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteam0* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteam0.vmax -bool assign_GovSteam0_vmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteam0* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteam0.vmin -bool assign_GovSteam0_vmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteam0* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV2.dt -bool assign_GovSteamFV2_dt(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->dt.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV2.k -bool assign_GovSteamFV2_k(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV2.mwbase -bool assign_GovSteamFV2_mwbase(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->mwbase.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV2.r -bool assign_GovSteamFV2_r(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->r.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV2.t1 -bool assign_GovSteamFV2_t1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV2.t3 -bool assign_GovSteamFV2_t3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV2.ta -bool assign_GovSteamFV2_ta(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ta.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV2.tb -bool assign_GovSteamFV2_tb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV2.tc -bool assign_GovSteamFV2_tc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV2.ti -bool assign_GovSteamFV2_ti(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ti.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV2.tt -bool assign_GovSteamFV2_tt(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tt.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV2.vmax -bool assign_GovSteamFV2_vmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamFV2.vmin -bool assign_GovSteamFV2_vmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamFV2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamCC.dhp -bool assign_GovSteamCC_dhp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamCC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->dhp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamCC.dlp -bool assign_GovSteamCC_dlp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamCC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->dlp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamCC.fhp -bool assign_GovSteamCC_fhp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamCC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->fhp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamCC.flp -bool assign_GovSteamCC_flp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamCC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->flp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamCC.mwbase -bool assign_GovSteamCC_mwbase(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamCC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->mwbase.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamCC.pmaxhp -bool assign_GovSteamCC_pmaxhp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamCC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pmaxhp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamCC.pmaxlp -bool assign_GovSteamCC_pmaxlp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamCC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pmaxlp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamCC.rhp -bool assign_GovSteamCC_rhp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamCC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->rhp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamCC.rlp -bool assign_GovSteamCC_rlp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamCC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->rlp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamCC.t1hp -bool assign_GovSteamCC_t1hp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamCC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t1hp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamCC.t1lp -bool assign_GovSteamCC_t1lp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamCC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t1lp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamCC.t3hp -bool assign_GovSteamCC_t3hp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamCC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t3hp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamCC.t3lp -bool assign_GovSteamCC_t3lp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamCC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t3lp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamCC.t4hp -bool assign_GovSteamCC_t4hp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamCC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t4hp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamCC.t4lp -bool assign_GovSteamCC_t4lp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamCC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t4lp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamCC.t5hp -bool assign_GovSteamCC_t5hp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamCC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t5hp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovSteamCC.t5lp -bool assign_GovSteamCC_t5lp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovSteamCC* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t5lp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST2.a -bool assign_GovGAST2_a(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->a; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST2.af1 -bool assign_GovGAST2_af1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->af1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST2.af2 -bool assign_GovGAST2_af2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->af2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST2.b -bool assign_GovGAST2_b(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->b; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST2.bf1 -bool assign_GovGAST2_bf1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->bf1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST2.bf2 -bool assign_GovGAST2_bf2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->bf2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST2.c -bool assign_GovGAST2_c(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->c; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST2.cf2 -bool assign_GovGAST2_cf2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->cf2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST2.ecr -bool assign_GovGAST2_ecr(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ecr.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST2.etd -bool assign_GovGAST2_etd(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->etd.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST2.k3 -bool assign_GovGAST2_k3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST2.k4 -bool assign_GovGAST2_k4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST2.k5 -bool assign_GovGAST2_k5(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k5.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST2.k6 -bool assign_GovGAST2_k6(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k6.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST2.kf -bool assign_GovGAST2_kf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST2.mwbase -bool assign_GovGAST2_mwbase(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->mwbase.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST2.t -bool assign_GovGAST2_t(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST2.t3 -bool assign_GovGAST2_t3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST2.t4 -bool assign_GovGAST2_t4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST2.t5 -bool assign_GovGAST2_t5(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t5.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST2.tc -bool assign_GovGAST2_tc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST2.tcd -bool assign_GovGAST2_tcd(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tcd.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST2.tf -bool assign_GovGAST2_tf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST2.tmax -bool assign_GovGAST2_tmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST2.tmin -bool assign_GovGAST2_tmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST2.tr -bool assign_GovGAST2_tr(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tr.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST2.trate -bool assign_GovGAST2_trate(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->trate.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST2.tt -bool assign_GovGAST2_tt(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tt.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST2.w -bool assign_GovGAST2_w(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->w.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST2.x -bool assign_GovGAST2_x(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->x.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST2.y -bool assign_GovGAST2_y(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->y.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGAST2.z -bool assign_GovGAST2_z(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGAST2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->z; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT2.aset -bool assign_GovCT2_aset(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->aset; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT2.db -bool assign_GovCT2_db(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->db.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT2.dm -bool assign_GovCT2_dm(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->dm.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT2.flim1 -bool assign_GovCT2_flim1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->flim1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT2.flim10 -bool assign_GovCT2_flim10(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->flim10.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT2.flim2 -bool assign_GovCT2_flim2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->flim2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT2.flim3 -bool assign_GovCT2_flim3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->flim3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT2.flim4 -bool assign_GovCT2_flim4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->flim4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT2.flim5 -bool assign_GovCT2_flim5(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->flim5.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT2.flim6 -bool assign_GovCT2_flim6(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->flim6.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT2.flim7 -bool assign_GovCT2_flim7(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->flim7.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT2.flim8 -bool assign_GovCT2_flim8(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->flim8.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT2.flim9 -bool assign_GovCT2_flim9(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->flim9.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT2.ka -bool assign_GovCT2_ka(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ka.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT2.kdgov -bool assign_GovCT2_kdgov(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kdgov.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT2.kigov -bool assign_GovCT2_kigov(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kigov.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT2.kiload -bool assign_GovCT2_kiload(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kiload.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT2.kimw -bool assign_GovCT2_kimw(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kimw.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT2.kpgov -bool assign_GovCT2_kpgov(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kpgov.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT2.kpload -bool assign_GovCT2_kpload(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kpload.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT2.kturb -bool assign_GovCT2_kturb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kturb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT2.ldref -bool assign_GovCT2_ldref(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ldref.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT2.maxerr -bool assign_GovCT2_maxerr(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->maxerr.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT2.minerr -bool assign_GovCT2_minerr(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->minerr.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT2.mwbase -bool assign_GovCT2_mwbase(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->mwbase.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT2.plim1 -bool assign_GovCT2_plim1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->plim1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT2.plim10 -bool assign_GovCT2_plim10(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->plim10.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT2.plim2 -bool assign_GovCT2_plim2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->plim2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT2.plim3 -bool assign_GovCT2_plim3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->plim3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT2.plim4 -bool assign_GovCT2_plim4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->plim4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT2.plim5 -bool assign_GovCT2_plim5(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->plim5.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT2.plim6 -bool assign_GovCT2_plim6(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->plim6.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT2.plim7 -bool assign_GovCT2_plim7(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->plim7.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT2.plim8 -bool assign_GovCT2_plim8(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->plim8.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT2.plim9 -bool assign_GovCT2_plim9(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->plim9.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT2.prate -bool assign_GovCT2_prate(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->prate.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT2.r -bool assign_GovCT2_r(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->r.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT2.rclose -bool assign_GovCT2_rclose(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->rclose; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT2.rdown -bool assign_GovCT2_rdown(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->rdown.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT2.ropen -bool assign_GovCT2_ropen(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ropen; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT2.rselect -bool assign_GovCT2_rselect(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->rselect; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT2.rup -bool assign_GovCT2_rup(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->rup.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT2.ta -bool assign_GovCT2_ta(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ta.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT2.tact -bool assign_GovCT2_tact(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tact.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT2.tb -bool assign_GovCT2_tb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT2.tc -bool assign_GovCT2_tc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT2.tdgov -bool assign_GovCT2_tdgov(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tdgov.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT2.teng -bool assign_GovCT2_teng(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->teng.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT2.tfload -bool assign_GovCT2_tfload(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tfload.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT2.tpelec -bool assign_GovCT2_tpelec(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tpelec.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT2.tsa -bool assign_GovCT2_tsa(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tsa.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT2.tsb -bool assign_GovCT2_tsb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tsb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT2.vmax -bool assign_GovCT2_vmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT2.vmin -bool assign_GovCT2_vmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT2.wfnl -bool assign_GovCT2_wfnl(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->wfnl.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovCT2.wfspd -bool assign_GovCT2_wfspd(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovCT2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->wfspd; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Area.multiplier -bool assign_Area_multiplier(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Domain::Area* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->multiplier; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Length.multiplier -bool assign_Length_multiplier(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Domain::Length* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->multiplier; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPelton.av0 -bool assign_GovHydroPelton_av0(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPelton* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->av0.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPelton.av1 -bool assign_GovHydroPelton_av1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPelton* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->av1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPelton.bp -bool assign_GovHydroPelton_bp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPelton* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->bp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPelton.db1 -bool assign_GovHydroPelton_db1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPelton* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->db1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPelton.db2 -bool assign_GovHydroPelton_db2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPelton* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->db2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPelton.h1 -bool assign_GovHydroPelton_h1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPelton* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->h1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPelton.h2 -bool assign_GovHydroPelton_h2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPelton* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->h2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPelton.hn -bool assign_GovHydroPelton_hn(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPelton* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->hn.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPelton.kc -bool assign_GovHydroPelton_kc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPelton* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPelton.kg -bool assign_GovHydroPelton_kg(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPelton* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kg.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPelton.qc0 -bool assign_GovHydroPelton_qc0(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPelton* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->qc0.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPelton.qn -bool assign_GovHydroPelton_qn(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPelton* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->qn.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPelton.simplifiedPelton -bool assign_GovHydroPelton_simplifiedPelton(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPelton* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->simplifiedPelton; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPelton.staticCompensating -bool assign_GovHydroPelton_staticCompensating(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPelton* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->staticCompensating; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPelton.ta -bool assign_GovHydroPelton_ta(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPelton* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ta.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPelton.ts -bool assign_GovHydroPelton_ts(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPelton* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ts.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPelton.tv -bool assign_GovHydroPelton_tv(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPelton* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tv.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPelton.twnc -bool assign_GovHydroPelton_twnc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPelton* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->twnc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPelton.twng -bool assign_GovHydroPelton_twng(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPelton* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->twng.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPelton.tx -bool assign_GovHydroPelton_tx(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPelton* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tx.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPelton.va -bool assign_GovHydroPelton_va(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPelton* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->va; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPelton.valvmax -bool assign_GovHydroPelton_valvmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPelton* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->valvmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPelton.valvmin -bool assign_GovHydroPelton_valvmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPelton* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->valvmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPelton.vav -bool assign_GovHydroPelton_vav(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPelton* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vav.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPelton.vc -bool assign_GovHydroPelton_vc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPelton* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPelton.vcv -bool assign_GovHydroPelton_vcv(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPelton* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vcv.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPelton.waterTunnelSurgeChamberSimulation -bool assign_GovHydroPelton_waterTunnelSurgeChamberSimulation(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPelton* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->waterTunnelSurgeChamberSimulation; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPelton.zsfc -bool assign_GovHydroPelton_zsfc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPelton* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->zsfc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroFrancis.am -bool assign_GovHydroFrancis_am(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroFrancis* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->am.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroFrancis.av0 -bool assign_GovHydroFrancis_av0(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroFrancis* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->av0.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroFrancis.av1 -bool assign_GovHydroFrancis_av1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroFrancis* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->av1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroFrancis.bp -bool assign_GovHydroFrancis_bp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroFrancis* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->bp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroFrancis.db1 -bool assign_GovHydroFrancis_db1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroFrancis* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->db1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroFrancis.etamax -bool assign_GovHydroFrancis_etamax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroFrancis* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->etamax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroFrancis.governorControl -bool assign_GovHydroFrancis_governorControl(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroFrancis* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->governorControl; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroFrancis.h1 -bool assign_GovHydroFrancis_h1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroFrancis* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->h1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroFrancis.h2 -bool assign_GovHydroFrancis_h2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroFrancis* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->h2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroFrancis.hn -bool assign_GovHydroFrancis_hn(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroFrancis* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->hn.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroFrancis.kc -bool assign_GovHydroFrancis_kc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroFrancis* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroFrancis.kg -bool assign_GovHydroFrancis_kg(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroFrancis* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kg.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroFrancis.kt -bool assign_GovHydroFrancis_kt(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroFrancis* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kt.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroFrancis.qc0 -bool assign_GovHydroFrancis_qc0(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroFrancis* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->qc0.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroFrancis.qn -bool assign_GovHydroFrancis_qn(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroFrancis* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->qn.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroFrancis.ta -bool assign_GovHydroFrancis_ta(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroFrancis* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ta.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroFrancis.td -bool assign_GovHydroFrancis_td(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroFrancis* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->td.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroFrancis.ts -bool assign_GovHydroFrancis_ts(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroFrancis* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ts.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroFrancis.twnc -bool assign_GovHydroFrancis_twnc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroFrancis* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->twnc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroFrancis.twng -bool assign_GovHydroFrancis_twng(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroFrancis* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->twng.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroFrancis.tx -bool assign_GovHydroFrancis_tx(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroFrancis* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tx.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroFrancis.va -bool assign_GovHydroFrancis_va(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroFrancis* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->va; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroFrancis.valvmax -bool assign_GovHydroFrancis_valvmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroFrancis* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->valvmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroFrancis.valvmin -bool assign_GovHydroFrancis_valvmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroFrancis* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->valvmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroFrancis.vc -bool assign_GovHydroFrancis_vc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroFrancis* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroFrancis.waterTunnelSurgeChamberSimulation -bool assign_GovHydroFrancis_waterTunnelSurgeChamberSimulation(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroFrancis* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->waterTunnelSurgeChamberSimulation; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroFrancis.zsfc -bool assign_GovHydroFrancis_zsfc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroFrancis* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->zsfc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroR.at -bool assign_GovHydroR_at(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroR* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->at.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroR.db1 -bool assign_GovHydroR_db1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroR* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->db1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroR.db2 -bool assign_GovHydroR_db2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroR* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->db2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroR.dturb -bool assign_GovHydroR_dturb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroR* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->dturb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroR.eps -bool assign_GovHydroR_eps(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroR* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->eps.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroR.gmax -bool assign_GovHydroR_gmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroR* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroR.gmin -bool assign_GovHydroR_gmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroR* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroR.gv1 -bool assign_GovHydroR_gv1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroR* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gv1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroR.gv2 -bool assign_GovHydroR_gv2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroR* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gv2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroR.gv3 -bool assign_GovHydroR_gv3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroR* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gv3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroR.gv4 -bool assign_GovHydroR_gv4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroR* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gv4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroR.gv5 -bool assign_GovHydroR_gv5(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroR* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gv5.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroR.gv6 -bool assign_GovHydroR_gv6(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroR* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gv6.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroR.h0 -bool assign_GovHydroR_h0(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroR* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->h0.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroR.inputSignal -bool assign_GovHydroR_inputSignal(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroR* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->inputSignal; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroR.kg -bool assign_GovHydroR_kg(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroR* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kg.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroR.ki -bool assign_GovHydroR_ki(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroR* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ki.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroR.mwbase -bool assign_GovHydroR_mwbase(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroR* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->mwbase.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroR.pgv1 -bool assign_GovHydroR_pgv1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroR* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pgv1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroR.pgv2 -bool assign_GovHydroR_pgv2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroR* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pgv2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroR.pgv3 -bool assign_GovHydroR_pgv3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroR* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pgv3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroR.pgv4 -bool assign_GovHydroR_pgv4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroR* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pgv4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroR.pgv5 -bool assign_GovHydroR_pgv5(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroR* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pgv5.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroR.pgv6 -bool assign_GovHydroR_pgv6(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroR* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pgv6.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroR.pmax -bool assign_GovHydroR_pmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroR* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroR.pmin -bool assign_GovHydroR_pmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroR* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroR.qnl -bool assign_GovHydroR_qnl(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroR* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->qnl.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroR.r -bool assign_GovHydroR_r(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroR* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->r.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroR.t1 -bool assign_GovHydroR_t1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroR* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroR.t2 -bool assign_GovHydroR_t2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroR* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroR.t3 -bool assign_GovHydroR_t3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroR* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroR.t4 -bool assign_GovHydroR_t4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroR* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroR.t5 -bool assign_GovHydroR_t5(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroR* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t5.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroR.t6 -bool assign_GovHydroR_t6(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroR* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t6.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroR.t7 -bool assign_GovHydroR_t7(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroR* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t7.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroR.t8 -bool assign_GovHydroR_t8(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroR* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t8.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroR.td -bool assign_GovHydroR_td(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroR* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->td.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroR.tp -bool assign_GovHydroR_tp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroR* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroR.tt -bool assign_GovHydroR_tt(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroR* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tt.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroR.tw -bool assign_GovHydroR_tw(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroR* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tw.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroR.velcl -bool assign_GovHydroR_velcl(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroR* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->velcl; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroR.velop -bool assign_GovHydroR_velop(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroR* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->velop; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGASTWD.a -bool assign_GovGASTWD_a(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGASTWD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->a; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGASTWD.af1 -bool assign_GovGASTWD_af1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGASTWD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->af1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGASTWD.af2 -bool assign_GovGASTWD_af2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGASTWD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->af2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGASTWD.b -bool assign_GovGASTWD_b(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGASTWD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->b; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGASTWD.bf1 -bool assign_GovGASTWD_bf1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGASTWD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->bf1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGASTWD.bf2 -bool assign_GovGASTWD_bf2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGASTWD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->bf2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGASTWD.c -bool assign_GovGASTWD_c(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGASTWD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->c; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGASTWD.cf2 -bool assign_GovGASTWD_cf2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGASTWD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->cf2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGASTWD.ecr -bool assign_GovGASTWD_ecr(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGASTWD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ecr.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGASTWD.etd -bool assign_GovGASTWD_etd(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGASTWD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->etd.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGASTWD.k3 -bool assign_GovGASTWD_k3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGASTWD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGASTWD.k4 -bool assign_GovGASTWD_k4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGASTWD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGASTWD.k5 -bool assign_GovGASTWD_k5(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGASTWD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k5.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGASTWD.k6 -bool assign_GovGASTWD_k6(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGASTWD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k6.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGASTWD.kd -bool assign_GovGASTWD_kd(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGASTWD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kd.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGASTWD.kdroop -bool assign_GovGASTWD_kdroop(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGASTWD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kdroop.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGASTWD.kf -bool assign_GovGASTWD_kf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGASTWD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGASTWD.ki -bool assign_GovGASTWD_ki(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGASTWD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ki.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGASTWD.kp -bool assign_GovGASTWD_kp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGASTWD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGASTWD.mwbase -bool assign_GovGASTWD_mwbase(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGASTWD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->mwbase.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGASTWD.t -bool assign_GovGASTWD_t(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGASTWD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGASTWD.t3 -bool assign_GovGASTWD_t3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGASTWD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGASTWD.t4 -bool assign_GovGASTWD_t4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGASTWD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGASTWD.t5 -bool assign_GovGASTWD_t5(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGASTWD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t5.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGASTWD.tc -bool assign_GovGASTWD_tc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGASTWD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGASTWD.tcd -bool assign_GovGASTWD_tcd(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGASTWD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tcd.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGASTWD.td -bool assign_GovGASTWD_td(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGASTWD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->td.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGASTWD.tf -bool assign_GovGASTWD_tf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGASTWD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGASTWD.tmax -bool assign_GovGASTWD_tmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGASTWD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGASTWD.tmin -bool assign_GovGASTWD_tmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGASTWD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGASTWD.tr -bool assign_GovGASTWD_tr(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGASTWD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tr.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGASTWD.trate -bool assign_GovGASTWD_trate(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGASTWD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->trate.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovGASTWD.tt -bool assign_GovGASTWD_tt(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovGASTWD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tt.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPID.aturb -bool assign_GovHydroPID_aturb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPID* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->aturb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPID.bturb -bool assign_GovHydroPID_bturb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPID* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->bturb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPID.db1 -bool assign_GovHydroPID_db1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPID* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->db1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPID.db2 -bool assign_GovHydroPID_db2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPID* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->db2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPID.eps -bool assign_GovHydroPID_eps(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPID* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->eps.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPID.gv1 -bool assign_GovHydroPID_gv1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPID* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gv1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPID.gv2 -bool assign_GovHydroPID_gv2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPID* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gv2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPID.gv3 -bool assign_GovHydroPID_gv3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPID* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gv3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPID.gv4 -bool assign_GovHydroPID_gv4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPID* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gv4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPID.gv5 -bool assign_GovHydroPID_gv5(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPID* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gv5.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPID.gv6 -bool assign_GovHydroPID_gv6(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPID* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gv6.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPID.inputSignal -bool assign_GovHydroPID_inputSignal(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPID* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->inputSignal; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPID.kd -bool assign_GovHydroPID_kd(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPID* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kd.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPID.kg -bool assign_GovHydroPID_kg(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPID* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kg.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPID.ki -bool assign_GovHydroPID_ki(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPID* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ki.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPID.kp -bool assign_GovHydroPID_kp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPID* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPID.mwbase -bool assign_GovHydroPID_mwbase(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPID* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->mwbase.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPID.pgv1 -bool assign_GovHydroPID_pgv1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPID* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pgv1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPID.pgv2 -bool assign_GovHydroPID_pgv2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPID* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pgv2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPID.pgv3 -bool assign_GovHydroPID_pgv3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPID* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pgv3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPID.pgv4 -bool assign_GovHydroPID_pgv4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPID* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pgv4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPID.pgv5 -bool assign_GovHydroPID_pgv5(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPID* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pgv5.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPID.pgv6 -bool assign_GovHydroPID_pgv6(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPID* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pgv6.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPID.pmax -bool assign_GovHydroPID_pmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPID* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPID.pmin -bool assign_GovHydroPID_pmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPID* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPID.r -bool assign_GovHydroPID_r(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPID* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->r.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPID.td -bool assign_GovHydroPID_td(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPID* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->td.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPID.tf -bool assign_GovHydroPID_tf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPID* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPID.tp -bool assign_GovHydroPID_tp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPID* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPID.tt -bool assign_GovHydroPID_tt(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPID* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tt.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPID.tturb -bool assign_GovHydroPID_tturb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPID* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tturb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPID.velcl -bool assign_GovHydroPID_velcl(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPID* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->velcl; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroPID.velop -bool assign_GovHydroPID_velop(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroPID* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->velop; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroIEEE2.aturb -bool assign_GovHydroIEEE2_aturb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->aturb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroIEEE2.bturb -bool assign_GovHydroIEEE2_bturb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->bturb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroIEEE2.gv1 -bool assign_GovHydroIEEE2_gv1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gv1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroIEEE2.gv2 -bool assign_GovHydroIEEE2_gv2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gv2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroIEEE2.gv3 -bool assign_GovHydroIEEE2_gv3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gv3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroIEEE2.gv4 -bool assign_GovHydroIEEE2_gv4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gv4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroIEEE2.gv5 -bool assign_GovHydroIEEE2_gv5(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gv5.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroIEEE2.gv6 -bool assign_GovHydroIEEE2_gv6(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gv6.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroIEEE2.kturb -bool assign_GovHydroIEEE2_kturb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kturb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroIEEE2.mwbase -bool assign_GovHydroIEEE2_mwbase(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->mwbase.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroIEEE2.pgv1 -bool assign_GovHydroIEEE2_pgv1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pgv1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroIEEE2.pgv2 -bool assign_GovHydroIEEE2_pgv2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pgv2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroIEEE2.pgv3 -bool assign_GovHydroIEEE2_pgv3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pgv3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroIEEE2.pgv4 -bool assign_GovHydroIEEE2_pgv4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pgv4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroIEEE2.pgv5 -bool assign_GovHydroIEEE2_pgv5(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pgv5.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroIEEE2.pgv6 -bool assign_GovHydroIEEE2_pgv6(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pgv6.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroIEEE2.pmax -bool assign_GovHydroIEEE2_pmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroIEEE2.pmin -bool assign_GovHydroIEEE2_pmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroIEEE2.rperm -bool assign_GovHydroIEEE2_rperm(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->rperm.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroIEEE2.rtemp -bool assign_GovHydroIEEE2_rtemp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->rtemp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroIEEE2.tg -bool assign_GovHydroIEEE2_tg(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tg.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroIEEE2.tp -bool assign_GovHydroIEEE2_tp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroIEEE2.tr -bool assign_GovHydroIEEE2_tr(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tr.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroIEEE2.tw -bool assign_GovHydroIEEE2_tw(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tw.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroIEEE2.uc -bool assign_GovHydroIEEE2_uc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->uc; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroIEEE2.uo -bool assign_GovHydroIEEE2_uo(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->uo; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroDD.aturb -bool assign_GovHydroDD_aturb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroDD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->aturb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroDD.bturb -bool assign_GovHydroDD_bturb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroDD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->bturb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroDD.db1 -bool assign_GovHydroDD_db1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroDD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->db1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroDD.db2 -bool assign_GovHydroDD_db2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroDD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->db2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroDD.eps -bool assign_GovHydroDD_eps(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroDD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->eps.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroDD.gmax -bool assign_GovHydroDD_gmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroDD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroDD.gmin -bool assign_GovHydroDD_gmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroDD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroDD.gv1 -bool assign_GovHydroDD_gv1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroDD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gv1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroDD.gv2 -bool assign_GovHydroDD_gv2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroDD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gv2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroDD.gv3 -bool assign_GovHydroDD_gv3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroDD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gv3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroDD.gv4 -bool assign_GovHydroDD_gv4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroDD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gv4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroDD.gv5 -bool assign_GovHydroDD_gv5(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroDD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gv5.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroDD.gv6 -bool assign_GovHydroDD_gv6(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroDD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gv6.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroDD.inputSignal -bool assign_GovHydroDD_inputSignal(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroDD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->inputSignal; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroDD.k1 -bool assign_GovHydroDD_k1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroDD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroDD.k2 -bool assign_GovHydroDD_k2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroDD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroDD.kg -bool assign_GovHydroDD_kg(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroDD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kg.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroDD.ki -bool assign_GovHydroDD_ki(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroDD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ki.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroDD.mwbase -bool assign_GovHydroDD_mwbase(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroDD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->mwbase.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroDD.pgv1 -bool assign_GovHydroDD_pgv1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroDD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pgv1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroDD.pgv2 -bool assign_GovHydroDD_pgv2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroDD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pgv2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroDD.pgv3 -bool assign_GovHydroDD_pgv3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroDD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pgv3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroDD.pgv4 -bool assign_GovHydroDD_pgv4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroDD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pgv4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroDD.pgv5 -bool assign_GovHydroDD_pgv5(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroDD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pgv5.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroDD.pgv6 -bool assign_GovHydroDD_pgv6(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroDD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pgv6.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroDD.pmax -bool assign_GovHydroDD_pmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroDD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroDD.pmin -bool assign_GovHydroDD_pmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroDD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroDD.r -bool assign_GovHydroDD_r(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroDD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->r.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroDD.td -bool assign_GovHydroDD_td(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroDD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->td.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroDD.tf -bool assign_GovHydroDD_tf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroDD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroDD.tp -bool assign_GovHydroDD_tp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroDD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroDD.tt -bool assign_GovHydroDD_tt(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroDD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tt.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroDD.tturb -bool assign_GovHydroDD_tturb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroDD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tturb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroDD.velcl -bool assign_GovHydroDD_velcl(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroDD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->velcl; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GovHydroDD.velop -bool assign_GovHydroDD_velop(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineGovernorDynamics::GovHydroDD* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->velop; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:VCompIEEEType2.tr -bool assign_VCompIEEEType2_tr(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::VoltageCompensatorDynamics::VCompIEEEType2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tr.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GenICompensationForGenJ.rcij -bool assign_GenICompensationForGenJ_rcij(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::VoltageCompensatorDynamics::GenICompensationForGenJ* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->rcij.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GenICompensationForGenJ.xcij -bool assign_GenICompensationForGenJ_xcij(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::VoltageCompensatorDynamics::GenICompensationForGenJ* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->xcij.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:VCompIEEEType1.rc -bool assign_VCompIEEEType1_rc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::VoltageCompensatorDynamics::VCompIEEEType1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->rc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:VCompIEEEType1.tr -bool assign_VCompIEEEType1_tr(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::VoltageCompensatorDynamics::VCompIEEEType1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tr.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:VCompIEEEType1.xc -bool assign_VCompIEEEType1_xc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::VoltageCompensatorDynamics::VCompIEEEType1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->xc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LoadMotor.d -bool assign_LoadMotor_d(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::LoadDynamics::LoadMotor* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->d; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LoadMotor.h -bool assign_LoadMotor_h(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::LoadDynamics::LoadMotor* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->h.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LoadMotor.lfac -bool assign_LoadMotor_lfac(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::LoadDynamics::LoadMotor* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->lfac; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LoadMotor.lp -bool assign_LoadMotor_lp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::LoadDynamics::LoadMotor* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->lp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LoadMotor.lpp -bool assign_LoadMotor_lpp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::LoadDynamics::LoadMotor* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->lpp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LoadMotor.ls -bool assign_LoadMotor_ls(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::LoadDynamics::LoadMotor* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ls.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LoadMotor.pfrac -bool assign_LoadMotor_pfrac(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::LoadDynamics::LoadMotor* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pfrac; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LoadMotor.ra -bool assign_LoadMotor_ra(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::LoadDynamics::LoadMotor* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ra.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LoadMotor.tbkr -bool assign_LoadMotor_tbkr(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::LoadDynamics::LoadMotor* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tbkr.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LoadMotor.tpo -bool assign_LoadMotor_tpo(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::LoadDynamics::LoadMotor* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tpo.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LoadMotor.tppo -bool assign_LoadMotor_tppo(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::LoadDynamics::LoadMotor* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tppo.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LoadMotor.tv -bool assign_LoadMotor_tv(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::LoadDynamics::LoadMotor* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tv.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LoadMotor.vt -bool assign_LoadMotor_vt(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::LoadDynamics::LoadMotor* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vt.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LoadGenericNonLinear.bs -bool assign_LoadGenericNonLinear_bs(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::LoadDynamics::LoadGenericNonLinear* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->bs; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LoadGenericNonLinear.bt -bool assign_LoadGenericNonLinear_bt(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::LoadDynamics::LoadGenericNonLinear* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->bt; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LoadGenericNonLinear.genericNonLinearLoadModelType -bool assign_LoadGenericNonLinear_genericNonLinearLoadModelType(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::LoadDynamics::LoadGenericNonLinear* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->genericNonLinearLoadModelType; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LoadGenericNonLinear.ls -bool assign_LoadGenericNonLinear_ls(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::LoadDynamics::LoadGenericNonLinear* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ls; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LoadGenericNonLinear.lt -bool assign_LoadGenericNonLinear_lt(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::LoadDynamics::LoadGenericNonLinear* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->lt; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LoadGenericNonLinear.pt -bool assign_LoadGenericNonLinear_pt(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::LoadDynamics::LoadGenericNonLinear* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pt; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LoadGenericNonLinear.qt -bool assign_LoadGenericNonLinear_qt(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::LoadDynamics::LoadGenericNonLinear* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->qt; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LoadGenericNonLinear.tp -bool assign_LoadGenericNonLinear_tp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::LoadDynamics::LoadGenericNonLinear* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LoadGenericNonLinear.tq -bool assign_LoadGenericNonLinear_tq(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::LoadDynamics::LoadGenericNonLinear* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tq.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LoadComposite.epfd -bool assign_LoadComposite_epfd(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::LoadDynamics::LoadComposite* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->epfd; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LoadComposite.epfs -bool assign_LoadComposite_epfs(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::LoadDynamics::LoadComposite* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->epfs; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LoadComposite.epvd -bool assign_LoadComposite_epvd(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::LoadDynamics::LoadComposite* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->epvd; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LoadComposite.epvs -bool assign_LoadComposite_epvs(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::LoadDynamics::LoadComposite* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->epvs; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LoadComposite.eqfd -bool assign_LoadComposite_eqfd(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::LoadDynamics::LoadComposite* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->eqfd; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LoadComposite.eqfs -bool assign_LoadComposite_eqfs(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::LoadDynamics::LoadComposite* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->eqfs; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LoadComposite.eqvd -bool assign_LoadComposite_eqvd(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::LoadDynamics::LoadComposite* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->eqvd; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LoadComposite.eqvs -bool assign_LoadComposite_eqvs(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::LoadDynamics::LoadComposite* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->eqvs; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LoadComposite.h -bool assign_LoadComposite_h(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::LoadDynamics::LoadComposite* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->h.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LoadComposite.lfrac -bool assign_LoadComposite_lfrac(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::LoadDynamics::LoadComposite* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->lfrac; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LoadComposite.pfrac -bool assign_LoadComposite_pfrac(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::LoadDynamics::LoadComposite* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pfrac; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LoadStatic.ep1 -bool assign_LoadStatic_ep1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::LoadDynamics::LoadStatic* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ep1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LoadStatic.ep2 -bool assign_LoadStatic_ep2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::LoadDynamics::LoadStatic* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ep2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LoadStatic.ep3 -bool assign_LoadStatic_ep3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::LoadDynamics::LoadStatic* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ep3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LoadStatic.eq1 -bool assign_LoadStatic_eq1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::LoadDynamics::LoadStatic* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->eq1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LoadStatic.eq2 -bool assign_LoadStatic_eq2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::LoadDynamics::LoadStatic* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->eq2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LoadStatic.eq3 -bool assign_LoadStatic_eq3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::LoadDynamics::LoadStatic* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->eq3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LoadStatic.kp1 -bool assign_LoadStatic_kp1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::LoadDynamics::LoadStatic* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kp1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LoadStatic.kp2 -bool assign_LoadStatic_kp2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::LoadDynamics::LoadStatic* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kp2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LoadStatic.kp3 -bool assign_LoadStatic_kp3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::LoadDynamics::LoadStatic* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kp3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LoadStatic.kp4 -bool assign_LoadStatic_kp4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::LoadDynamics::LoadStatic* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kp4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LoadStatic.kpf -bool assign_LoadStatic_kpf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::LoadDynamics::LoadStatic* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kpf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LoadStatic.kq1 -bool assign_LoadStatic_kq1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::LoadDynamics::LoadStatic* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kq1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LoadStatic.kq2 -bool assign_LoadStatic_kq2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::LoadDynamics::LoadStatic* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kq2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LoadStatic.kq3 -bool assign_LoadStatic_kq3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::LoadDynamics::LoadStatic* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kq3; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LoadStatic.kq4 -bool assign_LoadStatic_kq4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::LoadDynamics::LoadStatic* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kq4; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LoadStatic.kqf -bool assign_LoadStatic_kqf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::LoadDynamics::LoadStatic* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kqf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LoadStatic.staticLoadModelType -bool assign_LoadStatic_staticLoadModelType(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::LoadDynamics::LoadStatic* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->staticLoadModelType; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TurbLCFB1.db -bool assign_TurbLCFB1_db(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineLoadControllerDynamics::TurbLCFB1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->db.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TurbLCFB1.emax -bool assign_TurbLCFB1_emax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineLoadControllerDynamics::TurbLCFB1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->emax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TurbLCFB1.fb -bool assign_TurbLCFB1_fb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineLoadControllerDynamics::TurbLCFB1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->fb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TurbLCFB1.fbf -bool assign_TurbLCFB1_fbf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineLoadControllerDynamics::TurbLCFB1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->fbf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TurbLCFB1.irmax -bool assign_TurbLCFB1_irmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineLoadControllerDynamics::TurbLCFB1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->irmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TurbLCFB1.ki -bool assign_TurbLCFB1_ki(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineLoadControllerDynamics::TurbLCFB1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ki.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TurbLCFB1.kp -bool assign_TurbLCFB1_kp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineLoadControllerDynamics::TurbLCFB1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TurbLCFB1.mwbase -bool assign_TurbLCFB1_mwbase(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineLoadControllerDynamics::TurbLCFB1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->mwbase.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TurbLCFB1.pbf -bool assign_TurbLCFB1_pbf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineLoadControllerDynamics::TurbLCFB1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pbf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TurbLCFB1.pmwset -bool assign_TurbLCFB1_pmwset(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineLoadControllerDynamics::TurbLCFB1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pmwset.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TurbLCFB1.speedReferenceGovernor -bool assign_TurbLCFB1_speedReferenceGovernor(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineLoadControllerDynamics::TurbLCFB1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->speedReferenceGovernor; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TurbLCFB1.tpelec -bool assign_TurbLCFB1_tpelec(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::TurbineLoadControllerDynamics::TurbLCFB1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tpelec.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:OverexcLim2.ifdlim -bool assign_OverexcLim2_ifdlim(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::OverexcitationLimiterDynamics::OverexcLim2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ifdlim.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:OverexcLim2.koi -bool assign_OverexcLim2_koi(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::OverexcitationLimiterDynamics::OverexcLim2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->koi.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:OverexcLim2.voimax -bool assign_OverexcLim2_voimax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::OverexcitationLimiterDynamics::OverexcLim2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->voimax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:OverexcLim2.voimin -bool assign_OverexcLim2_voimin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::OverexcitationLimiterDynamics::OverexcLim2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->voimin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:OverexcLimX2.efd1 -bool assign_OverexcLimX2_efd1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::OverexcitationLimiterDynamics::OverexcLimX2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->efd1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:OverexcLimX2.efd2 -bool assign_OverexcLimX2_efd2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::OverexcitationLimiterDynamics::OverexcLimX2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->efd2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:OverexcLimX2.efd3 -bool assign_OverexcLimX2_efd3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::OverexcitationLimiterDynamics::OverexcLimX2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->efd3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:OverexcLimX2.efddes -bool assign_OverexcLimX2_efddes(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::OverexcitationLimiterDynamics::OverexcLimX2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->efddes.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:OverexcLimX2.efdrated -bool assign_OverexcLimX2_efdrated(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::OverexcitationLimiterDynamics::OverexcLimX2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->efdrated.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:OverexcLimX2.kmx -bool assign_OverexcLimX2_kmx(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::OverexcitationLimiterDynamics::OverexcLimX2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kmx.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:OverexcLimX2.m -bool assign_OverexcLimX2_m(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::OverexcitationLimiterDynamics::OverexcLimX2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->m; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:OverexcLimX2.t1 -bool assign_OverexcLimX2_t1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::OverexcitationLimiterDynamics::OverexcLimX2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:OverexcLimX2.t2 -bool assign_OverexcLimX2_t2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::OverexcitationLimiterDynamics::OverexcLimX2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:OverexcLimX2.t3 -bool assign_OverexcLimX2_t3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::OverexcitationLimiterDynamics::OverexcLimX2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:OverexcLimX2.vlow -bool assign_OverexcLimX2_vlow(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::OverexcitationLimiterDynamics::OverexcLimX2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vlow.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:OverexcLimIEEE.hyst -bool assign_OverexcLimIEEE_hyst(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::OverexcitationLimiterDynamics::OverexcLimIEEE* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->hyst.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:OverexcLimIEEE.ifdlim -bool assign_OverexcLimIEEE_ifdlim(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::OverexcitationLimiterDynamics::OverexcLimIEEE* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ifdlim.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:OverexcLimIEEE.ifdmax -bool assign_OverexcLimIEEE_ifdmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::OverexcitationLimiterDynamics::OverexcLimIEEE* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ifdmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:OverexcLimIEEE.itfpu -bool assign_OverexcLimIEEE_itfpu(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::OverexcitationLimiterDynamics::OverexcLimIEEE* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->itfpu.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:OverexcLimIEEE.kcd -bool assign_OverexcLimIEEE_kcd(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::OverexcitationLimiterDynamics::OverexcLimIEEE* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kcd.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:OverexcLimIEEE.kramp -bool assign_OverexcLimIEEE_kramp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::OverexcitationLimiterDynamics::OverexcLimIEEE* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kramp; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:OverexcLimX1.efd1 -bool assign_OverexcLimX1_efd1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::OverexcitationLimiterDynamics::OverexcLimX1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->efd1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:OverexcLimX1.efd2 -bool assign_OverexcLimX1_efd2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::OverexcitationLimiterDynamics::OverexcLimX1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->efd2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:OverexcLimX1.efd3 -bool assign_OverexcLimX1_efd3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::OverexcitationLimiterDynamics::OverexcLimX1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->efd3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:OverexcLimX1.efddes -bool assign_OverexcLimX1_efddes(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::OverexcitationLimiterDynamics::OverexcLimX1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->efddes.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:OverexcLimX1.efdrated -bool assign_OverexcLimX1_efdrated(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::OverexcitationLimiterDynamics::OverexcLimX1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->efdrated.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:OverexcLimX1.kmx -bool assign_OverexcLimX1_kmx(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::OverexcitationLimiterDynamics::OverexcLimX1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kmx.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:OverexcLimX1.t1 -bool assign_OverexcLimX1_t1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::OverexcitationLimiterDynamics::OverexcLimX1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:OverexcLimX1.t2 -bool assign_OverexcLimX1_t2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::OverexcitationLimiterDynamics::OverexcLimX1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:OverexcLimX1.t3 -bool assign_OverexcLimX1_t3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::OverexcitationLimiterDynamics::OverexcLimX1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->t3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:OverexcLimX1.vlow -bool assign_OverexcLimX1_vlow(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::OverexcitationLimiterDynamics::OverexcLimX1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vlow.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchronousMachineDetailed.efdBaseRatio -bool assign_SynchronousMachineDetailed_efdBaseRatio(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::SynchronousMachineDetailed* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->efdBaseRatio; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchronousMachineDetailed.ifdBaseType -bool assign_SynchronousMachineDetailed_ifdBaseType(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::SynchronousMachineDetailed* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ifdBaseType; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchronousMachineDetailed.ifdBaseValue -bool assign_SynchronousMachineDetailed_ifdBaseValue(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::SynchronousMachineDetailed* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ifdBaseValue.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchronousMachineDetailed.saturationFactor120QAxis -bool assign_SynchronousMachineDetailed_saturationFactor120QAxis(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::SynchronousMachineDetailed* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->saturationFactor120QAxis; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchronousMachineDetailed.saturationFactorQAxis -bool assign_SynchronousMachineDetailed_saturationFactorQAxis(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::SynchronousMachineDetailed* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->saturationFactorQAxis; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchronousMachineTimeConstantReactance.ks -bool assign_SynchronousMachineTimeConstantReactance_ks(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::SynchronousMachineTimeConstantReactance* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ks; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchronousMachineTimeConstantReactance.modelType -bool assign_SynchronousMachineTimeConstantReactance_modelType(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::SynchronousMachineTimeConstantReactance* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->modelType; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchronousMachineTimeConstantReactance.rotorType -bool assign_SynchronousMachineTimeConstantReactance_rotorType(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::SynchronousMachineTimeConstantReactance* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->rotorType; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchronousMachineTimeConstantReactance.tc -bool assign_SynchronousMachineTimeConstantReactance_tc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::SynchronousMachineTimeConstantReactance* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchronousMachineTimeConstantReactance.tpdo -bool assign_SynchronousMachineTimeConstantReactance_tpdo(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::SynchronousMachineTimeConstantReactance* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tpdo.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchronousMachineTimeConstantReactance.tppdo -bool assign_SynchronousMachineTimeConstantReactance_tppdo(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::SynchronousMachineTimeConstantReactance* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tppdo.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchronousMachineTimeConstantReactance.tppqo -bool assign_SynchronousMachineTimeConstantReactance_tppqo(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::SynchronousMachineTimeConstantReactance* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tppqo.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchronousMachineTimeConstantReactance.tpqo -bool assign_SynchronousMachineTimeConstantReactance_tpqo(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::SynchronousMachineTimeConstantReactance* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tpqo.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchronousMachineTimeConstantReactance.xDirectSubtrans -bool assign_SynchronousMachineTimeConstantReactance_xDirectSubtrans(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::SynchronousMachineTimeConstantReactance* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->xDirectSubtrans.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchronousMachineTimeConstantReactance.xDirectSync -bool assign_SynchronousMachineTimeConstantReactance_xDirectSync(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::SynchronousMachineTimeConstantReactance* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->xDirectSync.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchronousMachineTimeConstantReactance.xDirectTrans -bool assign_SynchronousMachineTimeConstantReactance_xDirectTrans(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::SynchronousMachineTimeConstantReactance* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->xDirectTrans.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchronousMachineTimeConstantReactance.xQuadSubtrans -bool assign_SynchronousMachineTimeConstantReactance_xQuadSubtrans(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::SynchronousMachineTimeConstantReactance* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->xQuadSubtrans.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchronousMachineTimeConstantReactance.xQuadSync -bool assign_SynchronousMachineTimeConstantReactance_xQuadSync(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::SynchronousMachineTimeConstantReactance* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->xQuadSync.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchronousMachineTimeConstantReactance.xQuadTrans -bool assign_SynchronousMachineTimeConstantReactance_xQuadTrans(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::SynchronousMachineTimeConstantReactance* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->xQuadTrans.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchronousMachineEquivalentCircuit.r1d -bool assign_SynchronousMachineEquivalentCircuit_r1d(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::SynchronousMachineEquivalentCircuit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->r1d.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchronousMachineEquivalentCircuit.r1q -bool assign_SynchronousMachineEquivalentCircuit_r1q(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::SynchronousMachineEquivalentCircuit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->r1q.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchronousMachineEquivalentCircuit.r2q -bool assign_SynchronousMachineEquivalentCircuit_r2q(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::SynchronousMachineEquivalentCircuit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->r2q.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchronousMachineEquivalentCircuit.rfd -bool assign_SynchronousMachineEquivalentCircuit_rfd(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::SynchronousMachineEquivalentCircuit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->rfd.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchronousMachineEquivalentCircuit.x1d -bool assign_SynchronousMachineEquivalentCircuit_x1d(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::SynchronousMachineEquivalentCircuit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->x1d.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchronousMachineEquivalentCircuit.x1q -bool assign_SynchronousMachineEquivalentCircuit_x1q(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::SynchronousMachineEquivalentCircuit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->x1q.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchronousMachineEquivalentCircuit.x2q -bool assign_SynchronousMachineEquivalentCircuit_x2q(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::SynchronousMachineEquivalentCircuit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->x2q.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchronousMachineEquivalentCircuit.xad -bool assign_SynchronousMachineEquivalentCircuit_xad(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::SynchronousMachineEquivalentCircuit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->xad.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchronousMachineEquivalentCircuit.xaq -bool assign_SynchronousMachineEquivalentCircuit_xaq(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::SynchronousMachineEquivalentCircuit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->xaq.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchronousMachineEquivalentCircuit.xf1d -bool assign_SynchronousMachineEquivalentCircuit_xf1d(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::SynchronousMachineEquivalentCircuit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->xf1d.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchronousMachineEquivalentCircuit.xfd -bool assign_SynchronousMachineEquivalentCircuit_xfd(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::SynchronousMachineDynamics::SynchronousMachineEquivalentCircuit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->xfd.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:VAdjIEEE.adjslew -bool assign_VAdjIEEE_adjslew(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::VoltageAdjusterDynamics::VAdjIEEE* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->adjslew; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:VAdjIEEE.taoff -bool assign_VAdjIEEE_taoff(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::VoltageAdjusterDynamics::VAdjIEEE* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->taoff.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:VAdjIEEE.taon -bool assign_VAdjIEEE_taon(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::VoltageAdjusterDynamics::VAdjIEEE* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->taon.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:VAdjIEEE.vadjf -bool assign_VAdjIEEE_vadjf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::VoltageAdjusterDynamics::VAdjIEEE* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vadjf; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:VAdjIEEE.vadjmax -bool assign_VAdjIEEE_vadjmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::VoltageAdjusterDynamics::VAdjIEEE* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vadjmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:VAdjIEEE.vadjmin -bool assign_VAdjIEEE_vadjmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::VoltageAdjusterDynamics::VAdjIEEE* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vadjmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PFVArType2IEEEPFController.exlon -bool assign_PFVArType2IEEEPFController_exlon(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PFVArControllerType2Dynamics::PFVArType2IEEEPFController* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->exlon; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PFVArType2IEEEPFController.ki -bool assign_PFVArType2IEEEPFController_ki(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PFVArControllerType2Dynamics::PFVArType2IEEEPFController* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ki.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PFVArType2IEEEPFController.kp -bool assign_PFVArType2IEEEPFController_kp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PFVArControllerType2Dynamics::PFVArType2IEEEPFController* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PFVArType2IEEEPFController.pfref -bool assign_PFVArType2IEEEPFController_pfref(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PFVArControllerType2Dynamics::PFVArType2IEEEPFController* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pfref.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PFVArType2IEEEPFController.vclmt -bool assign_PFVArType2IEEEPFController_vclmt(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PFVArControllerType2Dynamics::PFVArType2IEEEPFController* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vclmt.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PFVArType2IEEEPFController.vref -bool assign_PFVArType2IEEEPFController_vref(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PFVArControllerType2Dynamics::PFVArType2IEEEPFController* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vref.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PFVArType2IEEEPFController.vs -bool assign_PFVArType2IEEEPFController_vs(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PFVArControllerType2Dynamics::PFVArType2IEEEPFController* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vs; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PFVArType2Common1.j -bool assign_PFVArType2Common1_j(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PFVArControllerType2Dynamics::PFVArType2Common1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->j; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PFVArType2Common1.ki -bool assign_PFVArType2Common1_ki(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PFVArControllerType2Dynamics::PFVArType2Common1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ki.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PFVArType2Common1.kp -bool assign_PFVArType2Common1_kp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PFVArControllerType2Dynamics::PFVArType2Common1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PFVArType2Common1.max -bool assign_PFVArType2Common1_max(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PFVArControllerType2Dynamics::PFVArType2Common1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->max.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PFVArType2Common1.ref -bool assign_PFVArType2Common1_ref(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PFVArControllerType2Dynamics::PFVArType2Common1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ref.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PFVArType2IEEEVArController.exlon -bool assign_PFVArType2IEEEVArController_exlon(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PFVArControllerType2Dynamics::PFVArType2IEEEVArController* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->exlon; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PFVArType2IEEEVArController.ki -bool assign_PFVArType2IEEEVArController_ki(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PFVArControllerType2Dynamics::PFVArType2IEEEVArController* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ki.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PFVArType2IEEEVArController.kp -bool assign_PFVArType2IEEEVArController_kp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PFVArControllerType2Dynamics::PFVArType2IEEEVArController* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PFVArType2IEEEVArController.qref -bool assign_PFVArType2IEEEVArController_qref(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PFVArControllerType2Dynamics::PFVArType2IEEEVArController* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->qref.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PFVArType2IEEEVArController.vclmt -bool assign_PFVArType2IEEEVArController_vclmt(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PFVArControllerType2Dynamics::PFVArType2IEEEVArController* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vclmt.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PFVArType2IEEEVArController.vref -bool assign_PFVArType2IEEEVArController_vref(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PFVArControllerType2Dynamics::PFVArType2IEEEVArController* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vref.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PFVArType2IEEEVArController.vs -bool assign_PFVArType2IEEEVArController_vs(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::PFVArControllerType2Dynamics::PFVArType2IEEEVArController* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vs; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLim2Simplified.kui -bool assign_UnderexcLim2Simplified_kui(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLim2Simplified* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kui.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLim2Simplified.p0 -bool assign_UnderexcLim2Simplified_p0(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLim2Simplified* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->p0.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLim2Simplified.p1 -bool assign_UnderexcLim2Simplified_p1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLim2Simplified* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->p1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLim2Simplified.q0 -bool assign_UnderexcLim2Simplified_q0(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLim2Simplified* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->q0.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLim2Simplified.q1 -bool assign_UnderexcLim2Simplified_q1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLim2Simplified* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->q1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLim2Simplified.vuimax -bool assign_UnderexcLim2Simplified_vuimax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLim2Simplified* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vuimax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLim2Simplified.vuimin -bool assign_UnderexcLim2Simplified_vuimin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLim2Simplified* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vuimin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimIEEE2.k1 -bool assign_UnderexcLimIEEE2_k1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimIEEE2.k2 -bool assign_UnderexcLimIEEE2_k2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimIEEE2.kfb -bool assign_UnderexcLimIEEE2_kfb(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kfb.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimIEEE2.kuf -bool assign_UnderexcLimIEEE2_kuf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kuf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimIEEE2.kui -bool assign_UnderexcLimIEEE2_kui(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kui.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimIEEE2.kul -bool assign_UnderexcLimIEEE2_kul(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kul.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimIEEE2.p0 -bool assign_UnderexcLimIEEE2_p0(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->p0.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimIEEE2.p1 -bool assign_UnderexcLimIEEE2_p1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->p1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimIEEE2.p10 -bool assign_UnderexcLimIEEE2_p10(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->p10.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimIEEE2.p2 -bool assign_UnderexcLimIEEE2_p2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->p2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimIEEE2.p3 -bool assign_UnderexcLimIEEE2_p3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->p3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimIEEE2.p4 -bool assign_UnderexcLimIEEE2_p4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->p4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimIEEE2.p5 -bool assign_UnderexcLimIEEE2_p5(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->p5.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimIEEE2.p6 -bool assign_UnderexcLimIEEE2_p6(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->p6.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimIEEE2.p7 -bool assign_UnderexcLimIEEE2_p7(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->p7.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimIEEE2.p8 -bool assign_UnderexcLimIEEE2_p8(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->p8.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimIEEE2.p9 -bool assign_UnderexcLimIEEE2_p9(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->p9.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimIEEE2.q0 -bool assign_UnderexcLimIEEE2_q0(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->q0.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimIEEE2.q1 -bool assign_UnderexcLimIEEE2_q1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->q1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimIEEE2.q10 -bool assign_UnderexcLimIEEE2_q10(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->q10.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimIEEE2.q2 -bool assign_UnderexcLimIEEE2_q2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->q2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimIEEE2.q3 -bool assign_UnderexcLimIEEE2_q3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->q3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimIEEE2.q4 -bool assign_UnderexcLimIEEE2_q4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->q4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimIEEE2.q5 -bool assign_UnderexcLimIEEE2_q5(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->q5.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimIEEE2.q6 -bool assign_UnderexcLimIEEE2_q6(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->q6.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimIEEE2.q7 -bool assign_UnderexcLimIEEE2_q7(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->q7.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimIEEE2.q8 -bool assign_UnderexcLimIEEE2_q8(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->q8.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimIEEE2.q9 -bool assign_UnderexcLimIEEE2_q9(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->q9.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimIEEE2.tu1 -bool assign_UnderexcLimIEEE2_tu1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tu1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimIEEE2.tu2 -bool assign_UnderexcLimIEEE2_tu2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tu2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimIEEE2.tu3 -bool assign_UnderexcLimIEEE2_tu3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tu3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimIEEE2.tu4 -bool assign_UnderexcLimIEEE2_tu4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tu4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimIEEE2.tul -bool assign_UnderexcLimIEEE2_tul(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tul.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimIEEE2.tup -bool assign_UnderexcLimIEEE2_tup(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tup.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimIEEE2.tuq -bool assign_UnderexcLimIEEE2_tuq(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tuq.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimIEEE2.tuv -bool assign_UnderexcLimIEEE2_tuv(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tuv.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimIEEE2.vuimax -bool assign_UnderexcLimIEEE2_vuimax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vuimax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimIEEE2.vuimin -bool assign_UnderexcLimIEEE2_vuimin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vuimin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimIEEE2.vulmax -bool assign_UnderexcLimIEEE2_vulmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vulmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimIEEE2.vulmin -bool assign_UnderexcLimIEEE2_vulmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimIEEE2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vulmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimIEEE1.kuc -bool assign_UnderexcLimIEEE1_kuc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimIEEE1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kuc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimIEEE1.kuf -bool assign_UnderexcLimIEEE1_kuf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimIEEE1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kuf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimIEEE1.kui -bool assign_UnderexcLimIEEE1_kui(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimIEEE1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kui.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimIEEE1.kul -bool assign_UnderexcLimIEEE1_kul(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimIEEE1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kul.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimIEEE1.kur -bool assign_UnderexcLimIEEE1_kur(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimIEEE1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kur.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimIEEE1.tu1 -bool assign_UnderexcLimIEEE1_tu1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimIEEE1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tu1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimIEEE1.tu2 -bool assign_UnderexcLimIEEE1_tu2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimIEEE1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tu2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimIEEE1.tu3 -bool assign_UnderexcLimIEEE1_tu3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimIEEE1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tu3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimIEEE1.tu4 -bool assign_UnderexcLimIEEE1_tu4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimIEEE1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tu4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimIEEE1.vucmax -bool assign_UnderexcLimIEEE1_vucmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimIEEE1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vucmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimIEEE1.vuimax -bool assign_UnderexcLimIEEE1_vuimax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimIEEE1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vuimax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimIEEE1.vuimin -bool assign_UnderexcLimIEEE1_vuimin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimIEEE1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vuimin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimIEEE1.vulmax -bool assign_UnderexcLimIEEE1_vulmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimIEEE1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vulmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimIEEE1.vulmin -bool assign_UnderexcLimIEEE1_vulmin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimIEEE1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vulmin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimIEEE1.vurmax -bool assign_UnderexcLimIEEE1_vurmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimIEEE1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->vurmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimX2.kf2 -bool assign_UnderexcLimX2_kf2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimX2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kf2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimX2.km -bool assign_UnderexcLimX2_km(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimX2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->km.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimX2.melmax -bool assign_UnderexcLimX2_melmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimX2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->melmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimX2.qo -bool assign_UnderexcLimX2_qo(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimX2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->qo.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimX2.r -bool assign_UnderexcLimX2_r(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimX2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->r.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimX2.tf2 -bool assign_UnderexcLimX2_tf2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimX2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tf2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimX2.tm -bool assign_UnderexcLimX2_tm(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimX2* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tm.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimX1.k -bool assign_UnderexcLimX1_k(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimX1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->k.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimX1.kf2 -bool assign_UnderexcLimX1_kf2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimX1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kf2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimX1.km -bool assign_UnderexcLimX1_km(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimX1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->km.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimX1.melmax -bool assign_UnderexcLimX1_melmax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimX1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->melmax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimX1.tf2 -bool assign_UnderexcLimX1_tf2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimX1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tf2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:UnderexcLimX1.tm -bool assign_UnderexcLimX1_tm(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Dynamics::StandardModels::UnderexcitationLimiterDynamics::UnderexcLimX1* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tm.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Susceptance.multiplier -bool assign_Susceptance_multiplier(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Domain::Susceptance* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->multiplier; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Conductance.multiplier -bool assign_Conductance_multiplier(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Domain::Conductance* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->multiplier; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EquivalentShunt.b -bool assign_EquivalentShunt_b(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Equivalents::EquivalentShunt* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->b.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EquivalentShunt.g -bool assign_EquivalentShunt_g(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Equivalents::EquivalentShunt* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->g.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EquivalentBranch.negativeR12 -bool assign_EquivalentBranch_negativeR12(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Equivalents::EquivalentBranch* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->negativeR12.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EquivalentBranch.negativeR21 -bool assign_EquivalentBranch_negativeR21(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Equivalents::EquivalentBranch* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->negativeR21.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EquivalentBranch.negativeX12 -bool assign_EquivalentBranch_negativeX12(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Equivalents::EquivalentBranch* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->negativeX12.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EquivalentBranch.negativeX21 -bool assign_EquivalentBranch_negativeX21(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Equivalents::EquivalentBranch* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->negativeX21.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EquivalentBranch.positiveR12 -bool assign_EquivalentBranch_positiveR12(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Equivalents::EquivalentBranch* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->positiveR12.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EquivalentBranch.positiveR21 -bool assign_EquivalentBranch_positiveR21(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Equivalents::EquivalentBranch* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->positiveR21.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EquivalentBranch.positiveX12 -bool assign_EquivalentBranch_positiveX12(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Equivalents::EquivalentBranch* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->positiveX12.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EquivalentBranch.positiveX21 -bool assign_EquivalentBranch_positiveX21(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Equivalents::EquivalentBranch* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->positiveX21.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EquivalentBranch.r -bool assign_EquivalentBranch_r(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Equivalents::EquivalentBranch* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->r.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EquivalentBranch.r21 -bool assign_EquivalentBranch_r21(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Equivalents::EquivalentBranch* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->r21.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EquivalentBranch.x -bool assign_EquivalentBranch_x(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Equivalents::EquivalentBranch* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->x.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EquivalentBranch.x21 -bool assign_EquivalentBranch_x21(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Equivalents::EquivalentBranch* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->x21.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EquivalentBranch.zeroR12 -bool assign_EquivalentBranch_zeroR12(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Equivalents::EquivalentBranch* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->zeroR12.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EquivalentBranch.zeroR21 -bool assign_EquivalentBranch_zeroR21(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Equivalents::EquivalentBranch* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->zeroR21.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EquivalentBranch.zeroX12 -bool assign_EquivalentBranch_zeroX12(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Equivalents::EquivalentBranch* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->zeroX12.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EquivalentBranch.zeroX21 -bool assign_EquivalentBranch_zeroX21(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Equivalents::EquivalentBranch* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->zeroX21.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EquivalentInjection.maxP -bool assign_EquivalentInjection_maxP(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Equivalents::EquivalentInjection* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->maxP.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EquivalentInjection.maxQ -bool assign_EquivalentInjection_maxQ(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Equivalents::EquivalentInjection* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->maxQ.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EquivalentInjection.minP -bool assign_EquivalentInjection_minP(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Equivalents::EquivalentInjection* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->minP.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EquivalentInjection.minQ -bool assign_EquivalentInjection_minQ(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Equivalents::EquivalentInjection* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->minQ.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EquivalentInjection.p -bool assign_EquivalentInjection_p(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Equivalents::EquivalentInjection* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->p.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EquivalentInjection.q -bool assign_EquivalentInjection_q(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Equivalents::EquivalentInjection* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->q.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EquivalentInjection.r -bool assign_EquivalentInjection_r(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Equivalents::EquivalentInjection* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->r.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EquivalentInjection.r0 -bool assign_EquivalentInjection_r0(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Equivalents::EquivalentInjection* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->r0.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EquivalentInjection.r2 -bool assign_EquivalentInjection_r2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Equivalents::EquivalentInjection* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->r2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EquivalentInjection.regulationCapability -bool assign_EquivalentInjection_regulationCapability(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Equivalents::EquivalentInjection* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->regulationCapability; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EquivalentInjection.regulationStatus -bool assign_EquivalentInjection_regulationStatus(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Equivalents::EquivalentInjection* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->regulationStatus; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EquivalentInjection.regulationTarget -bool assign_EquivalentInjection_regulationTarget(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Equivalents::EquivalentInjection* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->regulationTarget.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EquivalentInjection.x -bool assign_EquivalentInjection_x(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Equivalents::EquivalentInjection* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->x.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EquivalentInjection.x0 -bool assign_EquivalentInjection_x0(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Equivalents::EquivalentInjection* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->x0.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EquivalentInjection.x2 -bool assign_EquivalentInjection_x2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Equivalents::EquivalentInjection* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->x2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:OperationalLimitType.acceptableDuration -bool assign_OperationalLimitType_acceptableDuration(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::OperationalLimits::OperationalLimitType* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->acceptableDuration.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:OperationalLimitType.direction -bool assign_OperationalLimitType_direction(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::OperationalLimits::OperationalLimitType* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->direction; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ActivePowerLimit.value -bool assign_ActivePowerLimit_value(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::OperationalLimits::ActivePowerLimit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->value.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:VoltageLimit.value -bool assign_VoltageLimit_value(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::OperationalLimits::VoltageLimit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->value.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:CurrentLimit.value -bool assign_CurrentLimit_value(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::OperationalLimits::CurrentLimit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->value.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:BranchGroupTerminal.positiveFlowIn -bool assign_BranchGroupTerminal_positiveFlowIn(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::OperationalLimits::BranchGroupTerminal* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->positiveFlowIn; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:BranchGroup.maximumActivePower -bool assign_BranchGroup_maximumActivePower(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::OperationalLimits::BranchGroup* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->maximumActivePower.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:BranchGroup.maximumReactivePower -bool assign_BranchGroup_maximumReactivePower(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::OperationalLimits::BranchGroup* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->maximumReactivePower.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:BranchGroup.minimumActivePower -bool assign_BranchGroup_minimumActivePower(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::OperationalLimits::BranchGroup* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->minimumActivePower.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:BranchGroup.minimumReactivePower -bool assign_BranchGroup_minimumReactivePower(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::OperationalLimits::BranchGroup* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->minimumReactivePower.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:BranchGroup.monitorActivePower -bool assign_BranchGroup_monitorActivePower(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::OperationalLimits::BranchGroup* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->monitorActivePower; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:BranchGroup.monitorReactivePower -bool assign_BranchGroup_monitorReactivePower(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::OperationalLimits::BranchGroup* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->monitorReactivePower; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ApparentPowerLimit.value -bool assign_ApparentPowerLimit_value(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::OperationalLimits::ApparentPowerLimit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->value.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:BusNameMarker.priority -bool assign_BusNameMarker_priority(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Topology::BusNameMarker* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->priority; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:BaseVoltage.nominalVoltage -bool assign_BaseVoltage_nominalVoltage(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Core::BaseVoltage* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->nominalVoltage.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TopologicalNode.pInjection -bool assign_TopologicalNode_pInjection(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Topology::TopologicalNode* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pInjection.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TopologicalNode.qInjection -bool assign_TopologicalNode_qInjection(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Topology::TopologicalNode* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->qInjection.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Impedance.multiplier -bool assign_Impedance_multiplier(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Domain::Impedance* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->multiplier; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:StringQuantity.multiplier -bool assign_StringQuantity_multiplier(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Domain::StringQuantity* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->multiplier; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:StringQuantity.unit -bool assign_StringQuantity_unit(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Domain::StringQuantity* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->unit; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WaterLevel.multiplier -bool assign_WaterLevel_multiplier(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Domain::WaterLevel* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->multiplier; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:VoltagePerReactivePower.multiplier -bool assign_VoltagePerReactivePower_multiplier(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Domain::VoltagePerReactivePower* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->multiplier; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:IntegerQuantity.multiplier -bool assign_IntegerQuantity_multiplier(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Domain::IntegerQuantity* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->multiplier; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:IntegerQuantity.unit -bool assign_IntegerQuantity_unit(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Domain::IntegerQuantity* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->unit; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:CostRate.multiplier -bool assign_CostRate_multiplier(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Domain::CostRate* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->multiplier; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:CostRate.unit -bool assign_CostRate_unit(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Domain::CostRate* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->unit; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:MonthDayInterval.end -bool assign_MonthDayInterval_end(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Domain::MonthDayInterval* element = dynamic_cast(base_class_ptr)) - { - element->end.value = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:MonthDayInterval.start -bool assign_MonthDayInterval_start(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Domain::MonthDayInterval* element = dynamic_cast(base_class_ptr)) - { - element->start.value = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Volume.multiplier -bool assign_Volume_multiplier(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Domain::Volume* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->multiplier; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Weight.multiplier -bool assign_Weight_multiplier(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Domain::Weight* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->multiplier; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:CostPerVolume.multiplier -bool assign_CostPerVolume_multiplier(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Domain::CostPerVolume* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->multiplier; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:CostPerVolume.unit -bool assign_CostPerVolume_unit(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Domain::CostPerVolume* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->unit; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Pressure.multiplier -bool assign_Pressure_multiplier(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Domain::Pressure* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->multiplier; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ActivePowerChangeRate.multiplier -bool assign_ActivePowerChangeRate_multiplier(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Domain::ActivePowerChangeRate* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->multiplier; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:DecimalQuantity.currency -bool assign_DecimalQuantity_currency(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Domain::DecimalQuantity* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->currency; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:DecimalQuantity.multiplier -bool assign_DecimalQuantity_multiplier(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Domain::DecimalQuantity* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->multiplier; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:DecimalQuantity.unit -bool assign_DecimalQuantity_unit(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Domain::DecimalQuantity* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->unit; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ActivePowerPerCurrentFlow.multiplier -bool assign_ActivePowerPerCurrentFlow_multiplier(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Domain::ActivePowerPerCurrentFlow* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->multiplier; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ActivePowerPerFrequency.multiplier -bool assign_ActivePowerPerFrequency_multiplier(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Domain::ActivePowerPerFrequency* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->multiplier; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Capacitance.multiplier -bool assign_Capacitance_multiplier(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Domain::Capacitance* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->multiplier; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Inductance.multiplier -bool assign_Inductance_multiplier(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Domain::Inductance* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->multiplier; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Money.multiplier -bool assign_Money_multiplier(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Domain::Money* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->multiplier; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Money.unit -bool assign_Money_unit(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Domain::Money* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->unit; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:CostPerEnergyUnit.multiplier -bool assign_CostPerEnergyUnit_multiplier(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Domain::CostPerEnergyUnit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->multiplier; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:CostPerEnergyUnit.unit -bool assign_CostPerEnergyUnit_unit(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Domain::CostPerEnergyUnit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->unit; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TimeInterval.end -bool assign_TimeInterval_end(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Domain::TimeInterval* element = dynamic_cast(base_class_ptr)) - { - element->end.value = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TimeInterval.start -bool assign_TimeInterval_start(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Domain::TimeInterval* element = dynamic_cast(base_class_ptr)) - { - element->start.value = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:DateInterval.end -bool assign_DateInterval_end(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Domain::DateInterval* element = dynamic_cast(base_class_ptr)) - { - element->end.value = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:DateInterval.start -bool assign_DateInterval_start(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Domain::DateInterval* element = dynamic_cast(base_class_ptr)) - { - element->start.value = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:DateTimeInterval.end -bool assign_DateTimeInterval_end(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Domain::DateTimeInterval* element = dynamic_cast(base_class_ptr)) - { - element->end.value = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:DateTimeInterval.start -bool assign_DateTimeInterval_start(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Domain::DateTimeInterval* element = dynamic_cast(base_class_ptr)) - { - element->start.value = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:FloatQuantity.multiplier -bool assign_FloatQuantity_multiplier(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Domain::FloatQuantity* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->multiplier; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:FloatQuantity.unit -bool assign_FloatQuantity_unit(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Domain::FloatQuantity* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->unit; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Admittance.multiplier -bool assign_Admittance_multiplier(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Domain::Admittance* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->multiplier; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:RealEnergy.multiplier -bool assign_RealEnergy_multiplier(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Domain::RealEnergy* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->multiplier; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:RemoteUnit.remoteUnitType -bool assign_RemoteUnit_remoteUnitType(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::SCADA::RemoteUnit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->remoteUnitType; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:RemoteControl.actuatorMaximum -bool assign_RemoteControl_actuatorMaximum(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::SCADA::RemoteControl* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->actuatorMaximum; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:RemoteControl.actuatorMinimum -bool assign_RemoteControl_actuatorMinimum(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::SCADA::RemoteControl* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->actuatorMinimum; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:RemoteControl.remoteControlled -bool assign_RemoteControl_remoteControlled(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::SCADA::RemoteControl* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->remoteControlled; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:RemoteSource.deadband -bool assign_RemoteSource_deadband(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::SCADA::RemoteSource* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->deadband; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:RemoteSource.scanInterval -bool assign_RemoteSource_scanInterval(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::SCADA::RemoteSource* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->scanInterval.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:RemoteSource.sensorMaximum -bool assign_RemoteSource_sensorMaximum(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::SCADA::RemoteSource* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->sensorMaximum; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:RemoteSource.sensorMinimum -bool assign_RemoteSource_sensorMinimum(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::SCADA::RemoteSource* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->sensorMinimum; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PotentialTransformer.accuracyClass -bool assign_PotentialTransformer_accuracyClass(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::AuxiliaryEquipment::PotentialTransformer* element = dynamic_cast(base_class_ptr)) - { - element->accuracyClass = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PotentialTransformer.nominalRatio -bool assign_PotentialTransformer_nominalRatio(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::AuxiliaryEquipment::PotentialTransformer* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->nominalRatio; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PotentialTransformer.ptClass -bool assign_PotentialTransformer_ptClass(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::AuxiliaryEquipment::PotentialTransformer* element = dynamic_cast(base_class_ptr)) - { - element->ptClass = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PotentialTransformer.type -bool assign_PotentialTransformer_type(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::AuxiliaryEquipment::PotentialTransformer* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->type; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:CurrentTransformer.accuracyClass -bool assign_CurrentTransformer_accuracyClass(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::AuxiliaryEquipment::CurrentTransformer* element = dynamic_cast(base_class_ptr)) - { - element->accuracyClass = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:CurrentTransformer.accuracyLimit -bool assign_CurrentTransformer_accuracyLimit(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::AuxiliaryEquipment::CurrentTransformer* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->accuracyLimit.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:CurrentTransformer.coreBurden -bool assign_CurrentTransformer_coreBurden(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::AuxiliaryEquipment::CurrentTransformer* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->coreBurden.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:CurrentTransformer.ctClass -bool assign_CurrentTransformer_ctClass(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::AuxiliaryEquipment::CurrentTransformer* element = dynamic_cast(base_class_ptr)) - { - element->ctClass = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:CurrentTransformer.usage -bool assign_CurrentTransformer_usage(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::AuxiliaryEquipment::CurrentTransformer* element = dynamic_cast(base_class_ptr)) - { - element->usage = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:CurveData.xvalue -bool assign_CurveData_xvalue(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Core::CurveData* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->xvalue; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:CurveData.y1value -bool assign_CurveData_y1value(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Core::CurveData* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->y1value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:CurveData.y2value -bool assign_CurveData_y2value(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Core::CurveData* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->y2value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:CurveData.y3value -bool assign_CurveData_y3value(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Core::CurveData* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->y3value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Bay.bayEnergyMeasFlag -bool assign_Bay_bayEnergyMeasFlag(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Core::Bay* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->bayEnergyMeasFlag; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Bay.bayPowerMeasFlag -bool assign_Bay_bayPowerMeasFlag(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Core::Bay* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->bayPowerMeasFlag; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Bay.breakerConfiguration -bool assign_Bay_breakerConfiguration(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Core::Bay* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->breakerConfiguration; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Bay.busBarConfiguration -bool assign_Bay_busBarConfiguration(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Core::Bay* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->busBarConfiguration; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:VoltageLevel.highVoltageLimit -bool assign_VoltageLevel_highVoltageLimit(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Core::VoltageLevel* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->highVoltageLimit.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:VoltageLevel.lowVoltageLimit -bool assign_VoltageLevel_lowVoltageLimit(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Core::VoltageLevel* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->lowVoltageLimit.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:DCConverterUnit.operationMode -bool assign_DCConverterUnit_operationMode(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DC::DCConverterUnit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->operationMode; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:OperatingShare.percentage -bool assign_OperatingShare_percentage(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Core::OperatingShare* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->percentage.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Curve.curveStyle -bool assign_Curve_curveStyle(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Core::Curve* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->curveStyle; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Curve.xMultiplier -bool assign_Curve_xMultiplier(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Core::Curve* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->xMultiplier; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Curve.xUnit -bool assign_Curve_xUnit(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Core::Curve* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->xUnit; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Curve.y1Multiplier -bool assign_Curve_y1Multiplier(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Core::Curve* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->y1Multiplier; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Curve.y1Unit -bool assign_Curve_y1Unit(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Core::Curve* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->y1Unit; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Curve.y2Multiplier -bool assign_Curve_y2Multiplier(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Core::Curve* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->y2Multiplier; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Curve.y2Unit -bool assign_Curve_y2Unit(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Core::Curve* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->y2Unit; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Curve.y3Multiplier -bool assign_Curve_y3Multiplier(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Core::Curve* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->y3Multiplier; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Curve.y3Unit -bool assign_Curve_y3Unit(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Core::Curve* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->y3Unit; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:BaseFrequency.frequency -bool assign_BaseFrequency_frequency(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Core::BaseFrequency* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->frequency.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:NameTypeAuthority.description -bool assign_NameTypeAuthority_description(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Core::NameTypeAuthority* element = dynamic_cast(base_class_ptr)) - { - element->description = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:NameTypeAuthority.name -bool assign_NameTypeAuthority_name(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Core::NameTypeAuthority* element = dynamic_cast(base_class_ptr)) - { - element->name = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:NameType.description -bool assign_NameType_description(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Core::NameType* element = dynamic_cast(base_class_ptr)) - { - element->description = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:NameType.name -bool assign_NameType_name(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Core::NameType* element = dynamic_cast(base_class_ptr)) - { - element->name = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Name.name -bool assign_Name_name(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Core::Name* element = dynamic_cast(base_class_ptr)) - { - element->name = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:IrregularTimePoint.time -bool assign_IrregularTimePoint_time(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Core::IrregularTimePoint* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->time.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:IrregularTimePoint.value1 -bool assign_IrregularTimePoint_value1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Core::IrregularTimePoint* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->value1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:IrregularTimePoint.value2 -bool assign_IrregularTimePoint_value2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Core::IrregularTimePoint* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->value2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:BasePower.basePower -bool assign_BasePower_basePower(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Core::BasePower* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->basePower.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Diagram.orientation -bool assign_Diagram_orientation(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DiagramLayout::Diagram* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->orientation; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Diagram.x1InitialView -bool assign_Diagram_x1InitialView(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DiagramLayout::Diagram* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->x1InitialView; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Diagram.x2InitialView -bool assign_Diagram_x2InitialView(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DiagramLayout::Diagram* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->x2InitialView; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Diagram.y1InitialView -bool assign_Diagram_y1InitialView(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DiagramLayout::Diagram* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->y1InitialView; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Diagram.y2InitialView -bool assign_Diagram_y2InitialView(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DiagramLayout::Diagram* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->y2InitialView; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:VisibilityLayer.drawingOrder -bool assign_VisibilityLayer_drawingOrder(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DiagramLayout::VisibilityLayer* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->drawingOrder; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:DiagramObjectPoint.sequenceNumber -bool assign_DiagramObjectPoint_sequenceNumber(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DiagramLayout::DiagramObjectPoint* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->sequenceNumber; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:DiagramObjectPoint.xPosition -bool assign_DiagramObjectPoint_xPosition(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DiagramLayout::DiagramObjectPoint* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->xPosition; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:DiagramObjectPoint.yPosition -bool assign_DiagramObjectPoint_yPosition(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DiagramLayout::DiagramObjectPoint* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->yPosition; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:DiagramObjectPoint.zPosition -bool assign_DiagramObjectPoint_zPosition(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DiagramLayout::DiagramObjectPoint* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->zPosition; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:DiagramObject.drawingOrder -bool assign_DiagramObject_drawingOrder(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DiagramLayout::DiagramObject* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->drawingOrder; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:DiagramObject.isPolygon -bool assign_DiagramObject_isPolygon(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DiagramLayout::DiagramObject* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->isPolygon; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:DiagramObject.offsetX -bool assign_DiagramObject_offsetX(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DiagramLayout::DiagramObject* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->offsetX; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:DiagramObject.offsetY -bool assign_DiagramObject_offsetY(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DiagramLayout::DiagramObject* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->offsetY; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:DiagramObject.rotation -bool assign_DiagramObject_rotation(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DiagramLayout::DiagramObject* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->rotation.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TextDiagramObject.text -bool assign_TextDiagramObject_text(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DiagramLayout::TextDiagramObject* element = dynamic_cast(base_class_ptr)) - { - element->text = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PowerCutZone.cutLevel1 -bool assign_PowerCutZone_cutLevel1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::LoadModel::PowerCutZone* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->cutLevel1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PowerCutZone.cutLevel2 -bool assign_PowerCutZone_cutLevel2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::LoadModel::PowerCutZone* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->cutLevel2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Season.endDate -bool assign_Season_endDate(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::LoadModel::Season* element = dynamic_cast(base_class_ptr)) - { - element->endDate.value = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Season.startDate -bool assign_Season_startDate(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::LoadModel::Season* element = dynamic_cast(base_class_ptr)) - { - element->startDate.value = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ShuntCompensatorPhase.maximumSections -bool assign_ShuntCompensatorPhase_maximumSections(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::ShuntCompensatorPhase* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->maximumSections; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ShuntCompensatorPhase.normalSections -bool assign_ShuntCompensatorPhase_normalSections(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::ShuntCompensatorPhase* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->normalSections; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ShuntCompensatorPhase.phase -bool assign_ShuntCompensatorPhase_phase(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::ShuntCompensatorPhase* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->phase; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ShuntCompensator.aVRDelay -bool assign_ShuntCompensator_aVRDelay(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::ShuntCompensator* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->aVRDelay.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ShuntCompensator.grounded -bool assign_ShuntCompensator_grounded(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::ShuntCompensator* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->grounded; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ShuntCompensator.maximumSections -bool assign_ShuntCompensator_maximumSections(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::ShuntCompensator* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->maximumSections; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ShuntCompensator.nomU -bool assign_ShuntCompensator_nomU(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::ShuntCompensator* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->nomU.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ShuntCompensator.normalSections -bool assign_ShuntCompensator_normalSections(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::ShuntCompensator* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->normalSections; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ShuntCompensator.phaseConnection -bool assign_ShuntCompensator_phaseConnection(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::ShuntCompensator* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->phaseConnection; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ShuntCompensator.sections -bool assign_ShuntCompensator_sections(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::ShuntCompensator* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->sections; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ShuntCompensator.switchOnCount -bool assign_ShuntCompensator_switchOnCount(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::ShuntCompensator* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->switchOnCount; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ShuntCompensator.switchOnDate -bool assign_ShuntCompensator_switchOnDate(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::ShuntCompensator* element = dynamic_cast(base_class_ptr)) - { - element->switchOnDate.value = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ShuntCompensator.voltageSensitivity -bool assign_ShuntCompensator_voltageSensitivity(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::ShuntCompensator* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->voltageSensitivity.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LinearShuntCompensator.b0PerSection -bool assign_LinearShuntCompensator_b0PerSection(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::LinearShuntCompensator* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->b0PerSection.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LinearShuntCompensator.bPerSection -bool assign_LinearShuntCompensator_bPerSection(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::LinearShuntCompensator* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->bPerSection.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LinearShuntCompensator.g0PerSection -bool assign_LinearShuntCompensator_g0PerSection(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::LinearShuntCompensator* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->g0PerSection.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LinearShuntCompensator.gPerSection -bool assign_LinearShuntCompensator_gPerSection(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::LinearShuntCompensator* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gPerSection.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TapChangerControl.limitVoltage -bool assign_TapChangerControl_limitVoltage(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::TapChangerControl* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->limitVoltage.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TapChangerControl.lineDropCompensation -bool assign_TapChangerControl_lineDropCompensation(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::TapChangerControl* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->lineDropCompensation; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TapChangerControl.lineDropR -bool assign_TapChangerControl_lineDropR(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::TapChangerControl* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->lineDropR.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TapChangerControl.lineDropX -bool assign_TapChangerControl_lineDropX(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::TapChangerControl* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->lineDropX.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TapChangerControl.reverseLineDropR -bool assign_TapChangerControl_reverseLineDropR(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::TapChangerControl* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->reverseLineDropR.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TapChangerControl.reverseLineDropX -bool assign_TapChangerControl_reverseLineDropX(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::TapChangerControl* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->reverseLineDropX.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TapChanger.controlEnabled -bool assign_TapChanger_controlEnabled(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::TapChanger* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->controlEnabled; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TapChanger.highStep -bool assign_TapChanger_highStep(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::TapChanger* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->highStep; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TapChanger.initialDelay -bool assign_TapChanger_initialDelay(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::TapChanger* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->initialDelay.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TapChanger.lowStep -bool assign_TapChanger_lowStep(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::TapChanger* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->lowStep; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TapChanger.ltcFlag -bool assign_TapChanger_ltcFlag(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::TapChanger* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ltcFlag; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TapChanger.neutralStep -bool assign_TapChanger_neutralStep(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::TapChanger* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->neutralStep; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TapChanger.neutralU -bool assign_TapChanger_neutralU(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::TapChanger* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->neutralU.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TapChanger.normalStep -bool assign_TapChanger_normalStep(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::TapChanger* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->normalStep; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TapChanger.step -bool assign_TapChanger_step(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::TapChanger* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->step; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TapChanger.subsequentDelay -bool assign_TapChanger_subsequentDelay(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::TapChanger* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->subsequentDelay.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Conductor.length -bool assign_Conductor_length(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::Conductor* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->length.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Clamp.lengthFromTerminal1 -bool assign_Clamp_lengthFromTerminal1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::Clamp* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->lengthFromTerminal1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ACLineSegment.b0ch -bool assign_ACLineSegment_b0ch(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::ACLineSegment* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->b0ch.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ACLineSegment.bch -bool assign_ACLineSegment_bch(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::ACLineSegment* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->bch.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ACLineSegment.g0ch -bool assign_ACLineSegment_g0ch(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::ACLineSegment* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->g0ch.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ACLineSegment.gch -bool assign_ACLineSegment_gch(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::ACLineSegment* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gch.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ACLineSegment.r -bool assign_ACLineSegment_r(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::ACLineSegment* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->r.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ACLineSegment.r0 -bool assign_ACLineSegment_r0(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::ACLineSegment* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->r0.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ACLineSegment.shortCircuitEndTemperature -bool assign_ACLineSegment_shortCircuitEndTemperature(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::ACLineSegment* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->shortCircuitEndTemperature.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ACLineSegment.x -bool assign_ACLineSegment_x(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::ACLineSegment* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->x.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ACLineSegment.x0 -bool assign_ACLineSegment_x0(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::ACLineSegment* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->x0.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LinearShuntCompensatorPhase.bPerSection -bool assign_LinearShuntCompensatorPhase_bPerSection(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::LinearShuntCompensatorPhase* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->bPerSection.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LinearShuntCompensatorPhase.gPerSection -bool assign_LinearShuntCompensatorPhase_gPerSection(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::LinearShuntCompensatorPhase* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gPerSection.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:MutualCoupling.b0ch -bool assign_MutualCoupling_b0ch(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::MutualCoupling* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->b0ch.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:MutualCoupling.distance11 -bool assign_MutualCoupling_distance11(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::MutualCoupling* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->distance11.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:MutualCoupling.distance12 -bool assign_MutualCoupling_distance12(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::MutualCoupling* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->distance12.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:MutualCoupling.distance21 -bool assign_MutualCoupling_distance21(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::MutualCoupling* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->distance21.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:MutualCoupling.distance22 -bool assign_MutualCoupling_distance22(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::MutualCoupling* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->distance22.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:MutualCoupling.g0ch -bool assign_MutualCoupling_g0ch(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::MutualCoupling* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->g0ch.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:MutualCoupling.r0 -bool assign_MutualCoupling_r0(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::MutualCoupling* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->r0.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:MutualCoupling.x0 -bool assign_MutualCoupling_x0(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::MutualCoupling* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->x0.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:StaticVarCompensator.capacitiveRating -bool assign_StaticVarCompensator_capacitiveRating(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::StaticVarCompensator* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->capacitiveRating.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:StaticVarCompensator.inductiveRating -bool assign_StaticVarCompensator_inductiveRating(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::StaticVarCompensator* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->inductiveRating.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:StaticVarCompensator.q -bool assign_StaticVarCompensator_q(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::StaticVarCompensator* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->q.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:StaticVarCompensator.slope -bool assign_StaticVarCompensator_slope(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::StaticVarCompensator* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->slope.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:StaticVarCompensator.sVCControlMode -bool assign_StaticVarCompensator_sVCControlMode(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::StaticVarCompensator* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->sVCControlMode; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:StaticVarCompensator.voltageSetPoint -bool assign_StaticVarCompensator_voltageSetPoint(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::StaticVarCompensator* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->voltageSetPoint.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PhaseImpedanceData.b -bool assign_PhaseImpedanceData_b(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::PhaseImpedanceData* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->b.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PhaseImpedanceData.r -bool assign_PhaseImpedanceData_r(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::PhaseImpedanceData* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->r.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PhaseImpedanceData.sequenceNumber -bool assign_PhaseImpedanceData_sequenceNumber(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::PhaseImpedanceData* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->sequenceNumber; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PhaseImpedanceData.x -bool assign_PhaseImpedanceData_x(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::PhaseImpedanceData* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->x.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PerLengthPhaseImpedance.conductorCount -bool assign_PerLengthPhaseImpedance_conductorCount(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::PerLengthPhaseImpedance* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->conductorCount; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ReactiveCapabilityCurve.coolantTemperature -bool assign_ReactiveCapabilityCurve_coolantTemperature(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::ReactiveCapabilityCurve* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->coolantTemperature.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ReactiveCapabilityCurve.hydrogenPressure -bool assign_ReactiveCapabilityCurve_hydrogenPressure(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::ReactiveCapabilityCurve* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->hydrogenPressure.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PhaseTapChangerNonLinear.voltageStepIncrement -bool assign_PhaseTapChangerNonLinear_voltageStepIncrement(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::PhaseTapChangerNonLinear* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->voltageStepIncrement.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PhaseTapChangerNonLinear.xMax -bool assign_PhaseTapChangerNonLinear_xMax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::PhaseTapChangerNonLinear* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->xMax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PhaseTapChangerNonLinear.xMin -bool assign_PhaseTapChangerNonLinear_xMin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::PhaseTapChangerNonLinear* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->xMin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EarthFaultCompensator.r -bool assign_EarthFaultCompensator_r(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::EarthFaultCompensator* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->r.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PetersenCoil.mode -bool assign_PetersenCoil_mode(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::PetersenCoil* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->mode; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PetersenCoil.nominalU -bool assign_PetersenCoil_nominalU(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::PetersenCoil* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->nominalU.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PetersenCoil.offsetCurrent -bool assign_PetersenCoil_offsetCurrent(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::PetersenCoil* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->offsetCurrent.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PetersenCoil.positionCurrent -bool assign_PetersenCoil_positionCurrent(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::PetersenCoil* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->positionCurrent.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PetersenCoil.xGroundMax -bool assign_PetersenCoil_xGroundMax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::PetersenCoil* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->xGroundMax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PetersenCoil.xGroundMin -bool assign_PetersenCoil_xGroundMin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::PetersenCoil* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->xGroundMin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PetersenCoil.xGroundNominal -bool assign_PetersenCoil_xGroundNominal(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::PetersenCoil* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->xGroundNominal.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PhaseTapChangerLinear.stepPhaseShiftIncrement -bool assign_PhaseTapChangerLinear_stepPhaseShiftIncrement(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::PhaseTapChangerLinear* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->stepPhaseShiftIncrement.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PhaseTapChangerLinear.xMax -bool assign_PhaseTapChangerLinear_xMax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::PhaseTapChangerLinear* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->xMax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PhaseTapChangerLinear.xMin -bool assign_PhaseTapChangerLinear_xMin(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::PhaseTapChangerLinear* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->xMin.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ACLineSegmentPhase.phase -bool assign_ACLineSegmentPhase_phase(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::ACLineSegmentPhase* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->phase; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ACLineSegmentPhase.sequenceNumber -bool assign_ACLineSegmentPhase_sequenceNumber(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::ACLineSegmentPhase* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->sequenceNumber; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EnergySource.activePower -bool assign_EnergySource_activePower(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::EnergySource* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->activePower.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EnergySource.nominalVoltage -bool assign_EnergySource_nominalVoltage(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::EnergySource* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->nominalVoltage.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EnergySource.r -bool assign_EnergySource_r(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::EnergySource* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->r.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EnergySource.r0 -bool assign_EnergySource_r0(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::EnergySource* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->r0.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EnergySource.reactivePower -bool assign_EnergySource_reactivePower(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::EnergySource* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->reactivePower.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EnergySource.rn -bool assign_EnergySource_rn(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::EnergySource* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->rn.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EnergySource.voltageAngle -bool assign_EnergySource_voltageAngle(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::EnergySource* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->voltageAngle.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EnergySource.voltageMagnitude -bool assign_EnergySource_voltageMagnitude(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::EnergySource* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->voltageMagnitude.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EnergySource.x -bool assign_EnergySource_x(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::EnergySource* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->x.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EnergySource.x0 -bool assign_EnergySource_x0(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::EnergySource* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->x0.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EnergySource.xn -bool assign_EnergySource_xn(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::EnergySource* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->xn.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:NonlinearShuntCompensatorPoint.b -bool assign_NonlinearShuntCompensatorPoint_b(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::NonlinearShuntCompensatorPoint* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->b.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:NonlinearShuntCompensatorPoint.b0 -bool assign_NonlinearShuntCompensatorPoint_b0(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::NonlinearShuntCompensatorPoint* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->b0.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:NonlinearShuntCompensatorPoint.g -bool assign_NonlinearShuntCompensatorPoint_g(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::NonlinearShuntCompensatorPoint* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->g.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:NonlinearShuntCompensatorPoint.g0 -bool assign_NonlinearShuntCompensatorPoint_g0(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::NonlinearShuntCompensatorPoint* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->g0.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:NonlinearShuntCompensatorPoint.sectionNumber -bool assign_NonlinearShuntCompensatorPoint_sectionNumber(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::NonlinearShuntCompensatorPoint* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->sectionNumber; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TransformerStarImpedance.r -bool assign_TransformerStarImpedance_r(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::TransformerStarImpedance* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->r.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TransformerStarImpedance.r0 -bool assign_TransformerStarImpedance_r0(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::TransformerStarImpedance* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->r0.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TransformerStarImpedance.x -bool assign_TransformerStarImpedance_x(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::TransformerStarImpedance* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->x.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TransformerStarImpedance.x0 -bool assign_TransformerStarImpedance_x0(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::TransformerStarImpedance* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->x0.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:RatioTapChanger.stepVoltageIncrement -bool assign_RatioTapChanger_stepVoltageIncrement(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::RatioTapChanger* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->stepVoltageIncrement.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:RatioTapChanger.tculControlMode -bool assign_RatioTapChanger_tculControlMode(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::RatioTapChanger* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tculControlMode; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TransformerEnd.bmagSat -bool assign_TransformerEnd_bmagSat(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::TransformerEnd* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->bmagSat.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TransformerEnd.endNumber -bool assign_TransformerEnd_endNumber(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::TransformerEnd* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->endNumber; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TransformerEnd.grounded -bool assign_TransformerEnd_grounded(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::TransformerEnd* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->grounded; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TransformerEnd.magBaseU -bool assign_TransformerEnd_magBaseU(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::TransformerEnd* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->magBaseU.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TransformerEnd.magSatFlux -bool assign_TransformerEnd_magSatFlux(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::TransformerEnd* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->magSatFlux.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TransformerEnd.rground -bool assign_TransformerEnd_rground(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::TransformerEnd* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->rground.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TransformerEnd.xground -bool assign_TransformerEnd_xground(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::TransformerEnd* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->xground.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PowerTransformerEnd.b -bool assign_PowerTransformerEnd_b(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::PowerTransformerEnd* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->b.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PowerTransformerEnd.b0 -bool assign_PowerTransformerEnd_b0(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::PowerTransformerEnd* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->b0.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PowerTransformerEnd.connectionKind -bool assign_PowerTransformerEnd_connectionKind(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::PowerTransformerEnd* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->connectionKind; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PowerTransformerEnd.g -bool assign_PowerTransformerEnd_g(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::PowerTransformerEnd* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->g.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PowerTransformerEnd.g0 -bool assign_PowerTransformerEnd_g0(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::PowerTransformerEnd* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->g0.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PowerTransformerEnd.phaseAngleClock -bool assign_PowerTransformerEnd_phaseAngleClock(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::PowerTransformerEnd* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->phaseAngleClock; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PowerTransformerEnd.r -bool assign_PowerTransformerEnd_r(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::PowerTransformerEnd* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->r.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PowerTransformerEnd.r0 -bool assign_PowerTransformerEnd_r0(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::PowerTransformerEnd* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->r0.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PowerTransformerEnd.ratedS -bool assign_PowerTransformerEnd_ratedS(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::PowerTransformerEnd* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ratedS.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PowerTransformerEnd.ratedU -bool assign_PowerTransformerEnd_ratedU(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::PowerTransformerEnd* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ratedU.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PowerTransformerEnd.x -bool assign_PowerTransformerEnd_x(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::PowerTransformerEnd* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->x.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PowerTransformerEnd.x0 -bool assign_PowerTransformerEnd_x0(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::PowerTransformerEnd* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->x0.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExternalNetworkInjection.governorSCD -bool assign_ExternalNetworkInjection_governorSCD(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::ExternalNetworkInjection* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->governorSCD.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExternalNetworkInjection.ikSecond -bool assign_ExternalNetworkInjection_ikSecond(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::ExternalNetworkInjection* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ikSecond; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExternalNetworkInjection.maxInitialSymShCCurrent -bool assign_ExternalNetworkInjection_maxInitialSymShCCurrent(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::ExternalNetworkInjection* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->maxInitialSymShCCurrent.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExternalNetworkInjection.maxP -bool assign_ExternalNetworkInjection_maxP(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::ExternalNetworkInjection* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->maxP.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExternalNetworkInjection.maxQ -bool assign_ExternalNetworkInjection_maxQ(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::ExternalNetworkInjection* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->maxQ.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExternalNetworkInjection.maxR0ToX0Ratio -bool assign_ExternalNetworkInjection_maxR0ToX0Ratio(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::ExternalNetworkInjection* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->maxR0ToX0Ratio; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExternalNetworkInjection.maxR1ToX1Ratio -bool assign_ExternalNetworkInjection_maxR1ToX1Ratio(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::ExternalNetworkInjection* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->maxR1ToX1Ratio; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExternalNetworkInjection.maxZ0ToZ1Ratio -bool assign_ExternalNetworkInjection_maxZ0ToZ1Ratio(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::ExternalNetworkInjection* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->maxZ0ToZ1Ratio; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExternalNetworkInjection.minInitialSymShCCurrent -bool assign_ExternalNetworkInjection_minInitialSymShCCurrent(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::ExternalNetworkInjection* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->minInitialSymShCCurrent.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExternalNetworkInjection.minP -bool assign_ExternalNetworkInjection_minP(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::ExternalNetworkInjection* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->minP.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExternalNetworkInjection.minQ -bool assign_ExternalNetworkInjection_minQ(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::ExternalNetworkInjection* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->minQ.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExternalNetworkInjection.minR0ToX0Ratio -bool assign_ExternalNetworkInjection_minR0ToX0Ratio(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::ExternalNetworkInjection* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->minR0ToX0Ratio; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExternalNetworkInjection.minR1ToX1Ratio -bool assign_ExternalNetworkInjection_minR1ToX1Ratio(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::ExternalNetworkInjection* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->minR1ToX1Ratio; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExternalNetworkInjection.minZ0ToZ1Ratio -bool assign_ExternalNetworkInjection_minZ0ToZ1Ratio(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::ExternalNetworkInjection* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->minZ0ToZ1Ratio; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExternalNetworkInjection.p -bool assign_ExternalNetworkInjection_p(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::ExternalNetworkInjection* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->p.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExternalNetworkInjection.q -bool assign_ExternalNetworkInjection_q(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::ExternalNetworkInjection* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->q.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExternalNetworkInjection.referencePriority -bool assign_ExternalNetworkInjection_referencePriority(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::ExternalNetworkInjection* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->referencePriority; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ExternalNetworkInjection.voltageFactor -bool assign_ExternalNetworkInjection_voltageFactor(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::ExternalNetworkInjection* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->voltageFactor.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TapChangerTablePoint.b -bool assign_TapChangerTablePoint_b(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::TapChangerTablePoint* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->b.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TapChangerTablePoint.g -bool assign_TapChangerTablePoint_g(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::TapChangerTablePoint* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->g.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TapChangerTablePoint.r -bool assign_TapChangerTablePoint_r(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::TapChangerTablePoint* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->r.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TapChangerTablePoint.ratio -bool assign_TapChangerTablePoint_ratio(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::TapChangerTablePoint* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ratio; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TapChangerTablePoint.step -bool assign_TapChangerTablePoint_step(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::TapChangerTablePoint* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->step; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TapChangerTablePoint.x -bool assign_TapChangerTablePoint_x(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::TapChangerTablePoint* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->x.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TransformerCoreAdmittance.b -bool assign_TransformerCoreAdmittance_b(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::TransformerCoreAdmittance* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->b.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TransformerCoreAdmittance.b0 -bool assign_TransformerCoreAdmittance_b0(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::TransformerCoreAdmittance* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->b0.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TransformerCoreAdmittance.g -bool assign_TransformerCoreAdmittance_g(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::TransformerCoreAdmittance* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->g.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TransformerCoreAdmittance.g0 -bool assign_TransformerCoreAdmittance_g0(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::TransformerCoreAdmittance* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->g0.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PerLengthSequenceImpedance.b0ch -bool assign_PerLengthSequenceImpedance_b0ch(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::PerLengthSequenceImpedance* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->b0ch.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PerLengthSequenceImpedance.bch -bool assign_PerLengthSequenceImpedance_bch(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::PerLengthSequenceImpedance* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->bch.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PerLengthSequenceImpedance.g0ch -bool assign_PerLengthSequenceImpedance_g0ch(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::PerLengthSequenceImpedance* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->g0ch.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PerLengthSequenceImpedance.gch -bool assign_PerLengthSequenceImpedance_gch(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::PerLengthSequenceImpedance* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gch.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PerLengthSequenceImpedance.r -bool assign_PerLengthSequenceImpedance_r(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::PerLengthSequenceImpedance* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->r.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PerLengthSequenceImpedance.r0 -bool assign_PerLengthSequenceImpedance_r0(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::PerLengthSequenceImpedance* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->r0.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PerLengthSequenceImpedance.x -bool assign_PerLengthSequenceImpedance_x(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::PerLengthSequenceImpedance* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->x.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PerLengthSequenceImpedance.x0 -bool assign_PerLengthSequenceImpedance_x0(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::PerLengthSequenceImpedance* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->x0.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SwitchPhase.closed -bool assign_SwitchPhase_closed(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::SwitchPhase* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->closed; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SwitchPhase.normalOpen -bool assign_SwitchPhase_normalOpen(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::SwitchPhase* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->normalOpen; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SwitchPhase.phaseSide1 -bool assign_SwitchPhase_phaseSide1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::SwitchPhase* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->phaseSide1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SwitchPhase.phaseSide2 -bool assign_SwitchPhase_phaseSide2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::SwitchPhase* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->phaseSide2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Switch.normalOpen -bool assign_Switch_normalOpen(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::Switch* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->normalOpen; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Switch.open -bool assign_Switch_open(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::Switch* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->open; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Switch.ratedCurrent -bool assign_Switch_ratedCurrent(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::Switch* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ratedCurrent.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Switch.retained -bool assign_Switch_retained(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::Switch* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->retained; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Switch.switchOnCount -bool assign_Switch_switchOnCount(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::Switch* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->switchOnCount; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Switch.switchOnDate -bool assign_Switch_switchOnDate(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::Switch* element = dynamic_cast(base_class_ptr)) - { - element->switchOnDate.value = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:RecloseSequence.recloseDelay -bool assign_RecloseSequence_recloseDelay(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Protection::RecloseSequence* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->recloseDelay.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:RecloseSequence.recloseStep -bool assign_RecloseSequence_recloseStep(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Protection::RecloseSequence* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->recloseStep; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ProtectedSwitch.breakingCapacity -bool assign_ProtectedSwitch_breakingCapacity(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::ProtectedSwitch* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->breakingCapacity.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TransformerMeshImpedance.r -bool assign_TransformerMeshImpedance_r(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::TransformerMeshImpedance* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->r.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TransformerMeshImpedance.r0 -bool assign_TransformerMeshImpedance_r0(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::TransformerMeshImpedance* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->r0.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TransformerMeshImpedance.x -bool assign_TransformerMeshImpedance_x(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::TransformerMeshImpedance* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->x.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TransformerMeshImpedance.x0 -bool assign_TransformerMeshImpedance_x0(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::TransformerMeshImpedance* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->x0.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EnergySourcePhase.phase -bool assign_EnergySourcePhase_phase(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::EnergySourcePhase* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->phase; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Breaker.inTransitTime -bool assign_Breaker_inTransitTime(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::Breaker* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->inTransitTime.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:CompositeSwitch.compositeSwitchType -bool assign_CompositeSwitch_compositeSwitchType(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::CompositeSwitch* element = dynamic_cast(base_class_ptr)) - { - element->compositeSwitchType = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PowerTransformer.beforeShCircuitHighestOperatingCurrent -bool assign_PowerTransformer_beforeShCircuitHighestOperatingCurrent(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::PowerTransformer* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->beforeShCircuitHighestOperatingCurrent.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PowerTransformer.beforeShCircuitHighestOperatingVoltage -bool assign_PowerTransformer_beforeShCircuitHighestOperatingVoltage(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::PowerTransformer* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->beforeShCircuitHighestOperatingVoltage.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PowerTransformer.beforeShortCircuitAnglePf -bool assign_PowerTransformer_beforeShortCircuitAnglePf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::PowerTransformer* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->beforeShortCircuitAnglePf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PowerTransformer.highSideMinOperatingU -bool assign_PowerTransformer_highSideMinOperatingU(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::PowerTransformer* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->highSideMinOperatingU.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PowerTransformer.isPartOfGeneratorUnit -bool assign_PowerTransformer_isPartOfGeneratorUnit(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::PowerTransformer* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->isPartOfGeneratorUnit; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PowerTransformer.operationalValuesConsidered -bool assign_PowerTransformer_operationalValuesConsidered(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::PowerTransformer* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->operationalValuesConsidered; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PowerTransformer.vectorGroup -bool assign_PowerTransformer_vectorGroup(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::PowerTransformer* element = dynamic_cast(base_class_ptr)) - { - element->vectorGroup = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Cut.lengthFromTerminal1 -bool assign_Cut_lengthFromTerminal1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::Cut* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->lengthFromTerminal1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:NonlinearShuntCompensatorPhasePoint.b -bool assign_NonlinearShuntCompensatorPhasePoint_b(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::NonlinearShuntCompensatorPhasePoint* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->b.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:NonlinearShuntCompensatorPhasePoint.g -bool assign_NonlinearShuntCompensatorPhasePoint_g(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::NonlinearShuntCompensatorPhasePoint* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->g.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:NonlinearShuntCompensatorPhasePoint.sectionNumber -bool assign_NonlinearShuntCompensatorPhasePoint_sectionNumber(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::NonlinearShuntCompensatorPhasePoint* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->sectionNumber; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PhaseTapChangerTablePoint.angle -bool assign_PhaseTapChangerTablePoint_angle(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::PhaseTapChangerTablePoint* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->angle.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:FrequencyConverter.frequency -bool assign_FrequencyConverter_frequency(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::FrequencyConverter* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->frequency.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:FrequencyConverter.maxP -bool assign_FrequencyConverter_maxP(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::FrequencyConverter* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->maxP.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:FrequencyConverter.maxU -bool assign_FrequencyConverter_maxU(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::FrequencyConverter* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->maxU.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:FrequencyConverter.minP -bool assign_FrequencyConverter_minP(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::FrequencyConverter* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->minP.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:FrequencyConverter.minU -bool assign_FrequencyConverter_minU(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::FrequencyConverter* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->minU.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GroundingImpedance.x -bool assign_GroundingImpedance_x(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::GroundingImpedance* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->x.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SeriesCompensator.r -bool assign_SeriesCompensator_r(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::SeriesCompensator* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->r.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SeriesCompensator.r0 -bool assign_SeriesCompensator_r0(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::SeriesCompensator* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->r0.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SeriesCompensator.varistorPresent -bool assign_SeriesCompensator_varistorPresent(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::SeriesCompensator* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->varistorPresent; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SeriesCompensator.varistorRatedCurrent -bool assign_SeriesCompensator_varistorRatedCurrent(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::SeriesCompensator* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->varistorRatedCurrent.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SeriesCompensator.varistorVoltageThreshold -bool assign_SeriesCompensator_varistorVoltageThreshold(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::SeriesCompensator* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->varistorVoltageThreshold.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SeriesCompensator.x -bool assign_SeriesCompensator_x(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::SeriesCompensator* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->x.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SeriesCompensator.x0 -bool assign_SeriesCompensator_x0(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::SeriesCompensator* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->x0.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PhaseTapChangerAsymmetrical.windingConnectionAngle -bool assign_PhaseTapChangerAsymmetrical_windingConnectionAngle(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::PhaseTapChangerAsymmetrical* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->windingConnectionAngle.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:BusbarSection.ipMax -bool assign_BusbarSection_ipMax(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::BusbarSection* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ipMax.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TransformerTankEnd.phases -bool assign_TransformerTankEnd_phases(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Wires::TransformerTankEnd* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->phases; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Quality61850.badReference -bool assign_Quality61850_badReference(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Meas::Quality61850* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->badReference; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Quality61850.estimatorReplaced -bool assign_Quality61850_estimatorReplaced(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Meas::Quality61850* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->estimatorReplaced; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Quality61850.failure -bool assign_Quality61850_failure(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Meas::Quality61850* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->failure; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Quality61850.oldData -bool assign_Quality61850_oldData(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Meas::Quality61850* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->oldData; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Quality61850.operatorBlocked -bool assign_Quality61850_operatorBlocked(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Meas::Quality61850* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->operatorBlocked; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Quality61850.oscillatory -bool assign_Quality61850_oscillatory(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Meas::Quality61850* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->oscillatory; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Quality61850.outOfRange -bool assign_Quality61850_outOfRange(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Meas::Quality61850* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->outOfRange; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Quality61850.overFlow -bool assign_Quality61850_overFlow(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Meas::Quality61850* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->overFlow; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Quality61850.source -bool assign_Quality61850_source(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Meas::Quality61850* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->source; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Quality61850.suspect -bool assign_Quality61850_suspect(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Meas::Quality61850* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->suspect; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Quality61850.test -bool assign_Quality61850_test(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Meas::Quality61850* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->test; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Quality61850.validity -bool assign_Quality61850_validity(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Meas::Quality61850* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->validity; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:MeasurementValue.sensorAccuracy -bool assign_MeasurementValue_sensorAccuracy(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Meas::MeasurementValue* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->sensorAccuracy.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:MeasurementValue.timeStamp -bool assign_MeasurementValue_timeStamp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Meas::MeasurementValue* element = dynamic_cast(base_class_ptr)) - { - element->timeStamp.value = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:AccumulatorValue.value -bool assign_AccumulatorValue_value(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Meas::AccumulatorValue* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:AnalogControl.maxValue -bool assign_AnalogControl_maxValue(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Meas::AnalogControl* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->maxValue; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:AnalogControl.minValue -bool assign_AnalogControl_minValue(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Meas::AnalogControl* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->minValue; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ValueToAlias.value -bool assign_ValueToAlias_value(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Meas::ValueToAlias* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:AccumulatorLimit.value -bool assign_AccumulatorLimit_value(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Meas::AccumulatorLimit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LimitSet.isPercentageLimits -bool assign_LimitSet_isPercentageLimits(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Meas::LimitSet* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->isPercentageLimits; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:AnalogLimit.value -bool assign_AnalogLimit_value(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Meas::AnalogLimit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:AnalogValue.value -bool assign_AnalogValue_value(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Meas::AnalogValue* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Command.normalValue -bool assign_Command_normalValue(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Meas::Command* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->normalValue; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Command.value -bool assign_Command_value(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Meas::Command* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:StringMeasurementValue.value -bool assign_StringMeasurementValue_value(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Meas::StringMeasurementValue* element = dynamic_cast(base_class_ptr)) - { - element->value = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:DiscreteValue.value -bool assign_DiscreteValue_value(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Meas::DiscreteValue* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Accumulator.maxValue -bool assign_Accumulator_maxValue(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Meas::Accumulator* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->maxValue; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Analog.maxValue -bool assign_Analog_maxValue(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Meas::Analog* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->maxValue; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Analog.minValue -bool assign_Analog_minValue(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Meas::Analog* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->minValue; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Analog.normalValue -bool assign_Analog_normalValue(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Meas::Analog* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->normalValue; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Analog.positiveFlowIn -bool assign_Analog_positiveFlowIn(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Meas::Analog* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->positiveFlowIn; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Discrete.maxValue -bool assign_Discrete_maxValue(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Meas::Discrete* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->maxValue; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Discrete.minValue -bool assign_Discrete_minValue(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Meas::Discrete* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->minValue; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Discrete.normalValue -bool assign_Discrete_normalValue(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Meas::Discrete* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->normalValue; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SetPoint.normalValue -bool assign_SetPoint_normalValue(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Meas::SetPoint* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->normalValue; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SetPoint.value -bool assign_SetPoint_value(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Meas::SetPoint* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SvTapStep.position -bool assign_SvTapStep_position(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::StateVariables::SvTapStep* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->position; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SvVoltage.angle -bool assign_SvVoltage_angle(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::StateVariables::SvVoltage* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->angle.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SvVoltage.phase -bool assign_SvVoltage_phase(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::StateVariables::SvVoltage* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->phase; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SvVoltage.v -bool assign_SvVoltage_v(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::StateVariables::SvVoltage* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->v.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SvShuntCompensatorSections.sections -bool assign_SvShuntCompensatorSections_sections(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::StateVariables::SvShuntCompensatorSections* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->sections; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SvStatus.inService -bool assign_SvStatus_inService(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::StateVariables::SvStatus* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->inService; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SvStatus.phase -bool assign_SvStatus_phase(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::StateVariables::SvStatus* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->phase; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SvPowerFlow.p -bool assign_SvPowerFlow_p(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::StateVariables::SvPowerFlow* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->p.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SvPowerFlow.phase -bool assign_SvPowerFlow_phase(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::StateVariables::SvPowerFlow* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->phase; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SvPowerFlow.q -bool assign_SvPowerFlow_q(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::StateVariables::SvPowerFlow* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->q.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SvInjection.phase -bool assign_SvInjection_phase(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::StateVariables::SvInjection* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->phase; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SvInjection.pInjection -bool assign_SvInjection_pInjection(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::StateVariables::SvInjection* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pInjection.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SvInjection.qInjection -bool assign_SvInjection_qInjection(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::StateVariables::SvInjection* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->qInjection.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:FuelAllocationSchedule.fuelAllocationEndDate -bool assign_FuelAllocationSchedule_fuelAllocationEndDate(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::FuelAllocationSchedule* element = dynamic_cast(base_class_ptr)) - { - element->fuelAllocationEndDate.value = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:FuelAllocationSchedule.fuelAllocationStartDate -bool assign_FuelAllocationSchedule_fuelAllocationStartDate(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::FuelAllocationSchedule* element = dynamic_cast(base_class_ptr)) - { - element->fuelAllocationStartDate.value = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:FuelAllocationSchedule.fuelType -bool assign_FuelAllocationSchedule_fuelType(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::FuelAllocationSchedule* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->fuelType; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:FuelAllocationSchedule.maxFuelAllocation -bool assign_FuelAllocationSchedule_maxFuelAllocation(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::FuelAllocationSchedule* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->maxFuelAllocation; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:FuelAllocationSchedule.minFuelAllocation -bool assign_FuelAllocationSchedule_minFuelAllocation(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::FuelAllocationSchedule* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->minFuelAllocation; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:HeatRate.multiplier -bool assign_HeatRate_multiplier(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::HeatRate* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->multiplier; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:HeatInputCurve.auxPowerMult -bool assign_HeatInputCurve_auxPowerMult(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::HeatInputCurve* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->auxPowerMult.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:HeatInputCurve.auxPowerOffset -bool assign_HeatInputCurve_auxPowerOffset(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::HeatInputCurve* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->auxPowerOffset.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:HeatInputCurve.heatInputEff -bool assign_HeatInputCurve_heatInputEff(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::HeatInputCurve* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->heatInputEff.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:HeatInputCurve.heatInputOffset -bool assign_HeatInputCurve_heatInputOffset(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::HeatInputCurve* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->heatInputOffset.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:HeatInputCurve.isNetGrossP -bool assign_HeatInputCurve_isNetGrossP(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::HeatInputCurve* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->isNetGrossP; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:CostPerHeatUnit.multiplier -bool assign_CostPerHeatUnit_multiplier(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::CostPerHeatUnit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->multiplier; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:CostPerHeatUnit.unit -bool assign_CostPerHeatUnit_unit(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::CostPerHeatUnit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->unit; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EmissionCurve.emissionContent -bool assign_EmissionCurve_emissionContent(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::EmissionCurve* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->emissionContent.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EmissionCurve.emissionType -bool assign_EmissionCurve_emissionType(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::EmissionCurve* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->emissionType; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EmissionCurve.isNetGrossP -bool assign_EmissionCurve_isNetGrossP(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::EmissionCurve* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->isNetGrossP; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GenUnitOpCostCurve.isNetGrossP -bool assign_GenUnitOpCostCurve_isNetGrossP(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::GenUnitOpCostCurve* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->isNetGrossP; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GeneratingUnit.allocSpinResP -bool assign_GeneratingUnit_allocSpinResP(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::GeneratingUnit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->allocSpinResP.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GeneratingUnit.autoCntrlMarginP -bool assign_GeneratingUnit_autoCntrlMarginP(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::GeneratingUnit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->autoCntrlMarginP.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GeneratingUnit.baseP -bool assign_GeneratingUnit_baseP(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::GeneratingUnit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->baseP.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GeneratingUnit.controlDeadband -bool assign_GeneratingUnit_controlDeadband(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::GeneratingUnit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->controlDeadband.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GeneratingUnit.controlPulseHigh -bool assign_GeneratingUnit_controlPulseHigh(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::GeneratingUnit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->controlPulseHigh.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GeneratingUnit.controlPulseLow -bool assign_GeneratingUnit_controlPulseLow(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::GeneratingUnit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->controlPulseLow.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GeneratingUnit.controlResponseRate -bool assign_GeneratingUnit_controlResponseRate(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::GeneratingUnit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->controlResponseRate.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GeneratingUnit.efficiency -bool assign_GeneratingUnit_efficiency(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::GeneratingUnit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->efficiency.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GeneratingUnit.genControlMode -bool assign_GeneratingUnit_genControlMode(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::GeneratingUnit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->genControlMode; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GeneratingUnit.genControlSource -bool assign_GeneratingUnit_genControlSource(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::GeneratingUnit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->genControlSource; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GeneratingUnit.governorMPL -bool assign_GeneratingUnit_governorMPL(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::GeneratingUnit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->governorMPL.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GeneratingUnit.governorSCD -bool assign_GeneratingUnit_governorSCD(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::GeneratingUnit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->governorSCD.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GeneratingUnit.highControlLimit -bool assign_GeneratingUnit_highControlLimit(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::GeneratingUnit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->highControlLimit.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GeneratingUnit.initialP -bool assign_GeneratingUnit_initialP(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::GeneratingUnit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->initialP.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GeneratingUnit.longPF -bool assign_GeneratingUnit_longPF(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::GeneratingUnit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->longPF; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GeneratingUnit.lowControlLimit -bool assign_GeneratingUnit_lowControlLimit(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::GeneratingUnit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->lowControlLimit.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GeneratingUnit.lowerRampRate -bool assign_GeneratingUnit_lowerRampRate(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::GeneratingUnit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->lowerRampRate.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GeneratingUnit.maxEconomicP -bool assign_GeneratingUnit_maxEconomicP(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::GeneratingUnit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->maxEconomicP.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GeneratingUnit.maximumAllowableSpinningReserve -bool assign_GeneratingUnit_maximumAllowableSpinningReserve(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::GeneratingUnit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->maximumAllowableSpinningReserve.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GeneratingUnit.maxOperatingP -bool assign_GeneratingUnit_maxOperatingP(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::GeneratingUnit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->maxOperatingP.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GeneratingUnit.minEconomicP -bool assign_GeneratingUnit_minEconomicP(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::GeneratingUnit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->minEconomicP.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GeneratingUnit.minimumOffTime -bool assign_GeneratingUnit_minimumOffTime(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::GeneratingUnit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->minimumOffTime.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GeneratingUnit.minOperatingP -bool assign_GeneratingUnit_minOperatingP(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::GeneratingUnit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->minOperatingP.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GeneratingUnit.modelDetail -bool assign_GeneratingUnit_modelDetail(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::GeneratingUnit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->modelDetail.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GeneratingUnit.nominalP -bool assign_GeneratingUnit_nominalP(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::GeneratingUnit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->nominalP.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GeneratingUnit.normalPF -bool assign_GeneratingUnit_normalPF(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::GeneratingUnit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->normalPF; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GeneratingUnit.penaltyFactor -bool assign_GeneratingUnit_penaltyFactor(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::GeneratingUnit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->penaltyFactor; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GeneratingUnit.raiseRampRate -bool assign_GeneratingUnit_raiseRampRate(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::GeneratingUnit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->raiseRampRate.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GeneratingUnit.ratedGrossMaxP -bool assign_GeneratingUnit_ratedGrossMaxP(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::GeneratingUnit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ratedGrossMaxP.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GeneratingUnit.ratedGrossMinP -bool assign_GeneratingUnit_ratedGrossMinP(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::GeneratingUnit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ratedGrossMinP.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GeneratingUnit.ratedNetMaxP -bool assign_GeneratingUnit_ratedNetMaxP(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::GeneratingUnit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ratedNetMaxP.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GeneratingUnit.shortPF -bool assign_GeneratingUnit_shortPF(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::GeneratingUnit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->shortPF; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GeneratingUnit.startupCost -bool assign_GeneratingUnit_startupCost(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::GeneratingUnit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->startupCost.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GeneratingUnit.startupTime -bool assign_GeneratingUnit_startupTime(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::GeneratingUnit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->startupTime.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GeneratingUnit.tieLinePF -bool assign_GeneratingUnit_tieLinePF(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::GeneratingUnit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->tieLinePF; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GeneratingUnit.totalEfficiency -bool assign_GeneratingUnit_totalEfficiency(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::GeneratingUnit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->totalEfficiency.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:GeneratingUnit.variableCost -bool assign_GeneratingUnit_variableCost(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::GeneratingUnit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->variableCost.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:IncrementalHeatRateCurve.isNetGrossP -bool assign_IncrementalHeatRateCurve_isNetGrossP(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::IncrementalHeatRateCurve* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->isNetGrossP; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:StartIgnFuelCurve.ignitionFuelType -bool assign_StartIgnFuelCurve_ignitionFuelType(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::StartIgnFuelCurve* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ignitionFuelType; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EmissionAccount.emissionType -bool assign_EmissionAccount_emissionType(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::EmissionAccount* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->emissionType; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:EmissionAccount.emissionValueSource -bool assign_EmissionAccount_emissionValueSource(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::EmissionAccount* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->emissionValueSource; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:HydroGeneratingUnit.energyConversionCapability -bool assign_HydroGeneratingUnit_energyConversionCapability(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::HydroGeneratingUnit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->energyConversionCapability; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:HydroGeneratingUnit.hydroUnitWaterCost -bool assign_HydroGeneratingUnit_hydroUnitWaterCost(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::HydroGeneratingUnit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->hydroUnitWaterCost.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:HeatRateCurve.isNetGrossP -bool assign_HeatRateCurve_isNetGrossP(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::HeatRateCurve* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->isNetGrossP; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:StartRampCurve.hotStandbyRamp -bool assign_StartRampCurve_hotStandbyRamp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::StartRampCurve* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->hotStandbyRamp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:StartMainFuelCurve.mainFuelType -bool assign_StartMainFuelCurve_mainFuelType(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::StartMainFuelCurve* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->mainFuelType; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:StartupModel.fixedMaintCost -bool assign_StartupModel_fixedMaintCost(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::StartupModel* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->fixedMaintCost.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:StartupModel.hotStandbyHeat -bool assign_StartupModel_hotStandbyHeat(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::StartupModel* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->hotStandbyHeat.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:StartupModel.incrementalMaintCost -bool assign_StartupModel_incrementalMaintCost(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::StartupModel* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->incrementalMaintCost.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:StartupModel.minimumDownTime -bool assign_StartupModel_minimumDownTime(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::StartupModel* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->minimumDownTime.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:StartupModel.minimumRunTime -bool assign_StartupModel_minimumRunTime(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::StartupModel* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->minimumRunTime.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:StartupModel.riskFactorCost -bool assign_StartupModel_riskFactorCost(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::StartupModel* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->riskFactorCost.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:StartupModel.startupCost -bool assign_StartupModel_startupCost(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::StartupModel* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->startupCost.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:StartupModel.startupDate -bool assign_StartupModel_startupDate(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::StartupModel* element = dynamic_cast(base_class_ptr)) - { - element->startupDate.value = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:StartupModel.startupPriority -bool assign_StartupModel_startupPriority(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::StartupModel* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->startupPriority; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:StartupModel.stbyAuxP -bool assign_StartupModel_stbyAuxP(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::StartupModel* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->stbyAuxP.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ShutdownCurve.shutdownCost -bool assign_ShutdownCurve_shutdownCost(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::ShutdownCurve* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->shutdownCost.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ShutdownCurve.shutdownDate -bool assign_ShutdownCurve_shutdownDate(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::ShutdownCurve* element = dynamic_cast(base_class_ptr)) - { - element->shutdownDate.value = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ThermalGeneratingUnit.oMCost -bool assign_ThermalGeneratingUnit_oMCost(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::ThermalGeneratingUnit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->oMCost.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:AirCompressor.airCompressorRating -bool assign_AirCompressor_airCompressorRating(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::AirCompressor* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->airCompressorRating; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:CAESPlant.energyStorageCapacity -bool assign_CAESPlant_energyStorageCapacity(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::CAESPlant* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->energyStorageCapacity.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:CAESPlant.ratedCapacityP -bool assign_CAESPlant_ratedCapacityP(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::CAESPlant* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ratedCapacityP.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TargetLevelSchedule.highLevelLimit -bool assign_TargetLevelSchedule_highLevelLimit(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::TargetLevelSchedule* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->highLevelLimit.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TargetLevelSchedule.lowLevelLimit -bool assign_TargetLevelSchedule_lowLevelLimit(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::TargetLevelSchedule* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->lowLevelLimit.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Reservoir.activeStorageCapacity -bool assign_Reservoir_activeStorageCapacity(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::Reservoir* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->activeStorageCapacity.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Reservoir.energyStorageRating -bool assign_Reservoir_energyStorageRating(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::Reservoir* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->energyStorageRating; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Reservoir.fullSupplyLevel -bool assign_Reservoir_fullSupplyLevel(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::Reservoir* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->fullSupplyLevel.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Reservoir.grossCapacity -bool assign_Reservoir_grossCapacity(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::Reservoir* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->grossCapacity.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Reservoir.normalMinOperateLevel -bool assign_Reservoir_normalMinOperateLevel(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::Reservoir* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->normalMinOperateLevel.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Reservoir.riverOutletWorks -bool assign_Reservoir_riverOutletWorks(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::Reservoir* element = dynamic_cast(base_class_ptr)) - { - element->riverOutletWorks = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Reservoir.spillTravelDelay -bool assign_Reservoir_spillTravelDelay(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::Reservoir* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->spillTravelDelay.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Reservoir.spillwayCapacity -bool assign_Reservoir_spillwayCapacity(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::Reservoir* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->spillwayCapacity; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Reservoir.spillwayCrestLength -bool assign_Reservoir_spillwayCrestLength(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::Reservoir* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->spillwayCrestLength.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Reservoir.spillwayCrestLevel -bool assign_Reservoir_spillwayCrestLevel(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::Reservoir* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->spillwayCrestLevel.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Reservoir.spillWayGateType -bool assign_Reservoir_spillWayGateType(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::Reservoir* element = dynamic_cast(base_class_ptr)) - { - element->spillWayGateType = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:HydroPowerPlant.dischargeTravelDelay -bool assign_HydroPowerPlant_dischargeTravelDelay(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::HydroPowerPlant* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->dischargeTravelDelay.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:HydroPowerPlant.genRatedP -bool assign_HydroPowerPlant_genRatedP(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::HydroPowerPlant* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->genRatedP.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:HydroPowerPlant.hydroPlantStorageType -bool assign_HydroPowerPlant_hydroPlantStorageType(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::HydroPowerPlant* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->hydroPlantStorageType; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:HydroPowerPlant.penstockType -bool assign_HydroPowerPlant_penstockType(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::HydroPowerPlant* element = dynamic_cast(base_class_ptr)) - { - element->penstockType = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:HydroPowerPlant.plantDischargeCapacity -bool assign_HydroPowerPlant_plantDischargeCapacity(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::HydroPowerPlant* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->plantDischargeCapacity.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:HydroPowerPlant.plantRatedHead -bool assign_HydroPowerPlant_plantRatedHead(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::HydroPowerPlant* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->plantRatedHead.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:HydroPowerPlant.pumpRatedP -bool assign_HydroPowerPlant_pumpRatedP(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::HydroPowerPlant* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pumpRatedP.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:HydroPowerPlant.surgeTankCode -bool assign_HydroPowerPlant_surgeTankCode(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::HydroPowerPlant* element = dynamic_cast(base_class_ptr)) - { - element->surgeTankCode = buffer.str(); - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:HydroPowerPlant.surgeTankCrestLevel -bool assign_HydroPowerPlant_surgeTankCrestLevel(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::HydroPowerPlant* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->surgeTankCrestLevel.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:WindGeneratingUnit.windGenUnitType -bool assign_WindGeneratingUnit_windGenUnitType(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::WindGeneratingUnit* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->windGenUnitType; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:FossilFuel.fossilFuelType -bool assign_FossilFuel_fossilFuelType(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::FossilFuel* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->fossilFuelType; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:FossilFuel.fuelCost -bool assign_FossilFuel_fuelCost(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::FossilFuel* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->fuelCost.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:FossilFuel.fuelDispatchCost -bool assign_FossilFuel_fuelDispatchCost(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::FossilFuel* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->fuelDispatchCost.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:FossilFuel.fuelEffFactor -bool assign_FossilFuel_fuelEffFactor(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::FossilFuel* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->fuelEffFactor.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:FossilFuel.fuelHandlingCost -bool assign_FossilFuel_fuelHandlingCost(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::FossilFuel* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->fuelHandlingCost.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:FossilFuel.fuelHeatContent -bool assign_FossilFuel_fuelHeatContent(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::FossilFuel* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->fuelHeatContent; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:FossilFuel.fuelMixture -bool assign_FossilFuel_fuelMixture(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::FossilFuel* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->fuelMixture.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:FossilFuel.fuelSulfur -bool assign_FossilFuel_fuelSulfur(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::FossilFuel* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->fuelSulfur.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:FossilFuel.highBreakpointP -bool assign_FossilFuel_highBreakpointP(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::FossilFuel* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->highBreakpointP.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:FossilFuel.lowBreakpointP -bool assign_FossilFuel_lowBreakpointP(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::FossilFuel* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->lowBreakpointP.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:CogenerationPlant.cogenHPSendoutRating -bool assign_CogenerationPlant_cogenHPSendoutRating(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::CogenerationPlant* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->cogenHPSendoutRating; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:CogenerationPlant.cogenHPSteamRating -bool assign_CogenerationPlant_cogenHPSteamRating(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::CogenerationPlant* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->cogenHPSteamRating; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:CogenerationPlant.cogenLPSendoutRating -bool assign_CogenerationPlant_cogenLPSendoutRating(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::CogenerationPlant* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->cogenLPSendoutRating; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:CogenerationPlant.cogenLPSteamRating -bool assign_CogenerationPlant_cogenLPSteamRating(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::CogenerationPlant* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->cogenLPSteamRating; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:CogenerationPlant.ratedP -bool assign_CogenerationPlant_ratedP(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::CogenerationPlant* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ratedP.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:CombinedCyclePlant.combCyclePlantRating -bool assign_CombinedCyclePlant_combCyclePlantRating(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::Production::CombinedCyclePlant* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->combCyclePlantRating.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PrimeMover.primeMoverRating -bool assign_PrimeMover_primeMoverRating(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::PrimeMover* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->primeMoverRating; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SteamTurbine.crossoverTC -bool assign_SteamTurbine_crossoverTC(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::SteamTurbine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->crossoverTC.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SteamTurbine.reheater1TC -bool assign_SteamTurbine_reheater1TC(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::SteamTurbine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->reheater1TC.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SteamTurbine.reheater2TC -bool assign_SteamTurbine_reheater2TC(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::SteamTurbine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->reheater2TC.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SteamTurbine.shaft1PowerHP -bool assign_SteamTurbine_shaft1PowerHP(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::SteamTurbine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->shaft1PowerHP; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SteamTurbine.shaft1PowerIP -bool assign_SteamTurbine_shaft1PowerIP(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::SteamTurbine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->shaft1PowerIP; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SteamTurbine.shaft1PowerLP1 -bool assign_SteamTurbine_shaft1PowerLP1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::SteamTurbine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->shaft1PowerLP1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SteamTurbine.shaft1PowerLP2 -bool assign_SteamTurbine_shaft1PowerLP2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::SteamTurbine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->shaft1PowerLP2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SteamTurbine.shaft2PowerHP -bool assign_SteamTurbine_shaft2PowerHP(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::SteamTurbine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->shaft2PowerHP; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SteamTurbine.shaft2PowerIP -bool assign_SteamTurbine_shaft2PowerIP(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::SteamTurbine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->shaft2PowerIP; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SteamTurbine.shaft2PowerLP1 -bool assign_SteamTurbine_shaft2PowerLP1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::SteamTurbine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->shaft2PowerLP1; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SteamTurbine.shaft2PowerLP2 -bool assign_SteamTurbine_shaft2PowerLP2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::SteamTurbine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->shaft2PowerLP2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SteamTurbine.steamChestTC -bool assign_SteamTurbine_steamChestTC(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::SteamTurbine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->steamChestTC.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SteamSupply.steamSupplyRating -bool assign_SteamSupply_steamSupplyRating(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::SteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->steamSupplyRating; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:HydroTurbine.gateRateLimit -bool assign_HydroTurbine_gateRateLimit(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::HydroTurbine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gateRateLimit; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:HydroTurbine.gateUpperLimit -bool assign_HydroTurbine_gateUpperLimit(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::HydroTurbine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gateUpperLimit.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:HydroTurbine.maxHeadMaxP -bool assign_HydroTurbine_maxHeadMaxP(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::HydroTurbine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->maxHeadMaxP.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:HydroTurbine.minHeadMaxP -bool assign_HydroTurbine_minHeadMaxP(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::HydroTurbine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->minHeadMaxP.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:HydroTurbine.speedRating -bool assign_HydroTurbine_speedRating(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::HydroTurbine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->speedRating.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:HydroTurbine.speedRegulation -bool assign_HydroTurbine_speedRegulation(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::HydroTurbine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->speedRegulation.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:HydroTurbine.transientDroopTime -bool assign_HydroTurbine_transientDroopTime(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::HydroTurbine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->transientDroopTime.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:HydroTurbine.transientRegulation -bool assign_HydroTurbine_transientRegulation(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::HydroTurbine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->transientRegulation.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:HydroTurbine.turbineRating -bool assign_HydroTurbine_turbineRating(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::HydroTurbine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->turbineRating.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:HydroTurbine.turbineType -bool assign_HydroTurbine_turbineType(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::HydroTurbine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->turbineType; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:HydroTurbine.waterStartingTime -bool assign_HydroTurbine_waterStartingTime(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::HydroTurbine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->waterStartingTime.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:CombustionTurbine.ambientTemp -bool assign_CombustionTurbine_ambientTemp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::CombustionTurbine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ambientTemp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:CombustionTurbine.auxPowerVersusFrequency -bool assign_CombustionTurbine_auxPowerVersusFrequency(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::CombustionTurbine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->auxPowerVersusFrequency.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:CombustionTurbine.auxPowerVersusVoltage -bool assign_CombustionTurbine_auxPowerVersusVoltage(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::CombustionTurbine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->auxPowerVersusVoltage.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:CombustionTurbine.capabilityVersusFrequency -bool assign_CombustionTurbine_capabilityVersusFrequency(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::CombustionTurbine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->capabilityVersusFrequency.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:CombustionTurbine.heatRecoveryFlag -bool assign_CombustionTurbine_heatRecoveryFlag(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::CombustionTurbine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->heatRecoveryFlag; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:CombustionTurbine.powerVariationByTemp -bool assign_CombustionTurbine_powerVariationByTemp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::CombustionTurbine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->powerVariationByTemp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:CombustionTurbine.referenceTemp -bool assign_CombustionTurbine_referenceTemp(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::CombustionTurbine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->referenceTemp.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:CombustionTurbine.timeConstant -bool assign_CombustionTurbine_timeConstant(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::CombustionTurbine* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->timeConstant.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PWRSteamSupply.coldLegFBLagTC -bool assign_PWRSteamSupply_coldLegFBLagTC(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::PWRSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->coldLegFBLagTC.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PWRSteamSupply.coldLegFBLeadTC1 -bool assign_PWRSteamSupply_coldLegFBLeadTC1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::PWRSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->coldLegFBLeadTC1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PWRSteamSupply.coldLegFBLeadTC2 -bool assign_PWRSteamSupply_coldLegFBLeadTC2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::PWRSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->coldLegFBLeadTC2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PWRSteamSupply.coldLegFG1 -bool assign_PWRSteamSupply_coldLegFG1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::PWRSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->coldLegFG1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PWRSteamSupply.coldLegFG2 -bool assign_PWRSteamSupply_coldLegFG2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::PWRSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->coldLegFG2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PWRSteamSupply.coldLegLagTC -bool assign_PWRSteamSupply_coldLegLagTC(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::PWRSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->coldLegLagTC.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PWRSteamSupply.coreHTLagTC1 -bool assign_PWRSteamSupply_coreHTLagTC1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::PWRSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->coreHTLagTC1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PWRSteamSupply.coreHTLagTC2 -bool assign_PWRSteamSupply_coreHTLagTC2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::PWRSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->coreHTLagTC2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PWRSteamSupply.coreNeutronicsEffTC -bool assign_PWRSteamSupply_coreNeutronicsEffTC(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::PWRSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->coreNeutronicsEffTC.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PWRSteamSupply.coreNeutronicsHT -bool assign_PWRSteamSupply_coreNeutronicsHT(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::PWRSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->coreNeutronicsHT.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PWRSteamSupply.feedbackFactor -bool assign_PWRSteamSupply_feedbackFactor(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::PWRSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->feedbackFactor.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PWRSteamSupply.hotLegLagTC -bool assign_PWRSteamSupply_hotLegLagTC(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::PWRSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->hotLegLagTC.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PWRSteamSupply.hotLegSteamGain -bool assign_PWRSteamSupply_hotLegSteamGain(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::PWRSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->hotLegSteamGain.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PWRSteamSupply.hotLegToColdLegGain -bool assign_PWRSteamSupply_hotLegToColdLegGain(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::PWRSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->hotLegToColdLegGain.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PWRSteamSupply.pressureCG -bool assign_PWRSteamSupply_pressureCG(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::PWRSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pressureCG.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PWRSteamSupply.steamFlowFG -bool assign_PWRSteamSupply_steamFlowFG(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::PWRSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->steamFlowFG.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PWRSteamSupply.steamPressureDropLagTC -bool assign_PWRSteamSupply_steamPressureDropLagTC(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::PWRSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->steamPressureDropLagTC.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PWRSteamSupply.steamPressureFG -bool assign_PWRSteamSupply_steamPressureFG(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::PWRSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->steamPressureFG.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PWRSteamSupply.throttlePressureFactor -bool assign_PWRSteamSupply_throttlePressureFactor(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::PWRSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->throttlePressureFactor.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PWRSteamSupply.throttlePressureSP -bool assign_PWRSteamSupply_throttlePressureSP(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::PWRSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->throttlePressureSP.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:FossilSteamSupply.auxPowerVersusFrequency -bool assign_FossilSteamSupply_auxPowerVersusFrequency(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::FossilSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->auxPowerVersusFrequency.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:FossilSteamSupply.auxPowerVersusVoltage -bool assign_FossilSteamSupply_auxPowerVersusVoltage(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::FossilSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->auxPowerVersusVoltage.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:FossilSteamSupply.boilerControlMode -bool assign_FossilSteamSupply_boilerControlMode(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::FossilSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->boilerControlMode; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:FossilSteamSupply.controlErrorBiasP -bool assign_FossilSteamSupply_controlErrorBiasP(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::FossilSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->controlErrorBiasP; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:FossilSteamSupply.controlIC -bool assign_FossilSteamSupply_controlIC(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::FossilSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->controlIC; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:FossilSteamSupply.controlPC -bool assign_FossilSteamSupply_controlPC(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::FossilSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->controlPC; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:FossilSteamSupply.controlPEB -bool assign_FossilSteamSupply_controlPEB(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::FossilSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->controlPEB; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:FossilSteamSupply.controlPED -bool assign_FossilSteamSupply_controlPED(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::FossilSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->controlPED.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:FossilSteamSupply.controlTC -bool assign_FossilSteamSupply_controlTC(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::FossilSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->controlTC; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:FossilSteamSupply.feedWaterIG -bool assign_FossilSteamSupply_feedWaterIG(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::FossilSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->feedWaterIG; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:FossilSteamSupply.feedWaterPG -bool assign_FossilSteamSupply_feedWaterPG(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::FossilSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->feedWaterPG; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:FossilSteamSupply.feedWaterTC -bool assign_FossilSteamSupply_feedWaterTC(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::FossilSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->feedWaterTC.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:FossilSteamSupply.fuelDemandLimit -bool assign_FossilSteamSupply_fuelDemandLimit(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::FossilSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->fuelDemandLimit.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:FossilSteamSupply.fuelSupplyDelay -bool assign_FossilSteamSupply_fuelSupplyDelay(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::FossilSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->fuelSupplyDelay.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:FossilSteamSupply.fuelSupplyTC -bool assign_FossilSteamSupply_fuelSupplyTC(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::FossilSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->fuelSupplyTC.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:FossilSteamSupply.maxErrorRateP -bool assign_FossilSteamSupply_maxErrorRateP(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::FossilSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->maxErrorRateP; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:FossilSteamSupply.mechPowerSensorLag -bool assign_FossilSteamSupply_mechPowerSensorLag(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::FossilSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->mechPowerSensorLag.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:FossilSteamSupply.minErrorRateP -bool assign_FossilSteamSupply_minErrorRateP(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::FossilSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->minErrorRateP; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:FossilSteamSupply.pressureCtrlDG -bool assign_FossilSteamSupply_pressureCtrlDG(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::FossilSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pressureCtrlDG; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:FossilSteamSupply.pressureCtrlIG -bool assign_FossilSteamSupply_pressureCtrlIG(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::FossilSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pressureCtrlIG; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:FossilSteamSupply.pressureCtrlPG -bool assign_FossilSteamSupply_pressureCtrlPG(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::FossilSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pressureCtrlPG; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:FossilSteamSupply.pressureFeedback -bool assign_FossilSteamSupply_pressureFeedback(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::FossilSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pressureFeedback; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:FossilSteamSupply.superHeater1Capacity -bool assign_FossilSteamSupply_superHeater1Capacity(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::FossilSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->superHeater1Capacity; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:FossilSteamSupply.superHeater2Capacity -bool assign_FossilSteamSupply_superHeater2Capacity(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::FossilSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->superHeater2Capacity; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:FossilSteamSupply.superHeaterPipePD -bool assign_FossilSteamSupply_superHeaterPipePD(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::FossilSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->superHeaterPipePD; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:FossilSteamSupply.throttlePressureSP -bool assign_FossilSteamSupply_throttlePressureSP(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::FossilSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->throttlePressureSP.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:HeatRecoveryBoiler.steamSupplyRating2 -bool assign_HeatRecoveryBoiler_steamSupplyRating2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::HeatRecoveryBoiler* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->steamSupplyRating2; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:BWRSteamSupply.highPowerLimit -bool assign_BWRSteamSupply_highPowerLimit(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::BWRSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->highPowerLimit.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:BWRSteamSupply.inCoreThermalTC -bool assign_BWRSteamSupply_inCoreThermalTC(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::BWRSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->inCoreThermalTC.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:BWRSteamSupply.integralGain -bool assign_BWRSteamSupply_integralGain(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::BWRSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->integralGain; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:BWRSteamSupply.lowerLimit -bool assign_BWRSteamSupply_lowerLimit(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::BWRSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->lowerLimit.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:BWRSteamSupply.lowPowerLimit -bool assign_BWRSteamSupply_lowPowerLimit(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::BWRSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->lowPowerLimit.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:BWRSteamSupply.pressureLimit -bool assign_BWRSteamSupply_pressureLimit(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::BWRSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pressureLimit.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:BWRSteamSupply.pressureSetpointGA -bool assign_BWRSteamSupply_pressureSetpointGA(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::BWRSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pressureSetpointGA; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:BWRSteamSupply.pressureSetpointTC1 -bool assign_BWRSteamSupply_pressureSetpointTC1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::BWRSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pressureSetpointTC1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:BWRSteamSupply.pressureSetpointTC2 -bool assign_BWRSteamSupply_pressureSetpointTC2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::BWRSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pressureSetpointTC2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:BWRSteamSupply.proportionalGain -bool assign_BWRSteamSupply_proportionalGain(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::BWRSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->proportionalGain; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:BWRSteamSupply.rfAux1 -bool assign_BWRSteamSupply_rfAux1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::BWRSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->rfAux1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:BWRSteamSupply.rfAux2 -bool assign_BWRSteamSupply_rfAux2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::BWRSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->rfAux2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:BWRSteamSupply.rfAux3 -bool assign_BWRSteamSupply_rfAux3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::BWRSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->rfAux3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:BWRSteamSupply.rfAux4 -bool assign_BWRSteamSupply_rfAux4(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::BWRSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->rfAux4.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:BWRSteamSupply.rfAux5 -bool assign_BWRSteamSupply_rfAux5(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::BWRSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->rfAux5.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:BWRSteamSupply.rfAux6 -bool assign_BWRSteamSupply_rfAux6(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::BWRSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->rfAux6.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:BWRSteamSupply.rfAux7 -bool assign_BWRSteamSupply_rfAux7(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::BWRSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->rfAux7.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:BWRSteamSupply.rfAux8 -bool assign_BWRSteamSupply_rfAux8(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::BWRSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->rfAux8.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:BWRSteamSupply.rodPattern -bool assign_BWRSteamSupply_rodPattern(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::BWRSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->rodPattern.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:BWRSteamSupply.rodPatternConstant -bool assign_BWRSteamSupply_rodPatternConstant(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::BWRSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->rodPatternConstant; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:BWRSteamSupply.upperLimit -bool assign_BWRSteamSupply_upperLimit(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::BWRSteamSupply* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->upperLimit.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:DrumBoiler.drumBoilerRating -bool assign_DrumBoiler_drumBoilerRating(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Generation::GenerationTrainingSimulation::DrumBoiler* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->drumBoilerRating; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ProtectionEquipment.highLimit -bool assign_ProtectionEquipment_highLimit(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Protection::ProtectionEquipment* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->highLimit; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ProtectionEquipment.lowLimit -bool assign_ProtectionEquipment_lowLimit(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Protection::ProtectionEquipment* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->lowLimit; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ProtectionEquipment.powerDirectionFlag -bool assign_ProtectionEquipment_powerDirectionFlag(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Protection::ProtectionEquipment* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->powerDirectionFlag; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ProtectionEquipment.relayDelayTime -bool assign_ProtectionEquipment_relayDelayTime(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Protection::ProtectionEquipment* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->relayDelayTime.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ProtectionEquipment.unitMultiplier -bool assign_ProtectionEquipment_unitMultiplier(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Protection::ProtectionEquipment* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->unitMultiplier; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ProtectionEquipment.unitSymbol -bool assign_ProtectionEquipment_unitSymbol(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Protection::ProtectionEquipment* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->unitSymbol; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:CurrentRelay.currentLimit1 -bool assign_CurrentRelay_currentLimit1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Protection::CurrentRelay* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->currentLimit1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:CurrentRelay.currentLimit2 -bool assign_CurrentRelay_currentLimit2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Protection::CurrentRelay* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->currentLimit2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:CurrentRelay.currentLimit3 -bool assign_CurrentRelay_currentLimit3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Protection::CurrentRelay* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->currentLimit3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:CurrentRelay.inverseTimeFlag -bool assign_CurrentRelay_inverseTimeFlag(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Protection::CurrentRelay* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->inverseTimeFlag; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:CurrentRelay.timeDelay1 -bool assign_CurrentRelay_timeDelay1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Protection::CurrentRelay* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->timeDelay1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:CurrentRelay.timeDelay2 -bool assign_CurrentRelay_timeDelay2(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Protection::CurrentRelay* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->timeDelay2.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:CurrentRelay.timeDelay3 -bool assign_CurrentRelay_timeDelay3(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Protection::CurrentRelay* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->timeDelay3.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchrocheckRelay.maxAngleDiff -bool assign_SynchrocheckRelay_maxAngleDiff(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Protection::SynchrocheckRelay* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->maxAngleDiff.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchrocheckRelay.maxFreqDiff -bool assign_SynchrocheckRelay_maxFreqDiff(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Protection::SynchrocheckRelay* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->maxFreqDiff.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:SynchrocheckRelay.maxVoltDiff -bool assign_SynchrocheckRelay_maxVoltDiff(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Protection::SynchrocheckRelay* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->maxVoltDiff.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Contingency.mustStudy -bool assign_Contingency_mustStudy(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Contingency::Contingency* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->mustStudy; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ContingencyEquipment.contingentStatus -bool assign_ContingencyEquipment_contingentStatus(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Contingency::ContingencyEquipment* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->contingentStatus; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:AltTieMeas.priority -bool assign_AltTieMeas_priority(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::ControlArea::AltTieMeas* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->priority; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:TieFlow.positiveFlowIn -bool assign_TieFlow_positiveFlowIn(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::ControlArea::TieFlow* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->positiveFlowIn; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:AltGeneratingUnitMeas.priority -bool assign_AltGeneratingUnitMeas_priority(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::ControlArea::AltGeneratingUnitMeas* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->priority; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ControlArea.netInterchange -bool assign_ControlArea_netInterchange(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::ControlArea::ControlArea* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->netInterchange.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ControlArea.pTolerance -bool assign_ControlArea_pTolerance(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::ControlArea::ControlArea* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pTolerance.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ControlArea.type -bool assign_ControlArea_type(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::ControlArea::ControlArea* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->type; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:DCSeriesDevice.inductance -bool assign_DCSeriesDevice_inductance(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DC::DCSeriesDevice* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->inductance.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:DCSeriesDevice.ratedUdc -bool assign_DCSeriesDevice_ratedUdc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DC::DCSeriesDevice* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ratedUdc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:DCSeriesDevice.resistance -bool assign_DCSeriesDevice_resistance(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DC::DCSeriesDevice* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->resistance.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:DCLineSegment.capacitance -bool assign_DCLineSegment_capacitance(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DC::DCLineSegment* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->capacitance.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:DCLineSegment.inductance -bool assign_DCLineSegment_inductance(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DC::DCLineSegment* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->inductance.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:DCLineSegment.length -bool assign_DCLineSegment_length(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DC::DCLineSegment* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->length.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:DCLineSegment.resistance -bool assign_DCLineSegment_resistance(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DC::DCLineSegment* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->resistance.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PerLengthDCLineParameter.capacitance -bool assign_PerLengthDCLineParameter_capacitance(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DC::PerLengthDCLineParameter* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->capacitance.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PerLengthDCLineParameter.inductance -bool assign_PerLengthDCLineParameter_inductance(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DC::PerLengthDCLineParameter* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->inductance.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:PerLengthDCLineParameter.resistance -bool assign_PerLengthDCLineParameter_resistance(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DC::PerLengthDCLineParameter* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->resistance.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ACDCConverter.baseS -bool assign_ACDCConverter_baseS(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DC::ACDCConverter* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->baseS.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ACDCConverter.idc -bool assign_ACDCConverter_idc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DC::ACDCConverter* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->idc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ACDCConverter.idleLoss -bool assign_ACDCConverter_idleLoss(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DC::ACDCConverter* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->idleLoss.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ACDCConverter.maxUdc -bool assign_ACDCConverter_maxUdc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DC::ACDCConverter* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->maxUdc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ACDCConverter.minUdc -bool assign_ACDCConverter_minUdc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DC::ACDCConverter* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->minUdc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ACDCConverter.numberOfValves -bool assign_ACDCConverter_numberOfValves(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DC::ACDCConverter* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->numberOfValves; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ACDCConverter.p -bool assign_ACDCConverter_p(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DC::ACDCConverter* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->p.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ACDCConverter.poleLossP -bool assign_ACDCConverter_poleLossP(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DC::ACDCConverter* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->poleLossP.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ACDCConverter.q -bool assign_ACDCConverter_q(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DC::ACDCConverter* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->q.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ACDCConverter.ratedUdc -bool assign_ACDCConverter_ratedUdc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DC::ACDCConverter* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ratedUdc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ACDCConverter.resistiveLoss -bool assign_ACDCConverter_resistiveLoss(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DC::ACDCConverter* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->resistiveLoss.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ACDCConverter.switchingLoss -bool assign_ACDCConverter_switchingLoss(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DC::ACDCConverter* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->switchingLoss.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ACDCConverter.targetPpcc -bool assign_ACDCConverter_targetPpcc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DC::ACDCConverter* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->targetPpcc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ACDCConverter.targetUdc -bool assign_ACDCConverter_targetUdc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DC::ACDCConverter* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->targetUdc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ACDCConverter.uc -bool assign_ACDCConverter_uc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DC::ACDCConverter* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->uc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ACDCConverter.udc -bool assign_ACDCConverter_udc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DC::ACDCConverter* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->udc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ACDCConverter.valveU0 -bool assign_ACDCConverter_valveU0(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DC::ACDCConverter* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->valveU0.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:VsConverter.delta -bool assign_VsConverter_delta(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DC::VsConverter* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->delta.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:VsConverter.droop -bool assign_VsConverter_droop(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DC::VsConverter* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->droop.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:VsConverter.droopCompensation -bool assign_VsConverter_droopCompensation(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DC::VsConverter* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->droopCompensation.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:VsConverter.maxModulationIndex -bool assign_VsConverter_maxModulationIndex(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DC::VsConverter* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->maxModulationIndex; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:VsConverter.maxValveCurrent -bool assign_VsConverter_maxValveCurrent(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DC::VsConverter* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->maxValveCurrent.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:VsConverter.pPccControl -bool assign_VsConverter_pPccControl(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DC::VsConverter* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pPccControl; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:VsConverter.qPccControl -bool assign_VsConverter_qPccControl(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DC::VsConverter* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->qPccControl; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:VsConverter.qShare -bool assign_VsConverter_qShare(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DC::VsConverter* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->qShare.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:VsConverter.targetQpcc -bool assign_VsConverter_targetQpcc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DC::VsConverter* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->targetQpcc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:VsConverter.targetUpcc -bool assign_VsConverter_targetUpcc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DC::VsConverter* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->targetUpcc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:VsConverter.uf -bool assign_VsConverter_uf(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DC::VsConverter* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->uf.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:DCGround.inductance -bool assign_DCGround_inductance(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DC::DCGround* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->inductance.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:DCGround.r -bool assign_DCGround_r(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DC::DCGround* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->r.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:DCShunt.capacitance -bool assign_DCShunt_capacitance(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DC::DCShunt* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->capacitance.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:DCShunt.ratedUdc -bool assign_DCShunt_ratedUdc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DC::DCShunt* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ratedUdc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:DCShunt.resistance -bool assign_DCShunt_resistance(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DC::DCShunt* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->resistance.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:ACDCConverterDCTerminal.polarity -bool assign_ACDCConverterDCTerminal_polarity(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DC::ACDCConverterDCTerminal* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->polarity; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:CsConverter.alpha -bool assign_CsConverter_alpha(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DC::CsConverter* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->alpha.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:CsConverter.gamma -bool assign_CsConverter_gamma(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DC::CsConverter* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->gamma.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:CsConverter.maxAlpha -bool assign_CsConverter_maxAlpha(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DC::CsConverter* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->maxAlpha.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:CsConverter.maxGamma -bool assign_CsConverter_maxGamma(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DC::CsConverter* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->maxGamma.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:CsConverter.maxIdc -bool assign_CsConverter_maxIdc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DC::CsConverter* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->maxIdc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:CsConverter.minAlpha -bool assign_CsConverter_minAlpha(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DC::CsConverter* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->minAlpha.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:CsConverter.minGamma -bool assign_CsConverter_minGamma(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DC::CsConverter* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->minGamma.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:CsConverter.minIdc -bool assign_CsConverter_minIdc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DC::CsConverter* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->minIdc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:CsConverter.operatingMode -bool assign_CsConverter_operatingMode(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DC::CsConverter* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->operatingMode; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:CsConverter.pPccControl -bool assign_CsConverter_pPccControl(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DC::CsConverter* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->pPccControl; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:CsConverter.ratedIdc -bool assign_CsConverter_ratedIdc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DC::CsConverter* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->ratedIdc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:CsConverter.targetAlpha -bool assign_CsConverter_targetAlpha(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DC::CsConverter* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->targetAlpha.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:CsConverter.targetGamma -bool assign_CsConverter_targetGamma(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DC::CsConverter* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->targetGamma.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:CsConverter.targetIdc -bool assign_CsConverter_targetIdc(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::DC::CsConverter* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->targetIdc.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:FaultImpedance.rGround -bool assign_FaultImpedance_rGround(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Faults::FaultImpedance* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->rGround.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:FaultImpedance.rLineToLine -bool assign_FaultImpedance_rLineToLine(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Faults::FaultImpedance* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->rLineToLine.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:FaultImpedance.xGround -bool assign_FaultImpedance_xGround(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Faults::FaultImpedance* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->xGround.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:FaultImpedance.xLineToLine -bool assign_FaultImpedance_xLineToLine(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Faults::FaultImpedance* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->xLineToLine.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Fault.kind -bool assign_Fault_kind(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Faults::Fault* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->kind; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:Fault.phases -bool assign_Fault_phases(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Faults::Fault* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->phases; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - -// cim:LineFault.lengthFromTerminal1 -bool assign_LineFault_lengthFromTerminal1(std::stringstream& buffer, BaseClass* base_class_ptr) -{ - if(IEC61970::Base::Faults::LineFault* element = dynamic_cast(base_class_ptr)) - { - buffer >> element->lengthFromTerminal1.value; - if(buffer.fail()) - return false; - else - return true; - } - else - return false; -} - - -// Dynamic Switch Factory -std::unordered_map dynamic_switch_factory() -{ - std::unordered_map dynamic_switch; - - dynamic_switch.insert(std::make_pair("cim:Frequency.multiplier", &assign_Frequency_multiplier)); - dynamic_switch.insert(std::make_pair("cim:ActivePower.multiplier", &assign_ActivePower_multiplier)); - dynamic_switch.insert(std::make_pair("cim:Resistance.multiplier", &assign_Resistance_multiplier)); - dynamic_switch.insert(std::make_pair("cim:Reactance.multiplier", &assign_Reactance_multiplier)); - dynamic_switch.insert(std::make_pair("cim:ReactivePower.multiplier", &assign_ReactivePower_multiplier)); - dynamic_switch.insert(std::make_pair("cim:ApparentPower.multiplier", &assign_ApparentPower_multiplier)); - dynamic_switch.insert(std::make_pair("cim:Voltage.multiplier", &assign_Voltage_multiplier)); - dynamic_switch.insert(std::make_pair("cim:RegularTimePoint.sequenceNumber", &assign_RegularTimePoint_sequenceNumber)); - dynamic_switch.insert(std::make_pair("cim:RegularTimePoint.value1", &assign_RegularTimePoint_value1)); - dynamic_switch.insert(std::make_pair("cim:RegularTimePoint.value2", &assign_RegularTimePoint_value2)); - dynamic_switch.insert(std::make_pair("cim:IdentifiedObject.aliasName", &assign_IdentifiedObject_aliasName)); - dynamic_switch.insert(std::make_pair("cim:IdentifiedObject.description", &assign_IdentifiedObject_description)); - dynamic_switch.insert(std::make_pair("cim:IdentifiedObject.mRID", &assign_IdentifiedObject_mRID)); - dynamic_switch.insert(std::make_pair("cim:IdentifiedObject.name", &assign_IdentifiedObject_name)); - dynamic_switch.insert(std::make_pair("cim:BasicIntervalSchedule.startTime", &assign_BasicIntervalSchedule_startTime)); - dynamic_switch.insert(std::make_pair("cim:BasicIntervalSchedule.value1Multiplier", &assign_BasicIntervalSchedule_value1Multiplier)); - dynamic_switch.insert(std::make_pair("cim:BasicIntervalSchedule.value1Unit", &assign_BasicIntervalSchedule_value1Unit)); - dynamic_switch.insert(std::make_pair("cim:BasicIntervalSchedule.value2Multiplier", &assign_BasicIntervalSchedule_value2Multiplier)); - dynamic_switch.insert(std::make_pair("cim:BasicIntervalSchedule.value2Unit", &assign_BasicIntervalSchedule_value2Unit)); - dynamic_switch.insert(std::make_pair("cim:RegularIntervalSchedule.endTime", &assign_RegularIntervalSchedule_endTime)); - dynamic_switch.insert(std::make_pair("cim:RegularIntervalSchedule.timeStep", &assign_RegularIntervalSchedule_timeStep)); - dynamic_switch.insert(std::make_pair("cim:Control.controlType", &assign_Control_controlType)); - dynamic_switch.insert(std::make_pair("cim:Control.operationInProgress", &assign_Control_operationInProgress)); - dynamic_switch.insert(std::make_pair("cim:Control.timeStamp", &assign_Control_timeStamp)); - dynamic_switch.insert(std::make_pair("cim:Control.unitMultiplier", &assign_Control_unitMultiplier)); - dynamic_switch.insert(std::make_pair("cim:Control.unitSymbol", &assign_Control_unitSymbol)); - dynamic_switch.insert(std::make_pair("cim:ACDCTerminal.connected", &assign_ACDCTerminal_connected)); - dynamic_switch.insert(std::make_pair("cim:ACDCTerminal.sequenceNumber", &assign_ACDCTerminal_sequenceNumber)); - dynamic_switch.insert(std::make_pair("cim:Measurement.measurementType", &assign_Measurement_measurementType)); - dynamic_switch.insert(std::make_pair("cim:Measurement.phases", &assign_Measurement_phases)); - dynamic_switch.insert(std::make_pair("cim:Measurement.unitMultiplier", &assign_Measurement_unitMultiplier)); - dynamic_switch.insert(std::make_pair("cim:Measurement.unitSymbol", &assign_Measurement_unitSymbol)); - dynamic_switch.insert(std::make_pair("cim:Equipment.aggregate", &assign_Equipment_aggregate)); - dynamic_switch.insert(std::make_pair("cim:Equipment.inService", &assign_Equipment_inService)); - dynamic_switch.insert(std::make_pair("cim:Equipment.normallyInService", &assign_Equipment_normallyInService)); - dynamic_switch.insert(std::make_pair("cim:HydroPump.pumpDischAtMaxHead", &assign_HydroPump_pumpDischAtMaxHead)); - dynamic_switch.insert(std::make_pair("cim:HydroPump.pumpDischAtMinHead", &assign_HydroPump_pumpDischAtMinHead)); - dynamic_switch.insert(std::make_pair("cim:HydroPump.pumpPowerAtMaxHead", &assign_HydroPump_pumpPowerAtMaxHead)); - dynamic_switch.insert(std::make_pair("cim:HydroPump.pumpPowerAtMinHead", &assign_HydroPump_pumpPowerAtMinHead)); - dynamic_switch.insert(std::make_pair("cim:RegulatingControl.discrete", &assign_RegulatingControl_discrete)); - dynamic_switch.insert(std::make_pair("cim:RegulatingControl.enabled", &assign_RegulatingControl_enabled)); - dynamic_switch.insert(std::make_pair("cim:RegulatingControl.mode", &assign_RegulatingControl_mode)); - dynamic_switch.insert(std::make_pair("cim:RegulatingControl.monitoredPhase", &assign_RegulatingControl_monitoredPhase)); - dynamic_switch.insert(std::make_pair("cim:RegulatingControl.targetDeadband", &assign_RegulatingControl_targetDeadband)); - dynamic_switch.insert(std::make_pair("cim:RegulatingControl.targetValue", &assign_RegulatingControl_targetValue)); - dynamic_switch.insert(std::make_pair("cim:RegulatingControl.targetValueUnitMultiplier", &assign_RegulatingControl_targetValueUnitMultiplier)); - dynamic_switch.insert(std::make_pair("cim:RegulatingCondEq.controlEnabled", &assign_RegulatingCondEq_controlEnabled)); - dynamic_switch.insert(std::make_pair("cim:RotatingMachine.p", &assign_RotatingMachine_p)); - dynamic_switch.insert(std::make_pair("cim:RotatingMachine.q", &assign_RotatingMachine_q)); - dynamic_switch.insert(std::make_pair("cim:RotatingMachine.ratedPowerFactor", &assign_RotatingMachine_ratedPowerFactor)); - dynamic_switch.insert(std::make_pair("cim:RotatingMachine.ratedS", &assign_RotatingMachine_ratedS)); - dynamic_switch.insert(std::make_pair("cim:RotatingMachine.ratedU", &assign_RotatingMachine_ratedU)); - dynamic_switch.insert(std::make_pair("cim:AsynchronousMachine.asynchronousMachineType", &assign_AsynchronousMachine_asynchronousMachineType)); - dynamic_switch.insert(std::make_pair("cim:AsynchronousMachine.converterFedDrive", &assign_AsynchronousMachine_converterFedDrive)); - dynamic_switch.insert(std::make_pair("cim:AsynchronousMachine.efficiency", &assign_AsynchronousMachine_efficiency)); - dynamic_switch.insert(std::make_pair("cim:AsynchronousMachine.iaIrRatio", &assign_AsynchronousMachine_iaIrRatio)); - dynamic_switch.insert(std::make_pair("cim:AsynchronousMachine.nominalFrequency", &assign_AsynchronousMachine_nominalFrequency)); - dynamic_switch.insert(std::make_pair("cim:AsynchronousMachine.nominalSpeed", &assign_AsynchronousMachine_nominalSpeed)); - dynamic_switch.insert(std::make_pair("cim:AsynchronousMachine.polePairNumber", &assign_AsynchronousMachine_polePairNumber)); - dynamic_switch.insert(std::make_pair("cim:AsynchronousMachine.ratedMechanicalPower", &assign_AsynchronousMachine_ratedMechanicalPower)); - dynamic_switch.insert(std::make_pair("cim:AsynchronousMachine.reversible", &assign_AsynchronousMachine_reversible)); - dynamic_switch.insert(std::make_pair("cim:AsynchronousMachine.rr1", &assign_AsynchronousMachine_rr1)); - dynamic_switch.insert(std::make_pair("cim:AsynchronousMachine.rr2", &assign_AsynchronousMachine_rr2)); - dynamic_switch.insert(std::make_pair("cim:AsynchronousMachine.rxLockedRotorRatio", &assign_AsynchronousMachine_rxLockedRotorRatio)); - dynamic_switch.insert(std::make_pair("cim:AsynchronousMachine.tpo", &assign_AsynchronousMachine_tpo)); - dynamic_switch.insert(std::make_pair("cim:AsynchronousMachine.tppo", &assign_AsynchronousMachine_tppo)); - dynamic_switch.insert(std::make_pair("cim:AsynchronousMachine.xlr1", &assign_AsynchronousMachine_xlr1)); - dynamic_switch.insert(std::make_pair("cim:AsynchronousMachine.xlr2", &assign_AsynchronousMachine_xlr2)); - dynamic_switch.insert(std::make_pair("cim:AsynchronousMachine.xm", &assign_AsynchronousMachine_xm)); - dynamic_switch.insert(std::make_pair("cim:AsynchronousMachine.xp", &assign_AsynchronousMachine_xp)); - dynamic_switch.insert(std::make_pair("cim:AsynchronousMachine.xpp", &assign_AsynchronousMachine_xpp)); - dynamic_switch.insert(std::make_pair("cim:AsynchronousMachine.xs", &assign_AsynchronousMachine_xs)); - dynamic_switch.insert(std::make_pair("cim:DynamicsFunctionBlock.enabled", &assign_DynamicsFunctionBlock_enabled)); - dynamic_switch.insert(std::make_pair("cim:RotatingMachineDynamics.damping", &assign_RotatingMachineDynamics_damping)); - dynamic_switch.insert(std::make_pair("cim:RotatingMachineDynamics.inertia", &assign_RotatingMachineDynamics_inertia)); - dynamic_switch.insert(std::make_pair("cim:RotatingMachineDynamics.saturationFactor", &assign_RotatingMachineDynamics_saturationFactor)); - dynamic_switch.insert(std::make_pair("cim:RotatingMachineDynamics.saturationFactor120", &assign_RotatingMachineDynamics_saturationFactor120)); - dynamic_switch.insert(std::make_pair("cim:RotatingMachineDynamics.statorLeakageReactance", &assign_RotatingMachineDynamics_statorLeakageReactance)); - dynamic_switch.insert(std::make_pair("cim:RotatingMachineDynamics.statorResistance", &assign_RotatingMachineDynamics_statorResistance)); - dynamic_switch.insert(std::make_pair("cim:TurbineGovernorUserDefined.proprietary", &assign_TurbineGovernorUserDefined_proprietary)); - dynamic_switch.insert(std::make_pair("cim:CurrentFlow.multiplier", &assign_CurrentFlow_multiplier)); - dynamic_switch.insert(std::make_pair("cim:SynchronousMachine.aVRToManualLag", &assign_SynchronousMachine_aVRToManualLag)); - dynamic_switch.insert(std::make_pair("cim:SynchronousMachine.aVRToManualLead", &assign_SynchronousMachine_aVRToManualLead)); - dynamic_switch.insert(std::make_pair("cim:SynchronousMachine.baseQ", &assign_SynchronousMachine_baseQ)); - dynamic_switch.insert(std::make_pair("cim:SynchronousMachine.condenserP", &assign_SynchronousMachine_condenserP)); - dynamic_switch.insert(std::make_pair("cim:SynchronousMachine.coolantCondition", &assign_SynchronousMachine_coolantCondition)); - dynamic_switch.insert(std::make_pair("cim:SynchronousMachine.coolantType", &assign_SynchronousMachine_coolantType)); - dynamic_switch.insert(std::make_pair("cim:SynchronousMachine.earthing", &assign_SynchronousMachine_earthing)); - dynamic_switch.insert(std::make_pair("cim:SynchronousMachine.earthingStarPointR", &assign_SynchronousMachine_earthingStarPointR)); - dynamic_switch.insert(std::make_pair("cim:SynchronousMachine.earthingStarPointX", &assign_SynchronousMachine_earthingStarPointX)); - dynamic_switch.insert(std::make_pair("cim:SynchronousMachine.ikk", &assign_SynchronousMachine_ikk)); - dynamic_switch.insert(std::make_pair("cim:SynchronousMachine.manualToAVR", &assign_SynchronousMachine_manualToAVR)); - dynamic_switch.insert(std::make_pair("cim:SynchronousMachine.maxQ", &assign_SynchronousMachine_maxQ)); - dynamic_switch.insert(std::make_pair("cim:SynchronousMachine.maxU", &assign_SynchronousMachine_maxU)); - dynamic_switch.insert(std::make_pair("cim:SynchronousMachine.minQ", &assign_SynchronousMachine_minQ)); - dynamic_switch.insert(std::make_pair("cim:SynchronousMachine.minU", &assign_SynchronousMachine_minU)); - dynamic_switch.insert(std::make_pair("cim:SynchronousMachine.mu", &assign_SynchronousMachine_mu)); - dynamic_switch.insert(std::make_pair("cim:SynchronousMachine.operatingMode", &assign_SynchronousMachine_operatingMode)); - dynamic_switch.insert(std::make_pair("cim:SynchronousMachine.qPercent", &assign_SynchronousMachine_qPercent)); - dynamic_switch.insert(std::make_pair("cim:SynchronousMachine.r", &assign_SynchronousMachine_r)); - dynamic_switch.insert(std::make_pair("cim:SynchronousMachine.r0", &assign_SynchronousMachine_r0)); - dynamic_switch.insert(std::make_pair("cim:SynchronousMachine.r2", &assign_SynchronousMachine_r2)); - dynamic_switch.insert(std::make_pair("cim:SynchronousMachine.referencePriority", &assign_SynchronousMachine_referencePriority)); - dynamic_switch.insert(std::make_pair("cim:SynchronousMachine.satDirectSubtransX", &assign_SynchronousMachine_satDirectSubtransX)); - dynamic_switch.insert(std::make_pair("cim:SynchronousMachine.satDirectSyncX", &assign_SynchronousMachine_satDirectSyncX)); - dynamic_switch.insert(std::make_pair("cim:SynchronousMachine.satDirectTransX", &assign_SynchronousMachine_satDirectTransX)); - dynamic_switch.insert(std::make_pair("cim:SynchronousMachine.shortCircuitRotorType", &assign_SynchronousMachine_shortCircuitRotorType)); - dynamic_switch.insert(std::make_pair("cim:SynchronousMachine.type", &assign_SynchronousMachine_type)); - dynamic_switch.insert(std::make_pair("cim:SynchronousMachine.voltageRegulationRange", &assign_SynchronousMachine_voltageRegulationRange)); - dynamic_switch.insert(std::make_pair("cim:SynchronousMachine.x0", &assign_SynchronousMachine_x0)); - dynamic_switch.insert(std::make_pair("cim:SynchronousMachine.x2", &assign_SynchronousMachine_x2)); - dynamic_switch.insert(std::make_pair("cim:Terminal.phases", &assign_Terminal_phases)); - dynamic_switch.insert(std::make_pair("cim:RemoteInputSignal.remoteSignalType", &assign_RemoteInputSignal_remoteSignalType)); - dynamic_switch.insert(std::make_pair("cim:VoltageAdjusterUserDefined.proprietary", &assign_VoltageAdjusterUserDefined_proprietary)); - dynamic_switch.insert(std::make_pair("cim:AsynchronousMachineUserDefined.proprietary", &assign_AsynchronousMachineUserDefined_proprietary)); - dynamic_switch.insert(std::make_pair("cim:UnderexcitationLimiterUserDefined.proprietary", &assign_UnderexcitationLimiterUserDefined_proprietary)); - dynamic_switch.insert(std::make_pair("cim:VoltageCompensatorUserDefined.proprietary", &assign_VoltageCompensatorUserDefined_proprietary)); - dynamic_switch.insert(std::make_pair("cim:PFVArControllerType1UserDefined.proprietary", &assign_PFVArControllerType1UserDefined_proprietary)); - dynamic_switch.insert(std::make_pair("cim:OverexcitationLimiterUserDefined.proprietary", &assign_OverexcitationLimiterUserDefined_proprietary)); - dynamic_switch.insert(std::make_pair("cim:PowerSystemStabilizerUserDefined.proprietary", &assign_PowerSystemStabilizerUserDefined_proprietary)); - dynamic_switch.insert(std::make_pair("cim:DiscontinuousExcitationControlUserDefined.proprietary", &assign_DiscontinuousExcitationControlUserDefined_proprietary)); - dynamic_switch.insert(std::make_pair("cim:PFVArControllerType2UserDefined.proprietary", &assign_PFVArControllerType2UserDefined_proprietary)); - dynamic_switch.insert(std::make_pair("cim:MechanicalLoadUserDefined.proprietary", &assign_MechanicalLoadUserDefined_proprietary)); - dynamic_switch.insert(std::make_pair("cim:SynchronousMachineUserDefined.proprietary", &assign_SynchronousMachineUserDefined_proprietary)); - dynamic_switch.insert(std::make_pair("cim:LoadResponseCharacteristic.exponentModel", &assign_LoadResponseCharacteristic_exponentModel)); - dynamic_switch.insert(std::make_pair("cim:LoadResponseCharacteristic.pConstantCurrent", &assign_LoadResponseCharacteristic_pConstantCurrent)); - dynamic_switch.insert(std::make_pair("cim:LoadResponseCharacteristic.pConstantImpedance", &assign_LoadResponseCharacteristic_pConstantImpedance)); - dynamic_switch.insert(std::make_pair("cim:LoadResponseCharacteristic.pConstantPower", &assign_LoadResponseCharacteristic_pConstantPower)); - dynamic_switch.insert(std::make_pair("cim:LoadResponseCharacteristic.pFrequencyExponent", &assign_LoadResponseCharacteristic_pFrequencyExponent)); - dynamic_switch.insert(std::make_pair("cim:LoadResponseCharacteristic.pVoltageExponent", &assign_LoadResponseCharacteristic_pVoltageExponent)); - dynamic_switch.insert(std::make_pair("cim:LoadResponseCharacteristic.qConstantCurrent", &assign_LoadResponseCharacteristic_qConstantCurrent)); - dynamic_switch.insert(std::make_pair("cim:LoadResponseCharacteristic.qConstantImpedance", &assign_LoadResponseCharacteristic_qConstantImpedance)); - dynamic_switch.insert(std::make_pair("cim:LoadResponseCharacteristic.qConstantPower", &assign_LoadResponseCharacteristic_qConstantPower)); - dynamic_switch.insert(std::make_pair("cim:LoadResponseCharacteristic.qFrequencyExponent", &assign_LoadResponseCharacteristic_qFrequencyExponent)); - dynamic_switch.insert(std::make_pair("cim:LoadResponseCharacteristic.qVoltageExponent", &assign_LoadResponseCharacteristic_qVoltageExponent)); - dynamic_switch.insert(std::make_pair("cim:EnergyConsumerPhase.pfixed", &assign_EnergyConsumerPhase_pfixed)); - dynamic_switch.insert(std::make_pair("cim:EnergyConsumerPhase.pfixedPct", &assign_EnergyConsumerPhase_pfixedPct)); - dynamic_switch.insert(std::make_pair("cim:EnergyConsumerPhase.phase", &assign_EnergyConsumerPhase_phase)); - dynamic_switch.insert(std::make_pair("cim:EnergyConsumerPhase.qfixed", &assign_EnergyConsumerPhase_qfixed)); - dynamic_switch.insert(std::make_pair("cim:EnergyConsumerPhase.qfixedPct", &assign_EnergyConsumerPhase_qfixedPct)); - dynamic_switch.insert(std::make_pair("cim:EnergyConsumer.customerCount", &assign_EnergyConsumer_customerCount)); - dynamic_switch.insert(std::make_pair("cim:EnergyConsumer.grounded", &assign_EnergyConsumer_grounded)); - dynamic_switch.insert(std::make_pair("cim:EnergyConsumer.p", &assign_EnergyConsumer_p)); - dynamic_switch.insert(std::make_pair("cim:EnergyConsumer.pfixed", &assign_EnergyConsumer_pfixed)); - dynamic_switch.insert(std::make_pair("cim:EnergyConsumer.pfixedPct", &assign_EnergyConsumer_pfixedPct)); - dynamic_switch.insert(std::make_pair("cim:EnergyConsumer.phaseConnection", &assign_EnergyConsumer_phaseConnection)); - dynamic_switch.insert(std::make_pair("cim:EnergyConsumer.q", &assign_EnergyConsumer_q)); - dynamic_switch.insert(std::make_pair("cim:EnergyConsumer.qfixed", &assign_EnergyConsumer_qfixed)); - dynamic_switch.insert(std::make_pair("cim:EnergyConsumer.qfixedPct", &assign_EnergyConsumer_qfixedPct)); - dynamic_switch.insert(std::make_pair("cim:LoadUserDefined.proprietary", &assign_LoadUserDefined_proprietary)); - dynamic_switch.insert(std::make_pair("cim:TurbineLoadControllerUserDefined.proprietary", &assign_TurbineLoadControllerUserDefined_proprietary)); - dynamic_switch.insert(std::make_pair("cim:ExcitationSystemUserDefined.proprietary", &assign_ExcitationSystemUserDefined_proprietary)); - dynamic_switch.insert(std::make_pair("cim:ProprietaryParameterDynamics.booleanParameterValue", &assign_ProprietaryParameterDynamics_booleanParameterValue)); - dynamic_switch.insert(std::make_pair("cim:ProprietaryParameterDynamics.floatParameterValue", &assign_ProprietaryParameterDynamics_floatParameterValue)); - dynamic_switch.insert(std::make_pair("cim:ProprietaryParameterDynamics.integerParameterValue", &assign_ProprietaryParameterDynamics_integerParameterValue)); - dynamic_switch.insert(std::make_pair("cim:ProprietaryParameterDynamics.parameterNumber", &assign_ProprietaryParameterDynamics_parameterNumber)); - dynamic_switch.insert(std::make_pair("cim:NonRotatingEnergy.maxP", &assign_NonRotatingEnergy_maxP)); - dynamic_switch.insert(std::make_pair("cim:NonRotatingEnergy.maxQ", &assign_NonRotatingEnergy_maxQ)); - dynamic_switch.insert(std::make_pair("cim:NonRotatingEnergy.minP", &assign_NonRotatingEnergy_minP)); - dynamic_switch.insert(std::make_pair("cim:NonRotatingEnergy.minQ", &assign_NonRotatingEnergy_minQ)); - dynamic_switch.insert(std::make_pair("cim:NonRotatingEnergy.p", &assign_NonRotatingEnergy_p)); - dynamic_switch.insert(std::make_pair("cim:NonRotatingEnergy.q", &assign_NonRotatingEnergy_q)); - dynamic_switch.insert(std::make_pair("cim:NonRotatingEnergy.r", &assign_NonRotatingEnergy_r)); - dynamic_switch.insert(std::make_pair("cim:NonRotatingEnergy.r0", &assign_NonRotatingEnergy_r0)); - dynamic_switch.insert(std::make_pair("cim:NonRotatingEnergy.rn", &assign_NonRotatingEnergy_rn)); - dynamic_switch.insert(std::make_pair("cim:NonRotatingEnergy.x", &assign_NonRotatingEnergy_x)); - dynamic_switch.insert(std::make_pair("cim:NonRotatingEnergy.x0", &assign_NonRotatingEnergy_x0)); - dynamic_switch.insert(std::make_pair("cim:NonRotatingEnergy.xn", &assign_NonRotatingEnergy_xn)); - dynamic_switch.insert(std::make_pair("cim:WindPlantUserDefined.proprietary", &assign_WindPlantUserDefined_proprietary)); - dynamic_switch.insert(std::make_pair("cim:WindType3or4UserDefined.proprietary", &assign_WindType3or4UserDefined_proprietary)); - dynamic_switch.insert(std::make_pair("cim:WindType1or2UserDefined.proprietary", &assign_WindType1or2UserDefined_proprietary)); - dynamic_switch.insert(std::make_pair("cim:WindContRotorRIEC.kirr", &assign_WindContRotorRIEC_kirr)); - dynamic_switch.insert(std::make_pair("cim:WindContRotorRIEC.komegafilt", &assign_WindContRotorRIEC_komegafilt)); - dynamic_switch.insert(std::make_pair("cim:WindContRotorRIEC.kpfilt", &assign_WindContRotorRIEC_kpfilt)); - dynamic_switch.insert(std::make_pair("cim:WindContRotorRIEC.kprr", &assign_WindContRotorRIEC_kprr)); - dynamic_switch.insert(std::make_pair("cim:WindContRotorRIEC.rmax", &assign_WindContRotorRIEC_rmax)); - dynamic_switch.insert(std::make_pair("cim:WindContRotorRIEC.rmin", &assign_WindContRotorRIEC_rmin)); - dynamic_switch.insert(std::make_pair("cim:WindContRotorRIEC.tomegafilt", &assign_WindContRotorRIEC_tomegafilt)); - dynamic_switch.insert(std::make_pair("cim:WindContRotorRIEC.tpfilt", &assign_WindContRotorRIEC_tpfilt)); - dynamic_switch.insert(std::make_pair("cim:WindContCurrLimIEC.imax", &assign_WindContCurrLimIEC_imax)); - dynamic_switch.insert(std::make_pair("cim:WindContCurrLimIEC.imaxdip", &assign_WindContCurrLimIEC_imaxdip)); - dynamic_switch.insert(std::make_pair("cim:WindContCurrLimIEC.mdfslim", &assign_WindContCurrLimIEC_mdfslim)); - dynamic_switch.insert(std::make_pair("cim:WindContCurrLimIEC.mqpri", &assign_WindContCurrLimIEC_mqpri)); - dynamic_switch.insert(std::make_pair("cim:WindContCurrLimIEC.tufilt", &assign_WindContCurrLimIEC_tufilt)); - dynamic_switch.insert(std::make_pair("cim:WindPlantReactiveControlIEC.kiwpx", &assign_WindPlantReactiveControlIEC_kiwpx)); - dynamic_switch.insert(std::make_pair("cim:WindPlantReactiveControlIEC.kpwpx", &assign_WindPlantReactiveControlIEC_kpwpx)); - dynamic_switch.insert(std::make_pair("cim:WindPlantReactiveControlIEC.kwpqu", &assign_WindPlantReactiveControlIEC_kwpqu)); - dynamic_switch.insert(std::make_pair("cim:WindPlantReactiveControlIEC.mwppf", &assign_WindPlantReactiveControlIEC_mwppf)); - dynamic_switch.insert(std::make_pair("cim:WindPlantReactiveControlIEC.mwpu", &assign_WindPlantReactiveControlIEC_mwpu)); - dynamic_switch.insert(std::make_pair("cim:WindPlantReactiveControlIEC.twppfilt", &assign_WindPlantReactiveControlIEC_twppfilt)); - dynamic_switch.insert(std::make_pair("cim:WindPlantReactiveControlIEC.twpqfilt", &assign_WindPlantReactiveControlIEC_twpqfilt)); - dynamic_switch.insert(std::make_pair("cim:WindPlantReactiveControlIEC.twpufilt", &assign_WindPlantReactiveControlIEC_twpufilt)); - dynamic_switch.insert(std::make_pair("cim:WindPlantReactiveControlIEC.txft", &assign_WindPlantReactiveControlIEC_txft)); - dynamic_switch.insert(std::make_pair("cim:WindPlantReactiveControlIEC.txfv", &assign_WindPlantReactiveControlIEC_txfv)); - dynamic_switch.insert(std::make_pair("cim:WindPlantReactiveControlIEC.uwpqdip", &assign_WindPlantReactiveControlIEC_uwpqdip)); - dynamic_switch.insert(std::make_pair("cim:WindPlantReactiveControlIEC.xrefmax", &assign_WindPlantReactiveControlIEC_xrefmax)); - dynamic_switch.insert(std::make_pair("cim:WindPlantReactiveControlIEC.xrefmin", &assign_WindPlantReactiveControlIEC_xrefmin)); - dynamic_switch.insert(std::make_pair("cim:WindPlantFreqPcontrolIEC.dprefmax", &assign_WindPlantFreqPcontrolIEC_dprefmax)); - dynamic_switch.insert(std::make_pair("cim:WindPlantFreqPcontrolIEC.dprefmin", &assign_WindPlantFreqPcontrolIEC_dprefmin)); - dynamic_switch.insert(std::make_pair("cim:WindPlantFreqPcontrolIEC.kiwpp", &assign_WindPlantFreqPcontrolIEC_kiwpp)); - dynamic_switch.insert(std::make_pair("cim:WindPlantFreqPcontrolIEC.kpwpp", &assign_WindPlantFreqPcontrolIEC_kpwpp)); - dynamic_switch.insert(std::make_pair("cim:WindPlantFreqPcontrolIEC.prefmax", &assign_WindPlantFreqPcontrolIEC_prefmax)); - dynamic_switch.insert(std::make_pair("cim:WindPlantFreqPcontrolIEC.prefmin", &assign_WindPlantFreqPcontrolIEC_prefmin)); - dynamic_switch.insert(std::make_pair("cim:WindPlantFreqPcontrolIEC.tpft", &assign_WindPlantFreqPcontrolIEC_tpft)); - dynamic_switch.insert(std::make_pair("cim:WindPlantFreqPcontrolIEC.tpfv", &assign_WindPlantFreqPcontrolIEC_tpfv)); - dynamic_switch.insert(std::make_pair("cim:WindPlantFreqPcontrolIEC.twpffilt", &assign_WindPlantFreqPcontrolIEC_twpffilt)); - dynamic_switch.insert(std::make_pair("cim:WindPlantFreqPcontrolIEC.twppfilt", &assign_WindPlantFreqPcontrolIEC_twppfilt)); - dynamic_switch.insert(std::make_pair("cim:WindGenTurbineType3IEC.dipmax", &assign_WindGenTurbineType3IEC_dipmax)); - dynamic_switch.insert(std::make_pair("cim:WindGenTurbineType3IEC.diqmax", &assign_WindGenTurbineType3IEC_diqmax)); - dynamic_switch.insert(std::make_pair("cim:WindContPType3IEC.dpmax", &assign_WindContPType3IEC_dpmax)); - dynamic_switch.insert(std::make_pair("cim:WindContPType3IEC.dtrisemaxlvrt", &assign_WindContPType3IEC_dtrisemaxlvrt)); - dynamic_switch.insert(std::make_pair("cim:WindContPType3IEC.kdtd", &assign_WindContPType3IEC_kdtd)); - dynamic_switch.insert(std::make_pair("cim:WindContPType3IEC.kip", &assign_WindContPType3IEC_kip)); - dynamic_switch.insert(std::make_pair("cim:WindContPType3IEC.kpp", &assign_WindContPType3IEC_kpp)); - dynamic_switch.insert(std::make_pair("cim:WindContPType3IEC.mplvrt", &assign_WindContPType3IEC_mplvrt)); - dynamic_switch.insert(std::make_pair("cim:WindContPType3IEC.omegaoffset", &assign_WindContPType3IEC_omegaoffset)); - dynamic_switch.insert(std::make_pair("cim:WindContPType3IEC.pdtdmax", &assign_WindContPType3IEC_pdtdmax)); - dynamic_switch.insert(std::make_pair("cim:WindContPType3IEC.rramp", &assign_WindContPType3IEC_rramp)); - dynamic_switch.insert(std::make_pair("cim:WindContPType3IEC.tdvs", &assign_WindContPType3IEC_tdvs)); - dynamic_switch.insert(std::make_pair("cim:WindContPType3IEC.temin", &assign_WindContPType3IEC_temin)); - dynamic_switch.insert(std::make_pair("cim:WindContPType3IEC.tomegafilt", &assign_WindContPType3IEC_tomegafilt)); - dynamic_switch.insert(std::make_pair("cim:WindContPType3IEC.tpfilt", &assign_WindContPType3IEC_tpfilt)); - dynamic_switch.insert(std::make_pair("cim:WindContPType3IEC.tpord", &assign_WindContPType3IEC_tpord)); - dynamic_switch.insert(std::make_pair("cim:WindContPType3IEC.tufilt", &assign_WindContPType3IEC_tufilt)); - dynamic_switch.insert(std::make_pair("cim:WindContPType3IEC.tuscale", &assign_WindContPType3IEC_tuscale)); - dynamic_switch.insert(std::make_pair("cim:WindContPType3IEC.twref", &assign_WindContPType3IEC_twref)); - dynamic_switch.insert(std::make_pair("cim:WindContPType3IEC.udvs", &assign_WindContPType3IEC_udvs)); - dynamic_switch.insert(std::make_pair("cim:WindContPType3IEC.updip", &assign_WindContPType3IEC_updip)); - dynamic_switch.insert(std::make_pair("cim:WindContPType3IEC.wdtd", &assign_WindContPType3IEC_wdtd)); - dynamic_switch.insert(std::make_pair("cim:WindContPType3IEC.zeta", &assign_WindContPType3IEC_zeta)); - dynamic_switch.insert(std::make_pair("cim:WindDynamicsLookupTable.input", &assign_WindDynamicsLookupTable_input)); - dynamic_switch.insert(std::make_pair("cim:WindDynamicsLookupTable.lookupTableFunctionType", &assign_WindDynamicsLookupTable_lookupTableFunctionType)); - dynamic_switch.insert(std::make_pair("cim:WindDynamicsLookupTable.output", &assign_WindDynamicsLookupTable_output)); - dynamic_switch.insert(std::make_pair("cim:WindDynamicsLookupTable.sequence", &assign_WindDynamicsLookupTable_sequence)); - dynamic_switch.insert(std::make_pair("cim:WindAeroLinearIEC.dpomega", &assign_WindAeroLinearIEC_dpomega)); - dynamic_switch.insert(std::make_pair("cim:WindAeroLinearIEC.dptheta", &assign_WindAeroLinearIEC_dptheta)); - dynamic_switch.insert(std::make_pair("cim:WindAeroLinearIEC.omegazero", &assign_WindAeroLinearIEC_omegazero)); - dynamic_switch.insert(std::make_pair("cim:WindAeroLinearIEC.pavail", &assign_WindAeroLinearIEC_pavail)); - dynamic_switch.insert(std::make_pair("cim:WindAeroLinearIEC.thetazero", &assign_WindAeroLinearIEC_thetazero)); - dynamic_switch.insert(std::make_pair("cim:WindGenType4IEC.dipmax", &assign_WindGenType4IEC_dipmax)); - dynamic_switch.insert(std::make_pair("cim:WindGenType4IEC.diqmax", &assign_WindGenType4IEC_diqmax)); - dynamic_switch.insert(std::make_pair("cim:WindGenType4IEC.diqmin", &assign_WindGenType4IEC_diqmin)); - dynamic_switch.insert(std::make_pair("cim:WindGenType4IEC.tg", &assign_WindGenType4IEC_tg)); - dynamic_switch.insert(std::make_pair("cim:WindContPType4aIEC.dpmax", &assign_WindContPType4aIEC_dpmax)); - dynamic_switch.insert(std::make_pair("cim:WindContPType4aIEC.tpord", &assign_WindContPType4aIEC_tpord)); - dynamic_switch.insert(std::make_pair("cim:WindContPType4aIEC.tufilt", &assign_WindContPType4aIEC_tufilt)); - dynamic_switch.insert(std::make_pair("cim:WindMechIEC.cdrt", &assign_WindMechIEC_cdrt)); - dynamic_switch.insert(std::make_pair("cim:WindMechIEC.hgen", &assign_WindMechIEC_hgen)); - dynamic_switch.insert(std::make_pair("cim:WindMechIEC.hwtr", &assign_WindMechIEC_hwtr)); - dynamic_switch.insert(std::make_pair("cim:WindMechIEC.kdrt", &assign_WindMechIEC_kdrt)); - dynamic_switch.insert(std::make_pair("cim:WindGenTurbineType3bIEC.fducw", &assign_WindGenTurbineType3bIEC_fducw)); - dynamic_switch.insert(std::make_pair("cim:WindGenTurbineType3bIEC.mwtcwp", &assign_WindGenTurbineType3bIEC_mwtcwp)); - dynamic_switch.insert(std::make_pair("cim:WindGenTurbineType3bIEC.tg", &assign_WindGenTurbineType3bIEC_tg)); - dynamic_switch.insert(std::make_pair("cim:WindGenTurbineType3bIEC.two", &assign_WindGenTurbineType3bIEC_two)); - dynamic_switch.insert(std::make_pair("cim:WindGenTurbineType3bIEC.xs", &assign_WindGenTurbineType3bIEC_xs)); - dynamic_switch.insert(std::make_pair("cim:WindGenTurbineType3aIEC.kpc", &assign_WindGenTurbineType3aIEC_kpc)); - dynamic_switch.insert(std::make_pair("cim:WindGenTurbineType3aIEC.tic", &assign_WindGenTurbineType3aIEC_tic)); - dynamic_switch.insert(std::make_pair("cim:WindGenTurbineType3aIEC.xs", &assign_WindGenTurbineType3aIEC_xs)); - dynamic_switch.insert(std::make_pair("cim:WindPitchContEmulIEC.kdroop", &assign_WindPitchContEmulIEC_kdroop)); - dynamic_switch.insert(std::make_pair("cim:WindPitchContEmulIEC.kipce", &assign_WindPitchContEmulIEC_kipce)); - dynamic_switch.insert(std::make_pair("cim:WindPitchContEmulIEC.komegaaero", &assign_WindPitchContEmulIEC_komegaaero)); - dynamic_switch.insert(std::make_pair("cim:WindPitchContEmulIEC.kppce", &assign_WindPitchContEmulIEC_kppce)); - dynamic_switch.insert(std::make_pair("cim:WindPitchContEmulIEC.omegaref", &assign_WindPitchContEmulIEC_omegaref)); - dynamic_switch.insert(std::make_pair("cim:WindPitchContEmulIEC.pimax", &assign_WindPitchContEmulIEC_pimax)); - dynamic_switch.insert(std::make_pair("cim:WindPitchContEmulIEC.pimin", &assign_WindPitchContEmulIEC_pimin)); - dynamic_switch.insert(std::make_pair("cim:WindPitchContEmulIEC.t1", &assign_WindPitchContEmulIEC_t1)); - dynamic_switch.insert(std::make_pair("cim:WindPitchContEmulIEC.t2", &assign_WindPitchContEmulIEC_t2)); - dynamic_switch.insert(std::make_pair("cim:WindPitchContEmulIEC.tpe", &assign_WindPitchContEmulIEC_tpe)); - dynamic_switch.insert(std::make_pair("cim:WindContPitchAngleIEC.dthetamax", &assign_WindContPitchAngleIEC_dthetamax)); - dynamic_switch.insert(std::make_pair("cim:WindContPitchAngleIEC.dthetamin", &assign_WindContPitchAngleIEC_dthetamin)); - dynamic_switch.insert(std::make_pair("cim:WindContPitchAngleIEC.kic", &assign_WindContPitchAngleIEC_kic)); - dynamic_switch.insert(std::make_pair("cim:WindContPitchAngleIEC.kiomega", &assign_WindContPitchAngleIEC_kiomega)); - dynamic_switch.insert(std::make_pair("cim:WindContPitchAngleIEC.kpc", &assign_WindContPitchAngleIEC_kpc)); - dynamic_switch.insert(std::make_pair("cim:WindContPitchAngleIEC.kpomega", &assign_WindContPitchAngleIEC_kpomega)); - dynamic_switch.insert(std::make_pair("cim:WindContPitchAngleIEC.kpx", &assign_WindContPitchAngleIEC_kpx)); - dynamic_switch.insert(std::make_pair("cim:WindContPitchAngleIEC.thetamax", &assign_WindContPitchAngleIEC_thetamax)); - dynamic_switch.insert(std::make_pair("cim:WindContPitchAngleIEC.thetamin", &assign_WindContPitchAngleIEC_thetamin)); - dynamic_switch.insert(std::make_pair("cim:WindContPitchAngleIEC.ttheta", &assign_WindContPitchAngleIEC_ttheta)); - dynamic_switch.insert(std::make_pair("cim:WindContQIEC.iqh1", &assign_WindContQIEC_iqh1)); - dynamic_switch.insert(std::make_pair("cim:WindContQIEC.iqmax", &assign_WindContQIEC_iqmax)); - dynamic_switch.insert(std::make_pair("cim:WindContQIEC.iqmin", &assign_WindContQIEC_iqmin)); - dynamic_switch.insert(std::make_pair("cim:WindContQIEC.iqpost", &assign_WindContQIEC_iqpost)); - dynamic_switch.insert(std::make_pair("cim:WindContQIEC.kiq", &assign_WindContQIEC_kiq)); - dynamic_switch.insert(std::make_pair("cim:WindContQIEC.kiu", &assign_WindContQIEC_kiu)); - dynamic_switch.insert(std::make_pair("cim:WindContQIEC.kpq", &assign_WindContQIEC_kpq)); - dynamic_switch.insert(std::make_pair("cim:WindContQIEC.kpu", &assign_WindContQIEC_kpu)); - dynamic_switch.insert(std::make_pair("cim:WindContQIEC.kqv", &assign_WindContQIEC_kqv)); - dynamic_switch.insert(std::make_pair("cim:WindContQIEC.qmax", &assign_WindContQIEC_qmax)); - dynamic_switch.insert(std::make_pair("cim:WindContQIEC.qmin", &assign_WindContQIEC_qmin)); - dynamic_switch.insert(std::make_pair("cim:WindContQIEC.rdroop", &assign_WindContQIEC_rdroop)); - dynamic_switch.insert(std::make_pair("cim:WindContQIEC.tiq", &assign_WindContQIEC_tiq)); - dynamic_switch.insert(std::make_pair("cim:WindContQIEC.tpfilt", &assign_WindContQIEC_tpfilt)); - dynamic_switch.insert(std::make_pair("cim:WindContQIEC.tpost", &assign_WindContQIEC_tpost)); - dynamic_switch.insert(std::make_pair("cim:WindContQIEC.tqord", &assign_WindContQIEC_tqord)); - dynamic_switch.insert(std::make_pair("cim:WindContQIEC.tufilt", &assign_WindContQIEC_tufilt)); - dynamic_switch.insert(std::make_pair("cim:WindContQIEC.udb1", &assign_WindContQIEC_udb1)); - dynamic_switch.insert(std::make_pair("cim:WindContQIEC.udb2", &assign_WindContQIEC_udb2)); - dynamic_switch.insert(std::make_pair("cim:WindContQIEC.umax", &assign_WindContQIEC_umax)); - dynamic_switch.insert(std::make_pair("cim:WindContQIEC.umin", &assign_WindContQIEC_umin)); - dynamic_switch.insert(std::make_pair("cim:WindContQIEC.uqdip", &assign_WindContQIEC_uqdip)); - dynamic_switch.insert(std::make_pair("cim:WindContQIEC.uref0", &assign_WindContQIEC_uref0)); - dynamic_switch.insert(std::make_pair("cim:WindContQIEC.windLVRTQcontrolModesType", &assign_WindContQIEC_windLVRTQcontrolModesType)); - dynamic_switch.insert(std::make_pair("cim:WindContQIEC.windQcontrolModesType", &assign_WindContQIEC_windQcontrolModesType)); - dynamic_switch.insert(std::make_pair("cim:WindContQIEC.xdroop", &assign_WindContQIEC_xdroop)); - dynamic_switch.insert(std::make_pair("cim:WindContPType4bIEC.dpmax", &assign_WindContPType4bIEC_dpmax)); - dynamic_switch.insert(std::make_pair("cim:WindContPType4bIEC.tpaero", &assign_WindContPType4bIEC_tpaero)); - dynamic_switch.insert(std::make_pair("cim:WindContPType4bIEC.tpord", &assign_WindContPType4bIEC_tpord)); - dynamic_switch.insert(std::make_pair("cim:WindContPType4bIEC.tufilt", &assign_WindContPType4bIEC_tufilt)); - dynamic_switch.insert(std::make_pair("cim:WindProtectionIEC.fover", &assign_WindProtectionIEC_fover)); - dynamic_switch.insert(std::make_pair("cim:WindProtectionIEC.funder", &assign_WindProtectionIEC_funder)); - dynamic_switch.insert(std::make_pair("cim:WindProtectionIEC.tfover", &assign_WindProtectionIEC_tfover)); - dynamic_switch.insert(std::make_pair("cim:WindProtectionIEC.tfunder", &assign_WindProtectionIEC_tfunder)); - dynamic_switch.insert(std::make_pair("cim:WindProtectionIEC.tuover", &assign_WindProtectionIEC_tuover)); - dynamic_switch.insert(std::make_pair("cim:WindProtectionIEC.tuunder", &assign_WindProtectionIEC_tuunder)); - dynamic_switch.insert(std::make_pair("cim:WindProtectionIEC.uover", &assign_WindProtectionIEC_uover)); - dynamic_switch.insert(std::make_pair("cim:WindProtectionIEC.uunder", &assign_WindProtectionIEC_uunder)); - dynamic_switch.insert(std::make_pair("cim:Pss1A.a1", &assign_Pss1A_a1)); - dynamic_switch.insert(std::make_pair("cim:Pss1A.a2", &assign_Pss1A_a2)); - dynamic_switch.insert(std::make_pair("cim:Pss1A.a3", &assign_Pss1A_a3)); - dynamic_switch.insert(std::make_pair("cim:Pss1A.a4", &assign_Pss1A_a4)); - dynamic_switch.insert(std::make_pair("cim:Pss1A.a5", &assign_Pss1A_a5)); - dynamic_switch.insert(std::make_pair("cim:Pss1A.a6", &assign_Pss1A_a6)); - dynamic_switch.insert(std::make_pair("cim:Pss1A.a7", &assign_Pss1A_a7)); - dynamic_switch.insert(std::make_pair("cim:Pss1A.a8", &assign_Pss1A_a8)); - dynamic_switch.insert(std::make_pair("cim:Pss1A.inputSignalType", &assign_Pss1A_inputSignalType)); - dynamic_switch.insert(std::make_pair("cim:Pss1A.kd", &assign_Pss1A_kd)); - dynamic_switch.insert(std::make_pair("cim:Pss1A.ks", &assign_Pss1A_ks)); - dynamic_switch.insert(std::make_pair("cim:Pss1A.t1", &assign_Pss1A_t1)); - dynamic_switch.insert(std::make_pair("cim:Pss1A.t2", &assign_Pss1A_t2)); - dynamic_switch.insert(std::make_pair("cim:Pss1A.t3", &assign_Pss1A_t3)); - dynamic_switch.insert(std::make_pair("cim:Pss1A.t4", &assign_Pss1A_t4)); - dynamic_switch.insert(std::make_pair("cim:Pss1A.t5", &assign_Pss1A_t5)); - dynamic_switch.insert(std::make_pair("cim:Pss1A.t6", &assign_Pss1A_t6)); - dynamic_switch.insert(std::make_pair("cim:Pss1A.tdelay", &assign_Pss1A_tdelay)); - dynamic_switch.insert(std::make_pair("cim:Pss1A.vcl", &assign_Pss1A_vcl)); - dynamic_switch.insert(std::make_pair("cim:Pss1A.vcu", &assign_Pss1A_vcu)); - dynamic_switch.insert(std::make_pair("cim:Pss1A.vrmax", &assign_Pss1A_vrmax)); - dynamic_switch.insert(std::make_pair("cim:Pss1A.vrmin", &assign_Pss1A_vrmin)); - dynamic_switch.insert(std::make_pair("cim:PssSK.k1", &assign_PssSK_k1)); - dynamic_switch.insert(std::make_pair("cim:PssSK.k2", &assign_PssSK_k2)); - dynamic_switch.insert(std::make_pair("cim:PssSK.k3", &assign_PssSK_k3)); - dynamic_switch.insert(std::make_pair("cim:PssSK.t1", &assign_PssSK_t1)); - dynamic_switch.insert(std::make_pair("cim:PssSK.t2", &assign_PssSK_t2)); - dynamic_switch.insert(std::make_pair("cim:PssSK.t3", &assign_PssSK_t3)); - dynamic_switch.insert(std::make_pair("cim:PssSK.t4", &assign_PssSK_t4)); - dynamic_switch.insert(std::make_pair("cim:PssSK.t5", &assign_PssSK_t5)); - dynamic_switch.insert(std::make_pair("cim:PssSK.t6", &assign_PssSK_t6)); - dynamic_switch.insert(std::make_pair("cim:PssSK.vsmax", &assign_PssSK_vsmax)); - dynamic_switch.insert(std::make_pair("cim:PssSK.vsmin", &assign_PssSK_vsmin)); - dynamic_switch.insert(std::make_pair("cim:PssPTIST3.a0", &assign_PssPTIST3_a0)); - dynamic_switch.insert(std::make_pair("cim:PssPTIST3.a1", &assign_PssPTIST3_a1)); - dynamic_switch.insert(std::make_pair("cim:PssPTIST3.a2", &assign_PssPTIST3_a2)); - dynamic_switch.insert(std::make_pair("cim:PssPTIST3.a3", &assign_PssPTIST3_a3)); - dynamic_switch.insert(std::make_pair("cim:PssPTIST3.a4", &assign_PssPTIST3_a4)); - dynamic_switch.insert(std::make_pair("cim:PssPTIST3.a5", &assign_PssPTIST3_a5)); - dynamic_switch.insert(std::make_pair("cim:PssPTIST3.al", &assign_PssPTIST3_al)); - dynamic_switch.insert(std::make_pair("cim:PssPTIST3.athres", &assign_PssPTIST3_athres)); - dynamic_switch.insert(std::make_pair("cim:PssPTIST3.b0", &assign_PssPTIST3_b0)); - dynamic_switch.insert(std::make_pair("cim:PssPTIST3.b1", &assign_PssPTIST3_b1)); - dynamic_switch.insert(std::make_pair("cim:PssPTIST3.b2", &assign_PssPTIST3_b2)); - dynamic_switch.insert(std::make_pair("cim:PssPTIST3.b3", &assign_PssPTIST3_b3)); - dynamic_switch.insert(std::make_pair("cim:PssPTIST3.b4", &assign_PssPTIST3_b4)); - dynamic_switch.insert(std::make_pair("cim:PssPTIST3.b5", &assign_PssPTIST3_b5)); - dynamic_switch.insert(std::make_pair("cim:PssPTIST3.dl", &assign_PssPTIST3_dl)); - dynamic_switch.insert(std::make_pair("cim:PssPTIST3.dtc", &assign_PssPTIST3_dtc)); - dynamic_switch.insert(std::make_pair("cim:PssPTIST3.dtf", &assign_PssPTIST3_dtf)); - dynamic_switch.insert(std::make_pair("cim:PssPTIST3.dtp", &assign_PssPTIST3_dtp)); - dynamic_switch.insert(std::make_pair("cim:PssPTIST3.isw", &assign_PssPTIST3_isw)); - dynamic_switch.insert(std::make_pair("cim:PssPTIST3.k", &assign_PssPTIST3_k)); - dynamic_switch.insert(std::make_pair("cim:PssPTIST3.lthres", &assign_PssPTIST3_lthres)); - dynamic_switch.insert(std::make_pair("cim:PssPTIST3.m", &assign_PssPTIST3_m)); - dynamic_switch.insert(std::make_pair("cim:PssPTIST3.nav", &assign_PssPTIST3_nav)); - dynamic_switch.insert(std::make_pair("cim:PssPTIST3.ncl", &assign_PssPTIST3_ncl)); - dynamic_switch.insert(std::make_pair("cim:PssPTIST3.ncr", &assign_PssPTIST3_ncr)); - dynamic_switch.insert(std::make_pair("cim:PssPTIST3.pmin", &assign_PssPTIST3_pmin)); - dynamic_switch.insert(std::make_pair("cim:PssPTIST3.t1", &assign_PssPTIST3_t1)); - dynamic_switch.insert(std::make_pair("cim:PssPTIST3.t2", &assign_PssPTIST3_t2)); - dynamic_switch.insert(std::make_pair("cim:PssPTIST3.t3", &assign_PssPTIST3_t3)); - dynamic_switch.insert(std::make_pair("cim:PssPTIST3.t4", &assign_PssPTIST3_t4)); - dynamic_switch.insert(std::make_pair("cim:PssPTIST3.t5", &assign_PssPTIST3_t5)); - dynamic_switch.insert(std::make_pair("cim:PssPTIST3.t6", &assign_PssPTIST3_t6)); - dynamic_switch.insert(std::make_pair("cim:PssPTIST3.tf", &assign_PssPTIST3_tf)); - dynamic_switch.insert(std::make_pair("cim:PssPTIST3.tp", &assign_PssPTIST3_tp)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.bwh1", &assign_PssIEEE4B_bwh1)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.bwh2", &assign_PssIEEE4B_bwh2)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.bwl1", &assign_PssIEEE4B_bwl1)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.bwl2", &assign_PssIEEE4B_bwl2)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.kh", &assign_PssIEEE4B_kh)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.kh1", &assign_PssIEEE4B_kh1)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.kh11", &assign_PssIEEE4B_kh11)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.kh17", &assign_PssIEEE4B_kh17)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.kh2", &assign_PssIEEE4B_kh2)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.ki", &assign_PssIEEE4B_ki)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.ki1", &assign_PssIEEE4B_ki1)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.ki11", &assign_PssIEEE4B_ki11)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.ki17", &assign_PssIEEE4B_ki17)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.ki2", &assign_PssIEEE4B_ki2)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.kl", &assign_PssIEEE4B_kl)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.kl1", &assign_PssIEEE4B_kl1)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.kl11", &assign_PssIEEE4B_kl11)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.kl17", &assign_PssIEEE4B_kl17)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.kl2", &assign_PssIEEE4B_kl2)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.omeganh1", &assign_PssIEEE4B_omeganh1)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.omeganh2", &assign_PssIEEE4B_omeganh2)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.omeganl1", &assign_PssIEEE4B_omeganl1)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.omeganl2", &assign_PssIEEE4B_omeganl2)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.th1", &assign_PssIEEE4B_th1)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.th10", &assign_PssIEEE4B_th10)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.th11", &assign_PssIEEE4B_th11)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.th12", &assign_PssIEEE4B_th12)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.th2", &assign_PssIEEE4B_th2)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.th3", &assign_PssIEEE4B_th3)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.th4", &assign_PssIEEE4B_th4)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.th5", &assign_PssIEEE4B_th5)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.th6", &assign_PssIEEE4B_th6)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.th7", &assign_PssIEEE4B_th7)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.th8", &assign_PssIEEE4B_th8)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.th9", &assign_PssIEEE4B_th9)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.ti1", &assign_PssIEEE4B_ti1)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.ti10", &assign_PssIEEE4B_ti10)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.ti11", &assign_PssIEEE4B_ti11)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.ti12", &assign_PssIEEE4B_ti12)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.ti2", &assign_PssIEEE4B_ti2)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.ti3", &assign_PssIEEE4B_ti3)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.ti4", &assign_PssIEEE4B_ti4)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.ti5", &assign_PssIEEE4B_ti5)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.ti6", &assign_PssIEEE4B_ti6)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.ti7", &assign_PssIEEE4B_ti7)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.ti8", &assign_PssIEEE4B_ti8)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.ti9", &assign_PssIEEE4B_ti9)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.tl1", &assign_PssIEEE4B_tl1)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.tl10", &assign_PssIEEE4B_tl10)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.tl11", &assign_PssIEEE4B_tl11)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.tl12", &assign_PssIEEE4B_tl12)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.tl2", &assign_PssIEEE4B_tl2)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.tl3", &assign_PssIEEE4B_tl3)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.tl4", &assign_PssIEEE4B_tl4)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.tl5", &assign_PssIEEE4B_tl5)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.tl6", &assign_PssIEEE4B_tl6)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.tl7", &assign_PssIEEE4B_tl7)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.tl8", &assign_PssIEEE4B_tl8)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.tl9", &assign_PssIEEE4B_tl9)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.vhmax", &assign_PssIEEE4B_vhmax)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.vhmin", &assign_PssIEEE4B_vhmin)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.vimax", &assign_PssIEEE4B_vimax)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.vimin", &assign_PssIEEE4B_vimin)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.vlmax", &assign_PssIEEE4B_vlmax)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.vlmin", &assign_PssIEEE4B_vlmin)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.vstmax", &assign_PssIEEE4B_vstmax)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE4B.vstmin", &assign_PssIEEE4B_vstmin)); - dynamic_switch.insert(std::make_pair("cim:PssPTIST1.dtc", &assign_PssPTIST1_dtc)); - dynamic_switch.insert(std::make_pair("cim:PssPTIST1.dtf", &assign_PssPTIST1_dtf)); - dynamic_switch.insert(std::make_pair("cim:PssPTIST1.dtp", &assign_PssPTIST1_dtp)); - dynamic_switch.insert(std::make_pair("cim:PssPTIST1.k", &assign_PssPTIST1_k)); - dynamic_switch.insert(std::make_pair("cim:PssPTIST1.m", &assign_PssPTIST1_m)); - dynamic_switch.insert(std::make_pair("cim:PssPTIST1.t1", &assign_PssPTIST1_t1)); - dynamic_switch.insert(std::make_pair("cim:PssPTIST1.t2", &assign_PssPTIST1_t2)); - dynamic_switch.insert(std::make_pair("cim:PssPTIST1.t3", &assign_PssPTIST1_t3)); - dynamic_switch.insert(std::make_pair("cim:PssPTIST1.t4", &assign_PssPTIST1_t4)); - dynamic_switch.insert(std::make_pair("cim:PssPTIST1.tf", &assign_PssPTIST1_tf)); - dynamic_switch.insert(std::make_pair("cim:PssPTIST1.tp", &assign_PssPTIST1_tp)); - dynamic_switch.insert(std::make_pair("cim:Pss2B.a", &assign_Pss2B_a)); - dynamic_switch.insert(std::make_pair("cim:Pss2B.inputSignal1Type", &assign_Pss2B_inputSignal1Type)); - dynamic_switch.insert(std::make_pair("cim:Pss2B.inputSignal2Type", &assign_Pss2B_inputSignal2Type)); - dynamic_switch.insert(std::make_pair("cim:Pss2B.ks1", &assign_Pss2B_ks1)); - dynamic_switch.insert(std::make_pair("cim:Pss2B.ks2", &assign_Pss2B_ks2)); - dynamic_switch.insert(std::make_pair("cim:Pss2B.ks3", &assign_Pss2B_ks3)); - dynamic_switch.insert(std::make_pair("cim:Pss2B.ks4", &assign_Pss2B_ks4)); - dynamic_switch.insert(std::make_pair("cim:Pss2B.m", &assign_Pss2B_m)); - dynamic_switch.insert(std::make_pair("cim:Pss2B.n", &assign_Pss2B_n)); - dynamic_switch.insert(std::make_pair("cim:Pss2B.t1", &assign_Pss2B_t1)); - dynamic_switch.insert(std::make_pair("cim:Pss2B.t10", &assign_Pss2B_t10)); - dynamic_switch.insert(std::make_pair("cim:Pss2B.t11", &assign_Pss2B_t11)); - dynamic_switch.insert(std::make_pair("cim:Pss2B.t2", &assign_Pss2B_t2)); - dynamic_switch.insert(std::make_pair("cim:Pss2B.t3", &assign_Pss2B_t3)); - dynamic_switch.insert(std::make_pair("cim:Pss2B.t4", &assign_Pss2B_t4)); - dynamic_switch.insert(std::make_pair("cim:Pss2B.t6", &assign_Pss2B_t6)); - dynamic_switch.insert(std::make_pair("cim:Pss2B.t7", &assign_Pss2B_t7)); - dynamic_switch.insert(std::make_pair("cim:Pss2B.t8", &assign_Pss2B_t8)); - dynamic_switch.insert(std::make_pair("cim:Pss2B.t9", &assign_Pss2B_t9)); - dynamic_switch.insert(std::make_pair("cim:Pss2B.ta", &assign_Pss2B_ta)); - dynamic_switch.insert(std::make_pair("cim:Pss2B.tb", &assign_Pss2B_tb)); - dynamic_switch.insert(std::make_pair("cim:Pss2B.tw1", &assign_Pss2B_tw1)); - dynamic_switch.insert(std::make_pair("cim:Pss2B.tw2", &assign_Pss2B_tw2)); - dynamic_switch.insert(std::make_pair("cim:Pss2B.tw3", &assign_Pss2B_tw3)); - dynamic_switch.insert(std::make_pair("cim:Pss2B.tw4", &assign_Pss2B_tw4)); - dynamic_switch.insert(std::make_pair("cim:Pss2B.vsi1max", &assign_Pss2B_vsi1max)); - dynamic_switch.insert(std::make_pair("cim:Pss2B.vsi1min", &assign_Pss2B_vsi1min)); - dynamic_switch.insert(std::make_pair("cim:Pss2B.vsi2max", &assign_Pss2B_vsi2max)); - dynamic_switch.insert(std::make_pair("cim:Pss2B.vsi2min", &assign_Pss2B_vsi2min)); - dynamic_switch.insert(std::make_pair("cim:Pss2B.vstmax", &assign_Pss2B_vstmax)); - dynamic_switch.insert(std::make_pair("cim:Pss2B.vstmin", &assign_Pss2B_vstmin)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE3B.a1", &assign_PssIEEE3B_a1)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE3B.a2", &assign_PssIEEE3B_a2)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE3B.a3", &assign_PssIEEE3B_a3)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE3B.a4", &assign_PssIEEE3B_a4)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE3B.a5", &assign_PssIEEE3B_a5)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE3B.a6", &assign_PssIEEE3B_a6)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE3B.a7", &assign_PssIEEE3B_a7)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE3B.a8", &assign_PssIEEE3B_a8)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE3B.inputSignal1Type", &assign_PssIEEE3B_inputSignal1Type)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE3B.inputSignal2Type", &assign_PssIEEE3B_inputSignal2Type)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE3B.ks1", &assign_PssIEEE3B_ks1)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE3B.ks2", &assign_PssIEEE3B_ks2)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE3B.t1", &assign_PssIEEE3B_t1)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE3B.t2", &assign_PssIEEE3B_t2)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE3B.tw1", &assign_PssIEEE3B_tw1)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE3B.tw2", &assign_PssIEEE3B_tw2)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE3B.tw3", &assign_PssIEEE3B_tw3)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE3B.vstmax", &assign_PssIEEE3B_vstmax)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE3B.vstmin", &assign_PssIEEE3B_vstmin)); - dynamic_switch.insert(std::make_pair("cim:Pss2ST.inputSignal1Type", &assign_Pss2ST_inputSignal1Type)); - dynamic_switch.insert(std::make_pair("cim:Pss2ST.inputSignal2Type", &assign_Pss2ST_inputSignal2Type)); - dynamic_switch.insert(std::make_pair("cim:Pss2ST.k1", &assign_Pss2ST_k1)); - dynamic_switch.insert(std::make_pair("cim:Pss2ST.k2", &assign_Pss2ST_k2)); - dynamic_switch.insert(std::make_pair("cim:Pss2ST.lsmax", &assign_Pss2ST_lsmax)); - dynamic_switch.insert(std::make_pair("cim:Pss2ST.lsmin", &assign_Pss2ST_lsmin)); - dynamic_switch.insert(std::make_pair("cim:Pss2ST.t1", &assign_Pss2ST_t1)); - dynamic_switch.insert(std::make_pair("cim:Pss2ST.t10", &assign_Pss2ST_t10)); - dynamic_switch.insert(std::make_pair("cim:Pss2ST.t2", &assign_Pss2ST_t2)); - dynamic_switch.insert(std::make_pair("cim:Pss2ST.t3", &assign_Pss2ST_t3)); - dynamic_switch.insert(std::make_pair("cim:Pss2ST.t4", &assign_Pss2ST_t4)); - dynamic_switch.insert(std::make_pair("cim:Pss2ST.t5", &assign_Pss2ST_t5)); - dynamic_switch.insert(std::make_pair("cim:Pss2ST.t6", &assign_Pss2ST_t6)); - dynamic_switch.insert(std::make_pair("cim:Pss2ST.t7", &assign_Pss2ST_t7)); - dynamic_switch.insert(std::make_pair("cim:Pss2ST.t8", &assign_Pss2ST_t8)); - dynamic_switch.insert(std::make_pair("cim:Pss2ST.t9", &assign_Pss2ST_t9)); - dynamic_switch.insert(std::make_pair("cim:Pss2ST.vcl", &assign_Pss2ST_vcl)); - dynamic_switch.insert(std::make_pair("cim:Pss2ST.vcu", &assign_Pss2ST_vcu)); - dynamic_switch.insert(std::make_pair("cim:PssWECC.inputSignal1Type", &assign_PssWECC_inputSignal1Type)); - dynamic_switch.insert(std::make_pair("cim:PssWECC.inputSignal2Type", &assign_PssWECC_inputSignal2Type)); - dynamic_switch.insert(std::make_pair("cim:PssWECC.k1", &assign_PssWECC_k1)); - dynamic_switch.insert(std::make_pair("cim:PssWECC.k2", &assign_PssWECC_k2)); - dynamic_switch.insert(std::make_pair("cim:PssWECC.t1", &assign_PssWECC_t1)); - dynamic_switch.insert(std::make_pair("cim:PssWECC.t10", &assign_PssWECC_t10)); - dynamic_switch.insert(std::make_pair("cim:PssWECC.t2", &assign_PssWECC_t2)); - dynamic_switch.insert(std::make_pair("cim:PssWECC.t3", &assign_PssWECC_t3)); - dynamic_switch.insert(std::make_pair("cim:PssWECC.t4", &assign_PssWECC_t4)); - dynamic_switch.insert(std::make_pair("cim:PssWECC.t5", &assign_PssWECC_t5)); - dynamic_switch.insert(std::make_pair("cim:PssWECC.t6", &assign_PssWECC_t6)); - dynamic_switch.insert(std::make_pair("cim:PssWECC.t7", &assign_PssWECC_t7)); - dynamic_switch.insert(std::make_pair("cim:PssWECC.t8", &assign_PssWECC_t8)); - dynamic_switch.insert(std::make_pair("cim:PssWECC.t9", &assign_PssWECC_t9)); - dynamic_switch.insert(std::make_pair("cim:PssWECC.vcl", &assign_PssWECC_vcl)); - dynamic_switch.insert(std::make_pair("cim:PssWECC.vcu", &assign_PssWECC_vcu)); - dynamic_switch.insert(std::make_pair("cim:PssWECC.vsmax", &assign_PssWECC_vsmax)); - dynamic_switch.insert(std::make_pair("cim:PssWECC.vsmin", &assign_PssWECC_vsmin)); - dynamic_switch.insert(std::make_pair("cim:PssELIN2.apss", &assign_PssELIN2_apss)); - dynamic_switch.insert(std::make_pair("cim:PssELIN2.ks1", &assign_PssELIN2_ks1)); - dynamic_switch.insert(std::make_pair("cim:PssELIN2.ks2", &assign_PssELIN2_ks2)); - dynamic_switch.insert(std::make_pair("cim:PssELIN2.ppss", &assign_PssELIN2_ppss)); - dynamic_switch.insert(std::make_pair("cim:PssELIN2.psslim", &assign_PssELIN2_psslim)); - dynamic_switch.insert(std::make_pair("cim:PssELIN2.ts1", &assign_PssELIN2_ts1)); - dynamic_switch.insert(std::make_pair("cim:PssELIN2.ts2", &assign_PssELIN2_ts2)); - dynamic_switch.insert(std::make_pair("cim:PssELIN2.ts3", &assign_PssELIN2_ts3)); - dynamic_switch.insert(std::make_pair("cim:PssELIN2.ts4", &assign_PssELIN2_ts4)); - dynamic_switch.insert(std::make_pair("cim:PssELIN2.ts5", &assign_PssELIN2_ts5)); - dynamic_switch.insert(std::make_pair("cim:PssELIN2.ts6", &assign_PssELIN2_ts6)); - dynamic_switch.insert(std::make_pair("cim:Pss1.kf", &assign_Pss1_kf)); - dynamic_switch.insert(std::make_pair("cim:Pss1.kpe", &assign_Pss1_kpe)); - dynamic_switch.insert(std::make_pair("cim:Pss1.ks", &assign_Pss1_ks)); - dynamic_switch.insert(std::make_pair("cim:Pss1.kw", &assign_Pss1_kw)); - dynamic_switch.insert(std::make_pair("cim:Pss1.pmin", &assign_Pss1_pmin)); - dynamic_switch.insert(std::make_pair("cim:Pss1.t10", &assign_Pss1_t10)); - dynamic_switch.insert(std::make_pair("cim:Pss1.t5", &assign_Pss1_t5)); - dynamic_switch.insert(std::make_pair("cim:Pss1.t6", &assign_Pss1_t6)); - dynamic_switch.insert(std::make_pair("cim:Pss1.t7", &assign_Pss1_t7)); - dynamic_switch.insert(std::make_pair("cim:Pss1.t8", &assign_Pss1_t8)); - dynamic_switch.insert(std::make_pair("cim:Pss1.t9", &assign_Pss1_t9)); - dynamic_switch.insert(std::make_pair("cim:Pss1.tpe", &assign_Pss1_tpe)); - dynamic_switch.insert(std::make_pair("cim:Pss1.vadat", &assign_Pss1_vadat)); - dynamic_switch.insert(std::make_pair("cim:Pss1.vsmn", &assign_Pss1_vsmn)); - dynamic_switch.insert(std::make_pair("cim:Pss1.vsmx", &assign_Pss1_vsmx)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE2B.inputSignal1Type", &assign_PssIEEE2B_inputSignal1Type)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE2B.inputSignal2Type", &assign_PssIEEE2B_inputSignal2Type)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE2B.ks1", &assign_PssIEEE2B_ks1)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE2B.ks2", &assign_PssIEEE2B_ks2)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE2B.ks3", &assign_PssIEEE2B_ks3)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE2B.m", &assign_PssIEEE2B_m)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE2B.n", &assign_PssIEEE2B_n)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE2B.t1", &assign_PssIEEE2B_t1)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE2B.t10", &assign_PssIEEE2B_t10)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE2B.t11", &assign_PssIEEE2B_t11)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE2B.t2", &assign_PssIEEE2B_t2)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE2B.t3", &assign_PssIEEE2B_t3)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE2B.t4", &assign_PssIEEE2B_t4)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE2B.t6", &assign_PssIEEE2B_t6)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE2B.t7", &assign_PssIEEE2B_t7)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE2B.t8", &assign_PssIEEE2B_t8)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE2B.t9", &assign_PssIEEE2B_t9)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE2B.tw1", &assign_PssIEEE2B_tw1)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE2B.tw2", &assign_PssIEEE2B_tw2)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE2B.tw3", &assign_PssIEEE2B_tw3)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE2B.tw4", &assign_PssIEEE2B_tw4)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE2B.vsi1max", &assign_PssIEEE2B_vsi1max)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE2B.vsi1min", &assign_PssIEEE2B_vsi1min)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE2B.vsi2max", &assign_PssIEEE2B_vsi2max)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE2B.vsi2min", &assign_PssIEEE2B_vsi2min)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE2B.vstmax", &assign_PssIEEE2B_vstmax)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE2B.vstmin", &assign_PssIEEE2B_vstmin)); - dynamic_switch.insert(std::make_pair("cim:Pss5.ctw2", &assign_Pss5_ctw2)); - dynamic_switch.insert(std::make_pair("cim:Pss5.deadband", &assign_Pss5_deadband)); - dynamic_switch.insert(std::make_pair("cim:Pss5.isfreq", &assign_Pss5_isfreq)); - dynamic_switch.insert(std::make_pair("cim:Pss5.kf", &assign_Pss5_kf)); - dynamic_switch.insert(std::make_pair("cim:Pss5.kpe", &assign_Pss5_kpe)); - dynamic_switch.insert(std::make_pair("cim:Pss5.kpss", &assign_Pss5_kpss)); - dynamic_switch.insert(std::make_pair("cim:Pss5.pmm", &assign_Pss5_pmm)); - dynamic_switch.insert(std::make_pair("cim:Pss5.tl1", &assign_Pss5_tl1)); - dynamic_switch.insert(std::make_pair("cim:Pss5.tl2", &assign_Pss5_tl2)); - dynamic_switch.insert(std::make_pair("cim:Pss5.tl3", &assign_Pss5_tl3)); - dynamic_switch.insert(std::make_pair("cim:Pss5.tl4", &assign_Pss5_tl4)); - dynamic_switch.insert(std::make_pair("cim:Pss5.tpe", &assign_Pss5_tpe)); - dynamic_switch.insert(std::make_pair("cim:Pss5.tw1", &assign_Pss5_tw1)); - dynamic_switch.insert(std::make_pair("cim:Pss5.tw2", &assign_Pss5_tw2)); - dynamic_switch.insert(std::make_pair("cim:Pss5.vadat", &assign_Pss5_vadat)); - dynamic_switch.insert(std::make_pair("cim:Pss5.vsmn", &assign_Pss5_vsmn)); - dynamic_switch.insert(std::make_pair("cim:Pss5.vsmx", &assign_Pss5_vsmx)); - dynamic_switch.insert(std::make_pair("cim:PssSB4.kx", &assign_PssSB4_kx)); - dynamic_switch.insert(std::make_pair("cim:PssSB4.ta", &assign_PssSB4_ta)); - dynamic_switch.insert(std::make_pair("cim:PssSB4.tb", &assign_PssSB4_tb)); - dynamic_switch.insert(std::make_pair("cim:PssSB4.tc", &assign_PssSB4_tc)); - dynamic_switch.insert(std::make_pair("cim:PssSB4.td", &assign_PssSB4_td)); - dynamic_switch.insert(std::make_pair("cim:PssSB4.te", &assign_PssSB4_te)); - dynamic_switch.insert(std::make_pair("cim:PssSB4.tt", &assign_PssSB4_tt)); - dynamic_switch.insert(std::make_pair("cim:PssSB4.tx1", &assign_PssSB4_tx1)); - dynamic_switch.insert(std::make_pair("cim:PssSB4.tx2", &assign_PssSB4_tx2)); - dynamic_switch.insert(std::make_pair("cim:PssSB4.vsmax", &assign_PssSB4_vsmax)); - dynamic_switch.insert(std::make_pair("cim:PssSB4.vsmin", &assign_PssSB4_vsmin)); - dynamic_switch.insert(std::make_pair("cim:PssSH.k", &assign_PssSH_k)); - dynamic_switch.insert(std::make_pair("cim:PssSH.k0", &assign_PssSH_k0)); - dynamic_switch.insert(std::make_pair("cim:PssSH.k1", &assign_PssSH_k1)); - dynamic_switch.insert(std::make_pair("cim:PssSH.k2", &assign_PssSH_k2)); - dynamic_switch.insert(std::make_pair("cim:PssSH.k3", &assign_PssSH_k3)); - dynamic_switch.insert(std::make_pair("cim:PssSH.k4", &assign_PssSH_k4)); - dynamic_switch.insert(std::make_pair("cim:PssSH.t1", &assign_PssSH_t1)); - dynamic_switch.insert(std::make_pair("cim:PssSH.t2", &assign_PssSH_t2)); - dynamic_switch.insert(std::make_pair("cim:PssSH.t3", &assign_PssSH_t3)); - dynamic_switch.insert(std::make_pair("cim:PssSH.t4", &assign_PssSH_t4)); - dynamic_switch.insert(std::make_pair("cim:PssSH.td", &assign_PssSH_td)); - dynamic_switch.insert(std::make_pair("cim:PssSH.vsmax", &assign_PssSH_vsmax)); - dynamic_switch.insert(std::make_pair("cim:PssSH.vsmin", &assign_PssSH_vsmin)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE1A.a1", &assign_PssIEEE1A_a1)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE1A.a2", &assign_PssIEEE1A_a2)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE1A.inputSignalType", &assign_PssIEEE1A_inputSignalType)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE1A.ks", &assign_PssIEEE1A_ks)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE1A.t1", &assign_PssIEEE1A_t1)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE1A.t2", &assign_PssIEEE1A_t2)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE1A.t3", &assign_PssIEEE1A_t3)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE1A.t4", &assign_PssIEEE1A_t4)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE1A.t5", &assign_PssIEEE1A_t5)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE1A.t6", &assign_PssIEEE1A_t6)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE1A.vrmax", &assign_PssIEEE1A_vrmax)); - dynamic_switch.insert(std::make_pair("cim:PssIEEE1A.vrmin", &assign_PssIEEE1A_vrmin)); - dynamic_switch.insert(std::make_pair("cim:ExcREXS.e1", &assign_ExcREXS_e1)); - dynamic_switch.insert(std::make_pair("cim:ExcREXS.e2", &assign_ExcREXS_e2)); - dynamic_switch.insert(std::make_pair("cim:ExcREXS.fbf", &assign_ExcREXS_fbf)); - dynamic_switch.insert(std::make_pair("cim:ExcREXS.flimf", &assign_ExcREXS_flimf)); - dynamic_switch.insert(std::make_pair("cim:ExcREXS.kc", &assign_ExcREXS_kc)); - dynamic_switch.insert(std::make_pair("cim:ExcREXS.kd", &assign_ExcREXS_kd)); - dynamic_switch.insert(std::make_pair("cim:ExcREXS.ke", &assign_ExcREXS_ke)); - dynamic_switch.insert(std::make_pair("cim:ExcREXS.kefd", &assign_ExcREXS_kefd)); - dynamic_switch.insert(std::make_pair("cim:ExcREXS.kf", &assign_ExcREXS_kf)); - dynamic_switch.insert(std::make_pair("cim:ExcREXS.kh", &assign_ExcREXS_kh)); - dynamic_switch.insert(std::make_pair("cim:ExcREXS.kii", &assign_ExcREXS_kii)); - dynamic_switch.insert(std::make_pair("cim:ExcREXS.kip", &assign_ExcREXS_kip)); - dynamic_switch.insert(std::make_pair("cim:ExcREXS.ks", &assign_ExcREXS_ks)); - dynamic_switch.insert(std::make_pair("cim:ExcREXS.kvi", &assign_ExcREXS_kvi)); - dynamic_switch.insert(std::make_pair("cim:ExcREXS.kvp", &assign_ExcREXS_kvp)); - dynamic_switch.insert(std::make_pair("cim:ExcREXS.kvphz", &assign_ExcREXS_kvphz)); - dynamic_switch.insert(std::make_pair("cim:ExcREXS.nvphz", &assign_ExcREXS_nvphz)); - dynamic_switch.insert(std::make_pair("cim:ExcREXS.se1", &assign_ExcREXS_se1)); - dynamic_switch.insert(std::make_pair("cim:ExcREXS.se2", &assign_ExcREXS_se2)); - dynamic_switch.insert(std::make_pair("cim:ExcREXS.ta", &assign_ExcREXS_ta)); - dynamic_switch.insert(std::make_pair("cim:ExcREXS.tb1", &assign_ExcREXS_tb1)); - dynamic_switch.insert(std::make_pair("cim:ExcREXS.tb2", &assign_ExcREXS_tb2)); - dynamic_switch.insert(std::make_pair("cim:ExcREXS.tc1", &assign_ExcREXS_tc1)); - dynamic_switch.insert(std::make_pair("cim:ExcREXS.tc2", &assign_ExcREXS_tc2)); - dynamic_switch.insert(std::make_pair("cim:ExcREXS.te", &assign_ExcREXS_te)); - dynamic_switch.insert(std::make_pair("cim:ExcREXS.tf", &assign_ExcREXS_tf)); - dynamic_switch.insert(std::make_pair("cim:ExcREXS.tf1", &assign_ExcREXS_tf1)); - dynamic_switch.insert(std::make_pair("cim:ExcREXS.tf2", &assign_ExcREXS_tf2)); - dynamic_switch.insert(std::make_pair("cim:ExcREXS.tp", &assign_ExcREXS_tp)); - dynamic_switch.insert(std::make_pair("cim:ExcREXS.vcmax", &assign_ExcREXS_vcmax)); - dynamic_switch.insert(std::make_pair("cim:ExcREXS.vfmax", &assign_ExcREXS_vfmax)); - dynamic_switch.insert(std::make_pair("cim:ExcREXS.vfmin", &assign_ExcREXS_vfmin)); - dynamic_switch.insert(std::make_pair("cim:ExcREXS.vimax", &assign_ExcREXS_vimax)); - dynamic_switch.insert(std::make_pair("cim:ExcREXS.vrmax", &assign_ExcREXS_vrmax)); - dynamic_switch.insert(std::make_pair("cim:ExcREXS.vrmin", &assign_ExcREXS_vrmin)); - dynamic_switch.insert(std::make_pair("cim:ExcREXS.xc", &assign_ExcREXS_xc)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC1A.ka", &assign_ExcIEEEAC1A_ka)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC1A.kc", &assign_ExcIEEEAC1A_kc)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC1A.kd", &assign_ExcIEEEAC1A_kd)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC1A.ke", &assign_ExcIEEEAC1A_ke)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC1A.kf", &assign_ExcIEEEAC1A_kf)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC1A.seve1", &assign_ExcIEEEAC1A_seve1)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC1A.seve2", &assign_ExcIEEEAC1A_seve2)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC1A.ta", &assign_ExcIEEEAC1A_ta)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC1A.tb", &assign_ExcIEEEAC1A_tb)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC1A.tc", &assign_ExcIEEEAC1A_tc)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC1A.te", &assign_ExcIEEEAC1A_te)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC1A.tf", &assign_ExcIEEEAC1A_tf)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC1A.vamax", &assign_ExcIEEEAC1A_vamax)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC1A.vamin", &assign_ExcIEEEAC1A_vamin)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC1A.ve1", &assign_ExcIEEEAC1A_ve1)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC1A.ve2", &assign_ExcIEEEAC1A_ve2)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC1A.vrmax", &assign_ExcIEEEAC1A_vrmax)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC1A.vrmin", &assign_ExcIEEEAC1A_vrmin)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC7B.kc", &assign_ExcIEEEAC7B_kc)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC7B.kd", &assign_ExcIEEEAC7B_kd)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC7B.kdr", &assign_ExcIEEEAC7B_kdr)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC7B.ke", &assign_ExcIEEEAC7B_ke)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC7B.kf1", &assign_ExcIEEEAC7B_kf1)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC7B.kf2", &assign_ExcIEEEAC7B_kf2)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC7B.kf3", &assign_ExcIEEEAC7B_kf3)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC7B.kia", &assign_ExcIEEEAC7B_kia)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC7B.kir", &assign_ExcIEEEAC7B_kir)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC7B.kl", &assign_ExcIEEEAC7B_kl)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC7B.kp", &assign_ExcIEEEAC7B_kp)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC7B.kpa", &assign_ExcIEEEAC7B_kpa)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC7B.kpr", &assign_ExcIEEEAC7B_kpr)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC7B.seve1", &assign_ExcIEEEAC7B_seve1)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC7B.seve2", &assign_ExcIEEEAC7B_seve2)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC7B.tdr", &assign_ExcIEEEAC7B_tdr)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC7B.te", &assign_ExcIEEEAC7B_te)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC7B.tf", &assign_ExcIEEEAC7B_tf)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC7B.vamax", &assign_ExcIEEEAC7B_vamax)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC7B.vamin", &assign_ExcIEEEAC7B_vamin)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC7B.ve1", &assign_ExcIEEEAC7B_ve1)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC7B.ve2", &assign_ExcIEEEAC7B_ve2)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC7B.vemin", &assign_ExcIEEEAC7B_vemin)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC7B.vfemax", &assign_ExcIEEEAC7B_vfemax)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC7B.vrmax", &assign_ExcIEEEAC7B_vrmax)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC7B.vrmin", &assign_ExcIEEEAC7B_vrmin)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST2A.efdmax", &assign_ExcIEEEST2A_efdmax)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST2A.ka", &assign_ExcIEEEST2A_ka)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST2A.kc", &assign_ExcIEEEST2A_kc)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST2A.ke", &assign_ExcIEEEST2A_ke)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST2A.kf", &assign_ExcIEEEST2A_kf)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST2A.ki", &assign_ExcIEEEST2A_ki)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST2A.kp", &assign_ExcIEEEST2A_kp)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST2A.ta", &assign_ExcIEEEST2A_ta)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST2A.te", &assign_ExcIEEEST2A_te)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST2A.tf", &assign_ExcIEEEST2A_tf)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST2A.uelin", &assign_ExcIEEEST2A_uelin)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST2A.vrmax", &assign_ExcIEEEST2A_vrmax)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST2A.vrmin", &assign_ExcIEEEST2A_vrmin)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC5A.efd1", &assign_ExcIEEEAC5A_efd1)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC5A.efd2", &assign_ExcIEEEAC5A_efd2)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC5A.ka", &assign_ExcIEEEAC5A_ka)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC5A.ke", &assign_ExcIEEEAC5A_ke)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC5A.kf", &assign_ExcIEEEAC5A_kf)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC5A.seefd1", &assign_ExcIEEEAC5A_seefd1)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC5A.seefd2", &assign_ExcIEEEAC5A_seefd2)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC5A.ta", &assign_ExcIEEEAC5A_ta)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC5A.te", &assign_ExcIEEEAC5A_te)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC5A.tf1", &assign_ExcIEEEAC5A_tf1)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC5A.tf2", &assign_ExcIEEEAC5A_tf2)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC5A.tf3", &assign_ExcIEEEAC5A_tf3)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC5A.vrmax", &assign_ExcIEEEAC5A_vrmax)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC5A.vrmin", &assign_ExcIEEEAC5A_vrmin)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR3.e1", &assign_ExcAVR3_e1)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR3.e2", &assign_ExcAVR3_e2)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR3.ka", &assign_ExcAVR3_ka)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR3.se1", &assign_ExcAVR3_se1)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR3.se2", &assign_ExcAVR3_se2)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR3.t1", &assign_ExcAVR3_t1)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR3.t2", &assign_ExcAVR3_t2)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR3.t3", &assign_ExcAVR3_t3)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR3.t4", &assign_ExcAVR3_t4)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR3.te", &assign_ExcAVR3_te)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR3.vrmn", &assign_ExcAVR3_vrmn)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR3.vrmx", &assign_ExcAVR3_vrmx)); - dynamic_switch.insert(std::make_pair("cim:ExcST4B.kc", &assign_ExcST4B_kc)); - dynamic_switch.insert(std::make_pair("cim:ExcST4B.kg", &assign_ExcST4B_kg)); - dynamic_switch.insert(std::make_pair("cim:ExcST4B.ki", &assign_ExcST4B_ki)); - dynamic_switch.insert(std::make_pair("cim:ExcST4B.kim", &assign_ExcST4B_kim)); - dynamic_switch.insert(std::make_pair("cim:ExcST4B.kir", &assign_ExcST4B_kir)); - dynamic_switch.insert(std::make_pair("cim:ExcST4B.kp", &assign_ExcST4B_kp)); - dynamic_switch.insert(std::make_pair("cim:ExcST4B.kpm", &assign_ExcST4B_kpm)); - dynamic_switch.insert(std::make_pair("cim:ExcST4B.kpr", &assign_ExcST4B_kpr)); - dynamic_switch.insert(std::make_pair("cim:ExcST4B.lvgate", &assign_ExcST4B_lvgate)); - dynamic_switch.insert(std::make_pair("cim:ExcST4B.ta", &assign_ExcST4B_ta)); - dynamic_switch.insert(std::make_pair("cim:ExcST4B.thetap", &assign_ExcST4B_thetap)); - dynamic_switch.insert(std::make_pair("cim:ExcST4B.uel", &assign_ExcST4B_uel)); - dynamic_switch.insert(std::make_pair("cim:ExcST4B.vbmax", &assign_ExcST4B_vbmax)); - dynamic_switch.insert(std::make_pair("cim:ExcST4B.vgmax", &assign_ExcST4B_vgmax)); - dynamic_switch.insert(std::make_pair("cim:ExcST4B.vmmax", &assign_ExcST4B_vmmax)); - dynamic_switch.insert(std::make_pair("cim:ExcST4B.vmmin", &assign_ExcST4B_vmmin)); - dynamic_switch.insert(std::make_pair("cim:ExcST4B.vrmax", &assign_ExcST4B_vrmax)); - dynamic_switch.insert(std::make_pair("cim:ExcST4B.vrmin", &assign_ExcST4B_vrmin)); - dynamic_switch.insert(std::make_pair("cim:ExcST4B.xl", &assign_ExcST4B_xl)); - dynamic_switch.insert(std::make_pair("cim:ExcST7B.kh", &assign_ExcST7B_kh)); - dynamic_switch.insert(std::make_pair("cim:ExcST7B.kia", &assign_ExcST7B_kia)); - dynamic_switch.insert(std::make_pair("cim:ExcST7B.kl", &assign_ExcST7B_kl)); - dynamic_switch.insert(std::make_pair("cim:ExcST7B.kpa", &assign_ExcST7B_kpa)); - dynamic_switch.insert(std::make_pair("cim:ExcST7B.oelin", &assign_ExcST7B_oelin)); - dynamic_switch.insert(std::make_pair("cim:ExcST7B.tb", &assign_ExcST7B_tb)); - dynamic_switch.insert(std::make_pair("cim:ExcST7B.tc", &assign_ExcST7B_tc)); - dynamic_switch.insert(std::make_pair("cim:ExcST7B.tf", &assign_ExcST7B_tf)); - dynamic_switch.insert(std::make_pair("cim:ExcST7B.tg", &assign_ExcST7B_tg)); - dynamic_switch.insert(std::make_pair("cim:ExcST7B.tia", &assign_ExcST7B_tia)); - dynamic_switch.insert(std::make_pair("cim:ExcST7B.ts", &assign_ExcST7B_ts)); - dynamic_switch.insert(std::make_pair("cim:ExcST7B.uelin", &assign_ExcST7B_uelin)); - dynamic_switch.insert(std::make_pair("cim:ExcST7B.vmax", &assign_ExcST7B_vmax)); - dynamic_switch.insert(std::make_pair("cim:ExcST7B.vmin", &assign_ExcST7B_vmin)); - dynamic_switch.insert(std::make_pair("cim:ExcST7B.vrmax", &assign_ExcST7B_vrmax)); - dynamic_switch.insert(std::make_pair("cim:ExcST7B.vrmin", &assign_ExcST7B_vrmin)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEDC1A.efd1", &assign_ExcIEEEDC1A_efd1)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEDC1A.efd2", &assign_ExcIEEEDC1A_efd2)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEDC1A.exclim", &assign_ExcIEEEDC1A_exclim)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEDC1A.ka", &assign_ExcIEEEDC1A_ka)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEDC1A.ke", &assign_ExcIEEEDC1A_ke)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEDC1A.kf", &assign_ExcIEEEDC1A_kf)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEDC1A.seefd1", &assign_ExcIEEEDC1A_seefd1)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEDC1A.seefd2", &assign_ExcIEEEDC1A_seefd2)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEDC1A.ta", &assign_ExcIEEEDC1A_ta)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEDC1A.tb", &assign_ExcIEEEDC1A_tb)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEDC1A.tc", &assign_ExcIEEEDC1A_tc)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEDC1A.te", &assign_ExcIEEEDC1A_te)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEDC1A.tf", &assign_ExcIEEEDC1A_tf)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEDC1A.uelin", &assign_ExcIEEEDC1A_uelin)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEDC1A.vrmax", &assign_ExcIEEEDC1A_vrmax)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEDC1A.vrmin", &assign_ExcIEEEDC1A_vrmin)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC4A.ka", &assign_ExcIEEEAC4A_ka)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC4A.kc", &assign_ExcIEEEAC4A_kc)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC4A.ta", &assign_ExcIEEEAC4A_ta)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC4A.tb", &assign_ExcIEEEAC4A_tb)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC4A.tc", &assign_ExcIEEEAC4A_tc)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC4A.vimax", &assign_ExcIEEEAC4A_vimax)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC4A.vimin", &assign_ExcIEEEAC4A_vimin)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC4A.vrmax", &assign_ExcIEEEAC4A_vrmax)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC4A.vrmin", &assign_ExcIEEEAC4A_vrmin)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST4B.kc", &assign_ExcIEEEST4B_kc)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST4B.kg", &assign_ExcIEEEST4B_kg)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST4B.ki", &assign_ExcIEEEST4B_ki)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST4B.kim", &assign_ExcIEEEST4B_kim)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST4B.kir", &assign_ExcIEEEST4B_kir)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST4B.kp", &assign_ExcIEEEST4B_kp)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST4B.kpm", &assign_ExcIEEEST4B_kpm)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST4B.kpr", &assign_ExcIEEEST4B_kpr)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST4B.ta", &assign_ExcIEEEST4B_ta)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST4B.thetap", &assign_ExcIEEEST4B_thetap)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST4B.vbmax", &assign_ExcIEEEST4B_vbmax)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST4B.vmmax", &assign_ExcIEEEST4B_vmmax)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST4B.vmmin", &assign_ExcIEEEST4B_vmmin)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST4B.vrmax", &assign_ExcIEEEST4B_vrmax)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST4B.vrmin", &assign_ExcIEEEST4B_vrmin)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST4B.xl", &assign_ExcIEEEST4B_xl)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC2A.ka", &assign_ExcIEEEAC2A_ka)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC2A.kb", &assign_ExcIEEEAC2A_kb)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC2A.kc", &assign_ExcIEEEAC2A_kc)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC2A.kd", &assign_ExcIEEEAC2A_kd)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC2A.ke", &assign_ExcIEEEAC2A_ke)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC2A.kf", &assign_ExcIEEEAC2A_kf)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC2A.kh", &assign_ExcIEEEAC2A_kh)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC2A.seve1", &assign_ExcIEEEAC2A_seve1)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC2A.seve2", &assign_ExcIEEEAC2A_seve2)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC2A.ta", &assign_ExcIEEEAC2A_ta)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC2A.tb", &assign_ExcIEEEAC2A_tb)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC2A.tc", &assign_ExcIEEEAC2A_tc)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC2A.te", &assign_ExcIEEEAC2A_te)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC2A.tf", &assign_ExcIEEEAC2A_tf)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC2A.vamax", &assign_ExcIEEEAC2A_vamax)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC2A.vamin", &assign_ExcIEEEAC2A_vamin)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC2A.ve1", &assign_ExcIEEEAC2A_ve1)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC2A.ve2", &assign_ExcIEEEAC2A_ve2)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC2A.vfemax", &assign_ExcIEEEAC2A_vfemax)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC2A.vrmax", &assign_ExcIEEEAC2A_vrmax)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC2A.vrmin", &assign_ExcIEEEAC2A_vrmin)); - dynamic_switch.insert(std::make_pair("cim:ExcBBC.efdmax", &assign_ExcBBC_efdmax)); - dynamic_switch.insert(std::make_pair("cim:ExcBBC.efdmin", &assign_ExcBBC_efdmin)); - dynamic_switch.insert(std::make_pair("cim:ExcBBC.k", &assign_ExcBBC_k)); - dynamic_switch.insert(std::make_pair("cim:ExcBBC.routing_selector", &assign_ExcBBC_routing_selector)); - dynamic_switch.insert(std::make_pair("cim:ExcBBC.t1", &assign_ExcBBC_t1)); - dynamic_switch.insert(std::make_pair("cim:ExcBBC.t2", &assign_ExcBBC_t2)); - dynamic_switch.insert(std::make_pair("cim:ExcBBC.t3", &assign_ExcBBC_t3)); - dynamic_switch.insert(std::make_pair("cim:ExcBBC.t4", &assign_ExcBBC_t4)); - dynamic_switch.insert(std::make_pair("cim:ExcBBC.vrmax", &assign_ExcBBC_vrmax)); - dynamic_switch.insert(std::make_pair("cim:ExcBBC.vrmin", &assign_ExcBBC_vrmin)); - dynamic_switch.insert(std::make_pair("cim:ExcBBC.xe", &assign_ExcBBC_xe)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR2.e1", &assign_ExcAVR2_e1)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR2.e2", &assign_ExcAVR2_e2)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR2.ka", &assign_ExcAVR2_ka)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR2.kf", &assign_ExcAVR2_kf)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR2.se1", &assign_ExcAVR2_se1)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR2.se2", &assign_ExcAVR2_se2)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR2.ta", &assign_ExcAVR2_ta)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR2.tb", &assign_ExcAVR2_tb)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR2.te", &assign_ExcAVR2_te)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR2.tf1", &assign_ExcAVR2_tf1)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR2.tf2", &assign_ExcAVR2_tf2)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR2.vrmn", &assign_ExcAVR2_vrmn)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR2.vrmx", &assign_ExcAVR2_vrmx)); - dynamic_switch.insert(std::make_pair("cim:ExcAC5A.a", &assign_ExcAC5A_a)); - dynamic_switch.insert(std::make_pair("cim:ExcAC5A.efd1", &assign_ExcAC5A_efd1)); - dynamic_switch.insert(std::make_pair("cim:ExcAC5A.efd2", &assign_ExcAC5A_efd2)); - dynamic_switch.insert(std::make_pair("cim:ExcAC5A.ka", &assign_ExcAC5A_ka)); - dynamic_switch.insert(std::make_pair("cim:ExcAC5A.ke", &assign_ExcAC5A_ke)); - dynamic_switch.insert(std::make_pair("cim:ExcAC5A.kf", &assign_ExcAC5A_kf)); - dynamic_switch.insert(std::make_pair("cim:ExcAC5A.ks", &assign_ExcAC5A_ks)); - dynamic_switch.insert(std::make_pair("cim:ExcAC5A.seefd1", &assign_ExcAC5A_seefd1)); - dynamic_switch.insert(std::make_pair("cim:ExcAC5A.seefd2", &assign_ExcAC5A_seefd2)); - dynamic_switch.insert(std::make_pair("cim:ExcAC5A.ta", &assign_ExcAC5A_ta)); - dynamic_switch.insert(std::make_pair("cim:ExcAC5A.tb", &assign_ExcAC5A_tb)); - dynamic_switch.insert(std::make_pair("cim:ExcAC5A.tc", &assign_ExcAC5A_tc)); - dynamic_switch.insert(std::make_pair("cim:ExcAC5A.te", &assign_ExcAC5A_te)); - dynamic_switch.insert(std::make_pair("cim:ExcAC5A.tf1", &assign_ExcAC5A_tf1)); - dynamic_switch.insert(std::make_pair("cim:ExcAC5A.tf2", &assign_ExcAC5A_tf2)); - dynamic_switch.insert(std::make_pair("cim:ExcAC5A.tf3", &assign_ExcAC5A_tf3)); - dynamic_switch.insert(std::make_pair("cim:ExcAC5A.vrmax", &assign_ExcAC5A_vrmax)); - dynamic_switch.insert(std::make_pair("cim:ExcAC5A.vrmin", &assign_ExcAC5A_vrmin)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR5.ka", &assign_ExcAVR5_ka)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR5.rex", &assign_ExcAVR5_rex)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR5.ta", &assign_ExcAVR5_ta)); - dynamic_switch.insert(std::make_pair("cim:ExcHU.ae", &assign_ExcHU_ae)); - dynamic_switch.insert(std::make_pair("cim:ExcHU.ai", &assign_ExcHU_ai)); - dynamic_switch.insert(std::make_pair("cim:ExcHU.atr", &assign_ExcHU_atr)); - dynamic_switch.insert(std::make_pair("cim:ExcHU.emax", &assign_ExcHU_emax)); - dynamic_switch.insert(std::make_pair("cim:ExcHU.emin", &assign_ExcHU_emin)); - dynamic_switch.insert(std::make_pair("cim:ExcHU.imax", &assign_ExcHU_imax)); - dynamic_switch.insert(std::make_pair("cim:ExcHU.imin", &assign_ExcHU_imin)); - dynamic_switch.insert(std::make_pair("cim:ExcHU.ke", &assign_ExcHU_ke)); - dynamic_switch.insert(std::make_pair("cim:ExcHU.ki", &assign_ExcHU_ki)); - dynamic_switch.insert(std::make_pair("cim:ExcHU.te", &assign_ExcHU_te)); - dynamic_switch.insert(std::make_pair("cim:ExcHU.ti", &assign_ExcHU_ti)); - dynamic_switch.insert(std::make_pair("cim:ExcHU.tr", &assign_ExcHU_tr)); - dynamic_switch.insert(std::make_pair("cim:ExcANS.blint", &assign_ExcANS_blint)); - dynamic_switch.insert(std::make_pair("cim:ExcANS.ifmn", &assign_ExcANS_ifmn)); - dynamic_switch.insert(std::make_pair("cim:ExcANS.ifmx", &assign_ExcANS_ifmx)); - dynamic_switch.insert(std::make_pair("cim:ExcANS.k2", &assign_ExcANS_k2)); - dynamic_switch.insert(std::make_pair("cim:ExcANS.k3", &assign_ExcANS_k3)); - dynamic_switch.insert(std::make_pair("cim:ExcANS.kce", &assign_ExcANS_kce)); - dynamic_switch.insert(std::make_pair("cim:ExcANS.krvecc", &assign_ExcANS_krvecc)); - dynamic_switch.insert(std::make_pair("cim:ExcANS.kvfif", &assign_ExcANS_kvfif)); - dynamic_switch.insert(std::make_pair("cim:ExcANS.t1", &assign_ExcANS_t1)); - dynamic_switch.insert(std::make_pair("cim:ExcANS.t2", &assign_ExcANS_t2)); - dynamic_switch.insert(std::make_pair("cim:ExcANS.t3", &assign_ExcANS_t3)); - dynamic_switch.insert(std::make_pair("cim:ExcANS.tb", &assign_ExcANS_tb)); - dynamic_switch.insert(std::make_pair("cim:ExcANS.vrmn", &assign_ExcANS_vrmn)); - dynamic_switch.insert(std::make_pair("cim:ExcANS.vrmx", &assign_ExcANS_vrmx)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST3A.ka", &assign_ExcIEEEST3A_ka)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST3A.kc", &assign_ExcIEEEST3A_kc)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST3A.kg", &assign_ExcIEEEST3A_kg)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST3A.ki", &assign_ExcIEEEST3A_ki)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST3A.km", &assign_ExcIEEEST3A_km)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST3A.kp", &assign_ExcIEEEST3A_kp)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST3A.ta", &assign_ExcIEEEST3A_ta)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST3A.tb", &assign_ExcIEEEST3A_tb)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST3A.tc", &assign_ExcIEEEST3A_tc)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST3A.thetap", &assign_ExcIEEEST3A_thetap)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST3A.tm", &assign_ExcIEEEST3A_tm)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST3A.vbmax", &assign_ExcIEEEST3A_vbmax)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST3A.vgmax", &assign_ExcIEEEST3A_vgmax)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST3A.vimax", &assign_ExcIEEEST3A_vimax)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST3A.vimin", &assign_ExcIEEEST3A_vimin)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST3A.vmmax", &assign_ExcIEEEST3A_vmmax)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST3A.vmmin", &assign_ExcIEEEST3A_vmmin)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST3A.vrmax", &assign_ExcIEEEST3A_vrmax)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST3A.vrmin", &assign_ExcIEEEST3A_vrmin)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST3A.xl", &assign_ExcIEEEST3A_xl)); - dynamic_switch.insert(std::make_pair("cim:ExcAC4A.ka", &assign_ExcAC4A_ka)); - dynamic_switch.insert(std::make_pair("cim:ExcAC4A.kc", &assign_ExcAC4A_kc)); - dynamic_switch.insert(std::make_pair("cim:ExcAC4A.ta", &assign_ExcAC4A_ta)); - dynamic_switch.insert(std::make_pair("cim:ExcAC4A.tb", &assign_ExcAC4A_tb)); - dynamic_switch.insert(std::make_pair("cim:ExcAC4A.tc", &assign_ExcAC4A_tc)); - dynamic_switch.insert(std::make_pair("cim:ExcAC4A.vimax", &assign_ExcAC4A_vimax)); - dynamic_switch.insert(std::make_pair("cim:ExcAC4A.vimin", &assign_ExcAC4A_vimin)); - dynamic_switch.insert(std::make_pair("cim:ExcAC4A.vrmax", &assign_ExcAC4A_vrmax)); - dynamic_switch.insert(std::make_pair("cim:ExcAC4A.vrmin", &assign_ExcAC4A_vrmin)); - dynamic_switch.insert(std::make_pair("cim:ExcDC3A1.exclim", &assign_ExcDC3A1_exclim)); - dynamic_switch.insert(std::make_pair("cim:ExcDC3A1.ka", &assign_ExcDC3A1_ka)); - dynamic_switch.insert(std::make_pair("cim:ExcDC3A1.ke", &assign_ExcDC3A1_ke)); - dynamic_switch.insert(std::make_pair("cim:ExcDC3A1.kf", &assign_ExcDC3A1_kf)); - dynamic_switch.insert(std::make_pair("cim:ExcDC3A1.ki", &assign_ExcDC3A1_ki)); - dynamic_switch.insert(std::make_pair("cim:ExcDC3A1.kp", &assign_ExcDC3A1_kp)); - dynamic_switch.insert(std::make_pair("cim:ExcDC3A1.ta", &assign_ExcDC3A1_ta)); - dynamic_switch.insert(std::make_pair("cim:ExcDC3A1.te", &assign_ExcDC3A1_te)); - dynamic_switch.insert(std::make_pair("cim:ExcDC3A1.tf", &assign_ExcDC3A1_tf)); - dynamic_switch.insert(std::make_pair("cim:ExcDC3A1.vb1max", &assign_ExcDC3A1_vb1max)); - dynamic_switch.insert(std::make_pair("cim:ExcDC3A1.vblim", &assign_ExcDC3A1_vblim)); - dynamic_switch.insert(std::make_pair("cim:ExcDC3A1.vbmax", &assign_ExcDC3A1_vbmax)); - dynamic_switch.insert(std::make_pair("cim:ExcDC3A1.vrmax", &assign_ExcDC3A1_vrmax)); - dynamic_switch.insert(std::make_pair("cim:ExcDC3A1.vrmin", &assign_ExcDC3A1_vrmin)); - dynamic_switch.insert(std::make_pair("cim:ExcAC1A.hvlvgates", &assign_ExcAC1A_hvlvgates)); - dynamic_switch.insert(std::make_pair("cim:ExcAC1A.ka", &assign_ExcAC1A_ka)); - dynamic_switch.insert(std::make_pair("cim:ExcAC1A.kc", &assign_ExcAC1A_kc)); - dynamic_switch.insert(std::make_pair("cim:ExcAC1A.kd", &assign_ExcAC1A_kd)); - dynamic_switch.insert(std::make_pair("cim:ExcAC1A.ke", &assign_ExcAC1A_ke)); - dynamic_switch.insert(std::make_pair("cim:ExcAC1A.kf", &assign_ExcAC1A_kf)); - dynamic_switch.insert(std::make_pair("cim:ExcAC1A.kf1", &assign_ExcAC1A_kf1)); - dynamic_switch.insert(std::make_pair("cim:ExcAC1A.kf2", &assign_ExcAC1A_kf2)); - dynamic_switch.insert(std::make_pair("cim:ExcAC1A.ks", &assign_ExcAC1A_ks)); - dynamic_switch.insert(std::make_pair("cim:ExcAC1A.seve1", &assign_ExcAC1A_seve1)); - dynamic_switch.insert(std::make_pair("cim:ExcAC1A.seve2", &assign_ExcAC1A_seve2)); - dynamic_switch.insert(std::make_pair("cim:ExcAC1A.ta", &assign_ExcAC1A_ta)); - dynamic_switch.insert(std::make_pair("cim:ExcAC1A.tb", &assign_ExcAC1A_tb)); - dynamic_switch.insert(std::make_pair("cim:ExcAC1A.tc", &assign_ExcAC1A_tc)); - dynamic_switch.insert(std::make_pair("cim:ExcAC1A.te", &assign_ExcAC1A_te)); - dynamic_switch.insert(std::make_pair("cim:ExcAC1A.tf", &assign_ExcAC1A_tf)); - dynamic_switch.insert(std::make_pair("cim:ExcAC1A.vamax", &assign_ExcAC1A_vamax)); - dynamic_switch.insert(std::make_pair("cim:ExcAC1A.vamin", &assign_ExcAC1A_vamin)); - dynamic_switch.insert(std::make_pair("cim:ExcAC1A.ve1", &assign_ExcAC1A_ve1)); - dynamic_switch.insert(std::make_pair("cim:ExcAC1A.ve2", &assign_ExcAC1A_ve2)); - dynamic_switch.insert(std::make_pair("cim:ExcAC1A.vrmax", &assign_ExcAC1A_vrmax)); - dynamic_switch.insert(std::make_pair("cim:ExcAC1A.vrmin", &assign_ExcAC1A_vrmin)); - dynamic_switch.insert(std::make_pair("cim:ExcDC3A.edfmax", &assign_ExcDC3A_edfmax)); - dynamic_switch.insert(std::make_pair("cim:ExcDC3A.efd1", &assign_ExcDC3A_efd1)); - dynamic_switch.insert(std::make_pair("cim:ExcDC3A.efd2", &assign_ExcDC3A_efd2)); - dynamic_switch.insert(std::make_pair("cim:ExcDC3A.efdlim", &assign_ExcDC3A_efdlim)); - dynamic_switch.insert(std::make_pair("cim:ExcDC3A.efdmin", &assign_ExcDC3A_efdmin)); - dynamic_switch.insert(std::make_pair("cim:ExcDC3A.exclim", &assign_ExcDC3A_exclim)); - dynamic_switch.insert(std::make_pair("cim:ExcDC3A.ke", &assign_ExcDC3A_ke)); - dynamic_switch.insert(std::make_pair("cim:ExcDC3A.kr", &assign_ExcDC3A_kr)); - dynamic_switch.insert(std::make_pair("cim:ExcDC3A.ks", &assign_ExcDC3A_ks)); - dynamic_switch.insert(std::make_pair("cim:ExcDC3A.kv", &assign_ExcDC3A_kv)); - dynamic_switch.insert(std::make_pair("cim:ExcDC3A.seefd1", &assign_ExcDC3A_seefd1)); - dynamic_switch.insert(std::make_pair("cim:ExcDC3A.seefd2", &assign_ExcDC3A_seefd2)); - dynamic_switch.insert(std::make_pair("cim:ExcDC3A.te", &assign_ExcDC3A_te)); - dynamic_switch.insert(std::make_pair("cim:ExcDC3A.trh", &assign_ExcDC3A_trh)); - dynamic_switch.insert(std::make_pair("cim:ExcDC3A.vrmax", &assign_ExcDC3A_vrmax)); - dynamic_switch.insert(std::make_pair("cim:ExcDC3A.vrmin", &assign_ExcDC3A_vrmin)); - dynamic_switch.insert(std::make_pair("cim:ExcAC3A.efdn", &assign_ExcAC3A_efdn)); - dynamic_switch.insert(std::make_pair("cim:ExcAC3A.ka", &assign_ExcAC3A_ka)); - dynamic_switch.insert(std::make_pair("cim:ExcAC3A.kc", &assign_ExcAC3A_kc)); - dynamic_switch.insert(std::make_pair("cim:ExcAC3A.kd", &assign_ExcAC3A_kd)); - dynamic_switch.insert(std::make_pair("cim:ExcAC3A.ke", &assign_ExcAC3A_ke)); - dynamic_switch.insert(std::make_pair("cim:ExcAC3A.kf", &assign_ExcAC3A_kf)); - dynamic_switch.insert(std::make_pair("cim:ExcAC3A.kf1", &assign_ExcAC3A_kf1)); - dynamic_switch.insert(std::make_pair("cim:ExcAC3A.kf2", &assign_ExcAC3A_kf2)); - dynamic_switch.insert(std::make_pair("cim:ExcAC3A.klv", &assign_ExcAC3A_klv)); - dynamic_switch.insert(std::make_pair("cim:ExcAC3A.kn", &assign_ExcAC3A_kn)); - dynamic_switch.insert(std::make_pair("cim:ExcAC3A.kr", &assign_ExcAC3A_kr)); - dynamic_switch.insert(std::make_pair("cim:ExcAC3A.ks", &assign_ExcAC3A_ks)); - dynamic_switch.insert(std::make_pair("cim:ExcAC3A.seve1", &assign_ExcAC3A_seve1)); - dynamic_switch.insert(std::make_pair("cim:ExcAC3A.seve2", &assign_ExcAC3A_seve2)); - dynamic_switch.insert(std::make_pair("cim:ExcAC3A.ta", &assign_ExcAC3A_ta)); - dynamic_switch.insert(std::make_pair("cim:ExcAC3A.tb", &assign_ExcAC3A_tb)); - dynamic_switch.insert(std::make_pair("cim:ExcAC3A.tc", &assign_ExcAC3A_tc)); - dynamic_switch.insert(std::make_pair("cim:ExcAC3A.te", &assign_ExcAC3A_te)); - dynamic_switch.insert(std::make_pair("cim:ExcAC3A.tf", &assign_ExcAC3A_tf)); - dynamic_switch.insert(std::make_pair("cim:ExcAC3A.vamax", &assign_ExcAC3A_vamax)); - dynamic_switch.insert(std::make_pair("cim:ExcAC3A.vamin", &assign_ExcAC3A_vamin)); - dynamic_switch.insert(std::make_pair("cim:ExcAC3A.ve1", &assign_ExcAC3A_ve1)); - dynamic_switch.insert(std::make_pair("cim:ExcAC3A.ve2", &assign_ExcAC3A_ve2)); - dynamic_switch.insert(std::make_pair("cim:ExcAC3A.vemin", &assign_ExcAC3A_vemin)); - dynamic_switch.insert(std::make_pair("cim:ExcAC3A.vfemax", &assign_ExcAC3A_vfemax)); - dynamic_switch.insert(std::make_pair("cim:ExcAC3A.vlv", &assign_ExcAC3A_vlv)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEDC2A.efd1", &assign_ExcIEEEDC2A_efd1)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEDC2A.efd2", &assign_ExcIEEEDC2A_efd2)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEDC2A.exclim", &assign_ExcIEEEDC2A_exclim)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEDC2A.ka", &assign_ExcIEEEDC2A_ka)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEDC2A.ke", &assign_ExcIEEEDC2A_ke)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEDC2A.kf", &assign_ExcIEEEDC2A_kf)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEDC2A.seefd1", &assign_ExcIEEEDC2A_seefd1)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEDC2A.seefd2", &assign_ExcIEEEDC2A_seefd2)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEDC2A.ta", &assign_ExcIEEEDC2A_ta)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEDC2A.tb", &assign_ExcIEEEDC2A_tb)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEDC2A.tc", &assign_ExcIEEEDC2A_tc)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEDC2A.te", &assign_ExcIEEEDC2A_te)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEDC2A.tf", &assign_ExcIEEEDC2A_tf)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEDC2A.uelin", &assign_ExcIEEEDC2A_uelin)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEDC2A.vrmax", &assign_ExcIEEEDC2A_vrmax)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEDC2A.vrmin", &assign_ExcIEEEDC2A_vrmin)); - dynamic_switch.insert(std::make_pair("cim:ExcST2A.efdmax", &assign_ExcST2A_efdmax)); - dynamic_switch.insert(std::make_pair("cim:ExcST2A.ka", &assign_ExcST2A_ka)); - dynamic_switch.insert(std::make_pair("cim:ExcST2A.kc", &assign_ExcST2A_kc)); - dynamic_switch.insert(std::make_pair("cim:ExcST2A.ke", &assign_ExcST2A_ke)); - dynamic_switch.insert(std::make_pair("cim:ExcST2A.kf", &assign_ExcST2A_kf)); - dynamic_switch.insert(std::make_pair("cim:ExcST2A.ki", &assign_ExcST2A_ki)); - dynamic_switch.insert(std::make_pair("cim:ExcST2A.kp", &assign_ExcST2A_kp)); - dynamic_switch.insert(std::make_pair("cim:ExcST2A.ta", &assign_ExcST2A_ta)); - dynamic_switch.insert(std::make_pair("cim:ExcST2A.tb", &assign_ExcST2A_tb)); - dynamic_switch.insert(std::make_pair("cim:ExcST2A.tc", &assign_ExcST2A_tc)); - dynamic_switch.insert(std::make_pair("cim:ExcST2A.te", &assign_ExcST2A_te)); - dynamic_switch.insert(std::make_pair("cim:ExcST2A.tf", &assign_ExcST2A_tf)); - dynamic_switch.insert(std::make_pair("cim:ExcST2A.uelin", &assign_ExcST2A_uelin)); - dynamic_switch.insert(std::make_pair("cim:ExcST2A.vrmax", &assign_ExcST2A_vrmax)); - dynamic_switch.insert(std::make_pair("cim:ExcST2A.vrmin", &assign_ExcST2A_vrmin)); - dynamic_switch.insert(std::make_pair("cim:ExcCZ.efdmax", &assign_ExcCZ_efdmax)); - dynamic_switch.insert(std::make_pair("cim:ExcCZ.efdmin", &assign_ExcCZ_efdmin)); - dynamic_switch.insert(std::make_pair("cim:ExcCZ.ka", &assign_ExcCZ_ka)); - dynamic_switch.insert(std::make_pair("cim:ExcCZ.ke", &assign_ExcCZ_ke)); - dynamic_switch.insert(std::make_pair("cim:ExcCZ.kp", &assign_ExcCZ_kp)); - dynamic_switch.insert(std::make_pair("cim:ExcCZ.ta", &assign_ExcCZ_ta)); - dynamic_switch.insert(std::make_pair("cim:ExcCZ.tc", &assign_ExcCZ_tc)); - dynamic_switch.insert(std::make_pair("cim:ExcCZ.te", &assign_ExcCZ_te)); - dynamic_switch.insert(std::make_pair("cim:ExcCZ.vrmax", &assign_ExcCZ_vrmax)); - dynamic_switch.insert(std::make_pair("cim:ExcCZ.vrmin", &assign_ExcCZ_vrmin)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST1A.ilr", &assign_ExcIEEEST1A_ilr)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST1A.ka", &assign_ExcIEEEST1A_ka)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST1A.kc", &assign_ExcIEEEST1A_kc)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST1A.kf", &assign_ExcIEEEST1A_kf)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST1A.klr", &assign_ExcIEEEST1A_klr)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST1A.pssin", &assign_ExcIEEEST1A_pssin)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST1A.ta", &assign_ExcIEEEST1A_ta)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST1A.tb", &assign_ExcIEEEST1A_tb)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST1A.tb1", &assign_ExcIEEEST1A_tb1)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST1A.tc", &assign_ExcIEEEST1A_tc)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST1A.tc1", &assign_ExcIEEEST1A_tc1)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST1A.tf", &assign_ExcIEEEST1A_tf)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST1A.uelin", &assign_ExcIEEEST1A_uelin)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST1A.vamax", &assign_ExcIEEEST1A_vamax)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST1A.vamin", &assign_ExcIEEEST1A_vamin)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST1A.vimax", &assign_ExcIEEEST1A_vimax)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST1A.vimin", &assign_ExcIEEEST1A_vimin)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST1A.vrmax", &assign_ExcIEEEST1A_vrmax)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST1A.vrmin", &assign_ExcIEEEST1A_vrmin)); - dynamic_switch.insert(std::make_pair("cim:ExcAC2A.hvgate", &assign_ExcAC2A_hvgate)); - dynamic_switch.insert(std::make_pair("cim:ExcAC2A.ka", &assign_ExcAC2A_ka)); - dynamic_switch.insert(std::make_pair("cim:ExcAC2A.kb", &assign_ExcAC2A_kb)); - dynamic_switch.insert(std::make_pair("cim:ExcAC2A.kb1", &assign_ExcAC2A_kb1)); - dynamic_switch.insert(std::make_pair("cim:ExcAC2A.kc", &assign_ExcAC2A_kc)); - dynamic_switch.insert(std::make_pair("cim:ExcAC2A.kd", &assign_ExcAC2A_kd)); - dynamic_switch.insert(std::make_pair("cim:ExcAC2A.ke", &assign_ExcAC2A_ke)); - dynamic_switch.insert(std::make_pair("cim:ExcAC2A.kf", &assign_ExcAC2A_kf)); - dynamic_switch.insert(std::make_pair("cim:ExcAC2A.kh", &assign_ExcAC2A_kh)); - dynamic_switch.insert(std::make_pair("cim:ExcAC2A.kl", &assign_ExcAC2A_kl)); - dynamic_switch.insert(std::make_pair("cim:ExcAC2A.kl1", &assign_ExcAC2A_kl1)); - dynamic_switch.insert(std::make_pair("cim:ExcAC2A.ks", &assign_ExcAC2A_ks)); - dynamic_switch.insert(std::make_pair("cim:ExcAC2A.lvgate", &assign_ExcAC2A_lvgate)); - dynamic_switch.insert(std::make_pair("cim:ExcAC2A.seve1", &assign_ExcAC2A_seve1)); - dynamic_switch.insert(std::make_pair("cim:ExcAC2A.seve2", &assign_ExcAC2A_seve2)); - dynamic_switch.insert(std::make_pair("cim:ExcAC2A.ta", &assign_ExcAC2A_ta)); - dynamic_switch.insert(std::make_pair("cim:ExcAC2A.tb", &assign_ExcAC2A_tb)); - dynamic_switch.insert(std::make_pair("cim:ExcAC2A.tc", &assign_ExcAC2A_tc)); - dynamic_switch.insert(std::make_pair("cim:ExcAC2A.te", &assign_ExcAC2A_te)); - dynamic_switch.insert(std::make_pair("cim:ExcAC2A.tf", &assign_ExcAC2A_tf)); - dynamic_switch.insert(std::make_pair("cim:ExcAC2A.vamax", &assign_ExcAC2A_vamax)); - dynamic_switch.insert(std::make_pair("cim:ExcAC2A.vamin", &assign_ExcAC2A_vamin)); - dynamic_switch.insert(std::make_pair("cim:ExcAC2A.ve1", &assign_ExcAC2A_ve1)); - dynamic_switch.insert(std::make_pair("cim:ExcAC2A.ve2", &assign_ExcAC2A_ve2)); - dynamic_switch.insert(std::make_pair("cim:ExcAC2A.vfemax", &assign_ExcAC2A_vfemax)); - dynamic_switch.insert(std::make_pair("cim:ExcAC2A.vlr", &assign_ExcAC2A_vlr)); - dynamic_switch.insert(std::make_pair("cim:ExcAC2A.vrmax", &assign_ExcAC2A_vrmax)); - dynamic_switch.insert(std::make_pair("cim:ExcAC2A.vrmin", &assign_ExcAC2A_vrmin)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC8B.ka", &assign_ExcIEEEAC8B_ka)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC8B.kc", &assign_ExcIEEEAC8B_kc)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC8B.kd", &assign_ExcIEEEAC8B_kd)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC8B.kdr", &assign_ExcIEEEAC8B_kdr)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC8B.ke", &assign_ExcIEEEAC8B_ke)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC8B.kir", &assign_ExcIEEEAC8B_kir)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC8B.kpr", &assign_ExcIEEEAC8B_kpr)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC8B.seve1", &assign_ExcIEEEAC8B_seve1)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC8B.seve2", &assign_ExcIEEEAC8B_seve2)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC8B.ta", &assign_ExcIEEEAC8B_ta)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC8B.tdr", &assign_ExcIEEEAC8B_tdr)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC8B.te", &assign_ExcIEEEAC8B_te)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC8B.ve1", &assign_ExcIEEEAC8B_ve1)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC8B.ve2", &assign_ExcIEEEAC8B_ve2)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC8B.vemin", &assign_ExcIEEEAC8B_vemin)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC8B.vfemax", &assign_ExcIEEEAC8B_vfemax)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC8B.vrmax", &assign_ExcIEEEAC8B_vrmax)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC8B.vrmin", &assign_ExcIEEEAC8B_vrmin)); - dynamic_switch.insert(std::make_pair("cim:ExcELIN1.dpnf", &assign_ExcELIN1_dpnf)); - dynamic_switch.insert(std::make_pair("cim:ExcELIN1.efmax", &assign_ExcELIN1_efmax)); - dynamic_switch.insert(std::make_pair("cim:ExcELIN1.efmin", &assign_ExcELIN1_efmin)); - dynamic_switch.insert(std::make_pair("cim:ExcELIN1.ks1", &assign_ExcELIN1_ks1)); - dynamic_switch.insert(std::make_pair("cim:ExcELIN1.ks2", &assign_ExcELIN1_ks2)); - dynamic_switch.insert(std::make_pair("cim:ExcELIN1.smax", &assign_ExcELIN1_smax)); - dynamic_switch.insert(std::make_pair("cim:ExcELIN1.tfi", &assign_ExcELIN1_tfi)); - dynamic_switch.insert(std::make_pair("cim:ExcELIN1.tnu", &assign_ExcELIN1_tnu)); - dynamic_switch.insert(std::make_pair("cim:ExcELIN1.ts1", &assign_ExcELIN1_ts1)); - dynamic_switch.insert(std::make_pair("cim:ExcELIN1.ts2", &assign_ExcELIN1_ts2)); - dynamic_switch.insert(std::make_pair("cim:ExcELIN1.tsw", &assign_ExcELIN1_tsw)); - dynamic_switch.insert(std::make_pair("cim:ExcELIN1.vpi", &assign_ExcELIN1_vpi)); - dynamic_switch.insert(std::make_pair("cim:ExcELIN1.vpnf", &assign_ExcELIN1_vpnf)); - dynamic_switch.insert(std::make_pair("cim:ExcELIN1.vpu", &assign_ExcELIN1_vpu)); - dynamic_switch.insert(std::make_pair("cim:ExcELIN1.xe", &assign_ExcELIN1_xe)); - dynamic_switch.insert(std::make_pair("cim:ExcDC1A.edfmax", &assign_ExcDC1A_edfmax)); - dynamic_switch.insert(std::make_pair("cim:ExcDC1A.efd1", &assign_ExcDC1A_efd1)); - dynamic_switch.insert(std::make_pair("cim:ExcDC1A.efd2", &assign_ExcDC1A_efd2)); - dynamic_switch.insert(std::make_pair("cim:ExcDC1A.efdmin", &assign_ExcDC1A_efdmin)); - dynamic_switch.insert(std::make_pair("cim:ExcDC1A.exclim", &assign_ExcDC1A_exclim)); - dynamic_switch.insert(std::make_pair("cim:ExcDC1A.ka", &assign_ExcDC1A_ka)); - dynamic_switch.insert(std::make_pair("cim:ExcDC1A.ke", &assign_ExcDC1A_ke)); - dynamic_switch.insert(std::make_pair("cim:ExcDC1A.kf", &assign_ExcDC1A_kf)); - dynamic_switch.insert(std::make_pair("cim:ExcDC1A.ks", &assign_ExcDC1A_ks)); - dynamic_switch.insert(std::make_pair("cim:ExcDC1A.seefd1", &assign_ExcDC1A_seefd1)); - dynamic_switch.insert(std::make_pair("cim:ExcDC1A.seefd2", &assign_ExcDC1A_seefd2)); - dynamic_switch.insert(std::make_pair("cim:ExcDC1A.ta", &assign_ExcDC1A_ta)); - dynamic_switch.insert(std::make_pair("cim:ExcDC1A.tb", &assign_ExcDC1A_tb)); - dynamic_switch.insert(std::make_pair("cim:ExcDC1A.tc", &assign_ExcDC1A_tc)); - dynamic_switch.insert(std::make_pair("cim:ExcDC1A.te", &assign_ExcDC1A_te)); - dynamic_switch.insert(std::make_pair("cim:ExcDC1A.tf", &assign_ExcDC1A_tf)); - dynamic_switch.insert(std::make_pair("cim:ExcDC1A.vrmax", &assign_ExcDC1A_vrmax)); - dynamic_switch.insert(std::make_pair("cim:ExcDC1A.vrmin", &assign_ExcDC1A_vrmin)); - dynamic_switch.insert(std::make_pair("cim:ExcSCRX.cswitch", &assign_ExcSCRX_cswitch)); - dynamic_switch.insert(std::make_pair("cim:ExcSCRX.emax", &assign_ExcSCRX_emax)); - dynamic_switch.insert(std::make_pair("cim:ExcSCRX.emin", &assign_ExcSCRX_emin)); - dynamic_switch.insert(std::make_pair("cim:ExcSCRX.k", &assign_ExcSCRX_k)); - dynamic_switch.insert(std::make_pair("cim:ExcSCRX.rcrfd", &assign_ExcSCRX_rcrfd)); - dynamic_switch.insert(std::make_pair("cim:ExcSCRX.tatb", &assign_ExcSCRX_tatb)); - dynamic_switch.insert(std::make_pair("cim:ExcSCRX.tb", &assign_ExcSCRX_tb)); - dynamic_switch.insert(std::make_pair("cim:ExcSCRX.te", &assign_ExcSCRX_te)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEDC3A.efd1", &assign_ExcIEEEDC3A_efd1)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEDC3A.efd2", &assign_ExcIEEEDC3A_efd2)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEDC3A.exclim", &assign_ExcIEEEDC3A_exclim)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEDC3A.ke", &assign_ExcIEEEDC3A_ke)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEDC3A.kv", &assign_ExcIEEEDC3A_kv)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEDC3A.seefd1", &assign_ExcIEEEDC3A_seefd1)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEDC3A.seefd2", &assign_ExcIEEEDC3A_seefd2)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEDC3A.te", &assign_ExcIEEEDC3A_te)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEDC3A.trh", &assign_ExcIEEEDC3A_trh)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEDC3A.vrmax", &assign_ExcIEEEDC3A_vrmax)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEDC3A.vrmin", &assign_ExcIEEEDC3A_vrmin)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC6A.ka", &assign_ExcIEEEAC6A_ka)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC6A.kc", &assign_ExcIEEEAC6A_kc)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC6A.kd", &assign_ExcIEEEAC6A_kd)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC6A.ke", &assign_ExcIEEEAC6A_ke)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC6A.kh", &assign_ExcIEEEAC6A_kh)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC6A.seve1", &assign_ExcIEEEAC6A_seve1)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC6A.seve2", &assign_ExcIEEEAC6A_seve2)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC6A.ta", &assign_ExcIEEEAC6A_ta)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC6A.tb", &assign_ExcIEEEAC6A_tb)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC6A.tc", &assign_ExcIEEEAC6A_tc)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC6A.te", &assign_ExcIEEEAC6A_te)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC6A.th", &assign_ExcIEEEAC6A_th)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC6A.tj", &assign_ExcIEEEAC6A_tj)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC6A.tk", &assign_ExcIEEEAC6A_tk)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC6A.vamax", &assign_ExcIEEEAC6A_vamax)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC6A.vamin", &assign_ExcIEEEAC6A_vamin)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC6A.ve1", &assign_ExcIEEEAC6A_ve1)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC6A.ve2", &assign_ExcIEEEAC6A_ve2)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC6A.vfelim", &assign_ExcIEEEAC6A_vfelim)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC6A.vhmax", &assign_ExcIEEEAC6A_vhmax)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC6A.vrmax", &assign_ExcIEEEAC6A_vrmax)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC6A.vrmin", &assign_ExcIEEEAC6A_vrmin)); - dynamic_switch.insert(std::make_pair("cim:ExcELIN2.efdbas", &assign_ExcELIN2_efdbas)); - dynamic_switch.insert(std::make_pair("cim:ExcELIN2.iefmax", &assign_ExcELIN2_iefmax)); - dynamic_switch.insert(std::make_pair("cim:ExcELIN2.iefmax2", &assign_ExcELIN2_iefmax2)); - dynamic_switch.insert(std::make_pair("cim:ExcELIN2.iefmin", &assign_ExcELIN2_iefmin)); - dynamic_switch.insert(std::make_pair("cim:ExcELIN2.k1", &assign_ExcELIN2_k1)); - dynamic_switch.insert(std::make_pair("cim:ExcELIN2.k1ec", &assign_ExcELIN2_k1ec)); - dynamic_switch.insert(std::make_pair("cim:ExcELIN2.k2", &assign_ExcELIN2_k2)); - dynamic_switch.insert(std::make_pair("cim:ExcELIN2.k3", &assign_ExcELIN2_k3)); - dynamic_switch.insert(std::make_pair("cim:ExcELIN2.k4", &assign_ExcELIN2_k4)); - dynamic_switch.insert(std::make_pair("cim:ExcELIN2.kd1", &assign_ExcELIN2_kd1)); - dynamic_switch.insert(std::make_pair("cim:ExcELIN2.ke2", &assign_ExcELIN2_ke2)); - dynamic_switch.insert(std::make_pair("cim:ExcELIN2.ketb", &assign_ExcELIN2_ketb)); - dynamic_switch.insert(std::make_pair("cim:ExcELIN2.pid1max", &assign_ExcELIN2_pid1max)); - dynamic_switch.insert(std::make_pair("cim:ExcELIN2.seve1", &assign_ExcELIN2_seve1)); - dynamic_switch.insert(std::make_pair("cim:ExcELIN2.seve2", &assign_ExcELIN2_seve2)); - dynamic_switch.insert(std::make_pair("cim:ExcELIN2.tb1", &assign_ExcELIN2_tb1)); - dynamic_switch.insert(std::make_pair("cim:ExcELIN2.te", &assign_ExcELIN2_te)); - dynamic_switch.insert(std::make_pair("cim:ExcELIN2.te2", &assign_ExcELIN2_te2)); - dynamic_switch.insert(std::make_pair("cim:ExcELIN2.ti1", &assign_ExcELIN2_ti1)); - dynamic_switch.insert(std::make_pair("cim:ExcELIN2.ti3", &assign_ExcELIN2_ti3)); - dynamic_switch.insert(std::make_pair("cim:ExcELIN2.ti4", &assign_ExcELIN2_ti4)); - dynamic_switch.insert(std::make_pair("cim:ExcELIN2.tr4", &assign_ExcELIN2_tr4)); - dynamic_switch.insert(std::make_pair("cim:ExcELIN2.upmax", &assign_ExcELIN2_upmax)); - dynamic_switch.insert(std::make_pair("cim:ExcELIN2.upmin", &assign_ExcELIN2_upmin)); - dynamic_switch.insert(std::make_pair("cim:ExcELIN2.ve1", &assign_ExcELIN2_ve1)); - dynamic_switch.insert(std::make_pair("cim:ExcELIN2.ve2", &assign_ExcELIN2_ve2)); - dynamic_switch.insert(std::make_pair("cim:ExcELIN2.xp", &assign_ExcELIN2_xp)); - dynamic_switch.insert(std::make_pair("cim:ExcSK.efdmax", &assign_ExcSK_efdmax)); - dynamic_switch.insert(std::make_pair("cim:ExcSK.efdmin", &assign_ExcSK_efdmin)); - dynamic_switch.insert(std::make_pair("cim:ExcSK.emax", &assign_ExcSK_emax)); - dynamic_switch.insert(std::make_pair("cim:ExcSK.emin", &assign_ExcSK_emin)); - dynamic_switch.insert(std::make_pair("cim:ExcSK.k", &assign_ExcSK_k)); - dynamic_switch.insert(std::make_pair("cim:ExcSK.k1", &assign_ExcSK_k1)); - dynamic_switch.insert(std::make_pair("cim:ExcSK.k2", &assign_ExcSK_k2)); - dynamic_switch.insert(std::make_pair("cim:ExcSK.kc", &assign_ExcSK_kc)); - dynamic_switch.insert(std::make_pair("cim:ExcSK.kce", &assign_ExcSK_kce)); - dynamic_switch.insert(std::make_pair("cim:ExcSK.kd", &assign_ExcSK_kd)); - dynamic_switch.insert(std::make_pair("cim:ExcSK.kgob", &assign_ExcSK_kgob)); - dynamic_switch.insert(std::make_pair("cim:ExcSK.kp", &assign_ExcSK_kp)); - dynamic_switch.insert(std::make_pair("cim:ExcSK.kqi", &assign_ExcSK_kqi)); - dynamic_switch.insert(std::make_pair("cim:ExcSK.kqob", &assign_ExcSK_kqob)); - dynamic_switch.insert(std::make_pair("cim:ExcSK.kqp", &assign_ExcSK_kqp)); - dynamic_switch.insert(std::make_pair("cim:ExcSK.nq", &assign_ExcSK_nq)); - dynamic_switch.insert(std::make_pair("cim:ExcSK.qconoff", &assign_ExcSK_qconoff)); - dynamic_switch.insert(std::make_pair("cim:ExcSK.qz", &assign_ExcSK_qz)); - dynamic_switch.insert(std::make_pair("cim:ExcSK.remote", &assign_ExcSK_remote)); - dynamic_switch.insert(std::make_pair("cim:ExcSK.sbase", &assign_ExcSK_sbase)); - dynamic_switch.insert(std::make_pair("cim:ExcSK.tc", &assign_ExcSK_tc)); - dynamic_switch.insert(std::make_pair("cim:ExcSK.te", &assign_ExcSK_te)); - dynamic_switch.insert(std::make_pair("cim:ExcSK.ti", &assign_ExcSK_ti)); - dynamic_switch.insert(std::make_pair("cim:ExcSK.tp", &assign_ExcSK_tp)); - dynamic_switch.insert(std::make_pair("cim:ExcSK.tr", &assign_ExcSK_tr)); - dynamic_switch.insert(std::make_pair("cim:ExcSK.uimax", &assign_ExcSK_uimax)); - dynamic_switch.insert(std::make_pair("cim:ExcSK.uimin", &assign_ExcSK_uimin)); - dynamic_switch.insert(std::make_pair("cim:ExcSK.urmax", &assign_ExcSK_urmax)); - dynamic_switch.insert(std::make_pair("cim:ExcSK.urmin", &assign_ExcSK_urmin)); - dynamic_switch.insert(std::make_pair("cim:ExcSK.vtmax", &assign_ExcSK_vtmax)); - dynamic_switch.insert(std::make_pair("cim:ExcSK.vtmin", &assign_ExcSK_vtmin)); - dynamic_switch.insert(std::make_pair("cim:ExcSK.yp", &assign_ExcSK_yp)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST7B.kh", &assign_ExcIEEEST7B_kh)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST7B.kia", &assign_ExcIEEEST7B_kia)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST7B.kl", &assign_ExcIEEEST7B_kl)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST7B.kpa", &assign_ExcIEEEST7B_kpa)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST7B.oelin", &assign_ExcIEEEST7B_oelin)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST7B.tb", &assign_ExcIEEEST7B_tb)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST7B.tc", &assign_ExcIEEEST7B_tc)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST7B.tf", &assign_ExcIEEEST7B_tf)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST7B.tg", &assign_ExcIEEEST7B_tg)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST7B.tia", &assign_ExcIEEEST7B_tia)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST7B.uelin", &assign_ExcIEEEST7B_uelin)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST7B.vmax", &assign_ExcIEEEST7B_vmax)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST7B.vmin", &assign_ExcIEEEST7B_vmin)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST7B.vrmax", &assign_ExcIEEEST7B_vrmax)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST7B.vrmin", &assign_ExcIEEEST7B_vrmin)); - dynamic_switch.insert(std::make_pair("cim:ExcST1A.ilr", &assign_ExcST1A_ilr)); - dynamic_switch.insert(std::make_pair("cim:ExcST1A.ka", &assign_ExcST1A_ka)); - dynamic_switch.insert(std::make_pair("cim:ExcST1A.kc", &assign_ExcST1A_kc)); - dynamic_switch.insert(std::make_pair("cim:ExcST1A.kf", &assign_ExcST1A_kf)); - dynamic_switch.insert(std::make_pair("cim:ExcST1A.klr", &assign_ExcST1A_klr)); - dynamic_switch.insert(std::make_pair("cim:ExcST1A.ta", &assign_ExcST1A_ta)); - dynamic_switch.insert(std::make_pair("cim:ExcST1A.tb", &assign_ExcST1A_tb)); - dynamic_switch.insert(std::make_pair("cim:ExcST1A.tb1", &assign_ExcST1A_tb1)); - dynamic_switch.insert(std::make_pair("cim:ExcST1A.tc", &assign_ExcST1A_tc)); - dynamic_switch.insert(std::make_pair("cim:ExcST1A.tc1", &assign_ExcST1A_tc1)); - dynamic_switch.insert(std::make_pair("cim:ExcST1A.tf", &assign_ExcST1A_tf)); - dynamic_switch.insert(std::make_pair("cim:ExcST1A.vamax", &assign_ExcST1A_vamax)); - dynamic_switch.insert(std::make_pair("cim:ExcST1A.vamin", &assign_ExcST1A_vamin)); - dynamic_switch.insert(std::make_pair("cim:ExcST1A.vimax", &assign_ExcST1A_vimax)); - dynamic_switch.insert(std::make_pair("cim:ExcST1A.vimin", &assign_ExcST1A_vimin)); - dynamic_switch.insert(std::make_pair("cim:ExcST1A.vrmax", &assign_ExcST1A_vrmax)); - dynamic_switch.insert(std::make_pair("cim:ExcST1A.vrmin", &assign_ExcST1A_vrmin)); - dynamic_switch.insert(std::make_pair("cim:ExcST1A.xe", &assign_ExcST1A_xe)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST6B.ilr", &assign_ExcIEEEST6B_ilr)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST6B.kci", &assign_ExcIEEEST6B_kci)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST6B.kff", &assign_ExcIEEEST6B_kff)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST6B.kg", &assign_ExcIEEEST6B_kg)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST6B.kia", &assign_ExcIEEEST6B_kia)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST6B.klr", &assign_ExcIEEEST6B_klr)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST6B.km", &assign_ExcIEEEST6B_km)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST6B.kpa", &assign_ExcIEEEST6B_kpa)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST6B.oelin", &assign_ExcIEEEST6B_oelin)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST6B.tg", &assign_ExcIEEEST6B_tg)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST6B.vamax", &assign_ExcIEEEST6B_vamax)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST6B.vamin", &assign_ExcIEEEST6B_vamin)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST6B.vrmax", &assign_ExcIEEEST6B_vrmax)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST6B.vrmin", &assign_ExcIEEEST6B_vrmin)); - dynamic_switch.insert(std::make_pair("cim:ExcDC2A.efd1", &assign_ExcDC2A_efd1)); - dynamic_switch.insert(std::make_pair("cim:ExcDC2A.efd2", &assign_ExcDC2A_efd2)); - dynamic_switch.insert(std::make_pair("cim:ExcDC2A.exclim", &assign_ExcDC2A_exclim)); - dynamic_switch.insert(std::make_pair("cim:ExcDC2A.ka", &assign_ExcDC2A_ka)); - dynamic_switch.insert(std::make_pair("cim:ExcDC2A.ke", &assign_ExcDC2A_ke)); - dynamic_switch.insert(std::make_pair("cim:ExcDC2A.kf", &assign_ExcDC2A_kf)); - dynamic_switch.insert(std::make_pair("cim:ExcDC2A.ks", &assign_ExcDC2A_ks)); - dynamic_switch.insert(std::make_pair("cim:ExcDC2A.seefd1", &assign_ExcDC2A_seefd1)); - dynamic_switch.insert(std::make_pair("cim:ExcDC2A.seefd2", &assign_ExcDC2A_seefd2)); - dynamic_switch.insert(std::make_pair("cim:ExcDC2A.ta", &assign_ExcDC2A_ta)); - dynamic_switch.insert(std::make_pair("cim:ExcDC2A.tb", &assign_ExcDC2A_tb)); - dynamic_switch.insert(std::make_pair("cim:ExcDC2A.tc", &assign_ExcDC2A_tc)); - dynamic_switch.insert(std::make_pair("cim:ExcDC2A.te", &assign_ExcDC2A_te)); - dynamic_switch.insert(std::make_pair("cim:ExcDC2A.tf", &assign_ExcDC2A_tf)); - dynamic_switch.insert(std::make_pair("cim:ExcDC2A.tf1", &assign_ExcDC2A_tf1)); - dynamic_switch.insert(std::make_pair("cim:ExcDC2A.vrmax", &assign_ExcDC2A_vrmax)); - dynamic_switch.insert(std::make_pair("cim:ExcDC2A.vrmin", &assign_ExcDC2A_vrmin)); - dynamic_switch.insert(std::make_pair("cim:ExcDC2A.vtlim", &assign_ExcDC2A_vtlim)); - dynamic_switch.insert(std::make_pair("cim:ExcOEX3T.e1", &assign_ExcOEX3T_e1)); - dynamic_switch.insert(std::make_pair("cim:ExcOEX3T.e2", &assign_ExcOEX3T_e2)); - dynamic_switch.insert(std::make_pair("cim:ExcOEX3T.ka", &assign_ExcOEX3T_ka)); - dynamic_switch.insert(std::make_pair("cim:ExcOEX3T.kc", &assign_ExcOEX3T_kc)); - dynamic_switch.insert(std::make_pair("cim:ExcOEX3T.kd", &assign_ExcOEX3T_kd)); - dynamic_switch.insert(std::make_pair("cim:ExcOEX3T.ke", &assign_ExcOEX3T_ke)); - dynamic_switch.insert(std::make_pair("cim:ExcOEX3T.kf", &assign_ExcOEX3T_kf)); - dynamic_switch.insert(std::make_pair("cim:ExcOEX3T.see1", &assign_ExcOEX3T_see1)); - dynamic_switch.insert(std::make_pair("cim:ExcOEX3T.see2", &assign_ExcOEX3T_see2)); - dynamic_switch.insert(std::make_pair("cim:ExcOEX3T.t1", &assign_ExcOEX3T_t1)); - dynamic_switch.insert(std::make_pair("cim:ExcOEX3T.t2", &assign_ExcOEX3T_t2)); - dynamic_switch.insert(std::make_pair("cim:ExcOEX3T.t3", &assign_ExcOEX3T_t3)); - dynamic_switch.insert(std::make_pair("cim:ExcOEX3T.t4", &assign_ExcOEX3T_t4)); - dynamic_switch.insert(std::make_pair("cim:ExcOEX3T.t5", &assign_ExcOEX3T_t5)); - dynamic_switch.insert(std::make_pair("cim:ExcOEX3T.t6", &assign_ExcOEX3T_t6)); - dynamic_switch.insert(std::make_pair("cim:ExcOEX3T.te", &assign_ExcOEX3T_te)); - dynamic_switch.insert(std::make_pair("cim:ExcOEX3T.tf", &assign_ExcOEX3T_tf)); - dynamic_switch.insert(std::make_pair("cim:ExcOEX3T.vrmax", &assign_ExcOEX3T_vrmax)); - dynamic_switch.insert(std::make_pair("cim:ExcOEX3T.vrmin", &assign_ExcOEX3T_vrmin)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST5B.kc", &assign_ExcIEEEST5B_kc)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST5B.kr", &assign_ExcIEEEST5B_kr)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST5B.t1", &assign_ExcIEEEST5B_t1)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST5B.tb1", &assign_ExcIEEEST5B_tb1)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST5B.tb2", &assign_ExcIEEEST5B_tb2)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST5B.tc1", &assign_ExcIEEEST5B_tc1)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST5B.tc2", &assign_ExcIEEEST5B_tc2)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST5B.tob1", &assign_ExcIEEEST5B_tob1)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST5B.tob2", &assign_ExcIEEEST5B_tob2)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST5B.toc1", &assign_ExcIEEEST5B_toc1)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST5B.toc2", &assign_ExcIEEEST5B_toc2)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST5B.tub1", &assign_ExcIEEEST5B_tub1)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST5B.tub2", &assign_ExcIEEEST5B_tub2)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST5B.tuc1", &assign_ExcIEEEST5B_tuc1)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST5B.tuc2", &assign_ExcIEEEST5B_tuc2)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST5B.vrmax", &assign_ExcIEEEST5B_vrmax)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEST5B.vrmin", &assign_ExcIEEEST5B_vrmin)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR4.imul", &assign_ExcAVR4_imul)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR4.ka", &assign_ExcAVR4_ka)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR4.ke", &assign_ExcAVR4_ke)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR4.kif", &assign_ExcAVR4_kif)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR4.t1", &assign_ExcAVR4_t1)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR4.t1if", &assign_ExcAVR4_t1if)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR4.t2", &assign_ExcAVR4_t2)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR4.t3", &assign_ExcAVR4_t3)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR4.t4", &assign_ExcAVR4_t4)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR4.tif", &assign_ExcAVR4_tif)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR4.vfmn", &assign_ExcAVR4_vfmn)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR4.vfmx", &assign_ExcAVR4_vfmx)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR4.vrmn", &assign_ExcAVR4_vrmn)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR4.vrmx", &assign_ExcAVR4_vrmx)); - dynamic_switch.insert(std::make_pair("cim:ExcSEXS.efdmax", &assign_ExcSEXS_efdmax)); - dynamic_switch.insert(std::make_pair("cim:ExcSEXS.efdmin", &assign_ExcSEXS_efdmin)); - dynamic_switch.insert(std::make_pair("cim:ExcSEXS.emax", &assign_ExcSEXS_emax)); - dynamic_switch.insert(std::make_pair("cim:ExcSEXS.emin", &assign_ExcSEXS_emin)); - dynamic_switch.insert(std::make_pair("cim:ExcSEXS.k", &assign_ExcSEXS_k)); - dynamic_switch.insert(std::make_pair("cim:ExcSEXS.kc", &assign_ExcSEXS_kc)); - dynamic_switch.insert(std::make_pair("cim:ExcSEXS.tatb", &assign_ExcSEXS_tatb)); - dynamic_switch.insert(std::make_pair("cim:ExcSEXS.tb", &assign_ExcSEXS_tb)); - dynamic_switch.insert(std::make_pair("cim:ExcSEXS.tc", &assign_ExcSEXS_tc)); - dynamic_switch.insert(std::make_pair("cim:ExcSEXS.te", &assign_ExcSEXS_te)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEDC4B.efd1", &assign_ExcIEEEDC4B_efd1)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEDC4B.efd2", &assign_ExcIEEEDC4B_efd2)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEDC4B.ka", &assign_ExcIEEEDC4B_ka)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEDC4B.kd", &assign_ExcIEEEDC4B_kd)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEDC4B.ke", &assign_ExcIEEEDC4B_ke)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEDC4B.kf", &assign_ExcIEEEDC4B_kf)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEDC4B.ki", &assign_ExcIEEEDC4B_ki)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEDC4B.kp", &assign_ExcIEEEDC4B_kp)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEDC4B.oelin", &assign_ExcIEEEDC4B_oelin)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEDC4B.seefd1", &assign_ExcIEEEDC4B_seefd1)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEDC4B.seefd2", &assign_ExcIEEEDC4B_seefd2)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEDC4B.ta", &assign_ExcIEEEDC4B_ta)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEDC4B.td", &assign_ExcIEEEDC4B_td)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEDC4B.te", &assign_ExcIEEEDC4B_te)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEDC4B.tf", &assign_ExcIEEEDC4B_tf)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEDC4B.uelin", &assign_ExcIEEEDC4B_uelin)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEDC4B.vemin", &assign_ExcIEEEDC4B_vemin)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEDC4B.vrmax", &assign_ExcIEEEDC4B_vrmax)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEDC4B.vrmin", &assign_ExcIEEEDC4B_vrmin)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR7.a1", &assign_ExcAVR7_a1)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR7.a2", &assign_ExcAVR7_a2)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR7.a3", &assign_ExcAVR7_a3)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR7.a4", &assign_ExcAVR7_a4)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR7.a5", &assign_ExcAVR7_a5)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR7.a6", &assign_ExcAVR7_a6)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR7.k1", &assign_ExcAVR7_k1)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR7.k3", &assign_ExcAVR7_k3)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR7.k5", &assign_ExcAVR7_k5)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR7.t1", &assign_ExcAVR7_t1)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR7.t2", &assign_ExcAVR7_t2)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR7.t3", &assign_ExcAVR7_t3)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR7.t4", &assign_ExcAVR7_t4)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR7.t5", &assign_ExcAVR7_t5)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR7.t6", &assign_ExcAVR7_t6)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR7.vmax1", &assign_ExcAVR7_vmax1)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR7.vmax3", &assign_ExcAVR7_vmax3)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR7.vmax5", &assign_ExcAVR7_vmax5)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR7.vmin1", &assign_ExcAVR7_vmin1)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR7.vmin3", &assign_ExcAVR7_vmin3)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR7.vmin5", &assign_ExcAVR7_vmin5)); - dynamic_switch.insert(std::make_pair("cim:ExcPIC.e1", &assign_ExcPIC_e1)); - dynamic_switch.insert(std::make_pair("cim:ExcPIC.e2", &assign_ExcPIC_e2)); - dynamic_switch.insert(std::make_pair("cim:ExcPIC.efdmax", &assign_ExcPIC_efdmax)); - dynamic_switch.insert(std::make_pair("cim:ExcPIC.efdmin", &assign_ExcPIC_efdmin)); - dynamic_switch.insert(std::make_pair("cim:ExcPIC.ka", &assign_ExcPIC_ka)); - dynamic_switch.insert(std::make_pair("cim:ExcPIC.kc", &assign_ExcPIC_kc)); - dynamic_switch.insert(std::make_pair("cim:ExcPIC.ke", &assign_ExcPIC_ke)); - dynamic_switch.insert(std::make_pair("cim:ExcPIC.kf", &assign_ExcPIC_kf)); - dynamic_switch.insert(std::make_pair("cim:ExcPIC.ki", &assign_ExcPIC_ki)); - dynamic_switch.insert(std::make_pair("cim:ExcPIC.kp", &assign_ExcPIC_kp)); - dynamic_switch.insert(std::make_pair("cim:ExcPIC.se1", &assign_ExcPIC_se1)); - dynamic_switch.insert(std::make_pair("cim:ExcPIC.se2", &assign_ExcPIC_se2)); - dynamic_switch.insert(std::make_pair("cim:ExcPIC.ta1", &assign_ExcPIC_ta1)); - dynamic_switch.insert(std::make_pair("cim:ExcPIC.ta2", &assign_ExcPIC_ta2)); - dynamic_switch.insert(std::make_pair("cim:ExcPIC.ta3", &assign_ExcPIC_ta3)); - dynamic_switch.insert(std::make_pair("cim:ExcPIC.ta4", &assign_ExcPIC_ta4)); - dynamic_switch.insert(std::make_pair("cim:ExcPIC.te", &assign_ExcPIC_te)); - dynamic_switch.insert(std::make_pair("cim:ExcPIC.tf1", &assign_ExcPIC_tf1)); - dynamic_switch.insert(std::make_pair("cim:ExcPIC.tf2", &assign_ExcPIC_tf2)); - dynamic_switch.insert(std::make_pair("cim:ExcPIC.vr1", &assign_ExcPIC_vr1)); - dynamic_switch.insert(std::make_pair("cim:ExcPIC.vr2", &assign_ExcPIC_vr2)); - dynamic_switch.insert(std::make_pair("cim:ExcPIC.vrmax", &assign_ExcPIC_vrmax)); - dynamic_switch.insert(std::make_pair("cim:ExcPIC.vrmin", &assign_ExcPIC_vrmin)); - dynamic_switch.insert(std::make_pair("cim:ExcST6B.ilr", &assign_ExcST6B_ilr)); - dynamic_switch.insert(std::make_pair("cim:ExcST6B.k1", &assign_ExcST6B_k1)); - dynamic_switch.insert(std::make_pair("cim:ExcST6B.kcl", &assign_ExcST6B_kcl)); - dynamic_switch.insert(std::make_pair("cim:ExcST6B.kff", &assign_ExcST6B_kff)); - dynamic_switch.insert(std::make_pair("cim:ExcST6B.kg", &assign_ExcST6B_kg)); - dynamic_switch.insert(std::make_pair("cim:ExcST6B.kia", &assign_ExcST6B_kia)); - dynamic_switch.insert(std::make_pair("cim:ExcST6B.klr", &assign_ExcST6B_klr)); - dynamic_switch.insert(std::make_pair("cim:ExcST6B.km", &assign_ExcST6B_km)); - dynamic_switch.insert(std::make_pair("cim:ExcST6B.kpa", &assign_ExcST6B_kpa)); - dynamic_switch.insert(std::make_pair("cim:ExcST6B.kvd", &assign_ExcST6B_kvd)); - dynamic_switch.insert(std::make_pair("cim:ExcST6B.oelin", &assign_ExcST6B_oelin)); - dynamic_switch.insert(std::make_pair("cim:ExcST6B.tg", &assign_ExcST6B_tg)); - dynamic_switch.insert(std::make_pair("cim:ExcST6B.ts", &assign_ExcST6B_ts)); - dynamic_switch.insert(std::make_pair("cim:ExcST6B.tvd", &assign_ExcST6B_tvd)); - dynamic_switch.insert(std::make_pair("cim:ExcST6B.vamax", &assign_ExcST6B_vamax)); - dynamic_switch.insert(std::make_pair("cim:ExcST6B.vamin", &assign_ExcST6B_vamin)); - dynamic_switch.insert(std::make_pair("cim:ExcST6B.vilim", &assign_ExcST6B_vilim)); - dynamic_switch.insert(std::make_pair("cim:ExcST6B.vimax", &assign_ExcST6B_vimax)); - dynamic_switch.insert(std::make_pair("cim:ExcST6B.vimin", &assign_ExcST6B_vimin)); - dynamic_switch.insert(std::make_pair("cim:ExcST6B.vmult", &assign_ExcST6B_vmult)); - dynamic_switch.insert(std::make_pair("cim:ExcST6B.vrmax", &assign_ExcST6B_vrmax)); - dynamic_switch.insert(std::make_pair("cim:ExcST6B.vrmin", &assign_ExcST6B_vrmin)); - dynamic_switch.insert(std::make_pair("cim:ExcST6B.xc", &assign_ExcST6B_xc)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC3A.efdn", &assign_ExcIEEEAC3A_efdn)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC3A.ka", &assign_ExcIEEEAC3A_ka)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC3A.kc", &assign_ExcIEEEAC3A_kc)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC3A.kd", &assign_ExcIEEEAC3A_kd)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC3A.ke", &assign_ExcIEEEAC3A_ke)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC3A.kf", &assign_ExcIEEEAC3A_kf)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC3A.kn", &assign_ExcIEEEAC3A_kn)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC3A.kr", &assign_ExcIEEEAC3A_kr)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC3A.seve1", &assign_ExcIEEEAC3A_seve1)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC3A.seve2", &assign_ExcIEEEAC3A_seve2)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC3A.ta", &assign_ExcIEEEAC3A_ta)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC3A.tb", &assign_ExcIEEEAC3A_tb)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC3A.tc", &assign_ExcIEEEAC3A_tc)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC3A.te", &assign_ExcIEEEAC3A_te)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC3A.tf", &assign_ExcIEEEAC3A_tf)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC3A.vamax", &assign_ExcIEEEAC3A_vamax)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC3A.vamin", &assign_ExcIEEEAC3A_vamin)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC3A.ve1", &assign_ExcIEEEAC3A_ve1)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC3A.ve2", &assign_ExcIEEEAC3A_ve2)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC3A.vemin", &assign_ExcIEEEAC3A_vemin)); - dynamic_switch.insert(std::make_pair("cim:ExcIEEEAC3A.vfemax", &assign_ExcIEEEAC3A_vfemax)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR1.e1", &assign_ExcAVR1_e1)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR1.e2", &assign_ExcAVR1_e2)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR1.ka", &assign_ExcAVR1_ka)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR1.kf", &assign_ExcAVR1_kf)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR1.se1", &assign_ExcAVR1_se1)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR1.se2", &assign_ExcAVR1_se2)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR1.ta", &assign_ExcAVR1_ta)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR1.tb", &assign_ExcAVR1_tb)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR1.te", &assign_ExcAVR1_te)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR1.tf", &assign_ExcAVR1_tf)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR1.vrmn", &assign_ExcAVR1_vrmn)); - dynamic_switch.insert(std::make_pair("cim:ExcAVR1.vrmx", &assign_ExcAVR1_vrmx)); - dynamic_switch.insert(std::make_pair("cim:ExcST3A.efdmax", &assign_ExcST3A_efdmax)); - dynamic_switch.insert(std::make_pair("cim:ExcST3A.kc", &assign_ExcST3A_kc)); - dynamic_switch.insert(std::make_pair("cim:ExcST3A.kg", &assign_ExcST3A_kg)); - dynamic_switch.insert(std::make_pair("cim:ExcST3A.ki", &assign_ExcST3A_ki)); - dynamic_switch.insert(std::make_pair("cim:ExcST3A.kj", &assign_ExcST3A_kj)); - dynamic_switch.insert(std::make_pair("cim:ExcST3A.km", &assign_ExcST3A_km)); - dynamic_switch.insert(std::make_pair("cim:ExcST3A.kp", &assign_ExcST3A_kp)); - dynamic_switch.insert(std::make_pair("cim:ExcST3A.ks", &assign_ExcST3A_ks)); - dynamic_switch.insert(std::make_pair("cim:ExcST3A.ks1", &assign_ExcST3A_ks1)); - dynamic_switch.insert(std::make_pair("cim:ExcST3A.tb", &assign_ExcST3A_tb)); - dynamic_switch.insert(std::make_pair("cim:ExcST3A.tc", &assign_ExcST3A_tc)); - dynamic_switch.insert(std::make_pair("cim:ExcST3A.thetap", &assign_ExcST3A_thetap)); - dynamic_switch.insert(std::make_pair("cim:ExcST3A.tm", &assign_ExcST3A_tm)); - dynamic_switch.insert(std::make_pair("cim:ExcST3A.vbmax", &assign_ExcST3A_vbmax)); - dynamic_switch.insert(std::make_pair("cim:ExcST3A.vgmax", &assign_ExcST3A_vgmax)); - dynamic_switch.insert(std::make_pair("cim:ExcST3A.vimax", &assign_ExcST3A_vimax)); - dynamic_switch.insert(std::make_pair("cim:ExcST3A.vimin", &assign_ExcST3A_vimin)); - dynamic_switch.insert(std::make_pair("cim:ExcST3A.vrmax", &assign_ExcST3A_vrmax)); - dynamic_switch.insert(std::make_pair("cim:ExcST3A.vrmin", &assign_ExcST3A_vrmin)); - dynamic_switch.insert(std::make_pair("cim:ExcST3A.xl", &assign_ExcST3A_xl)); - dynamic_switch.insert(std::make_pair("cim:ExcAC8B.inlim", &assign_ExcAC8B_inlim)); - dynamic_switch.insert(std::make_pair("cim:ExcAC8B.ka", &assign_ExcAC8B_ka)); - dynamic_switch.insert(std::make_pair("cim:ExcAC8B.kc", &assign_ExcAC8B_kc)); - dynamic_switch.insert(std::make_pair("cim:ExcAC8B.kd", &assign_ExcAC8B_kd)); - dynamic_switch.insert(std::make_pair("cim:ExcAC8B.kdr", &assign_ExcAC8B_kdr)); - dynamic_switch.insert(std::make_pair("cim:ExcAC8B.ke", &assign_ExcAC8B_ke)); - dynamic_switch.insert(std::make_pair("cim:ExcAC8B.kir", &assign_ExcAC8B_kir)); - dynamic_switch.insert(std::make_pair("cim:ExcAC8B.kpr", &assign_ExcAC8B_kpr)); - dynamic_switch.insert(std::make_pair("cim:ExcAC8B.ks", &assign_ExcAC8B_ks)); - dynamic_switch.insert(std::make_pair("cim:ExcAC8B.pidlim", &assign_ExcAC8B_pidlim)); - dynamic_switch.insert(std::make_pair("cim:ExcAC8B.seve1", &assign_ExcAC8B_seve1)); - dynamic_switch.insert(std::make_pair("cim:ExcAC8B.seve2", &assign_ExcAC8B_seve2)); - dynamic_switch.insert(std::make_pair("cim:ExcAC8B.ta", &assign_ExcAC8B_ta)); - dynamic_switch.insert(std::make_pair("cim:ExcAC8B.tdr", &assign_ExcAC8B_tdr)); - dynamic_switch.insert(std::make_pair("cim:ExcAC8B.te", &assign_ExcAC8B_te)); - dynamic_switch.insert(std::make_pair("cim:ExcAC8B.telim", &assign_ExcAC8B_telim)); - dynamic_switch.insert(std::make_pair("cim:ExcAC8B.ve1", &assign_ExcAC8B_ve1)); - dynamic_switch.insert(std::make_pair("cim:ExcAC8B.ve2", &assign_ExcAC8B_ve2)); - dynamic_switch.insert(std::make_pair("cim:ExcAC8B.vemin", &assign_ExcAC8B_vemin)); - dynamic_switch.insert(std::make_pair("cim:ExcAC8B.vfemax", &assign_ExcAC8B_vfemax)); - dynamic_switch.insert(std::make_pair("cim:ExcAC8B.vimax", &assign_ExcAC8B_vimax)); - dynamic_switch.insert(std::make_pair("cim:ExcAC8B.vimin", &assign_ExcAC8B_vimin)); - dynamic_switch.insert(std::make_pair("cim:ExcAC8B.vpidmax", &assign_ExcAC8B_vpidmax)); - dynamic_switch.insert(std::make_pair("cim:ExcAC8B.vpidmin", &assign_ExcAC8B_vpidmin)); - dynamic_switch.insert(std::make_pair("cim:ExcAC8B.vrmax", &assign_ExcAC8B_vrmax)); - dynamic_switch.insert(std::make_pair("cim:ExcAC8B.vrmin", &assign_ExcAC8B_vrmin)); - dynamic_switch.insert(std::make_pair("cim:ExcAC8B.vtmult", &assign_ExcAC8B_vtmult)); - dynamic_switch.insert(std::make_pair("cim:ExcAC6A.ka", &assign_ExcAC6A_ka)); - dynamic_switch.insert(std::make_pair("cim:ExcAC6A.kc", &assign_ExcAC6A_kc)); - dynamic_switch.insert(std::make_pair("cim:ExcAC6A.kd", &assign_ExcAC6A_kd)); - dynamic_switch.insert(std::make_pair("cim:ExcAC6A.ke", &assign_ExcAC6A_ke)); - dynamic_switch.insert(std::make_pair("cim:ExcAC6A.kh", &assign_ExcAC6A_kh)); - dynamic_switch.insert(std::make_pair("cim:ExcAC6A.ks", &assign_ExcAC6A_ks)); - dynamic_switch.insert(std::make_pair("cim:ExcAC6A.seve1", &assign_ExcAC6A_seve1)); - dynamic_switch.insert(std::make_pair("cim:ExcAC6A.seve2", &assign_ExcAC6A_seve2)); - dynamic_switch.insert(std::make_pair("cim:ExcAC6A.ta", &assign_ExcAC6A_ta)); - dynamic_switch.insert(std::make_pair("cim:ExcAC6A.tb", &assign_ExcAC6A_tb)); - dynamic_switch.insert(std::make_pair("cim:ExcAC6A.tc", &assign_ExcAC6A_tc)); - dynamic_switch.insert(std::make_pair("cim:ExcAC6A.te", &assign_ExcAC6A_te)); - dynamic_switch.insert(std::make_pair("cim:ExcAC6A.th", &assign_ExcAC6A_th)); - dynamic_switch.insert(std::make_pair("cim:ExcAC6A.tj", &assign_ExcAC6A_tj)); - dynamic_switch.insert(std::make_pair("cim:ExcAC6A.tk", &assign_ExcAC6A_tk)); - dynamic_switch.insert(std::make_pair("cim:ExcAC6A.vamax", &assign_ExcAC6A_vamax)); - dynamic_switch.insert(std::make_pair("cim:ExcAC6A.vamin", &assign_ExcAC6A_vamin)); - dynamic_switch.insert(std::make_pair("cim:ExcAC6A.ve1", &assign_ExcAC6A_ve1)); - dynamic_switch.insert(std::make_pair("cim:ExcAC6A.ve2", &assign_ExcAC6A_ve2)); - dynamic_switch.insert(std::make_pair("cim:ExcAC6A.vfelim", &assign_ExcAC6A_vfelim)); - dynamic_switch.insert(std::make_pair("cim:ExcAC6A.vhmax", &assign_ExcAC6A_vhmax)); - dynamic_switch.insert(std::make_pair("cim:ExcAC6A.vrmax", &assign_ExcAC6A_vrmax)); - dynamic_switch.insert(std::make_pair("cim:ExcAC6A.vrmin", &assign_ExcAC6A_vrmin)); - dynamic_switch.insert(std::make_pair("cim:MechLoad1.a", &assign_MechLoad1_a)); - dynamic_switch.insert(std::make_pair("cim:MechLoad1.b", &assign_MechLoad1_b)); - dynamic_switch.insert(std::make_pair("cim:MechLoad1.d", &assign_MechLoad1_d)); - dynamic_switch.insert(std::make_pair("cim:MechLoad1.e", &assign_MechLoad1_e)); - dynamic_switch.insert(std::make_pair("cim:PFVArType1IEEEPFController.ovex", &assign_PFVArType1IEEEPFController_ovex)); - dynamic_switch.insert(std::make_pair("cim:PFVArType1IEEEPFController.tpfc", &assign_PFVArType1IEEEPFController_tpfc)); - dynamic_switch.insert(std::make_pair("cim:PFVArType1IEEEPFController.vitmin", &assign_PFVArType1IEEEPFController_vitmin)); - dynamic_switch.insert(std::make_pair("cim:PFVArType1IEEEPFController.vpf", &assign_PFVArType1IEEEPFController_vpf)); - dynamic_switch.insert(std::make_pair("cim:PFVArType1IEEEPFController.vpfcbw", &assign_PFVArType1IEEEPFController_vpfcbw)); - dynamic_switch.insert(std::make_pair("cim:PFVArType1IEEEPFController.vpfref", &assign_PFVArType1IEEEPFController_vpfref)); - dynamic_switch.insert(std::make_pair("cim:PFVArType1IEEEPFController.vvtmax", &assign_PFVArType1IEEEPFController_vvtmax)); - dynamic_switch.insert(std::make_pair("cim:PFVArType1IEEEPFController.vvtmin", &assign_PFVArType1IEEEPFController_vvtmin)); - dynamic_switch.insert(std::make_pair("cim:PFVArType1IEEEVArController.tvarc", &assign_PFVArType1IEEEVArController_tvarc)); - dynamic_switch.insert(std::make_pair("cim:PFVArType1IEEEVArController.vvar", &assign_PFVArType1IEEEVArController_vvar)); - dynamic_switch.insert(std::make_pair("cim:PFVArType1IEEEVArController.vvarcbw", &assign_PFVArType1IEEEVArController_vvarcbw)); - dynamic_switch.insert(std::make_pair("cim:PFVArType1IEEEVArController.vvarref", &assign_PFVArType1IEEEVArController_vvarref)); - dynamic_switch.insert(std::make_pair("cim:PFVArType1IEEEVArController.vvtmax", &assign_PFVArType1IEEEVArController_vvtmax)); - dynamic_switch.insert(std::make_pair("cim:PFVArType1IEEEVArController.vvtmin", &assign_PFVArType1IEEEVArController_vvtmin)); - dynamic_switch.insert(std::make_pair("cim:AsynchronousMachineTimeConstantReactance.tpo", &assign_AsynchronousMachineTimeConstantReactance_tpo)); - dynamic_switch.insert(std::make_pair("cim:AsynchronousMachineTimeConstantReactance.tppo", &assign_AsynchronousMachineTimeConstantReactance_tppo)); - dynamic_switch.insert(std::make_pair("cim:AsynchronousMachineTimeConstantReactance.xp", &assign_AsynchronousMachineTimeConstantReactance_xp)); - dynamic_switch.insert(std::make_pair("cim:AsynchronousMachineTimeConstantReactance.xpp", &assign_AsynchronousMachineTimeConstantReactance_xpp)); - dynamic_switch.insert(std::make_pair("cim:AsynchronousMachineTimeConstantReactance.xs", &assign_AsynchronousMachineTimeConstantReactance_xs)); - dynamic_switch.insert(std::make_pair("cim:AsynchronousMachineEquivalentCircuit.rr1", &assign_AsynchronousMachineEquivalentCircuit_rr1)); - dynamic_switch.insert(std::make_pair("cim:AsynchronousMachineEquivalentCircuit.rr2", &assign_AsynchronousMachineEquivalentCircuit_rr2)); - dynamic_switch.insert(std::make_pair("cim:AsynchronousMachineEquivalentCircuit.xlr1", &assign_AsynchronousMachineEquivalentCircuit_xlr1)); - dynamic_switch.insert(std::make_pair("cim:AsynchronousMachineEquivalentCircuit.xlr2", &assign_AsynchronousMachineEquivalentCircuit_xlr2)); - dynamic_switch.insert(std::make_pair("cim:AsynchronousMachineEquivalentCircuit.xm", &assign_AsynchronousMachineEquivalentCircuit_xm)); - dynamic_switch.insert(std::make_pair("cim:DiscExcContIEEEDEC3A.tdr", &assign_DiscExcContIEEEDEC3A_tdr)); - dynamic_switch.insert(std::make_pair("cim:DiscExcContIEEEDEC3A.vtmin", &assign_DiscExcContIEEEDEC3A_vtmin)); - dynamic_switch.insert(std::make_pair("cim:DiscExcContIEEEDEC2A.td1", &assign_DiscExcContIEEEDEC2A_td1)); - dynamic_switch.insert(std::make_pair("cim:DiscExcContIEEEDEC2A.td2", &assign_DiscExcContIEEEDEC2A_td2)); - dynamic_switch.insert(std::make_pair("cim:DiscExcContIEEEDEC2A.vdmax", &assign_DiscExcContIEEEDEC2A_vdmax)); - dynamic_switch.insert(std::make_pair("cim:DiscExcContIEEEDEC2A.vdmin", &assign_DiscExcContIEEEDEC2A_vdmin)); - dynamic_switch.insert(std::make_pair("cim:DiscExcContIEEEDEC2A.vk", &assign_DiscExcContIEEEDEC2A_vk)); - dynamic_switch.insert(std::make_pair("cim:DiscExcContIEEEDEC1A.esc", &assign_DiscExcContIEEEDEC1A_esc)); - dynamic_switch.insert(std::make_pair("cim:DiscExcContIEEEDEC1A.kan", &assign_DiscExcContIEEEDEC1A_kan)); - dynamic_switch.insert(std::make_pair("cim:DiscExcContIEEEDEC1A.ketl", &assign_DiscExcContIEEEDEC1A_ketl)); - dynamic_switch.insert(std::make_pair("cim:DiscExcContIEEEDEC1A.tan", &assign_DiscExcContIEEEDEC1A_tan)); - dynamic_switch.insert(std::make_pair("cim:DiscExcContIEEEDEC1A.td", &assign_DiscExcContIEEEDEC1A_td)); - dynamic_switch.insert(std::make_pair("cim:DiscExcContIEEEDEC1A.tl1", &assign_DiscExcContIEEEDEC1A_tl1)); - dynamic_switch.insert(std::make_pair("cim:DiscExcContIEEEDEC1A.tl2", &assign_DiscExcContIEEEDEC1A_tl2)); - dynamic_switch.insert(std::make_pair("cim:DiscExcContIEEEDEC1A.tw5", &assign_DiscExcContIEEEDEC1A_tw5)); - dynamic_switch.insert(std::make_pair("cim:DiscExcContIEEEDEC1A.val", &assign_DiscExcContIEEEDEC1A_val)); - dynamic_switch.insert(std::make_pair("cim:DiscExcContIEEEDEC1A.vanmax", &assign_DiscExcContIEEEDEC1A_vanmax)); - dynamic_switch.insert(std::make_pair("cim:DiscExcContIEEEDEC1A.vomax", &assign_DiscExcContIEEEDEC1A_vomax)); - dynamic_switch.insert(std::make_pair("cim:DiscExcContIEEEDEC1A.vomin", &assign_DiscExcContIEEEDEC1A_vomin)); - dynamic_switch.insert(std::make_pair("cim:DiscExcContIEEEDEC1A.vsmax", &assign_DiscExcContIEEEDEC1A_vsmax)); - dynamic_switch.insert(std::make_pair("cim:DiscExcContIEEEDEC1A.vsmin", &assign_DiscExcContIEEEDEC1A_vsmin)); - dynamic_switch.insert(std::make_pair("cim:DiscExcContIEEEDEC1A.vtc", &assign_DiscExcContIEEEDEC1A_vtc)); - dynamic_switch.insert(std::make_pair("cim:DiscExcContIEEEDEC1A.vtlmt", &assign_DiscExcContIEEEDEC1A_vtlmt)); - dynamic_switch.insert(std::make_pair("cim:DiscExcContIEEEDEC1A.vtm", &assign_DiscExcContIEEEDEC1A_vtm)); - dynamic_switch.insert(std::make_pair("cim:DiscExcContIEEEDEC1A.vtn", &assign_DiscExcContIEEEDEC1A_vtn)); - dynamic_switch.insert(std::make_pair("cim:GovSteamSGO.k1", &assign_GovSteamSGO_k1)); - dynamic_switch.insert(std::make_pair("cim:GovSteamSGO.k2", &assign_GovSteamSGO_k2)); - dynamic_switch.insert(std::make_pair("cim:GovSteamSGO.k3", &assign_GovSteamSGO_k3)); - dynamic_switch.insert(std::make_pair("cim:GovSteamSGO.mwbase", &assign_GovSteamSGO_mwbase)); - dynamic_switch.insert(std::make_pair("cim:GovSteamSGO.pmax", &assign_GovSteamSGO_pmax)); - dynamic_switch.insert(std::make_pair("cim:GovSteamSGO.pmin", &assign_GovSteamSGO_pmin)); - dynamic_switch.insert(std::make_pair("cim:GovSteamSGO.t1", &assign_GovSteamSGO_t1)); - dynamic_switch.insert(std::make_pair("cim:GovSteamSGO.t2", &assign_GovSteamSGO_t2)); - dynamic_switch.insert(std::make_pair("cim:GovSteamSGO.t3", &assign_GovSteamSGO_t3)); - dynamic_switch.insert(std::make_pair("cim:GovSteamSGO.t4", &assign_GovSteamSGO_t4)); - dynamic_switch.insert(std::make_pair("cim:GovSteamSGO.t5", &assign_GovSteamSGO_t5)); - dynamic_switch.insert(std::make_pair("cim:GovSteamSGO.t6", &assign_GovSteamSGO_t6)); - dynamic_switch.insert(std::make_pair("cim:GovSteam1.db1", &assign_GovSteam1_db1)); - dynamic_switch.insert(std::make_pair("cim:GovSteam1.db2", &assign_GovSteam1_db2)); - dynamic_switch.insert(std::make_pair("cim:GovSteam1.eps", &assign_GovSteam1_eps)); - dynamic_switch.insert(std::make_pair("cim:GovSteam1.gv1", &assign_GovSteam1_gv1)); - dynamic_switch.insert(std::make_pair("cim:GovSteam1.gv2", &assign_GovSteam1_gv2)); - dynamic_switch.insert(std::make_pair("cim:GovSteam1.gv3", &assign_GovSteam1_gv3)); - dynamic_switch.insert(std::make_pair("cim:GovSteam1.gv4", &assign_GovSteam1_gv4)); - dynamic_switch.insert(std::make_pair("cim:GovSteam1.gv5", &assign_GovSteam1_gv5)); - dynamic_switch.insert(std::make_pair("cim:GovSteam1.gv6", &assign_GovSteam1_gv6)); - dynamic_switch.insert(std::make_pair("cim:GovSteam1.k", &assign_GovSteam1_k)); - dynamic_switch.insert(std::make_pair("cim:GovSteam1.k1", &assign_GovSteam1_k1)); - dynamic_switch.insert(std::make_pair("cim:GovSteam1.k2", &assign_GovSteam1_k2)); - dynamic_switch.insert(std::make_pair("cim:GovSteam1.k3", &assign_GovSteam1_k3)); - dynamic_switch.insert(std::make_pair("cim:GovSteam1.k4", &assign_GovSteam1_k4)); - dynamic_switch.insert(std::make_pair("cim:GovSteam1.k5", &assign_GovSteam1_k5)); - dynamic_switch.insert(std::make_pair("cim:GovSteam1.k6", &assign_GovSteam1_k6)); - dynamic_switch.insert(std::make_pair("cim:GovSteam1.k7", &assign_GovSteam1_k7)); - dynamic_switch.insert(std::make_pair("cim:GovSteam1.k8", &assign_GovSteam1_k8)); - dynamic_switch.insert(std::make_pair("cim:GovSteam1.mwbase", &assign_GovSteam1_mwbase)); - dynamic_switch.insert(std::make_pair("cim:GovSteam1.pgv1", &assign_GovSteam1_pgv1)); - dynamic_switch.insert(std::make_pair("cim:GovSteam1.pgv2", &assign_GovSteam1_pgv2)); - dynamic_switch.insert(std::make_pair("cim:GovSteam1.pgv3", &assign_GovSteam1_pgv3)); - dynamic_switch.insert(std::make_pair("cim:GovSteam1.pgv4", &assign_GovSteam1_pgv4)); - dynamic_switch.insert(std::make_pair("cim:GovSteam1.pgv5", &assign_GovSteam1_pgv5)); - dynamic_switch.insert(std::make_pair("cim:GovSteam1.pgv6", &assign_GovSteam1_pgv6)); - dynamic_switch.insert(std::make_pair("cim:GovSteam1.pmax", &assign_GovSteam1_pmax)); - dynamic_switch.insert(std::make_pair("cim:GovSteam1.pmin", &assign_GovSteam1_pmin)); - dynamic_switch.insert(std::make_pair("cim:GovSteam1.sdb1", &assign_GovSteam1_sdb1)); - dynamic_switch.insert(std::make_pair("cim:GovSteam1.sdb2", &assign_GovSteam1_sdb2)); - dynamic_switch.insert(std::make_pair("cim:GovSteam1.t1", &assign_GovSteam1_t1)); - dynamic_switch.insert(std::make_pair("cim:GovSteam1.t2", &assign_GovSteam1_t2)); - dynamic_switch.insert(std::make_pair("cim:GovSteam1.t3", &assign_GovSteam1_t3)); - dynamic_switch.insert(std::make_pair("cim:GovSteam1.t4", &assign_GovSteam1_t4)); - dynamic_switch.insert(std::make_pair("cim:GovSteam1.t5", &assign_GovSteam1_t5)); - dynamic_switch.insert(std::make_pair("cim:GovSteam1.t6", &assign_GovSteam1_t6)); - dynamic_switch.insert(std::make_pair("cim:GovSteam1.t7", &assign_GovSteam1_t7)); - dynamic_switch.insert(std::make_pair("cim:GovSteam1.uc", &assign_GovSteam1_uc)); - dynamic_switch.insert(std::make_pair("cim:GovSteam1.uo", &assign_GovSteam1_uo)); - dynamic_switch.insert(std::make_pair("cim:GovSteam1.valve", &assign_GovSteam1_valve)); - dynamic_switch.insert(std::make_pair("cim:GovSteamEU.chc", &assign_GovSteamEU_chc)); - dynamic_switch.insert(std::make_pair("cim:GovSteamEU.cho", &assign_GovSteamEU_cho)); - dynamic_switch.insert(std::make_pair("cim:GovSteamEU.cic", &assign_GovSteamEU_cic)); - dynamic_switch.insert(std::make_pair("cim:GovSteamEU.cio", &assign_GovSteamEU_cio)); - dynamic_switch.insert(std::make_pair("cim:GovSteamEU.db1", &assign_GovSteamEU_db1)); - dynamic_switch.insert(std::make_pair("cim:GovSteamEU.db2", &assign_GovSteamEU_db2)); - dynamic_switch.insert(std::make_pair("cim:GovSteamEU.hhpmax", &assign_GovSteamEU_hhpmax)); - dynamic_switch.insert(std::make_pair("cim:GovSteamEU.ke", &assign_GovSteamEU_ke)); - dynamic_switch.insert(std::make_pair("cim:GovSteamEU.kfcor", &assign_GovSteamEU_kfcor)); - dynamic_switch.insert(std::make_pair("cim:GovSteamEU.khp", &assign_GovSteamEU_khp)); - dynamic_switch.insert(std::make_pair("cim:GovSteamEU.klp", &assign_GovSteamEU_klp)); - dynamic_switch.insert(std::make_pair("cim:GovSteamEU.kwcor", &assign_GovSteamEU_kwcor)); - dynamic_switch.insert(std::make_pair("cim:GovSteamEU.mwbase", &assign_GovSteamEU_mwbase)); - dynamic_switch.insert(std::make_pair("cim:GovSteamEU.pmax", &assign_GovSteamEU_pmax)); - dynamic_switch.insert(std::make_pair("cim:GovSteamEU.prhmax", &assign_GovSteamEU_prhmax)); - dynamic_switch.insert(std::make_pair("cim:GovSteamEU.simx", &assign_GovSteamEU_simx)); - dynamic_switch.insert(std::make_pair("cim:GovSteamEU.tb", &assign_GovSteamEU_tb)); - dynamic_switch.insert(std::make_pair("cim:GovSteamEU.tdp", &assign_GovSteamEU_tdp)); - dynamic_switch.insert(std::make_pair("cim:GovSteamEU.ten", &assign_GovSteamEU_ten)); - dynamic_switch.insert(std::make_pair("cim:GovSteamEU.tf", &assign_GovSteamEU_tf)); - dynamic_switch.insert(std::make_pair("cim:GovSteamEU.tfp", &assign_GovSteamEU_tfp)); - dynamic_switch.insert(std::make_pair("cim:GovSteamEU.thp", &assign_GovSteamEU_thp)); - dynamic_switch.insert(std::make_pair("cim:GovSteamEU.tip", &assign_GovSteamEU_tip)); - dynamic_switch.insert(std::make_pair("cim:GovSteamEU.tlp", &assign_GovSteamEU_tlp)); - dynamic_switch.insert(std::make_pair("cim:GovSteamEU.tp", &assign_GovSteamEU_tp)); - dynamic_switch.insert(std::make_pair("cim:GovSteamEU.trh", &assign_GovSteamEU_trh)); - dynamic_switch.insert(std::make_pair("cim:GovSteamEU.tvhp", &assign_GovSteamEU_tvhp)); - dynamic_switch.insert(std::make_pair("cim:GovSteamEU.tvip", &assign_GovSteamEU_tvip)); - dynamic_switch.insert(std::make_pair("cim:GovSteamEU.tw", &assign_GovSteamEU_tw)); - dynamic_switch.insert(std::make_pair("cim:GovSteamEU.wfmax", &assign_GovSteamEU_wfmax)); - dynamic_switch.insert(std::make_pair("cim:GovSteamEU.wfmin", &assign_GovSteamEU_wfmin)); - dynamic_switch.insert(std::make_pair("cim:GovSteamEU.wmax1", &assign_GovSteamEU_wmax1)); - dynamic_switch.insert(std::make_pair("cim:GovSteamEU.wmax2", &assign_GovSteamEU_wmax2)); - dynamic_switch.insert(std::make_pair("cim:GovSteamEU.wwmax", &assign_GovSteamEU_wwmax)); - dynamic_switch.insert(std::make_pair("cim:GovSteamEU.wwmin", &assign_GovSteamEU_wwmin)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPID2.atw", &assign_GovHydroPID2_atw)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPID2.d", &assign_GovHydroPID2_d)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPID2.feedbackSignal", &assign_GovHydroPID2_feedbackSignal)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPID2.g0", &assign_GovHydroPID2_g0)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPID2.g1", &assign_GovHydroPID2_g1)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPID2.g2", &assign_GovHydroPID2_g2)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPID2.gmax", &assign_GovHydroPID2_gmax)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPID2.gmin", &assign_GovHydroPID2_gmin)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPID2.kd", &assign_GovHydroPID2_kd)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPID2.ki", &assign_GovHydroPID2_ki)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPID2.kp", &assign_GovHydroPID2_kp)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPID2.mwbase", &assign_GovHydroPID2_mwbase)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPID2.p1", &assign_GovHydroPID2_p1)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPID2.p2", &assign_GovHydroPID2_p2)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPID2.p3", &assign_GovHydroPID2_p3)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPID2.rperm", &assign_GovHydroPID2_rperm)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPID2.ta", &assign_GovHydroPID2_ta)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPID2.tb", &assign_GovHydroPID2_tb)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPID2.treg", &assign_GovHydroPID2_treg)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPID2.tw", &assign_GovHydroPID2_tw)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPID2.velmax", &assign_GovHydroPID2_velmax)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPID2.velmin", &assign_GovHydroPID2_velmin)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWPID.d", &assign_GovHydroWPID_d)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWPID.gatmax", &assign_GovHydroWPID_gatmax)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWPID.gatmin", &assign_GovHydroWPID_gatmin)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWPID.gv1", &assign_GovHydroWPID_gv1)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWPID.gv2", &assign_GovHydroWPID_gv2)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWPID.gv3", &assign_GovHydroWPID_gv3)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWPID.kd", &assign_GovHydroWPID_kd)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWPID.ki", &assign_GovHydroWPID_ki)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWPID.kp", &assign_GovHydroWPID_kp)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWPID.mwbase", &assign_GovHydroWPID_mwbase)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWPID.pgv1", &assign_GovHydroWPID_pgv1)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWPID.pgv2", &assign_GovHydroWPID_pgv2)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWPID.pgv3", &assign_GovHydroWPID_pgv3)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWPID.pmax", &assign_GovHydroWPID_pmax)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWPID.pmin", &assign_GovHydroWPID_pmin)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWPID.reg", &assign_GovHydroWPID_reg)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWPID.ta", &assign_GovHydroWPID_ta)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWPID.tb", &assign_GovHydroWPID_tb)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWPID.treg", &assign_GovHydroWPID_treg)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWPID.tw", &assign_GovHydroWPID_tw)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWPID.velmax", &assign_GovHydroWPID_velmax)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWPID.velmin", &assign_GovHydroWPID_velmin)); - dynamic_switch.insert(std::make_pair("cim:GovGAST4.bp", &assign_GovGAST4_bp)); - dynamic_switch.insert(std::make_pair("cim:GovGAST4.ktm", &assign_GovGAST4_ktm)); - dynamic_switch.insert(std::make_pair("cim:GovGAST4.mnef", &assign_GovGAST4_mnef)); - dynamic_switch.insert(std::make_pair("cim:GovGAST4.mxef", &assign_GovGAST4_mxef)); - dynamic_switch.insert(std::make_pair("cim:GovGAST4.rymn", &assign_GovGAST4_rymn)); - dynamic_switch.insert(std::make_pair("cim:GovGAST4.rymx", &assign_GovGAST4_rymx)); - dynamic_switch.insert(std::make_pair("cim:GovGAST4.ta", &assign_GovGAST4_ta)); - dynamic_switch.insert(std::make_pair("cim:GovGAST4.tc", &assign_GovGAST4_tc)); - dynamic_switch.insert(std::make_pair("cim:GovGAST4.tcm", &assign_GovGAST4_tcm)); - dynamic_switch.insert(std::make_pair("cim:GovGAST4.tm", &assign_GovGAST4_tm)); - dynamic_switch.insert(std::make_pair("cim:GovGAST4.tv", &assign_GovGAST4_tv)); - dynamic_switch.insert(std::make_pair("cim:GovHydro4.at", &assign_GovHydro4_at)); - dynamic_switch.insert(std::make_pair("cim:GovHydro4.bgv0", &assign_GovHydro4_bgv0)); - dynamic_switch.insert(std::make_pair("cim:GovHydro4.bgv1", &assign_GovHydro4_bgv1)); - dynamic_switch.insert(std::make_pair("cim:GovHydro4.bgv2", &assign_GovHydro4_bgv2)); - dynamic_switch.insert(std::make_pair("cim:GovHydro4.bgv3", &assign_GovHydro4_bgv3)); - dynamic_switch.insert(std::make_pair("cim:GovHydro4.bgv4", &assign_GovHydro4_bgv4)); - dynamic_switch.insert(std::make_pair("cim:GovHydro4.bgv5", &assign_GovHydro4_bgv5)); - dynamic_switch.insert(std::make_pair("cim:GovHydro4.bmax", &assign_GovHydro4_bmax)); - dynamic_switch.insert(std::make_pair("cim:GovHydro4.db1", &assign_GovHydro4_db1)); - dynamic_switch.insert(std::make_pair("cim:GovHydro4.db2", &assign_GovHydro4_db2)); - dynamic_switch.insert(std::make_pair("cim:GovHydro4.dturb", &assign_GovHydro4_dturb)); - dynamic_switch.insert(std::make_pair("cim:GovHydro4.eps", &assign_GovHydro4_eps)); - dynamic_switch.insert(std::make_pair("cim:GovHydro4.gmax", &assign_GovHydro4_gmax)); - dynamic_switch.insert(std::make_pair("cim:GovHydro4.gmin", &assign_GovHydro4_gmin)); - dynamic_switch.insert(std::make_pair("cim:GovHydro4.gv0", &assign_GovHydro4_gv0)); - dynamic_switch.insert(std::make_pair("cim:GovHydro4.gv1", &assign_GovHydro4_gv1)); - dynamic_switch.insert(std::make_pair("cim:GovHydro4.gv2", &assign_GovHydro4_gv2)); - dynamic_switch.insert(std::make_pair("cim:GovHydro4.gv3", &assign_GovHydro4_gv3)); - dynamic_switch.insert(std::make_pair("cim:GovHydro4.gv4", &assign_GovHydro4_gv4)); - dynamic_switch.insert(std::make_pair("cim:GovHydro4.gv5", &assign_GovHydro4_gv5)); - dynamic_switch.insert(std::make_pair("cim:GovHydro4.hdam", &assign_GovHydro4_hdam)); - dynamic_switch.insert(std::make_pair("cim:GovHydro4.mwbase", &assign_GovHydro4_mwbase)); - dynamic_switch.insert(std::make_pair("cim:GovHydro4.pgv0", &assign_GovHydro4_pgv0)); - dynamic_switch.insert(std::make_pair("cim:GovHydro4.pgv1", &assign_GovHydro4_pgv1)); - dynamic_switch.insert(std::make_pair("cim:GovHydro4.pgv2", &assign_GovHydro4_pgv2)); - dynamic_switch.insert(std::make_pair("cim:GovHydro4.pgv3", &assign_GovHydro4_pgv3)); - dynamic_switch.insert(std::make_pair("cim:GovHydro4.pgv4", &assign_GovHydro4_pgv4)); - dynamic_switch.insert(std::make_pair("cim:GovHydro4.pgv5", &assign_GovHydro4_pgv5)); - dynamic_switch.insert(std::make_pair("cim:GovHydro4.qn1", &assign_GovHydro4_qn1)); - dynamic_switch.insert(std::make_pair("cim:GovHydro4.rperm", &assign_GovHydro4_rperm)); - dynamic_switch.insert(std::make_pair("cim:GovHydro4.rtemp", &assign_GovHydro4_rtemp)); - dynamic_switch.insert(std::make_pair("cim:GovHydro4.tblade", &assign_GovHydro4_tblade)); - dynamic_switch.insert(std::make_pair("cim:GovHydro4.tg", &assign_GovHydro4_tg)); - dynamic_switch.insert(std::make_pair("cim:GovHydro4.tp", &assign_GovHydro4_tp)); - dynamic_switch.insert(std::make_pair("cim:GovHydro4.tr", &assign_GovHydro4_tr)); - dynamic_switch.insert(std::make_pair("cim:GovHydro4.tw", &assign_GovHydro4_tw)); - dynamic_switch.insert(std::make_pair("cim:GovHydro4.uc", &assign_GovHydro4_uc)); - dynamic_switch.insert(std::make_pair("cim:GovHydro4.uo", &assign_GovHydro4_uo)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWEH.db", &assign_GovHydroWEH_db)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWEH.dicn", &assign_GovHydroWEH_dicn)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWEH.dpv", &assign_GovHydroWEH_dpv)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWEH.dturb", &assign_GovHydroWEH_dturb)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWEH.feedbackSignal", &assign_GovHydroWEH_feedbackSignal)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWEH.fl1", &assign_GovHydroWEH_fl1)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWEH.fl2", &assign_GovHydroWEH_fl2)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWEH.fl3", &assign_GovHydroWEH_fl3)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWEH.fl4", &assign_GovHydroWEH_fl4)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWEH.fl5", &assign_GovHydroWEH_fl5)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWEH.fp1", &assign_GovHydroWEH_fp1)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWEH.fp10", &assign_GovHydroWEH_fp10)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWEH.fp2", &assign_GovHydroWEH_fp2)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWEH.fp3", &assign_GovHydroWEH_fp3)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWEH.fp4", &assign_GovHydroWEH_fp4)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWEH.fp5", &assign_GovHydroWEH_fp5)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWEH.fp6", &assign_GovHydroWEH_fp6)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWEH.fp7", &assign_GovHydroWEH_fp7)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWEH.fp8", &assign_GovHydroWEH_fp8)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWEH.fp9", &assign_GovHydroWEH_fp9)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWEH.gmax", &assign_GovHydroWEH_gmax)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWEH.gmin", &assign_GovHydroWEH_gmin)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWEH.gtmxcl", &assign_GovHydroWEH_gtmxcl)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWEH.gtmxop", &assign_GovHydroWEH_gtmxop)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWEH.gv1", &assign_GovHydroWEH_gv1)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWEH.gv2", &assign_GovHydroWEH_gv2)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWEH.gv3", &assign_GovHydroWEH_gv3)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWEH.gv4", &assign_GovHydroWEH_gv4)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWEH.gv5", &assign_GovHydroWEH_gv5)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWEH.kd", &assign_GovHydroWEH_kd)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWEH.ki", &assign_GovHydroWEH_ki)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWEH.kp", &assign_GovHydroWEH_kp)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWEH.mwbase", &assign_GovHydroWEH_mwbase)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWEH.pmss1", &assign_GovHydroWEH_pmss1)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWEH.pmss10", &assign_GovHydroWEH_pmss10)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWEH.pmss2", &assign_GovHydroWEH_pmss2)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWEH.pmss3", &assign_GovHydroWEH_pmss3)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWEH.pmss4", &assign_GovHydroWEH_pmss4)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWEH.pmss5", &assign_GovHydroWEH_pmss5)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWEH.pmss6", &assign_GovHydroWEH_pmss6)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWEH.pmss7", &assign_GovHydroWEH_pmss7)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWEH.pmss8", &assign_GovHydroWEH_pmss8)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWEH.pmss9", &assign_GovHydroWEH_pmss9)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWEH.rpg", &assign_GovHydroWEH_rpg)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWEH.rpp", &assign_GovHydroWEH_rpp)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWEH.td", &assign_GovHydroWEH_td)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWEH.tdv", &assign_GovHydroWEH_tdv)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWEH.tg", &assign_GovHydroWEH_tg)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWEH.tp", &assign_GovHydroWEH_tp)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWEH.tpe", &assign_GovHydroWEH_tpe)); - dynamic_switch.insert(std::make_pair("cim:GovHydroWEH.tw", &assign_GovHydroWEH_tw)); - dynamic_switch.insert(std::make_pair("cim:GovSteamIEEE1.k", &assign_GovSteamIEEE1_k)); - dynamic_switch.insert(std::make_pair("cim:GovSteamIEEE1.k1", &assign_GovSteamIEEE1_k1)); - dynamic_switch.insert(std::make_pair("cim:GovSteamIEEE1.k2", &assign_GovSteamIEEE1_k2)); - dynamic_switch.insert(std::make_pair("cim:GovSteamIEEE1.k3", &assign_GovSteamIEEE1_k3)); - dynamic_switch.insert(std::make_pair("cim:GovSteamIEEE1.k4", &assign_GovSteamIEEE1_k4)); - dynamic_switch.insert(std::make_pair("cim:GovSteamIEEE1.k5", &assign_GovSteamIEEE1_k5)); - dynamic_switch.insert(std::make_pair("cim:GovSteamIEEE1.k6", &assign_GovSteamIEEE1_k6)); - dynamic_switch.insert(std::make_pair("cim:GovSteamIEEE1.k7", &assign_GovSteamIEEE1_k7)); - dynamic_switch.insert(std::make_pair("cim:GovSteamIEEE1.k8", &assign_GovSteamIEEE1_k8)); - dynamic_switch.insert(std::make_pair("cim:GovSteamIEEE1.mwbase", &assign_GovSteamIEEE1_mwbase)); - dynamic_switch.insert(std::make_pair("cim:GovSteamIEEE1.pmax", &assign_GovSteamIEEE1_pmax)); - dynamic_switch.insert(std::make_pair("cim:GovSteamIEEE1.pmin", &assign_GovSteamIEEE1_pmin)); - dynamic_switch.insert(std::make_pair("cim:GovSteamIEEE1.t1", &assign_GovSteamIEEE1_t1)); - dynamic_switch.insert(std::make_pair("cim:GovSteamIEEE1.t2", &assign_GovSteamIEEE1_t2)); - dynamic_switch.insert(std::make_pair("cim:GovSteamIEEE1.t3", &assign_GovSteamIEEE1_t3)); - dynamic_switch.insert(std::make_pair("cim:GovSteamIEEE1.t4", &assign_GovSteamIEEE1_t4)); - dynamic_switch.insert(std::make_pair("cim:GovSteamIEEE1.t5", &assign_GovSteamIEEE1_t5)); - dynamic_switch.insert(std::make_pair("cim:GovSteamIEEE1.t6", &assign_GovSteamIEEE1_t6)); - dynamic_switch.insert(std::make_pair("cim:GovSteamIEEE1.t7", &assign_GovSteamIEEE1_t7)); - dynamic_switch.insert(std::make_pair("cim:GovSteamIEEE1.uc", &assign_GovSteamIEEE1_uc)); - dynamic_switch.insert(std::make_pair("cim:GovSteamIEEE1.uo", &assign_GovSteamIEEE1_uo)); - dynamic_switch.insert(std::make_pair("cim:GovHydro3.at", &assign_GovHydro3_at)); - dynamic_switch.insert(std::make_pair("cim:GovHydro3.db1", &assign_GovHydro3_db1)); - dynamic_switch.insert(std::make_pair("cim:GovHydro3.db2", &assign_GovHydro3_db2)); - dynamic_switch.insert(std::make_pair("cim:GovHydro3.dturb", &assign_GovHydro3_dturb)); - dynamic_switch.insert(std::make_pair("cim:GovHydro3.eps", &assign_GovHydro3_eps)); - dynamic_switch.insert(std::make_pair("cim:GovHydro3.governorControl", &assign_GovHydro3_governorControl)); - dynamic_switch.insert(std::make_pair("cim:GovHydro3.gv1", &assign_GovHydro3_gv1)); - dynamic_switch.insert(std::make_pair("cim:GovHydro3.gv2", &assign_GovHydro3_gv2)); - dynamic_switch.insert(std::make_pair("cim:GovHydro3.gv3", &assign_GovHydro3_gv3)); - dynamic_switch.insert(std::make_pair("cim:GovHydro3.gv4", &assign_GovHydro3_gv4)); - dynamic_switch.insert(std::make_pair("cim:GovHydro3.gv5", &assign_GovHydro3_gv5)); - dynamic_switch.insert(std::make_pair("cim:GovHydro3.gv6", &assign_GovHydro3_gv6)); - dynamic_switch.insert(std::make_pair("cim:GovHydro3.h0", &assign_GovHydro3_h0)); - dynamic_switch.insert(std::make_pair("cim:GovHydro3.k1", &assign_GovHydro3_k1)); - dynamic_switch.insert(std::make_pair("cim:GovHydro3.k2", &assign_GovHydro3_k2)); - dynamic_switch.insert(std::make_pair("cim:GovHydro3.kg", &assign_GovHydro3_kg)); - dynamic_switch.insert(std::make_pair("cim:GovHydro3.ki", &assign_GovHydro3_ki)); - dynamic_switch.insert(std::make_pair("cim:GovHydro3.mwbase", &assign_GovHydro3_mwbase)); - dynamic_switch.insert(std::make_pair("cim:GovHydro3.pgv1", &assign_GovHydro3_pgv1)); - dynamic_switch.insert(std::make_pair("cim:GovHydro3.pgv2", &assign_GovHydro3_pgv2)); - dynamic_switch.insert(std::make_pair("cim:GovHydro3.pgv3", &assign_GovHydro3_pgv3)); - dynamic_switch.insert(std::make_pair("cim:GovHydro3.pgv4", &assign_GovHydro3_pgv4)); - dynamic_switch.insert(std::make_pair("cim:GovHydro3.pgv5", &assign_GovHydro3_pgv5)); - dynamic_switch.insert(std::make_pair("cim:GovHydro3.pgv6", &assign_GovHydro3_pgv6)); - dynamic_switch.insert(std::make_pair("cim:GovHydro3.pmax", &assign_GovHydro3_pmax)); - dynamic_switch.insert(std::make_pair("cim:GovHydro3.pmin", &assign_GovHydro3_pmin)); - dynamic_switch.insert(std::make_pair("cim:GovHydro3.qnl", &assign_GovHydro3_qnl)); - dynamic_switch.insert(std::make_pair("cim:GovHydro3.relec", &assign_GovHydro3_relec)); - dynamic_switch.insert(std::make_pair("cim:GovHydro3.rgate", &assign_GovHydro3_rgate)); - dynamic_switch.insert(std::make_pair("cim:GovHydro3.td", &assign_GovHydro3_td)); - dynamic_switch.insert(std::make_pair("cim:GovHydro3.tf", &assign_GovHydro3_tf)); - dynamic_switch.insert(std::make_pair("cim:GovHydro3.tp", &assign_GovHydro3_tp)); - dynamic_switch.insert(std::make_pair("cim:GovHydro3.tt", &assign_GovHydro3_tt)); - dynamic_switch.insert(std::make_pair("cim:GovHydro3.tw", &assign_GovHydro3_tw)); - dynamic_switch.insert(std::make_pair("cim:GovHydro3.velcl", &assign_GovHydro3_velcl)); - dynamic_switch.insert(std::make_pair("cim:GovHydro3.velop", &assign_GovHydro3_velop)); - dynamic_switch.insert(std::make_pair("cim:GovGAST.at", &assign_GovGAST_at)); - dynamic_switch.insert(std::make_pair("cim:GovGAST.dturb", &assign_GovGAST_dturb)); - dynamic_switch.insert(std::make_pair("cim:GovGAST.kt", &assign_GovGAST_kt)); - dynamic_switch.insert(std::make_pair("cim:GovGAST.mwbase", &assign_GovGAST_mwbase)); - dynamic_switch.insert(std::make_pair("cim:GovGAST.r", &assign_GovGAST_r)); - dynamic_switch.insert(std::make_pair("cim:GovGAST.t1", &assign_GovGAST_t1)); - dynamic_switch.insert(std::make_pair("cim:GovGAST.t2", &assign_GovGAST_t2)); - dynamic_switch.insert(std::make_pair("cim:GovGAST.t3", &assign_GovGAST_t3)); - dynamic_switch.insert(std::make_pair("cim:GovGAST.vmax", &assign_GovGAST_vmax)); - dynamic_switch.insert(std::make_pair("cim:GovGAST.vmin", &assign_GovGAST_vmin)); - dynamic_switch.insert(std::make_pair("cim:GovGAST3.bca", &assign_GovGAST3_bca)); - dynamic_switch.insert(std::make_pair("cim:GovGAST3.bp", &assign_GovGAST3_bp)); - dynamic_switch.insert(std::make_pair("cim:GovGAST3.dtc", &assign_GovGAST3_dtc)); - dynamic_switch.insert(std::make_pair("cim:GovGAST3.ka", &assign_GovGAST3_ka)); - dynamic_switch.insert(std::make_pair("cim:GovGAST3.kac", &assign_GovGAST3_kac)); - dynamic_switch.insert(std::make_pair("cim:GovGAST3.kca", &assign_GovGAST3_kca)); - dynamic_switch.insert(std::make_pair("cim:GovGAST3.ksi", &assign_GovGAST3_ksi)); - dynamic_switch.insert(std::make_pair("cim:GovGAST3.ky", &assign_GovGAST3_ky)); - dynamic_switch.insert(std::make_pair("cim:GovGAST3.mnef", &assign_GovGAST3_mnef)); - dynamic_switch.insert(std::make_pair("cim:GovGAST3.mxef", &assign_GovGAST3_mxef)); - dynamic_switch.insert(std::make_pair("cim:GovGAST3.rcmn", &assign_GovGAST3_rcmn)); - dynamic_switch.insert(std::make_pair("cim:GovGAST3.rcmx", &assign_GovGAST3_rcmx)); - dynamic_switch.insert(std::make_pair("cim:GovGAST3.tac", &assign_GovGAST3_tac)); - dynamic_switch.insert(std::make_pair("cim:GovGAST3.tc", &assign_GovGAST3_tc)); - dynamic_switch.insert(std::make_pair("cim:GovGAST3.td", &assign_GovGAST3_td)); - dynamic_switch.insert(std::make_pair("cim:GovGAST3.tfen", &assign_GovGAST3_tfen)); - dynamic_switch.insert(std::make_pair("cim:GovGAST3.tg", &assign_GovGAST3_tg)); - dynamic_switch.insert(std::make_pair("cim:GovGAST3.tsi", &assign_GovGAST3_tsi)); - dynamic_switch.insert(std::make_pair("cim:GovGAST3.tt", &assign_GovGAST3_tt)); - dynamic_switch.insert(std::make_pair("cim:GovGAST3.ttc", &assign_GovGAST3_ttc)); - dynamic_switch.insert(std::make_pair("cim:GovGAST3.ty", &assign_GovGAST3_ty)); - dynamic_switch.insert(std::make_pair("cim:GovSteam2.dbf", &assign_GovSteam2_dbf)); - dynamic_switch.insert(std::make_pair("cim:GovSteam2.k", &assign_GovSteam2_k)); - dynamic_switch.insert(std::make_pair("cim:GovSteam2.mnef", &assign_GovSteam2_mnef)); - dynamic_switch.insert(std::make_pair("cim:GovSteam2.mxef", &assign_GovSteam2_mxef)); - dynamic_switch.insert(std::make_pair("cim:GovSteam2.pmax", &assign_GovSteam2_pmax)); - dynamic_switch.insert(std::make_pair("cim:GovSteam2.pmin", &assign_GovSteam2_pmin)); - dynamic_switch.insert(std::make_pair("cim:GovSteam2.t1", &assign_GovSteam2_t1)); - dynamic_switch.insert(std::make_pair("cim:GovSteam2.t2", &assign_GovSteam2_t2)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV4.cpsmn", &assign_GovSteamFV4_cpsmn)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV4.cpsmx", &assign_GovSteamFV4_cpsmx)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV4.crmn", &assign_GovSteamFV4_crmn)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV4.crmx", &assign_GovSteamFV4_crmx)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV4.kdc", &assign_GovSteamFV4_kdc)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV4.kf1", &assign_GovSteamFV4_kf1)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV4.kf3", &assign_GovSteamFV4_kf3)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV4.khp", &assign_GovSteamFV4_khp)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV4.kic", &assign_GovSteamFV4_kic)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV4.kip", &assign_GovSteamFV4_kip)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV4.kit", &assign_GovSteamFV4_kit)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV4.kmp1", &assign_GovSteamFV4_kmp1)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV4.kmp2", &assign_GovSteamFV4_kmp2)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV4.kpc", &assign_GovSteamFV4_kpc)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV4.kpp", &assign_GovSteamFV4_kpp)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV4.kpt", &assign_GovSteamFV4_kpt)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV4.krc", &assign_GovSteamFV4_krc)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV4.ksh", &assign_GovSteamFV4_ksh)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV4.lpi", &assign_GovSteamFV4_lpi)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV4.lps", &assign_GovSteamFV4_lps)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV4.mnef", &assign_GovSteamFV4_mnef)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV4.mxef", &assign_GovSteamFV4_mxef)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV4.pr1", &assign_GovSteamFV4_pr1)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV4.pr2", &assign_GovSteamFV4_pr2)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV4.psmn", &assign_GovSteamFV4_psmn)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV4.rsmimn", &assign_GovSteamFV4_rsmimn)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV4.rsmimx", &assign_GovSteamFV4_rsmimx)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV4.rvgmn", &assign_GovSteamFV4_rvgmn)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV4.rvgmx", &assign_GovSteamFV4_rvgmx)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV4.srmn", &assign_GovSteamFV4_srmn)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV4.srmx", &assign_GovSteamFV4_srmx)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV4.srsmp", &assign_GovSteamFV4_srsmp)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV4.svmn", &assign_GovSteamFV4_svmn)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV4.svmx", &assign_GovSteamFV4_svmx)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV4.ta", &assign_GovSteamFV4_ta)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV4.tam", &assign_GovSteamFV4_tam)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV4.tc", &assign_GovSteamFV4_tc)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV4.tcm", &assign_GovSteamFV4_tcm)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV4.tdc", &assign_GovSteamFV4_tdc)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV4.tf1", &assign_GovSteamFV4_tf1)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV4.tf2", &assign_GovSteamFV4_tf2)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV4.thp", &assign_GovSteamFV4_thp)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV4.tmp", &assign_GovSteamFV4_tmp)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV4.trh", &assign_GovSteamFV4_trh)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV4.tv", &assign_GovSteamFV4_tv)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV4.ty", &assign_GovSteamFV4_ty)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV4.y", &assign_GovSteamFV4_y)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV4.yhpmn", &assign_GovSteamFV4_yhpmn)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV4.yhpmx", &assign_GovSteamFV4_yhpmx)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV4.ympmn", &assign_GovSteamFV4_ympmn)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV4.ympmx", &assign_GovSteamFV4_ympmx)); - dynamic_switch.insert(std::make_pair("cim:GovGAST1.a", &assign_GovGAST1_a)); - dynamic_switch.insert(std::make_pair("cim:GovGAST1.b", &assign_GovGAST1_b)); - dynamic_switch.insert(std::make_pair("cim:GovGAST1.db1", &assign_GovGAST1_db1)); - dynamic_switch.insert(std::make_pair("cim:GovGAST1.db2", &assign_GovGAST1_db2)); - dynamic_switch.insert(std::make_pair("cim:GovGAST1.eps", &assign_GovGAST1_eps)); - dynamic_switch.insert(std::make_pair("cim:GovGAST1.fidle", &assign_GovGAST1_fidle)); - dynamic_switch.insert(std::make_pair("cim:GovGAST1.gv1", &assign_GovGAST1_gv1)); - dynamic_switch.insert(std::make_pair("cim:GovGAST1.gv2", &assign_GovGAST1_gv2)); - dynamic_switch.insert(std::make_pair("cim:GovGAST1.gv3", &assign_GovGAST1_gv3)); - dynamic_switch.insert(std::make_pair("cim:GovGAST1.gv4", &assign_GovGAST1_gv4)); - dynamic_switch.insert(std::make_pair("cim:GovGAST1.gv5", &assign_GovGAST1_gv5)); - dynamic_switch.insert(std::make_pair("cim:GovGAST1.gv6", &assign_GovGAST1_gv6)); - dynamic_switch.insert(std::make_pair("cim:GovGAST1.ka", &assign_GovGAST1_ka)); - dynamic_switch.insert(std::make_pair("cim:GovGAST1.kt", &assign_GovGAST1_kt)); - dynamic_switch.insert(std::make_pair("cim:GovGAST1.lmax", &assign_GovGAST1_lmax)); - dynamic_switch.insert(std::make_pair("cim:GovGAST1.loadinc", &assign_GovGAST1_loadinc)); - dynamic_switch.insert(std::make_pair("cim:GovGAST1.ltrate", &assign_GovGAST1_ltrate)); - dynamic_switch.insert(std::make_pair("cim:GovGAST1.mwbase", &assign_GovGAST1_mwbase)); - dynamic_switch.insert(std::make_pair("cim:GovGAST1.pgv1", &assign_GovGAST1_pgv1)); - dynamic_switch.insert(std::make_pair("cim:GovGAST1.pgv2", &assign_GovGAST1_pgv2)); - dynamic_switch.insert(std::make_pair("cim:GovGAST1.pgv3", &assign_GovGAST1_pgv3)); - dynamic_switch.insert(std::make_pair("cim:GovGAST1.pgv4", &assign_GovGAST1_pgv4)); - dynamic_switch.insert(std::make_pair("cim:GovGAST1.pgv5", &assign_GovGAST1_pgv5)); - dynamic_switch.insert(std::make_pair("cim:GovGAST1.pgv6", &assign_GovGAST1_pgv6)); - dynamic_switch.insert(std::make_pair("cim:GovGAST1.r", &assign_GovGAST1_r)); - dynamic_switch.insert(std::make_pair("cim:GovGAST1.rmax", &assign_GovGAST1_rmax)); - dynamic_switch.insert(std::make_pair("cim:GovGAST1.t1", &assign_GovGAST1_t1)); - dynamic_switch.insert(std::make_pair("cim:GovGAST1.t2", &assign_GovGAST1_t2)); - dynamic_switch.insert(std::make_pair("cim:GovGAST1.t3", &assign_GovGAST1_t3)); - dynamic_switch.insert(std::make_pair("cim:GovGAST1.t4", &assign_GovGAST1_t4)); - dynamic_switch.insert(std::make_pair("cim:GovGAST1.t5", &assign_GovGAST1_t5)); - dynamic_switch.insert(std::make_pair("cim:GovGAST1.tltr", &assign_GovGAST1_tltr)); - dynamic_switch.insert(std::make_pair("cim:GovGAST1.vmax", &assign_GovGAST1_vmax)); - dynamic_switch.insert(std::make_pair("cim:GovGAST1.vmin", &assign_GovGAST1_vmin)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV3.k", &assign_GovSteamFV3_k)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV3.k1", &assign_GovSteamFV3_k1)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV3.k2", &assign_GovSteamFV3_k2)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV3.k3", &assign_GovSteamFV3_k3)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV3.mwbase", &assign_GovSteamFV3_mwbase)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV3.pmax", &assign_GovSteamFV3_pmax)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV3.pmin", &assign_GovSteamFV3_pmin)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV3.prmax", &assign_GovSteamFV3_prmax)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV3.t1", &assign_GovSteamFV3_t1)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV3.t2", &assign_GovSteamFV3_t2)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV3.t3", &assign_GovSteamFV3_t3)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV3.t4", &assign_GovSteamFV3_t4)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV3.t5", &assign_GovSteamFV3_t5)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV3.t6", &assign_GovSteamFV3_t6)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV3.ta", &assign_GovSteamFV3_ta)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV3.tb", &assign_GovSteamFV3_tb)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV3.tc", &assign_GovSteamFV3_tc)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV3.uc", &assign_GovSteamFV3_uc)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV3.uo", &assign_GovSteamFV3_uo)); - dynamic_switch.insert(std::make_pair("cim:GovHydro1.at", &assign_GovHydro1_at)); - dynamic_switch.insert(std::make_pair("cim:GovHydro1.dturb", &assign_GovHydro1_dturb)); - dynamic_switch.insert(std::make_pair("cim:GovHydro1.gmax", &assign_GovHydro1_gmax)); - dynamic_switch.insert(std::make_pair("cim:GovHydro1.gmin", &assign_GovHydro1_gmin)); - dynamic_switch.insert(std::make_pair("cim:GovHydro1.hdam", &assign_GovHydro1_hdam)); - dynamic_switch.insert(std::make_pair("cim:GovHydro1.mwbase", &assign_GovHydro1_mwbase)); - dynamic_switch.insert(std::make_pair("cim:GovHydro1.qnl", &assign_GovHydro1_qnl)); - dynamic_switch.insert(std::make_pair("cim:GovHydro1.rperm", &assign_GovHydro1_rperm)); - dynamic_switch.insert(std::make_pair("cim:GovHydro1.rtemp", &assign_GovHydro1_rtemp)); - dynamic_switch.insert(std::make_pair("cim:GovHydro1.tf", &assign_GovHydro1_tf)); - dynamic_switch.insert(std::make_pair("cim:GovHydro1.tg", &assign_GovHydro1_tg)); - dynamic_switch.insert(std::make_pair("cim:GovHydro1.tr", &assign_GovHydro1_tr)); - dynamic_switch.insert(std::make_pair("cim:GovHydro1.tw", &assign_GovHydro1_tw)); - dynamic_switch.insert(std::make_pair("cim:GovHydro1.velm", &assign_GovHydro1_velm)); - dynamic_switch.insert(std::make_pair("cim:GovHydro2.aturb", &assign_GovHydro2_aturb)); - dynamic_switch.insert(std::make_pair("cim:GovHydro2.bturb", &assign_GovHydro2_bturb)); - dynamic_switch.insert(std::make_pair("cim:GovHydro2.db1", &assign_GovHydro2_db1)); - dynamic_switch.insert(std::make_pair("cim:GovHydro2.db2", &assign_GovHydro2_db2)); - dynamic_switch.insert(std::make_pair("cim:GovHydro2.eps", &assign_GovHydro2_eps)); - dynamic_switch.insert(std::make_pair("cim:GovHydro2.gv1", &assign_GovHydro2_gv1)); - dynamic_switch.insert(std::make_pair("cim:GovHydro2.gv2", &assign_GovHydro2_gv2)); - dynamic_switch.insert(std::make_pair("cim:GovHydro2.gv3", &assign_GovHydro2_gv3)); - dynamic_switch.insert(std::make_pair("cim:GovHydro2.gv4", &assign_GovHydro2_gv4)); - dynamic_switch.insert(std::make_pair("cim:GovHydro2.gv5", &assign_GovHydro2_gv5)); - dynamic_switch.insert(std::make_pair("cim:GovHydro2.gv6", &assign_GovHydro2_gv6)); - dynamic_switch.insert(std::make_pair("cim:GovHydro2.kturb", &assign_GovHydro2_kturb)); - dynamic_switch.insert(std::make_pair("cim:GovHydro2.mwbase", &assign_GovHydro2_mwbase)); - dynamic_switch.insert(std::make_pair("cim:GovHydro2.pgv1", &assign_GovHydro2_pgv1)); - dynamic_switch.insert(std::make_pair("cim:GovHydro2.pgv2", &assign_GovHydro2_pgv2)); - dynamic_switch.insert(std::make_pair("cim:GovHydro2.pgv3", &assign_GovHydro2_pgv3)); - dynamic_switch.insert(std::make_pair("cim:GovHydro2.pgv4", &assign_GovHydro2_pgv4)); - dynamic_switch.insert(std::make_pair("cim:GovHydro2.pgv5", &assign_GovHydro2_pgv5)); - dynamic_switch.insert(std::make_pair("cim:GovHydro2.pgv6", &assign_GovHydro2_pgv6)); - dynamic_switch.insert(std::make_pair("cim:GovHydro2.pmax", &assign_GovHydro2_pmax)); - dynamic_switch.insert(std::make_pair("cim:GovHydro2.pmin", &assign_GovHydro2_pmin)); - dynamic_switch.insert(std::make_pair("cim:GovHydro2.rperm", &assign_GovHydro2_rperm)); - dynamic_switch.insert(std::make_pair("cim:GovHydro2.rtemp", &assign_GovHydro2_rtemp)); - dynamic_switch.insert(std::make_pair("cim:GovHydro2.tg", &assign_GovHydro2_tg)); - dynamic_switch.insert(std::make_pair("cim:GovHydro2.tp", &assign_GovHydro2_tp)); - dynamic_switch.insert(std::make_pair("cim:GovHydro2.tr", &assign_GovHydro2_tr)); - dynamic_switch.insert(std::make_pair("cim:GovHydro2.tw", &assign_GovHydro2_tw)); - dynamic_switch.insert(std::make_pair("cim:GovHydro2.uc", &assign_GovHydro2_uc)); - dynamic_switch.insert(std::make_pair("cim:GovHydro2.uo", &assign_GovHydro2_uo)); - dynamic_switch.insert(std::make_pair("cim:GovCT1.aset", &assign_GovCT1_aset)); - dynamic_switch.insert(std::make_pair("cim:GovCT1.db", &assign_GovCT1_db)); - dynamic_switch.insert(std::make_pair("cim:GovCT1.dm", &assign_GovCT1_dm)); - dynamic_switch.insert(std::make_pair("cim:GovCT1.ka", &assign_GovCT1_ka)); - dynamic_switch.insert(std::make_pair("cim:GovCT1.kdgov", &assign_GovCT1_kdgov)); - dynamic_switch.insert(std::make_pair("cim:GovCT1.kigov", &assign_GovCT1_kigov)); - dynamic_switch.insert(std::make_pair("cim:GovCT1.kiload", &assign_GovCT1_kiload)); - dynamic_switch.insert(std::make_pair("cim:GovCT1.kimw", &assign_GovCT1_kimw)); - dynamic_switch.insert(std::make_pair("cim:GovCT1.kpgov", &assign_GovCT1_kpgov)); - dynamic_switch.insert(std::make_pair("cim:GovCT1.kpload", &assign_GovCT1_kpload)); - dynamic_switch.insert(std::make_pair("cim:GovCT1.kturb", &assign_GovCT1_kturb)); - dynamic_switch.insert(std::make_pair("cim:GovCT1.ldref", &assign_GovCT1_ldref)); - dynamic_switch.insert(std::make_pair("cim:GovCT1.maxerr", &assign_GovCT1_maxerr)); - dynamic_switch.insert(std::make_pair("cim:GovCT1.minerr", &assign_GovCT1_minerr)); - dynamic_switch.insert(std::make_pair("cim:GovCT1.mwbase", &assign_GovCT1_mwbase)); - dynamic_switch.insert(std::make_pair("cim:GovCT1.r", &assign_GovCT1_r)); - dynamic_switch.insert(std::make_pair("cim:GovCT1.rclose", &assign_GovCT1_rclose)); - dynamic_switch.insert(std::make_pair("cim:GovCT1.rdown", &assign_GovCT1_rdown)); - dynamic_switch.insert(std::make_pair("cim:GovCT1.ropen", &assign_GovCT1_ropen)); - dynamic_switch.insert(std::make_pair("cim:GovCT1.rselect", &assign_GovCT1_rselect)); - dynamic_switch.insert(std::make_pair("cim:GovCT1.rup", &assign_GovCT1_rup)); - dynamic_switch.insert(std::make_pair("cim:GovCT1.ta", &assign_GovCT1_ta)); - dynamic_switch.insert(std::make_pair("cim:GovCT1.tact", &assign_GovCT1_tact)); - dynamic_switch.insert(std::make_pair("cim:GovCT1.tb", &assign_GovCT1_tb)); - dynamic_switch.insert(std::make_pair("cim:GovCT1.tc", &assign_GovCT1_tc)); - dynamic_switch.insert(std::make_pair("cim:GovCT1.tdgov", &assign_GovCT1_tdgov)); - dynamic_switch.insert(std::make_pair("cim:GovCT1.teng", &assign_GovCT1_teng)); - dynamic_switch.insert(std::make_pair("cim:GovCT1.tfload", &assign_GovCT1_tfload)); - dynamic_switch.insert(std::make_pair("cim:GovCT1.tpelec", &assign_GovCT1_tpelec)); - dynamic_switch.insert(std::make_pair("cim:GovCT1.tsa", &assign_GovCT1_tsa)); - dynamic_switch.insert(std::make_pair("cim:GovCT1.tsb", &assign_GovCT1_tsb)); - dynamic_switch.insert(std::make_pair("cim:GovCT1.vmax", &assign_GovCT1_vmax)); - dynamic_switch.insert(std::make_pair("cim:GovCT1.vmin", &assign_GovCT1_vmin)); - dynamic_switch.insert(std::make_pair("cim:GovCT1.wfnl", &assign_GovCT1_wfnl)); - dynamic_switch.insert(std::make_pair("cim:GovCT1.wfspd", &assign_GovCT1_wfspd)); - dynamic_switch.insert(std::make_pair("cim:GovHydroIEEE0.k", &assign_GovHydroIEEE0_k)); - dynamic_switch.insert(std::make_pair("cim:GovHydroIEEE0.mwbase", &assign_GovHydroIEEE0_mwbase)); - dynamic_switch.insert(std::make_pair("cim:GovHydroIEEE0.pmax", &assign_GovHydroIEEE0_pmax)); - dynamic_switch.insert(std::make_pair("cim:GovHydroIEEE0.pmin", &assign_GovHydroIEEE0_pmin)); - dynamic_switch.insert(std::make_pair("cim:GovHydroIEEE0.t1", &assign_GovHydroIEEE0_t1)); - dynamic_switch.insert(std::make_pair("cim:GovHydroIEEE0.t2", &assign_GovHydroIEEE0_t2)); - dynamic_switch.insert(std::make_pair("cim:GovHydroIEEE0.t3", &assign_GovHydroIEEE0_t3)); - dynamic_switch.insert(std::make_pair("cim:GovHydroIEEE0.t4", &assign_GovHydroIEEE0_t4)); - dynamic_switch.insert(std::make_pair("cim:GovSteam0.dt", &assign_GovSteam0_dt)); - dynamic_switch.insert(std::make_pair("cim:GovSteam0.mwbase", &assign_GovSteam0_mwbase)); - dynamic_switch.insert(std::make_pair("cim:GovSteam0.r", &assign_GovSteam0_r)); - dynamic_switch.insert(std::make_pair("cim:GovSteam0.t1", &assign_GovSteam0_t1)); - dynamic_switch.insert(std::make_pair("cim:GovSteam0.t2", &assign_GovSteam0_t2)); - dynamic_switch.insert(std::make_pair("cim:GovSteam0.t3", &assign_GovSteam0_t3)); - dynamic_switch.insert(std::make_pair("cim:GovSteam0.vmax", &assign_GovSteam0_vmax)); - dynamic_switch.insert(std::make_pair("cim:GovSteam0.vmin", &assign_GovSteam0_vmin)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV2.dt", &assign_GovSteamFV2_dt)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV2.k", &assign_GovSteamFV2_k)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV2.mwbase", &assign_GovSteamFV2_mwbase)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV2.r", &assign_GovSteamFV2_r)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV2.t1", &assign_GovSteamFV2_t1)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV2.t3", &assign_GovSteamFV2_t3)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV2.ta", &assign_GovSteamFV2_ta)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV2.tb", &assign_GovSteamFV2_tb)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV2.tc", &assign_GovSteamFV2_tc)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV2.ti", &assign_GovSteamFV2_ti)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV2.tt", &assign_GovSteamFV2_tt)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV2.vmax", &assign_GovSteamFV2_vmax)); - dynamic_switch.insert(std::make_pair("cim:GovSteamFV2.vmin", &assign_GovSteamFV2_vmin)); - dynamic_switch.insert(std::make_pair("cim:GovSteamCC.dhp", &assign_GovSteamCC_dhp)); - dynamic_switch.insert(std::make_pair("cim:GovSteamCC.dlp", &assign_GovSteamCC_dlp)); - dynamic_switch.insert(std::make_pair("cim:GovSteamCC.fhp", &assign_GovSteamCC_fhp)); - dynamic_switch.insert(std::make_pair("cim:GovSteamCC.flp", &assign_GovSteamCC_flp)); - dynamic_switch.insert(std::make_pair("cim:GovSteamCC.mwbase", &assign_GovSteamCC_mwbase)); - dynamic_switch.insert(std::make_pair("cim:GovSteamCC.pmaxhp", &assign_GovSteamCC_pmaxhp)); - dynamic_switch.insert(std::make_pair("cim:GovSteamCC.pmaxlp", &assign_GovSteamCC_pmaxlp)); - dynamic_switch.insert(std::make_pair("cim:GovSteamCC.rhp", &assign_GovSteamCC_rhp)); - dynamic_switch.insert(std::make_pair("cim:GovSteamCC.rlp", &assign_GovSteamCC_rlp)); - dynamic_switch.insert(std::make_pair("cim:GovSteamCC.t1hp", &assign_GovSteamCC_t1hp)); - dynamic_switch.insert(std::make_pair("cim:GovSteamCC.t1lp", &assign_GovSteamCC_t1lp)); - dynamic_switch.insert(std::make_pair("cim:GovSteamCC.t3hp", &assign_GovSteamCC_t3hp)); - dynamic_switch.insert(std::make_pair("cim:GovSteamCC.t3lp", &assign_GovSteamCC_t3lp)); - dynamic_switch.insert(std::make_pair("cim:GovSteamCC.t4hp", &assign_GovSteamCC_t4hp)); - dynamic_switch.insert(std::make_pair("cim:GovSteamCC.t4lp", &assign_GovSteamCC_t4lp)); - dynamic_switch.insert(std::make_pair("cim:GovSteamCC.t5hp", &assign_GovSteamCC_t5hp)); - dynamic_switch.insert(std::make_pair("cim:GovSteamCC.t5lp", &assign_GovSteamCC_t5lp)); - dynamic_switch.insert(std::make_pair("cim:GovGAST2.a", &assign_GovGAST2_a)); - dynamic_switch.insert(std::make_pair("cim:GovGAST2.af1", &assign_GovGAST2_af1)); - dynamic_switch.insert(std::make_pair("cim:GovGAST2.af2", &assign_GovGAST2_af2)); - dynamic_switch.insert(std::make_pair("cim:GovGAST2.b", &assign_GovGAST2_b)); - dynamic_switch.insert(std::make_pair("cim:GovGAST2.bf1", &assign_GovGAST2_bf1)); - dynamic_switch.insert(std::make_pair("cim:GovGAST2.bf2", &assign_GovGAST2_bf2)); - dynamic_switch.insert(std::make_pair("cim:GovGAST2.c", &assign_GovGAST2_c)); - dynamic_switch.insert(std::make_pair("cim:GovGAST2.cf2", &assign_GovGAST2_cf2)); - dynamic_switch.insert(std::make_pair("cim:GovGAST2.ecr", &assign_GovGAST2_ecr)); - dynamic_switch.insert(std::make_pair("cim:GovGAST2.etd", &assign_GovGAST2_etd)); - dynamic_switch.insert(std::make_pair("cim:GovGAST2.k3", &assign_GovGAST2_k3)); - dynamic_switch.insert(std::make_pair("cim:GovGAST2.k4", &assign_GovGAST2_k4)); - dynamic_switch.insert(std::make_pair("cim:GovGAST2.k5", &assign_GovGAST2_k5)); - dynamic_switch.insert(std::make_pair("cim:GovGAST2.k6", &assign_GovGAST2_k6)); - dynamic_switch.insert(std::make_pair("cim:GovGAST2.kf", &assign_GovGAST2_kf)); - dynamic_switch.insert(std::make_pair("cim:GovGAST2.mwbase", &assign_GovGAST2_mwbase)); - dynamic_switch.insert(std::make_pair("cim:GovGAST2.t", &assign_GovGAST2_t)); - dynamic_switch.insert(std::make_pair("cim:GovGAST2.t3", &assign_GovGAST2_t3)); - dynamic_switch.insert(std::make_pair("cim:GovGAST2.t4", &assign_GovGAST2_t4)); - dynamic_switch.insert(std::make_pair("cim:GovGAST2.t5", &assign_GovGAST2_t5)); - dynamic_switch.insert(std::make_pair("cim:GovGAST2.tc", &assign_GovGAST2_tc)); - dynamic_switch.insert(std::make_pair("cim:GovGAST2.tcd", &assign_GovGAST2_tcd)); - dynamic_switch.insert(std::make_pair("cim:GovGAST2.tf", &assign_GovGAST2_tf)); - dynamic_switch.insert(std::make_pair("cim:GovGAST2.tmax", &assign_GovGAST2_tmax)); - dynamic_switch.insert(std::make_pair("cim:GovGAST2.tmin", &assign_GovGAST2_tmin)); - dynamic_switch.insert(std::make_pair("cim:GovGAST2.tr", &assign_GovGAST2_tr)); - dynamic_switch.insert(std::make_pair("cim:GovGAST2.trate", &assign_GovGAST2_trate)); - dynamic_switch.insert(std::make_pair("cim:GovGAST2.tt", &assign_GovGAST2_tt)); - dynamic_switch.insert(std::make_pair("cim:GovGAST2.w", &assign_GovGAST2_w)); - dynamic_switch.insert(std::make_pair("cim:GovGAST2.x", &assign_GovGAST2_x)); - dynamic_switch.insert(std::make_pair("cim:GovGAST2.y", &assign_GovGAST2_y)); - dynamic_switch.insert(std::make_pair("cim:GovGAST2.z", &assign_GovGAST2_z)); - dynamic_switch.insert(std::make_pair("cim:GovCT2.aset", &assign_GovCT2_aset)); - dynamic_switch.insert(std::make_pair("cim:GovCT2.db", &assign_GovCT2_db)); - dynamic_switch.insert(std::make_pair("cim:GovCT2.dm", &assign_GovCT2_dm)); - dynamic_switch.insert(std::make_pair("cim:GovCT2.flim1", &assign_GovCT2_flim1)); - dynamic_switch.insert(std::make_pair("cim:GovCT2.flim10", &assign_GovCT2_flim10)); - dynamic_switch.insert(std::make_pair("cim:GovCT2.flim2", &assign_GovCT2_flim2)); - dynamic_switch.insert(std::make_pair("cim:GovCT2.flim3", &assign_GovCT2_flim3)); - dynamic_switch.insert(std::make_pair("cim:GovCT2.flim4", &assign_GovCT2_flim4)); - dynamic_switch.insert(std::make_pair("cim:GovCT2.flim5", &assign_GovCT2_flim5)); - dynamic_switch.insert(std::make_pair("cim:GovCT2.flim6", &assign_GovCT2_flim6)); - dynamic_switch.insert(std::make_pair("cim:GovCT2.flim7", &assign_GovCT2_flim7)); - dynamic_switch.insert(std::make_pair("cim:GovCT2.flim8", &assign_GovCT2_flim8)); - dynamic_switch.insert(std::make_pair("cim:GovCT2.flim9", &assign_GovCT2_flim9)); - dynamic_switch.insert(std::make_pair("cim:GovCT2.ka", &assign_GovCT2_ka)); - dynamic_switch.insert(std::make_pair("cim:GovCT2.kdgov", &assign_GovCT2_kdgov)); - dynamic_switch.insert(std::make_pair("cim:GovCT2.kigov", &assign_GovCT2_kigov)); - dynamic_switch.insert(std::make_pair("cim:GovCT2.kiload", &assign_GovCT2_kiload)); - dynamic_switch.insert(std::make_pair("cim:GovCT2.kimw", &assign_GovCT2_kimw)); - dynamic_switch.insert(std::make_pair("cim:GovCT2.kpgov", &assign_GovCT2_kpgov)); - dynamic_switch.insert(std::make_pair("cim:GovCT2.kpload", &assign_GovCT2_kpload)); - dynamic_switch.insert(std::make_pair("cim:GovCT2.kturb", &assign_GovCT2_kturb)); - dynamic_switch.insert(std::make_pair("cim:GovCT2.ldref", &assign_GovCT2_ldref)); - dynamic_switch.insert(std::make_pair("cim:GovCT2.maxerr", &assign_GovCT2_maxerr)); - dynamic_switch.insert(std::make_pair("cim:GovCT2.minerr", &assign_GovCT2_minerr)); - dynamic_switch.insert(std::make_pair("cim:GovCT2.mwbase", &assign_GovCT2_mwbase)); - dynamic_switch.insert(std::make_pair("cim:GovCT2.plim1", &assign_GovCT2_plim1)); - dynamic_switch.insert(std::make_pair("cim:GovCT2.plim10", &assign_GovCT2_plim10)); - dynamic_switch.insert(std::make_pair("cim:GovCT2.plim2", &assign_GovCT2_plim2)); - dynamic_switch.insert(std::make_pair("cim:GovCT2.plim3", &assign_GovCT2_plim3)); - dynamic_switch.insert(std::make_pair("cim:GovCT2.plim4", &assign_GovCT2_plim4)); - dynamic_switch.insert(std::make_pair("cim:GovCT2.plim5", &assign_GovCT2_plim5)); - dynamic_switch.insert(std::make_pair("cim:GovCT2.plim6", &assign_GovCT2_plim6)); - dynamic_switch.insert(std::make_pair("cim:GovCT2.plim7", &assign_GovCT2_plim7)); - dynamic_switch.insert(std::make_pair("cim:GovCT2.plim8", &assign_GovCT2_plim8)); - dynamic_switch.insert(std::make_pair("cim:GovCT2.plim9", &assign_GovCT2_plim9)); - dynamic_switch.insert(std::make_pair("cim:GovCT2.prate", &assign_GovCT2_prate)); - dynamic_switch.insert(std::make_pair("cim:GovCT2.r", &assign_GovCT2_r)); - dynamic_switch.insert(std::make_pair("cim:GovCT2.rclose", &assign_GovCT2_rclose)); - dynamic_switch.insert(std::make_pair("cim:GovCT2.rdown", &assign_GovCT2_rdown)); - dynamic_switch.insert(std::make_pair("cim:GovCT2.ropen", &assign_GovCT2_ropen)); - dynamic_switch.insert(std::make_pair("cim:GovCT2.rselect", &assign_GovCT2_rselect)); - dynamic_switch.insert(std::make_pair("cim:GovCT2.rup", &assign_GovCT2_rup)); - dynamic_switch.insert(std::make_pair("cim:GovCT2.ta", &assign_GovCT2_ta)); - dynamic_switch.insert(std::make_pair("cim:GovCT2.tact", &assign_GovCT2_tact)); - dynamic_switch.insert(std::make_pair("cim:GovCT2.tb", &assign_GovCT2_tb)); - dynamic_switch.insert(std::make_pair("cim:GovCT2.tc", &assign_GovCT2_tc)); - dynamic_switch.insert(std::make_pair("cim:GovCT2.tdgov", &assign_GovCT2_tdgov)); - dynamic_switch.insert(std::make_pair("cim:GovCT2.teng", &assign_GovCT2_teng)); - dynamic_switch.insert(std::make_pair("cim:GovCT2.tfload", &assign_GovCT2_tfload)); - dynamic_switch.insert(std::make_pair("cim:GovCT2.tpelec", &assign_GovCT2_tpelec)); - dynamic_switch.insert(std::make_pair("cim:GovCT2.tsa", &assign_GovCT2_tsa)); - dynamic_switch.insert(std::make_pair("cim:GovCT2.tsb", &assign_GovCT2_tsb)); - dynamic_switch.insert(std::make_pair("cim:GovCT2.vmax", &assign_GovCT2_vmax)); - dynamic_switch.insert(std::make_pair("cim:GovCT2.vmin", &assign_GovCT2_vmin)); - dynamic_switch.insert(std::make_pair("cim:GovCT2.wfnl", &assign_GovCT2_wfnl)); - dynamic_switch.insert(std::make_pair("cim:GovCT2.wfspd", &assign_GovCT2_wfspd)); - dynamic_switch.insert(std::make_pair("cim:Area.multiplier", &assign_Area_multiplier)); - dynamic_switch.insert(std::make_pair("cim:Length.multiplier", &assign_Length_multiplier)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPelton.av0", &assign_GovHydroPelton_av0)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPelton.av1", &assign_GovHydroPelton_av1)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPelton.bp", &assign_GovHydroPelton_bp)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPelton.db1", &assign_GovHydroPelton_db1)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPelton.db2", &assign_GovHydroPelton_db2)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPelton.h1", &assign_GovHydroPelton_h1)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPelton.h2", &assign_GovHydroPelton_h2)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPelton.hn", &assign_GovHydroPelton_hn)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPelton.kc", &assign_GovHydroPelton_kc)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPelton.kg", &assign_GovHydroPelton_kg)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPelton.qc0", &assign_GovHydroPelton_qc0)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPelton.qn", &assign_GovHydroPelton_qn)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPelton.simplifiedPelton", &assign_GovHydroPelton_simplifiedPelton)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPelton.staticCompensating", &assign_GovHydroPelton_staticCompensating)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPelton.ta", &assign_GovHydroPelton_ta)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPelton.ts", &assign_GovHydroPelton_ts)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPelton.tv", &assign_GovHydroPelton_tv)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPelton.twnc", &assign_GovHydroPelton_twnc)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPelton.twng", &assign_GovHydroPelton_twng)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPelton.tx", &assign_GovHydroPelton_tx)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPelton.va", &assign_GovHydroPelton_va)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPelton.valvmax", &assign_GovHydroPelton_valvmax)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPelton.valvmin", &assign_GovHydroPelton_valvmin)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPelton.vav", &assign_GovHydroPelton_vav)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPelton.vc", &assign_GovHydroPelton_vc)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPelton.vcv", &assign_GovHydroPelton_vcv)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPelton.waterTunnelSurgeChamberSimulation", &assign_GovHydroPelton_waterTunnelSurgeChamberSimulation)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPelton.zsfc", &assign_GovHydroPelton_zsfc)); - dynamic_switch.insert(std::make_pair("cim:GovHydroFrancis.am", &assign_GovHydroFrancis_am)); - dynamic_switch.insert(std::make_pair("cim:GovHydroFrancis.av0", &assign_GovHydroFrancis_av0)); - dynamic_switch.insert(std::make_pair("cim:GovHydroFrancis.av1", &assign_GovHydroFrancis_av1)); - dynamic_switch.insert(std::make_pair("cim:GovHydroFrancis.bp", &assign_GovHydroFrancis_bp)); - dynamic_switch.insert(std::make_pair("cim:GovHydroFrancis.db1", &assign_GovHydroFrancis_db1)); - dynamic_switch.insert(std::make_pair("cim:GovHydroFrancis.etamax", &assign_GovHydroFrancis_etamax)); - dynamic_switch.insert(std::make_pair("cim:GovHydroFrancis.governorControl", &assign_GovHydroFrancis_governorControl)); - dynamic_switch.insert(std::make_pair("cim:GovHydroFrancis.h1", &assign_GovHydroFrancis_h1)); - dynamic_switch.insert(std::make_pair("cim:GovHydroFrancis.h2", &assign_GovHydroFrancis_h2)); - dynamic_switch.insert(std::make_pair("cim:GovHydroFrancis.hn", &assign_GovHydroFrancis_hn)); - dynamic_switch.insert(std::make_pair("cim:GovHydroFrancis.kc", &assign_GovHydroFrancis_kc)); - dynamic_switch.insert(std::make_pair("cim:GovHydroFrancis.kg", &assign_GovHydroFrancis_kg)); - dynamic_switch.insert(std::make_pair("cim:GovHydroFrancis.kt", &assign_GovHydroFrancis_kt)); - dynamic_switch.insert(std::make_pair("cim:GovHydroFrancis.qc0", &assign_GovHydroFrancis_qc0)); - dynamic_switch.insert(std::make_pair("cim:GovHydroFrancis.qn", &assign_GovHydroFrancis_qn)); - dynamic_switch.insert(std::make_pair("cim:GovHydroFrancis.ta", &assign_GovHydroFrancis_ta)); - dynamic_switch.insert(std::make_pair("cim:GovHydroFrancis.td", &assign_GovHydroFrancis_td)); - dynamic_switch.insert(std::make_pair("cim:GovHydroFrancis.ts", &assign_GovHydroFrancis_ts)); - dynamic_switch.insert(std::make_pair("cim:GovHydroFrancis.twnc", &assign_GovHydroFrancis_twnc)); - dynamic_switch.insert(std::make_pair("cim:GovHydroFrancis.twng", &assign_GovHydroFrancis_twng)); - dynamic_switch.insert(std::make_pair("cim:GovHydroFrancis.tx", &assign_GovHydroFrancis_tx)); - dynamic_switch.insert(std::make_pair("cim:GovHydroFrancis.va", &assign_GovHydroFrancis_va)); - dynamic_switch.insert(std::make_pair("cim:GovHydroFrancis.valvmax", &assign_GovHydroFrancis_valvmax)); - dynamic_switch.insert(std::make_pair("cim:GovHydroFrancis.valvmin", &assign_GovHydroFrancis_valvmin)); - dynamic_switch.insert(std::make_pair("cim:GovHydroFrancis.vc", &assign_GovHydroFrancis_vc)); - dynamic_switch.insert(std::make_pair("cim:GovHydroFrancis.waterTunnelSurgeChamberSimulation", &assign_GovHydroFrancis_waterTunnelSurgeChamberSimulation)); - dynamic_switch.insert(std::make_pair("cim:GovHydroFrancis.zsfc", &assign_GovHydroFrancis_zsfc)); - dynamic_switch.insert(std::make_pair("cim:GovHydroR.at", &assign_GovHydroR_at)); - dynamic_switch.insert(std::make_pair("cim:GovHydroR.db1", &assign_GovHydroR_db1)); - dynamic_switch.insert(std::make_pair("cim:GovHydroR.db2", &assign_GovHydroR_db2)); - dynamic_switch.insert(std::make_pair("cim:GovHydroR.dturb", &assign_GovHydroR_dturb)); - dynamic_switch.insert(std::make_pair("cim:GovHydroR.eps", &assign_GovHydroR_eps)); - dynamic_switch.insert(std::make_pair("cim:GovHydroR.gmax", &assign_GovHydroR_gmax)); - dynamic_switch.insert(std::make_pair("cim:GovHydroR.gmin", &assign_GovHydroR_gmin)); - dynamic_switch.insert(std::make_pair("cim:GovHydroR.gv1", &assign_GovHydroR_gv1)); - dynamic_switch.insert(std::make_pair("cim:GovHydroR.gv2", &assign_GovHydroR_gv2)); - dynamic_switch.insert(std::make_pair("cim:GovHydroR.gv3", &assign_GovHydroR_gv3)); - dynamic_switch.insert(std::make_pair("cim:GovHydroR.gv4", &assign_GovHydroR_gv4)); - dynamic_switch.insert(std::make_pair("cim:GovHydroR.gv5", &assign_GovHydroR_gv5)); - dynamic_switch.insert(std::make_pair("cim:GovHydroR.gv6", &assign_GovHydroR_gv6)); - dynamic_switch.insert(std::make_pair("cim:GovHydroR.h0", &assign_GovHydroR_h0)); - dynamic_switch.insert(std::make_pair("cim:GovHydroR.inputSignal", &assign_GovHydroR_inputSignal)); - dynamic_switch.insert(std::make_pair("cim:GovHydroR.kg", &assign_GovHydroR_kg)); - dynamic_switch.insert(std::make_pair("cim:GovHydroR.ki", &assign_GovHydroR_ki)); - dynamic_switch.insert(std::make_pair("cim:GovHydroR.mwbase", &assign_GovHydroR_mwbase)); - dynamic_switch.insert(std::make_pair("cim:GovHydroR.pgv1", &assign_GovHydroR_pgv1)); - dynamic_switch.insert(std::make_pair("cim:GovHydroR.pgv2", &assign_GovHydroR_pgv2)); - dynamic_switch.insert(std::make_pair("cim:GovHydroR.pgv3", &assign_GovHydroR_pgv3)); - dynamic_switch.insert(std::make_pair("cim:GovHydroR.pgv4", &assign_GovHydroR_pgv4)); - dynamic_switch.insert(std::make_pair("cim:GovHydroR.pgv5", &assign_GovHydroR_pgv5)); - dynamic_switch.insert(std::make_pair("cim:GovHydroR.pgv6", &assign_GovHydroR_pgv6)); - dynamic_switch.insert(std::make_pair("cim:GovHydroR.pmax", &assign_GovHydroR_pmax)); - dynamic_switch.insert(std::make_pair("cim:GovHydroR.pmin", &assign_GovHydroR_pmin)); - dynamic_switch.insert(std::make_pair("cim:GovHydroR.qnl", &assign_GovHydroR_qnl)); - dynamic_switch.insert(std::make_pair("cim:GovHydroR.r", &assign_GovHydroR_r)); - dynamic_switch.insert(std::make_pair("cim:GovHydroR.t1", &assign_GovHydroR_t1)); - dynamic_switch.insert(std::make_pair("cim:GovHydroR.t2", &assign_GovHydroR_t2)); - dynamic_switch.insert(std::make_pair("cim:GovHydroR.t3", &assign_GovHydroR_t3)); - dynamic_switch.insert(std::make_pair("cim:GovHydroR.t4", &assign_GovHydroR_t4)); - dynamic_switch.insert(std::make_pair("cim:GovHydroR.t5", &assign_GovHydroR_t5)); - dynamic_switch.insert(std::make_pair("cim:GovHydroR.t6", &assign_GovHydroR_t6)); - dynamic_switch.insert(std::make_pair("cim:GovHydroR.t7", &assign_GovHydroR_t7)); - dynamic_switch.insert(std::make_pair("cim:GovHydroR.t8", &assign_GovHydroR_t8)); - dynamic_switch.insert(std::make_pair("cim:GovHydroR.td", &assign_GovHydroR_td)); - dynamic_switch.insert(std::make_pair("cim:GovHydroR.tp", &assign_GovHydroR_tp)); - dynamic_switch.insert(std::make_pair("cim:GovHydroR.tt", &assign_GovHydroR_tt)); - dynamic_switch.insert(std::make_pair("cim:GovHydroR.tw", &assign_GovHydroR_tw)); - dynamic_switch.insert(std::make_pair("cim:GovHydroR.velcl", &assign_GovHydroR_velcl)); - dynamic_switch.insert(std::make_pair("cim:GovHydroR.velop", &assign_GovHydroR_velop)); - dynamic_switch.insert(std::make_pair("cim:GovGASTWD.a", &assign_GovGASTWD_a)); - dynamic_switch.insert(std::make_pair("cim:GovGASTWD.af1", &assign_GovGASTWD_af1)); - dynamic_switch.insert(std::make_pair("cim:GovGASTWD.af2", &assign_GovGASTWD_af2)); - dynamic_switch.insert(std::make_pair("cim:GovGASTWD.b", &assign_GovGASTWD_b)); - dynamic_switch.insert(std::make_pair("cim:GovGASTWD.bf1", &assign_GovGASTWD_bf1)); - dynamic_switch.insert(std::make_pair("cim:GovGASTWD.bf2", &assign_GovGASTWD_bf2)); - dynamic_switch.insert(std::make_pair("cim:GovGASTWD.c", &assign_GovGASTWD_c)); - dynamic_switch.insert(std::make_pair("cim:GovGASTWD.cf2", &assign_GovGASTWD_cf2)); - dynamic_switch.insert(std::make_pair("cim:GovGASTWD.ecr", &assign_GovGASTWD_ecr)); - dynamic_switch.insert(std::make_pair("cim:GovGASTWD.etd", &assign_GovGASTWD_etd)); - dynamic_switch.insert(std::make_pair("cim:GovGASTWD.k3", &assign_GovGASTWD_k3)); - dynamic_switch.insert(std::make_pair("cim:GovGASTWD.k4", &assign_GovGASTWD_k4)); - dynamic_switch.insert(std::make_pair("cim:GovGASTWD.k5", &assign_GovGASTWD_k5)); - dynamic_switch.insert(std::make_pair("cim:GovGASTWD.k6", &assign_GovGASTWD_k6)); - dynamic_switch.insert(std::make_pair("cim:GovGASTWD.kd", &assign_GovGASTWD_kd)); - dynamic_switch.insert(std::make_pair("cim:GovGASTWD.kdroop", &assign_GovGASTWD_kdroop)); - dynamic_switch.insert(std::make_pair("cim:GovGASTWD.kf", &assign_GovGASTWD_kf)); - dynamic_switch.insert(std::make_pair("cim:GovGASTWD.ki", &assign_GovGASTWD_ki)); - dynamic_switch.insert(std::make_pair("cim:GovGASTWD.kp", &assign_GovGASTWD_kp)); - dynamic_switch.insert(std::make_pair("cim:GovGASTWD.mwbase", &assign_GovGASTWD_mwbase)); - dynamic_switch.insert(std::make_pair("cim:GovGASTWD.t", &assign_GovGASTWD_t)); - dynamic_switch.insert(std::make_pair("cim:GovGASTWD.t3", &assign_GovGASTWD_t3)); - dynamic_switch.insert(std::make_pair("cim:GovGASTWD.t4", &assign_GovGASTWD_t4)); - dynamic_switch.insert(std::make_pair("cim:GovGASTWD.t5", &assign_GovGASTWD_t5)); - dynamic_switch.insert(std::make_pair("cim:GovGASTWD.tc", &assign_GovGASTWD_tc)); - dynamic_switch.insert(std::make_pair("cim:GovGASTWD.tcd", &assign_GovGASTWD_tcd)); - dynamic_switch.insert(std::make_pair("cim:GovGASTWD.td", &assign_GovGASTWD_td)); - dynamic_switch.insert(std::make_pair("cim:GovGASTWD.tf", &assign_GovGASTWD_tf)); - dynamic_switch.insert(std::make_pair("cim:GovGASTWD.tmax", &assign_GovGASTWD_tmax)); - dynamic_switch.insert(std::make_pair("cim:GovGASTWD.tmin", &assign_GovGASTWD_tmin)); - dynamic_switch.insert(std::make_pair("cim:GovGASTWD.tr", &assign_GovGASTWD_tr)); - dynamic_switch.insert(std::make_pair("cim:GovGASTWD.trate", &assign_GovGASTWD_trate)); - dynamic_switch.insert(std::make_pair("cim:GovGASTWD.tt", &assign_GovGASTWD_tt)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPID.aturb", &assign_GovHydroPID_aturb)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPID.bturb", &assign_GovHydroPID_bturb)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPID.db1", &assign_GovHydroPID_db1)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPID.db2", &assign_GovHydroPID_db2)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPID.eps", &assign_GovHydroPID_eps)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPID.gv1", &assign_GovHydroPID_gv1)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPID.gv2", &assign_GovHydroPID_gv2)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPID.gv3", &assign_GovHydroPID_gv3)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPID.gv4", &assign_GovHydroPID_gv4)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPID.gv5", &assign_GovHydroPID_gv5)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPID.gv6", &assign_GovHydroPID_gv6)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPID.inputSignal", &assign_GovHydroPID_inputSignal)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPID.kd", &assign_GovHydroPID_kd)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPID.kg", &assign_GovHydroPID_kg)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPID.ki", &assign_GovHydroPID_ki)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPID.kp", &assign_GovHydroPID_kp)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPID.mwbase", &assign_GovHydroPID_mwbase)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPID.pgv1", &assign_GovHydroPID_pgv1)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPID.pgv2", &assign_GovHydroPID_pgv2)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPID.pgv3", &assign_GovHydroPID_pgv3)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPID.pgv4", &assign_GovHydroPID_pgv4)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPID.pgv5", &assign_GovHydroPID_pgv5)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPID.pgv6", &assign_GovHydroPID_pgv6)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPID.pmax", &assign_GovHydroPID_pmax)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPID.pmin", &assign_GovHydroPID_pmin)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPID.r", &assign_GovHydroPID_r)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPID.td", &assign_GovHydroPID_td)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPID.tf", &assign_GovHydroPID_tf)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPID.tp", &assign_GovHydroPID_tp)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPID.tt", &assign_GovHydroPID_tt)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPID.tturb", &assign_GovHydroPID_tturb)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPID.velcl", &assign_GovHydroPID_velcl)); - dynamic_switch.insert(std::make_pair("cim:GovHydroPID.velop", &assign_GovHydroPID_velop)); - dynamic_switch.insert(std::make_pair("cim:GovHydroIEEE2.aturb", &assign_GovHydroIEEE2_aturb)); - dynamic_switch.insert(std::make_pair("cim:GovHydroIEEE2.bturb", &assign_GovHydroIEEE2_bturb)); - dynamic_switch.insert(std::make_pair("cim:GovHydroIEEE2.gv1", &assign_GovHydroIEEE2_gv1)); - dynamic_switch.insert(std::make_pair("cim:GovHydroIEEE2.gv2", &assign_GovHydroIEEE2_gv2)); - dynamic_switch.insert(std::make_pair("cim:GovHydroIEEE2.gv3", &assign_GovHydroIEEE2_gv3)); - dynamic_switch.insert(std::make_pair("cim:GovHydroIEEE2.gv4", &assign_GovHydroIEEE2_gv4)); - dynamic_switch.insert(std::make_pair("cim:GovHydroIEEE2.gv5", &assign_GovHydroIEEE2_gv5)); - dynamic_switch.insert(std::make_pair("cim:GovHydroIEEE2.gv6", &assign_GovHydroIEEE2_gv6)); - dynamic_switch.insert(std::make_pair("cim:GovHydroIEEE2.kturb", &assign_GovHydroIEEE2_kturb)); - dynamic_switch.insert(std::make_pair("cim:GovHydroIEEE2.mwbase", &assign_GovHydroIEEE2_mwbase)); - dynamic_switch.insert(std::make_pair("cim:GovHydroIEEE2.pgv1", &assign_GovHydroIEEE2_pgv1)); - dynamic_switch.insert(std::make_pair("cim:GovHydroIEEE2.pgv2", &assign_GovHydroIEEE2_pgv2)); - dynamic_switch.insert(std::make_pair("cim:GovHydroIEEE2.pgv3", &assign_GovHydroIEEE2_pgv3)); - dynamic_switch.insert(std::make_pair("cim:GovHydroIEEE2.pgv4", &assign_GovHydroIEEE2_pgv4)); - dynamic_switch.insert(std::make_pair("cim:GovHydroIEEE2.pgv5", &assign_GovHydroIEEE2_pgv5)); - dynamic_switch.insert(std::make_pair("cim:GovHydroIEEE2.pgv6", &assign_GovHydroIEEE2_pgv6)); - dynamic_switch.insert(std::make_pair("cim:GovHydroIEEE2.pmax", &assign_GovHydroIEEE2_pmax)); - dynamic_switch.insert(std::make_pair("cim:GovHydroIEEE2.pmin", &assign_GovHydroIEEE2_pmin)); - dynamic_switch.insert(std::make_pair("cim:GovHydroIEEE2.rperm", &assign_GovHydroIEEE2_rperm)); - dynamic_switch.insert(std::make_pair("cim:GovHydroIEEE2.rtemp", &assign_GovHydroIEEE2_rtemp)); - dynamic_switch.insert(std::make_pair("cim:GovHydroIEEE2.tg", &assign_GovHydroIEEE2_tg)); - dynamic_switch.insert(std::make_pair("cim:GovHydroIEEE2.tp", &assign_GovHydroIEEE2_tp)); - dynamic_switch.insert(std::make_pair("cim:GovHydroIEEE2.tr", &assign_GovHydroIEEE2_tr)); - dynamic_switch.insert(std::make_pair("cim:GovHydroIEEE2.tw", &assign_GovHydroIEEE2_tw)); - dynamic_switch.insert(std::make_pair("cim:GovHydroIEEE2.uc", &assign_GovHydroIEEE2_uc)); - dynamic_switch.insert(std::make_pair("cim:GovHydroIEEE2.uo", &assign_GovHydroIEEE2_uo)); - dynamic_switch.insert(std::make_pair("cim:GovHydroDD.aturb", &assign_GovHydroDD_aturb)); - dynamic_switch.insert(std::make_pair("cim:GovHydroDD.bturb", &assign_GovHydroDD_bturb)); - dynamic_switch.insert(std::make_pair("cim:GovHydroDD.db1", &assign_GovHydroDD_db1)); - dynamic_switch.insert(std::make_pair("cim:GovHydroDD.db2", &assign_GovHydroDD_db2)); - dynamic_switch.insert(std::make_pair("cim:GovHydroDD.eps", &assign_GovHydroDD_eps)); - dynamic_switch.insert(std::make_pair("cim:GovHydroDD.gmax", &assign_GovHydroDD_gmax)); - dynamic_switch.insert(std::make_pair("cim:GovHydroDD.gmin", &assign_GovHydroDD_gmin)); - dynamic_switch.insert(std::make_pair("cim:GovHydroDD.gv1", &assign_GovHydroDD_gv1)); - dynamic_switch.insert(std::make_pair("cim:GovHydroDD.gv2", &assign_GovHydroDD_gv2)); - dynamic_switch.insert(std::make_pair("cim:GovHydroDD.gv3", &assign_GovHydroDD_gv3)); - dynamic_switch.insert(std::make_pair("cim:GovHydroDD.gv4", &assign_GovHydroDD_gv4)); - dynamic_switch.insert(std::make_pair("cim:GovHydroDD.gv5", &assign_GovHydroDD_gv5)); - dynamic_switch.insert(std::make_pair("cim:GovHydroDD.gv6", &assign_GovHydroDD_gv6)); - dynamic_switch.insert(std::make_pair("cim:GovHydroDD.inputSignal", &assign_GovHydroDD_inputSignal)); - dynamic_switch.insert(std::make_pair("cim:GovHydroDD.k1", &assign_GovHydroDD_k1)); - dynamic_switch.insert(std::make_pair("cim:GovHydroDD.k2", &assign_GovHydroDD_k2)); - dynamic_switch.insert(std::make_pair("cim:GovHydroDD.kg", &assign_GovHydroDD_kg)); - dynamic_switch.insert(std::make_pair("cim:GovHydroDD.ki", &assign_GovHydroDD_ki)); - dynamic_switch.insert(std::make_pair("cim:GovHydroDD.mwbase", &assign_GovHydroDD_mwbase)); - dynamic_switch.insert(std::make_pair("cim:GovHydroDD.pgv1", &assign_GovHydroDD_pgv1)); - dynamic_switch.insert(std::make_pair("cim:GovHydroDD.pgv2", &assign_GovHydroDD_pgv2)); - dynamic_switch.insert(std::make_pair("cim:GovHydroDD.pgv3", &assign_GovHydroDD_pgv3)); - dynamic_switch.insert(std::make_pair("cim:GovHydroDD.pgv4", &assign_GovHydroDD_pgv4)); - dynamic_switch.insert(std::make_pair("cim:GovHydroDD.pgv5", &assign_GovHydroDD_pgv5)); - dynamic_switch.insert(std::make_pair("cim:GovHydroDD.pgv6", &assign_GovHydroDD_pgv6)); - dynamic_switch.insert(std::make_pair("cim:GovHydroDD.pmax", &assign_GovHydroDD_pmax)); - dynamic_switch.insert(std::make_pair("cim:GovHydroDD.pmin", &assign_GovHydroDD_pmin)); - dynamic_switch.insert(std::make_pair("cim:GovHydroDD.r", &assign_GovHydroDD_r)); - dynamic_switch.insert(std::make_pair("cim:GovHydroDD.td", &assign_GovHydroDD_td)); - dynamic_switch.insert(std::make_pair("cim:GovHydroDD.tf", &assign_GovHydroDD_tf)); - dynamic_switch.insert(std::make_pair("cim:GovHydroDD.tp", &assign_GovHydroDD_tp)); - dynamic_switch.insert(std::make_pair("cim:GovHydroDD.tt", &assign_GovHydroDD_tt)); - dynamic_switch.insert(std::make_pair("cim:GovHydroDD.tturb", &assign_GovHydroDD_tturb)); - dynamic_switch.insert(std::make_pair("cim:GovHydroDD.velcl", &assign_GovHydroDD_velcl)); - dynamic_switch.insert(std::make_pair("cim:GovHydroDD.velop", &assign_GovHydroDD_velop)); - dynamic_switch.insert(std::make_pair("cim:VCompIEEEType2.tr", &assign_VCompIEEEType2_tr)); - dynamic_switch.insert(std::make_pair("cim:GenICompensationForGenJ.rcij", &assign_GenICompensationForGenJ_rcij)); - dynamic_switch.insert(std::make_pair("cim:GenICompensationForGenJ.xcij", &assign_GenICompensationForGenJ_xcij)); - dynamic_switch.insert(std::make_pair("cim:VCompIEEEType1.rc", &assign_VCompIEEEType1_rc)); - dynamic_switch.insert(std::make_pair("cim:VCompIEEEType1.tr", &assign_VCompIEEEType1_tr)); - dynamic_switch.insert(std::make_pair("cim:VCompIEEEType1.xc", &assign_VCompIEEEType1_xc)); - dynamic_switch.insert(std::make_pair("cim:LoadMotor.d", &assign_LoadMotor_d)); - dynamic_switch.insert(std::make_pair("cim:LoadMotor.h", &assign_LoadMotor_h)); - dynamic_switch.insert(std::make_pair("cim:LoadMotor.lfac", &assign_LoadMotor_lfac)); - dynamic_switch.insert(std::make_pair("cim:LoadMotor.lp", &assign_LoadMotor_lp)); - dynamic_switch.insert(std::make_pair("cim:LoadMotor.lpp", &assign_LoadMotor_lpp)); - dynamic_switch.insert(std::make_pair("cim:LoadMotor.ls", &assign_LoadMotor_ls)); - dynamic_switch.insert(std::make_pair("cim:LoadMotor.pfrac", &assign_LoadMotor_pfrac)); - dynamic_switch.insert(std::make_pair("cim:LoadMotor.ra", &assign_LoadMotor_ra)); - dynamic_switch.insert(std::make_pair("cim:LoadMotor.tbkr", &assign_LoadMotor_tbkr)); - dynamic_switch.insert(std::make_pair("cim:LoadMotor.tpo", &assign_LoadMotor_tpo)); - dynamic_switch.insert(std::make_pair("cim:LoadMotor.tppo", &assign_LoadMotor_tppo)); - dynamic_switch.insert(std::make_pair("cim:LoadMotor.tv", &assign_LoadMotor_tv)); - dynamic_switch.insert(std::make_pair("cim:LoadMotor.vt", &assign_LoadMotor_vt)); - dynamic_switch.insert(std::make_pair("cim:LoadGenericNonLinear.bs", &assign_LoadGenericNonLinear_bs)); - dynamic_switch.insert(std::make_pair("cim:LoadGenericNonLinear.bt", &assign_LoadGenericNonLinear_bt)); - dynamic_switch.insert(std::make_pair("cim:LoadGenericNonLinear.genericNonLinearLoadModelType", &assign_LoadGenericNonLinear_genericNonLinearLoadModelType)); - dynamic_switch.insert(std::make_pair("cim:LoadGenericNonLinear.ls", &assign_LoadGenericNonLinear_ls)); - dynamic_switch.insert(std::make_pair("cim:LoadGenericNonLinear.lt", &assign_LoadGenericNonLinear_lt)); - dynamic_switch.insert(std::make_pair("cim:LoadGenericNonLinear.pt", &assign_LoadGenericNonLinear_pt)); - dynamic_switch.insert(std::make_pair("cim:LoadGenericNonLinear.qt", &assign_LoadGenericNonLinear_qt)); - dynamic_switch.insert(std::make_pair("cim:LoadGenericNonLinear.tp", &assign_LoadGenericNonLinear_tp)); - dynamic_switch.insert(std::make_pair("cim:LoadGenericNonLinear.tq", &assign_LoadGenericNonLinear_tq)); - dynamic_switch.insert(std::make_pair("cim:LoadComposite.epfd", &assign_LoadComposite_epfd)); - dynamic_switch.insert(std::make_pair("cim:LoadComposite.epfs", &assign_LoadComposite_epfs)); - dynamic_switch.insert(std::make_pair("cim:LoadComposite.epvd", &assign_LoadComposite_epvd)); - dynamic_switch.insert(std::make_pair("cim:LoadComposite.epvs", &assign_LoadComposite_epvs)); - dynamic_switch.insert(std::make_pair("cim:LoadComposite.eqfd", &assign_LoadComposite_eqfd)); - dynamic_switch.insert(std::make_pair("cim:LoadComposite.eqfs", &assign_LoadComposite_eqfs)); - dynamic_switch.insert(std::make_pair("cim:LoadComposite.eqvd", &assign_LoadComposite_eqvd)); - dynamic_switch.insert(std::make_pair("cim:LoadComposite.eqvs", &assign_LoadComposite_eqvs)); - dynamic_switch.insert(std::make_pair("cim:LoadComposite.h", &assign_LoadComposite_h)); - dynamic_switch.insert(std::make_pair("cim:LoadComposite.lfrac", &assign_LoadComposite_lfrac)); - dynamic_switch.insert(std::make_pair("cim:LoadComposite.pfrac", &assign_LoadComposite_pfrac)); - dynamic_switch.insert(std::make_pair("cim:LoadStatic.ep1", &assign_LoadStatic_ep1)); - dynamic_switch.insert(std::make_pair("cim:LoadStatic.ep2", &assign_LoadStatic_ep2)); - dynamic_switch.insert(std::make_pair("cim:LoadStatic.ep3", &assign_LoadStatic_ep3)); - dynamic_switch.insert(std::make_pair("cim:LoadStatic.eq1", &assign_LoadStatic_eq1)); - dynamic_switch.insert(std::make_pair("cim:LoadStatic.eq2", &assign_LoadStatic_eq2)); - dynamic_switch.insert(std::make_pair("cim:LoadStatic.eq3", &assign_LoadStatic_eq3)); - dynamic_switch.insert(std::make_pair("cim:LoadStatic.kp1", &assign_LoadStatic_kp1)); - dynamic_switch.insert(std::make_pair("cim:LoadStatic.kp2", &assign_LoadStatic_kp2)); - dynamic_switch.insert(std::make_pair("cim:LoadStatic.kp3", &assign_LoadStatic_kp3)); - dynamic_switch.insert(std::make_pair("cim:LoadStatic.kp4", &assign_LoadStatic_kp4)); - dynamic_switch.insert(std::make_pair("cim:LoadStatic.kpf", &assign_LoadStatic_kpf)); - dynamic_switch.insert(std::make_pair("cim:LoadStatic.kq1", &assign_LoadStatic_kq1)); - dynamic_switch.insert(std::make_pair("cim:LoadStatic.kq2", &assign_LoadStatic_kq2)); - dynamic_switch.insert(std::make_pair("cim:LoadStatic.kq3", &assign_LoadStatic_kq3)); - dynamic_switch.insert(std::make_pair("cim:LoadStatic.kq4", &assign_LoadStatic_kq4)); - dynamic_switch.insert(std::make_pair("cim:LoadStatic.kqf", &assign_LoadStatic_kqf)); - dynamic_switch.insert(std::make_pair("cim:LoadStatic.staticLoadModelType", &assign_LoadStatic_staticLoadModelType)); - dynamic_switch.insert(std::make_pair("cim:TurbLCFB1.db", &assign_TurbLCFB1_db)); - dynamic_switch.insert(std::make_pair("cim:TurbLCFB1.emax", &assign_TurbLCFB1_emax)); - dynamic_switch.insert(std::make_pair("cim:TurbLCFB1.fb", &assign_TurbLCFB1_fb)); - dynamic_switch.insert(std::make_pair("cim:TurbLCFB1.fbf", &assign_TurbLCFB1_fbf)); - dynamic_switch.insert(std::make_pair("cim:TurbLCFB1.irmax", &assign_TurbLCFB1_irmax)); - dynamic_switch.insert(std::make_pair("cim:TurbLCFB1.ki", &assign_TurbLCFB1_ki)); - dynamic_switch.insert(std::make_pair("cim:TurbLCFB1.kp", &assign_TurbLCFB1_kp)); - dynamic_switch.insert(std::make_pair("cim:TurbLCFB1.mwbase", &assign_TurbLCFB1_mwbase)); - dynamic_switch.insert(std::make_pair("cim:TurbLCFB1.pbf", &assign_TurbLCFB1_pbf)); - dynamic_switch.insert(std::make_pair("cim:TurbLCFB1.pmwset", &assign_TurbLCFB1_pmwset)); - dynamic_switch.insert(std::make_pair("cim:TurbLCFB1.speedReferenceGovernor", &assign_TurbLCFB1_speedReferenceGovernor)); - dynamic_switch.insert(std::make_pair("cim:TurbLCFB1.tpelec", &assign_TurbLCFB1_tpelec)); - dynamic_switch.insert(std::make_pair("cim:OverexcLim2.ifdlim", &assign_OverexcLim2_ifdlim)); - dynamic_switch.insert(std::make_pair("cim:OverexcLim2.koi", &assign_OverexcLim2_koi)); - dynamic_switch.insert(std::make_pair("cim:OverexcLim2.voimax", &assign_OverexcLim2_voimax)); - dynamic_switch.insert(std::make_pair("cim:OverexcLim2.voimin", &assign_OverexcLim2_voimin)); - dynamic_switch.insert(std::make_pair("cim:OverexcLimX2.efd1", &assign_OverexcLimX2_efd1)); - dynamic_switch.insert(std::make_pair("cim:OverexcLimX2.efd2", &assign_OverexcLimX2_efd2)); - dynamic_switch.insert(std::make_pair("cim:OverexcLimX2.efd3", &assign_OverexcLimX2_efd3)); - dynamic_switch.insert(std::make_pair("cim:OverexcLimX2.efddes", &assign_OverexcLimX2_efddes)); - dynamic_switch.insert(std::make_pair("cim:OverexcLimX2.efdrated", &assign_OverexcLimX2_efdrated)); - dynamic_switch.insert(std::make_pair("cim:OverexcLimX2.kmx", &assign_OverexcLimX2_kmx)); - dynamic_switch.insert(std::make_pair("cim:OverexcLimX2.m", &assign_OverexcLimX2_m)); - dynamic_switch.insert(std::make_pair("cim:OverexcLimX2.t1", &assign_OverexcLimX2_t1)); - dynamic_switch.insert(std::make_pair("cim:OverexcLimX2.t2", &assign_OverexcLimX2_t2)); - dynamic_switch.insert(std::make_pair("cim:OverexcLimX2.t3", &assign_OverexcLimX2_t3)); - dynamic_switch.insert(std::make_pair("cim:OverexcLimX2.vlow", &assign_OverexcLimX2_vlow)); - dynamic_switch.insert(std::make_pair("cim:OverexcLimIEEE.hyst", &assign_OverexcLimIEEE_hyst)); - dynamic_switch.insert(std::make_pair("cim:OverexcLimIEEE.ifdlim", &assign_OverexcLimIEEE_ifdlim)); - dynamic_switch.insert(std::make_pair("cim:OverexcLimIEEE.ifdmax", &assign_OverexcLimIEEE_ifdmax)); - dynamic_switch.insert(std::make_pair("cim:OverexcLimIEEE.itfpu", &assign_OverexcLimIEEE_itfpu)); - dynamic_switch.insert(std::make_pair("cim:OverexcLimIEEE.kcd", &assign_OverexcLimIEEE_kcd)); - dynamic_switch.insert(std::make_pair("cim:OverexcLimIEEE.kramp", &assign_OverexcLimIEEE_kramp)); - dynamic_switch.insert(std::make_pair("cim:OverexcLimX1.efd1", &assign_OverexcLimX1_efd1)); - dynamic_switch.insert(std::make_pair("cim:OverexcLimX1.efd2", &assign_OverexcLimX1_efd2)); - dynamic_switch.insert(std::make_pair("cim:OverexcLimX1.efd3", &assign_OverexcLimX1_efd3)); - dynamic_switch.insert(std::make_pair("cim:OverexcLimX1.efddes", &assign_OverexcLimX1_efddes)); - dynamic_switch.insert(std::make_pair("cim:OverexcLimX1.efdrated", &assign_OverexcLimX1_efdrated)); - dynamic_switch.insert(std::make_pair("cim:OverexcLimX1.kmx", &assign_OverexcLimX1_kmx)); - dynamic_switch.insert(std::make_pair("cim:OverexcLimX1.t1", &assign_OverexcLimX1_t1)); - dynamic_switch.insert(std::make_pair("cim:OverexcLimX1.t2", &assign_OverexcLimX1_t2)); - dynamic_switch.insert(std::make_pair("cim:OverexcLimX1.t3", &assign_OverexcLimX1_t3)); - dynamic_switch.insert(std::make_pair("cim:OverexcLimX1.vlow", &assign_OverexcLimX1_vlow)); - dynamic_switch.insert(std::make_pair("cim:SynchronousMachineDetailed.efdBaseRatio", &assign_SynchronousMachineDetailed_efdBaseRatio)); - dynamic_switch.insert(std::make_pair("cim:SynchronousMachineDetailed.ifdBaseType", &assign_SynchronousMachineDetailed_ifdBaseType)); - dynamic_switch.insert(std::make_pair("cim:SynchronousMachineDetailed.ifdBaseValue", &assign_SynchronousMachineDetailed_ifdBaseValue)); - dynamic_switch.insert(std::make_pair("cim:SynchronousMachineDetailed.saturationFactor120QAxis", &assign_SynchronousMachineDetailed_saturationFactor120QAxis)); - dynamic_switch.insert(std::make_pair("cim:SynchronousMachineDetailed.saturationFactorQAxis", &assign_SynchronousMachineDetailed_saturationFactorQAxis)); - dynamic_switch.insert(std::make_pair("cim:SynchronousMachineTimeConstantReactance.ks", &assign_SynchronousMachineTimeConstantReactance_ks)); - dynamic_switch.insert(std::make_pair("cim:SynchronousMachineTimeConstantReactance.modelType", &assign_SynchronousMachineTimeConstantReactance_modelType)); - dynamic_switch.insert(std::make_pair("cim:SynchronousMachineTimeConstantReactance.rotorType", &assign_SynchronousMachineTimeConstantReactance_rotorType)); - dynamic_switch.insert(std::make_pair("cim:SynchronousMachineTimeConstantReactance.tc", &assign_SynchronousMachineTimeConstantReactance_tc)); - dynamic_switch.insert(std::make_pair("cim:SynchronousMachineTimeConstantReactance.tpdo", &assign_SynchronousMachineTimeConstantReactance_tpdo)); - dynamic_switch.insert(std::make_pair("cim:SynchronousMachineTimeConstantReactance.tppdo", &assign_SynchronousMachineTimeConstantReactance_tppdo)); - dynamic_switch.insert(std::make_pair("cim:SynchronousMachineTimeConstantReactance.tppqo", &assign_SynchronousMachineTimeConstantReactance_tppqo)); - dynamic_switch.insert(std::make_pair("cim:SynchronousMachineTimeConstantReactance.tpqo", &assign_SynchronousMachineTimeConstantReactance_tpqo)); - dynamic_switch.insert(std::make_pair("cim:SynchronousMachineTimeConstantReactance.xDirectSubtrans", &assign_SynchronousMachineTimeConstantReactance_xDirectSubtrans)); - dynamic_switch.insert(std::make_pair("cim:SynchronousMachineTimeConstantReactance.xDirectSync", &assign_SynchronousMachineTimeConstantReactance_xDirectSync)); - dynamic_switch.insert(std::make_pair("cim:SynchronousMachineTimeConstantReactance.xDirectTrans", &assign_SynchronousMachineTimeConstantReactance_xDirectTrans)); - dynamic_switch.insert(std::make_pair("cim:SynchronousMachineTimeConstantReactance.xQuadSubtrans", &assign_SynchronousMachineTimeConstantReactance_xQuadSubtrans)); - dynamic_switch.insert(std::make_pair("cim:SynchronousMachineTimeConstantReactance.xQuadSync", &assign_SynchronousMachineTimeConstantReactance_xQuadSync)); - dynamic_switch.insert(std::make_pair("cim:SynchronousMachineTimeConstantReactance.xQuadTrans", &assign_SynchronousMachineTimeConstantReactance_xQuadTrans)); - dynamic_switch.insert(std::make_pair("cim:SynchronousMachineEquivalentCircuit.r1d", &assign_SynchronousMachineEquivalentCircuit_r1d)); - dynamic_switch.insert(std::make_pair("cim:SynchronousMachineEquivalentCircuit.r1q", &assign_SynchronousMachineEquivalentCircuit_r1q)); - dynamic_switch.insert(std::make_pair("cim:SynchronousMachineEquivalentCircuit.r2q", &assign_SynchronousMachineEquivalentCircuit_r2q)); - dynamic_switch.insert(std::make_pair("cim:SynchronousMachineEquivalentCircuit.rfd", &assign_SynchronousMachineEquivalentCircuit_rfd)); - dynamic_switch.insert(std::make_pair("cim:SynchronousMachineEquivalentCircuit.x1d", &assign_SynchronousMachineEquivalentCircuit_x1d)); - dynamic_switch.insert(std::make_pair("cim:SynchronousMachineEquivalentCircuit.x1q", &assign_SynchronousMachineEquivalentCircuit_x1q)); - dynamic_switch.insert(std::make_pair("cim:SynchronousMachineEquivalentCircuit.x2q", &assign_SynchronousMachineEquivalentCircuit_x2q)); - dynamic_switch.insert(std::make_pair("cim:SynchronousMachineEquivalentCircuit.xad", &assign_SynchronousMachineEquivalentCircuit_xad)); - dynamic_switch.insert(std::make_pair("cim:SynchronousMachineEquivalentCircuit.xaq", &assign_SynchronousMachineEquivalentCircuit_xaq)); - dynamic_switch.insert(std::make_pair("cim:SynchronousMachineEquivalentCircuit.xf1d", &assign_SynchronousMachineEquivalentCircuit_xf1d)); - dynamic_switch.insert(std::make_pair("cim:SynchronousMachineEquivalentCircuit.xfd", &assign_SynchronousMachineEquivalentCircuit_xfd)); - dynamic_switch.insert(std::make_pair("cim:VAdjIEEE.adjslew", &assign_VAdjIEEE_adjslew)); - dynamic_switch.insert(std::make_pair("cim:VAdjIEEE.taoff", &assign_VAdjIEEE_taoff)); - dynamic_switch.insert(std::make_pair("cim:VAdjIEEE.taon", &assign_VAdjIEEE_taon)); - dynamic_switch.insert(std::make_pair("cim:VAdjIEEE.vadjf", &assign_VAdjIEEE_vadjf)); - dynamic_switch.insert(std::make_pair("cim:VAdjIEEE.vadjmax", &assign_VAdjIEEE_vadjmax)); - dynamic_switch.insert(std::make_pair("cim:VAdjIEEE.vadjmin", &assign_VAdjIEEE_vadjmin)); - dynamic_switch.insert(std::make_pair("cim:PFVArType2IEEEPFController.exlon", &assign_PFVArType2IEEEPFController_exlon)); - dynamic_switch.insert(std::make_pair("cim:PFVArType2IEEEPFController.ki", &assign_PFVArType2IEEEPFController_ki)); - dynamic_switch.insert(std::make_pair("cim:PFVArType2IEEEPFController.kp", &assign_PFVArType2IEEEPFController_kp)); - dynamic_switch.insert(std::make_pair("cim:PFVArType2IEEEPFController.pfref", &assign_PFVArType2IEEEPFController_pfref)); - dynamic_switch.insert(std::make_pair("cim:PFVArType2IEEEPFController.vclmt", &assign_PFVArType2IEEEPFController_vclmt)); - dynamic_switch.insert(std::make_pair("cim:PFVArType2IEEEPFController.vref", &assign_PFVArType2IEEEPFController_vref)); - dynamic_switch.insert(std::make_pair("cim:PFVArType2IEEEPFController.vs", &assign_PFVArType2IEEEPFController_vs)); - dynamic_switch.insert(std::make_pair("cim:PFVArType2Common1.j", &assign_PFVArType2Common1_j)); - dynamic_switch.insert(std::make_pair("cim:PFVArType2Common1.ki", &assign_PFVArType2Common1_ki)); - dynamic_switch.insert(std::make_pair("cim:PFVArType2Common1.kp", &assign_PFVArType2Common1_kp)); - dynamic_switch.insert(std::make_pair("cim:PFVArType2Common1.max", &assign_PFVArType2Common1_max)); - dynamic_switch.insert(std::make_pair("cim:PFVArType2Common1.ref", &assign_PFVArType2Common1_ref)); - dynamic_switch.insert(std::make_pair("cim:PFVArType2IEEEVArController.exlon", &assign_PFVArType2IEEEVArController_exlon)); - dynamic_switch.insert(std::make_pair("cim:PFVArType2IEEEVArController.ki", &assign_PFVArType2IEEEVArController_ki)); - dynamic_switch.insert(std::make_pair("cim:PFVArType2IEEEVArController.kp", &assign_PFVArType2IEEEVArController_kp)); - dynamic_switch.insert(std::make_pair("cim:PFVArType2IEEEVArController.qref", &assign_PFVArType2IEEEVArController_qref)); - dynamic_switch.insert(std::make_pair("cim:PFVArType2IEEEVArController.vclmt", &assign_PFVArType2IEEEVArController_vclmt)); - dynamic_switch.insert(std::make_pair("cim:PFVArType2IEEEVArController.vref", &assign_PFVArType2IEEEVArController_vref)); - dynamic_switch.insert(std::make_pair("cim:PFVArType2IEEEVArController.vs", &assign_PFVArType2IEEEVArController_vs)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLim2Simplified.kui", &assign_UnderexcLim2Simplified_kui)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLim2Simplified.p0", &assign_UnderexcLim2Simplified_p0)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLim2Simplified.p1", &assign_UnderexcLim2Simplified_p1)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLim2Simplified.q0", &assign_UnderexcLim2Simplified_q0)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLim2Simplified.q1", &assign_UnderexcLim2Simplified_q1)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLim2Simplified.vuimax", &assign_UnderexcLim2Simplified_vuimax)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLim2Simplified.vuimin", &assign_UnderexcLim2Simplified_vuimin)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimIEEE2.k1", &assign_UnderexcLimIEEE2_k1)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimIEEE2.k2", &assign_UnderexcLimIEEE2_k2)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimIEEE2.kfb", &assign_UnderexcLimIEEE2_kfb)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimIEEE2.kuf", &assign_UnderexcLimIEEE2_kuf)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimIEEE2.kui", &assign_UnderexcLimIEEE2_kui)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimIEEE2.kul", &assign_UnderexcLimIEEE2_kul)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimIEEE2.p0", &assign_UnderexcLimIEEE2_p0)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimIEEE2.p1", &assign_UnderexcLimIEEE2_p1)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimIEEE2.p10", &assign_UnderexcLimIEEE2_p10)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimIEEE2.p2", &assign_UnderexcLimIEEE2_p2)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimIEEE2.p3", &assign_UnderexcLimIEEE2_p3)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimIEEE2.p4", &assign_UnderexcLimIEEE2_p4)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimIEEE2.p5", &assign_UnderexcLimIEEE2_p5)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimIEEE2.p6", &assign_UnderexcLimIEEE2_p6)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimIEEE2.p7", &assign_UnderexcLimIEEE2_p7)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimIEEE2.p8", &assign_UnderexcLimIEEE2_p8)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimIEEE2.p9", &assign_UnderexcLimIEEE2_p9)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimIEEE2.q0", &assign_UnderexcLimIEEE2_q0)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimIEEE2.q1", &assign_UnderexcLimIEEE2_q1)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimIEEE2.q10", &assign_UnderexcLimIEEE2_q10)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimIEEE2.q2", &assign_UnderexcLimIEEE2_q2)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimIEEE2.q3", &assign_UnderexcLimIEEE2_q3)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimIEEE2.q4", &assign_UnderexcLimIEEE2_q4)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimIEEE2.q5", &assign_UnderexcLimIEEE2_q5)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimIEEE2.q6", &assign_UnderexcLimIEEE2_q6)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimIEEE2.q7", &assign_UnderexcLimIEEE2_q7)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimIEEE2.q8", &assign_UnderexcLimIEEE2_q8)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimIEEE2.q9", &assign_UnderexcLimIEEE2_q9)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimIEEE2.tu1", &assign_UnderexcLimIEEE2_tu1)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimIEEE2.tu2", &assign_UnderexcLimIEEE2_tu2)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimIEEE2.tu3", &assign_UnderexcLimIEEE2_tu3)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimIEEE2.tu4", &assign_UnderexcLimIEEE2_tu4)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimIEEE2.tul", &assign_UnderexcLimIEEE2_tul)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimIEEE2.tup", &assign_UnderexcLimIEEE2_tup)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimIEEE2.tuq", &assign_UnderexcLimIEEE2_tuq)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimIEEE2.tuv", &assign_UnderexcLimIEEE2_tuv)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimIEEE2.vuimax", &assign_UnderexcLimIEEE2_vuimax)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimIEEE2.vuimin", &assign_UnderexcLimIEEE2_vuimin)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimIEEE2.vulmax", &assign_UnderexcLimIEEE2_vulmax)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimIEEE2.vulmin", &assign_UnderexcLimIEEE2_vulmin)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimIEEE1.kuc", &assign_UnderexcLimIEEE1_kuc)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimIEEE1.kuf", &assign_UnderexcLimIEEE1_kuf)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimIEEE1.kui", &assign_UnderexcLimIEEE1_kui)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimIEEE1.kul", &assign_UnderexcLimIEEE1_kul)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimIEEE1.kur", &assign_UnderexcLimIEEE1_kur)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimIEEE1.tu1", &assign_UnderexcLimIEEE1_tu1)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimIEEE1.tu2", &assign_UnderexcLimIEEE1_tu2)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimIEEE1.tu3", &assign_UnderexcLimIEEE1_tu3)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimIEEE1.tu4", &assign_UnderexcLimIEEE1_tu4)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimIEEE1.vucmax", &assign_UnderexcLimIEEE1_vucmax)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimIEEE1.vuimax", &assign_UnderexcLimIEEE1_vuimax)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimIEEE1.vuimin", &assign_UnderexcLimIEEE1_vuimin)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimIEEE1.vulmax", &assign_UnderexcLimIEEE1_vulmax)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimIEEE1.vulmin", &assign_UnderexcLimIEEE1_vulmin)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimIEEE1.vurmax", &assign_UnderexcLimIEEE1_vurmax)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimX2.kf2", &assign_UnderexcLimX2_kf2)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimX2.km", &assign_UnderexcLimX2_km)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimX2.melmax", &assign_UnderexcLimX2_melmax)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimX2.qo", &assign_UnderexcLimX2_qo)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimX2.r", &assign_UnderexcLimX2_r)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimX2.tf2", &assign_UnderexcLimX2_tf2)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimX2.tm", &assign_UnderexcLimX2_tm)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimX1.k", &assign_UnderexcLimX1_k)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimX1.kf2", &assign_UnderexcLimX1_kf2)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimX1.km", &assign_UnderexcLimX1_km)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimX1.melmax", &assign_UnderexcLimX1_melmax)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimX1.tf2", &assign_UnderexcLimX1_tf2)); - dynamic_switch.insert(std::make_pair("cim:UnderexcLimX1.tm", &assign_UnderexcLimX1_tm)); - dynamic_switch.insert(std::make_pair("cim:Susceptance.multiplier", &assign_Susceptance_multiplier)); - dynamic_switch.insert(std::make_pair("cim:Conductance.multiplier", &assign_Conductance_multiplier)); - dynamic_switch.insert(std::make_pair("cim:EquivalentShunt.b", &assign_EquivalentShunt_b)); - dynamic_switch.insert(std::make_pair("cim:EquivalentShunt.g", &assign_EquivalentShunt_g)); - dynamic_switch.insert(std::make_pair("cim:EquivalentBranch.negativeR12", &assign_EquivalentBranch_negativeR12)); - dynamic_switch.insert(std::make_pair("cim:EquivalentBranch.negativeR21", &assign_EquivalentBranch_negativeR21)); - dynamic_switch.insert(std::make_pair("cim:EquivalentBranch.negativeX12", &assign_EquivalentBranch_negativeX12)); - dynamic_switch.insert(std::make_pair("cim:EquivalentBranch.negativeX21", &assign_EquivalentBranch_negativeX21)); - dynamic_switch.insert(std::make_pair("cim:EquivalentBranch.positiveR12", &assign_EquivalentBranch_positiveR12)); - dynamic_switch.insert(std::make_pair("cim:EquivalentBranch.positiveR21", &assign_EquivalentBranch_positiveR21)); - dynamic_switch.insert(std::make_pair("cim:EquivalentBranch.positiveX12", &assign_EquivalentBranch_positiveX12)); - dynamic_switch.insert(std::make_pair("cim:EquivalentBranch.positiveX21", &assign_EquivalentBranch_positiveX21)); - dynamic_switch.insert(std::make_pair("cim:EquivalentBranch.r", &assign_EquivalentBranch_r)); - dynamic_switch.insert(std::make_pair("cim:EquivalentBranch.r21", &assign_EquivalentBranch_r21)); - dynamic_switch.insert(std::make_pair("cim:EquivalentBranch.x", &assign_EquivalentBranch_x)); - dynamic_switch.insert(std::make_pair("cim:EquivalentBranch.x21", &assign_EquivalentBranch_x21)); - dynamic_switch.insert(std::make_pair("cim:EquivalentBranch.zeroR12", &assign_EquivalentBranch_zeroR12)); - dynamic_switch.insert(std::make_pair("cim:EquivalentBranch.zeroR21", &assign_EquivalentBranch_zeroR21)); - dynamic_switch.insert(std::make_pair("cim:EquivalentBranch.zeroX12", &assign_EquivalentBranch_zeroX12)); - dynamic_switch.insert(std::make_pair("cim:EquivalentBranch.zeroX21", &assign_EquivalentBranch_zeroX21)); - dynamic_switch.insert(std::make_pair("cim:EquivalentInjection.maxP", &assign_EquivalentInjection_maxP)); - dynamic_switch.insert(std::make_pair("cim:EquivalentInjection.maxQ", &assign_EquivalentInjection_maxQ)); - dynamic_switch.insert(std::make_pair("cim:EquivalentInjection.minP", &assign_EquivalentInjection_minP)); - dynamic_switch.insert(std::make_pair("cim:EquivalentInjection.minQ", &assign_EquivalentInjection_minQ)); - dynamic_switch.insert(std::make_pair("cim:EquivalentInjection.p", &assign_EquivalentInjection_p)); - dynamic_switch.insert(std::make_pair("cim:EquivalentInjection.q", &assign_EquivalentInjection_q)); - dynamic_switch.insert(std::make_pair("cim:EquivalentInjection.r", &assign_EquivalentInjection_r)); - dynamic_switch.insert(std::make_pair("cim:EquivalentInjection.r0", &assign_EquivalentInjection_r0)); - dynamic_switch.insert(std::make_pair("cim:EquivalentInjection.r2", &assign_EquivalentInjection_r2)); - dynamic_switch.insert(std::make_pair("cim:EquivalentInjection.regulationCapability", &assign_EquivalentInjection_regulationCapability)); - dynamic_switch.insert(std::make_pair("cim:EquivalentInjection.regulationStatus", &assign_EquivalentInjection_regulationStatus)); - dynamic_switch.insert(std::make_pair("cim:EquivalentInjection.regulationTarget", &assign_EquivalentInjection_regulationTarget)); - dynamic_switch.insert(std::make_pair("cim:EquivalentInjection.x", &assign_EquivalentInjection_x)); - dynamic_switch.insert(std::make_pair("cim:EquivalentInjection.x0", &assign_EquivalentInjection_x0)); - dynamic_switch.insert(std::make_pair("cim:EquivalentInjection.x2", &assign_EquivalentInjection_x2)); - dynamic_switch.insert(std::make_pair("cim:OperationalLimitType.acceptableDuration", &assign_OperationalLimitType_acceptableDuration)); - dynamic_switch.insert(std::make_pair("cim:OperationalLimitType.direction", &assign_OperationalLimitType_direction)); - dynamic_switch.insert(std::make_pair("cim:ActivePowerLimit.value", &assign_ActivePowerLimit_value)); - dynamic_switch.insert(std::make_pair("cim:VoltageLimit.value", &assign_VoltageLimit_value)); - dynamic_switch.insert(std::make_pair("cim:CurrentLimit.value", &assign_CurrentLimit_value)); - dynamic_switch.insert(std::make_pair("cim:BranchGroupTerminal.positiveFlowIn", &assign_BranchGroupTerminal_positiveFlowIn)); - dynamic_switch.insert(std::make_pair("cim:BranchGroup.maximumActivePower", &assign_BranchGroup_maximumActivePower)); - dynamic_switch.insert(std::make_pair("cim:BranchGroup.maximumReactivePower", &assign_BranchGroup_maximumReactivePower)); - dynamic_switch.insert(std::make_pair("cim:BranchGroup.minimumActivePower", &assign_BranchGroup_minimumActivePower)); - dynamic_switch.insert(std::make_pair("cim:BranchGroup.minimumReactivePower", &assign_BranchGroup_minimumReactivePower)); - dynamic_switch.insert(std::make_pair("cim:BranchGroup.monitorActivePower", &assign_BranchGroup_monitorActivePower)); - dynamic_switch.insert(std::make_pair("cim:BranchGroup.monitorReactivePower", &assign_BranchGroup_monitorReactivePower)); - dynamic_switch.insert(std::make_pair("cim:ApparentPowerLimit.value", &assign_ApparentPowerLimit_value)); - dynamic_switch.insert(std::make_pair("cim:BusNameMarker.priority", &assign_BusNameMarker_priority)); - dynamic_switch.insert(std::make_pair("cim:BaseVoltage.nominalVoltage", &assign_BaseVoltage_nominalVoltage)); - dynamic_switch.insert(std::make_pair("cim:TopologicalNode.pInjection", &assign_TopologicalNode_pInjection)); - dynamic_switch.insert(std::make_pair("cim:TopologicalNode.qInjection", &assign_TopologicalNode_qInjection)); - dynamic_switch.insert(std::make_pair("cim:Impedance.multiplier", &assign_Impedance_multiplier)); - dynamic_switch.insert(std::make_pair("cim:StringQuantity.multiplier", &assign_StringQuantity_multiplier)); - dynamic_switch.insert(std::make_pair("cim:StringQuantity.unit", &assign_StringQuantity_unit)); - dynamic_switch.insert(std::make_pair("cim:WaterLevel.multiplier", &assign_WaterLevel_multiplier)); - dynamic_switch.insert(std::make_pair("cim:VoltagePerReactivePower.multiplier", &assign_VoltagePerReactivePower_multiplier)); - dynamic_switch.insert(std::make_pair("cim:IntegerQuantity.multiplier", &assign_IntegerQuantity_multiplier)); - dynamic_switch.insert(std::make_pair("cim:IntegerQuantity.unit", &assign_IntegerQuantity_unit)); - dynamic_switch.insert(std::make_pair("cim:CostRate.multiplier", &assign_CostRate_multiplier)); - dynamic_switch.insert(std::make_pair("cim:CostRate.unit", &assign_CostRate_unit)); - dynamic_switch.insert(std::make_pair("cim:MonthDayInterval.end", &assign_MonthDayInterval_end)); - dynamic_switch.insert(std::make_pair("cim:MonthDayInterval.start", &assign_MonthDayInterval_start)); - dynamic_switch.insert(std::make_pair("cim:Volume.multiplier", &assign_Volume_multiplier)); - dynamic_switch.insert(std::make_pair("cim:Weight.multiplier", &assign_Weight_multiplier)); - dynamic_switch.insert(std::make_pair("cim:CostPerVolume.multiplier", &assign_CostPerVolume_multiplier)); - dynamic_switch.insert(std::make_pair("cim:CostPerVolume.unit", &assign_CostPerVolume_unit)); - dynamic_switch.insert(std::make_pair("cim:Pressure.multiplier", &assign_Pressure_multiplier)); - dynamic_switch.insert(std::make_pair("cim:ActivePowerChangeRate.multiplier", &assign_ActivePowerChangeRate_multiplier)); - dynamic_switch.insert(std::make_pair("cim:DecimalQuantity.currency", &assign_DecimalQuantity_currency)); - dynamic_switch.insert(std::make_pair("cim:DecimalQuantity.multiplier", &assign_DecimalQuantity_multiplier)); - dynamic_switch.insert(std::make_pair("cim:DecimalQuantity.unit", &assign_DecimalQuantity_unit)); - dynamic_switch.insert(std::make_pair("cim:ActivePowerPerCurrentFlow.multiplier", &assign_ActivePowerPerCurrentFlow_multiplier)); - dynamic_switch.insert(std::make_pair("cim:ActivePowerPerFrequency.multiplier", &assign_ActivePowerPerFrequency_multiplier)); - dynamic_switch.insert(std::make_pair("cim:Capacitance.multiplier", &assign_Capacitance_multiplier)); - dynamic_switch.insert(std::make_pair("cim:Inductance.multiplier", &assign_Inductance_multiplier)); - dynamic_switch.insert(std::make_pair("cim:Money.multiplier", &assign_Money_multiplier)); - dynamic_switch.insert(std::make_pair("cim:Money.unit", &assign_Money_unit)); - dynamic_switch.insert(std::make_pair("cim:CostPerEnergyUnit.multiplier", &assign_CostPerEnergyUnit_multiplier)); - dynamic_switch.insert(std::make_pair("cim:CostPerEnergyUnit.unit", &assign_CostPerEnergyUnit_unit)); - dynamic_switch.insert(std::make_pair("cim:TimeInterval.end", &assign_TimeInterval_end)); - dynamic_switch.insert(std::make_pair("cim:TimeInterval.start", &assign_TimeInterval_start)); - dynamic_switch.insert(std::make_pair("cim:DateInterval.end", &assign_DateInterval_end)); - dynamic_switch.insert(std::make_pair("cim:DateInterval.start", &assign_DateInterval_start)); - dynamic_switch.insert(std::make_pair("cim:DateTimeInterval.end", &assign_DateTimeInterval_end)); - dynamic_switch.insert(std::make_pair("cim:DateTimeInterval.start", &assign_DateTimeInterval_start)); - dynamic_switch.insert(std::make_pair("cim:FloatQuantity.multiplier", &assign_FloatQuantity_multiplier)); - dynamic_switch.insert(std::make_pair("cim:FloatQuantity.unit", &assign_FloatQuantity_unit)); - dynamic_switch.insert(std::make_pair("cim:Admittance.multiplier", &assign_Admittance_multiplier)); - dynamic_switch.insert(std::make_pair("cim:RealEnergy.multiplier", &assign_RealEnergy_multiplier)); - dynamic_switch.insert(std::make_pair("cim:RemoteUnit.remoteUnitType", &assign_RemoteUnit_remoteUnitType)); - dynamic_switch.insert(std::make_pair("cim:RemoteControl.actuatorMaximum", &assign_RemoteControl_actuatorMaximum)); - dynamic_switch.insert(std::make_pair("cim:RemoteControl.actuatorMinimum", &assign_RemoteControl_actuatorMinimum)); - dynamic_switch.insert(std::make_pair("cim:RemoteControl.remoteControlled", &assign_RemoteControl_remoteControlled)); - dynamic_switch.insert(std::make_pair("cim:RemoteSource.deadband", &assign_RemoteSource_deadband)); - dynamic_switch.insert(std::make_pair("cim:RemoteSource.scanInterval", &assign_RemoteSource_scanInterval)); - dynamic_switch.insert(std::make_pair("cim:RemoteSource.sensorMaximum", &assign_RemoteSource_sensorMaximum)); - dynamic_switch.insert(std::make_pair("cim:RemoteSource.sensorMinimum", &assign_RemoteSource_sensorMinimum)); - dynamic_switch.insert(std::make_pair("cim:PotentialTransformer.accuracyClass", &assign_PotentialTransformer_accuracyClass)); - dynamic_switch.insert(std::make_pair("cim:PotentialTransformer.nominalRatio", &assign_PotentialTransformer_nominalRatio)); - dynamic_switch.insert(std::make_pair("cim:PotentialTransformer.ptClass", &assign_PotentialTransformer_ptClass)); - dynamic_switch.insert(std::make_pair("cim:PotentialTransformer.type", &assign_PotentialTransformer_type)); - dynamic_switch.insert(std::make_pair("cim:CurrentTransformer.accuracyClass", &assign_CurrentTransformer_accuracyClass)); - dynamic_switch.insert(std::make_pair("cim:CurrentTransformer.accuracyLimit", &assign_CurrentTransformer_accuracyLimit)); - dynamic_switch.insert(std::make_pair("cim:CurrentTransformer.coreBurden", &assign_CurrentTransformer_coreBurden)); - dynamic_switch.insert(std::make_pair("cim:CurrentTransformer.ctClass", &assign_CurrentTransformer_ctClass)); - dynamic_switch.insert(std::make_pair("cim:CurrentTransformer.usage", &assign_CurrentTransformer_usage)); - dynamic_switch.insert(std::make_pair("cim:CurveData.xvalue", &assign_CurveData_xvalue)); - dynamic_switch.insert(std::make_pair("cim:CurveData.y1value", &assign_CurveData_y1value)); - dynamic_switch.insert(std::make_pair("cim:CurveData.y2value", &assign_CurveData_y2value)); - dynamic_switch.insert(std::make_pair("cim:CurveData.y3value", &assign_CurveData_y3value)); - dynamic_switch.insert(std::make_pair("cim:Bay.bayEnergyMeasFlag", &assign_Bay_bayEnergyMeasFlag)); - dynamic_switch.insert(std::make_pair("cim:Bay.bayPowerMeasFlag", &assign_Bay_bayPowerMeasFlag)); - dynamic_switch.insert(std::make_pair("cim:Bay.breakerConfiguration", &assign_Bay_breakerConfiguration)); - dynamic_switch.insert(std::make_pair("cim:Bay.busBarConfiguration", &assign_Bay_busBarConfiguration)); - dynamic_switch.insert(std::make_pair("cim:VoltageLevel.highVoltageLimit", &assign_VoltageLevel_highVoltageLimit)); - dynamic_switch.insert(std::make_pair("cim:VoltageLevel.lowVoltageLimit", &assign_VoltageLevel_lowVoltageLimit)); - dynamic_switch.insert(std::make_pair("cim:DCConverterUnit.operationMode", &assign_DCConverterUnit_operationMode)); - dynamic_switch.insert(std::make_pair("cim:OperatingShare.percentage", &assign_OperatingShare_percentage)); - dynamic_switch.insert(std::make_pair("cim:Curve.curveStyle", &assign_Curve_curveStyle)); - dynamic_switch.insert(std::make_pair("cim:Curve.xMultiplier", &assign_Curve_xMultiplier)); - dynamic_switch.insert(std::make_pair("cim:Curve.xUnit", &assign_Curve_xUnit)); - dynamic_switch.insert(std::make_pair("cim:Curve.y1Multiplier", &assign_Curve_y1Multiplier)); - dynamic_switch.insert(std::make_pair("cim:Curve.y1Unit", &assign_Curve_y1Unit)); - dynamic_switch.insert(std::make_pair("cim:Curve.y2Multiplier", &assign_Curve_y2Multiplier)); - dynamic_switch.insert(std::make_pair("cim:Curve.y2Unit", &assign_Curve_y2Unit)); - dynamic_switch.insert(std::make_pair("cim:Curve.y3Multiplier", &assign_Curve_y3Multiplier)); - dynamic_switch.insert(std::make_pair("cim:Curve.y3Unit", &assign_Curve_y3Unit)); - dynamic_switch.insert(std::make_pair("cim:BaseFrequency.frequency", &assign_BaseFrequency_frequency)); - dynamic_switch.insert(std::make_pair("cim:NameTypeAuthority.description", &assign_NameTypeAuthority_description)); - dynamic_switch.insert(std::make_pair("cim:NameTypeAuthority.name", &assign_NameTypeAuthority_name)); - dynamic_switch.insert(std::make_pair("cim:NameType.description", &assign_NameType_description)); - dynamic_switch.insert(std::make_pair("cim:NameType.name", &assign_NameType_name)); - dynamic_switch.insert(std::make_pair("cim:Name.name", &assign_Name_name)); - dynamic_switch.insert(std::make_pair("cim:IrregularTimePoint.time", &assign_IrregularTimePoint_time)); - dynamic_switch.insert(std::make_pair("cim:IrregularTimePoint.value1", &assign_IrregularTimePoint_value1)); - dynamic_switch.insert(std::make_pair("cim:IrregularTimePoint.value2", &assign_IrregularTimePoint_value2)); - dynamic_switch.insert(std::make_pair("cim:BasePower.basePower", &assign_BasePower_basePower)); - dynamic_switch.insert(std::make_pair("cim:Diagram.orientation", &assign_Diagram_orientation)); - dynamic_switch.insert(std::make_pair("cim:Diagram.x1InitialView", &assign_Diagram_x1InitialView)); - dynamic_switch.insert(std::make_pair("cim:Diagram.x2InitialView", &assign_Diagram_x2InitialView)); - dynamic_switch.insert(std::make_pair("cim:Diagram.y1InitialView", &assign_Diagram_y1InitialView)); - dynamic_switch.insert(std::make_pair("cim:Diagram.y2InitialView", &assign_Diagram_y2InitialView)); - dynamic_switch.insert(std::make_pair("cim:VisibilityLayer.drawingOrder", &assign_VisibilityLayer_drawingOrder)); - dynamic_switch.insert(std::make_pair("cim:DiagramObjectPoint.sequenceNumber", &assign_DiagramObjectPoint_sequenceNumber)); - dynamic_switch.insert(std::make_pair("cim:DiagramObjectPoint.xPosition", &assign_DiagramObjectPoint_xPosition)); - dynamic_switch.insert(std::make_pair("cim:DiagramObjectPoint.yPosition", &assign_DiagramObjectPoint_yPosition)); - dynamic_switch.insert(std::make_pair("cim:DiagramObjectPoint.zPosition", &assign_DiagramObjectPoint_zPosition)); - dynamic_switch.insert(std::make_pair("cim:DiagramObject.drawingOrder", &assign_DiagramObject_drawingOrder)); - dynamic_switch.insert(std::make_pair("cim:DiagramObject.isPolygon", &assign_DiagramObject_isPolygon)); - dynamic_switch.insert(std::make_pair("cim:DiagramObject.offsetX", &assign_DiagramObject_offsetX)); - dynamic_switch.insert(std::make_pair("cim:DiagramObject.offsetY", &assign_DiagramObject_offsetY)); - dynamic_switch.insert(std::make_pair("cim:DiagramObject.rotation", &assign_DiagramObject_rotation)); - dynamic_switch.insert(std::make_pair("cim:TextDiagramObject.text", &assign_TextDiagramObject_text)); - dynamic_switch.insert(std::make_pair("cim:PowerCutZone.cutLevel1", &assign_PowerCutZone_cutLevel1)); - dynamic_switch.insert(std::make_pair("cim:PowerCutZone.cutLevel2", &assign_PowerCutZone_cutLevel2)); - dynamic_switch.insert(std::make_pair("cim:Season.endDate", &assign_Season_endDate)); - dynamic_switch.insert(std::make_pair("cim:Season.startDate", &assign_Season_startDate)); - dynamic_switch.insert(std::make_pair("cim:ShuntCompensatorPhase.maximumSections", &assign_ShuntCompensatorPhase_maximumSections)); - dynamic_switch.insert(std::make_pair("cim:ShuntCompensatorPhase.normalSections", &assign_ShuntCompensatorPhase_normalSections)); - dynamic_switch.insert(std::make_pair("cim:ShuntCompensatorPhase.phase", &assign_ShuntCompensatorPhase_phase)); - dynamic_switch.insert(std::make_pair("cim:ShuntCompensator.aVRDelay", &assign_ShuntCompensator_aVRDelay)); - dynamic_switch.insert(std::make_pair("cim:ShuntCompensator.grounded", &assign_ShuntCompensator_grounded)); - dynamic_switch.insert(std::make_pair("cim:ShuntCompensator.maximumSections", &assign_ShuntCompensator_maximumSections)); - dynamic_switch.insert(std::make_pair("cim:ShuntCompensator.nomU", &assign_ShuntCompensator_nomU)); - dynamic_switch.insert(std::make_pair("cim:ShuntCompensator.normalSections", &assign_ShuntCompensator_normalSections)); - dynamic_switch.insert(std::make_pair("cim:ShuntCompensator.phaseConnection", &assign_ShuntCompensator_phaseConnection)); - dynamic_switch.insert(std::make_pair("cim:ShuntCompensator.sections", &assign_ShuntCompensator_sections)); - dynamic_switch.insert(std::make_pair("cim:ShuntCompensator.switchOnCount", &assign_ShuntCompensator_switchOnCount)); - dynamic_switch.insert(std::make_pair("cim:ShuntCompensator.switchOnDate", &assign_ShuntCompensator_switchOnDate)); - dynamic_switch.insert(std::make_pair("cim:ShuntCompensator.voltageSensitivity", &assign_ShuntCompensator_voltageSensitivity)); - dynamic_switch.insert(std::make_pair("cim:LinearShuntCompensator.b0PerSection", &assign_LinearShuntCompensator_b0PerSection)); - dynamic_switch.insert(std::make_pair("cim:LinearShuntCompensator.bPerSection", &assign_LinearShuntCompensator_bPerSection)); - dynamic_switch.insert(std::make_pair("cim:LinearShuntCompensator.g0PerSection", &assign_LinearShuntCompensator_g0PerSection)); - dynamic_switch.insert(std::make_pair("cim:LinearShuntCompensator.gPerSection", &assign_LinearShuntCompensator_gPerSection)); - dynamic_switch.insert(std::make_pair("cim:TapChangerControl.limitVoltage", &assign_TapChangerControl_limitVoltage)); - dynamic_switch.insert(std::make_pair("cim:TapChangerControl.lineDropCompensation", &assign_TapChangerControl_lineDropCompensation)); - dynamic_switch.insert(std::make_pair("cim:TapChangerControl.lineDropR", &assign_TapChangerControl_lineDropR)); - dynamic_switch.insert(std::make_pair("cim:TapChangerControl.lineDropX", &assign_TapChangerControl_lineDropX)); - dynamic_switch.insert(std::make_pair("cim:TapChangerControl.reverseLineDropR", &assign_TapChangerControl_reverseLineDropR)); - dynamic_switch.insert(std::make_pair("cim:TapChangerControl.reverseLineDropX", &assign_TapChangerControl_reverseLineDropX)); - dynamic_switch.insert(std::make_pair("cim:TapChanger.controlEnabled", &assign_TapChanger_controlEnabled)); - dynamic_switch.insert(std::make_pair("cim:TapChanger.highStep", &assign_TapChanger_highStep)); - dynamic_switch.insert(std::make_pair("cim:TapChanger.initialDelay", &assign_TapChanger_initialDelay)); - dynamic_switch.insert(std::make_pair("cim:TapChanger.lowStep", &assign_TapChanger_lowStep)); - dynamic_switch.insert(std::make_pair("cim:TapChanger.ltcFlag", &assign_TapChanger_ltcFlag)); - dynamic_switch.insert(std::make_pair("cim:TapChanger.neutralStep", &assign_TapChanger_neutralStep)); - dynamic_switch.insert(std::make_pair("cim:TapChanger.neutralU", &assign_TapChanger_neutralU)); - dynamic_switch.insert(std::make_pair("cim:TapChanger.normalStep", &assign_TapChanger_normalStep)); - dynamic_switch.insert(std::make_pair("cim:TapChanger.step", &assign_TapChanger_step)); - dynamic_switch.insert(std::make_pair("cim:TapChanger.subsequentDelay", &assign_TapChanger_subsequentDelay)); - dynamic_switch.insert(std::make_pair("cim:Conductor.length", &assign_Conductor_length)); - dynamic_switch.insert(std::make_pair("cim:Clamp.lengthFromTerminal1", &assign_Clamp_lengthFromTerminal1)); - dynamic_switch.insert(std::make_pair("cim:ACLineSegment.b0ch", &assign_ACLineSegment_b0ch)); - dynamic_switch.insert(std::make_pair("cim:ACLineSegment.bch", &assign_ACLineSegment_bch)); - dynamic_switch.insert(std::make_pair("cim:ACLineSegment.g0ch", &assign_ACLineSegment_g0ch)); - dynamic_switch.insert(std::make_pair("cim:ACLineSegment.gch", &assign_ACLineSegment_gch)); - dynamic_switch.insert(std::make_pair("cim:ACLineSegment.r", &assign_ACLineSegment_r)); - dynamic_switch.insert(std::make_pair("cim:ACLineSegment.r0", &assign_ACLineSegment_r0)); - dynamic_switch.insert(std::make_pair("cim:ACLineSegment.shortCircuitEndTemperature", &assign_ACLineSegment_shortCircuitEndTemperature)); - dynamic_switch.insert(std::make_pair("cim:ACLineSegment.x", &assign_ACLineSegment_x)); - dynamic_switch.insert(std::make_pair("cim:ACLineSegment.x0", &assign_ACLineSegment_x0)); - dynamic_switch.insert(std::make_pair("cim:LinearShuntCompensatorPhase.bPerSection", &assign_LinearShuntCompensatorPhase_bPerSection)); - dynamic_switch.insert(std::make_pair("cim:LinearShuntCompensatorPhase.gPerSection", &assign_LinearShuntCompensatorPhase_gPerSection)); - dynamic_switch.insert(std::make_pair("cim:MutualCoupling.b0ch", &assign_MutualCoupling_b0ch)); - dynamic_switch.insert(std::make_pair("cim:MutualCoupling.distance11", &assign_MutualCoupling_distance11)); - dynamic_switch.insert(std::make_pair("cim:MutualCoupling.distance12", &assign_MutualCoupling_distance12)); - dynamic_switch.insert(std::make_pair("cim:MutualCoupling.distance21", &assign_MutualCoupling_distance21)); - dynamic_switch.insert(std::make_pair("cim:MutualCoupling.distance22", &assign_MutualCoupling_distance22)); - dynamic_switch.insert(std::make_pair("cim:MutualCoupling.g0ch", &assign_MutualCoupling_g0ch)); - dynamic_switch.insert(std::make_pair("cim:MutualCoupling.r0", &assign_MutualCoupling_r0)); - dynamic_switch.insert(std::make_pair("cim:MutualCoupling.x0", &assign_MutualCoupling_x0)); - dynamic_switch.insert(std::make_pair("cim:StaticVarCompensator.capacitiveRating", &assign_StaticVarCompensator_capacitiveRating)); - dynamic_switch.insert(std::make_pair("cim:StaticVarCompensator.inductiveRating", &assign_StaticVarCompensator_inductiveRating)); - dynamic_switch.insert(std::make_pair("cim:StaticVarCompensator.q", &assign_StaticVarCompensator_q)); - dynamic_switch.insert(std::make_pair("cim:StaticVarCompensator.slope", &assign_StaticVarCompensator_slope)); - dynamic_switch.insert(std::make_pair("cim:StaticVarCompensator.sVCControlMode", &assign_StaticVarCompensator_sVCControlMode)); - dynamic_switch.insert(std::make_pair("cim:StaticVarCompensator.voltageSetPoint", &assign_StaticVarCompensator_voltageSetPoint)); - dynamic_switch.insert(std::make_pair("cim:PhaseImpedanceData.b", &assign_PhaseImpedanceData_b)); - dynamic_switch.insert(std::make_pair("cim:PhaseImpedanceData.r", &assign_PhaseImpedanceData_r)); - dynamic_switch.insert(std::make_pair("cim:PhaseImpedanceData.sequenceNumber", &assign_PhaseImpedanceData_sequenceNumber)); - dynamic_switch.insert(std::make_pair("cim:PhaseImpedanceData.x", &assign_PhaseImpedanceData_x)); - dynamic_switch.insert(std::make_pair("cim:PerLengthPhaseImpedance.conductorCount", &assign_PerLengthPhaseImpedance_conductorCount)); - dynamic_switch.insert(std::make_pair("cim:ReactiveCapabilityCurve.coolantTemperature", &assign_ReactiveCapabilityCurve_coolantTemperature)); - dynamic_switch.insert(std::make_pair("cim:ReactiveCapabilityCurve.hydrogenPressure", &assign_ReactiveCapabilityCurve_hydrogenPressure)); - dynamic_switch.insert(std::make_pair("cim:PhaseTapChangerNonLinear.voltageStepIncrement", &assign_PhaseTapChangerNonLinear_voltageStepIncrement)); - dynamic_switch.insert(std::make_pair("cim:PhaseTapChangerNonLinear.xMax", &assign_PhaseTapChangerNonLinear_xMax)); - dynamic_switch.insert(std::make_pair("cim:PhaseTapChangerNonLinear.xMin", &assign_PhaseTapChangerNonLinear_xMin)); - dynamic_switch.insert(std::make_pair("cim:EarthFaultCompensator.r", &assign_EarthFaultCompensator_r)); - dynamic_switch.insert(std::make_pair("cim:PetersenCoil.mode", &assign_PetersenCoil_mode)); - dynamic_switch.insert(std::make_pair("cim:PetersenCoil.nominalU", &assign_PetersenCoil_nominalU)); - dynamic_switch.insert(std::make_pair("cim:PetersenCoil.offsetCurrent", &assign_PetersenCoil_offsetCurrent)); - dynamic_switch.insert(std::make_pair("cim:PetersenCoil.positionCurrent", &assign_PetersenCoil_positionCurrent)); - dynamic_switch.insert(std::make_pair("cim:PetersenCoil.xGroundMax", &assign_PetersenCoil_xGroundMax)); - dynamic_switch.insert(std::make_pair("cim:PetersenCoil.xGroundMin", &assign_PetersenCoil_xGroundMin)); - dynamic_switch.insert(std::make_pair("cim:PetersenCoil.xGroundNominal", &assign_PetersenCoil_xGroundNominal)); - dynamic_switch.insert(std::make_pair("cim:PhaseTapChangerLinear.stepPhaseShiftIncrement", &assign_PhaseTapChangerLinear_stepPhaseShiftIncrement)); - dynamic_switch.insert(std::make_pair("cim:PhaseTapChangerLinear.xMax", &assign_PhaseTapChangerLinear_xMax)); - dynamic_switch.insert(std::make_pair("cim:PhaseTapChangerLinear.xMin", &assign_PhaseTapChangerLinear_xMin)); - dynamic_switch.insert(std::make_pair("cim:ACLineSegmentPhase.phase", &assign_ACLineSegmentPhase_phase)); - dynamic_switch.insert(std::make_pair("cim:ACLineSegmentPhase.sequenceNumber", &assign_ACLineSegmentPhase_sequenceNumber)); - dynamic_switch.insert(std::make_pair("cim:EnergySource.activePower", &assign_EnergySource_activePower)); - dynamic_switch.insert(std::make_pair("cim:EnergySource.nominalVoltage", &assign_EnergySource_nominalVoltage)); - dynamic_switch.insert(std::make_pair("cim:EnergySource.r", &assign_EnergySource_r)); - dynamic_switch.insert(std::make_pair("cim:EnergySource.r0", &assign_EnergySource_r0)); - dynamic_switch.insert(std::make_pair("cim:EnergySource.reactivePower", &assign_EnergySource_reactivePower)); - dynamic_switch.insert(std::make_pair("cim:EnergySource.rn", &assign_EnergySource_rn)); - dynamic_switch.insert(std::make_pair("cim:EnergySource.voltageAngle", &assign_EnergySource_voltageAngle)); - dynamic_switch.insert(std::make_pair("cim:EnergySource.voltageMagnitude", &assign_EnergySource_voltageMagnitude)); - dynamic_switch.insert(std::make_pair("cim:EnergySource.x", &assign_EnergySource_x)); - dynamic_switch.insert(std::make_pair("cim:EnergySource.x0", &assign_EnergySource_x0)); - dynamic_switch.insert(std::make_pair("cim:EnergySource.xn", &assign_EnergySource_xn)); - dynamic_switch.insert(std::make_pair("cim:NonlinearShuntCompensatorPoint.b", &assign_NonlinearShuntCompensatorPoint_b)); - dynamic_switch.insert(std::make_pair("cim:NonlinearShuntCompensatorPoint.b0", &assign_NonlinearShuntCompensatorPoint_b0)); - dynamic_switch.insert(std::make_pair("cim:NonlinearShuntCompensatorPoint.g", &assign_NonlinearShuntCompensatorPoint_g)); - dynamic_switch.insert(std::make_pair("cim:NonlinearShuntCompensatorPoint.g0", &assign_NonlinearShuntCompensatorPoint_g0)); - dynamic_switch.insert(std::make_pair("cim:NonlinearShuntCompensatorPoint.sectionNumber", &assign_NonlinearShuntCompensatorPoint_sectionNumber)); - dynamic_switch.insert(std::make_pair("cim:TransformerStarImpedance.r", &assign_TransformerStarImpedance_r)); - dynamic_switch.insert(std::make_pair("cim:TransformerStarImpedance.r0", &assign_TransformerStarImpedance_r0)); - dynamic_switch.insert(std::make_pair("cim:TransformerStarImpedance.x", &assign_TransformerStarImpedance_x)); - dynamic_switch.insert(std::make_pair("cim:TransformerStarImpedance.x0", &assign_TransformerStarImpedance_x0)); - dynamic_switch.insert(std::make_pair("cim:RatioTapChanger.stepVoltageIncrement", &assign_RatioTapChanger_stepVoltageIncrement)); - dynamic_switch.insert(std::make_pair("cim:RatioTapChanger.tculControlMode", &assign_RatioTapChanger_tculControlMode)); - dynamic_switch.insert(std::make_pair("cim:TransformerEnd.bmagSat", &assign_TransformerEnd_bmagSat)); - dynamic_switch.insert(std::make_pair("cim:TransformerEnd.endNumber", &assign_TransformerEnd_endNumber)); - dynamic_switch.insert(std::make_pair("cim:TransformerEnd.grounded", &assign_TransformerEnd_grounded)); - dynamic_switch.insert(std::make_pair("cim:TransformerEnd.magBaseU", &assign_TransformerEnd_magBaseU)); - dynamic_switch.insert(std::make_pair("cim:TransformerEnd.magSatFlux", &assign_TransformerEnd_magSatFlux)); - dynamic_switch.insert(std::make_pair("cim:TransformerEnd.rground", &assign_TransformerEnd_rground)); - dynamic_switch.insert(std::make_pair("cim:TransformerEnd.xground", &assign_TransformerEnd_xground)); - dynamic_switch.insert(std::make_pair("cim:PowerTransformerEnd.b", &assign_PowerTransformerEnd_b)); - dynamic_switch.insert(std::make_pair("cim:PowerTransformerEnd.b0", &assign_PowerTransformerEnd_b0)); - dynamic_switch.insert(std::make_pair("cim:PowerTransformerEnd.connectionKind", &assign_PowerTransformerEnd_connectionKind)); - dynamic_switch.insert(std::make_pair("cim:PowerTransformerEnd.g", &assign_PowerTransformerEnd_g)); - dynamic_switch.insert(std::make_pair("cim:PowerTransformerEnd.g0", &assign_PowerTransformerEnd_g0)); - dynamic_switch.insert(std::make_pair("cim:PowerTransformerEnd.phaseAngleClock", &assign_PowerTransformerEnd_phaseAngleClock)); - dynamic_switch.insert(std::make_pair("cim:PowerTransformerEnd.r", &assign_PowerTransformerEnd_r)); - dynamic_switch.insert(std::make_pair("cim:PowerTransformerEnd.r0", &assign_PowerTransformerEnd_r0)); - dynamic_switch.insert(std::make_pair("cim:PowerTransformerEnd.ratedS", &assign_PowerTransformerEnd_ratedS)); - dynamic_switch.insert(std::make_pair("cim:PowerTransformerEnd.ratedU", &assign_PowerTransformerEnd_ratedU)); - dynamic_switch.insert(std::make_pair("cim:PowerTransformerEnd.x", &assign_PowerTransformerEnd_x)); - dynamic_switch.insert(std::make_pair("cim:PowerTransformerEnd.x0", &assign_PowerTransformerEnd_x0)); - dynamic_switch.insert(std::make_pair("cim:ExternalNetworkInjection.governorSCD", &assign_ExternalNetworkInjection_governorSCD)); - dynamic_switch.insert(std::make_pair("cim:ExternalNetworkInjection.ikSecond", &assign_ExternalNetworkInjection_ikSecond)); - dynamic_switch.insert(std::make_pair("cim:ExternalNetworkInjection.maxInitialSymShCCurrent", &assign_ExternalNetworkInjection_maxInitialSymShCCurrent)); - dynamic_switch.insert(std::make_pair("cim:ExternalNetworkInjection.maxP", &assign_ExternalNetworkInjection_maxP)); - dynamic_switch.insert(std::make_pair("cim:ExternalNetworkInjection.maxQ", &assign_ExternalNetworkInjection_maxQ)); - dynamic_switch.insert(std::make_pair("cim:ExternalNetworkInjection.maxR0ToX0Ratio", &assign_ExternalNetworkInjection_maxR0ToX0Ratio)); - dynamic_switch.insert(std::make_pair("cim:ExternalNetworkInjection.maxR1ToX1Ratio", &assign_ExternalNetworkInjection_maxR1ToX1Ratio)); - dynamic_switch.insert(std::make_pair("cim:ExternalNetworkInjection.maxZ0ToZ1Ratio", &assign_ExternalNetworkInjection_maxZ0ToZ1Ratio)); - dynamic_switch.insert(std::make_pair("cim:ExternalNetworkInjection.minInitialSymShCCurrent", &assign_ExternalNetworkInjection_minInitialSymShCCurrent)); - dynamic_switch.insert(std::make_pair("cim:ExternalNetworkInjection.minP", &assign_ExternalNetworkInjection_minP)); - dynamic_switch.insert(std::make_pair("cim:ExternalNetworkInjection.minQ", &assign_ExternalNetworkInjection_minQ)); - dynamic_switch.insert(std::make_pair("cim:ExternalNetworkInjection.minR0ToX0Ratio", &assign_ExternalNetworkInjection_minR0ToX0Ratio)); - dynamic_switch.insert(std::make_pair("cim:ExternalNetworkInjection.minR1ToX1Ratio", &assign_ExternalNetworkInjection_minR1ToX1Ratio)); - dynamic_switch.insert(std::make_pair("cim:ExternalNetworkInjection.minZ0ToZ1Ratio", &assign_ExternalNetworkInjection_minZ0ToZ1Ratio)); - dynamic_switch.insert(std::make_pair("cim:ExternalNetworkInjection.p", &assign_ExternalNetworkInjection_p)); - dynamic_switch.insert(std::make_pair("cim:ExternalNetworkInjection.q", &assign_ExternalNetworkInjection_q)); - dynamic_switch.insert(std::make_pair("cim:ExternalNetworkInjection.referencePriority", &assign_ExternalNetworkInjection_referencePriority)); - dynamic_switch.insert(std::make_pair("cim:ExternalNetworkInjection.voltageFactor", &assign_ExternalNetworkInjection_voltageFactor)); - dynamic_switch.insert(std::make_pair("cim:TapChangerTablePoint.b", &assign_TapChangerTablePoint_b)); - dynamic_switch.insert(std::make_pair("cim:TapChangerTablePoint.g", &assign_TapChangerTablePoint_g)); - dynamic_switch.insert(std::make_pair("cim:TapChangerTablePoint.r", &assign_TapChangerTablePoint_r)); - dynamic_switch.insert(std::make_pair("cim:TapChangerTablePoint.ratio", &assign_TapChangerTablePoint_ratio)); - dynamic_switch.insert(std::make_pair("cim:TapChangerTablePoint.step", &assign_TapChangerTablePoint_step)); - dynamic_switch.insert(std::make_pair("cim:TapChangerTablePoint.x", &assign_TapChangerTablePoint_x)); - dynamic_switch.insert(std::make_pair("cim:TransformerCoreAdmittance.b", &assign_TransformerCoreAdmittance_b)); - dynamic_switch.insert(std::make_pair("cim:TransformerCoreAdmittance.b0", &assign_TransformerCoreAdmittance_b0)); - dynamic_switch.insert(std::make_pair("cim:TransformerCoreAdmittance.g", &assign_TransformerCoreAdmittance_g)); - dynamic_switch.insert(std::make_pair("cim:TransformerCoreAdmittance.g0", &assign_TransformerCoreAdmittance_g0)); - dynamic_switch.insert(std::make_pair("cim:PerLengthSequenceImpedance.b0ch", &assign_PerLengthSequenceImpedance_b0ch)); - dynamic_switch.insert(std::make_pair("cim:PerLengthSequenceImpedance.bch", &assign_PerLengthSequenceImpedance_bch)); - dynamic_switch.insert(std::make_pair("cim:PerLengthSequenceImpedance.g0ch", &assign_PerLengthSequenceImpedance_g0ch)); - dynamic_switch.insert(std::make_pair("cim:PerLengthSequenceImpedance.gch", &assign_PerLengthSequenceImpedance_gch)); - dynamic_switch.insert(std::make_pair("cim:PerLengthSequenceImpedance.r", &assign_PerLengthSequenceImpedance_r)); - dynamic_switch.insert(std::make_pair("cim:PerLengthSequenceImpedance.r0", &assign_PerLengthSequenceImpedance_r0)); - dynamic_switch.insert(std::make_pair("cim:PerLengthSequenceImpedance.x", &assign_PerLengthSequenceImpedance_x)); - dynamic_switch.insert(std::make_pair("cim:PerLengthSequenceImpedance.x0", &assign_PerLengthSequenceImpedance_x0)); - dynamic_switch.insert(std::make_pair("cim:SwitchPhase.closed", &assign_SwitchPhase_closed)); - dynamic_switch.insert(std::make_pair("cim:SwitchPhase.normalOpen", &assign_SwitchPhase_normalOpen)); - dynamic_switch.insert(std::make_pair("cim:SwitchPhase.phaseSide1", &assign_SwitchPhase_phaseSide1)); - dynamic_switch.insert(std::make_pair("cim:SwitchPhase.phaseSide2", &assign_SwitchPhase_phaseSide2)); - dynamic_switch.insert(std::make_pair("cim:Switch.normalOpen", &assign_Switch_normalOpen)); - dynamic_switch.insert(std::make_pair("cim:Switch.open", &assign_Switch_open)); - dynamic_switch.insert(std::make_pair("cim:Switch.ratedCurrent", &assign_Switch_ratedCurrent)); - dynamic_switch.insert(std::make_pair("cim:Switch.retained", &assign_Switch_retained)); - dynamic_switch.insert(std::make_pair("cim:Switch.switchOnCount", &assign_Switch_switchOnCount)); - dynamic_switch.insert(std::make_pair("cim:Switch.switchOnDate", &assign_Switch_switchOnDate)); - dynamic_switch.insert(std::make_pair("cim:RecloseSequence.recloseDelay", &assign_RecloseSequence_recloseDelay)); - dynamic_switch.insert(std::make_pair("cim:RecloseSequence.recloseStep", &assign_RecloseSequence_recloseStep)); - dynamic_switch.insert(std::make_pair("cim:ProtectedSwitch.breakingCapacity", &assign_ProtectedSwitch_breakingCapacity)); - dynamic_switch.insert(std::make_pair("cim:TransformerMeshImpedance.r", &assign_TransformerMeshImpedance_r)); - dynamic_switch.insert(std::make_pair("cim:TransformerMeshImpedance.r0", &assign_TransformerMeshImpedance_r0)); - dynamic_switch.insert(std::make_pair("cim:TransformerMeshImpedance.x", &assign_TransformerMeshImpedance_x)); - dynamic_switch.insert(std::make_pair("cim:TransformerMeshImpedance.x0", &assign_TransformerMeshImpedance_x0)); - dynamic_switch.insert(std::make_pair("cim:EnergySourcePhase.phase", &assign_EnergySourcePhase_phase)); - dynamic_switch.insert(std::make_pair("cim:Breaker.inTransitTime", &assign_Breaker_inTransitTime)); - dynamic_switch.insert(std::make_pair("cim:CompositeSwitch.compositeSwitchType", &assign_CompositeSwitch_compositeSwitchType)); - dynamic_switch.insert(std::make_pair("cim:PowerTransformer.beforeShCircuitHighestOperatingCurrent", &assign_PowerTransformer_beforeShCircuitHighestOperatingCurrent)); - dynamic_switch.insert(std::make_pair("cim:PowerTransformer.beforeShCircuitHighestOperatingVoltage", &assign_PowerTransformer_beforeShCircuitHighestOperatingVoltage)); - dynamic_switch.insert(std::make_pair("cim:PowerTransformer.beforeShortCircuitAnglePf", &assign_PowerTransformer_beforeShortCircuitAnglePf)); - dynamic_switch.insert(std::make_pair("cim:PowerTransformer.highSideMinOperatingU", &assign_PowerTransformer_highSideMinOperatingU)); - dynamic_switch.insert(std::make_pair("cim:PowerTransformer.isPartOfGeneratorUnit", &assign_PowerTransformer_isPartOfGeneratorUnit)); - dynamic_switch.insert(std::make_pair("cim:PowerTransformer.operationalValuesConsidered", &assign_PowerTransformer_operationalValuesConsidered)); - dynamic_switch.insert(std::make_pair("cim:PowerTransformer.vectorGroup", &assign_PowerTransformer_vectorGroup)); - dynamic_switch.insert(std::make_pair("cim:Cut.lengthFromTerminal1", &assign_Cut_lengthFromTerminal1)); - dynamic_switch.insert(std::make_pair("cim:NonlinearShuntCompensatorPhasePoint.b", &assign_NonlinearShuntCompensatorPhasePoint_b)); - dynamic_switch.insert(std::make_pair("cim:NonlinearShuntCompensatorPhasePoint.g", &assign_NonlinearShuntCompensatorPhasePoint_g)); - dynamic_switch.insert(std::make_pair("cim:NonlinearShuntCompensatorPhasePoint.sectionNumber", &assign_NonlinearShuntCompensatorPhasePoint_sectionNumber)); - dynamic_switch.insert(std::make_pair("cim:PhaseTapChangerTablePoint.angle", &assign_PhaseTapChangerTablePoint_angle)); - dynamic_switch.insert(std::make_pair("cim:FrequencyConverter.frequency", &assign_FrequencyConverter_frequency)); - dynamic_switch.insert(std::make_pair("cim:FrequencyConverter.maxP", &assign_FrequencyConverter_maxP)); - dynamic_switch.insert(std::make_pair("cim:FrequencyConverter.maxU", &assign_FrequencyConverter_maxU)); - dynamic_switch.insert(std::make_pair("cim:FrequencyConverter.minP", &assign_FrequencyConverter_minP)); - dynamic_switch.insert(std::make_pair("cim:FrequencyConverter.minU", &assign_FrequencyConverter_minU)); - dynamic_switch.insert(std::make_pair("cim:GroundingImpedance.x", &assign_GroundingImpedance_x)); - dynamic_switch.insert(std::make_pair("cim:SeriesCompensator.r", &assign_SeriesCompensator_r)); - dynamic_switch.insert(std::make_pair("cim:SeriesCompensator.r0", &assign_SeriesCompensator_r0)); - dynamic_switch.insert(std::make_pair("cim:SeriesCompensator.varistorPresent", &assign_SeriesCompensator_varistorPresent)); - dynamic_switch.insert(std::make_pair("cim:SeriesCompensator.varistorRatedCurrent", &assign_SeriesCompensator_varistorRatedCurrent)); - dynamic_switch.insert(std::make_pair("cim:SeriesCompensator.varistorVoltageThreshold", &assign_SeriesCompensator_varistorVoltageThreshold)); - dynamic_switch.insert(std::make_pair("cim:SeriesCompensator.x", &assign_SeriesCompensator_x)); - dynamic_switch.insert(std::make_pair("cim:SeriesCompensator.x0", &assign_SeriesCompensator_x0)); - dynamic_switch.insert(std::make_pair("cim:PhaseTapChangerAsymmetrical.windingConnectionAngle", &assign_PhaseTapChangerAsymmetrical_windingConnectionAngle)); - dynamic_switch.insert(std::make_pair("cim:BusbarSection.ipMax", &assign_BusbarSection_ipMax)); - dynamic_switch.insert(std::make_pair("cim:TransformerTankEnd.phases", &assign_TransformerTankEnd_phases)); - dynamic_switch.insert(std::make_pair("cim:Quality61850.badReference", &assign_Quality61850_badReference)); - dynamic_switch.insert(std::make_pair("cim:Quality61850.estimatorReplaced", &assign_Quality61850_estimatorReplaced)); - dynamic_switch.insert(std::make_pair("cim:Quality61850.failure", &assign_Quality61850_failure)); - dynamic_switch.insert(std::make_pair("cim:Quality61850.oldData", &assign_Quality61850_oldData)); - dynamic_switch.insert(std::make_pair("cim:Quality61850.operatorBlocked", &assign_Quality61850_operatorBlocked)); - dynamic_switch.insert(std::make_pair("cim:Quality61850.oscillatory", &assign_Quality61850_oscillatory)); - dynamic_switch.insert(std::make_pair("cim:Quality61850.outOfRange", &assign_Quality61850_outOfRange)); - dynamic_switch.insert(std::make_pair("cim:Quality61850.overFlow", &assign_Quality61850_overFlow)); - dynamic_switch.insert(std::make_pair("cim:Quality61850.source", &assign_Quality61850_source)); - dynamic_switch.insert(std::make_pair("cim:Quality61850.suspect", &assign_Quality61850_suspect)); - dynamic_switch.insert(std::make_pair("cim:Quality61850.test", &assign_Quality61850_test)); - dynamic_switch.insert(std::make_pair("cim:Quality61850.validity", &assign_Quality61850_validity)); - dynamic_switch.insert(std::make_pair("cim:MeasurementValue.sensorAccuracy", &assign_MeasurementValue_sensorAccuracy)); - dynamic_switch.insert(std::make_pair("cim:MeasurementValue.timeStamp", &assign_MeasurementValue_timeStamp)); - dynamic_switch.insert(std::make_pair("cim:AccumulatorValue.value", &assign_AccumulatorValue_value)); - dynamic_switch.insert(std::make_pair("cim:AnalogControl.maxValue", &assign_AnalogControl_maxValue)); - dynamic_switch.insert(std::make_pair("cim:AnalogControl.minValue", &assign_AnalogControl_minValue)); - dynamic_switch.insert(std::make_pair("cim:ValueToAlias.value", &assign_ValueToAlias_value)); - dynamic_switch.insert(std::make_pair("cim:AccumulatorLimit.value", &assign_AccumulatorLimit_value)); - dynamic_switch.insert(std::make_pair("cim:LimitSet.isPercentageLimits", &assign_LimitSet_isPercentageLimits)); - dynamic_switch.insert(std::make_pair("cim:AnalogLimit.value", &assign_AnalogLimit_value)); - dynamic_switch.insert(std::make_pair("cim:AnalogValue.value", &assign_AnalogValue_value)); - dynamic_switch.insert(std::make_pair("cim:Command.normalValue", &assign_Command_normalValue)); - dynamic_switch.insert(std::make_pair("cim:Command.value", &assign_Command_value)); - dynamic_switch.insert(std::make_pair("cim:StringMeasurementValue.value", &assign_StringMeasurementValue_value)); - dynamic_switch.insert(std::make_pair("cim:DiscreteValue.value", &assign_DiscreteValue_value)); - dynamic_switch.insert(std::make_pair("cim:Accumulator.maxValue", &assign_Accumulator_maxValue)); - dynamic_switch.insert(std::make_pair("cim:Analog.maxValue", &assign_Analog_maxValue)); - dynamic_switch.insert(std::make_pair("cim:Analog.minValue", &assign_Analog_minValue)); - dynamic_switch.insert(std::make_pair("cim:Analog.normalValue", &assign_Analog_normalValue)); - dynamic_switch.insert(std::make_pair("cim:Analog.positiveFlowIn", &assign_Analog_positiveFlowIn)); - dynamic_switch.insert(std::make_pair("cim:Discrete.maxValue", &assign_Discrete_maxValue)); - dynamic_switch.insert(std::make_pair("cim:Discrete.minValue", &assign_Discrete_minValue)); - dynamic_switch.insert(std::make_pair("cim:Discrete.normalValue", &assign_Discrete_normalValue)); - dynamic_switch.insert(std::make_pair("cim:SetPoint.normalValue", &assign_SetPoint_normalValue)); - dynamic_switch.insert(std::make_pair("cim:SetPoint.value", &assign_SetPoint_value)); - dynamic_switch.insert(std::make_pair("cim:SvTapStep.position", &assign_SvTapStep_position)); - dynamic_switch.insert(std::make_pair("cim:SvVoltage.angle", &assign_SvVoltage_angle)); - dynamic_switch.insert(std::make_pair("cim:SvVoltage.phase", &assign_SvVoltage_phase)); - dynamic_switch.insert(std::make_pair("cim:SvVoltage.v", &assign_SvVoltage_v)); - dynamic_switch.insert(std::make_pair("cim:SvShuntCompensatorSections.sections", &assign_SvShuntCompensatorSections_sections)); - dynamic_switch.insert(std::make_pair("cim:SvStatus.inService", &assign_SvStatus_inService)); - dynamic_switch.insert(std::make_pair("cim:SvStatus.phase", &assign_SvStatus_phase)); - dynamic_switch.insert(std::make_pair("cim:SvPowerFlow.p", &assign_SvPowerFlow_p)); - dynamic_switch.insert(std::make_pair("cim:SvPowerFlow.phase", &assign_SvPowerFlow_phase)); - dynamic_switch.insert(std::make_pair("cim:SvPowerFlow.q", &assign_SvPowerFlow_q)); - dynamic_switch.insert(std::make_pair("cim:SvInjection.phase", &assign_SvInjection_phase)); - dynamic_switch.insert(std::make_pair("cim:SvInjection.pInjection", &assign_SvInjection_pInjection)); - dynamic_switch.insert(std::make_pair("cim:SvInjection.qInjection", &assign_SvInjection_qInjection)); - dynamic_switch.insert(std::make_pair("cim:FuelAllocationSchedule.fuelAllocationEndDate", &assign_FuelAllocationSchedule_fuelAllocationEndDate)); - dynamic_switch.insert(std::make_pair("cim:FuelAllocationSchedule.fuelAllocationStartDate", &assign_FuelAllocationSchedule_fuelAllocationStartDate)); - dynamic_switch.insert(std::make_pair("cim:FuelAllocationSchedule.fuelType", &assign_FuelAllocationSchedule_fuelType)); - dynamic_switch.insert(std::make_pair("cim:FuelAllocationSchedule.maxFuelAllocation", &assign_FuelAllocationSchedule_maxFuelAllocation)); - dynamic_switch.insert(std::make_pair("cim:FuelAllocationSchedule.minFuelAllocation", &assign_FuelAllocationSchedule_minFuelAllocation)); - dynamic_switch.insert(std::make_pair("cim:HeatRate.multiplier", &assign_HeatRate_multiplier)); - dynamic_switch.insert(std::make_pair("cim:HeatInputCurve.auxPowerMult", &assign_HeatInputCurve_auxPowerMult)); - dynamic_switch.insert(std::make_pair("cim:HeatInputCurve.auxPowerOffset", &assign_HeatInputCurve_auxPowerOffset)); - dynamic_switch.insert(std::make_pair("cim:HeatInputCurve.heatInputEff", &assign_HeatInputCurve_heatInputEff)); - dynamic_switch.insert(std::make_pair("cim:HeatInputCurve.heatInputOffset", &assign_HeatInputCurve_heatInputOffset)); - dynamic_switch.insert(std::make_pair("cim:HeatInputCurve.isNetGrossP", &assign_HeatInputCurve_isNetGrossP)); - dynamic_switch.insert(std::make_pair("cim:CostPerHeatUnit.multiplier", &assign_CostPerHeatUnit_multiplier)); - dynamic_switch.insert(std::make_pair("cim:CostPerHeatUnit.unit", &assign_CostPerHeatUnit_unit)); - dynamic_switch.insert(std::make_pair("cim:EmissionCurve.emissionContent", &assign_EmissionCurve_emissionContent)); - dynamic_switch.insert(std::make_pair("cim:EmissionCurve.emissionType", &assign_EmissionCurve_emissionType)); - dynamic_switch.insert(std::make_pair("cim:EmissionCurve.isNetGrossP", &assign_EmissionCurve_isNetGrossP)); - dynamic_switch.insert(std::make_pair("cim:GenUnitOpCostCurve.isNetGrossP", &assign_GenUnitOpCostCurve_isNetGrossP)); - dynamic_switch.insert(std::make_pair("cim:GeneratingUnit.allocSpinResP", &assign_GeneratingUnit_allocSpinResP)); - dynamic_switch.insert(std::make_pair("cim:GeneratingUnit.autoCntrlMarginP", &assign_GeneratingUnit_autoCntrlMarginP)); - dynamic_switch.insert(std::make_pair("cim:GeneratingUnit.baseP", &assign_GeneratingUnit_baseP)); - dynamic_switch.insert(std::make_pair("cim:GeneratingUnit.controlDeadband", &assign_GeneratingUnit_controlDeadband)); - dynamic_switch.insert(std::make_pair("cim:GeneratingUnit.controlPulseHigh", &assign_GeneratingUnit_controlPulseHigh)); - dynamic_switch.insert(std::make_pair("cim:GeneratingUnit.controlPulseLow", &assign_GeneratingUnit_controlPulseLow)); - dynamic_switch.insert(std::make_pair("cim:GeneratingUnit.controlResponseRate", &assign_GeneratingUnit_controlResponseRate)); - dynamic_switch.insert(std::make_pair("cim:GeneratingUnit.efficiency", &assign_GeneratingUnit_efficiency)); - dynamic_switch.insert(std::make_pair("cim:GeneratingUnit.genControlMode", &assign_GeneratingUnit_genControlMode)); - dynamic_switch.insert(std::make_pair("cim:GeneratingUnit.genControlSource", &assign_GeneratingUnit_genControlSource)); - dynamic_switch.insert(std::make_pair("cim:GeneratingUnit.governorMPL", &assign_GeneratingUnit_governorMPL)); - dynamic_switch.insert(std::make_pair("cim:GeneratingUnit.governorSCD", &assign_GeneratingUnit_governorSCD)); - dynamic_switch.insert(std::make_pair("cim:GeneratingUnit.highControlLimit", &assign_GeneratingUnit_highControlLimit)); - dynamic_switch.insert(std::make_pair("cim:GeneratingUnit.initialP", &assign_GeneratingUnit_initialP)); - dynamic_switch.insert(std::make_pair("cim:GeneratingUnit.longPF", &assign_GeneratingUnit_longPF)); - dynamic_switch.insert(std::make_pair("cim:GeneratingUnit.lowControlLimit", &assign_GeneratingUnit_lowControlLimit)); - dynamic_switch.insert(std::make_pair("cim:GeneratingUnit.lowerRampRate", &assign_GeneratingUnit_lowerRampRate)); - dynamic_switch.insert(std::make_pair("cim:GeneratingUnit.maxEconomicP", &assign_GeneratingUnit_maxEconomicP)); - dynamic_switch.insert(std::make_pair("cim:GeneratingUnit.maximumAllowableSpinningReserve", &assign_GeneratingUnit_maximumAllowableSpinningReserve)); - dynamic_switch.insert(std::make_pair("cim:GeneratingUnit.maxOperatingP", &assign_GeneratingUnit_maxOperatingP)); - dynamic_switch.insert(std::make_pair("cim:GeneratingUnit.minEconomicP", &assign_GeneratingUnit_minEconomicP)); - dynamic_switch.insert(std::make_pair("cim:GeneratingUnit.minimumOffTime", &assign_GeneratingUnit_minimumOffTime)); - dynamic_switch.insert(std::make_pair("cim:GeneratingUnit.minOperatingP", &assign_GeneratingUnit_minOperatingP)); - dynamic_switch.insert(std::make_pair("cim:GeneratingUnit.modelDetail", &assign_GeneratingUnit_modelDetail)); - dynamic_switch.insert(std::make_pair("cim:GeneratingUnit.nominalP", &assign_GeneratingUnit_nominalP)); - dynamic_switch.insert(std::make_pair("cim:GeneratingUnit.normalPF", &assign_GeneratingUnit_normalPF)); - dynamic_switch.insert(std::make_pair("cim:GeneratingUnit.penaltyFactor", &assign_GeneratingUnit_penaltyFactor)); - dynamic_switch.insert(std::make_pair("cim:GeneratingUnit.raiseRampRate", &assign_GeneratingUnit_raiseRampRate)); - dynamic_switch.insert(std::make_pair("cim:GeneratingUnit.ratedGrossMaxP", &assign_GeneratingUnit_ratedGrossMaxP)); - dynamic_switch.insert(std::make_pair("cim:GeneratingUnit.ratedGrossMinP", &assign_GeneratingUnit_ratedGrossMinP)); - dynamic_switch.insert(std::make_pair("cim:GeneratingUnit.ratedNetMaxP", &assign_GeneratingUnit_ratedNetMaxP)); - dynamic_switch.insert(std::make_pair("cim:GeneratingUnit.shortPF", &assign_GeneratingUnit_shortPF)); - dynamic_switch.insert(std::make_pair("cim:GeneratingUnit.startupCost", &assign_GeneratingUnit_startupCost)); - dynamic_switch.insert(std::make_pair("cim:GeneratingUnit.startupTime", &assign_GeneratingUnit_startupTime)); - dynamic_switch.insert(std::make_pair("cim:GeneratingUnit.tieLinePF", &assign_GeneratingUnit_tieLinePF)); - dynamic_switch.insert(std::make_pair("cim:GeneratingUnit.totalEfficiency", &assign_GeneratingUnit_totalEfficiency)); - dynamic_switch.insert(std::make_pair("cim:GeneratingUnit.variableCost", &assign_GeneratingUnit_variableCost)); - dynamic_switch.insert(std::make_pair("cim:IncrementalHeatRateCurve.isNetGrossP", &assign_IncrementalHeatRateCurve_isNetGrossP)); - dynamic_switch.insert(std::make_pair("cim:StartIgnFuelCurve.ignitionFuelType", &assign_StartIgnFuelCurve_ignitionFuelType)); - dynamic_switch.insert(std::make_pair("cim:EmissionAccount.emissionType", &assign_EmissionAccount_emissionType)); - dynamic_switch.insert(std::make_pair("cim:EmissionAccount.emissionValueSource", &assign_EmissionAccount_emissionValueSource)); - dynamic_switch.insert(std::make_pair("cim:HydroGeneratingUnit.energyConversionCapability", &assign_HydroGeneratingUnit_energyConversionCapability)); - dynamic_switch.insert(std::make_pair("cim:HydroGeneratingUnit.hydroUnitWaterCost", &assign_HydroGeneratingUnit_hydroUnitWaterCost)); - dynamic_switch.insert(std::make_pair("cim:HeatRateCurve.isNetGrossP", &assign_HeatRateCurve_isNetGrossP)); - dynamic_switch.insert(std::make_pair("cim:StartRampCurve.hotStandbyRamp", &assign_StartRampCurve_hotStandbyRamp)); - dynamic_switch.insert(std::make_pair("cim:StartMainFuelCurve.mainFuelType", &assign_StartMainFuelCurve_mainFuelType)); - dynamic_switch.insert(std::make_pair("cim:StartupModel.fixedMaintCost", &assign_StartupModel_fixedMaintCost)); - dynamic_switch.insert(std::make_pair("cim:StartupModel.hotStandbyHeat", &assign_StartupModel_hotStandbyHeat)); - dynamic_switch.insert(std::make_pair("cim:StartupModel.incrementalMaintCost", &assign_StartupModel_incrementalMaintCost)); - dynamic_switch.insert(std::make_pair("cim:StartupModel.minimumDownTime", &assign_StartupModel_minimumDownTime)); - dynamic_switch.insert(std::make_pair("cim:StartupModel.minimumRunTime", &assign_StartupModel_minimumRunTime)); - dynamic_switch.insert(std::make_pair("cim:StartupModel.riskFactorCost", &assign_StartupModel_riskFactorCost)); - dynamic_switch.insert(std::make_pair("cim:StartupModel.startupCost", &assign_StartupModel_startupCost)); - dynamic_switch.insert(std::make_pair("cim:StartupModel.startupDate", &assign_StartupModel_startupDate)); - dynamic_switch.insert(std::make_pair("cim:StartupModel.startupPriority", &assign_StartupModel_startupPriority)); - dynamic_switch.insert(std::make_pair("cim:StartupModel.stbyAuxP", &assign_StartupModel_stbyAuxP)); - dynamic_switch.insert(std::make_pair("cim:ShutdownCurve.shutdownCost", &assign_ShutdownCurve_shutdownCost)); - dynamic_switch.insert(std::make_pair("cim:ShutdownCurve.shutdownDate", &assign_ShutdownCurve_shutdownDate)); - dynamic_switch.insert(std::make_pair("cim:ThermalGeneratingUnit.oMCost", &assign_ThermalGeneratingUnit_oMCost)); - dynamic_switch.insert(std::make_pair("cim:AirCompressor.airCompressorRating", &assign_AirCompressor_airCompressorRating)); - dynamic_switch.insert(std::make_pair("cim:CAESPlant.energyStorageCapacity", &assign_CAESPlant_energyStorageCapacity)); - dynamic_switch.insert(std::make_pair("cim:CAESPlant.ratedCapacityP", &assign_CAESPlant_ratedCapacityP)); - dynamic_switch.insert(std::make_pair("cim:TargetLevelSchedule.highLevelLimit", &assign_TargetLevelSchedule_highLevelLimit)); - dynamic_switch.insert(std::make_pair("cim:TargetLevelSchedule.lowLevelLimit", &assign_TargetLevelSchedule_lowLevelLimit)); - dynamic_switch.insert(std::make_pair("cim:Reservoir.activeStorageCapacity", &assign_Reservoir_activeStorageCapacity)); - dynamic_switch.insert(std::make_pair("cim:Reservoir.energyStorageRating", &assign_Reservoir_energyStorageRating)); - dynamic_switch.insert(std::make_pair("cim:Reservoir.fullSupplyLevel", &assign_Reservoir_fullSupplyLevel)); - dynamic_switch.insert(std::make_pair("cim:Reservoir.grossCapacity", &assign_Reservoir_grossCapacity)); - dynamic_switch.insert(std::make_pair("cim:Reservoir.normalMinOperateLevel", &assign_Reservoir_normalMinOperateLevel)); - dynamic_switch.insert(std::make_pair("cim:Reservoir.riverOutletWorks", &assign_Reservoir_riverOutletWorks)); - dynamic_switch.insert(std::make_pair("cim:Reservoir.spillTravelDelay", &assign_Reservoir_spillTravelDelay)); - dynamic_switch.insert(std::make_pair("cim:Reservoir.spillwayCapacity", &assign_Reservoir_spillwayCapacity)); - dynamic_switch.insert(std::make_pair("cim:Reservoir.spillwayCrestLength", &assign_Reservoir_spillwayCrestLength)); - dynamic_switch.insert(std::make_pair("cim:Reservoir.spillwayCrestLevel", &assign_Reservoir_spillwayCrestLevel)); - dynamic_switch.insert(std::make_pair("cim:Reservoir.spillWayGateType", &assign_Reservoir_spillWayGateType)); - dynamic_switch.insert(std::make_pair("cim:HydroPowerPlant.dischargeTravelDelay", &assign_HydroPowerPlant_dischargeTravelDelay)); - dynamic_switch.insert(std::make_pair("cim:HydroPowerPlant.genRatedP", &assign_HydroPowerPlant_genRatedP)); - dynamic_switch.insert(std::make_pair("cim:HydroPowerPlant.hydroPlantStorageType", &assign_HydroPowerPlant_hydroPlantStorageType)); - dynamic_switch.insert(std::make_pair("cim:HydroPowerPlant.penstockType", &assign_HydroPowerPlant_penstockType)); - dynamic_switch.insert(std::make_pair("cim:HydroPowerPlant.plantDischargeCapacity", &assign_HydroPowerPlant_plantDischargeCapacity)); - dynamic_switch.insert(std::make_pair("cim:HydroPowerPlant.plantRatedHead", &assign_HydroPowerPlant_plantRatedHead)); - dynamic_switch.insert(std::make_pair("cim:HydroPowerPlant.pumpRatedP", &assign_HydroPowerPlant_pumpRatedP)); - dynamic_switch.insert(std::make_pair("cim:HydroPowerPlant.surgeTankCode", &assign_HydroPowerPlant_surgeTankCode)); - dynamic_switch.insert(std::make_pair("cim:HydroPowerPlant.surgeTankCrestLevel", &assign_HydroPowerPlant_surgeTankCrestLevel)); - dynamic_switch.insert(std::make_pair("cim:WindGeneratingUnit.windGenUnitType", &assign_WindGeneratingUnit_windGenUnitType)); - dynamic_switch.insert(std::make_pair("cim:FossilFuel.fossilFuelType", &assign_FossilFuel_fossilFuelType)); - dynamic_switch.insert(std::make_pair("cim:FossilFuel.fuelCost", &assign_FossilFuel_fuelCost)); - dynamic_switch.insert(std::make_pair("cim:FossilFuel.fuelDispatchCost", &assign_FossilFuel_fuelDispatchCost)); - dynamic_switch.insert(std::make_pair("cim:FossilFuel.fuelEffFactor", &assign_FossilFuel_fuelEffFactor)); - dynamic_switch.insert(std::make_pair("cim:FossilFuel.fuelHandlingCost", &assign_FossilFuel_fuelHandlingCost)); - dynamic_switch.insert(std::make_pair("cim:FossilFuel.fuelHeatContent", &assign_FossilFuel_fuelHeatContent)); - dynamic_switch.insert(std::make_pair("cim:FossilFuel.fuelMixture", &assign_FossilFuel_fuelMixture)); - dynamic_switch.insert(std::make_pair("cim:FossilFuel.fuelSulfur", &assign_FossilFuel_fuelSulfur)); - dynamic_switch.insert(std::make_pair("cim:FossilFuel.highBreakpointP", &assign_FossilFuel_highBreakpointP)); - dynamic_switch.insert(std::make_pair("cim:FossilFuel.lowBreakpointP", &assign_FossilFuel_lowBreakpointP)); - dynamic_switch.insert(std::make_pair("cim:CogenerationPlant.cogenHPSendoutRating", &assign_CogenerationPlant_cogenHPSendoutRating)); - dynamic_switch.insert(std::make_pair("cim:CogenerationPlant.cogenHPSteamRating", &assign_CogenerationPlant_cogenHPSteamRating)); - dynamic_switch.insert(std::make_pair("cim:CogenerationPlant.cogenLPSendoutRating", &assign_CogenerationPlant_cogenLPSendoutRating)); - dynamic_switch.insert(std::make_pair("cim:CogenerationPlant.cogenLPSteamRating", &assign_CogenerationPlant_cogenLPSteamRating)); - dynamic_switch.insert(std::make_pair("cim:CogenerationPlant.ratedP", &assign_CogenerationPlant_ratedP)); - dynamic_switch.insert(std::make_pair("cim:CombinedCyclePlant.combCyclePlantRating", &assign_CombinedCyclePlant_combCyclePlantRating)); - dynamic_switch.insert(std::make_pair("cim:PrimeMover.primeMoverRating", &assign_PrimeMover_primeMoverRating)); - dynamic_switch.insert(std::make_pair("cim:SteamTurbine.crossoverTC", &assign_SteamTurbine_crossoverTC)); - dynamic_switch.insert(std::make_pair("cim:SteamTurbine.reheater1TC", &assign_SteamTurbine_reheater1TC)); - dynamic_switch.insert(std::make_pair("cim:SteamTurbine.reheater2TC", &assign_SteamTurbine_reheater2TC)); - dynamic_switch.insert(std::make_pair("cim:SteamTurbine.shaft1PowerHP", &assign_SteamTurbine_shaft1PowerHP)); - dynamic_switch.insert(std::make_pair("cim:SteamTurbine.shaft1PowerIP", &assign_SteamTurbine_shaft1PowerIP)); - dynamic_switch.insert(std::make_pair("cim:SteamTurbine.shaft1PowerLP1", &assign_SteamTurbine_shaft1PowerLP1)); - dynamic_switch.insert(std::make_pair("cim:SteamTurbine.shaft1PowerLP2", &assign_SteamTurbine_shaft1PowerLP2)); - dynamic_switch.insert(std::make_pair("cim:SteamTurbine.shaft2PowerHP", &assign_SteamTurbine_shaft2PowerHP)); - dynamic_switch.insert(std::make_pair("cim:SteamTurbine.shaft2PowerIP", &assign_SteamTurbine_shaft2PowerIP)); - dynamic_switch.insert(std::make_pair("cim:SteamTurbine.shaft2PowerLP1", &assign_SteamTurbine_shaft2PowerLP1)); - dynamic_switch.insert(std::make_pair("cim:SteamTurbine.shaft2PowerLP2", &assign_SteamTurbine_shaft2PowerLP2)); - dynamic_switch.insert(std::make_pair("cim:SteamTurbine.steamChestTC", &assign_SteamTurbine_steamChestTC)); - dynamic_switch.insert(std::make_pair("cim:SteamSupply.steamSupplyRating", &assign_SteamSupply_steamSupplyRating)); - dynamic_switch.insert(std::make_pair("cim:HydroTurbine.gateRateLimit", &assign_HydroTurbine_gateRateLimit)); - dynamic_switch.insert(std::make_pair("cim:HydroTurbine.gateUpperLimit", &assign_HydroTurbine_gateUpperLimit)); - dynamic_switch.insert(std::make_pair("cim:HydroTurbine.maxHeadMaxP", &assign_HydroTurbine_maxHeadMaxP)); - dynamic_switch.insert(std::make_pair("cim:HydroTurbine.minHeadMaxP", &assign_HydroTurbine_minHeadMaxP)); - dynamic_switch.insert(std::make_pair("cim:HydroTurbine.speedRating", &assign_HydroTurbine_speedRating)); - dynamic_switch.insert(std::make_pair("cim:HydroTurbine.speedRegulation", &assign_HydroTurbine_speedRegulation)); - dynamic_switch.insert(std::make_pair("cim:HydroTurbine.transientDroopTime", &assign_HydroTurbine_transientDroopTime)); - dynamic_switch.insert(std::make_pair("cim:HydroTurbine.transientRegulation", &assign_HydroTurbine_transientRegulation)); - dynamic_switch.insert(std::make_pair("cim:HydroTurbine.turbineRating", &assign_HydroTurbine_turbineRating)); - dynamic_switch.insert(std::make_pair("cim:HydroTurbine.turbineType", &assign_HydroTurbine_turbineType)); - dynamic_switch.insert(std::make_pair("cim:HydroTurbine.waterStartingTime", &assign_HydroTurbine_waterStartingTime)); - dynamic_switch.insert(std::make_pair("cim:CombustionTurbine.ambientTemp", &assign_CombustionTurbine_ambientTemp)); - dynamic_switch.insert(std::make_pair("cim:CombustionTurbine.auxPowerVersusFrequency", &assign_CombustionTurbine_auxPowerVersusFrequency)); - dynamic_switch.insert(std::make_pair("cim:CombustionTurbine.auxPowerVersusVoltage", &assign_CombustionTurbine_auxPowerVersusVoltage)); - dynamic_switch.insert(std::make_pair("cim:CombustionTurbine.capabilityVersusFrequency", &assign_CombustionTurbine_capabilityVersusFrequency)); - dynamic_switch.insert(std::make_pair("cim:CombustionTurbine.heatRecoveryFlag", &assign_CombustionTurbine_heatRecoveryFlag)); - dynamic_switch.insert(std::make_pair("cim:CombustionTurbine.powerVariationByTemp", &assign_CombustionTurbine_powerVariationByTemp)); - dynamic_switch.insert(std::make_pair("cim:CombustionTurbine.referenceTemp", &assign_CombustionTurbine_referenceTemp)); - dynamic_switch.insert(std::make_pair("cim:CombustionTurbine.timeConstant", &assign_CombustionTurbine_timeConstant)); - dynamic_switch.insert(std::make_pair("cim:PWRSteamSupply.coldLegFBLagTC", &assign_PWRSteamSupply_coldLegFBLagTC)); - dynamic_switch.insert(std::make_pair("cim:PWRSteamSupply.coldLegFBLeadTC1", &assign_PWRSteamSupply_coldLegFBLeadTC1)); - dynamic_switch.insert(std::make_pair("cim:PWRSteamSupply.coldLegFBLeadTC2", &assign_PWRSteamSupply_coldLegFBLeadTC2)); - dynamic_switch.insert(std::make_pair("cim:PWRSteamSupply.coldLegFG1", &assign_PWRSteamSupply_coldLegFG1)); - dynamic_switch.insert(std::make_pair("cim:PWRSteamSupply.coldLegFG2", &assign_PWRSteamSupply_coldLegFG2)); - dynamic_switch.insert(std::make_pair("cim:PWRSteamSupply.coldLegLagTC", &assign_PWRSteamSupply_coldLegLagTC)); - dynamic_switch.insert(std::make_pair("cim:PWRSteamSupply.coreHTLagTC1", &assign_PWRSteamSupply_coreHTLagTC1)); - dynamic_switch.insert(std::make_pair("cim:PWRSteamSupply.coreHTLagTC2", &assign_PWRSteamSupply_coreHTLagTC2)); - dynamic_switch.insert(std::make_pair("cim:PWRSteamSupply.coreNeutronicsEffTC", &assign_PWRSteamSupply_coreNeutronicsEffTC)); - dynamic_switch.insert(std::make_pair("cim:PWRSteamSupply.coreNeutronicsHT", &assign_PWRSteamSupply_coreNeutronicsHT)); - dynamic_switch.insert(std::make_pair("cim:PWRSteamSupply.feedbackFactor", &assign_PWRSteamSupply_feedbackFactor)); - dynamic_switch.insert(std::make_pair("cim:PWRSteamSupply.hotLegLagTC", &assign_PWRSteamSupply_hotLegLagTC)); - dynamic_switch.insert(std::make_pair("cim:PWRSteamSupply.hotLegSteamGain", &assign_PWRSteamSupply_hotLegSteamGain)); - dynamic_switch.insert(std::make_pair("cim:PWRSteamSupply.hotLegToColdLegGain", &assign_PWRSteamSupply_hotLegToColdLegGain)); - dynamic_switch.insert(std::make_pair("cim:PWRSteamSupply.pressureCG", &assign_PWRSteamSupply_pressureCG)); - dynamic_switch.insert(std::make_pair("cim:PWRSteamSupply.steamFlowFG", &assign_PWRSteamSupply_steamFlowFG)); - dynamic_switch.insert(std::make_pair("cim:PWRSteamSupply.steamPressureDropLagTC", &assign_PWRSteamSupply_steamPressureDropLagTC)); - dynamic_switch.insert(std::make_pair("cim:PWRSteamSupply.steamPressureFG", &assign_PWRSteamSupply_steamPressureFG)); - dynamic_switch.insert(std::make_pair("cim:PWRSteamSupply.throttlePressureFactor", &assign_PWRSteamSupply_throttlePressureFactor)); - dynamic_switch.insert(std::make_pair("cim:PWRSteamSupply.throttlePressureSP", &assign_PWRSteamSupply_throttlePressureSP)); - dynamic_switch.insert(std::make_pair("cim:FossilSteamSupply.auxPowerVersusFrequency", &assign_FossilSteamSupply_auxPowerVersusFrequency)); - dynamic_switch.insert(std::make_pair("cim:FossilSteamSupply.auxPowerVersusVoltage", &assign_FossilSteamSupply_auxPowerVersusVoltage)); - dynamic_switch.insert(std::make_pair("cim:FossilSteamSupply.boilerControlMode", &assign_FossilSteamSupply_boilerControlMode)); - dynamic_switch.insert(std::make_pair("cim:FossilSteamSupply.controlErrorBiasP", &assign_FossilSteamSupply_controlErrorBiasP)); - dynamic_switch.insert(std::make_pair("cim:FossilSteamSupply.controlIC", &assign_FossilSteamSupply_controlIC)); - dynamic_switch.insert(std::make_pair("cim:FossilSteamSupply.controlPC", &assign_FossilSteamSupply_controlPC)); - dynamic_switch.insert(std::make_pair("cim:FossilSteamSupply.controlPEB", &assign_FossilSteamSupply_controlPEB)); - dynamic_switch.insert(std::make_pair("cim:FossilSteamSupply.controlPED", &assign_FossilSteamSupply_controlPED)); - dynamic_switch.insert(std::make_pair("cim:FossilSteamSupply.controlTC", &assign_FossilSteamSupply_controlTC)); - dynamic_switch.insert(std::make_pair("cim:FossilSteamSupply.feedWaterIG", &assign_FossilSteamSupply_feedWaterIG)); - dynamic_switch.insert(std::make_pair("cim:FossilSteamSupply.feedWaterPG", &assign_FossilSteamSupply_feedWaterPG)); - dynamic_switch.insert(std::make_pair("cim:FossilSteamSupply.feedWaterTC", &assign_FossilSteamSupply_feedWaterTC)); - dynamic_switch.insert(std::make_pair("cim:FossilSteamSupply.fuelDemandLimit", &assign_FossilSteamSupply_fuelDemandLimit)); - dynamic_switch.insert(std::make_pair("cim:FossilSteamSupply.fuelSupplyDelay", &assign_FossilSteamSupply_fuelSupplyDelay)); - dynamic_switch.insert(std::make_pair("cim:FossilSteamSupply.fuelSupplyTC", &assign_FossilSteamSupply_fuelSupplyTC)); - dynamic_switch.insert(std::make_pair("cim:FossilSteamSupply.maxErrorRateP", &assign_FossilSteamSupply_maxErrorRateP)); - dynamic_switch.insert(std::make_pair("cim:FossilSteamSupply.mechPowerSensorLag", &assign_FossilSteamSupply_mechPowerSensorLag)); - dynamic_switch.insert(std::make_pair("cim:FossilSteamSupply.minErrorRateP", &assign_FossilSteamSupply_minErrorRateP)); - dynamic_switch.insert(std::make_pair("cim:FossilSteamSupply.pressureCtrlDG", &assign_FossilSteamSupply_pressureCtrlDG)); - dynamic_switch.insert(std::make_pair("cim:FossilSteamSupply.pressureCtrlIG", &assign_FossilSteamSupply_pressureCtrlIG)); - dynamic_switch.insert(std::make_pair("cim:FossilSteamSupply.pressureCtrlPG", &assign_FossilSteamSupply_pressureCtrlPG)); - dynamic_switch.insert(std::make_pair("cim:FossilSteamSupply.pressureFeedback", &assign_FossilSteamSupply_pressureFeedback)); - dynamic_switch.insert(std::make_pair("cim:FossilSteamSupply.superHeater1Capacity", &assign_FossilSteamSupply_superHeater1Capacity)); - dynamic_switch.insert(std::make_pair("cim:FossilSteamSupply.superHeater2Capacity", &assign_FossilSteamSupply_superHeater2Capacity)); - dynamic_switch.insert(std::make_pair("cim:FossilSteamSupply.superHeaterPipePD", &assign_FossilSteamSupply_superHeaterPipePD)); - dynamic_switch.insert(std::make_pair("cim:FossilSteamSupply.throttlePressureSP", &assign_FossilSteamSupply_throttlePressureSP)); - dynamic_switch.insert(std::make_pair("cim:HeatRecoveryBoiler.steamSupplyRating2", &assign_HeatRecoveryBoiler_steamSupplyRating2)); - dynamic_switch.insert(std::make_pair("cim:BWRSteamSupply.highPowerLimit", &assign_BWRSteamSupply_highPowerLimit)); - dynamic_switch.insert(std::make_pair("cim:BWRSteamSupply.inCoreThermalTC", &assign_BWRSteamSupply_inCoreThermalTC)); - dynamic_switch.insert(std::make_pair("cim:BWRSteamSupply.integralGain", &assign_BWRSteamSupply_integralGain)); - dynamic_switch.insert(std::make_pair("cim:BWRSteamSupply.lowerLimit", &assign_BWRSteamSupply_lowerLimit)); - dynamic_switch.insert(std::make_pair("cim:BWRSteamSupply.lowPowerLimit", &assign_BWRSteamSupply_lowPowerLimit)); - dynamic_switch.insert(std::make_pair("cim:BWRSteamSupply.pressureLimit", &assign_BWRSteamSupply_pressureLimit)); - dynamic_switch.insert(std::make_pair("cim:BWRSteamSupply.pressureSetpointGA", &assign_BWRSteamSupply_pressureSetpointGA)); - dynamic_switch.insert(std::make_pair("cim:BWRSteamSupply.pressureSetpointTC1", &assign_BWRSteamSupply_pressureSetpointTC1)); - dynamic_switch.insert(std::make_pair("cim:BWRSteamSupply.pressureSetpointTC2", &assign_BWRSteamSupply_pressureSetpointTC2)); - dynamic_switch.insert(std::make_pair("cim:BWRSteamSupply.proportionalGain", &assign_BWRSteamSupply_proportionalGain)); - dynamic_switch.insert(std::make_pair("cim:BWRSteamSupply.rfAux1", &assign_BWRSteamSupply_rfAux1)); - dynamic_switch.insert(std::make_pair("cim:BWRSteamSupply.rfAux2", &assign_BWRSteamSupply_rfAux2)); - dynamic_switch.insert(std::make_pair("cim:BWRSteamSupply.rfAux3", &assign_BWRSteamSupply_rfAux3)); - dynamic_switch.insert(std::make_pair("cim:BWRSteamSupply.rfAux4", &assign_BWRSteamSupply_rfAux4)); - dynamic_switch.insert(std::make_pair("cim:BWRSteamSupply.rfAux5", &assign_BWRSteamSupply_rfAux5)); - dynamic_switch.insert(std::make_pair("cim:BWRSteamSupply.rfAux6", &assign_BWRSteamSupply_rfAux6)); - dynamic_switch.insert(std::make_pair("cim:BWRSteamSupply.rfAux7", &assign_BWRSteamSupply_rfAux7)); - dynamic_switch.insert(std::make_pair("cim:BWRSteamSupply.rfAux8", &assign_BWRSteamSupply_rfAux8)); - dynamic_switch.insert(std::make_pair("cim:BWRSteamSupply.rodPattern", &assign_BWRSteamSupply_rodPattern)); - dynamic_switch.insert(std::make_pair("cim:BWRSteamSupply.rodPatternConstant", &assign_BWRSteamSupply_rodPatternConstant)); - dynamic_switch.insert(std::make_pair("cim:BWRSteamSupply.upperLimit", &assign_BWRSteamSupply_upperLimit)); - dynamic_switch.insert(std::make_pair("cim:DrumBoiler.drumBoilerRating", &assign_DrumBoiler_drumBoilerRating)); - dynamic_switch.insert(std::make_pair("cim:ProtectionEquipment.highLimit", &assign_ProtectionEquipment_highLimit)); - dynamic_switch.insert(std::make_pair("cim:ProtectionEquipment.lowLimit", &assign_ProtectionEquipment_lowLimit)); - dynamic_switch.insert(std::make_pair("cim:ProtectionEquipment.powerDirectionFlag", &assign_ProtectionEquipment_powerDirectionFlag)); - dynamic_switch.insert(std::make_pair("cim:ProtectionEquipment.relayDelayTime", &assign_ProtectionEquipment_relayDelayTime)); - dynamic_switch.insert(std::make_pair("cim:ProtectionEquipment.unitMultiplier", &assign_ProtectionEquipment_unitMultiplier)); - dynamic_switch.insert(std::make_pair("cim:ProtectionEquipment.unitSymbol", &assign_ProtectionEquipment_unitSymbol)); - dynamic_switch.insert(std::make_pair("cim:CurrentRelay.currentLimit1", &assign_CurrentRelay_currentLimit1)); - dynamic_switch.insert(std::make_pair("cim:CurrentRelay.currentLimit2", &assign_CurrentRelay_currentLimit2)); - dynamic_switch.insert(std::make_pair("cim:CurrentRelay.currentLimit3", &assign_CurrentRelay_currentLimit3)); - dynamic_switch.insert(std::make_pair("cim:CurrentRelay.inverseTimeFlag", &assign_CurrentRelay_inverseTimeFlag)); - dynamic_switch.insert(std::make_pair("cim:CurrentRelay.timeDelay1", &assign_CurrentRelay_timeDelay1)); - dynamic_switch.insert(std::make_pair("cim:CurrentRelay.timeDelay2", &assign_CurrentRelay_timeDelay2)); - dynamic_switch.insert(std::make_pair("cim:CurrentRelay.timeDelay3", &assign_CurrentRelay_timeDelay3)); - dynamic_switch.insert(std::make_pair("cim:SynchrocheckRelay.maxAngleDiff", &assign_SynchrocheckRelay_maxAngleDiff)); - dynamic_switch.insert(std::make_pair("cim:SynchrocheckRelay.maxFreqDiff", &assign_SynchrocheckRelay_maxFreqDiff)); - dynamic_switch.insert(std::make_pair("cim:SynchrocheckRelay.maxVoltDiff", &assign_SynchrocheckRelay_maxVoltDiff)); - dynamic_switch.insert(std::make_pair("cim:Contingency.mustStudy", &assign_Contingency_mustStudy)); - dynamic_switch.insert(std::make_pair("cim:ContingencyEquipment.contingentStatus", &assign_ContingencyEquipment_contingentStatus)); - dynamic_switch.insert(std::make_pair("cim:AltTieMeas.priority", &assign_AltTieMeas_priority)); - dynamic_switch.insert(std::make_pair("cim:TieFlow.positiveFlowIn", &assign_TieFlow_positiveFlowIn)); - dynamic_switch.insert(std::make_pair("cim:AltGeneratingUnitMeas.priority", &assign_AltGeneratingUnitMeas_priority)); - dynamic_switch.insert(std::make_pair("cim:ControlArea.netInterchange", &assign_ControlArea_netInterchange)); - dynamic_switch.insert(std::make_pair("cim:ControlArea.pTolerance", &assign_ControlArea_pTolerance)); - dynamic_switch.insert(std::make_pair("cim:ControlArea.type", &assign_ControlArea_type)); - dynamic_switch.insert(std::make_pair("cim:DCSeriesDevice.inductance", &assign_DCSeriesDevice_inductance)); - dynamic_switch.insert(std::make_pair("cim:DCSeriesDevice.ratedUdc", &assign_DCSeriesDevice_ratedUdc)); - dynamic_switch.insert(std::make_pair("cim:DCSeriesDevice.resistance", &assign_DCSeriesDevice_resistance)); - dynamic_switch.insert(std::make_pair("cim:DCLineSegment.capacitance", &assign_DCLineSegment_capacitance)); - dynamic_switch.insert(std::make_pair("cim:DCLineSegment.inductance", &assign_DCLineSegment_inductance)); - dynamic_switch.insert(std::make_pair("cim:DCLineSegment.length", &assign_DCLineSegment_length)); - dynamic_switch.insert(std::make_pair("cim:DCLineSegment.resistance", &assign_DCLineSegment_resistance)); - dynamic_switch.insert(std::make_pair("cim:PerLengthDCLineParameter.capacitance", &assign_PerLengthDCLineParameter_capacitance)); - dynamic_switch.insert(std::make_pair("cim:PerLengthDCLineParameter.inductance", &assign_PerLengthDCLineParameter_inductance)); - dynamic_switch.insert(std::make_pair("cim:PerLengthDCLineParameter.resistance", &assign_PerLengthDCLineParameter_resistance)); - dynamic_switch.insert(std::make_pair("cim:ACDCConverter.baseS", &assign_ACDCConverter_baseS)); - dynamic_switch.insert(std::make_pair("cim:ACDCConverter.idc", &assign_ACDCConverter_idc)); - dynamic_switch.insert(std::make_pair("cim:ACDCConverter.idleLoss", &assign_ACDCConverter_idleLoss)); - dynamic_switch.insert(std::make_pair("cim:ACDCConverter.maxUdc", &assign_ACDCConverter_maxUdc)); - dynamic_switch.insert(std::make_pair("cim:ACDCConverter.minUdc", &assign_ACDCConverter_minUdc)); - dynamic_switch.insert(std::make_pair("cim:ACDCConverter.numberOfValves", &assign_ACDCConverter_numberOfValves)); - dynamic_switch.insert(std::make_pair("cim:ACDCConverter.p", &assign_ACDCConverter_p)); - dynamic_switch.insert(std::make_pair("cim:ACDCConverter.poleLossP", &assign_ACDCConverter_poleLossP)); - dynamic_switch.insert(std::make_pair("cim:ACDCConverter.q", &assign_ACDCConverter_q)); - dynamic_switch.insert(std::make_pair("cim:ACDCConverter.ratedUdc", &assign_ACDCConverter_ratedUdc)); - dynamic_switch.insert(std::make_pair("cim:ACDCConverter.resistiveLoss", &assign_ACDCConverter_resistiveLoss)); - dynamic_switch.insert(std::make_pair("cim:ACDCConverter.switchingLoss", &assign_ACDCConverter_switchingLoss)); - dynamic_switch.insert(std::make_pair("cim:ACDCConverter.targetPpcc", &assign_ACDCConverter_targetPpcc)); - dynamic_switch.insert(std::make_pair("cim:ACDCConverter.targetUdc", &assign_ACDCConverter_targetUdc)); - dynamic_switch.insert(std::make_pair("cim:ACDCConverter.uc", &assign_ACDCConverter_uc)); - dynamic_switch.insert(std::make_pair("cim:ACDCConverter.udc", &assign_ACDCConverter_udc)); - dynamic_switch.insert(std::make_pair("cim:ACDCConverter.valveU0", &assign_ACDCConverter_valveU0)); - dynamic_switch.insert(std::make_pair("cim:VsConverter.delta", &assign_VsConverter_delta)); - dynamic_switch.insert(std::make_pair("cim:VsConverter.droop", &assign_VsConverter_droop)); - dynamic_switch.insert(std::make_pair("cim:VsConverter.droopCompensation", &assign_VsConverter_droopCompensation)); - dynamic_switch.insert(std::make_pair("cim:VsConverter.maxModulationIndex", &assign_VsConverter_maxModulationIndex)); - dynamic_switch.insert(std::make_pair("cim:VsConverter.maxValveCurrent", &assign_VsConverter_maxValveCurrent)); - dynamic_switch.insert(std::make_pair("cim:VsConverter.pPccControl", &assign_VsConverter_pPccControl)); - dynamic_switch.insert(std::make_pair("cim:VsConverter.qPccControl", &assign_VsConverter_qPccControl)); - dynamic_switch.insert(std::make_pair("cim:VsConverter.qShare", &assign_VsConverter_qShare)); - dynamic_switch.insert(std::make_pair("cim:VsConverter.targetQpcc", &assign_VsConverter_targetQpcc)); - dynamic_switch.insert(std::make_pair("cim:VsConverter.targetUpcc", &assign_VsConverter_targetUpcc)); - dynamic_switch.insert(std::make_pair("cim:VsConverter.uf", &assign_VsConverter_uf)); - dynamic_switch.insert(std::make_pair("cim:DCGround.inductance", &assign_DCGround_inductance)); - dynamic_switch.insert(std::make_pair("cim:DCGround.r", &assign_DCGround_r)); - dynamic_switch.insert(std::make_pair("cim:DCShunt.capacitance", &assign_DCShunt_capacitance)); - dynamic_switch.insert(std::make_pair("cim:DCShunt.ratedUdc", &assign_DCShunt_ratedUdc)); - dynamic_switch.insert(std::make_pair("cim:DCShunt.resistance", &assign_DCShunt_resistance)); - dynamic_switch.insert(std::make_pair("cim:ACDCConverterDCTerminal.polarity", &assign_ACDCConverterDCTerminal_polarity)); - dynamic_switch.insert(std::make_pair("cim:CsConverter.alpha", &assign_CsConverter_alpha)); - dynamic_switch.insert(std::make_pair("cim:CsConverter.gamma", &assign_CsConverter_gamma)); - dynamic_switch.insert(std::make_pair("cim:CsConverter.maxAlpha", &assign_CsConverter_maxAlpha)); - dynamic_switch.insert(std::make_pair("cim:CsConverter.maxGamma", &assign_CsConverter_maxGamma)); - dynamic_switch.insert(std::make_pair("cim:CsConverter.maxIdc", &assign_CsConverter_maxIdc)); - dynamic_switch.insert(std::make_pair("cim:CsConverter.minAlpha", &assign_CsConverter_minAlpha)); - dynamic_switch.insert(std::make_pair("cim:CsConverter.minGamma", &assign_CsConverter_minGamma)); - dynamic_switch.insert(std::make_pair("cim:CsConverter.minIdc", &assign_CsConverter_minIdc)); - dynamic_switch.insert(std::make_pair("cim:CsConverter.operatingMode", &assign_CsConverter_operatingMode)); - dynamic_switch.insert(std::make_pair("cim:CsConverter.pPccControl", &assign_CsConverter_pPccControl)); - dynamic_switch.insert(std::make_pair("cim:CsConverter.ratedIdc", &assign_CsConverter_ratedIdc)); - dynamic_switch.insert(std::make_pair("cim:CsConverter.targetAlpha", &assign_CsConverter_targetAlpha)); - dynamic_switch.insert(std::make_pair("cim:CsConverter.targetGamma", &assign_CsConverter_targetGamma)); - dynamic_switch.insert(std::make_pair("cim:CsConverter.targetIdc", &assign_CsConverter_targetIdc)); - dynamic_switch.insert(std::make_pair("cim:FaultImpedance.rGround", &assign_FaultImpedance_rGround)); - dynamic_switch.insert(std::make_pair("cim:FaultImpedance.rLineToLine", &assign_FaultImpedance_rLineToLine)); - dynamic_switch.insert(std::make_pair("cim:FaultImpedance.xGround", &assign_FaultImpedance_xGround)); - dynamic_switch.insert(std::make_pair("cim:FaultImpedance.xLineToLine", &assign_FaultImpedance_xLineToLine)); - dynamic_switch.insert(std::make_pair("cim:Fault.kind", &assign_Fault_kind)); - dynamic_switch.insert(std::make_pair("cim:Fault.phases", &assign_Fault_phases)); - dynamic_switch.insert(std::make_pair("cim:LineFault.lengthFromTerminal1", &assign_LineFault_lengthFromTerminal1)); - - -#include "AliasesAssignment.hpp" - - load_aliases(dynamic_switch, "assignment_alias.csv"); - - return dynamic_switch; -} diff --git a/IEC61970_17v07/assignments.hpp b/IEC61970_17v07/assignments.hpp deleted file mode 100644 index 380520e1d..000000000 --- a/IEC61970_17v07/assignments.hpp +++ /dev/null @@ -1,9 +0,0 @@ -#ifndef ASSIGN_HPP -#define ASSIGN_HPP - -#include -#include "BaseClass.h" - -bool assign(BaseClass* CIMObj, const std::string& CIMAttrName, const std::string& Value); - -#endif // ASSIGN_HPP